/* Shared portal presentation; state, authentication and settlement remain in existing controllers. */
body{color:#1d1d1f;background:#f5f5f7;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',sans-serif}
body::before{background:#f5f5f7}
body .candidate-note{background:#eeeef1;border-color:#e1e1e6;color:#65656c;font-size:11px;letter-spacing:.02em}
body header{background:#fbfbfd;border-bottom:1px solid #e5e5ea;box-shadow:none}
body .header-inner{min-height:88px}
body .brand{color:#1d1d1f;text-shadow:none;letter-spacing:-.035em;font-size:25px;font-weight:650}
body .brand small{color:#73737a;font-size:11px;letter-spacing:.02em}
body .brand-heart{display:none}
body .brand{min-width:0}
.language-picker{display:flex;align-items:center;flex:0 0 auto;height:36px;margin-left:12px;padding:0 10px;border:1px solid #e4ddd4;border-radius:12px;background:#fff;color:#1c1c1e}
.language-picker select{max-width:7.2rem;border:0;outline:0;background:transparent;color:#1c1c1e;font:inherit;font-size:13px;cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:640px){.language-picker{height:34px;margin-left:8px;padding-inline:8px}.language-picker select{font-size:16px;max-width:6.6rem}}
nav{gap:4px;padding:6px;border:1px solid #e1e1e6;border-radius:23px;background:#fffffff5;box-shadow:0 8px 32px #1d1d1f12;backdrop-filter:none}
nav button{min-height:48px;border:0;border-radius:17px;color:#6e6e73;font-size:14px;font-weight:550;text-shadow:none}
nav button.active{background:#1d1d1f;color:#fff;box-shadow:none;text-shadow:none}
nav button:hover:not(.active){background:#f1f1f4}
body .nav-symbol{font-size:21px}
body main{padding-top:28px}
body #session-panel,body #profile-setup{border:1px solid #e5e5ea;border-radius:22px;background:#fff;box-shadow:none}
body #session-panel>.brand{font-size:15px;letter-spacing:0}
body #session-heading{color:#1d1d1f;font-size:clamp(24px,3.2vw,34px);letter-spacing:-.04em;font-weight:600}
body .session-copy,body #session-panel summary,body #profile-setup .muted{color:#6e6e73}
body .session-status,body .state-line{color:#68686f;font-size:12px}
body #session-panel .tile{border-color:#e5e5ea;background:#f5f5f7;box-shadow:none}
body #session-panel .tile small,body #session-panel .tile strong{color:#525259}
body #session-panel .button,body #profile-setup .button{border:1px solid #dedee3;border-radius:11px;background:#1d1d1f;box-shadow:none;color:#fff;text-shadow:none;font-weight:550;transform:none}
body #session-panel .button:disabled,body #profile-setup .button:disabled{background:#f2f2f5;color:#929299;border-color:#e8e8ed}
body #session-panel .level-badge{border:0;border-radius:7px;background:#f0f0f3;color:#73737a;text-shadow:none;font-weight:500}
body #profile-setup h2,body #profile-setup label{color:#303036}
body #profile-setup .field{background:#fafafa;border-color:#d5d5dc;box-shadow:none;color:#1d1d1f}
body #profile-setup .field::placeholder{color:#86868b}
body #profile-setup .error{color:#af2440}
body #profile-setup .avatar-choice{border-color:#e1e1e6;background:#f6f6f8;box-shadow:none}
body #profile-setup .avatar-choice.active{border-color:#313138;background:#f0edf4;box-shadow:0 0 0 1px #313138}
body #profile-setup .avatar-uploader input{background:#f7f7f9;border-color:#d1d1d8;color:#6e6e73}
body :focus-visible,.category-dialog :focus-visible{outline:3px solid #2764cd;outline-offset:4px}
.home-lead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px;margin:12px 0 20px}
.home-lead>#platform-status{margin:0;min-height:0;flex:1 1 auto}
.home-slogan-title{display:none}
body:has([data-panel="games"]:not([hidden])) .home-slogan-title{display:block;flex:0 0 auto;margin:0;padding-right:13px;color:#1f7a4d;font-size:18px;font-weight:650;letter-spacing:.06em;line-height:1.4;text-align:right;white-space:nowrap}
[data-panel="games"] .home-slogan{margin:0 0 18px;text-align:left}
[data-panel="games"] .home-slogan-sub{margin:0;padding-right:13px;color:#1d1d1f;font-size:20px;font-weight:650;letter-spacing:0;line-height:1.4;white-space:nowrap;text-align:justify;text-align-last:justify}
.burn-line{display:none}
body:has([data-panel="games"]:not([hidden])) .burn-line:not([hidden]){display:block;flex:1 0 100%;margin:0;color:#55545f;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.burn-line strong{color:#b45309;font-weight:650;white-space:nowrap}
@media(max-width:980px){.home-lead{margin-bottom:14px}}
[data-panel="games"] .home-welcome{margin-bottom:25px;padding:0;border:0;background:none;box-shadow:none}
[data-panel="games"] .home-welcome strong{color:#1d1d1f;font-size:21px;letter-spacing:-.025em;font-weight:600}
[data-panel="games"] .home-welcome small{color:#73737a;font-size:12px}
[data-panel="games"] .home-avatar{border:0;border-radius:17px;background:#e9e9ee;box-shadow:none;color:#82828a}
[data-panel="games"] .balance-trigger{max-width:45%;gap:9px;padding:11px 16px;border:1px solid #e3e3e8;border-radius:15px;background:#fff;box-shadow:none;color:#53535a;font-size:11px;font-weight:500}
[data-panel="games"] .balance-trigger .heart-mark{display:none}
[data-panel="games"] #game-balance-value{color:#1d1d1f;font-size:16px;font-weight:600}
[data-panel="games"] .checkin-hero{gap:32px;padding:34px 38px;border:1px solid #36353c;border-radius:26px;background:radial-gradient(ellipse at 84% 28%,#4d3b4e66,transparent 56%),#242329;box-shadow:0 10px 25px #1d1d1f08}
[data-panel="games"] .checkin-hero::after{right:190px;top:-26px;color:#eeb6c50c;transform:rotate(-13deg);font-size:242px}
[data-panel="games"] .checkin-hero small{color:#bfb9c3;font-size:10px;font-weight:550;letter-spacing:.14em}
[data-panel="games"] .checkin-hero h2{margin:10px 0 11px;color:#fff;font-size:clamp(29px,4vw,40px);font-weight:600;letter-spacing:-.04em;text-shadow:none}
[data-panel="games"] .checkin-hero p{color:#e3dee6;font-size:13px}
[data-panel="games"] .progress{margin-top:14px;color:#bdb7c3;font-size:11px}
[data-panel="games"] .checkin-action button{min-height:46px;padding:11px 20px;border:1px solid #e8e3eb;border-radius:13px;background:#fff;color:#27252d;box-shadow:none;text-shadow:none;font-size:13px;font-weight:600;transform:none}
[data-panel="games"] .checkin-action button:disabled{border-color:#615b67;background:#44404a;color:#d7d0dc;box-shadow:none}
[data-panel="games"] .checkin-action span{color:#b7afbf;font-size:10px}
[data-panel="games"] .qualification-note{padding:11px 1px;margin-top:9px;border:0;background:none;color:#77777e;font-size:11px;line-height:1.8}
.home-catalog{margin-top:36px}
.catalog-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.eyebrow{margin:0;color:#8a8a91;font-size:10px;font-weight:600;letter-spacing:.15em;line-height:1.6}
.catalog-heading h2{margin:7px 0 0;color:#1d1d1f;font-size:clamp(25px,3.5vw,34px);font-weight:600;letter-spacing:-.04em;line-height:1.4}
.catalog-heading>p{margin:0 0 4px;color:#85858c;font-size:12px;line-height:1.8}
.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.category-card{width:100%;min-width:0;overflow:hidden;padding:0;border:1px solid #e9e9ed;border-radius:25px;background:#fff;color:#1d1d1f;box-shadow:0 3px 7px #1d1d1f03;text-align:left;transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s,border-color .3s}
.category-card>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;background:#f0eeeb;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.category-copy{display:flex;flex-direction:column;padding:23px 25px 20px}
.category-overline{color:#86868b;font-size:9px;font-weight:600;letter-spacing:.13em;line-height:1.6}
.category-copy strong{margin-top:6px;font-size:24px;font-weight:600;letter-spacing:-.035em;line-height:1.4}
.category-description{margin-top:9px;color:#77777e;font-size:12px;line-height:1.8}
.category-foot{display:flex;justify-content:space-between;align-items:center;margin-top:22px;color:#4b4b52;font-size:11px;line-height:1.6}
.category-foot>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#f2f2f5;color:#62626a;font-size:17px;font-weight:400}
.category-pending{cursor:default}
.category-pending .category-foot{color:#8b8b92}
.catalog-note{margin:27px 0 0;text-align:center;color:#929299;font-size:11px;letter-spacing:.025em;line-height:1.8}
.category-dialog{width:min(560px,calc(100% - 32px));max-height:min(84vh,84svh);padding:28px;border:1px solid #e7e7ec;border-radius:26px;background:#fbfbfd;color:#1d1d1f;box-shadow:0 24px 90px #0003;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
.category-dialog::backdrop{background:#1b1b205e;backdrop-filter:none}
.game-access-details{margin-top:20px;padding:20px;border:1px solid #e2dce9;border-radius:18px;background:#f7f4fa}
.game-access-details h3{margin:0;font-size:17px}.game-access-details p,.game-access-details li{font-size:13px;line-height:1.7;color:#66616d}.game-access-details ul{padding-left:20px;margin:12px 0}.game-access-details button{margin-top:6px;border:1px solid #d9d2df;border-radius:10px;background:#fff;color:#554660;box-shadow:none;text-shadow:none}
.category-game [data-entry-action]{display:block;margin-top:5px;color:#79548b;font-size:11px}
.dog-identity-rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.dog-identity-room{display:flex;flex-direction:column;gap:6px;border:1px solid #e0dbe7;border-radius:12px;background:#fff;padding:14px}.dog-identity-room strong{font-size:14px}.dog-identity-room small{font-size:11px;color:#77717e}#connect-dog-identity{margin-left:8px}
.category-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;position:sticky;top:0;z-index:1;background:#fbfbfd;padding-bottom:10px}
.category-dialog h2{margin:6px 0 0;color:#1d1d1f;font-size:28px;font-weight:600;letter-spacing:-.035em}
.category-close{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;padding:0;border:0;border-radius:50%;background:#eaeaf0;color:#696970;font-size:25px;line-height:1}
.category-access-note{margin:15px 0 21px;color:#77777e;font-size:12px;line-height:1.8}
.category-game-list{display:grid;gap:18px;align-items:start}
.board-game-cards{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch}
.catalog-game-card{display:block;width:100%;min-width:0;overflow:hidden;padding:0;border:1px solid #d4bded;border-radius:20px;text-align:left;box-shadow:0 5px 15px #20112b14;transition:border-color .18s,box-shadow .18s}
.catalog-game-card:disabled{cursor:not-allowed;opacity:1}
.catalog-game-card .game-art{width:100%;height:auto}
.catalog-game-card .game-caption{display:block;padding:17px 16px 15px}
.catalog-game-card .game-caption strong{display:block;font-size:18px;font-weight:650;line-height:1.5;color:#fff0c6}
.catalog-game-card .game-caption small{display:block;margin-top:4px;color:#d3b9e7;font-size:10px;line-height:1.7;letter-spacing:.06em}
.catalog-game-card .game-threshold{display:block;min-height:40px;margin:11px 0;color:#e2cbef;font-size:11px;line-height:1.8}
.catalog-game-card .entry-label{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;color:#ffe09a;font-size:12px;line-height:1.6}
.catalog-game-card [data-entry-action]{margin:0;color:inherit;font:inherit}
.catalog-game-card:disabled .entry-label{color:#d5c4df}
.action-game-cards{max-width:400px;margin-inline:auto}
.dog-game-card{border-color:#d5c6ac;background:#f5efe5}
.dog-game-cover{display:block;position:relative;isolation:isolate;overflow:hidden;aspect-ratio:5/4;background:radial-gradient(ellipse at 75% 42%,#ece1cd,transparent 65%),#f7f2e9}
.dog-game-cover>img{position:absolute;right:0;bottom:-7%;width:61%;height:101%;object-fit:contain;object-position:bottom}
.dog-game-wordmark{position:absolute;z-index:1;left:8%;top:21%;color:#56412d;letter-spacing:-.05em;font-weight:750;text-shadow:0 1px #fff7}
.dog-game-wordmark small{display:block;margin-bottom:13px;color:#89765c;font-size:9px;letter-spacing:.14em}
.dog-game-wordmark>span{font-size:clamp(30px,6vw,43px);line-height:1.2}
.dog-game-card .game-caption{background:#fff;color:#4d4138}
.dog-game-card .game-caption strong{color:#40342c}
.dog-game-card .game-caption small{color:#8a7c70;letter-spacing:0}
.dog-game-card .entry-label{margin-top:14px;border-color:#ede6dc;color:#705b3b}
.dog-game-card:disabled .entry-label{color:#86776a}
#category-dialog{width:min(860px,calc(100% - 32px));max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:28px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;color-scheme:light}
#category-dialog[data-category="action"]{width:min(560px,calc(100% - 32px))}
#category-dialog .category-dialog-head{align-items:center;top:-1px;padding-top:2px;padding-bottom:14px}
#category-dialog .category-close{width:44px;height:44px;min-width:44px}
body:has(#category-dialog[open]){overflow:hidden}
@media(hover:hover){.category-card:not(:disabled):hover{transform:translateY(-5px);border-color:#d9d9e0;box-shadow:0 15px 36px #1d1d1f0c}.category-card:not(:disabled):hover>img{transform:scale(1.025)}.catalog-game-card:not(:disabled):hover{transform:none;filter:none;border-color:#ad8dbf;box-shadow:0 8px 24px #20112b22}.dog-game-card:not(:disabled):hover{border-color:#b39d7b}.category-close:hover{background:#dedee6}}
@media(min-width:1500px){.category-grid{gap:26px}}
@media(max-width:980px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-heading>p{max-width:16em}}
@media(max-width:640px){
  body .header-inner{min-height:74px}body .brand{font-size:21px}body .brand small{font-size:9px}body .brand-heart{width:36px;height:36px;font-size:25px;border-radius:11px}
  nav{border-radius:21px}nav button{min-height:45px;font-size:13px;border-radius:15px}body .nav-symbol{font-size:19px}
  [data-panel="games"] .home-welcome{margin-bottom:20px;align-items:center;gap:12px}[data-panel="games"] .home-welcome strong{font-size:16px}[data-panel="games"] .home-welcome small{font-size:10px}[data-panel="games"] .home-avatar{width:42px;height:42px;border-radius:13px;font-size:27px}[data-panel="games"] .balance-trigger{flex-shrink:0;padding:9px 11px;font-size:10px}[data-panel="games"] #game-balance-value{font-size:14px}
  [data-panel="games"] .checkin-hero{padding:25px 23px;gap:22px;border-radius:23px}[data-panel="games"] .checkin-hero h2{font-size:31px}[data-panel="games"] .checkin-hero::after{right:-6px;top:16px;font-size:210px}[data-panel="games"] .checkin-hero p{font-size:12px}[data-panel="games"] .progress{font-size:10px}[data-panel="games"] .checkin-action{gap:16px;flex-wrap:wrap}[data-panel="games"] .checkin-action span{flex-basis:100%;max-width:none}[data-panel="games"] .checkin-action button{min-width:133px;font-size:12px}[data-panel="games"] .qualification-note{font-size:10px}
  .home-catalog{margin-top:27px}.catalog-heading{display:block;margin-bottom:20px}.catalog-heading h2{font-size:27px}.catalog-heading>p{max-width:none;margin-top:10px;font-size:11px}.eyebrow{font-size:9px}.category-grid{gap:13px}.category-card{border-radius:19px}.category-copy{padding:16px 14px 14px}.category-overline{font-size:7px;letter-spacing:.09em}.category-copy strong{margin-top:5px;font-size:20px}.category-description{margin-top:8px;font-size:10px;line-height:1.8}.category-foot{margin-top:15px;font-size:10px}.category-foot>span{width:23px;height:23px;font-size:15px}.catalog-note{font-size:10px;margin-top:22px}
  .category-dialog{padding:23px 19px;border-radius:23px}.category-dialog h2{font-size:25px}.category-access-note{font-size:11px}
}
@media(max-width:350px){.category-grid{grid-template-columns:minmax(0,1fr)}.category-copy{padding:20px}.category-copy strong{font-size:24px}.category-description{font-size:12px}.category-overline{font-size:9px}.category-foot{font-size:11px}}
@media(prefers-reduced-motion:reduce){.category-card,.category-card>img{transition:none!important;transform:none!important}}

#enter-dog-room{width:100%;margin-top:12px;min-height:46px;background:#302c38;color:#fff;border-color:#302c38;font-weight:600}#enter-dog-room:disabled{background:#e8e4ec;border-color:#e8e4ec;color:#8a8392}

/* Keep the active portrait game clear of the portal's fixed navigation. */
body:has(#dog-panel:not([hidden])){background:#10141d}
body:has(#dog-panel:not([hidden])) header,body:has(#dog-panel:not([hidden])) .candidate-note,body:has(#dog-panel:not([hidden])) #session-panel,body:has(#dog-panel:not([hidden])) #platform-status{display:none}
body:has(#dog-panel:not([hidden])) main{max-width:720px;padding:12px 12px 20px}
#dog-panel .page-head h1{font-size:26px;margin:0 0 6px}
#dog-panel .page-head p,#dog-status{font-size:12px;line-height:1.5;margin:6px 0}
#dog-panel .account-actions{margin:8px 0}
#dog-player{height:calc(100dvh - 178px);min-height:420px;border-radius:14px}

/* Stable mobile typography and intrinsic artwork sizing; user pinch zoom remains available. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.catalog-game-card:active:not(:disabled){box-shadow:inset 0 0 0 2px #b596c2;transform:none}
@media(max-width:640px){
  #category-dialog{padding:20px 17px;border-radius:22px;width:calc(100% - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  #category-dialog[data-category="action"]{width:calc(100% - 24px)}
  .board-game-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
  .catalog-game-card{border-radius:16px}.catalog-game-card .game-caption{padding:12px 11px}.catalog-game-card .game-caption strong{font-size:16px}.catalog-game-card .game-caption small{font-size:9px}.catalog-game-card .game-threshold{min-height:44px;font-size:10px}.catalog-game-card .entry-label{font-size:11px}
  .dog-game-wordmark>span{font-size:36px}.action-game-cards{max-width:360px}
  .field,input,select,textarea{font-size:16px!important}
  .game-access-details{padding:16px}.game-access-details button{min-height:44px;max-width:100%;white-space:normal}
  #connect-dog-identity{margin-left:0}
}
@media(max-width:350px){.board-game-cards{grid-template-columns:minmax(0,1fr)}.board-game-cards .catalog-game-card{max-width:260px;justify-self:center}}
@media(prefers-reduced-motion:reduce){.catalog-game-card{transition:none!important;transform:none!important}}

@media(pointer:coarse){.field,input,select,textarea{font-size:16px!important}}

/* Release palette shared by games, account, market, rules and native dialogs. */
:root{color-scheme:light;--bg:#f5f5f7;--ink:#1d1d1f;--muted:#71717b;--line:#e5e5eb;--panel:#fff;--field:#fafafa;--gold:#71608d;--gold-light:#24232b;--shadow:0 4px 18px #24232b05;--radius:20px;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue',sans-serif}
body{background:var(--bg);color:var(--ink);padding-inline:env(safe-area-inset-left,0px) env(safe-area-inset-right,0px);line-height:1.6}
body::before{background:var(--bg)}
.wrap{width:min(1160px,calc(100% - 40px))}main{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
nav{bottom:calc(12px + env(safe-area-inset-bottom,0px));width:min(640px,calc(100% - 28px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)))}
:focus-visible{outline:3px solid #6e61a4;outline-offset:3px}
.page-head h1,.section-head,.rule h2,.profile-name-line strong,#profile-setup h2{color:var(--ink);text-shadow:none;letter-spacing:-.025em}
.panel,.tile,.rule,.table,.unopened-card{background:#fff;border:1px solid var(--line);box-shadow:none}
.tile{padding:17px 18px}.tile small,.tile strong{color:var(--ink)}.tile small{color:var(--muted);font-size:12px}.tile strong{font-size:16px;font-weight:600}
.info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile{gap:14px}.profile-name-line strong{font-size:22px}.profile-avatar{border:0;background:#efedf4;box-shadow:none;border-radius:18px}.level-badge,.status-pill{border:0;background:#f0edf5;color:#706080;text-shadow:none;font-weight:550}
.button,.confirm{min-height:44px;padding:10px 17px;border:1px solid #302d37;border-radius:12px;background:#302d37;color:#fff;box-shadow:none;text-shadow:none;font-weight:550;transform:none}
.button:hover:not(:disabled),.button:active:not(:disabled),.confirm:hover:not(:disabled){background:#45414e;filter:none;transform:none;box-shadow:none}
.button:disabled,.confirm:disabled{border-color:#e7e5ec;background:#eeeef2;color:#89858f;box-shadow:none;text-shadow:none}
#sign-out,#refresh-session,#cancel-profile,#refresh-platform,#edit-profile{background:#fff;color:#56515f;border:1px solid #dedbe5;box-shadow:none;text-shadow:none}
body[data-session=authenticated] .session-actions .button{min-height:40px}.account-actions{gap:9px}
.field,.transfer-fields .field{background:#fafafa;color:var(--ink);border:1px solid #dad8e1;box-shadow:none;border-radius:12px}.field::placeholder{color:#8d8994}.field:read-only{color:#73707b}.field:focus{outline:2px solid #9c8cb1;outline-offset:1px;border-color:#8b77a5}
.transfer-fields select option{background:#fff;color:var(--ink)}.profile-form-grid label,.transfer-fields label,.c2c-dialog label{color:#514b5d}
.avatar-choice{background:#f6f4f8;border-color:#dfdbe6;box-shadow:none}.avatar-choice.active{background:#f0ebf6;border-color:#8a72a0;box-shadow:0 0 0 1px #8a72a0}
.error{color:#ab3151}.muted,.note,.state-line,.empty,.disabled-note,.rule p{color:var(--muted)}.state-line{font-size:12px}.rule p{font-size:13px;line-height:1.95}.rule{margin-bottom:15px;padding:24px}.rule h2{font-weight:600}
.balance-card{border:1px solid #302d38;background:#302d38;box-shadow:none}.balance-card small,.balance-card p{color:#d1cbd8}.balance-card strong{color:#fff;font-weight:600;letter-spacing:-.03em}.balance-card::after{color:#ffffff06}.balance-card p{max-width:100%}
.filters button,.market-tabs button{border:1px solid #e2dfe7;background:#fff;color:#736c7c;box-shadow:none;text-shadow:none;min-height:42px;font-weight:500}.filters button.active,.market-tabs button.active{border-color:#746184;background:#f0ebf5;color:#665076;box-shadow:none}
.row{color:#403947;border-color:#eeecf2;font-size:13px}.row:nth-child(2n){background:#fbfafc}.game-balance-row>span:last-child,.history-row>span:nth-child(2){color:#554461;font-variant-numeric:tabular-nums}.history-row>span:last-child{color:#8a8293}.disabled-note{border-color:#e2dce9;background:#faf8fc}
.checkin-details,.help-details{margin:13px 0 0;border-bottom:1px solid var(--line);padding:0 1px 12px}.checkin-details>summary,.help-details>summary{font-size:12px;color:#77717f;min-height:34px;display:list-item;line-height:34px;list-style-position:inside}.checkin-details[open]>summary,.help-details[open]>summary{color:#4d405a}.checkin-details .qualification-note{padding:7px 0 0;margin:0}.help-details .disabled-note{margin:8px 0 0;padding:14px;font-size:12px}
/* One calm dialog surface; transfer controls retain their purple accent. */
dialog.category-dialog,dialog.overlay{width:min(600px,calc(100% - 28px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-height:calc(100dvh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));color:var(--ink);overscroll-behavior:contain;scrollbar-color:#c8c1d2 #f8f6fa;color-scheme:light}
dialog::backdrop,.category-dialog::backdrop{background:#25212c66;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}
.category-dialog{border-color:var(--line);box-shadow:0 20px 70px #28213424}.category-dialog-head{background:#fbfbfd}.category-close,.close{width:44px;height:44px;min-width:44px;border:0;background:#efedf3;color:#696170;box-shadow:none;font-size:27px}.category-close:hover,.close:hover{background:#e5e0eb}
.sheet{padding:0;border:1px solid #d8cfe4;background:#fff;border-radius:24px;box-shadow:0 20px 70px #28213424;overflow:hidden}.sheet-head{padding:12px;border-radius:0;border-bottom:1px solid #e4dceb;background:#f4eff9}.tabs{border:0;background:#eae3f1;gap:4px}.tab{color:#82718f;font-weight:550}.tab.active{background:#fff;color:#5f4776;border-color:transparent;box-shadow:0 1px 4px #33203f0c}
.exchange,.sheet-foot{background:#fff;padding:22px 24px;border-color:#ece7f1}.exchange h2,#dog-budget-dialog .sheet-head h2{color:#342b3c;font-size:23px;font-weight:600}.sheet-foot{padding-top:16px}.muted-inverse,.sheet-note{color:#85778e;font-size:12px;line-height:1.8}.fee-row{color:#655571}.fee-row strong{color:#5d4371}.sheet .confirm{background:#746084;border-color:#746084}.sheet .confirm:disabled{background:#efebf3;border-color:#e4ddea;color:#a298aa}.sheet .button{background:#fff;color:#6b587d;border-color:#e2d8eb}.sheet .button:hover:not(:disabled){background:#f7f3fb}#transfer-recovery label{color:#665772}
.c2c-actions .button{background:#746084;border-color:#746084;color:#fff}#c2c-preview dd:nth-last-child(3){color:#5c4474}.c2c-preview{font-size:13px}.c2c-preview dd{min-width:0;overflow-wrap:anywhere}.transfer-actions{gap:10px}.transfer-actions .button,.transfer-actions .confirm{margin:0}.transfer-actions .confirm{min-width:0}
/* The shell fills the visual viewport. The engine retains its own resolution. */
body.dog-playing nav{display:none!important}body.dog-playing #dog-panel,#dog-panel:fullscreen{background:#f5f4f7;color:#302b38}.dog-toolbar{background:#fff;border-bottom:1px solid #e8e3ed;padding:7px 12px;gap:10px}.dog-title h1{color:#3e3448;font-size:16px;font-weight:600}#dog-mode-note{color:#8a7f93}.dog-toolbar .button{background:#f6f3f9;border:1px solid #e5ddeb;color:#6b597c;box-shadow:none}.dog-toolbar .button:hover:not(:disabled),.dog-toolbar .button:active:not(:disabled){background:#eee7f5}#dog-panel #dog-status{padding:4px 13px;background:#faf8fc;color:#8c7f96;white-space:normal;font-size:11px;line-height:1.5}body.dog-playing #dog-player{background:#f0ecf4}
@media(max-width:640px){
 .wrap{width:calc(100% - 28px)}main{padding-top:20px;padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}.panel{padding:20px}.page-head h1{font-size:29px}.section-head{font-size:21px;margin-top:25px}.profile-name-line strong{font-size:20px}.profile-avatar{width:64px;height:64px;font-size:36px}.info-grid{gap:10px}.tile{padding:15px 13px}.tile strong{font-size:14px}.link-line{flex-wrap:wrap}.link-line input{flex-basis:calc(100% - 150px)}.link-line .button{flex-shrink:0;padding-inline:13px}.history-row{grid-template-columns:minmax(90px,1fr) minmax(0,1.7fr);font-size:12px;gap:6px 12px}.history-row>span:last-child{display:block;grid-column:1/-1;font-size:10px}.filters{gap:6px}.filters button{min-height:40px;padding:8px 11px;font-size:12px}.market-toolbar{gap:13px}.market-tabs button{min-width:100px}.rule{padding:20px}.rule p{font-size:12px}.category-dialog{padding:22px 18px}.sheet{border-radius:22px}.exchange,.sheet-foot{padding:20px 18px}.transfer-actions .button,.transfer-actions .confirm{min-height:46px}.dog-toolbar{gap:7px;padding:5px 8px}.dog-toolbar .button{padding:9px;min-height:44px;font-size:11px}.dog-title h1{font-size:14px}#dog-mode-note{font-size:10px}
}
@media(max-width:350px){.info-grid{grid-template-columns:1fr}.link-line input,.link-line .button{flex-basis:100%;width:100%}.dog-toolbar{gap:5px}.dog-toolbar-actions{gap:4px}.dog-toolbar .button{padding-inline:7px}.dog-title h1{font-size:13px}}
@media(max-height:480px) and (orientation:landscape){.dog-toolbar{padding:3px 9px}#dog-mode-note{display:none}#dog-panel #dog-status{padding-block:2px}dialog.category-dialog,dialog.overlay{max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.category-dialog{padding:18px}.exchange,.sheet-foot{padding:16px 20px}}
@media(prefers-reduced-motion:reduce){dialog::backdrop{backdrop-filter:none}}

/* Keep a rounded outer edge even when a short-screen sheet must scroll. */
dialog.overlay{border:1px solid #ded5e6;border-radius:24px;background:#fff;box-shadow:0 20px 70px #28213424}
dialog.overlay .sheet{border:0;border-radius:0;box-shadow:none}.sheet-foot{border-radius:0}#prepare-transfer{background:#fff;color:#746084;border-color:#ddcfe8}#prepare-transfer:hover:not(:disabled){background:#f7f3fb}

.catalog-game-card{background:#fff;border-color:#e3dfe8}.catalog-game-card .game-caption{background:#fff}.catalog-game-card .game-caption strong{color:#302a37}.catalog-game-card .game-caption small,.catalog-game-card .game-threshold{color:#817389}.catalog-game-card .entry-label{border-color:#ece6f2;color:#716080}.catalog-game-card:disabled .entry-label{color:#a299aa}.dog-arena-card.selected{background:#f5effa;border-color:#ad95bd;box-shadow:inset 0 0 0 1px #ad95bd33}.dog-arena-card small{color:#86718e}
@supports not(height:100dvh){dialog.category-dialog,dialog.overlay,#category-dialog{max-height:calc(100vh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}

dialog.overlay[open]{max-height:calc(100dvh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
@supports not(height:100dvh){dialog.overlay[open]{max-height:calc(100vh - 28px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}

/* Short landscape sheets keep their only close control reachable while scrolling. */
dialog.overlay .sheet{overflow:visible}.sheet-head{position:sticky;top:0;z-index:3;background:#f4eff9}

.board-coming-soon{cursor:default}.catalog-game-card.board-coming-soon:hover{transform:none;filter:none;border-color:#e3dfe8;box-shadow:0 5px 15px #20112b14}.board-coming-soon .game-art{display:block;aspect-ratio:228/307}

/* Account, C2C, and rules use the same neutral surfaces as the games page.
   home.css already turns the shell light, but it kept a purple-tinted accent
   set (#f0ebf5 pills, #746184 borders, the violet file button) while the games
   catalog is built from hard neutrals (#1d1d1f ink, #e9e9ed hairlines, soft
   #1d1d1f03 shadows). Reading the two side by side, the catalog looks like a
   finished product and the other three pages like an earlier draft of it.
   These override only the pieces that still carry that accent, so the catalog
   itself is untouched. */
/* Segmented controls read like the bottom nav: quiet track, solid active pill. */
.filters,.market-tabs{gap:6px;padding:5px;border:1px solid #e9e9ed;border-radius:16px;background:#fff}
.filters button,.market-tabs button{min-height:42px;padding:8px 18px;border:0;border-radius:12px;background:none;box-shadow:none;color:#6e6e73;font-weight:550}
.filters button:hover:not(.active),.market-tabs button:hover:not(.active){background:#f1f1f4}
.filters button.active,.market-tabs button.active{border:0;background:#1d1d1f;box-shadow:none;color:#fff}
/* The file picker was the last violet control left on a light page. */
input::file-selector-button{min-height:34px;margin-right:12px;padding:7px 14px;border:1px solid #e3e3e8;border-radius:10px;background:#fff;box-shadow:none;color:#1d1d1f;font-weight:550;text-shadow:none}
input:hover::file-selector-button{background:#f5f5f7;border-color:#dcdce1}
/* Badges outside the session panel still had theme.css's bevelled gold. */
.level-badge,.status-pill{border:0;border-radius:7px;background:#f0f0f3;box-shadow:none;color:#73737a;font-size:11px;font-weight:500;text-shadow:none}
/* The catalog's cards sit on a hairline shadow; these had none, which is what
   made them read as flat blocks next to it. */
.panel,.tile,.rule,.table,.unopened-card{border-color:#e9e9ed;box-shadow:0 3px 7px #1d1d1f03}
/* Headings: the catalog tightens to -.04em at 600, these sat at -.025em. */
.page-head h1{font-weight:600;letter-spacing:-.04em;line-height:1.4}
.section-head,.rule h2,#profile-setup h2{font-weight:600;letter-spacing:-.03em}
.rule h2{font-size:17px;line-height:1.5}
.rule p{color:#6e6e73;line-height:1.95}
/* The account balance is that page's hero, so it gets the same dark card as
   check-in rather than a muted purple one — one focal rhythm across both. */
[data-panel="account"] .balance-card{padding:30px 32px;border:1px solid #36353c;border-radius:26px;background:radial-gradient(ellipse at 84% 28%,#4d3b4e66,transparent 56%),#242329;box-shadow:0 10px 25px #1d1d1f08}
[data-panel="account"] .balance-card::after{right:30px;top:-30px;color:#eeb6c50c;font-size:230px}
[data-panel="account"] .balance-card small{color:#bfb9c3;font-size:10px;font-weight:550;letter-spacing:.14em}
[data-panel="account"] .balance-card strong{margin:14px 0 9px;color:#fff;font-size:clamp(28px,4.4vw,42px);font-weight:600;letter-spacing:-.035em;line-height:1.3}
[data-panel="account"] .balance-card p{max-width:92%;color:#a9a3ae;font-size:12px;line-height:1.85}
/* The narrow-screen padding lives earlier in this file, so the wider desktop
   padding above would otherwise win at phone widths too and wrap the five
   balance filters onto a second line. */
@media (max-width:600px){
  .filters button,.market-tabs button{min-height:40px;padding:8px 11px;font-size:12px}
  .market-tabs button{min-width:100px}
}
/* The game toolbar sits above every panel, so its violet tint was the one thing
   still visible from all four pages at once. */
.dog-toolbar{border-bottom-color:#e9e9ed}
.dog-toolbar .button{border:1px solid #e3e3e8;background:#fff;color:#1d1d1f;box-shadow:none;font-weight:550}
.dog-toolbar .button:hover:not(:disabled),.dog-toolbar .button:active:not(:disabled){background:#f5f5f7;border-color:#dcdce1}

#auth-gate{--gate-ink:#f3efe8;--gate-card:#ffffff;--gate-accent:#1c1c1e;--gate-edge:#e4ddd4;position:fixed;inset:0;z-index:9000;display:none;align-items:center;justify-content:center;background:#f3efe8;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left))}
body:not([data-session]) #auth-gate,body[data-session="signed-out"] #auth-gate{display:flex}
body:not([data-session])>:not(#auth-gate){visibility:hidden}
.gate-card{width:min(320px,100%);padding:36px 32px;border-radius:20px;background:#ffffff;border:1px solid #e4ddd4;box-shadow:0 12px 32px rgba(28,28,30,.06);display:flex;flex-direction:column;align-items:center;gap:0}

.gate-mark{display:none}
#gate-sign-in{position:relative;width:100%;min-height:50px;padding:0 18px;border:1px solid #1c1c1e;border-radius:13px;background:#1c1c1e;color:#f7f5f2;font:inherit;font-size:15px;letter-spacing:.34em;text-indent:.34em;cursor:pointer;transition:background .18s ease,border-color .18s ease}
#gate-sign-in:hover:not(:disabled){background:#2c2c2e;border-color:#2c2c2e}
#gate-sign-in:focus-visible{outline:2px solid var(--gate-accent);outline-offset:3px}
#gate-sign-in:disabled{cursor:progress}
#gate-sign-in[aria-busy="true"] .gate-label{visibility:hidden}
.gate-ring{display:none}
#gate-sign-in[aria-busy="true"] .gate-ring{display:block;position:absolute;inset:0;margin:auto;width:18px;height:18px;border-radius:50%;border:2px solid rgba(247,245,242,.28);border-top-color:#f7f5f2;animation:gate-spin .7s linear infinite}
@keyframes gate-spin{to{transform:rotate(360deg)}}
#gate-sign-in[data-rejected]{animation:gate-shake .42s ease}
@keyframes gate-shake{0%,100%{transform:translateX(0)}18%{transform:translateX(-6px)}36%{transform:translateX(5px)}54%{transform:translateX(-3px)}72%{transform:translateX(2px)}}
@media (prefers-reduced-motion:reduce){#gate-sign-in[aria-busy="true"] .gate-ring,#gate-sign-in[data-rejected]{animation:none}}
html[lang="zh-TW"] body{font-family:"PingFang TC","Heiti TC","PingFang SC",-apple-system,sans-serif}
html[lang="th"] body{font-family:Thonburi,"Sukhumvit Set","Noto Sans Thai",-apple-system,sans-serif}
html[lang="vi"] body,html[lang="ms"] body,html[lang="id"] body{font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",sans-serif}
@media(max-width:640px){
  body main{padding-top:8px}
  body .header-inner{min-height:auto;align-items:center;gap:8px;padding-block:8px}
  body .brand{font-size:18px}
  .language-picker{max-width:46%;margin-left:auto}
  .language-picker select{max-width:100%}
  [data-panel="games"] .home-welcome{margin-bottom:12px}
  [data-panel="games"] .home-welcome strong{font-size:18px}
  [data-panel="games"] .balance-trigger{max-width:52%}
  [data-panel="games"] .checkin-hero{padding:20px 16px;gap:14px}
  [data-panel="games"] .checkin-hero h2{font-size:28px;line-height:1.25}
  [data-panel="games"] .checkin-action{display:block}
  [data-panel="games"] .checkin-action button{width:100%;min-width:0;min-height:48px}
  .catalog-heading h2{font-size:26px}
  .category-copy{padding:14px 12px 12px}
  .category-overline{font-size:10px;letter-spacing:.08em}
  .category-copy strong{font-size:18px}
  .category-description{font-size:12px;line-height:1.55}
  .category-foot{margin-top:12px;font-size:12px}
  [data-panel="account"] .balance-card{padding:22px 16px}
  [data-panel="account"] .balance-card strong{font-size:32px}
  .page-head{margin-bottom:8px}
  .page-head h1{font-size:28px}
  .account-actions{gap:8px}
  .market-toolbar{gap:10px}
}
.nickname-gate{width:min(420px,calc(100% - 32px))}
.nickname-gate p{margin:8px 0 16px;color:#6e6e73;font-size:14px;line-height:1.5}
.nickname-gate label{display:block;margin-bottom:8px;color:#303036;font-size:13px}
.nickname-gate input{width:100%;box-sizing:border-box;min-height:46px;margin-bottom:8px;padding:0 12px;border:1px solid #d5d5dc;border-radius:12px;background:#fafafa;color:#1d1d1f;font:inherit}
.nickname-gate .error{min-height:1.2em;margin:0;color:#af2440;font-size:13px}
.nickname-gate .nickname-actions{display:flex;gap:10px;margin-top:14px}
.nickname-gate .nickname-actions .button{border:1px solid #dedee3;border-radius:11px;background:#1d1d1f;color:#fff}
/* Wallet sign-in sheet: same solid light surface, type and close control as the category dialog. */
.sign-dialog{width:min(440px,calc(100% - 32px))}
.sign-dialog .category-dialog-head{position:static;padding-bottom:4px}
.sign-lead{margin:14px 0 22px;color:#6e6e76;font-size:14px;line-height:1.75}
.sign-wallet{display:flex;align-items:center;gap:12px;padding:15px 16px;border:1px solid #e7e7ec;border-radius:16px;background:#fff;font-size:13px;color:#1d1d1f;overflow-wrap:anywhere}
.sign-wallet small{display:block;margin-top:3px;color:#8b8b93;font-size:11px}
.sign-dot{width:10px;height:10px;flex-shrink:0;border-radius:50%;background:#c7c7cc}
.sign-wallet[data-state="ready"] .sign-dot{background:#34c759}
.sign-wallet[data-state="missing"] .sign-dot{background:#ff9f0a}
.sign-note{min-height:22px;margin:16px 2px 0;color:#6e6e76;font-size:13px;line-height:1.7}
.sign-note[data-tone="warn"]{color:#c2410c}
.sign-note[data-tone="ok"]{color:#1f7a4d}
.sign-actions{display:grid;gap:10px;margin-top:18px}
.sign-primary,.sign-secondary{width:100%;min-height:52px;border-radius:15px;font:600 16px/1 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;cursor:pointer}
.sign-primary{border:0;background:#1d1d1f;color:#fff}
.sign-primary:disabled{opacity:.45;cursor:default}
.sign-secondary{border:1px solid #e1e1e6;background:transparent;color:#1d1d1f}
.sign-foot{margin:16px 0 0;color:#9a9aa1;font-size:11px;line-height:1.7;text-align:center}
@media(max-width:600px){.sign-dialog{padding:23px 19px}.sign-lead{font-size:13px}}
.sign-note:empty{min-height:0;margin:0}
/* Sign-in sheet brand: the platform dog in the same rounded tile as the profile avatar. */
.sign-dialog .category-dialog-head{align-items:flex-start}
.sign-brand{display:flex;flex-direction:column;align-items:flex-start}
.sign-logo{display:block;width:64px;height:64px;border-radius:18px;background:#eeedf2;object-fit:cover;box-shadow:0 6px 18px #1d1d1f14}
.sign-brand-name{margin:14px 0 0;color:#1d1d1f;font-size:17px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.sign-brand-name small{display:block;margin-top:4px;color:#8b8b93;font-size:11px;font-weight:600;letter-spacing:.14em}
.sign-eyebrow{margin:20px 0 0}
.sign-dialog h2{margin-top:4px}
@media(max-width:600px){.sign-logo{width:56px;height:56px;border-radius:16px}}
/* C2C market: one coin at a time (2026-11-01). */
.market-list{padding:12px 14px}.market-coins{margin:0 0 6px}.market-coins button{min-width:72px}
.market-row{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) minmax(0,1.3fr) auto;font-variant-numeric:tabular-nums}
.market-row .button{justify-self:end}.market-none{margin:0;padding:18px 6px;text-align:center;color:#8a8293;font-size:12px}
@media (max-width:560px){.market-row{grid-template-columns:1fr 1fr}.market-row>span:nth-child(3){grid-column:1/-1}.market-row .button{grid-column:1/-1;justify-self:stretch}}
/* 2026-11-07: on a 320 px phone the Malay "Peraturan" tab ran past the screen and the home slogan past its box. */
@media (max-width:360px){nav button{min-width:0;padding:6px 4px;gap:4px;font-size:12px}body .nav-symbol{font-size:16px}[data-panel="games"] .home-slogan-sub{font-size:17px;padding-right:0}}
.ambassador-card,.blackhole-card{position:relative;overflow:hidden;margin:18px 0 0;padding:24px 26px 20px;border-radius:26px;color:#fff;box-shadow:0 10px 25px #1d1d1f12}
.ambassador-card{border:1px solid #4a3a2c;background:radial-gradient(ellipse at 88% -10%,#e6b45a40,transparent 58%),radial-gradient(ellipse at 0% 110%,#b0547a30,transparent 55%),#231d22}
.ambassador-card::after{content:'♥';position:absolute;right:-12px;bottom:-62px;color:#ffd77612;font-family:serif;font-size:230px;line-height:1;transform:rotate(14deg);pointer-events:none}
.ambassador-card>*,.blackhole-card>*{position:relative;z-index:1}
.ambassador-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.ambassador-eyebrow{display:block;color:#c9b99f;font-size:10px;font-weight:600;letter-spacing:.16em}
.ambassador-head h2,.blackhole-body h2{margin:8px 0 4px;font-size:clamp(26px,4vw,34px);font-weight:650;letter-spacing:-.02em;background:linear-gradient(100deg,#fff4cf,#f2c76a 55%,#fff0c0);-webkit-background-clip:text;background-clip:text;color:transparent}
.ambassador-head p,.blackhole-body p{margin:0;color:#d8cfd2;font-size:13px}
.ambassador-clock{flex-shrink:0;padding:9px 13px;border:1px solid #f2c76a55;border-radius:16px;background:#ffffff0d;text-align:right}
.ambassador-clock small{display:block;color:#c9b99f;font-size:10px;letter-spacing:.08em}
.ambassador-clock strong{display:block;margin-top:2px;color:#ffe39a;font-size:20px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.ambassador-podium{display:grid;grid-template-columns:1fr 1.12fr 1fr;align-items:end;gap:10px;margin:20px 0 4px;padding:0;list-style:none}
.podium-step{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;text-align:center}
.podium-crown{color:#ffd776;font-size:22px;line-height:1;text-shadow:0 2px 8px #ffb84d88}
.podium-avatar{display:grid;place-items:center;width:52px;height:52px;border:2px solid #b9b3c2;border-radius:50%;background:radial-gradient(circle at 35% 25%,#5b4c5e,#2e2730);font-size:24px;font-family:system-ui,sans-serif}
.rank-1 .podium-avatar{width:64px;height:64px;border-color:#f2c76a;box-shadow:0 0 0 4px #f2c76a26,0 6px 20px #f2c76a40;font-size:30px}
.rank-3 .podium-avatar{border-color:#d49a6a}
.podium-name{max-width:100%;overflow:hidden;color:#fff;font-size:14px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.podium-title{color:#e9c98a;font-size:11px;white-space:nowrap}
.podium-turnover{color:#d8cfd2;font-size:11px;font-variant-numeric:tabular-nums}
.podium-prize{color:#ffe39a;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
.podium-block{display:grid;place-items:center;width:100%;margin-top:6px;border-radius:14px 14px 6px 6px;color:#2a1d10;font-size:22px;font-weight:800}
.rank-1 .podium-block{height:58px;background:linear-gradient(180deg,#ffe8a6,#e7b04b);box-shadow:inset 0 1px 0 #fff7d8}
.rank-2 .podium-block{height:42px;background:linear-gradient(180deg,#eef0f4,#b8bcc6);box-shadow:inset 0 1px 0 #fff}
.rank-3 .podium-block{height:32px;background:linear-gradient(180deg,#f3c9a2,#c98a5a);box-shadow:inset 0 1px 0 #ffe7d2}
.podium-step.vacant{opacity:.55}
.ambassador-mine{margin:14px 0 0;padding:10px 13px;border-radius:14px;background:#ffffff10;color:#f4ead8;font-size:13px;line-height:1.5}
.ambassador-open{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;margin-top:12px;border:1px solid #f2c76a66;border-radius:14px;background:linear-gradient(180deg,#f9d98a,#e6b04f);color:#3a2610;font-size:14px;font-weight:650}
.blackhole-card{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px 20px;border:1px solid #2e2b44;background:radial-gradient(ellipse at 20% 40%,#5a3b8c55,transparent 60%),#14121f}
.blackhole-card .ambassador-open{grid-column:1/-1;border-color:#8f7bd666;background:linear-gradient(180deg,#3a3166,#272144);color:#e9e2ff}
.blackhole-body h2{background-image:linear-gradient(100deg,#f1ebff,#b9a2ff 55%,#ffd0e6)}
.blackhole-total{display:block;margin-top:8px;color:#fff;font-size:clamp(26px,6vw,34px);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.blackhole-today{margin-top:4px!important;color:#b6aed0!important;font-size:12px!important}
.blackhole-orb{width:84px;height:84px;border-radius:50%;background:radial-gradient(circle,#000 34%,#1b1030 46%,transparent 47%),conic-gradient(from 0deg,#ff7ab655,#8f6bff99,#3dd6ff55,#ff7ab655);box-shadow:0 0 30px #8f6bff66,inset 0 0 18px #000;animation:blackhole-spin 9s linear infinite}
@keyframes blackhole-spin{to{transform:rotate(360deg)}}
.ambassador-chip{white-space:nowrap}
.ambassador-sheet-body{max-height:min(70svh,640px);overflow:auto;padding:16px 18px 12px;background:#fff}
.ambassador-dialog .ambassador-podium{margin-top:8px}
.ambassador-dialog .podium-name{color:#2f2833}.ambassador-dialog .podium-title{color:#9a6a1f}.ambassador-dialog .podium-turnover{color:#7d7484}.ambassador-dialog .podium-prize{color:#b4741a}
.ambassador-dialog .podium-avatar{background:radial-gradient(circle at 35% 25%,#fff,#ece6f1);color:#4a3d50}
.ambassador-period{margin:0 0 6px;color:#85778e;font-size:12px;text-align:center}
.ambassador-list{display:grid;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.ambassador-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:52px;padding:6px 10px;border:1px solid #efe9f3;border-radius:14px;background:#fbf9fc}
.ambassador-row.vacant{opacity:.55}
.row-rank{color:#9a8fa3;font-size:15px;font-weight:700;text-align:center;font-variant-numeric:tabular-nums}
.row-who{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;min-width:0}
.row-avatar{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#efe9f3;color:#5a4d61;font-family:system-ui,sans-serif}
.row-name{overflow:hidden;color:#2f2833;font-size:14px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.row-title{color:#9a6a1f;font-size:11px}
.row-turnover{color:#5f5666;font-size:13px;font-variant-numeric:tabular-nums}
.row-prize{color:#b4741a;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
.ambassador-empty{margin:12px 0 0;color:#85778e;font-size:13px;text-align:center}
.ambassador-mine.sticky{position:sticky;bottom:0;margin:0;border-radius:0;background:#2a2229;color:#ffe9b8;text-align:center}
.blackhole-dialog .sheet-head h2{margin:0 0 0 6px;flex:1;color:#342b3c;font-size:20px;font-weight:600}
.blackhole-sum{margin:0 0 12px;color:#5f5666;font-size:13px;text-align:center}.blackhole-sum strong{color:#2f2833;font-size:22px;font-variant-numeric:tabular-nums}
.blackhole-days{display:grid;gap:6px}
.blackhole-row{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;padding:9px 12px;border:1px solid #efe9f3;border-radius:12px;background:#fbf9fc}
.blackhole-date{color:#5f5666;font-size:13px;font-variant-numeric:tabular-nums}.blackhole-amount{color:#2f2833;font-size:14px;text-align:right;font-variant-numeric:tabular-nums}
.blackhole-parts{grid-column:1/-1;color:#958a9c;font-size:11px}
@media(max-width:640px){.ambassador-card,.blackhole-card{padding:20px 16px 16px;border-radius:22px}.ambassador-clock strong{font-size:17px}.podium-avatar{width:44px;height:44px;font-size:20px}.rank-1 .podium-avatar{width:54px;height:54px;font-size:26px}.blackhole-orb{width:64px;height:64px}.ambassador-row{grid-template-columns:22px minmax(0,1fr) auto auto;gap:7px;padding:6px 8px}.row-turnover,.row-prize{font-size:12px}}
@media(prefers-reduced-motion:reduce){.blackhole-orb{animation:none}}
.fee-destinations{margin-top:10px}
.fee-destinations>summary{min-height:34px;display:flex;align-items:center;color:#85778e;font-size:12px;cursor:pointer}
