/* Giftlane. Quiet graphite, off-white actions, one gold accent that only ever means TEST credits. */

@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/onest-cyrillic.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/onest-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  color-scheme:dark;
  --bg:#07090d;
  --s1:#0d1118;
  --s2:#131926;
  --line:#1a2130;
  --line2:#283043;
  --text:#f3f5fa;
  --muted:#8892a6;
  --faint:#566075;
  --accent:#5b84ff;
  --warn:#f3b44d;
  --ok:#3ecf9a;
  --bad:#ef6b7b;
  --sans:Onest,system-ui,-apple-system,"Segoe UI",sans-serif;
  --r-card:16px;
  --r-ctl:12px;
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.5 var(--sans);font-variant-numeric:tabular-nums;overflow-x:hidden}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{opacity:.4;cursor:wait}
:focus-visible{outline:2px solid var(--text);outline-offset:3px;border-radius:8px}
h1,h2,h3,p{margin:0}
p{line-height:1.55}
a{color:var(--text)}
.muted{color:var(--muted)}
.small{font-size:13px}
.gold{color:var(--accent)}
.row{display:flex;align-items:center;gap:6px}
.spread{justify-content:space-between}
.ico{width:22px;height:22px;flex:none}

/* ---------- Shell ---------- */
.wrap{max-width:720px;margin:0 auto;padding:0 20px calc(116px + var(--safe-b))}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 14px}
.top.simple{padding-bottom:0}
.brand{display:flex;align-items:center;gap:9px;font:600 19px/1 var(--sans);letter-spacing:-.035em}
.loading .mark{width:44px;height:44px;margin-bottom:18px;animation:orbit 1.6s linear infinite}
@keyframes orbit{to{transform:rotate(360deg)}}
.mark{width:26px;height:26px}
.balance{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 13px 0 10px;border-radius:999px;border:1px solid var(--line2)}
.balance .ico{width:16px;height:16px;color:var(--accent)}
.balance b{font-weight:600;font-size:15px}
.balance span{font-size:12px;font-weight:500;color:var(--muted)}
.teststrip{display:flex;align-items:center;gap:9px;margin:0 0 22px;padding:0 0 14px;border-bottom:1px solid var(--line);color:var(--muted);font-size:13px}
.teststrip .dot{display:inline-block;flex:none;width:6px;height:6px;margin-right:9px;vertical-align:1px;border-radius:50%;background:var(--warn)}
.lang{min-width:40px;min-height:34px;padding:0 8px;border-radius:9px;color:var(--muted);font-weight:500;font-size:13px}
.lang:hover{color:var(--text)}
.test-banner{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.test-banner:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--warn)}
.tag{display:inline-block;padding:3px 9px;border-radius:999px;border:1px solid var(--line2);color:var(--muted);font-size:12px;font-weight:500}

/* ---------- Buttons & fields ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;border-radius:var(--r-ctl);background:var(--text);color:var(--bg);font-weight:600;font-size:15px;transition:opacity .15s,transform .12s}
.btn:hover{opacity:.9}
.btn:active{transform:scale(.985)}
.btn.secondary{background:transparent;color:var(--text);border:1px solid var(--line2)}
.btn.secondary:hover{background:var(--s2);opacity:1}
.btn.sm{min-height:38px;padding:0 15px;font-size:14px;border-radius:10px}
.btn .ico{width:17px;height:17px}
.full{width:100%}
label{display:block;margin:20px 0 8px;color:var(--muted);font-size:13px;font-weight:500}
input,select{width:100%;min-height:50px;padding:0 15px;border-radius:var(--r-ctl);border:1px solid var(--line2);background:var(--bg);color:var(--text);outline-offset:2px}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%238c9098' stroke-width='2'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:42px}
.form-note{margin-top:12px;font-size:13px;color:var(--muted)}
.errorbox,.inline-error{margin:16px 0;padding:12px 14px;border-radius:12px;border:1px solid #d98c8c55;color:#e8b0b0;font-size:14px}
.notice-box{margin:16px 0;padding:14px 16px;border-radius:12px;background:var(--s2);color:#c3c6cb;font-size:14px;line-height:1.55}
.pending{margin:16px 0;padding:14px 16px;border-radius:12px;border:1px solid #f3b44d55;color:var(--warn)}

/* ---------- Tabs, statuses ---------- */
.filters{display:flex;gap:22px;overflow-x:auto;margin:0 -20px 18px;padding:0 20px;border-bottom:1px solid var(--line);scrollbar-width:none}
.filters::-webkit-scrollbar{display:none}
.chip{flex:none;position:relative;min-height:42px;color:var(--muted);font-weight:500;font-size:14px}
.chip.on{color:var(--text)}
.chip.on:after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--text);border-radius:2px}
.chip-status{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:500;line-height:1.3;color:var(--muted)}
.chip-status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}
.chip-status.s-open{color:var(--ok)}
.chip-status.s-wait{color:var(--warn)}
.chip-status.s-cancelled{color:var(--faint)}
.serial{font-size:13px;font-weight:500;color:var(--faint)}

