:root{--bg:#07111f;--panel:#101d2f;--panel2:#17263b;--line:#263851;--text:#f8fafc;--muted:#94a3b8;--green:#22c55e;--green2:#16a34a;--amber:#f59e0b;--cyan:#38bdf8;--shadow:0 20px 60px #0006}*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:radial-gradient(circle at 50% -20%,#173352 0,var(--bg) 45%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100vh}button,input,textarea{font:inherit}button,a,[data-go],label[for],.format-options label,.tournament-types label{cursor:pointer}.app-shell{min-height:100vh;padding-bottom:92px}.topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;height:68px;padding:0 max(18px,calc((100vw - 1120px)/2));background:#07111ee8;border-bottom:1px solid #ffffff10;backdrop-filter:blur(18px)}.brand{border:0;background:none;color:#fff;font-size:18px;font-weight:900;letter-spacing:.06em}.brand span{display:inline-grid;place-items:center;margin-right:3px;padding:5px 6px;border-radius:7px;background:var(--green);color:#04140a}.top-status{flex:1;text-align:center;color:var(--muted);font-size:11px}.ghost,.soft,.round-button,.share-button{border:1px solid var(--line);background:#ffffff08;color:var(--text)}.ghost,.soft{border-radius:12px}.ghost{padding:12px 17px}.ghost.small{padding:8px 11px;font-size:11px}.soft{padding:10px 12px}.primary{border:0;border-radius:14px;background:linear-gradient(135deg,var(--green),var(--green2));color:#03120a;font-weight:900;box-shadow:0 10px 30px #22c55e24}.primary:hover{filter:brightness(1.08);transform:translateY(-1px)}.xl{min-height:54px;padding:13px 18px;font-size:15px}.full{width:100%}.screen{display:none;width:min(1120px,100%);margin:auto;padding:28px 18px}.screen.active{display:block}.landing{position:relative;min-height:calc(100vh - 160px);overflow:hidden;padding-top:70px}.hero-copy{position:relative;z-index:2;max-width:650px}.eyebrow{color:var(--green);font-size:10px;font-weight:900;letter-spacing:.16em}.hero-copy h1{margin:12px 0 18px;font-size:clamp(45px,8vw,78px);line-height:.96;letter-spacing:-.055em}.hero-copy h1 em{color:var(--green);font-style:normal}.hero-copy p{max-width:550px;color:#bdc8d7;font-size:18px;line-height:1.6}.hero-actions{display:flex;gap:10px;margin-top:28px}.hero-actions button{min-width:180px}.hero-orb{position:absolute;border-radius:50%;filter:blur(4px);pointer-events:none}.orb-one{right:-100px;top:0;width:500px;height:500px;border:80px solid #22c55e12}.orb-two{left:45%;top:420px;width:280px;height:280px;background:#38bdf80b}.phone-preview{position:absolute;right:65px;top:42px;z-index:2;width:285px;height:550px;padding:22px 15px;border:8px solid #152235;border-radius:40px;background:linear-gradient(#0c1828,#0a1422);box-shadow:var(--shadow);transform:rotate(3deg)}.phone-notch{position:absolute;left:50%;top:7px;width:86px;height:17px;border-radius:99px;background:#020813;transform:translateX(-50%)}.preview-head{display:grid;gap:5px;margin:20px 0 15px}.preview-head span{width:max-content;padding:4px 7px;border-radius:99px;background:#22c55e25;color:#66ef96;font-size:8px;font-weight:900}.preview-head b{font-size:20px}.preview-head small{color:var(--muted)}.phone-preview article{display:grid;gap:7px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.phone-preview article small{color:var(--green);font-weight:900}.phone-preview article i{color:var(--muted);font-size:9px;font-style:normal}.phone-preview article div{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:8px}.phone-preview article div b{font-size:26px}.preview-rank{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:8px;margin-top:10px;padding:12px;border-radius:12px;background:#ffffff08;font-size:11px}.preview-rank span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--amber);color:#150d00;font-weight:900}.feature-grid{position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:680px;margin-top:80px}.feature-grid article{display:flex;align-items:center;gap:10px;padding:15px;border:1px solid #ffffff0d;border-radius:15px;background:#ffffff06}.feature-grid article>span{font-size:22px}.feature-grid b,.feature-grid small{display:block}.feature-grid small{margin-top:3px;color:var(--muted);font-size:10px}.page-title{display:flex;align-items:flex-start;gap:14px;margin:10px 0 24px}.page-title h2{margin:6px 0;font-size:34px}.page-title p{margin:0;color:var(--muted)}.round-button{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;font-size:20px}.setup-card{display:grid;gap:16px;max-width:760px;margin:auto;padding:22px;border:1px solid #ffffff10;border-radius:24px;background:#0d1929cc;box-shadow:var(--shadow)}.step{display:grid;grid-template-columns:34px 1fr;gap:13px;padding:14px 0;border-bottom:1px solid #ffffff0d}.step>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#22c55e18;color:#61e78f;font-size:12px;font-weight:900}.step label{display:flex;justify-content:space-between;margin-bottom:8px;font-size:12px;font-weight:900}.step label small{color:var(--muted);font-weight:600}.step input:not([type=radio]){width:100%;min-height:48px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:#081422;color:var(--text);outline:0}.step input:focus,.score-team input:focus{border-color:var(--green);box-shadow:0 0 0 3px #22c55e20}.player-list{display:grid;grid-template-columns:1fr 1fr;gap:7px}.player-row{position:relative}.player-row input{padding-right:40px!important}.player-row button{position:absolute;right:5px;top:5px;width:36px;height:36px;border:0;background:transparent;color:#78879b;font-size:18px}.player-actions{display:flex;gap:7px;margin-top:8px}.segmented{display:flex;gap:6px;flex-wrap:wrap}.segmented button{width:44px;height:42px;border:1px solid var(--line);border-radius:10px;background:#0a1726;color:#cbd5e1;font-weight:900}.segmented button.active{border-color:var(--green);background:#22c55e1b;color:#70ed9b}.field-help{display:block;margin-top:7px;color:var(--muted)}.format-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.format-options label{margin:0}.format-options input{position:absolute;opacity:0}.format-options span{display:grid;gap:2px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#081422}.format-options input:checked+span{border-color:var(--green);background:#22c55e15;box-shadow:inset 0 0 0 1px var(--green)}.format-options small{color:var(--muted);font-size:9px}.form-error{min-height:18px;margin:0;color:#fb7185;font-size:11px;text-align:center}.tournament-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px;border:1px solid #ffffff10;border-radius:24px;background:linear-gradient(135deg,#13283f,#0d1b2d);box-shadow:var(--shadow)}.tournament-hero h2{margin:10px 0 4px;font-size:32px}.tournament-hero p{margin:0;color:var(--muted)}.live-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:99px;background:#22c55e18;color:#61e78f;font-size:9px;font-weight:900}.live-pill i{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px #22c55e16}.timer{display:grid;justify-items:center;min-width:130px;padding:14px;border:1px solid #ffffff12;border-radius:17px;background:#07111f;color:#fff}.timer small,.timer span{color:var(--muted);font-size:8px}.timer b{margin:3px 0;font-size:30px;font-variant-numeric:tabular-nums}.round-nav{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:10px;margin:18px 0}.round-nav div{text-align:center}.round-nav small,.round-nav b{display:block}.round-nav small{color:var(--muted);font-size:8px;letter-spacing:.12em}.round-nav b{font-size:20px}.round-nav button{height:42px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:#fff}.round-nav button:disabled{opacity:.3}.court-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.court-card{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:var(--panel)}.court-card header{display:flex;justify-content:space-between;padding:12px 15px;background:#ffffff05}.court-card header b{color:#64e993;font-size:11px}.court-card header span{color:var(--muted);font-size:9px}.teams{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;gap:7px;padding:22px 15px;text-align:center}.team-avatar{display:flex;justify-content:center;margin-bottom:9px}.team-avatar i{display:grid;place-items:center;width:34px;height:34px;margin-left:-5px;border:2px solid var(--panel);border-radius:50%;background:linear-gradient(135deg,#334a65,#1b2d44);color:#fff;font-size:9px;font-style:normal;font-weight:900}.teams strong{display:block;line-height:1.35}.teams>span{color:#64748b;font-size:10px;font-weight:900}.score-display{display:flex;justify-content:center;gap:8px;margin-top:8px;font-size:25px}.court-card footer{padding:11px 14px;border-top:1px solid #ffffff0d}.court-card footer button{width:100%;min-height:42px;border:1px solid var(--line);border-radius:11px;background:#ffffff09;color:#fff;font-weight:900}.court-card.completed{border-color:#22c55e55}.court-card.completed footer button{color:#65e991}.bye-card{margin:14px 0;padding:14px;border:1px dashed #36506e;border-radius:14px;color:var(--muted);text-align:center}.next-round{margin-top:16px}.ranking-title{align-items:center;justify-content:space-between}.share-button{padding:10px 14px;border-radius:11px}.podium{display:grid;grid-template-columns:1fr 1.13fr 1fr;align-items:end;gap:8px;max-width:720px;margin:38px auto 18px}.podium-card{display:grid;justify-items:center;padding:16px 8px;border:1px solid var(--line);border-radius:18px 18px 8px 8px;background:linear-gradient(#192a40,#101d2f)}.podium-card.first{min-height:200px;border-color:#f5bd3f55;background:linear-gradient(#493716,#171f2d)}.podium-card.second{min-height:165px}.podium-card.third{min-height:145px}.medal{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f59e0b;color:#1f1300;font-size:20px}.second .medal{background:#bcc7d4}.third .medal{background:#b87945}.podium-card b{margin-top:9px;text-align:center}.podium-card strong{margin-top:6px;color:#6bea96;font-size:20px}.podium-card small{color:var(--muted)}.ranking-list{display:grid;gap:6px;max-width:760px;margin:auto}.rank-row{display:grid;grid-template-columns:36px 42px 1fr auto auto;align-items:center;gap:10px;padding:11px 13px;border:1px solid #ffffff0c;border-radius:13px;background:#ffffff05}.rank-row>span{color:var(--muted);text-align:center;font-weight:900}.rank-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#1d3149;font-size:11px;font-weight:900}.rank-row b,.rank-row small{display:block}.rank-row small{color:var(--muted);font-size:9px}.rank-row em{color:#61e78f;font-size:10px;font-style:normal}.rank-row strong{font-size:18px}.bottom-nav{position:fixed;left:50%;bottom:max(10px,env(safe-area-inset-bottom));z-index:50;display:grid;grid-template-columns:repeat(4,1fr);width:min(500px,calc(100% - 20px));padding:6px;border:1px solid #ffffff12;border-radius:19px;background:#0a1625ed;box-shadow:0 15px 45px #0009;backdrop-filter:blur(20px);transform:translateX(-50%)}.bottom-nav button{display:grid;justify-items:center;gap:2px;padding:8px 4px;border:0;border-radius:13px;background:transparent;color:#728198;font-size:8px;font-weight:900}.bottom-nav button span{font-size:17px}.bottom-nav button.active{background:#22c55e16;color:#61e78f}dialog{width:min(470px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:22px;background:#0d1929;color:#fff;box-shadow:var(--shadow)}dialog::backdrop{background:#020713cc;backdrop-filter:blur(5px)}dialog form{padding:20px}dialog header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}dialog h3{margin:5px 0 0;font-size:25px}.close-button{border:0;background:none;color:var(--muted);font-size:28px}.score-team{display:grid;grid-template-columns:1fr 90px;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#081422}.score-team input{width:90px;height:67px;border:1px solid #35506e;border-radius:12px;background:#020b16;color:#fff;font-size:34px;font-weight:900;text-align:center}.score-divider{padding:7px;text-align:center;font-size:23px;font-weight:900}textarea{width:100%;margin-bottom:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#07111f;color:#fff;resize:vertical}.toast{position:fixed;left:50%;bottom:100px;z-index:100;padding:11px 15px;border-radius:11px;background:#f8fafc;color:#07111f;font-size:11px;font-weight:900;opacity:0;pointer-events:none;transform:translate(-50%,15px);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:850px){.phone-preview{right:-80px;opacity:.55}.hero-copy{max-width:580px}.court-grid{grid-template-columns:1fr}}@media(max-width:650px){.topbar{height:58px;padding:0 14px}.top-status{display:none}.screen{padding:20px 12px}.landing{padding-top:35px}.hero-copy h1{font-size:48px}.hero-copy p{font-size:15px}.phone-preview{display:none}.hero-actions{display:grid}.feature-grid{grid-template-columns:1fr;margin-top:45px}.page-title h2{font-size:27px}.setup-card{padding:15px;border-radius:18px}.player-list{grid-template-columns:1fr}.format-options{grid-template-columns:1fr}.tournament-hero{align-items:stretch;flex-direction:column}.tournament-hero h2{font-size:25px}.timer{grid-template-columns:1fr auto;align-items:center;justify-items:start}.timer b{grid-column:2;grid-row:1/3}.timer span{grid-column:1}.teams{padding:18px 8px}.podium{gap:4px}.podium-card{padding:12px 4px}.rank-row{grid-template-columns:28px 36px 1fr auto}.rank-row em{display:none}.ranking-title{align-items:flex-start}.player-actions{display:grid;grid-template-columns:1fr 1fr}.bottom-nav{bottom:max(6px,env(safe-area-inset-bottom))}}

/* EZTOUR v0.2 tournament formats and touch affordance */
a,button,[data-go],.format-options label,.tournament-types label{-webkit-tap-highlight-color:#22c55e30;touch-action:manipulation}
.tournament-types{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tournament-types label{margin:0}.tournament-types input{position:absolute;opacity:0}.tournament-types span{display:grid;gap:4px;min-height:86px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#081422}.tournament-types small{color:var(--muted);font-size:9px;line-height:1.35}.tournament-types input:checked+span{border-color:var(--green);background:#22c55e15;box-shadow:inset 0 0 0 1px var(--green)}
.score-team{grid-template-columns:1fr 90px}.score-team small{grid-column:1/-1;color:var(--muted);font-size:9px}.score-team.auto-score input{border-color:#22c55e55;background:#0d271a}.score-team.auto-score small{color:#61e78f}
@media(max-width:650px){.tournament-types{grid-template-columns:1fr}.tournament-types span{min-height:0}}

/* EZTOUR v0.3 team identity and QR join */
.live-actions{display:flex;align-items:stretch;gap:9px}.qr-button{display:grid;grid-template-columns:30px auto;align-content:center;min-width:130px;padding:10px 13px;border:1px solid #ffffff12;border-radius:17px;background:#ffffff08;color:#fff;text-align:left}.qr-button>span{grid-row:1/3;align-self:center;color:var(--green);font-size:25px}.qr-button b,.qr-button small{display:block}.qr-button b{font-size:11px}.qr-button small{color:var(--muted);font-size:8px}.team-badge{display:inline-flex;align-items:center;gap:5px;margin:7px auto 0;padding:4px 7px;border:1px solid currentColor;border-radius:99px;font-size:8px;font-weight:900}.team-badge i{width:7px;height:7px;border-radius:50%;background:currentColor}.team-color-0{color:#7dd3fc}.team-color-1{color:#c4b5fd}.team-color-2{color:#fda4af}.team-color-3{color:#fde68a}.team-color-4{color:#86efac}.team-color-5{color:#fdba74}.team-color-6{color:#f0abfc}.team-color-7{color:#a5b4fc}.qr-dialog{width:min(430px,calc(100% - 20px))}.qr-wrap{display:grid;place-items:center;min-height:260px;padding:16px;border-radius:18px;background:#fff}.qr-wrap img{display:block;width:230px;height:230px;image-rendering:pixelated}.qr-wrap span{color:#07111f;font-size:11px;text-align:center}.qr-dialog p{color:var(--muted);font-size:11px;line-height:1.5;text-align:center}.join-preview{margin:11px 0;padding:10px;border:1px solid var(--line);border-radius:11px;color:var(--muted);font-size:10px}.join-shell{max-width:500px;margin:30px auto}.join-shell h2{margin:7px 0;font-size:34px}.join-shell>p{color:var(--muted)}.join-card{display:grid;gap:15px;margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--shadow)}.join-card label{display:grid;gap:7px;font-size:11px;font-weight:900}.join-card input,.join-card select{min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#081422;color:#fff}.join-card label small,.join-note{margin:0;color:var(--muted);font-size:9px}.join-note.success{color:#61e78f}.registered-player-list{display:flex;flex-wrap:wrap;gap:5px}.registered-player-list span{padding:5px 7px;border-radius:99px;background:#22c55e15;color:#71ee9c}
@media(max-width:650px){.live-actions{width:100%}.live-actions>*{flex:1}.qr-button{min-width:0}.tournament-hero{align-items:stretch}}

/* EZTOUR v0.4 team preview in tournament setup */
.player-row.team-player{border:1px solid currentColor;border-radius:13px;background:#081422;box-shadow:inset 4px 0 0 currentColor}.player-row.team-player input{padding-left:58px!important;border-color:transparent;background:transparent}.player-team-badge{position:absolute;left:9px;top:50%;z-index:2;display:inline-flex;align-items:center;gap:4px;font-size:8px;font-weight:900;transform:translateY(-50%)}.player-team-badge i{width:7px;height:7px;border-radius:50%;background:currentColor}.team-preview{margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:15px;background:#07111f}.team-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.team-preview-head b{font-size:11px}.team-preview-head small{color:var(--muted);font-size:9px}.team-preview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.team-preview-card{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 10px;border:1px solid currentColor;border-radius:11px;background:#ffffff05}.team-preview-card .team-badge{flex:0 0 auto;margin:0}.team-preview-card strong{overflow:hidden;color:var(--text);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.team-preview-warning{display:block;margin-top:9px;color:#fda4af;font-size:9px}.team-preview[hidden]{display:none}@media(max-width:650px){.team-preview-grid{grid-template-columns:1fr}.team-preview-head{align-items:flex-start;flex-direction:column;gap:2px}}

/* EZTOUR v0.5 balanced Americano scheduler */
.bye-card strong{color:#fde68a}

.join-note.error{color:#fb7185}
/* EZTOUR GDPR consent */
.consent-banner{position:fixed;left:50%;bottom:14px;z-index:120;display:grid;grid-template-columns:1fr auto;align-items:center;gap:18px;width:min(780px,calc(100% - 24px));padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:#0d1929f5;box-shadow:var(--shadow);backdrop-filter:blur(18px);transform:translateX(-50%)}.consent-banner[hidden]{display:none}.consent-banner b{font-size:13px}.consent-banner p{margin:4px 0;color:var(--muted);font-size:10px;line-height:1.45}.consent-actions,.privacy-actions{display:flex;gap:8px;flex-wrap:wrap}.consent-actions button,.privacy-actions button{padding:10px 12px;border-radius:11px}.privacy-link{padding:0;border:0;background:none;color:#7dd3fc;font-size:9px;text-decoration:underline}.privacy-dialog form>p,.privacy-block p{color:var(--muted);font-size:11px;line-height:1.55}.privacy-block{margin:10px 0;padding:12px;border:1px solid var(--line);border-radius:13px;background:#081422}.privacy-block b{font-size:11px}.privacy-block p{margin:5px 0 0}.privacy-status{min-height:18px;color:#61e78f!important}.privacy-actions .ghost{margin-left:auto}@media(max-width:650px){.consent-banner{grid-template-columns:1fr;bottom:8px}.consent-actions>*{flex:1}.privacy-actions{display:grid}.privacy-actions .ghost{margin-left:0}}
/* EZTOUR P3 accounts */
.account-dialog label{display:grid;gap:7px;margin:10px 0;color:var(--muted);font-size:10px;font-weight:800}.account-dialog input{min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#081422;color:#fff}.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px}.account-tabs .active{border-color:var(--green);color:#61e78f}.account-profile{display:grid;gap:3px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#081422}.account-profile small{color:var(--muted)}.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.account-stat{padding:11px;border-radius:11px;background:#ffffff08;text-align:center}.account-stat b,.account-stat small{display:block}.account-stat small{color:var(--muted);font-size:8px}.account-tournaments{display:grid;gap:6px;max-height:230px;overflow:auto}.account-tournament{display:grid;grid-template-columns:1fr auto;gap:4px;padding:10px;border:1px solid #ffffff0c;border-radius:11px;background:#ffffff05}.account-tournament small{color:var(--muted);font-size:8px}.account-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}.danger{color:#fda4af}
/* Public account entry points */
.account-entry{white-space:nowrap}.hero-actions{flex-wrap:wrap}.hero-actions .ghost{min-width:180px}@media(max-width:650px){.account-entry{padding:8px 10px;font-size:9px}.brand{font-size:15px}.hero-actions .ghost{width:100%}}
/* Account usability & password feedback */
.account-help-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.account-help{min-height:42px;color:#7dd3fc!important;font-weight:800}.password-rules{display:grid;gap:5px;margin:8px 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#081422;color:var(--muted);font-size:9px}.password-rules b{color:#fff}.password-rules span.ok{color:#61e78f}.password-rules span.bad{color:#fda4af}.account-dialog .close-button{cursor:pointer;position:relative;z-index:2}.player-actions{grid-template-columns:repeat(3,1fr)}@media(max-width:650px){.account-help-actions{grid-template-columns:1fr}.player-actions{grid-template-columns:1fr 1fr}.player-actions #clearPlayers{grid-column:1/-1}}
/* My Account v2 */
.account-help{font-size:10px!important;min-height:38px!important;padding:8px 10px!important}.account-profile{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.account-profile>div{display:grid;gap:3px}.compact{padding:8px 10px!important;font-size:9px}.account-v2-tabs{grid-template-columns:repeat(3,1fr);margin-top:14px}.account-view{min-height:80px}.account-tournament{cursor:pointer}.account-tournament:hover{border-color:#22c55e55}.account-tournament .status-badge{grid-column:2;grid-row:1/3;align-self:center;padding:4px 7px;border-radius:99px;background:#ffffff09;color:#94a3b8;font-size:8px}.account-tournament-detail{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:5px;color:#94a3b8;font-size:8px}#profileDialog label{display:grid;gap:7px;margin-bottom:14px;color:var(--muted);font-size:10px;font-weight:800}#profileDialog input{min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#081422;color:#fff}

/* Account v2.1 fixes */
.account-dialog{width:min(720px,calc(100% - 24px))}.account-name-label[hidden],.password-rules[hidden],#resendVerification[hidden]{display:none!important}.account-help-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.account-help{font-size:9px!important;line-height:1.2;min-height:34px!important;padding:7px 9px!important}.verified-welcome{display:grid;gap:4px;margin-bottom:14px;padding:12px 14px;border:1px solid #22c55e55;border-radius:13px;background:#22c55e12}.verified-welcome b{color:#61e78f;font-size:12px}.verified-welcome span{color:#cbd5e1;font-size:10px}.account-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.account-actions button{min-width:0;padding:9px 8px;font-size:9px}@media(max-width:650px){.account-dialog{width:min(470px,calc(100% - 20px))}.account-actions{grid-template-columns:1fr 1fr}}
/* Stability fixes 1-5 */
.local-join-link{display:block!important;max-width:100%;padding:18px;color:#07111f!important;font-size:11px!important;line-height:1.5;overflow-wrap:anywhere}.qr-wrap:has(.local-join-link){min-height:160px}
/* Tournament details + career stats */
.career-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:10px 0 14px}.career-stat{padding:10px 8px;border:1px solid #ffffff0c;border-radius:11px;background:#ffffff05;text-align:center}.career-stat b,.career-stat small{display:block}.career-stat b{font-size:16px}.career-stat small{margin-top:2px;color:var(--muted);font-size:7px;text-transform:uppercase}.tournament-detail-dialog{width:min(760px,calc(100% - 24px))}.tournament-detail-dialog header small{color:var(--muted)}.detail-result{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:16px}.detail-result article{padding:12px;border-radius:12px;background:#ffffff07;text-align:center}.detail-result b,.detail-result small{display:block}.detail-result b{font-size:20px;color:#61e78f}.detail-result small{color:var(--muted);font-size:8px}.detail-matches{display:grid;gap:8px;max-height:55vh;overflow:auto}.detail-match{padding:11px 12px;border:1px solid #ffffff0d;border-radius:12px;background:#081422}.detail-match.mine{border-color:#22c55e44}.detail-match header{margin:0 0 8px;color:var(--muted);font-size:8px}.detail-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.detail-score div:last-child{text-align:right}.detail-score strong{font-size:18px}.detail-score small{display:block;color:var(--muted);font-size:8px}@media(max-width:650px){.career-stats{grid-template-columns:repeat(3,1fr)}.detail-result{grid-template-columns:repeat(2,1fr)}}
/* Stability v1.1 details */
.organizer-note{grid-column:1/-1;display:grid;gap:4px;padding:13px;border:1px solid #38bdf844;border-radius:12px;background:#38bdf80d}.organizer-note b{color:#7dd3fc!important;font-size:12px!important}.organizer-note span{color:var(--muted);font-size:9px}.detail-matches h4{margin:8px 0 1px;color:#94a3b8;font-size:9px;letter-spacing:.1em;text-transform:uppercase}.detail-match.upcoming{opacity:.72}.detail-match.upcoming .detail-score strong{color:#94a3b8;font-size:10px}
/* Player Insights + richer Tournament Details */
.account-v2-tabs{grid-template-columns:repeat(4,1fr)}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.insight-panel{padding:11px;border:1px solid #ffffff0d;border-radius:12px;background:#081422}.insight-panel h4{margin:0 0 9px;font-size:10px}.insight-person{display:grid;grid-template-columns:1fr auto;gap:2px;padding:7px 0;border-bottom:1px solid #ffffff08}.insight-person:last-child{border:0}.insight-person small{color:var(--muted);font-size:8px}.form-dots{display:flex;gap:5px}.form-dot{width:12px;height:12px;border-radius:50%;background:#fb7185}.form-dot.win{background:#22c55e}.detail-insights{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.detail-insight{padding:11px;border:1px solid #ffffff0d;border-radius:12px;background:#ffffff05}.detail-insight h4{margin:0 0 7px}.detail-ranking{display:grid;gap:4px}.detail-rank-row{display:grid;grid-template-columns:28px 1fr auto auto;gap:8px;padding:7px 8px;border-radius:9px;background:#ffffff05;font-size:9px}.detail-rank-row.me{outline:1px solid #22c55e66}.detail-rank-row span:last-child{color:#61e78f;font-weight:900}@media(max-width:650px){.account-v2-tabs{grid-template-columns:1fr 1fr}.insight-grid,.detail-insights{grid-template-columns:1fr}}
/* v1.2 hotfix */
.recent-form-list{display:grid;gap:6px}.recent-form-row{display:grid;grid-template-columns:14px 1fr;align-items:center;gap:7px;padding:6px;border-radius:9px;background:#ffffff04}.recent-form-row b,.recent-form-row small{display:block}.recent-form-row b{font-size:9px}.recent-form-row small{margin-top:2px;color:var(--muted);font-size:7px}.recent-form-row.loss .form-dot{background:#fb7185}
/* Beta dashboard, resume & public results */
.dashboard-screen{max-width:900px}.dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.dashboard-head h2{margin:6px 0 4px;font-size:34px}.dashboard-head p{margin:0;color:var(--muted)}.dashboard-career{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.dashboard-stat{padding:15px;border:1px solid #ffffff0d;border-radius:15px;background:#ffffff06;text-align:center}.dashboard-stat b,.dashboard-stat small{display:block}.dashboard-stat b{font-size:22px;color:#61e78f}.dashboard-stat small{color:var(--muted);font-size:8px;text-transform:uppercase}.dashboard-section{margin-top:20px}.dashboard-section h3{font-size:12px}.dashboard-list{display:grid;gap:7px}.dashboard-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:12px 13px;border:1px solid #ffffff0d;border-radius:13px;background:#ffffff05}.dashboard-card b,.dashboard-card small{display:block}.dashboard-card small{margin-top:3px;color:var(--muted);font-size:9px}.dashboard-card-actions{display:flex;gap:6px}.public-results{max-width:840px}.public-result-head{text-align:center;margin:15px 0 25px}.public-result-head h2{margin:7px 0 4px;font-size:36px}.public-result-head p{margin:0;color:var(--muted)}.public-matches{display:grid;gap:7px;max-width:760px;margin:22px auto}.public-match{display:grid;grid-template-columns:90px 1fr auto 1fr;align-items:center;gap:9px;padding:10px 12px;border:1px solid #ffffff0c;border-radius:12px;background:#ffffff05}.public-match small{color:var(--muted)}.public-match div:last-child{text-align:right}.public-match strong{font-size:17px}.public-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:760px;margin:25px auto;padding:16px;border:1px solid #22c55e33;border-radius:15px;background:#22c55e0b}@media(max-width:650px){.dashboard-head{align-items:stretch;flex-direction:column}.dashboard-career{grid-template-columns:1fr 1fr}.public-match{grid-template-columns:1fr auto 1fr}.public-match small{grid-column:1/-1}.public-cta{align-items:stretch;flex-direction:column}}
/* v1.3.1 navigation */
.ranking-actions{display:flex;gap:8px;align-items:center}@media(max-width:650px){.ranking-actions{width:100%}.ranking-actions button{flex:1}}
/* Friends + tournament invites */
.notification-button{position:relative}.notification-button span{position:absolute;right:-5px;top:-6px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#fb7185;color:#fff;font-size:8px;font-weight:900}.friends-dialog,.notifications-dialog{width:min(720px,calc(100% - 24px))}.friends-toolbar input{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#081422;color:#fff}.friends-picker-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.friends-picker-grid h4{margin:4px 0 8px;font-size:10px}.friend-list,.notification-list{display:grid;gap:7px;max-height:300px;overflow:auto}.friend-card,.notification-card{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:9px;border:1px solid #ffffff0d;border-radius:11px;background:#ffffff05}.friend-card[draggable=true]{cursor:grab}.friend-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#1d3149;font-size:9px;font-weight:900}.friend-card small,.notification-card small{color:var(--muted);font-size:8px}.friend-actions,.notification-actions{display:flex;gap:5px}.friend-drop-zone{margin-top:11px;padding:14px;border:1px dashed #36506e;border-radius:12px;color:var(--muted);font-size:9px;text-align:center}.friend-drop-zone.drag-over{border-color:var(--green);background:#22c55e10;color:#61e78f}.notification-card{grid-template-columns:1fr auto}.notification-card b,.notification-card small{display:block}.player-row.account-player{border-color:#38bdf855}.player-row.account-player:before{content:'ACCOUNT';position:absolute;left:8px;top:-6px;padding:2px 5px;border-radius:99px;background:#0d2940;color:#7dd3fc;font-size:6px;font-weight:900}.player-row.account-player input{padding-left:12px}@media(max-width:650px){.friends-picker-grid{grid-template-columns:1fr}.friend-actions,.notification-actions{flex-wrap:wrap}}

/* Social v1.1 identity */
.player-row.account-player{padding-top:8px}.account-invite-note{display:block;margin:2px 38px 3px 10px;color:#7dd3fc;font-size:7px;font-weight:800}.player-row.account-player input{border-color:#38bdf855!important}
/* Username v1 */
.username-input{display:grid;grid-template-columns:34px 1fr;align-items:center;border:1px solid var(--line);border-radius:11px;background:#081422;overflow:hidden}.username-input span{display:grid;place-items:center;height:100%;color:#7dd3fc;font-weight:900}.username-input input{border:0!important;border-left:1px solid var(--line)!important;border-radius:0!important}.username-status{display:block;margin-top:5px;color:var(--muted);font-size:8px}.username-status.available{color:#61e78f}.username-status.unavailable{color:#fda4af}.username-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.username-suggestions button{padding:5px 8px;border:1px solid #38bdf844;border-radius:99px;background:#38bdf80d;color:#7dd3fc;font-size:8px}.public-username{color:#7dd3fc;font-size:9px}.username-dialog label{display:grid;gap:6px}.username-copy{color:var(--muted);font-size:10px;line-height:1.5}
/* Username v1 */
.username-input{display:grid;grid-template-columns:34px 1fr;align-items:center;border:1px solid var(--line);border-radius:11px;background:#081422;overflow:hidden}.username-input span{display:grid;place-items:center;height:100%;color:#7dd3fc;font-weight:900}.username-input input{border:0!important;border-left:1px solid var(--line)!important;border-radius:0!important}.username-status{display:block;margin-top:5px;color:var(--muted);font-size:8px}.username-status.available{color:#61e78f}.username-status.unavailable{color:#fda4af}.username-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.username-suggestions button{padding:5px 8px;border:1px solid #38bdf844;border-radius:99px;background:#38bdf80d;color:#7dd3fc;font-size:8px}.public-username{color:#7dd3fc;font-size:9px}.username-dialog label{display:grid;gap:6px}.username-copy{color:var(--muted);font-size:10px;line-height:1.5}

/* Tournament formats V1 */
.tournament-types label:has(input[value=knockout]) span,.tournament-types label:has(input[value=groups-knockout]) span{background:linear-gradient(145deg,#081422,#101f34)}.court-card header span{max-width:65%;text-align:right}.court-card:has(header span:first-letter){position:relative}#roundCountStep[hidden]{display:none}@media(max-width:650px){.court-card header{gap:8px}.court-card header span{max-width:60%}}

/* Equal format cards + aligned 8-card layout */
.tournament-types{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch}
.tournament-types>label{grid-column:span 2;display:flex;min-width:0;height:100%}
.tournament-types>label:nth-child(7){grid-column:2/span 2}
.tournament-types>label:nth-child(8){grid-column:4/span 2}
.tournament-types>label>span{display:flex;flex:1;flex-direction:column;justify-content:flex-start;width:100%;min-height:96px;height:100%;padding:14px;gap:8px}
.tournament-types>label>span b{line-height:1.25}
.tournament-types>label>span small{margin-top:auto;line-height:1.45}
@media(max-width:850px) and (min-width:651px){.tournament-types{grid-template-columns:repeat(2,minmax(0,1fr))}.tournament-types>label,.tournament-types>label:nth-child(7),.tournament-types>label:nth-child(8){grid-column:auto}}
@media(max-width:650px){.tournament-types{grid-template-columns:1fr}.tournament-types>label,.tournament-types>label:nth-child(7),.tournament-types>label:nth-child(8){grid-column:auto}.tournament-types>label>span{min-height:82px}}
