/* v0.7 account/ranking interface preview. Existing board and 3D die geometry remain untouched. */
.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/avatars-v5.png');background-size:200% 200%;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-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:31px}
 .brand-icon{width:30px;height:30px}
 .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){
 .player-row,.player-row.active{min-height:112px}
 .player-social-stats>div{flex-direction:column;align-items:flex-start;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-avatar{display:block;width:41px;height:41px;flex:none;border-radius:50%;border:2px solid white;background-image:url('assets/avatars-v5.png');background-size:200% 200%;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-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}
.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%}}