/* ---------- Section heads ---------- */
.section{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 14px}
.section h2,.panel h2,.dialog h2{font:600 22px/1.2 var(--sans);letter-spacing:-.03em}
.panel h3,.dialog h3{font:600 17px/1.3 var(--sans);letter-spacing:-.02em;margin-bottom:10px}

/* ---------- The ticket: hairline card with a perforated stub ---------- */
.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.grid.gifts{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ticket{--stub:68px;position:relative;display:flex;flex-direction:column;border-radius:var(--r-card);background:var(--s1);box-shadow:inset 0 0 0 1px var(--line);
  -webkit-mask:radial-gradient(circle 8px at 0 calc(100% - var(--stub)),#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 8px at 100% calc(100% - var(--stub)),#0000 97%,#000) right/51% 100% no-repeat;
          mask:radial-gradient(circle 8px at 0 calc(100% - var(--stub)),#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 8px at 100% calc(100% - var(--stub)),#0000 97%,#000) right/51% 100% no-repeat}
.ticket-main{flex:1;display:flex;gap:16px;padding:18px 18px 16px}
.ticket-art{flex:none;display:grid;place-items:center;width:76px;height:76px;border-radius:12px;background:var(--s2);color:var(--accent)}
.ticket-art .art{width:46px;height:46px}
.ticket-info{flex:1;min-width:0;display:flex;flex-direction:column}
.ticket-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ticket-info h3{margin:9px 0 2px;font:600 17px/1.25 var(--sans);letter-spacing:-.02em}
.meta{color:var(--muted);font-size:13px}
.ticket-stub{height:var(--stub);display:flex;align-items:center;gap:12px;padding:0 18px;border-top:1px dashed var(--line2)}
.stub-stats{flex:1;min-width:0;display:flex;gap:20px;margin:0}
.stub-stats div{min-width:0}
.stub-stats dt{margin:0 0 2px;font-size:12px;color:var(--faint);white-space:nowrap}
.stub-stats dd{margin:0;font-weight:600;font-size:14px;white-space:nowrap}
.ticket-stub .btn{flex:none}

/* Featured: the draw that ends first */
.live{--stub:80px;margin:4px 0 0;background:var(--s1)}
.live .ticket-main{flex-direction:column;gap:20px;padding:20px 20px 22px}
.live-body{display:flex;align-items:center;gap:20px}
.ticket-art.lg{width:104px;height:104px;border-radius:16px}
.ticket-art.lg .art{width:60px;height:60px}
.live-info{min-width:0}
.live-kind{color:var(--muted);font-size:14px}
.clock{margin:4px 0 6px;font:600 40px/1.05 var(--sans);letter-spacing:-.04em;white-space:nowrap}
.live .btn{min-height:50px}

/* Gifts in the inventory */
.gift{display:flex;flex-direction:column;border-radius:var(--r-card);background:var(--s1);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.gift-art{display:grid;place-items:center;height:132px;margin:8px 8px 0;border-radius:11px;background:var(--s2);color:var(--accent)}
.gift-art .art{width:68px;height:68px}
.gift-body{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px}
.gift-body .btn{padding:0 12px;font-size:13px}
.gift-body h3{font:600 15px/1.25 var(--sans);letter-spacing:-.01em}

/* ---------- Panels, empty, profile ---------- */
.panel{margin-bottom:12px;padding:22px;border-radius:var(--r-card);background:var(--s1);border:1px solid var(--line)}
.split{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.empty-view{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px 24px 44px;text-align:center;border:1px dashed var(--line2);border-radius:var(--r-card)}
.empty-view .art{width:56px;height:56px;margin-bottom:10px;color:var(--accent)}
.empty-view h2{font:600 19px/1.25 var(--sans);letter-spacing:-.02em}
.empty-view .btn{margin-top:14px}
.balance-big{display:flex;align-items:center;gap:10px;margin:8px 0 6px;font:600 40px/1.1 var(--sans);letter-spacing:-.04em}
.balance-big .ico{width:24px;height:24px;color:var(--accent)}
.balance-big small{font:500 15px/1 var(--sans);letter-spacing:0;color:var(--muted)}
.actions{display:flex;gap:10px;flex-wrap:wrap}
.actions>*{flex:1}
.actions>.btn.secondary:not(:only-child){flex:none;min-width:96px}
.panel .actions{margin-top:18px}
.summary-line{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:13px 0;border-bottom:1px solid var(--line);font-size:15px}
.summary-line span{color:var(--muted)}
.summary-line b{font-weight:600;text-align:right}
.detail-visual{display:grid;place-items:center;width:128px;height:128px;margin:6px auto 14px;border-radius:18px;background:var(--s2);color:var(--accent)}
.detail-visual .art{width:70px;height:70px}
.progress{display:flex;gap:6px;margin:0 0 20px}
.progress span{height:2px;flex:1;border-radius:2px;background:var(--line2)}
.progress span.on{background:var(--text)}

.persona{display:flex;align-items:center;gap:14px;margin:10px 0;padding:15px;border-radius:14px;border:1px solid var(--line2);background:transparent;color:var(--text);font-weight:600;cursor:pointer}
.persona:has(input:checked){border-color:var(--text);background:var(--s2)}
.persona input{width:20px;min-height:0;height:20px;margin:0;padding:0;accent-color:#f3f5fa;flex:none}
.persona small{display:block;margin-top:2px;color:var(--muted);font-weight:400;font-size:13px}
.pick-gift{display:flex;align-items:center;gap:14px;width:100%;margin:10px 0;padding:10px 14px 10px 10px;text-align:left;border-radius:14px;border:1px solid var(--line2)}
.pick-gift.selected{border-color:var(--text);background:var(--s2)}
.pick-gift .art{width:62px;height:62px;padding:14px;border-radius:10px;background:var(--s2);color:var(--accent)}
.pick-sub{display:block;margin-top:2px}

/* ---------- Login ---------- */
.login-wrap{max-width:940px;margin:0 auto;padding:6px 20px 40px}
.login-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:56px;align-items:center;margin-top:7vh}
.login-title{margin:18px 0 14px;font:600 40px/1.08 var(--sans);letter-spacing:-.045em}
.lead{max-width:30em;color:var(--muted);font-size:16px}
.trio{display:flex;gap:26px;margin-top:30px;color:var(--accent)}
.trio span{display:block;width:38px;height:38px}
.trio .art{width:100%;height:100%}
.login-panel p.muted{margin-bottom:6px}

/* ---------- Bottom nav ---------- */
.nav{position:fixed;left:50%;bottom:calc(12px + var(--safe-b));transform:translateX(-50%);z-index:20;display:flex;gap:2px;width:min(480px,calc(100% - 20px));padding:6px;border-radius:20px;background:#0d1118ee;border:1px solid var(--line2);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.nav button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:52px;padding:7px 2px 5px;border-radius:14px;color:var(--faint);font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nav button.active{color:var(--text);background:var(--s2)}

/* ---------- Dialog / bottom sheet ---------- */
.modal-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:20px;background:#02030ad9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);animation:fade .2s ease-out}
.dialog{position:relative;width:100%;max-width:500px;max-height:92dvh;min-width:0;overflow-x:hidden;overflow-y:auto;padding:22px 22px 26px;border-radius:22px;background:var(--s1);border:1px solid var(--line2);animation:sheet .26s cubic-bezier(.2,.8,.2,1)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.close-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;border:1px solid var(--line2);color:var(--muted);font-size:20px;line-height:1}
.dialog h2{margin-top:4px}
.dialog details{margin:18px 0}
.dialog summary{cursor:pointer;color:var(--muted);font-weight:500;padding:6px 0}
.dialog .btn.full+.btn.full{margin-top:10px}
.dialog-sub{display:flex;align-items:center;gap:12px;margin:8px 0 2px}

/* ---------- Toast ---------- */
#toast{position:fixed;left:0;right:0;bottom:calc(92px + var(--safe-b));z-index:60;display:flex;justify-content:center;padding:0 16px;pointer-events:none}
.toast{max-width:420px;padding:12px 18px;border-radius:12px;background:var(--text);color:var(--bg);font-weight:600;font-size:14px;box-shadow:0 10px 30px #000a;animation:toast .22s ease-out}

.loading{padding:110px 20px;text-align:center;color:var(--muted)}
.loading h2{font:600 24px var(--sans);color:var(--text);margin-bottom:8px}

/* ---------- Wheel ---------- */
.wheel-stage{position:relative;width:min(100%,360px);margin:16px auto 18px;aspect-ratio:1;overflow:hidden}
.wheel-canvas{display:block;width:100%;height:100%;max-width:100%;border-radius:50%;will-change:transform}
.wheel-rotor{position:relative;width:100%;height:100%;will-change:transform}
.wheel-pointer{position:absolute;top:0;left:calc(50% - 11px);width:22px;height:28px;background:var(--text);clip-path:polygon(0 0,100% 0,100% 45%,50% 100%,0 45%);filter:drop-shadow(0 1px 0 #07090d)}
.wheel-label-anchor{position:absolute;width:0;height:0;pointer-events:none}
.wheel-label-upright{width:0;height:0;will-change:transform}
.wheel-label-content{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px}
.wheel-avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;overflow:hidden;color:#fff;font-weight:600}
.wheel-avatar img{width:100%;height:100%;object-fit:cover}
.wheel-label-content .wheel-avatar{width:28px;height:28px;font-size:13px;background:#07090d!important;box-shadow:0 0 0 2px #ffffffd9}
.wheel-sector-name{display:block;padding:2px 6px;border-radius:5px;background:#07090dcc;color:var(--text);font:500 12px/1.25 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wheel-list{max-height:300px;margin:16px 0;overflow:auto;overscroll-behavior:contain}
.wheel-person{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.wheel-person-name{min-width:0;flex:1;font-weight:500}
.wheel-person-name b,.wheel-person-name small{display:block;overflow-wrap:anywhere;font-weight:500}
.wheel-share{white-space:nowrap;font-weight:600;font-size:14px}
.wheel-result{display:none;margin:6px 0;padding:24px 20px;text-align:center;overflow-wrap:anywhere;border-radius:16px;border:1px solid #5b84ff77;background:var(--bg)}
.wheel-result.visible{display:block;animation:win .5s cubic-bezier(.2,.9,.25,1.1)}
.wheel-result .tag{display:table;margin:0 auto;border-color:#5b84ff77;color:var(--accent)}
.wheel-result .wheel-avatar{display:flex;width:68px;height:68px;margin:16px auto 6px;font-size:28px;box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--accent)}
.wheel-result h3{margin:10px 0 4px;font:600 22px/1.2 var(--sans);letter-spacing:-.03em}
.wheel-demo{margin:4px 0 14px}
.dialog,.wheel-list{scrollbar-width:thin;scrollbar-color:var(--line2) transparent}

@keyframes fade{from{opacity:0}to{opacity:1}}
@keyframes sheet{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes toast{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes win{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}

/* ---------- Responsive ---------- */
@media(min-width:700px){.grid.gifts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
  .login-layout,.split{grid-template-columns:1fr;gap:22px}
  .login-layout{margin-top:22px}
  .login-title{font-size:32px}
}
@media(max-width:640px){
  .wrap{padding-left:16px;padding-right:16px}
  .filters{margin:0 -16px 16px;padding:0 16px}
  .section h2{font-size:20px}
  .clock{font-size:34px}
  .modal-overlay{align-items:flex-end;padding:0}
  .dialog{max-width:none;max-height:93dvh;border-radius:22px 22px 0 0;padding-bottom:calc(26px + var(--safe-b))}
  .dialog:before{content:'';display:block;width:36px;height:4px;margin:-10px auto 14px;border-radius:4px;background:var(--line2)}
}
@media(max-width:420px){.teststrip{font-size:12.5px}}
@media(max-width:380px){
  .wrap,.login-wrap{padding-left:12px;padding-right:12px}
  .ticket-art{width:64px;height:64px}.ticket-art .art{width:38px;height:38px}
  .ticket-art.lg{width:84px;height:84px}.ticket-art.lg .art{width:48px;height:48px}
  .stub-stats{gap:14px}
  .hide-sm{display:none}
  .clock{font-size:30px}
}
@media(max-width:340px){.nav button{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- v4: home screen after reference ---------- */
.top{padding:22px 0 16px}
.brand.big{gap:12px;font-size:40px;letter-spacing:-.045em}
.brand.big .mark{width:46px;height:46px}
.lang{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 4px;color:var(--text);font-weight:500;font-size:17px}
.lang .ico{width:20px;height:20px}
.balcard{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 26px;padding:14px 16px 14px 18px;border-radius:20px;background:var(--s1);box-shadow:inset 0 0 0 1px var(--line2)}
.balinfo{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left}
.balinfo .lbl{font-size:14px;color:var(--muted)}
.balinfo .val{display:flex;align-items:center;gap:10px}
.balinfo .val .ico{width:28px;height:28px;color:var(--accent)}
.balinfo b{font:600 32px/1 var(--sans);letter-spacing:-.03em}
.balinfo em{font:500 22px/1 var(--sans);font-style:normal;color:var(--text);opacity:.9}
.testchip{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:#f3b44d1f;color:var(--warn);font-size:15px;font-weight:500;white-space:nowrap}
.testchip i{width:8px;height:8px;border-radius:50%;background:var(--warn)}
.section.big{margin:0 0 18px}
.section.big h2{font:700 36px/1.1 var(--sans);letter-spacing:-.035em}
.plus{display:grid;place-items:center;width:46px;height:46px;border-radius:13px;background:var(--accent);color:#fff;flex:none}
.plus .ico{width:24px;height:24px}
.seg{display:flex;gap:4px;margin:0 0 18px;padding:4px;border-radius:16px;background:var(--s1);box-shadow:inset 0 0 0 1px var(--line2)}
.seg button{flex:1;min-height:44px;border-radius:12px;color:var(--muted);font-weight:500;font-size:16px}
.seg button.on{background:var(--accent);color:#fff}
.btn.blue{background:var(--accent);color:#fff}
.btn.ghost{background:var(--s2);color:var(--text);box-shadow:inset 0 0 0 1px var(--line2)}
.grid.rounds{gap:14px}
.rcard{display:flex;flex-direction:column;gap:14px;padding:14px 14px 14px;border-radius:20px;background:var(--s1);box-shadow:inset 0 0 0 1px var(--line2)}
.rmain{display:flex;gap:16px;align-items:stretch}
.rthumb{flex:none;display:grid;place-items:center;width:112px;height:112px;border-radius:16px;overflow:hidden;background:radial-gradient(circle at 50% 38%,#4b4f7a,#1c2036 78%)}
.rthumb.k-heart{background:radial-gradient(circle at 50% 38%,#8e74c9,#2f2a5c 80%)}
.rthumb.k-gem{background:radial-gradient(circle at 50% 38%,#3fa2b3,#123646 80%)}
.rthumb.k-crown{background:radial-gradient(circle at 50% 38%,#b98a3a,#3b2a14 80%)}
.rthumb.k-pool{background:#151a26}
.art3d{width:100%;height:100%}
.rthumb .art3d.wt{width:92%;height:92%}
.rinfo{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.rtop{display:flex;justify-content:space-between;align-items:center;width:100%}
.rinfo h3{margin:2px 0 0;font:650 22px/1.15 var(--sans);letter-spacing:-.025em}
.rinfo .meta{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:16px}
.rinfo .meta .ico{width:20px;height:20px}
.rinfo .bank{margin:0;font:700 36px/1.05 var(--sans);letter-spacing:-.04em}
.rinfo .bank small{font:500 22px/1 var(--sans);letter-spacing:0;color:var(--muted)}
.pill{margin-top:6px;padding:7px 14px;border-radius:12px;background:#7b6df01f;color:#d9d4ff;font-size:15px;font-weight:500}
.rfoot{display:flex;align-items:center;gap:14px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:16px}
.rfoot.between{justify-content:space-between;padding-top:12px}
.rfoot .clk{display:inline-flex;align-items:center;gap:10px}
.rfoot .clk .ico{width:22px;height:22px}
.rfoot .clk b{color:var(--text);font-weight:600}
.vsep{width:1px;height:26px;margin:0 6px;background:var(--line2)}
.rfoot.between+*,.rcard>.btn{margin:0}
.rcard>.btn.full{min-height:52px;border-radius:16px;font-size:17px}
.rfoot .btn.sm{min-height:46px;padding:0 24px;border-radius:14px;font-size:17px}
.nav{bottom:0;width:100%;left:0;transform:none;border-radius:20px 20px 0 0;border-bottom:0;padding:8px 8px calc(8px + var(--safe-b))}
.nav button.active{background:none;color:var(--accent)}
.nav button{font-size:13px}
@media(max-width:380px){.brand.big{font-size:32px}.rthumb{width:92px;height:92px}.rinfo h3{font-size:19px}.rinfo .bank{font-size:30px}.balinfo b{font-size:27px}.section.big h2{font-size:30px}.testchip{font-size:13px;padding:8px 10px}}
.rfoot .clk{white-space:nowrap}
@media(max-width:380px){.until{display:none}.rfoot{gap:10px;font-size:15px}.rfoot .clk{gap:7px}.rfoot .clk .ico{width:19px;height:19px}.rfoot .btn.sm{padding:0 18px}.pill{font-size:13px;padding:6px 10px}.nav button{font-size:11.5px;letter-spacing:-.01em}.rinfo h3{overflow-wrap:anywhere}}

/* ---------- v4: round screen after reference ---------- */
.modal-overlay.full{padding:0;align-items:stretch;justify-content:center;background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none;animation:none}
.dialog.full{max-width:520px;max-height:none;height:100dvh;border-radius:0;border:0;background:var(--bg);padding:12px 18px calc(30px + var(--safe-b));animation:none}
.dialog.full:before{display:none}
.dhead{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:8px;margin-bottom:6px}
.back{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--text)}
.back .ico{transform:rotate(90deg);width:26px;height:26px}
.dhead .brand{justify-content:center;font-size:27px;gap:8px;letter-spacing:-.04em}
.dhead .mark{width:36px;height:36px}
.testchip.sm{padding:7px 12px;border-radius:999px;font-size:13px;gap:7px;background:var(--s1);color:var(--text);box-shadow:inset 0 0 0 1px var(--line2)}
.testchip.sm i{width:7px;height:7px}
.dialog.full h2.dtitle{margin:14px 0 4px;text-align:center;font:700 38px/1.1 var(--sans);letter-spacing:-.035em}
.dsub{margin:0;text-align:center;color:var(--muted);font-size:17px}
.dmeta{display:flex;justify-content:center;align-items:center;gap:16px;margin:16px 0 10px;color:var(--muted);font-size:17px}
.dmeta .clk{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.dmeta .clk .ico{width:26px;height:26px}
.dmeta b{color:var(--text);font-weight:700}
.dmeta .vsep{height:30px;margin:0}
.wheel-stage{width:min(100%,430px);margin:6px auto 18px;overflow:visible}
.wheel-pointer{top:-6px;left:calc(50% - 21px);width:42px;height:34px;background:#fff;clip-path:polygon(0 0,100% 0,100% 40%,50% 100%,0 40%);filter:none;z-index:3;border-radius:3px}
.wheel-hub{position:absolute;z-index:2;left:50%;top:50%;width:29%;height:29%;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#0b0e16;box-shadow:0 0 0 5px #151b29,0 0 0 7px #2a3347}
.wheel-hub .gimg,.wheel-hub .art3d{width:100%;height:100%;object-fit:cover;transform:scale(1.25)}
.wheel-dot{width:22%;height:22%;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px #0b0e16,0 0 0 8px #fff}
.wheel-label-content{gap:3px}
.wheel-label-content .wheel-avatar{width:42px;height:42px;font-size:19px;font-weight:600;box-shadow:0 0 0 2px #ffffffb0}
.wheel-sector-name{padding:0;background:none;font:700 16px/1.2 var(--sans);color:#fff;text-shadow:0 1px 6px #0006}
.wheel-sector-pct{font:500 16px/1.2 var(--sans);color:#fff;text-shadow:0 1px 6px #0006}
.stat2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 26px}
.stat{padding:14px 18px 16px;border-radius:18px;background:var(--s1);box-shadow:inset 0 0 0 1px var(--line2)}
.stat span{display:block;color:var(--muted);font-size:16px}
.stat b{display:block;margin-top:4px;font:700 36px/1.1 var(--sans);letter-spacing:-.035em}
.stat b.ok{color:#2fe0a8}
.stat b small{font:500 22px/1 var(--sans);letter-spacing:0;color:var(--muted)}
.plist h3{margin:0 0 6px;font:700 24px/1.2 var(--sans);letter-spacing:-.03em}
.plist h3 small{font:500 22px/1 var(--sans);color:var(--muted)}
.wheel-list{max-height:none;margin:0;overflow:visible}
.wheel-person{gap:16px;padding:11px 0 11px;border-bottom:0}
.wheel-person .wheel-avatar{width:52px;height:52px;font-size:22px;font-weight:600}
.wheel-person-name{display:flex;align-items:center;gap:10px;min-width:0;padding:15px 0;border-bottom:0;font-size:19px}
.wheel-person-name b{font-weight:500;font-size:19px;display:block}
.you-chip{padding:4px 12px;border-radius:10px;background:#2f7dff26;color:#4f8dff;font-size:15px;font-weight:500}
.wheel-amt{margin-left:auto;font:600 19px/1 var(--sans)}
.wheel-share{font-weight:400;font-size:19px;color:var(--muted);min-width:78px;text-align:right}
.wheel-person{box-shadow:inset 0 -1px 0 var(--line)}
.wheel-note{margin:16px 0 16px;text-align:center;color:var(--muted);font-size:16px}
.amts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 14px}
.amts button{min-height:56px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line2);font-size:20px;font-weight:500;color:var(--text)}
.amts button.on{box-shadow:inset 0 0 0 2px var(--accent)}
.btn.big{min-height:62px;border-radius:16px;font-size:22px}
.balline{margin:14px 0 18px;text-align:center;color:var(--muted);font-size:17px}
.dialog.full .wheel-demo{margin:8px 0 0}
.wheel-result{margin:6px 0 18px}
.rthumb .gimg{width:100%;height:100%;object-fit:cover;display:block}
.nav button.active .ico{color:var(--accent)}
/* sizing pass to match the 390px reference */
.dialog.full h2.dtitle{font-size:34px;margin-top:10px}
.dsub{font-size:15px}
.dmeta{font-size:15px;gap:14px;margin:14px 0 8px}
.dmeta .clk .ico{width:22px;height:22px}
.dmeta .vsep{height:26px}
.wheel-hub{width:25%;height:25%;box-shadow:0 0 0 4px #121826,0 0 0 6px #2a3347}
.wheel-dot{width:20%;height:20%}
.wheel-label-content .wheel-avatar{width:34px;height:34px;font-size:16px}
.wheel-sector-name{font-size:14px}
.wheel-sector-pct{font-size:14px}
.stat{padding:12px 16px 14px;border-radius:16px}
.stat span{font-size:14px}
.stat b{font-size:32px}
.stat b small{font-size:19px}
.plist h3{font-size:22px}
.plist h3 small{font-size:20px}
.wheel-person{gap:14px;padding:9px 0}
.wheel-person .wheel-avatar{width:40px;height:40px;font-size:17px}
.wheel-person-name{flex:1;min-width:0;padding:10px 0;font-size:16px;gap:8px}
.wheel-person-name b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:500}
.you-chip{flex:none;padding:3px 10px;font-size:13px}
.wheel-amt{font-size:16px;white-space:nowrap}
.wheel-share{font-size:16px;min-width:64px}
.wheel-note{font-size:14px}
.amts button{min-height:50px;font-size:17px}
.btn.big{min-height:56px;font-size:19px}
.balline{font-size:14px}
/* home sizing pass to match the 390px reference */
.balcard,.rcard,.seg{min-width:0}
.top{padding:16px 0 12px}
.brand.big{font-size:27px;gap:9px;letter-spacing:-.04em}
.brand.big .mark{width:34px;height:34px}
.lang{font-size:15px}.lang .ico{width:18px;height:18px}
.balcard{padding:12px 14px 12px 16px;margin-bottom:20px;border-radius:18px}
.balinfo{min-width:0}
.balinfo .lbl{font-size:13px}
.balinfo .val .ico{width:24px;height:24px}
.balinfo b{font-size:27px}.balinfo em{font-size:17px}
.testchip{padding:8px 12px;font-size:13px;border-radius:12px;gap:7px}
.testchip i{width:7px;height:7px}
.section.big h2{font-size:30px}
.plus{width:38px;height:38px;border-radius:11px}.plus .ico{width:20px;height:20px}
.seg{border-radius:14px;margin-bottom:14px}.seg button{min-height:36px;font-size:14px;border-radius:11px}
.rcard{padding:12px;border-radius:18px;gap:12px}
.rmain{gap:14px}
.rthumb{width:102px;height:102px;border-radius:14px}
.rinfo{gap:2px}
.rinfo h3{font-size:18px}
.rinfo .meta{font-size:14px}.rinfo .meta .ico{width:18px;height:18px}
.rinfo .bank{font-size:30px}.rinfo .bank small{font-size:17px}
.chip-status{font-size:12.5px}.serial{font-size:12.5px}
.pill{font-size:13px;padding:6px 12px;border-radius:10px}
.rfoot{font-size:14px;padding-top:10px}
.rfoot .clk{gap:8px}.rfoot .clk .ico{width:19px;height:19px}
.vsep{height:22px}
.rcard>.btn.full{min-height:46px;border-radius:14px;font-size:15px}
.rfoot .btn.sm{min-height:40px;padding:0 20px;font-size:15px;border-radius:12px}
.nav{padding:6px 6px calc(6px + var(--safe-b))}.nav button{font-size:12px;min-height:50px}

/* Giftlane refinement: solid graphite, compact cards and a small stationary prize. */
:root{--bg:#101216;--s1:#1b1e25;--s2:#242832;--line:#2b303b;--line2:#353c49;--text:#f5f6fa;--muted:#a6adbb;--faint:#939cab;--accent:#527bff;--ok:#35d9ae}
.wrap{max-width:600px;padding:0 16px calc(100px + var(--safe-b))}
.top{padding:20px 0 18px}.lang{min-width:44px;min-height:44px;background:var(--s1);border-radius:12px}
.balcard{border-radius:16px;box-shadow:none;margin-bottom:24px;padding:16px}
.balinfo b{font-size:28px}.balinfo em{color:var(--muted);font-size:15px}
.testchip{font-size:12px;background:#e7ad2512;color:#edc576;border:1px solid #e7ad2522}
.section.big h2{font-size:28px}.section h2{font-size:26px;letter-spacing:-.035em}
.plus{width:44px;height:44px;border-radius:14px}
.seg{box-shadow:none;margin-bottom:8px}.seg button{min-height:40px}
.status-filters{display:flex;gap:6px;overflow-x:auto;margin:0 0 16px;scrollbar-width:thin;scrollbar-color:var(--line2) transparent}
.status-filters button{flex:none;min-height:40px;padding:0 10px;color:var(--muted);font-size:12px;border-bottom:2px solid transparent}
.status-filters button.on{color:var(--text);border-color:var(--accent)}
.rcard{padding:16px;border-radius:18px;box-shadow:none;border:1px solid #ffffff08;gap:14px}
.rmain{gap:14px}.rthumb{width:96px;height:104px;border-radius:14px}.rinfo h3{font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.rinfo .bank{font-size:29px;margin:5px 0}.rinfo .meta{font-size:13px}.rinfo .meta .ico{width:16px;height:16px}
.rtop{gap:8px}.serial{color:var(--muted);font-size:11px;white-space:nowrap}.chip-status{font-size:11px;line-height:1.4}
.pill{font-size:12px;padding:5px 8px;background:#527bff16;color:#b8c8ff}
.btn{background:var(--accent);color:white;border-radius:14px;min-height:48px}
.btn.secondary,.btn.ghost{background:var(--s2);color:var(--text);box-shadow:none}
.rcard>.btn.full{min-height:46px}.rfoot{font-size:13px}.rfoot .btn.sm{padding:0 18px}
.nav{max-width:600px;left:50%;transform:translateX(-50%);background:#181b23f5;border:1px solid var(--line);border-radius:18px 18px 0 0;padding:8px 8px calc(8px + var(--safe-b))}
.nav button{color:var(--muted);font-size:11px;min-height:48px}.nav button.active{color:#8da7ff}.nav .ico{width:22px;height:22px}
.panel,.gift{background:var(--s1);border:1px solid var(--line);border-radius:18px;box-shadow:none}.panel{padding:20px}
.gift-art{background:var(--s2)}.notice-box{border-radius:12px;background:#527bff0b;border-color:#527bff30;color:var(--muted)}
.persona,.pick-gift{border-radius:14px;background:var(--s2);border-color:var(--line)}
.persona:has(input:checked),.pick-gift.selected{border-color:var(--accent);background:#527bff14}
.balance-big{font-size:38px}.balance-big small{font-size:18px;color:var(--muted)}
#profile-privacy{margin-top:16px}#profile-privacy p{margin-top:12px;font-size:14px;color:var(--muted)}
.dialog{background:var(--bg)}.dialog.full{max-width:520px;padding:calc(12px + env(safe-area-inset-top,0px)) 16px calc(28px + var(--safe-b));overscroll-behavior:contain}
.dhead{grid-template-columns:40px 1fr auto;gap:4px;margin-bottom:16px}.dhead .brand{font-size:22px;gap:6px}.dhead .mark{width:30px;height:30px}.testchip.sm{font-size:10px;padding:7px 8px;gap:5px}
.dialog.full h2.dtitle{font-size:28px;line-height:1.2;margin:0 0 6px;overflow-wrap:anywhere}.dsub{font-size:13px}.dmeta{font-size:12px;gap:10px;margin:18px 0}.dmeta .clk{gap:6px}.dmeta .clk .ico{width:18px;height:18px}
.wheel-stage{margin:12px auto 22px}.wheel-pointer{width:26px;height:28px;left:calc(50% - 13px);top:-4px}
.wheel-hub{width:24%;height:24%;background:#171b25;box-shadow:0 0 0 3px #141923,0 0 0 5px #354156}
.wheel-hub .gimg,.wheel-hub .art3d{width:76%;height:76%;object-fit:contain;transform:none;border-radius:50%}
.hub-bank{display:flex;flex-direction:column;text-align:center;max-width:90%;line-height:1.15}.hub-bank b{font-size:clamp(12px,4.4vw,22px);letter-spacing:-.04em}.hub-bank small{font-size:10px;color:var(--muted);margin-top:4px}
.wheel-label-content .wheel-avatar{width:28px;height:28px;font-size:13px;background:#182131!important;box-shadow:0 0 0 2px #ffffffa0}
.wheel-sector-name{font-size:12px;max-width:80px!important;text-shadow:0 1px 3px #0009}.wheel-sector-pct{font-size:11px;text-shadow:0 1px 3px #0009}
.stat2{gap:10px;margin-bottom:16px}.stat{padding:12px 14px;background:var(--s1);box-shadow:none}.stat span{font-size:12px}.stat b{font-size:28px}.stat b small{font-size:14px}.stat b.ok{color:#3ddbb1}
.round-action{margin:0 0 22px}.amts{gap:8px;margin-bottom:10px}.amts button{background:var(--s1);min-height:44px;font-size:15px}.btn.big{font-size:16px;min-height:50px}.balline{font-size:12px;margin:10px 0}
.plist h3{font-size:19px}.plist h3 small{font-size:15px}.wheel-person{gap:9px;padding:10px 0}.wheel-person .wheel-avatar{width:34px;height:34px;font-size:14px}.wheel-person-name{gap:5px}.wheel-person-name b{font-size:14px}.you-chip{font-size:10px;padding:3px 5px}.wheel-amt{font-size:12px}.wheel-share{font-size:12px;min-width:52px;color:var(--text)}
.wheel-note{font-size:11px;margin:16px 0}.wheel-result.visible{border-color:#527bff55;background:var(--s1);padding:22px 16px;border-radius:18px}.wheel-result h3{font-size:24px}
.dialog,.wheel-list{scrollbar-width:thin;scrollbar-color:#53617d transparent}.dialog::-webkit-scrollbar{width:5px}.dialog::-webkit-scrollbar-thumb{background:#53617d;border-radius:8px}
@media(max-width:350px){.rthumb{width:78px;height:94px}.rinfo h3{font-size:16px}.rfoot .btn.sm{padding:0 12px}.testchip{font-size:10px;padding:8px}.dhead .brand{font-size:19px}.wheel-sector-name{max-width:62px!important;font-size:11px}.wheel-sector-pct{font-size:10px}.wheel-label-content .wheel-avatar{width:24px;height:24px}.status-filters button{padding:0 8px;font-size:11px}}

.wheel-reduced,.wheel-reduced *{animation:none!important;transition:none!important}
.balinfo .val .ico.star,.balance-big .ico.star{color:#f6b73c}
