/* v0.7 account/ranking interface preview. Existing board and 3D die geometry remain untouched. */
.analytics-choice{margin-top:12px;max-width:510px;font-size:10px;color:#607991;line-height:1.5}
.analytics-choice[hidden]{display:none}
.analytics-choice p{font-size:10px;line-height:1.5;margin:0 0 6px}
.analytics-choice>div{display:flex;gap:8px}
.analytics-choice button{font-size:10px;padding:7px 10px;border:1px solid #b9cfe6;background:#f6fbff;border-radius:8px;color:#365b85}
.account-button{display:flex;align-items:center;gap:7px;height:40px;padding:4px 10px 4px 5px;border:1px solid #a5cef5;border-radius:20px;background:linear-gradient(#fff,#e9f5ff);color:#16468f;box-shadow:inset 0 1px white,0 2px 3px #245c9220;max-width:180px}
.account-button-avatar,.account-dialog-avatar,.leaderboard-avatar{background-image:url('assets/shop/avatars-v4/avatar-starling.svg?v=20261114-avatar5');background-size:cover;background-position:center;border-radius:50%;border:2px solid #fff;box-shadow:0 2px 4px #35629426;flex:none}
.account-button-avatar{display:flex;align-items:flex-end;justify-content:flex-end;width:29px;height:29px;color:#ffb32b;font-size:16px;text-shadow:0 1px white}
.account-button-label{font-size:12px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-button-mode{font-size:6px;letter-spacing:.3px;color:#6391b8;font-weight:800}
.welcome{max-width:1440px;padding:38px 5%;gap:6%;grid-template-columns:minmax(0,1fr) minmax(420px,.95fr);align-items:center;min-height:calc(100dvh - var(--flight-header-height));background:radial-gradient(ellipse at 26% 50%,#ffffffb3,#fff0 67%)}
.hero-copy{position:relative;padding-top:30px;min-width:0}
.hero-copy:before{content:'';display:block;width:130px;height:105px;margin-bottom:10px;background:url('assets/plane-blue.png') center/contain no-repeat;filter:drop-shadow(0 12px 8px #3a6ea525);transform:rotate(-10deg)}
.hero-copy .eyebrow{font-size:9px;letter-spacing:1.6px;color:#5282ad}
.hero-copy h1{font-size:clamp(54px,5vw,78px);letter-spacing:-3.8px;line-height:1.01;margin:20px 0 19px}
.hero-copy p{font-size:15px;line-height:1.8;margin:0 0 24px;color:#6383a4}
.hero-copy .jumbo{min-width:245px;max-width:100%;padding:16px 23px;font-size:18px}
.hero-copy .text-button{display:block;font-size:12px;padding:17px 0 14px}
.hero-notes{gap:18px;font-size:10px;margin-top:7px}
.home-access{display:flex;align-items:center;gap:12px;padding:15px 14px;border:1px solid #c3dff6;background:linear-gradient(125deg,#fffffff0,#e8f5ffbd);box-shadow:inset 0 1px #fff,0 3px 6px #447fa20d;border-radius:17px;margin-top:28px;max-width:510px}
.access-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(#e7f7ff,#cbe9ff);color:#1881ec;font-size:23px;flex:none;box-shadow:inset 0 1px #fff}
.home-access>div{min-width:0;flex:1}
.home-access b{display:block;font-size:13px;line-height:1.4;color:#1b518e}
.home-access>div>span{display:block;font-size:9px;line-height:1.65;color:#6787a6;margin-top:3px}
.home-access button{font-size:11px;white-space:nowrap;color:#166ac6;background:#fff;border:1px solid #bcd8f3;border-radius:10px;padding:8px 9px;font-weight:900;flex:none}
#social-preview-note{max-width:490px;font-size:9px;line-height:1.7;letter-spacing:.25px;margin-top:15px;color:#7291ad}
.leaderboard-shell{min-width:0;padding:24px 22px 16px;border-radius:27px;border:1px solid #b9d9f3;background:linear-gradient(145deg,#ffffffed,#edf7ffef);box-shadow:inset 0 2px #fff,0 8px 0 #c4dff23d,0 22px 50px #4e81a71a;position:relative}
.leaderboard-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.leaderboard-heading .eyebrow{font-size:8px;letter-spacing:1.1px;color:#6b91b1}
.leaderboard-heading h2{font-size:29px;letter-spacing:-1px;line-height:1.1;margin:8px 0 0;color:#123e86}
.leaderboard-trophy{font-size:42px;filter:drop-shadow(0 4px 2px #9a762a22)}
.leaderboard-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 13px;color:#7593ad;font-size:8px;font-weight:800}
.sample-pill{display:inline-flex;align-items:center;gap:5px;background:#fff7e8;border:1px solid #efd7aa;border-radius:20px;color:#ab792a;font-size:8px;font-weight:900;letter-spacing:.5px;line-height:1.2;padding:5px 8px;white-space:nowrap}
.sample-pill:before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:#e6ad43}
.leaderboard-tabs,.auth-tabs{display:flex;background:#e1eefb;border:1px solid #c9def3;border-radius:12px;padding:4px;gap:4px}
.leaderboard-tabs button,.auth-tabs button{flex:1;padding:10px 8px;font-size:12px;font-weight:900;color:#6385a7;background:transparent;border-radius:8px}
.leaderboard-tabs button[aria-selected=true],.auth-tabs button[aria-selected=true]{color:#1259a9;background:linear-gradient(#fff,#eff8ff);box-shadow:inset 0 1px #fff,0 2px 4px #476c9724;border:1px solid #c5dff4;padding:9px 7px}
.leaderboard-columns{display:grid;grid-template-columns:1fr 63px 62px;padding:13px 10px 8px;font-size:7px;letter-spacing:1px;font-weight:900;color:#7695b2;text-align:right}
.leaderboard-columns>span:first-child{text-align:left;padding-left:26px}
.leaderboard-list{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.leaderboard-row{display:grid;grid-template-columns:24px 30px minmax(0,1fr) 56px 55px;align-items:center;gap:8px;min-height:43px;padding:5px 10px;border-radius:11px;background:#edf5ff91;border:1px solid #dbeafb;color:#365d89}
.leaderboard-row:nth-child(even){background:#f6fbff}
.leaderboard-row.podium{border-color:#badbf8;background:linear-gradient(100deg,#eff9ff,#e2f1ff)}
.leaderboard-row.podium-0{background:linear-gradient(110deg,#fff7df,#eef8ff 64%);border-color:#e5d7b3}
.leaderboard-rank{font-size:11px;font-weight:900;color:#8aa3ba;text-align:center}
.podium .leaderboard-rank{display:grid;place-items:center;width:23px;height:25px;border-radius:8px;background:linear-gradient(#e6eff7,#c2d2e3);color:#597b9a;border:1px solid #bdcede;box-shadow:inset 0 1px #fff}
.podium-0 .leaderboard-rank{background:linear-gradient(#ffde71,#f4b441);color:#95601b;border-color:#e5b755}
.podium-2 .leaderboard-rank{background:linear-gradient(#f9dbc1,#e3b48e);color:#986a42;border-color:#d7b18e}
.leaderboard-avatar{width:29px;height:29px}
.leaderboard-row b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#234d85}
.leaderboard-row strong{font-size:13px;text-align:right;color:#1866b8}
.leaderboard-rate{font-size:10px;text-align:right;color:#7d98b2}
.leaderboard-foot{font-size:9px;color:#819cb4;text-align:center;line-height:1.6;margin:12px 0 0}
.account-dialog{padding:28px;width:440px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 36px);overflow-y:auto;border:1px solid #c8e2f8;background:linear-gradient(145deg,#fafdff,#eaf5ff);border-radius:26px;box-shadow:inset 0 1px white,0 25px 80px #153c6a45}
.account-dialog-heading{display:flex;align-items:center;gap:14px;padding-right:10px;margin:0 0 20px}
.account-dialog-avatar{width:66px;height:66px;border-width:3px}
.account-dialog-heading h2{font-size:27px;letter-spacing:-.8px;line-height:1.1;margin:9px 0 5px}
.account-dialog-heading p{font-size:10px;color:#7592aa;line-height:1.5;margin:0}
.account-quota{display:flex;align-items:center;gap:12px;background:linear-gradient(125deg,#dfefff,#f5fbff);border:1px solid #bbd9f4;border-radius:15px;padding:12px;margin-bottom:17px;box-shadow:inset 0 1px #fff}
.quota-icon{font-size:29px;color:#3c94e6;flex:none;line-height:1}
.account-quota b{font-size:13px;line-height:1.4;color:#215b95;display:block}
.account-quota p{font-size:9px;line-height:1.7;margin:4px 0 0;color:#6c8da9}
.quota-empty{background:linear-gradient(125deg,#fff4dd,#fffaf0);border-color:#edcfa0}
.quota-empty .quota-icon,.quota-empty b{color:#ad7c2e}
.auth-tabs{margin-bottom:17px}
.account-auth-form{display:grid;gap:14px;min-width:0}
.account-auth-form label{display:grid;gap:7px;min-width:0;color:#456988;font-size:12px;font-weight:800;line-height:1.5}
.account-auth-form input{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:12px 14px;margin:0;border:1px solid #bdd9f1;border-radius:12px;background:#fff;color:#254b70;font:inherit;font-size:15px;font-weight:500;line-height:1.4;box-shadow:inset 0 1px 3px #35577808;transition:border-color .15s,box-shadow .15s}
.account-auth-form input:focus-visible{outline:0;border-color:#5593e9;box-shadow:0 0 0 3px #4e91ed24}
.account-auth-form input::placeholder{color:#8b9eaf;font-weight:400}
.account-auth-form .auth-preview-disclosure{font-size:11px;line-height:1.7;margin:0;color:#657e94}
.account-oauth-note{margin:0;color:#74879a;font-size:11px;line-height:1.6}
.account-auth-form .auth-submit{width:100%;min-height:46px;justify-content:center;margin-top:2px}
.account-membership{display:grid;gap:10px;align-items:stretch}
.account-membership p{font-size:11px;overflow-wrap:anywhere}
.account-membership button{width:100%;min-width:0;white-space:normal;line-height:1.5}
.account-membership{margin:0;padding:16px;gap:14px}
.account-membership>p:first-child{margin:0;color:#456c92;font-weight:700}
.account-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.account-plan-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:16px 8px!important;border-radius:13px!important;min-height:128px}
.account-plan-card>span{font-size:12px}
.account-plan-card>strong{font-size:29px;line-height:1.2;font-weight:900}
.account-plan-card strong small{font-size:10px;font-weight:700}
.account-plan-card>small{font-size:10px}
.account-plan-card:disabled{opacity:1;color:#728aa1;background:#f6faff;box-shadow:none;cursor:default}
.account-membership .account-membership-note{margin:0;font-size:10px;line-height:1.7;font-weight:400}
.account-dialog .account-signout{display:block;width:100%;margin-top:20px;padding:12px 16px;min-height:44px;border-radius:12px;font-size:13px}
.legal-links a,.legal-links a:visited{color:#222;text-decoration:none;font-size:11px;font-weight:500}
.legal-links a:hover{color:#000;text-decoration:underline}
.legal-links a:focus-visible{outline:2px solid #222;outline-offset:3px;border-radius:2px}
@media(max-width:480px){.account-auth-form input{font-size:16px}.account-dialog{max-height:calc(100dvh - 24px)}.legal-links{line-height:1.8}}
#account-preview-form{display:flex;flex-direction:column}
#account-preview-form label{font-size:10px;font-weight:900;color:#5a7f9e;margin-bottom:6px}
#account-preview-form input{width:100%;padding:11px 12px;background:#ffffffde;border:1px solid #bdd9f1;border-radius:10px;color:#235c95;font-size:13px;margin-bottom:13px;box-shadow:inset 0 1px 2px #3d688b0a}
#account-preview-form input::placeholder{color:#a0b6c9;font-size:12px}
.auth-preview-disclosure{font-size:9px;line-height:1.7;color:#7897b0;margin:0 0 15px}
.auth-submit{justify-content:space-between;font-size:14px;padding:12px 16px;border-radius:12px}
.account-sample-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}
.account-sample-stats>div{padding:13px 5px;text-align:center;background:#f9fdff;border:1px solid #cde1f2;border-radius:13px;box-shadow:inset 0 1px white}
.account-sample-stats strong{display:block;font-size:24px;color:#1974cb;line-height:1.1}
.account-sample-stats span{font-size:8px;color:#8aa3ba;margin-top:6px;display:block}
.account-profile-actions .primary{font-size:14px;padding:12px 16px;border-radius:12px;justify-content:space-between}
.account-profile-actions .text-button{display:block;text-align:center;width:100%;font-size:11px;padding:15px 0 2px}
#account-preview-states{border-top:1px solid #d6e6f3;margin-top:22px;padding-top:13px;color:#7694ae;font-size:10px}
#account-preview-states summary{cursor:pointer;font-weight:800;line-height:1.5}
.preview-state-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0}
.preview-state-buttons button{padding:8px 5px;border-radius:9px;border:1px solid #d1e2ef;background:#f6fbff;color:#7593ad;font-size:10px}
.preview-state-buttons button[aria-pressed=true]{color:#125ca5;background:#dcefff;border-color:#79b5e8;box-shadow:inset 0 1px #fff}
.takeover-preview-option{display:flex;align-items:flex-start;gap:8px;padding:9px 0;color:#50779a;font-size:10px;font-weight:800;cursor:pointer}
.takeover-preview-option input{width:15px;height:15px;accent-color:#278df4;margin:0}
.takeover-preview-option small{display:block;font-size:8px;font-weight:400;line-height:1.6;color:#8da3b7;margin-top:4px}
/* Keep all stats inside each player's existing row; the die/selection reservation stays intact. */
.player-row,.player-row.active{display:grid;grid-template-columns:auto minmax(0,1fr) 90px;grid-template-rows:auto auto;gap:1px 8px;min-height:76px}
.player-row>.player-avatar{grid-column:1;grid-row:1/3}
.player-row>.player-info{grid-column:2;grid-row:1/3;min-width:0}
.player-row>.player-progress{grid-column:3;grid-row:1;min-width:0;justify-content:flex-end;gap:3px}
.player-progress .current-badge{font-size:6px;padding:3px 5px}
.player-progress small{font-size:8px;line-height:1.1}
.player-social-stats{grid-column:3;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:1px 7px;align-items:center;text-align:right;padding-top:4px;min-width:0}
.player-social-stats>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.player-social-stats b{font-size:13px;line-height:1;color:#2269b6;font-weight:900}
.player-social-stats span{font-size:6px;letter-spacing:.1px;color:#8ca3b9;line-height:1;white-space:nowrap}
.player-social-stats small{grid-column:1/3;font-size:6px;color:#9aaec0;line-height:1.1;margin-top:2px}
.player-social-stats.stats-untracked b{color:#98adbf}
#social-stats-note{font-size:7px;color:#8aa5bb;text-align:center;line-height:1.5;margin:6px 0 0;letter-spacing:0}
@media(min-width:1600px) and (min-height:851px){
 .player-row,.player-row.active{grid-template-columns:auto minmax(0,1fr) 100px}
 .player-progress small{font-size:10px}
 .player-progress .current-badge{font-size:7px;padding:3px 7px}
 .player-social-stats b{font-size:15px}
 .player-social-stats span,.player-social-stats small{font-size:7px}
}
@media(min-width:701px) and (max-height:850px){
 .welcome{padding-top:25px;padding-bottom:25px}
 .hero-copy{padding-top:0}
 .hero-copy:before{width:94px;height:76px;margin-bottom:7px}
 .hero-copy h1{font-size:60px;margin-top:16px}
 .hero-copy p{font-size:13px;margin-bottom:20px}
 .home-access{margin-top:20px;padding:12px}
 .leaderboard-shell{padding:18px 18px 13px}
 .leaderboard-heading h2{font-size:25px}
 .leaderboard-trophy{font-size:35px}
 .leaderboard-meta{margin:11px 0}
 .leaderboard-row{min-height:37px;padding:4px 9px}
 .leaderboard-avatar{width:26px;height:26px}
 .leaderboard-list{gap:3px}
 .leaderboard-tabs button{padding:8px}
 .leaderboard-tabs button[aria-selected=true]{padding:7px}
 .leaderboard-foot{margin-top:10px;font-size:8px}
 .player-row,.player-row.active{min-height:65px;grid-template-columns:auto minmax(0,1fr) 84px;column-gap:7px}
 .player-progress small{font-size:7px}
 .player-progress .current-badge{font-size:5px;padding:2px 5px}
 .player-social-stats{padding-top:2px;gap:1px 5px}
 .player-social-stats b{font-size:11px}
 .player-social-stats span,.player-social-stats small{font-size:5px}
 .player-social-stats>div{gap:1px}
 #social-stats-note{font-size:6px;margin-top:4px}
}
@media(min-width:701px) and (max-width:1100px){
 .account-button{max-width:125px;height:36px;padding-right:7px;gap:5px}
 .account-button-avatar{width:26px;height:26px}
 .account-button-label{font-size:10px}
 .account-button-mode{display:none}
 #mode-label{min-width:160px;font-size:13px;padding-left:14px;padding-right:14px}
 .welcome{padding:30px 4%;gap:4%;grid-template-columns:minmax(0,1fr) minmax(350px,1fr)}
 .hero-copy h1{font-size:54px;letter-spacing:-3px}
 .hero-copy .eyebrow{font-size:7px;letter-spacing:1px}
 .hero-copy p{font-size:12px}
 .hero-notes{gap:9px;font-size:8px}
 .home-access{padding:10px;gap:8px}
 .access-symbol{width:30px;height:30px}
 .home-access b{font-size:11px}
 .home-access>div>span{font-size:8px}
 .home-access button{font-size:9px;padding:7px}
 .leaderboard-shell{padding:18px 15px 13px}
 .leaderboard-heading h2{font-size:24px}
 .leaderboard-heading .eyebrow{font-size:6px}
 .leaderboard-meta{font-size:7px}
 .player-row,.player-row.active{grid-template-columns:35px minmax(0,1fr) 76px;column-gap:5px}
 .player-row>.player-avatar{width:35px;height:35px}
 .name-line b{font-size:15px}
 .name-line .type-badge{font-size:5px;padding:2px 3px}
 .name-line .seat-dot{width:7px;height:7px}
 .player-social-stats span{font-size:5px}
}
@media(max-width:700px){
 header{height:62px;gap:6px;padding-left:9px;padding-right:9px}
 header nav{gap:4px}
 .brand{font-size:21px;padding-left:38px;white-space:nowrap}
 .brand-icon{width:30px;height:30px;top:50%;transform:translateY(-50%) rotate(-12deg);font-size:0}
 .account-button{width:31px;height:33px;min-width:31px;padding:2px;border-radius:11px;justify-content:center}
 .account-button-avatar{width:26px;height:26px;border-width:1px}
 .account-button-label,.account-button-mode{display:none}
 header nav .icon-btn{height:33px;min-width:29px;padding:0 6px}
 #language{font-size:9px}
 .welcome{display:flex;flex-direction:column;padding:25px 18px 34px;gap:28px;min-height:auto}
 .hero-copy{width:100%;padding-top:0}
 .hero-copy:before{position:absolute;right:5px;top:20px;width:94px;height:80px;opacity:.95}
 .hero-copy .eyebrow{font-size:7px;letter-spacing:1.1px;display:block;max-width:250px}
 .hero-copy h1{font-size:52px;letter-spacing:-3px;line-height:1.02;margin:20px 0 18px;max-width:250px}
 .hero-copy p{font-size:12px;line-height:1.7;margin-bottom:20px}
 .hero-copy .jumbo{font-size:17px;min-width:220px;padding:14px 19px}
 .hero-copy .text-button{font-size:11px;padding:15px 0 12px}
 .hero-notes{gap:15px;font-size:9px}
 .home-access{padding:11px;gap:8px;margin-top:20px;border-radius:14px}
 .access-symbol{width:30px;height:30px;font-size:21px}
 .home-access b{font-size:11px}
 .home-access>div>span{font-size:8px;line-height:1.6}
 .home-access button{font-size:9px;padding:7px}
 #social-preview-note{font-size:8px;margin-top:11px}
 .leaderboard-shell{width:100%;padding:19px 14px 14px;border-radius:22px}
 .leaderboard-heading h2{font-size:25px}
 .leaderboard-heading .eyebrow{font-size:6px;letter-spacing:1px}
 .leaderboard-trophy{font-size:34px}
 .leaderboard-meta{font-size:7px;margin-top:13px}
 .sample-pill{font-size:7px;padding:4px 6px}
 .leaderboard-row{grid-template-columns:21px 27px minmax(0,1fr) 47px 44px;gap:6px;padding:5px 7px;min-height:41px}
 .leaderboard-avatar{width:27px;height:27px}
 .leaderboard-row b{font-size:11px}
 .leaderboard-row strong{font-size:12px}
 .leaderboard-rate{font-size:9px}
 .leaderboard-columns{grid-template-columns:1fr 53px 50px;font-size:6px;letter-spacing:.5px;padding-left:7px;padding-right:7px}
 .leaderboard-columns>span:first-child{padding-left:25px}
 .leaderboard-foot{font-size:8px}
 .account-dialog{padding:23px 19px;width:400px;border-radius:22px}
 .account-dialog-heading{gap:11px;margin-bottom:17px}
 .account-dialog-avatar{width:57px;height:57px}
 .account-dialog-heading h2{font-size:24px}
 .account-dialog-heading p{font-size:9px}
 .account-quota{padding:11px;gap:10px}
 .account-quota b{font-size:12px}
 .account-quota p{font-size:8px}
 .account-sample-stats strong{font-size:22px}
 .player-row,.player-row.active{display:grid;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto auto;gap:3px 6px;min-height:100px;padding:7px 6px}
 .player-row>.player-avatar{grid-column:1;grid-row:1/4;width:32px;height:32px;align-self:center}
 .player-row>.player-info{grid-column:2;grid-row:1;gap:4px}
 .player-row>.player-progress{grid-column:2;grid-row:2;align-items:flex-start;gap:0}
 .player-progress small{font-size:7px}
 .player-progress .current-badge{display:none}
 .player-social-stats{grid-column:2;grid-row:3;text-align:left;grid-template-columns:1fr 1fr;gap:2px 5px;padding-top:2px}
 .player-social-stats>div{flex-direction:row;align-items:center;gap:3px}
 .player-social-stats b{font-size:10px}
 .player-social-stats span{font-size:5px}
 .player-social-stats small{font-size:5px;line-height:1}
 .name-line b{font-size:14px}
 .name-line .type-badge{display:none}
 #social-stats-note{font-size:6px;margin-top:5px}
}
/* Wide cards use the requested middle stats column; narrow cards keep their compact stack. */
@media(min-width:1600px){
 .player-row,.player-row.active{grid-template-columns:auto minmax(0,1fr) 78px 78px;grid-template-rows:1fr;column-gap:8px}
 .player-row>.player-avatar{grid-column:1;grid-row:1}
 .player-row>.player-info{grid-column:2;grid-row:1}
 .player-row>.player-social-stats{grid-column:3;grid-row:1;text-align:center;align-self:center;align-content:center;padding-top:0;gap:3px 7px}
 .player-row>.player-progress{grid-column:4;grid-row:1;justify-content:center;align-items:flex-end;gap:7px}
 .player-social-stats small{margin-top:3px}
}
@media(max-width:700px){
 .hero-copy:before{width:74px;height:64px;right:5px;top:16px}
 .hero-copy h1{font-size:44px;letter-spacing:-2.4px;max-width:none;margin-top:70px;line-height:1.06}
}
@media(max-width:700px){
 aside{grid-template-rows:auto auto auto auto}
 aside>.turn-panel{grid-row:1;order:1}
 aside>.reactions{grid-row:2;order:2}
 aside>.crew-panel{grid-row:3;order:3}
 aside>.aside-foot{grid-row:4;order:4}
 .player-row,.player-row.active{min-height:112px}
 .player-social-stats>div{flex-direction:column;align-items:center;text-align:center;gap:2px}
 .player-social-stats b{font-size:12px}
 .player-social-stats span{font-size:7px}
 .player-social-stats small{font-size:6px}
 .player-progress small{font-size:9px}
}
/* v0.7.1 entry and score-saving previews. Anonymous play remains available. */
.home-secondary-actions{display:flex;gap:9px;margin-top:14px;max-width:420px}
.home-secondary-actions .secondary{flex:1;min-width:0;padding:11px 13px;font-size:12px;border-radius:12px;box-shadow:inset 0 1px #fff,0 3px 0 #bfd9ee;white-space:nowrap}
.home-secondary-actions .secondary span{margin-left:5px}
.invite-preview-button{width:100%;padding:11px 15px;margin-bottom:15px;border-radius:12px;border:1px solid #91c3ee;background:linear-gradient(#fafdff,#dcefff);color:#1b66ab;font-size:12px;font-weight:900;box-shadow:inset 0 1px white,0 3px 0 #b7d3eb}
.oauth-preview-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 14px}
.oauth-preview-buttons button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:41px;padding:9px 6px;background:#fff;border:1px solid #bcd6eb;border-radius:11px;color:#345a7d;font-size:10px;font-weight:800;box-shadow:0 2px 3px #47719a0d}
.oauth-preview-buttons b{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;color:#3674cf;font-size:15px;font-family:Arial,sans-serif;font-weight:700}
.oauth-preview-buttons button[data-oauth-preview=GitHub] b{font-size:9px;background:#24415a;color:white}
.auth-divider{display:flex;align-items:center;gap:9px;color:#8da6bb;font-size:8px;margin:0 0 16px}
.auth-divider:before,.auth-divider:after{content:'';height:1px;flex:1;background:#d0e1ef}
.social-action-notice{padding:10px 12px;border:1px solid #b9d5eb;border-radius:11px;color:#557e9e;background:#edf7ff;font-size:10px;line-height:1.65;margin:12px 0 15px;text-align:left}
.result-design-preview-button{width:100%;padding:9px 10px;border-radius:10px;border:1px solid #c0d8eb;background:#f8fcff;color:#5780a2;font-size:10px;margin:7px 0 2px}
.result-save-panel,.result-save-preview{padding:19px;margin:23px 0;border:1px solid #b6d7f4;border-radius:19px;background:linear-gradient(135deg,#f8fdff,#e1f1ff);box-shadow:inset 0 1px #fff,0 4px 10px #396e9c0b;text-align:left}
.result-save-preview{padding:14px;margin:12px 0 0;border-radius:14px}
.result-save-heading{display:flex;gap:11px;align-items:center}
.save-result-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:13px;color:#ffc655;background:linear-gradient(#3b9aff,#136bdc);box-shadow:inset 0 1px #84c7ff,0 3px 0 #0a54aa;font-size:29px;line-height:1}
.result-save-heading h3{margin:7px 0 0;font-size:18px;line-height:1.2;color:#235a97}
.result-save-panel p,.result-save-preview p{font-size:11px;line-height:1.7;color:#6a8aa7;margin:14px 0}
.result-save-button{width:100%;font-size:13px;padding:12px 14px;border-radius:12px;justify-content:space-between!important;gap:10px}
.result-save-panel>small,.result-save-preview>small{display:block;text-align:center;font-size:8px;line-height:1.6;color:#8ca5bb;margin-top:13px}
.result-save-preview .result-save-heading h3{font-size:15px}
.result-save-preview p{font-size:9px;margin:10px 0}
.result-save-preview .result-save-button{font-size:11px;padding:10px}
/* v0.7.2: direct matching and a compact friend lobby. */
.leaderboard-row strong{color:#809bb6;font-size:11px}
.leaderboard-row strong.ranking-value-active{color:#146bc0;font-size:13px}
.room-preview-dialog{width:500px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 36px);padding:28px;border-radius:26px;border:1px solid #b7d8f3;background:linear-gradient(145deg,#fbfeff,#edf7ff);overflow-y:auto;box-shadow:inset 0 1px #fff,0 28px 80px #173e6a44}
.room-preview-dialog>h2{font-size:29px;line-height:1.15;letter-spacing:-.8px;margin:16px 0 9px;padding-right:8px}
.room-preview-intro{font-size:11px;line-height:1.7;color:#6e8da9;margin:0 0 19px}
.simple-room-meta{display:flex;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:.5px;font-weight:900;color:#7192b1;margin:0 2px 10px}
.simple-room-seats{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:8px}
.room-seat{display:flex;align-items:center;gap:12px;min-height:62px;padding:9px 13px;background:#f8fcff;border:1px solid #d1e5f5;border-radius:14px;box-shadow:inset 0 1px #fff;color:#244f87}
.room-seat:first-child{background:linear-gradient(110deg,#e6f3ff,#f8fcff);border-color:#85bdf3}
.room-seat.empty{border-style:dashed;background:#f3f9ff;color:#7a9ab5;box-shadow:none}
.room-seat.empty .room-seat-avatar{visibility:hidden}
.room-leave-button{display:block;width:100%;margin-top:18px;padding:12px;text-align:center}
.room-seat-avatar{display:block;width:41px;height:41px;flex:none;border-radius:50%;border:2px solid white;background-image:url('assets/shop/avatars-v4/avatar-starling.svg?v=20261114-avatar5');background-size:cover;background-position:center;box-shadow:0 2px 4px #42698d22}
.room-seat-avatar.empty-seat-avatar{display:grid;place-items:center;background:#e4f1fc;border:1px dashed #b3d2eb;box-shadow:none;color:#8cb4d5;font-size:21px}
.room-seat>div{flex:1;min-width:0}
.room-seat b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:900;line-height:1.4}
.room-seat>div>span{display:block;font-size:9px;color:#829db5;margin-top:3px}
.room-seat-marker{font-size:11px;color:#7ea5c7;font-weight:900}
.room-seat:first-child .room-seat-marker{color:#2589e7}
.bot-seat .room-seat-marker{font-size:7px;color:#619b66;background:#e5f5e7;border:1px solid #c8e4cc;border-radius:7px;padding:4px 5px}
.room-countdown-panel{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:15px 17px;border:1px solid #add4f4;background:linear-gradient(120deg,#e0f0ff,#f7fcff);border-radius:15px;box-shadow:inset 0 1px white;margin:0 0 14px}
.room-countdown-panel b{font-size:14px;color:#1e66ab;display:block}
.room-start-now{margin-top:9px;padding:8px 14px;min-height:36px;font-size:12px}
.room-start-now:focus-visible{outline:2px solid #397bc1;outline-offset:3px}
.room-countdown-panel div>span{display:block;font-size:9px;color:#7394b1;margin-top:5px;line-height:1.5}
.room-countdown-panel>strong{font-size:35px;line-height:1;color:#2082df;min-width:65px;text-align:right;letter-spacing:-1px}
.room-countdown-panel small{font-size:14px;margin-left:3px;letter-spacing:0}
#match-wait-progress{grid-column:1/3;width:100%;height:5px;border:0;border-radius:9px;overflow:hidden;background:#d3e7f8;accent-color:#2690f0}
#match-wait-progress::-webkit-progress-bar{background:#d3e7f8;border-radius:9px}
#match-wait-progress::-webkit-progress-value{background:linear-gradient(90deg,#6bc5ff,#2483ed);border-radius:9px}
.room-preview-action{width:100%;justify-content:space-between!important;padding:13px 16px;font-size:14px;border-radius:12px}
.room-cancel{width:100%;padding:11px;font-size:12px;border-radius:12px}
.room-invite-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#eaf5ff;border:1px dashed #98c4e9;border-radius:13px;margin-bottom:10px}
.room-invite-strip div>span{display:block;font-size:7px;letter-spacing:1px;font-weight:900;color:#84a3bd}
.room-invite-strip b{display:block;font-size:20px;letter-spacing:2px;color:#2a78bb;margin-top:5px}
.room-invite-strip button{padding:10px 12px;border-radius:10px;font-size:11px;flex:none}
.live-room-invitation{display:block}
.room-invite-strip.live-room-invitation b{font-size:13px;letter-spacing:.5px;overflow-wrap:anywhere}
.room-invite-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.room-invite-actions button{flex:1;min-width:120px}
.room-flow-note{overflow-wrap:anywhere}
#join-preview{margin-right:12px}
/* Keep the reserved row height, but never paint a redundant one-plane button. */
#piece-buttons>button:only-child{visibility:hidden;pointer-events:none}
body,body *{-webkit-user-select:none;user-select:none}
body input,body textarea,body [contenteditable=true]{-webkit-user-select:text;user-select:text}
.room-flow-note{font-size:9px;line-height:1.7;color:#7e99af;margin:10px 0 15px}
.room-join-link{width:100%;display:block;text-align:center;font-size:10px;padding:14px 0 3px}
.room-ready-note{font-size:11px;line-height:1.7;color:#4f8f77;background:#e9f6ef;border:1px solid #c9e6d7;border-radius:12px;padding:12px;margin:0 0 17px}
.join-preview-panel>label{display:block;font-size:9px;font-weight:900;color:#7896b1;margin:0 0 10px;letter-spacing:.7px}
#room-code-input{display:block;width:100%;padding:15px 13px;border:1px solid #b6d4ee;border-radius:12px;background:#fff;color:#2d6d9f;font-size:20px;font-weight:800;letter-spacing:2px;margin-bottom:18px}
#room-code-input::placeholder{color:#adc2d3}
#room-preview-states{border-top:1px solid #d6e7f4;margin-top:19px;padding-top:12px;font-size:9px;color:#819db6}
#room-preview-states summary{cursor:pointer;font-size:9px;font-weight:800}
#room-preview-states p{font-size:8px;line-height:1.6;color:#93aabe}
#room-preview-states button{border:1px solid #c6dfee;background:#f9fcff;color:#6287a6;border-radius:8px;font-size:9px;padding:8px 10px}
.room-preview-foot{font-size:8px;line-height:1.6;text-align:center;color:#8da5b9;margin:14px 0 0}
@media(max-width:700px){
 .home-secondary-actions{max-width:none;gap:7px;margin-top:13px}
 .home-secondary-actions .secondary{padding:10px 7px;font-size:11px}
 .oauth-preview-buttons{gap:7px}
 .oauth-preview-buttons button{font-size:9px;gap:5px;padding:9px 5px}
 .oauth-preview-buttons b{width:17px;height:17px;font-size:13px}
 .room-preview-dialog{padding:23px 19px;border-radius:22px}
 .room-preview-dialog>h2{font-size:25px}
 .room-preview-intro{font-size:10px;margin-bottom:16px}
 .room-seat{min-height:58px;gap:10px;padding:8px 10px}
 .room-seat-avatar{width:37px;height:37px}
 .room-seat b{font-size:14px}
 .room-seat>div>span{font-size:8px}
 .simple-room-meta{font-size:7px}
 .room-countdown-panel{padding:13px;gap:10px}
 .room-countdown-panel b{font-size:13px}
 .room-countdown-panel div>span{font-size:8px}
 .room-countdown-panel>strong{font-size:32px;min-width:57px}
 .room-invite-strip{padding:11px}
 .room-invite-strip b{font-size:19px}
 .room-invite-strip button{font-size:10px;padding:9px}
 .room-preview-action{font-size:13px}
 .result-save-panel{padding:16px;border-radius:17px}
 .result-save-heading h3{font-size:16px}
 .result-save-panel p{font-size:10px}
 .leaderboard-row strong{font-size:10px}
 .leaderboard-row strong.ranking-value-active{font-size:12px}
}

.hero-copy #quick-match-preview,.hero-copy .home-secondary-actions{width:300px;max-width:100%;min-width:0}
.hero-copy .home-secondary-actions #create{width:100%;text-align:left;display:flex;align-items:center;justify-content:space-between;padding-left:23px;padding-right:23px}
@media(max-width:700px){.hero-copy #quick-match-preview,.hero-copy .home-secondary-actions{width:100%}}

header nav .account-button.icon-btn{display:block;width:auto;height:40px;min-width:40px;max-width:180px;padding:0 12px;border-radius:14px;background:linear-gradient(#fff,#e7f3ff);box-shadow:inset 0 1px white,0 2px 3px #396a9822;font-size:14px;font-weight:800;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){header nav .account-button.icon-btn{height:33px;min-width:40px;max-width:100px;padding:0 9px;border-radius:11px;font-size:12px}}
@media(max-width:380px){
 header{gap:4px;padding-left:6px;padding-right:6px}
 .brand{font-size:18px;padding-left:29px}
 .brand-icon{width:24px;height:24px}
 header nav{gap:3px;flex-shrink:0}
 header nav .icon-btn{min-width:26px;padding:0 5px}
 header nav .account-button.icon-btn{min-width:36px;max-width:64px;padding:0 6px;font-size:11px}
}
/* Member appearance: independent transparent overlays preserve existing portraits. */
[data-frame="gold"],[data-frame="cloud"],[data-frame="night"]{position:relative;overflow:visible!important}
[data-frame="gold"]::after,[data-frame="cloud"]::after,[data-frame="night"]::after{content:"";position:absolute;inset:-23%;background:center/contain no-repeat;pointer-events:none;z-index:1}
[data-frame="gold"]::after{background-image:url('assets/member/frame-gold.svg')}
[data-frame="cloud"]::after{background-image:url('assets/member/frame-cloud.svg')}
[data-frame="night"]::after{background-image:url('assets/member/frame-night.svg')}
[data-member="true"]::after{content:"";display:inline-block;flex:none;width:40px;height:20px;margin-left:5px;vertical-align:middle;background:url('assets/member/vip-laurel-v3.png') center/contain no-repeat}
.account-dialog-heading [data-member="true"]::after{width:50px;height:24px}
.account-dialog-heading [data-member="true"][data-annual-member="true"]::after{width:70px;height:26px}
.account-appearance{margin-top:20px;padding:18px 14px;border:1px solid #c4daf6;border-radius:18px;background:#f5faff}
.account-appearance h3{margin:0 0 6px;font-size:17px;color:#253e97}
.account-appearance p{font-size:11px;color:#7290ae;line-height:1.6;margin:0 0 15px}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.appearance-option{min-width:0;padding:19px 4px 12px;border:1px solid #d0e1f7;border-radius:14px;background:linear-gradient(#fff,#edf6ff);color:#285293;display:flex;flex-direction:column;align-items:center;gap:12px}
.appearance-option[aria-pressed="true"]{border-color:#4e87ff;box-shadow:0 0 0 1px #4e87ff}
.appearance-option b{font-size:11px}.appearance-option small{font-size:10px;color:#809bb9}
.appearance-preview,.result-avatar{display:inline-block;flex:none;width:48px;height:48px;border-radius:50%;background-image:url('assets/shop/avatars-v4/avatar-starling.svg?v=20261114-avatar5');background-size:cover;background-position:center}
.appearance-preview-row{display:flex;align-items:center;gap:15px;margin:20px 4px 2px;padding:14px;background:white;border:1px solid #d0e1f7;border-radius:14px}
.appearance-preview-row .appearance-preview{width:38px;height:38px}
.appearance-preview-row b{font-size:14px}.appearance-preview-row small{margin-left:auto;font-size:10px;color:#8ca2be}
.result-avatar{width:28px;height:28px;margin:0 8px}
.rank-row b{min-width:0;overflow-wrap:anywhere}
@media(max-width:380px){.appearance-options{gap:6px}.appearance-preview{width:41px;height:41px}.appearance-preview-row{gap:9px}.appearance-preview-row small{max-width:50px}.appearance-option b{font-size:10px}}
.flight-trail-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
.effect-settings{margin-top:20px;border-top:1px solid #d4e4f7;padding-top:16px}
.effect-settings label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:12px;font-weight:800;color:#31599b}
.effect-settings select{min-width:145px;max-width:65%;padding:9px;border:1px solid #c3d8f4;border-radius:10px;background:white;color:#31599b}
.effect-preview-host{border-radius:14px;background:linear-gradient(#e4f2ff,#f7fcff);overflow:hidden}
.effect-settings canvas{display:block;width:100%;height:95px;object-fit:contain;pointer-events:none}
.effect-actions{display:flex;gap:10px}.effect-actions button{flex:1;font-size:12px;padding:10px}
.effect-victory-preview:empty{display:none}.effect-victory-preview .trophy:empty{display:none}
[data-victory-effect="gold"]>.trophy{font-size:inherit;display:flex;flex-direction:column;align-items:center;margin-bottom:14px}
.victory-crest{display:block;position:relative;width:260px;height:132px;margin:0 auto}
.victory-wings{position:absolute;inset:0;background:url('assets/member/wing-badge.svg') center/contain no-repeat;filter:drop-shadow(0 4px 4px #b5842524);animation:wing-unfold .75s ease-out both}
.victory-portrait{position:absolute;left:calc(50% - 41px);top:22px;width:82px;height:82px;border-radius:50%;background-image:url('assets/shop/avatars-v4/avatar-starling.svg?v=20261114-avatar5');background-size:cover;background-position:center;border:3px solid #fff0ad;box-shadow:0 0 0 3px #eab749}
.victory-spark{position:absolute;left:5px;top:28px;color:#f0bc40;font-size:30px;animation:victory-glint 1.8s ease-out both}
.victory-spark.right{left:auto;right:4px;top:77px;animation-delay:.15s;color:#5389ed}
.victory-caption{font-size:14px;letter-spacing:2px;font-weight:900;color:#a97522}
.effect-victory-preview .victory-crest{width:200px;height:105px}.effect-victory-preview .victory-portrait{width:64px;height:64px;left:calc(50% - 32px);top:19px}
.effect-victory-preview .victory-caption{font-size:10px;margin-bottom:10px}
.victory-static *,.reduce-motion .victory-crest *{animation:none!important}.reduce-motion .confetti{display:none!important}
@keyframes wing-unfold{from{transform:scaleX(.5) scaleY(.85);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes victory-glint{0%{opacity:0;transform:scale(.4)}35%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(.8)}}
@media(prefers-reduced-motion:reduce){.victory-crest *{animation:none!important}}
/* Compact account sections keep billing and cosmetic controls out of one long column. */
.compact-account{width:500px;max-width:calc(100vw - 28px);padding:24px;max-height:min(740px,calc(100dvh - 28px));overflow-y:auto}
.compact-account .account-dialog-heading{gap:14px;margin-bottom:16px;padding-right:24px}
.compact-account .account-dialog-avatar{width:50px;height:50px}
.compact-account .account-dialog-heading h2{font-size:24px;margin:4px 0 0}
.account-section-tabs{display:flex;gap:5px;padding:4px;background:#e3effc;border:1px solid #cbddf6;border-radius:12px;margin:0 0 16px}
.account-section-tabs button{flex:1;min-width:0;padding:9px 5px;border-radius:9px;background:transparent;font-size:13px;font-weight:800;color:#7892b3}
.account-section-tabs button[aria-selected="true"]{background:white;color:#3158ad;box-shadow:0 1px 4px #3a5e9930}
.compact-account .account-appearance{margin:0;padding:14px}
.compact-account .account-appearance h3{font-size:15px}
.compact-account .account-appearance p{margin-bottom:10px;font-size:10px}
.compact-account .appearance-option{padding:14px 4px 9px;gap:9px}
.compact-account .appearance-option small{display:none}
.compact-account .appearance-preview{width:40px;height:40px}
.compact-account .effect-settings{margin-top:14px;padding-top:12px}
.compact-account .effect-settings label{margin:9px 0}
.compact-account .effect-preview-host[hidden],.compact-account .appearance-preview-row[hidden]{display:none}
.compact-account .effect-settings>p{display:none}
.compact-account .effect-actions{margin-top:12px}
.compact-account .account-quota{margin:12px 0 0;padding:12px}
.compact-account .account-sample-stats{margin:0 0 12px}
.compact-account .account-sample-stats>div{padding:12px}
.compact-account .account-signout{margin-top:14px;padding:10px;min-height:40px}
.account-member-summary{font-size:12px;color:#6e89ac;margin:12px 0}
.compact-account .account-membership{margin:0;gap:10px}
.compact-account .account-plan-card{padding:14px 10px;gap:5px;min-height:0}
.compact-account .account-plan-card strong{font-size:27px}
.compact-account .account-membership>p{font-size:11px;line-height:1.5}
header nav .account-button.signed-in-account{display:inline-flex;align-items:center;gap:10px;overflow:visible;max-width:200px;padding:0 11px 0 8px}
.header-account-avatar{display:inline-block;position:relative;flex:none;width:28px;height:28px;border-radius:50%;background-image:url('assets/shop/avatars-v4/avatar-starling.svg?v=20261114-avatar5');background-size:cover;background-position:center;border:1px solid white}
.header-account-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
@media(max-width:480px){.compact-account{padding:20px 16px;width:380px}.compact-account .account-dialog-heading{margin-bottom:14px}.compact-account .account-dialog-avatar{width:44px;height:44px}.compact-account .account-dialog-heading h2{font-size:22px}.account-section-tabs{margin-bottom:12px}.account-section-tabs button{font-size:12px;padding:8px 3px}header nav .account-button.signed-in-account{gap:7px;max-width:115px;padding:0 8px;height:36px}.header-account-avatar{width:23px;height:23px}.header-account-name{font-size:12px}}
@media(max-width:380px){header nav .account-button.signed-in-account{gap:4px;max-width:60px;padding:0 5px;height:32px}.header-account-avatar{width:19px;height:19px}.header-account-name{max-width:24px;font-size:11px}}
#play,#play img,#play canvas{-webkit-touch-callout:none}
/* Sculpted bitmap overlays; keep both center and outside alpha-transparent. */
[data-frame="gold"]::after{background-image:url('assets/member/frame-gold-v2.png');inset:auto;width:161%;height:161%;left:-30.5%;top:-22.8%}
[data-frame="cloud"]::after{background-image:url('assets/member/frame-cloud-v2.png');inset:auto;width:164%;height:164%;left:-32%;top:-24.3%}
[data-frame="night"]::after{background-image:url('assets/member/frame-night-v2.png');inset:auto;width:155%;height:155%;left:-27.7%;top:-26.6%}
#account-dialog{scrollbar-width:none;-ms-overflow-style:none}
#account-dialog::-webkit-scrollbar{display:none;width:0;height:0}
.compact-account .account-dialog-heading{gap:21px}
.compact-account .appearance-option{padding-top:18px;padding-bottom:10px;gap:16px}
.compact-account .appearance-preview{width:36px;height:36px}
header nav .account-button.signed-in-account{gap:13px}

@media(max-width:480px){.compact-account .account-dialog-heading{gap:18px}.compact-account .appearance-option b{font-size:10px}header nav .account-button.signed-in-account{gap:10px}}
@media(max-width:380px){header nav .account-button.signed-in-account{gap:6px;padding-left:7px}}
.rank-row{min-height:70px;position:relative}
.rank-row>small{min-width:120px;text-align:right;line-height:1.5}
#result-save-panel{min-height:84px}
.rank-row[data-card-frame="gold"]{border:2px solid transparent;background:linear-gradient(#fffdf7,#fff9e9) padding-box,linear-gradient(125deg,#fff2b4,#dfa92c,#fff7d4,#b97f18) border-box;box-shadow:inset 0 1px 2px #fff,0 3px 9px #ae85201a}
.rank-row[data-card-frame="gold"]::before{content:"";position:absolute;right:14px;top:-10px;width:44px;height:19px;background:url('assets/member/wing-badge.svg') center/contain no-repeat;pointer-events:none}
.rank-row[data-card-frame="cloud"]{border:2px solid transparent;background:linear-gradient(#fff,#edf9ff) padding-box,linear-gradient(125deg,#e9fcff,#84c9ed,#fff,#97d6f4) border-box;box-shadow:inset 0 1px 3px white,0 3px 9px #5196be1a}
.rank-row[data-card-frame="cloud"]::before{content:"";position:absolute;right:16px;top:-10px;width:40px;height:20px;background:radial-gradient(circle at 50% 48%,#fff 0 7px,#caeaff 8px,transparent 9px),radial-gradient(circle at 25% 65%,#f7fdff 0 6px,#caeaff 7px,transparent 8px),radial-gradient(circle at 75% 65%,#fff 0 6px,#caeaff 7px,transparent 8px);pointer-events:none}
.rank-row[data-card-frame="night"]{border:2px solid transparent;background:linear-gradient(#fcfcff,#f0f1ff) padding-box,linear-gradient(125deg,#cdd9ff,#6052bc,#dce7ff,#7a65c3) border-box;box-shadow:inset 0 1px 2px white,0 3px 9px #5e52b61a}
.rank-row[data-card-frame="night"]::before{content:"✦ ☾";position:absolute;right:16px;top:-13px;color:#eabd4a;text-shadow:0 1px 1px #88724c88;font-size:20px;letter-spacing:5px;pointer-events:none}
.compact-account .effect-settings>.effect-save-status{display:block;font-size:10px;min-height:14px;margin:5px 0 0;color:#6c89b1}
.compact-account .effect-preview-host canvas{height:76px}.compact-account .effect-victory-preview .victory-crest{height:86px;width:174px}.compact-account .effect-victory-preview .victory-portrait{width:53px;height:53px;left:calc(50% - 26.5px);top:15px}
@media(max-width:480px){.rank-row{min-height:68px}.rank-row>small{min-width:0;max-width:115px;font-size:9px}.rank-row[data-card-frame]::before{right:10px}}
.hero-copy.hero-model-ready::before{display:none}
.hero-plane-model{display:block;width:130px;height:105px;margin-bottom:10px;filter:drop-shadow(0 12px 8px #3a6ea525);pointer-events:none}
.hero-plane-model canvas{display:block;width:100%;height:100%}
@media(min-width:701px) and (max-height:850px){.hero-plane-model{width:94px;height:76px;margin-bottom:7px}}
@media(max-width:700px){.hero-plane-model{position:absolute;right:5px;top:16px;width:74px;height:64px;opacity:.95;margin:0}}

/* Larger portraits expose frame texture without changing the game HUD. */
.compact-account .account-dialog-avatar{width:64px;height:64px}
.compact-account .account-dialog-heading{gap:28px;min-height:80px}
.compact-account .appearance-preview{width:54px;height:54px}
.compact-account .appearance-option{padding-top:23px;padding-bottom:13px;gap:21px}
.avatar-upload{display:flex;flex-direction:column;gap:6px;margin:12px 0 17px}
.avatar-upload label{font-size:12px;font-weight:800;color:#31599b}
.avatar-upload input{display:block;max-width:100%;margin-top:7px;font-size:12px}
.avatar-upload small{font-size:10px;color:#718baa}
@media(max-width:380px){.compact-account .account-dialog-avatar{width:56px;height:56px}.compact-account .appearance-preview{width:43px;height:43px}.compact-account .appearance-option{gap:19px;padding-top:21px}}

.hangar-dialog{width:650px;max-width:calc(100vw - 28px);padding:28px;border:1px solid #c2daf7;border-radius:25px;background:linear-gradient(#fff,#edf6ff);color:#233c86;max-height:calc(100dvh - 28px);overflow:auto;scrollbar-width:none}
.hangar-dialog::backdrop{background:#284a7055;backdrop-filter:blur(8px)}
.hangar-dialog h2{font-size:25px;margin:12px 0 5px}
.hangar-stage{height:300px;position:relative;border-radius:20px;background:radial-gradient(ellipse at 50% 65%,#fff 0%,#dfedff 65%,#e9f5ff 100%);overflow:hidden}
.hangar-stage .hero-plane-model{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;cursor:default}
.hangar-stage canvas{width:100%;height:100%;display:block}
.hero-plane-model[role=button]{cursor:pointer;border-radius:18px}
.hero-plane-model[role=button]:focus-visible{outline:3px solid #447df6;outline-offset:4px}
.hangar-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.hangar-choices button{min-width:0;font-size:12px;padding:11px 3px}
.hangar-choices button[aria-pressed=true]{border-color:#477cf5;background:#e0edff;box-shadow:0 0 0 1px #477cf5}
.hangar-hint,.hangar-notice{font-size:12px;line-height:1.6;color:#728eae}
.hangar-dialog>[data-plane-save]{width:100%;margin-top:6px}
@media(max-width:480px){.hangar-dialog{padding:22px 16px}.hangar-stage{height:240px}.hangar-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hero-plane-model[role=button],.hangar-stage .hero-plane-model{pointer-events:auto}
[data-celebration-frame="night"] .victory-wings{filter:hue-rotate(185deg) saturate(.75) drop-shadow(0 4px 4px #54469430)}
[data-celebration-frame="cloud"] .victory-wings{filter:hue-rotate(150deg) saturate(.4) brightness(1.25) drop-shadow(0 4px 4px #5196be30)}

.effect-victory-preview .victory-spark{animation:preview-glint 4.8s ease-in-out infinite}
.effect-victory-preview .victory-spark.right{animation-delay:2.4s}
@keyframes preview-glint{0%,12%,100%{opacity:.25;transform:scale(.65)}5%{opacity:1;transform:scale(1.12)}}
.reduce-motion .effect-victory-preview .victory-spark,.victory-static .victory-spark{animation:none!important;opacity:.65}
@media(prefers-reduced-motion:reduce){.effect-victory-preview .victory-spark{animation:none!important}}

.victory-wings{background-image:url('assets/member/celebration-wings-v2.png')}
.leaderboard-row{grid-template-columns:35px 53px minmax(0,1fr) 50px 45px;gap:13px;min-height:76px;padding:12px 14px;margin-bottom:7px}
.leaderboard-avatar{width:45px;height:45px;border-width:2px}
.leaderboard-row b{font-size:13px}
.leaderboard-rank{width:31px;height:31px;display:flex;align-items:center;justify-content:center;position:relative;font-weight:900;font-size:13px;border-radius:50%;color:#748aa6}
.podium .leaderboard-rank{--metal-light:#fff5b5;--metal-mid:#efbe45;--metal-dark:#94621b;color:#805213;border:1px solid var(--metal-dark);background:radial-gradient(circle at 35% 25%,#ffffffa0,transparent 43%),conic-gradient(from 35deg,var(--metal-mid),var(--metal-light),var(--metal-mid),var(--metal-dark),var(--metal-light),var(--metal-mid));box-shadow:inset 0 0 0 2px var(--metal-light),inset 0 0 0 4px var(--metal-mid),inset 0 -3px 3px #6f481b55,0 3px 4px #36527730;text-shadow:0 1px 0 var(--metal-light)}
.podium .leaderboard-rank::after{content:"";position:absolute;inset:5px;border:1px solid var(--metal-dark);opacity:.5;border-radius:50%;pointer-events:none}
.podium-1 .leaderboard-rank{--metal-light:#f5fcff;--metal-mid:#b8c9d8;--metal-dark:#697b90;color:#526579}
.podium-2 .leaderboard-rank{--metal-light:#ffe1bd;--metal-mid:#d49a63;--metal-dark:#825033;color:#754424}
.leaderboard-trophy{display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 4px 3px #b58c3020)}
.leaderboard-trophy img{width:48px;height:60px;display:block}
@media(max-width:480px){.leaderboard-row{grid-template-columns:28px 43px minmax(0,1fr) 34px 32px;gap:9px;padding:12px 9px;min-height:72px}.leaderboard-avatar{width:36px;height:36px}.leaderboard-row b{font-size:12px}.leaderboard-rank{width:26px;height:26px;font-size:11px}.leaderboard-row strong{font-size:11px}.leaderboard-trophy img{width:40px;height:50px}}

.podium .leaderboard-rank{border-radius:50%;width:31px;height:31px;display:flex}
.avatar-upload label{position:relative;display:inline-block;align-self:flex-start;padding:10px 17px;border:1px solid #bdd4f5;border-radius:10px;background:linear-gradient(#fff,#eaf3ff);box-shadow:0 2px 0 #cbdcf1;cursor:pointer;overflow:hidden}
.avatar-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.avatar-upload label:focus-within{outline:2px solid #447df6;outline-offset:2px}
@media(max-width:480px){.podium .leaderboard-rank{width:26px;height:26px}}

/* Fixed five-row viewport: ten entries scroll inside, never resize the card. */
.leaderboard-shell{width:542px;max-width:100%;height:700px;box-sizing:border-box;justify-self:center;display:flex;flex-direction:column}
.leaderboard-shell .leaderboard-heading,.leaderboard-shell .leaderboard-meta,.leaderboard-shell .leaderboard-tabs,.leaderboard-shell .leaderboard-foot{flex:none}
.leaderboard-shell #lb-panel{flex:1;min-height:0;display:flex;flex-direction:column}
.leaderboard-shell .leaderboard-columns{flex:none}
.leaderboard-shell .leaderboard-list{height:418px;flex:none;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding:3px 7px 3px 0;gap:8px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#8faed1 #e5effa}
.leaderboard-shell .leaderboard-row{flex:0 0 76px;min-height:76px;height:76px;margin:0;box-sizing:border-box}
.leaderboard-list::-webkit-scrollbar{width:7px}
.leaderboard-list::-webkit-scrollbar-track{background:#e5effa;border-radius:8px}
.leaderboard-list::-webkit-scrollbar-thumb{background:#8faed1;border-radius:8px;border:1px solid #e5effa}
.leaderboard-shell .leaderboard-foot{margin-top:auto;padding-top:12px}
@media(max-width:700px){.leaderboard-shell{width:100%;height:675px}.leaderboard-shell .leaderboard-list{height:398px}.leaderboard-shell .leaderboard-row{flex-basis:72px;height:72px;min-height:72px}}


.account-dialog-avatar[data-avatar-picker]{cursor:pointer;outline-offset:8px}
.account-dialog-avatar[data-avatar-picker]:focus-visible{outline:2px solid #4e87ff}
.avatar-picker-dialog{width:430px;max-width:calc(100vw - 28px);padding:26px;border:1px solid #bdd6f5;border-radius:24px;background:linear-gradient(#fff,#edf6ff);color:#253e97}
.avatar-picker-dialog::backdrop{background:#27466c66;backdrop-filter:blur(6px)}
.avatar-picker-dialog h2{font-size:23px;margin:0 0 22px}
.system-avatar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.system-avatar-grid button{display:grid;place-items:center;padding:16px}
.system-avatar-image{width:80px;height:80px;border-radius:50%;background-image:url('assets/shop/avatars-v4/avatar-starling.svg?v=20261114-avatar5');background-size:cover;background-position:center;box-shadow:0 3px 8px #32619c25;border:2px solid #fff}
.avatar-picker-dialog p{font-size:11px;color:#7893af;margin:16px 0 0;line-height:1.6}
.avatar-upload-picker{display:block;position:relative;margin-top:20px;text-align:center;padding:12px;border:1px solid #bdd6f5;border-radius:12px;overflow:hidden;cursor:pointer;font-size:13px;font-weight:800}
.avatar-upload-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.avatar-upload-picker:focus-within{outline:2px solid #4e87ff}

/* Reserve the avatar frame's outside wing area before player text. */
.player-row>.player-avatar{margin-left:8px;margin-right:18px}
.player-social-stats b{font-size:20px;line-height:1.15}
@media(max-width:700px){.player-row,.player-row.active{grid-template-columns:48px minmax(0,1fr)}.player-row>.player-avatar{margin-left:6px;margin-right:8px}.player-social-stats b{font-size:17px}}

/* Keep the name line for the pilot name; seat type belongs with fleet details. */
.player-info .player-detail-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.player-detail-line .type-badge{display:inline-flex;align-items:center;flex:none;font-size:6px;line-height:1;padding:3px 4px;margin:0}
.name-line b{flex:1;min-width:0}
@media(max-width:700px){.player-detail-line .type-badge{font-size:5px;padding:2px 3px}.player-info .player-detail-line{gap:4px}}

/* Friend invitations on Chinese mobile screens keep one clear share action. */
.room-share-wechat{width:100%;justify-content:center;margin:12px 0 14px;min-height:46px}
.room-share-manual{display:grid;gap:8px;font-size:12px;color:#496b95;margin-top:14px}
.room-share-manual input{width:100%;min-width:0;padding:12px;border:1px solid #bbd5f3;border-radius:10px;background:#fff;color:#355b8e;user-select:all;-webkit-user-select:all}
.hangar-dialog::-webkit-scrollbar{display:none}

/* Short laptop displays keep dice, plane choice and roll visible together. */
@media(min-width:701px) and (max-height:780px){
 #play aside{gap:8px}
 #play .turn-panel{flex:none;height:178px;min-height:178px;display:grid;grid-template-columns:105px minmax(0,1fr);grid-template-rows:26px 28px 32px 40px;gap:3px 10px;padding:12px}
 #play .turn-title{grid-column:1/3;grid-row:1;min-width:0}
 #play .turn-title b{font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #play .dice-stage{grid-column:1;grid-row:2/5;width:105px;height:110px;min-height:110px}
 #play #action-hint{grid-column:2;grid-row:2;font-size:10px;line-height:1.35;margin:0;align-self:center;min-height:0}
 #play #piece-buttons,#play #piece-buttons:empty{grid-column:2;grid-row:3;height:32px;min-height:32px;margin:0;gap:5px}
 #play #piece-buttons button{font-size:10px;padding:5px 2px}
 #play .roll-button{grid-column:2;grid-row:4;min-height:40px;height:40px;padding:8px;font-size:14px;margin:0}
}
#play[data-online="true"] .demo-actions{display:none}

/* The headings and values share all five tracks, including the measured scrollbar gutter. */
/* The podium accent bar sits at the row edge while the coin starts after
   --lb-pad; --lb-gap also separates the coin from the pilot portrait. Both
   values feed the header grid, so the number columns stay aligned. */
.leaderboard-shell{--lb-rank:35px;--lb-avatar:53px;--lb-points:56px;--lb-games:56px;--lb-gap:15px;--lb-pad:20px}
.leaderboard-shell .leaderboard-row,.leaderboard-shell .leaderboard-columns{grid-template-columns:var(--lb-rank) var(--lb-avatar) minmax(0,1fr) var(--lb-points) var(--lb-games);column-gap:var(--lb-gap)}
.leaderboard-shell .leaderboard-row{padding-left:var(--lb-pad);padding-right:var(--lb-pad)}
.leaderboard-shell .leaderboard-columns{box-sizing:border-box;margin-right:calc(7px + var(--lb-scrollbar,8px));padding:13px calc(var(--lb-pad) + 1px) 8px;font-size:9px;letter-spacing:.2px;text-align:center;line-height:1.3}
.leaderboard-shell .leaderboard-columns>span{white-space:nowrap}
.leaderboard-shell .leaderboard-columns>span:first-child{grid-column:1/4;text-align:left;padding-left:calc(var(--lb-rank) + var(--lb-avatar) + var(--lb-gap)*2)}
.leaderboard-shell .leaderboard-row strong,.leaderboard-shell .leaderboard-row strong.ranking-value-active{font-size:21px;line-height:1.2;font-weight:900;text-align:center;font-variant-numeric:tabular-nums;color:#3670c6}
.leaderboard-shell .leaderboard-row strong.ranking-value-active{color:#1f61dc}
.leaderboard-row b,.header-account-name{display:flex;align-items:center;min-width:0}
.membership-name-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaderboard-row b::after{margin-left:4px}
.header-account-name[data-member="true"]::after{width:30px;height:16px;margin-left:4px}
.header-account-name[data-member="true"][data-annual-member="true"]::after{width:46px;height:18px}
.hangar-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.hangar-choices button{min-width:0;min-height:52px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}
.hangar-choices button small{font-size:9px;line-height:1.2;color:#9d6959}
.hangar-choices button[data-plane-tier="annual"]{border-color:#d8b19b;background:linear-gradient(135deg,#fff9f4,#edf4ff)}
.hangar-choices button[data-plane-tier="annual"][aria-pressed="true"]{border-color:#b47d65;box-shadow:0 0 0 1px #c7957a,inset 0 1px 0 #fff}
@media(max-width:480px){
 .leaderboard-shell{--lb-rank:28px;--lb-avatar:43px;--lb-points:42px;--lb-games:44px;--lb-gap:8px;--lb-pad:11px}
 .leaderboard-shell .leaderboard-columns{font-size:8px;letter-spacing:0}
 .leaderboard-shell .leaderboard-row strong,.leaderboard-shell .leaderboard-row strong.ranking-value-active{font-size:18px}
 .leaderboard-row b{flex-wrap:wrap;gap:2px;align-content:center;white-space:normal;line-height:1.3}
 .leaderboard-row b .membership-name-value{flex-basis:100%}
 .leaderboard-row b::after{margin-left:0;width:34px;height:17px}
 .leaderboard-row b[data-annual-member="true"]::after{width:49px;height:19px}
 .header-account-name{flex-wrap:wrap;max-width:64px;line-height:1.1;row-gap:2px}
 .header-account-name .membership-name-value{flex-basis:100%}
 .header-account-name[data-member="true"]::after{margin-left:0;width:27px;height:13px}
 .header-account-name[data-member="true"][data-annual-member="true"]::after{width:42px;height:15px}
 .hangar-choices button{font-size:11px;padding:8px 3px}
}
@media(max-width:380px){
 header nav .account-button.signed-in-account{max-width:82px}
 .header-account-name{max-width:42px}
}
@media(max-width:360px){
 .leaderboard-shell{--lb-rank:24px;--lb-avatar:34px;--lb-points:36px;--lb-games:36px;--lb-gap:6px;--lb-pad:8px}
 .leaderboard-shell .leaderboard-row strong,.leaderboard-shell .leaderboard-row strong.ranking-value-active{font-size:17px}
 .leaderboard-shell .leaderboard-row b{font-size:11px}
 .leaderboard-shell .leaderboard-columns{font-size:7px}
 .leaderboard-shell .leaderboard-avatar{width:30px;height:30px}
}
/* On phones the selected aircraft leads the copy on the same left edge. */
@media(max-width:700px){
 .hero-copy>.hero-plane-model{position:relative;left:auto;right:auto;top:auto;width:98px;height:84px;margin:0 0 12px;opacity:1}
 .hero-copy.hero-model-ready h1{margin-top:20px}
}

/* Readable names and membership plaques stay inside the existing ranking tracks. */
.leaderboard-shell .leaderboard-row b{font-size:16px;line-height:1.3}
.leaderboard-shell .leaderboard-row b[data-member="true"]::after{width:48px;height:24px}
.leaderboard-shell .leaderboard-row b[data-member="true"][data-annual-member="true"]::after{width:68px;height:26px}
@media(max-width:480px){
 .leaderboard-shell .leaderboard-row b{font-size:14px}
 .leaderboard-shell .leaderboard-row b[data-member="true"]::after{width:40px;height:20px}
 .leaderboard-shell .leaderboard-row b[data-member="true"][data-annual-member="true"]::after{width:58px;height:22px}
}
@media(max-width:360px){
 .leaderboard-shell .leaderboard-row b{font-size:12px}
 .leaderboard-shell .leaderboard-row b[data-member="true"]::after{width:36px;height:18px}
 .leaderboard-shell .leaderboard-row b[data-member="true"][data-annual-member="true"]::after{width:50px;height:20px}
}

