:root { color-scheme:dark; --ink:#fff7ee; --muted:#b9a99c; --orange:#ff7a1a; --orange2:#ffb05f; --accent-deep:#e8440a; --accent-soft:rgba(255,122,26,.17); --accent-shadow:rgba(255,92,14,.25); --accent-text:#ffd6b7; --glow-one:#9d2800; --glow-two:#5b2108; --page-bg:#120a06; --panel:rgba(38,22,13,.78); --panel-gradient:linear-gradient(145deg,rgba(62,31,14,.88),rgba(25,15,10,.88)); --line:rgba(255,255,255,.10); }
body[data-theme="island"] { --orange:#58c36d; --orange2:#9de4a8; --accent-deep:#278d48; --accent-soft:rgba(88,195,109,.17); --accent-shadow:rgba(44,167,77,.24); --accent-text:#c8f7cf; --glow-one:#176b34; --glow-two:#16452b; --page-bg:#07110b; --panel:rgba(19,43,27,.78); --panel-gradient:linear-gradient(145deg,rgba(26,62,38,.88),rgba(11,27,17,.9)); }
body[data-theme="ocean"] { --orange:#38a8e8; --orange2:#8ed7ff; --accent-deep:#176fbd; --accent-soft:rgba(56,168,232,.17); --accent-shadow:rgba(25,126,204,.24); --accent-text:#c6ebff; --glow-one:#075f91; --glow-two:#103b6d; --page-bg:#061019; --panel:rgba(13,32,50,.8); --panel-gradient:linear-gradient(145deg,rgba(18,49,72,.9),rgba(8,23,37,.9)); }
body[data-theme="violet"] { --orange:#a978f5; --orange2:#d1b4ff; --accent-deep:#7144ca; --accent-soft:rgba(169,120,245,.17); --accent-shadow:rgba(126,79,211,.25); --accent-text:#e6d8ff; --glow-one:#57229b; --glow-two:#351d6b; --page-bg:#0e0918; --panel:rgba(34,22,55,.8); --panel-gradient:linear-gradient(145deg,rgba(52,34,81,.9),rgba(24,15,40,.9)); }
body[data-theme="rose"] { --orange:#ec6d98; --orange2:#ffb0c9; --accent-deep:#b83e6d; --accent-soft:rgba(236,109,152,.17); --accent-shadow:rgba(197,58,107,.24); --accent-text:#ffd5e2; --glow-one:#93234d; --glow-two:#601d3c; --page-bg:#160910; --panel:rgba(52,23,35,.8); --panel-gradient:linear-gradient(145deg,rgba(74,31,48,.9),rgba(34,14,24,.9)); }
body[data-theme="gold"] { --orange:#dda928; --orange2:#f2d477; --accent-deep:#a8730d; --accent-soft:rgba(221,169,40,.17); --accent-shadow:rgba(185,132,18,.24); --accent-text:#fff0b8; --glow-one:#80600d; --glow-two:#56410e; --page-bg:#130f05; --panel:rgba(48,38,16,.8); --panel-gradient:linear-gradient(145deg,rgba(67,51,17,.9),rgba(31,24,8,.9)); }
* { box-sizing:border-box; }
body { margin:0; min-height:100dvh; overflow-x:hidden; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--ink); background:var(--page-bg); transition:background-color .25s; }
body.welcome-active { height:100dvh; overflow:hidden; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.glow { position:fixed; z-index:-1; border-radius:999px; filter:blur(90px); opacity:.32; }
.glow-one { width:34rem; height:34rem; background:var(--glow-one); top:-15rem; right:-9rem; }
.glow-two { width:28rem; height:28rem; background:var(--glow-two); bottom:-17rem; left:-10rem; }
.site-header { position:relative; z-index:30; height:78px; display:flex; align-items:center; justify-content:space-between; padding:0 clamp(20px,5vw,72px); border-bottom:1px solid var(--line); backdrop-filter:blur(22px); }
.header-workspace { min-width:0; display:flex; align-items:center; gap:18px; }
.brand { display:flex; align-items:center; gap:.65rem; color:var(--ink); text-decoration:none; font-size:1.2rem; font-weight:800; letter-spacing:-.02em; }
.brand-mark { width:34px; height:34px; border-radius:9px; }
.header-actions { display:flex; align-items:center; gap:12px; }
.status-pill { font-size:.78rem; color:var(--muted); }
.workspace-menu { position:relative; min-width:0; }
.workspace-trigger { max-width:min(310px,34vw); min-height:46px; display:flex; align-items:center; gap:10px; padding:5px 10px 5px 6px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.045); list-style:none; cursor:pointer; transition:border-color .18s,background .18s; }
.workspace-trigger::-webkit-details-marker,.account-trigger::-webkit-details-marker { display:none; }
.workspace-trigger:hover,.workspace-trigger:focus-visible,.workspace-menu[open] .workspace-trigger { border-color:rgba(255,255,255,.2); background:rgba(255,255,255,.085); }
.workspace-art { width:34px; height:34px; flex:0 0 34px; overflow:hidden; display:grid; place-items:center; border-radius:9px; color:var(--orange); background:var(--accent-soft); font-weight:850; }
.workspace-art img { width:100%; height:100%; object-fit:cover; }.workspace-art svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.9; }
.workspace-copy { min-width:0; display:grid; gap:1px; }.workspace-copy small { color:var(--muted); font-size:.62rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }.workspace-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.86rem; }
.workspace-chevron { margin-left:5px; color:var(--muted); font-size:1rem; transition:transform .18s; }.workspace-menu[open] .workspace-chevron { transform:rotate(180deg); }
.workspace-popover { position:absolute; left:0; top:calc(100% + 9px); width:min(340px,calc(100vw - 28px)); display:grid; gap:4px; padding:8px; border:1px solid var(--line); border-radius:16px; background:#281810; box-shadow:0 22px 60px rgba(0,0,0,.55); }
.workspace-popover::before { content:"Your leagues"; padding:7px 9px 5px; color:var(--muted); font-size:.67rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.workspace-option { width:100%; min-width:0; display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:11px; border:0; border-radius:11px; padding:8px; color:var(--ink); background:transparent; text-align:left; }
.workspace-option:hover,.workspace-option:focus-visible { background:rgba(255,255,255,.07); }.workspace-option[aria-current="true"] { background:var(--accent-soft); }
.workspace-option .workspace-art { width:38px; height:38px; }.workspace-option-copy { min-width:0; display:grid; gap:2px; }.workspace-option-copy strong,.workspace-option-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.workspace-option-copy small { color:var(--muted); }.workspace-check { color:var(--orange2); font-weight:900; }
.account-trigger { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; padding:0; color:var(--ink); background:rgba(255,255,255,.055); list-style:none; cursor:pointer; transition:border-color .18s,background .18s; }.account-trigger:hover,.account-trigger:focus-visible,.account-menu[open] .account-trigger { border-color:rgba(255,255,255,.24); background:rgba(255,255,255,.1); }.account-trigger svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.account-popover { min-width:250px; }.account-popover-heading { display:grid; grid-template-columns:36px minmax(0,1fr); align-items:center; gap:10px; padding:8px 11px 12px; border-bottom:1px solid var(--line); margin-bottom:3px; }.account-avatar { width:36px; height:36px; display:grid; place-items:center; border-radius:50%; color:var(--accent-text); background:var(--accent-soft); font-size:.68rem; font-weight:850; letter-spacing:.03em; }.account-popover-copy { min-width:0; display:grid; gap:2px; }.account-popover-heading small { color:var(--muted); font-size:.7rem; }.account-popover-heading strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9rem; }
.shell { width:min(1200px,calc(100% - 40px)); margin:0 auto; }
.welcome { height:calc(100dvh - 78px); display:grid; grid-template-columns:1.08fr .92fr; gap:clamp(44px,8vw,110px); align-items:center; padding:24px 0; }
.eyebrow,.card-kicker { color:var(--orange2); font-size:.76rem; font-weight:800; letter-spacing:.17em; text-transform:uppercase; }
h1 { font-size:clamp(3.15rem,7.5vw,6.6rem); letter-spacing:-.07em; line-height:.91; margin:.6rem 0 1.45rem; }
.lede { max-width:39rem; color:var(--muted); font-size:clamp(1.05rem,2vw,1.3rem); line-height:1.65; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:32px; }
.creator-box { max-width:650px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; margin-top:28px; padding:17px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(135deg,rgba(128,72,255,.12),rgba(255,122,26,.10)); }.creator-box .template-icon { margin:0; }.creator-box strong { font-size:1.05rem; }.creator-box p { margin:4px 0 0; color:var(--muted); font-size:.87rem; line-height:1.4; }
.creator-box small { display:block; margin-top:6px; color:var(--orange2); }
.button { min-height:44px; border:1px solid var(--line); border-radius:13px; padding:11px 16px; color:var(--ink); background:transparent; font-weight:750; }
.button.primary { border-color:transparent; background:linear-gradient(135deg,var(--orange),var(--accent-deep)); box-shadow:0 12px 32px var(--accent-shadow); }
.button.secondary { background:rgba(255,255,255,.055); }
.button.ghost { padding:8px 12px; font-size:.82rem; }
.score-card,.panel,.invite-card { border:1px solid var(--line); background:var(--panel-gradient); box-shadow:0 32px 90px rgba(0,0,0,.34); backdrop-filter:blur(20px); }
.template-previews { display:grid; gap:18px; align-self:center; }
.score-card { border-radius:24px; padding:22px 26px; }
.score-card h2 { font-size:1.55rem; margin:.35rem 0 1rem; }
.survivor-card { transform:rotate(-1.2deg); background:linear-gradient(145deg,rgba(38,66,35,.88),rgba(18,28,16,.9)); }
.kitchen-card { transform:rotate(1.2deg); }
.sample-row { display:flex; justify-content:space-between; padding:12px 0; border-top:1px solid var(--line); }
.sample-row span { display:flex; gap:13px; } .sample-row b { color:#77675e; }
.event-toast { display:flex; justify-content:space-between; margin-top:12px; border-radius:13px; padding:11px 13px; background:var(--accent-soft); color:var(--accent-text); }
.templates-section { padding:20px 0 110px; }
.section-heading { max-width:660px; margin-bottom:30px; }.section-heading h2 { margin:.5rem 0 .7rem; font-size:clamp(2rem,4vw,3.5rem); letter-spacing:-.045em; }.section-heading>p:last-child { color:var(--muted); line-height:1.6; }
.template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.template-card { position:relative; min-height:300px; display:flex; flex-direction:column; align-items:flex-start; text-align:left; padding:24px; border:1px solid var(--line); border-radius:23px; color:var(--ink); background:linear-gradient(145deg,rgba(62,31,14,.76),rgba(25,15,10,.8)); transition:transform .2s,border-color .2s; }
button.template-card:hover { transform:translateY(-4px); border-color:rgba(255,122,26,.55); }.template-icon { font-size:2.2rem; margin-bottom:28px; }.template-copy { display:grid; gap:8px; }.template-copy small { color:var(--orange2); font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.template-copy strong { font-size:1.45rem; }.template-copy span { color:var(--muted); line-height:1.55; }.template-action { margin-top:auto; padding-top:24px; color:#ffd2ae; font-weight:800; }
.coming-template { overflow:hidden; filter:saturate(.4); opacity:.68; }.coming-template::after { content:""; position:absolute; inset:0; background:repeating-linear-gradient(-45deg,transparent,transparent 12px,rgba(255,255,255,.018) 12px,rgba(255,255,255,.018) 24px); }.coming-badge { position:absolute; right:16px; top:16px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; color:#d2c5bb; background:#281b15; font-size:.7rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.suggestion-template { background:linear-gradient(145deg,rgba(67,35,60,.65),rgba(25,15,10,.8)); }
.custom-league-card { width:100%; min-height:240px; }
.league-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:32px; align-items:end; padding:48px 0 28px; }
.league-heading h1 { font-size:clamp(2.6rem,6vw,5rem); margin:.4rem 0 0; }
.league-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }.league-title-row h1 { flex:1 1 100%; }
.organizer-badge { display:inline-flex; align-items:center; min-height:28px; border:1px solid color-mix(in srgb,var(--accent) 48%,transparent); border-radius:999px; padding:5px 10px; color:var(--accent-text); background:var(--accent-soft); font-size:.7rem; font-weight:850; letter-spacing:.08em; line-height:1; text-transform:uppercase; white-space:nowrap; }
.member-role { display:inline-flex; margin-left:.35rem; border-radius:999px; padding:.12rem .4rem; color:var(--accent-text); background:var(--accent-soft); font-size:.65rem; font-weight:800; text-transform:uppercase; white-space:nowrap; }
.member-role.organizer-role { color:#9a4b05; background:#fff0dc; }
.league-identity { display:flex; align-items:flex-end; gap:18px; }
.league-art { width:104px; height:104px; flex:0 0 104px; overflow:hidden; display:grid; place-items:center; border:1px solid var(--line); border-radius:22px; color:var(--orange); background:var(--accent-soft); box-shadow:0 14px 34px rgba(0,0,0,.22); font-size:2rem; }
.league-art img,.template-art img { width:100%; height:100%; object-fit:cover; }
.league-heading>.row-actions { align-items:center; justify-content:flex-end; flex-wrap:wrap; max-width:530px; }
.league-heading>.row-actions>.button { min-width:92px; }
.invite-card { border-radius:18px; padding:16px 18px; display:grid; grid-template-columns:auto auto; gap:4px 16px; min-width:245px; }
.invite-card span { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.12em; }
.invite-card strong { font-size:1.45rem; letter-spacing:.17em; }
.icon-button { grid-row:1/3; grid-column:2; align-self:center; border:0; border-radius:10px; padding:9px; color:var(--ink); background:rgba(255,255,255,.08); }
.icon-action { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; border:1px solid transparent; border-radius:50%; padding:0; color:var(--ink); background:rgba(255,255,255,.055); font-weight:800; list-style:none; cursor:pointer; }
.icon-action::-webkit-details-marker { display:none; }
.icon-action:hover,.icon-action:focus-visible { border-color:var(--line); background:rgba(255,255,255,.1); }
.icon-action.destructive,.action-menu-popover .destructive { color:#ff9b8f; }
.action-menu { position:relative; z-index:4; }
.action-menu[open] { z-index:10; }
.action-menu-popover { position:absolute; right:0; top:calc(100% + 8px); z-index:20; width:max-content; min-width:210px; display:grid; gap:4px; padding:7px; border:1px solid var(--line); border-radius:14px; background:#281810; box-shadow:0 18px 50px rgba(0,0,0,.5); }
.action-menu-popover button,.action-menu-popover .menu-link { min-height:40px; display:flex; align-items:center; gap:10px; border:0; border-radius:9px; padding:8px 11px; color:var(--ink); background:transparent; text-align:left; text-decoration:none; font-weight:650; }
.action-menu-popover button:hover,.action-menu-popover .menu-link:hover { background:rgba(255,255,255,.07); }
.action-menu-popover button:disabled { cursor:not-allowed; opacity:.5; }
.action-menu-popover label { padding:7px; }
.tabs { display:flex; gap:8px; margin:10px 0 18px; overflow:auto; }
.tab { border:0; border-radius:999px; padding:10px 16px; color:var(--muted); background:transparent; white-space:nowrap; }
.tab.active { color:var(--ink); background:var(--accent-soft); }
.panel { border-radius:22px; overflow:visible; margin-bottom:80px; }
.panel-head,.row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 22px; border-bottom:1px solid var(--line); }
.panel-head h2 { margin:0; }.panel-head p,.row small { color:var(--muted); margin:.25rem 0 0; }
.panel-head>.row-actions { flex-wrap:wrap; justify-content:flex-end; }
.panel-head>.row-actions .button { white-space:nowrap; }
.rank { width:28px; color:#826f63; font-weight:800; }.row-main { flex:1; }.score { font-size:1.25rem; font-weight:850; }
.rule-points { font-weight:850; color:#67d49b; }.rule-points.negative { color:#ff7777; }
.rule-icon { width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; overflow:hidden; border-radius:10px; color:var(--orange); background:var(--accent-soft); }.rule-icon img { width:100%; height:100%; object-fit:cover; }.symbol-avatar svg { width:58%; height:58%; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }.symbol-avatar svg text { fill:currentColor; stroke:none; font:700 8px Arial,sans-serif; text-anchor:middle; }.rule-icon.symbol-avatar svg { width:55%; height:55%; }
.row-content-button { display:grid; gap:3px; border:0; padding:0; color:inherit; background:transparent; text-align:left; }
.row-actions { display:flex; gap:8px; }.small-button { min-height:36px; border:1px solid var(--line); border-radius:9px; padding:7px 10px; background:rgba(255,255,255,.04); color:var(--ink); }
.player-row { position:relative; display:grid; grid-template-columns:minmax(240px,1fr) 90px minmax(150px,220px) 38px; align-items:center; }
.player-identity { min-width:0; display:flex; align-items:center; gap:14px; }.player-copy { min-width:0; display:grid; gap:3px; }.player-copy strong { font-size:1.05rem; line-height:1.15; }.player-copy small { display:block; }.photo-credit { color:var(--accent); font-size:.72rem; }
.player-photo { width:58px; height:58px; flex:0 0 58px; overflow:hidden; display:grid; place-items:center; border-radius:14px; background:rgba(255,255,255,.08); color:var(--muted); font-weight:850; text-decoration:none; }.player-photo img,.member-avatar img,.prediction-avatar img { width:100%; height:100%; object-fit:cover; }.symbol-avatar { color:var(--orange); background:rgba(0,0,0,.2); font-family:Arial,sans-serif; font-size:1.35rem; }.member-avatar { width:44px; height:44px; flex:0 0 44px; overflow:hidden; display:grid; place-items:center; border-radius:12px; background:var(--accent-soft); color:var(--orange); font-weight:850; }.member-avatar.symbol-avatar { background:rgba(0,0,0,.2); }.rank-control { display:grid; gap:5px; }.rank-control input { width:78px; }.draft-player { width:100%; max-width:none; }.player-row>.row-actions .small-button { flex:1; }
.emoji-avatar { font-size:1.35rem; line-height:1; }.symbol-picker { display:grid; gap:10px; margin:0; padding:0; border:0; }.symbol-picker legend { margin-bottom:8px; font-weight:750; }.symbol-choices { display:grid; grid-template-columns:repeat(8,1fr); gap:8px; }.symbol-choice { display:grid; place-items:center; width:100%; aspect-ratio:1; padding:8px; border:1px solid var(--line); border-radius:10px; color:var(--orange); background:rgba(255,255,255,.04); }.symbol-choice:hover,.symbol-choice.selected { border-color:var(--accent); background:var(--accent-soft); }.symbol-choice svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }.emoji-field { margin-top:2px; }
.custom-avatar { background:rgba(0,0,0,.2); }.tinted-icon { display:block; width:100%; height:100%; background:var(--icon-color,#fff); -webkit-mask:var(--icon-mask) center/contain no-repeat; mask:var(--icon-mask) center/contain no-repeat; }.custom-avatar .tinted-icon { width:82%; height:82%; }.custom-icon-choices { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }.custom-icon-choice { display:grid; gap:5px; justify-items:center; padding:7px; border:1px solid var(--line); border-radius:10px; color:var(--muted); background:rgba(255,255,255,.04); font-size:.68rem; }.custom-icon-preview { display:grid; place-items:center; width:100%; aspect-ratio:1; padding:8px; border-radius:7px; background:rgba(0,0,0,.2); }.custom-icon-preview .tinted-icon { width:100%; height:100%; }.custom-icon-choice:hover,.custom-icon-choice.selected { border-color:var(--accent); color:var(--ink); background:var(--accent-soft); }.custom-icon-fieldset { grid-column:1/-1; }.icon-color-field { display:flex!important; align-items:center; justify-content:space-between; grid-column:1/-1; }.icon-color-field input[type=color] { width:52px; height:38px; padding:3px; cursor:pointer; }
.score-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding:22px; }.score-grid label { display:grid; gap:8px; }
.draft-settings { grid-template-areas:"intro style" "start seconds" "readiness action"; align-items:end; column-gap:24px; row-gap:14px; }
.draft-settings-intro { grid-area:intro; align-self:center; display:flex; align-items:baseline; flex-wrap:wrap; gap:4px; min-height:44px; }
.draft-settings-intro small { color:var(--muted); line-height:1.4; }
.draft-style-setting { grid-area:style; }
.draft-start-setting { grid-area:start; }
.draft-seconds-setting { grid-area:seconds; }
.draft-readiness { grid-area:readiness; align-self:center; margin:0; }
.draft-start-button { grid-area:action; width:100%; }
.ai-adjudicator { border-top:1px solid var(--line); }.ai-adjudicator>form,.review-report { display:grid; gap:16px; padding:22px; }.ai-adjudicator textarea,.review-report textarea { min-height:120px; }.review-report h3 { margin:0; }.review-report ul { margin:0; color:var(--muted); }.review-change { display:flex!important; grid-template-columns:none!important; align-items:flex-start; gap:12px!important; padding:14px; border:1px solid var(--line); border-radius:14px; }.review-change input { width:auto; margin-top:4px; }.review-change span { display:grid; gap:5px; }.review-change small { color:var(--muted); }
.research-notes { color:var(--muted); font-size:.86rem; }.research-notes summary { cursor:pointer; color:var(--ink); font-weight:750; }.research-notes p { max-height:12rem; margin:.75rem 0 0; overflow:auto; line-height:1.5; white-space:pre-wrap; }
.tab-ai-chat { display:grid; gap:12px; padding:18px 22px 22px; border-top:1px solid var(--line); background:linear-gradient(135deg,rgba(169,120,245,.09),rgba(255,122,26,.06)); }
.tab-ai-chat label>span { color:var(--ink); font-size:.95rem; }
.tab-ai-chat textarea { min-height:68px; }
.tab-ai-chat-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.tab-ai-chat-actions small { color:var(--muted); line-height:1.4; }
.button.is-loading::before,.small-button.is-loading::before { content:""; display:inline-block; width:1em; height:1em; margin-right:8px; vertical-align:-.15em; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:button-spin .7s linear infinite; }
@keyframes button-spin { to { transform:rotate(360deg); } }
dialog { width:min(480px,calc(100% - 30px)); border:1px solid var(--line); border-radius:23px; padding:0; color:var(--ink); background:#21130c; box-shadow:0 40px 100px #000; }
dialog::backdrop { background:rgba(7,3,1,.72); backdrop-filter:blur(8px); }
dialog form { display:grid; gap:18px; padding:30px; } dialog h2 { margin:-8px 0 5px; font-size:2rem; } .dialog-close { position:absolute; right:15px; top:12px; border:0; background:none; color:var(--muted); font-size:1.8rem; }
.auth-dialog-content { position:relative; display:grid; gap:18px; padding:34px 30px 28px; }.auth-dialog-content h2 { margin:-8px 0 2px; font-size:2rem; }.apple-auth-button { width:100%; min-height:50px; border:1px solid #fff; border-radius:11px; color:#111; background:#fff; font-weight:700; }.apple-auth-button:disabled { opacity:.65; }.apple-mark { margin-right:7px; font-size:1.25rem; }
.theme-dialog-content { position:relative; display:grid; gap:18px; padding:34px 30px 28px; }.theme-dialog-content h2 { margin:-8px 0 2px; font-size:2rem; }
.theme-choices { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.theme-choice { min-height:74px; display:grid; place-items:center; gap:7px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:rgba(255,255,255,.04); font-weight:750; }.theme-choice[aria-pressed="true"] { border-color:var(--orange); background:var(--accent-soft); }.theme-swatch { width:26px; height:26px; border-radius:50%; background:var(--swatch); box-shadow:inset 0 0 0 2px rgba(255,255,255,.22); }
.league-image-form { grid-template-columns:72px 1fr auto; align-items:end; gap:12px; padding:0; }.league-image-preview .league-art { width:72px; height:72px; border-radius:16px; }.league-image-form .button { align-self:end; }
.dialog-intro { color:var(--muted); line-height:1.5; margin:-10px 0 2px; }
.ai-button { display:flex; align-items:center; gap:12px; text-align:left; background:linear-gradient(135deg,rgba(128,72,255,.18),rgba(255,122,26,.13)); border-color:rgba(188,151,255,.35); }
.ai-button>span:first-child { font-size:1.5rem; }.ai-button span:last-child { display:grid; gap:3px; }.ai-button small { color:var(--muted); font-weight:500; }
.draft-summary { padding:11px 13px; border-radius:11px; color:#d9ffc9; background:rgba(82,179,72,.13); font-size:.84rem; line-height:1.45; }
.template-choice { flex:1 1 0; min-width:0; min-height:72px; display:flex; align-items:center; justify-content:flex-start; gap:12px; text-align:left; }.template-art { width:44px; height:44px; flex:0 0 44px; overflow:hidden; display:grid; place-items:center; border-radius:11px; color:var(--orange); background:var(--accent-soft); }
.template-choice.is-selected,.saved-template-choice.is-selected { border-color:var(--orange); background:var(--accent-soft); box-shadow:inset 0 0 0 1px var(--orange); }
.template-selection-mark { margin-left:auto; color:var(--orange2); font-size:1.15rem; }
.template-section-label { margin:4px 0 9px; color:var(--muted); font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.saved-template-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.saved-template-grid .button { min-height:52px; }.saved-template-choice { display:flex; align-items:center; justify-content:space-between; gap:10px; text-align:left; }
.saved-template-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }.saved-template-row .delete-saved-template { color:#ffaaa0; }
.calendar-list { display:grid; }.calendar-entry { display:grid; grid-template-columns:minmax(150px,190px) minmax(0,1fr); gap:18px; align-items:center; padding:17px 22px; border-top:1px solid var(--line); }.calendar-entry time { color:var(--orange2); }.calendar-entry div { display:grid; gap:4px; }.calendar-entry small { color:var(--muted); }
.calendar-draft { background:var(--accent-soft); }.calendar-draft time { color:var(--ink); }
@media (max-width:520px) { .calendar-entry { grid-template-columns:1fr; gap:6px; } }
.form-status { min-height:1.3em; margin:-5px 0; color:var(--orange2); font-size:.84rem; line-height:1.45; }.form-status.error { color:#ff9999; }
.button:disabled { cursor:progress; opacity:.68; }
label { display:grid; gap:8px; color:#daccc2; font-size:.86rem; font-weight:700; }
input,textarea,select { width:100%; min-height:44px; border:1px solid var(--line); border-radius:11px; padding:10px 13px; color:var(--ink); background:rgba(255,255,255,.055); outline:none; } textarea { min-height:90px; resize:vertical; } input:focus,textarea:focus,select:focus { border-color:var(--orange); }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); padding:12px 16px; border-radius:12px; color:var(--ink); background:#3b2114; box-shadow:0 14px 40px #000; }
.form-error { color:#ff9b73; font-weight:700; }
.draft-clock { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.hidden { display:none !important; }
@media (max-width:900px) { .template-grid { grid-template-columns:1fr; }.template-card { min-height:230px; } }
@media (max-width:760px), (max-height:700px) { body.welcome-active { height:auto; min-height:100dvh; overflow-x:hidden; overflow-y:auto; }.welcome { height:auto; min-height:calc(100dvh - 78px); grid-template-columns:1fr; padding:45px 0; }.creator-box { grid-template-columns:auto 1fr; }.creator-box .button { grid-column:1/3; }.score-card { transform:none; }.template-previews { width:100%; }.league-heading { grid-template-columns:1fr; align-items:stretch; }.invite-card { width:100%; }.score-grid { grid-template-columns:1fr; }.status-pill { display:none; } }
@media (max-width:900px) { .player-row { grid-template-columns:minmax(180px,1fr) 82px; }.player-row .draft-player,.player-row .row-actions { grid-column:1/3; max-width:none; width:100%; }.player-row .row-actions { justify-content:flex-end; }.draft-settings { grid-template-areas:"intro style" "start seconds" "readiness action"; } }
@media (max-width:760px) {
  .site-header { height:auto; min-height:70px; padding:12px 14px; gap:10px; }
  .header-workspace { gap:8px; }.brand { font-size:1.05rem; white-space:nowrap; }.brand span { display:none; }
  .workspace-trigger { max-width:48vw; }.workspace-copy small { display:none; }.workspace-copy strong { font-size:.8rem; }
  .header-actions { gap:6px; }
  .header-actions .button { padding:9px 10px; font-size:.76rem; }
  .shell { width:calc(100% - 24px); }
  .league-heading { gap:20px; padding:30px 0 18px; }
  .league-heading h1 { font-size:clamp(2.45rem,14vw,4rem); overflow-wrap:anywhere; }
  .league-identity { align-items:center; }.league-art { width:72px; height:72px; flex-basis:72px; border-radius:16px; }
  .league-heading>.row-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:10px; }
  .league-heading>.row-actions>.button { min-height:48px; padding:11px; border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.06); }
  .league-heading .invite-card { grid-column:1/-1; min-width:0; width:100%; }
  .tabs { width:calc(100vw - 12px); margin-left:0; padding:0 12px 8px 0; scrollbar-width:none; }
  .tabs::-webkit-scrollbar { display:none; }
  .tab { flex:0 0 auto; border:1px solid var(--line); background:rgba(255,255,255,.035); }
  .panel { width:100%; border-radius:18px; margin-bottom:45px; }
  .panel-head { align-items:stretch; flex-direction:column; padding:18px 16px; }
  .panel-head>.row-actions { display:grid; grid-template-columns:1fr; width:100%; }
  .panel-head>.row-actions .button { width:100%; min-height:46px; background:rgba(255,255,255,.06); }
  .row { padding:16px; flex-wrap:wrap; }
  .row .row-actions { width:100%; }
  .row .small-button { flex:1; min-height:42px; background:rgba(255,255,255,.07); }
  .player-row { display:grid; grid-template-columns:1fr; gap:14px; }
  .player-row .player-identity,.player-row .player-status,.player-row .player-team,.player-row>.row-action-menu { grid-column:1; width:100%; max-width:none; }
  .player-row>.row-action-menu { position:absolute; right:16px; top:16px; width:38px; }
  .player-row .rank-control { grid-template-columns:auto 1fr; align-items:center; }
  .player-row .rank-control input { width:100%; }
  .score-grid { padding:18px 16px; }
  .tab-ai-chat { padding:18px 16px; }.tab-ai-chat-actions { align-items:stretch; flex-direction:column; }.tab-ai-chat-actions .button { width:100%; }
  .draft-settings { grid-template-areas:"intro" "style" "start" "seconds" "readiness" "action"; }
  .score-grid>.button { width:100%; min-height:48px; }
  .draft-clock { align-items:flex-start; flex-direction:column; }
  dialog form { padding:28px 20px 22px; }
  #template-choices { display:grid; grid-template-columns:1fr; }
  #template-choices .button { width:100%; }
  .saved-template-grid { grid-template-columns:1fr; }
  .theme-choices { grid-template-columns:1fr 1fr; }
  .symbol-choices { grid-template-columns:repeat(6,1fr); }
  .league-image-form { grid-template-columns:64px 1fr; }.league-image-form .button { grid-column:1/-1; }
}
.prediction-entry{display:flex;align-items:center;gap:.75rem;margin-top:.75rem;padding:.65rem;border-radius:.75rem;background:var(--accent-soft)}
.prediction-entry span:not(.prediction-avatar){display:flex;flex:1;flex-direction:column}.prediction-entry small{display:block}.prediction-avatar{width:2.25rem;height:2.25rem;flex:0 0 2.25rem;overflow:hidden;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:var(--accent-soft)}
.app-home-card { max-width:650px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; margin-top:14px; padding:14px 16px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.045); }
.app-home-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; color:#111; background:#fff; font-size:1.35rem; }
.app-home-card strong { display:block; }.app-home-card p { margin:3px 0 0; color:var(--muted); font-size:.82rem; line-height:1.4; }.app-home-card .button { text-decoration:none; white-space:nowrap; }
.about-dialog-content { position:relative; display:grid; gap:16px; padding:34px 30px 28px; }.about-dialog-content h2 { margin:-8px 0 2px; font-size:2rem; }.about-dialog-content p:not(.eyebrow) { margin:0; color:var(--muted); line-height:1.55; }.about-dialog-content .button { margin-top:4px; text-align:center; text-decoration:none; }
.testflight-promo { position:fixed; z-index:40; right:14px; bottom:14px; left:14px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 42px 14px 14px; border:1px solid rgba(255,255,255,.18); border-radius:18px; background:#281810; box-shadow:0 22px 60px rgba(0,0,0,.58); }
.promo-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; color:#111; background:#fff; font-size:1.45rem; }.testflight-promo strong { display:block; }.testflight-promo p { margin:3px 0 0; color:var(--muted); font-size:.8rem; }.testflight-promo .button { min-height:40px; padding:8px 14px; text-decoration:none; }.promo-close { position:absolute; top:3px; right:7px; border:0; padding:3px; color:var(--muted); background:transparent; font-size:1.35rem; }
@media (max-width:760px) { #about-button { display:none; }.app-home-card { grid-template-columns:auto 1fr; }.app-home-card .button { grid-column:1/-1; text-align:center; } }
@media (min-width:761px) { .testflight-promo { display:none !important; } }
