*{box-sizing:border-box}
html,body{margin:0;height:100%;background:#07080B;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#F2F4F7;-webkit-font-smoothing:antialiased}
#app{min-height:100%;max-width:480px;margin:0 auto;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
a{color:#F5C451}
button{font-family:inherit}
.screen{padding:20px 20px 100px;flex:1}
.topbar{display:flex;align-items:center;gap:12px;padding:16px 20px 4px}
.topbar h1{font-size:17px;margin:0;flex:1}
.iconbtn{width:36px;height:36px;border-radius:11px;border:1px solid rgba(255,255,255,.12);background:transparent;color:#F2F4F7;cursor:pointer;display:flex;align-items:center;justify-content:center}
.iconbtn.back{font-size:18px}

.field{margin-bottom:16px}
.field label{display:block;font-size:12px;color:#8B95A5;margin-bottom:6px}
.field input,.field select{width:100%;height:48px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:#151A21;color:#F2F4F7;padding:0 14px;font-size:14px;outline:none}
.field .hint{font-size:11px;color:#69737F;margin-top:6px;line-height:1.5}
.field .error{font-size:12px;color:#FF9497;margin-top:6px}
.field .ok{font-size:12px;color:#3DD68C;margin-top:6px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.btn-primary{width:100%;height:52px;border:none;border-radius:14px;background:#F5C451;color:#0B0D10;font-weight:600;font-size:15px;cursor:pointer}
.btn-primary:disabled{opacity:.5;cursor:default}
.btn-secondary{width:100%;height:48px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:transparent;color:#F2F4F7;font-weight:600;font-size:14px;cursor:pointer}
.btn-danger{width:100%;height:48px;border-radius:14px;border:1px solid rgba(255,90,95,.3);background:rgba(255,90,95,.07);color:#FF9497;font-weight:600;cursor:pointer}

.banner{padding:12px;border-radius:12px;background:rgba(255,90,95,.1);border:1px solid rgba(255,90,95,.25);color:#FF9497;font-size:13px;margin-bottom:16px}

.carousel-wrap{position:relative;margin-bottom:16px}
.carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;-webkit-overflow-scrolling:touch}
.carousel::-webkit-scrollbar{display:none}
.carousel-slide{flex:0 0 100%;scroll-snap-align:start;position:relative;aspect-ratio:2.2/1;border-radius:16px;overflow:hidden;background:#151A21;border:1px solid rgba(255,255,255,.08);display:block}
.carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
.carousel-caption{position:absolute;left:0;right:0;bottom:0;padding:10px 14px;background:linear-gradient(to top,rgba(0,0,0,.75),transparent);font-size:13px;font-weight:600;color:#fff}

.carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:rgba(11,13,16,.55);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;padding:0}
.carousel-arrow.prev{left:8px}
.carousel-arrow.next{right:8px}
.carousel-dots{position:absolute;left:0;right:0;bottom:9px;display:flex;justify-content:center;gap:6px;z-index:2}
.carousel-dot{width:6px;height:6px;border-radius:3px;background:rgba(255,255,255,.4);cursor:pointer;transition:background .2s,width .2s}
.carousel-dot.active{background:#F5C451;width:16px}

.card{padding:16px;border-radius:16px;background:#151A21;border:1px solid rgba(255,255,255,.08);margin-bottom:12px}
.card-title{font-size:16px;font-weight:600;margin:0 0 8px}
.muted{color:#8B95A5;font-size:12px}

.splash-logo{width:88px;height:88px;border-radius:26px;background:linear-gradient(150deg,#F5C451,#E0952A);display:flex;align-items:center;justify-content:center;font-size:40px;margin:0 auto 20px}
.splash-logo-img{display:block;width:112px;height:112px;margin:0 auto 10px}
.splash-wrap{display:flex;flex-direction:column;justify-content:space-between;min-height:calc(100vh - 40px);padding:64px 0 20px;text-align:center}

.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat-grid .card{margin-bottom:0}
.stat-value{font-size:19px;font-weight:600}

.game-banner{width:100%;aspect-ratio:2.2/1;object-fit:cover;border-radius:16px;background:#151A21;border:1px solid rgba(255,255,255,.08);display:block;margin-bottom:16px}

.game-item{display:flex;gap:13px;align-items:center;padding:12px;border-radius:16px;background:#151A21;border:1px solid rgba(255,255,255,.08);cursor:pointer;margin-bottom:10px}
.game-tile{width:52px;height:52px;flex:none;border-radius:13px;background:#F5C451;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:19px;color:#0B0D10;overflow:hidden}
.game-tile img{width:100%;height:100%;object-fit:cover}
.game-name{font-weight:600;font-size:14px}
.game-desc{font-size:12px;color:#8B95A5;margin-top:3px}

.txn-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px}
.txn-amount.pos{color:#3DD68C;font-weight:600}
.txn-amount.neg{color:#FF9497;font-weight:600}

.profile-row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:13px}
.profile-row span:first-child{color:#8B95A5}

.lang-option{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:14px;background:#151A21;border:1px solid rgba(255,255,255,.08);cursor:pointer;margin-bottom:8px}
.lang-option.active{border-color:#F5C451}

.toggle{width:48px;height:28px;border-radius:14px;background:rgba(255,255,255,.14);position:relative;cursor:pointer;flex:none}
.toggle.on{background:#F5C451}
.toggle .knob{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .15s}
.toggle.on .knob{left:23px}

.code-box{padding:14px;border-radius:14px;background:#151A21;border:1px solid rgba(255,255,255,.08);text-align:center;font-family:monospace;font-size:22px;letter-spacing:.05em;color:#F5C451}
.qr-wrap{display:flex;justify-content:center;margin-top:14px}
.qr-wrap>div{padding:14px;background:#ffffff;border-radius:16px;line-height:0}
.link-row{display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:12px;background:#0F1318;border:1px solid rgba(255,255,255,.07);margin-top:10px}
.link-row span{flex:1;min-width:0;font-size:11px;color:#8B95A5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-row button{flex:none;height:28px;padding:0 11px;border-radius:8px;border:none;background:rgba(245,196,81,.16);color:#F5C451;font-weight:600;font-size:11.5px;cursor:pointer}

.spinner{width:34px;height:34px;border-radius:50%;border:3px solid rgba(245,196,81,.2);border-top-color:#F5C451;animation:spin 1s linear infinite;margin:40px auto}
@keyframes spin{to{transform:rotate(360deg)}}

.center-col{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:70vh;gap:16px}
.hint{font-size:11px;color:#69737F;line-height:1.5}

.toast{position:fixed;top:calc(12px + env(safe-area-inset-top));left:50%;transform:translateX(-50%) translateY(-20px);max-width:440px;width:calc(100% - 32px);background:#151A21;border:1px solid rgba(255,255,255,.12);border-left:3px solid #F5C451;border-radius:14px;padding:12px 14px;box-shadow:0 8px 24px rgba(0,0,0,.4);z-index:999;opacity:0;transition:opacity .25s,transform .25s;cursor:pointer}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast-title{font-weight:600;font-size:13px;color:#F2F4F7}
.toast-body{font-size:12px;color:#8B95A5;margin-top:3px}

.wallet-points-card{background:linear-gradient(130deg,rgba(124,92,255,.18),rgba(124,92,255,.05));border:1px solid rgba(124,92,255,.26)}
.wallet-pill{padding:3px 9px;border-radius:20px;background:rgba(124,92,255,.18);font-size:10px;font-weight:600;color:#A79BE0;letter-spacing:.04em;text-transform:uppercase;flex:none}
.wallet-cash-item{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:16px;background:#151A21;border:1px solid rgba(255,255,255,.08);cursor:pointer;margin-bottom:8px}
.wallet-cash-item.active{border-color:#F5C451}
.wallet-badge{width:38px;height:38px;flex:none;border-radius:12px;background:rgba(245,196,81,.14);color:#F5C451;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:13px}
.wallet-home-tag{padding:2px 7px;border-radius:20px;background:rgba(245,196,81,.14);font-size:9.5px;font-weight:600;color:#F5C451;letter-spacing:.04em;text-transform:uppercase}
.wallet-filter{height:30px;padding:0 12px;border-radius:9px;background:#151A21;border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;cursor:pointer;font-size:11.5px;font-family:monospace;color:#8B95A5}
.wallet-filter.active{background:rgba(245,196,81,.14);border-color:rgba(245,196,81,.4);color:#F5C451}

.support-fab{position:fixed;right:calc(50% - 240px + 18px);bottom:calc(100px + env(safe-area-inset-bottom));width:52px;height:52px;border-radius:17px;background:#151A21;border:1px solid rgba(245,196,81,.28);box-shadow:0 10px 26px rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:22px;z-index:15}
@media (max-width:480px){.support-fab{right:18px}}

.sheet-overlay{position:fixed;inset:0;background:rgba(6,8,11,.72);backdrop-filter:blur(3px);z-index:20}
.sheet{position:fixed;left:calc(50% - 240px);right:calc(50% - 240px);max-width:480px;bottom:0;background:#11151B;border-top:1px solid rgba(255,255,255,.1);border-radius:24px 24px 0 0;padding:12px 20px calc(28px + env(safe-area-inset-bottom));z-index:21;max-height:80vh;overflow-y:auto}
@media (max-width:480px){.sheet{left:0;right:0}}
.sheet-handle{width:38px;height:4px;border-radius:2px;background:rgba(255,255,255,.16);margin:0 auto 16px}
.sheet-section-label{font-size:11px;font-weight:600;color:#69737F;letter-spacing:.08em;text-transform:uppercase;padding:20px 0 10px}
.support-tile{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:15px;background:#171C23;border:1px solid rgba(255,255,255,.08);text-decoration:none;margin-bottom:9px}
.support-icon{width:38px;height:38px;flex:none;border-radius:12px;background:rgba(245,196,81,.14);display:flex;align-items:center;justify-content:center;font-size:17px}
.online-dot{width:6px;height:6px;border-radius:50%;background:#4ADE80;display:inline-block}

.checkin-hero{border-radius:20px;background:linear-gradient(130deg,rgba(245,196,81,.14),rgba(245,196,81,.03));border:1px solid rgba(245,196,81,.24);padding:20px}
.checkin-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}
.checkin-day{aspect-ratio:1;border-radius:11px;background:#151A21;border:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;font-family:monospace;font-size:12px;font-weight:600;color:#69737F}
.checkin-day.done{background:rgba(61,214,140,.09);border-color:rgba(61,214,140,.28);color:#3DD68C}
.checkin-day.today{border-color:#F5C451;color:#F5C451}
.checkin-day-badge{font-size:8px;font-weight:500;color:#F5C451;letter-spacing:.03em}
.checkin-done-bar{height:52px;border-radius:14px;background:rgba(61,214,140,.09);border:1px solid rgba(61,214,140,.28);display:flex;align-items:center;justify-content:center;gap:9px;font-weight:600;font-size:13.5px;color:#3DD68C}

.checkin-modal-overlay{position:fixed;inset:0;z-index:30;background:rgba(6,8,11,.82);backdrop-filter:blur(4px)}
.checkin-modal-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 36px);max-width:400px;max-height:86vh;overflow-y:auto;z-index:31;border-radius:26px;background:#11151B;border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 70px rgba(0,0,0,.65);padding:22px 20px 20px}
.checkin-modal-close{width:30px;height:30px;flex:none;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:transparent;color:#8B95A5;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px}

.ad-popup-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:calc(100% - 36px);max-width:400px;max-height:86vh;overflow-y:auto;z-index:31;border-radius:26px;background:#11151B;border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 70px rgba(0,0,0,.65);padding:18px}
.ad-popup-close{position:absolute;top:14px;right:14px;width:30px;height:30px;border-radius:10px;border:1px solid rgba(255,255,255,.14);background:rgba(6,8,11,.55);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;z-index:2}
.ad-popup-slide{position:relative}
.ad-popup-image{width:100%;max-height:60vh;object-fit:cover;display:block;border-radius:16px}
.ad-popup-caption{margin-top:12px;font-size:13.5px;line-height:1.55;color:#fff;text-align:center}
.checkin-week-cell{aspect-ratio:1;border-radius:12px;background:#151A21;border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-family:monospace;font-weight:600;font-size:12px;color:#69737F}
.checkin-week-cell.done{background:rgba(61,214,140,.09);border-color:rgba(61,214,140,.28);color:#3DD68C}
.checkin-week-cell.today{border-color:#F5C451;color:#F5C451}
.checkin-week-label{font-size:9px;font-weight:500;color:#69737F}
.checkin-week-label.dbl{color:#F5C451}
.checkin-double-banner{display:flex;gap:9px;align-items:center;margin-top:18px;padding:12px 14px;border-radius:13px;background:rgba(245,196,81,.1);border:1px solid rgba(245,196,81,.28);color:#F5C451;font-size:11.5px;line-height:1.5}
.checkin-reward-circle{width:88px;height:88px;margin:0 auto;border-radius:50%;background:radial-gradient(circle at 50% 35%,rgba(245,196,81,.28),rgba(245,196,81,.06));border:1px solid rgba(245,196,81,.35);display:flex;flex-direction:column;align-items:center;justify-content:center}
.checkin-mini-stat{flex:1;padding:13px 12px;border-radius:14px;background:#151A21;border:1px solid rgba(255,255,255,.08)}
.global-ref-banner{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:8px;padding:10px 12px 10px 16px;background:linear-gradient(90deg,rgba(245,196,81,.18),rgba(245,196,81,.08)),#0B0D10;border-bottom:1px solid rgba(245,196,81,.35)}
.global-ref-code{font-family:'Courier New',monospace;font-weight:700;font-size:16px;letter-spacing:1.5px;color:#F5C451;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-ref-btn{flex:none;padding:7px 12px;border-radius:999px;border:1px solid rgba(245,196,81,.5);background:rgba(245,196,81,.12);color:#F5C451;font-size:12px;font-weight:600;cursor:pointer}
.global-ref-close{flex:none;width:28px;height:28px;border:none;background:transparent;color:#8B95A5;font-size:14px;cursor:pointer}
