:root{--ink:#fffaf4;--muted:#d6cadf;--panel:#242039e8;--panel-2:#312a48;--line:#685979;--accent:#ffb34d;--accent-ink:#2b1720}
body{background:radial-gradient(circle at 50% -15%,#5b397b 0,transparent 48%),#151329}
main{max-width:760px;padding:24px 18px 52px}
.top{min-height:44px;margin-bottom:20px}
.top a{display:inline-flex;align-items:center;gap:9px}.top-logo{width:26px;height:26px}
.panel{border-color:transparent;background:var(--panel);box-shadow:0 22px 70px #08051166,0 1px 0 #ffffff14 inset;position:relative}
.panel::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(125deg,#ffb34d99,#8b5cf6aa 55%,#f16d7299);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);pointer-events:none}
.home{padding:34px 28px}.homeHero{text-align:center;max-width:540px;margin:auto}.heroLogo{width:82px;height:82px;filter:drop-shadow(0 14px 22px #0005)}
.home h1{margin:16px 0 8px}.homeLead{max-width:440px;margin:0 auto 24px}.homeActions{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:460px;margin:auto}.homeActions .primary{font-size:16px}.homeActions button{width:100%}
.how{max-width:520px;margin:24px auto 0;padding:20px;text-align:left;border-radius:16px;background:#18152ab8;border:1px solid #5c4c70}.how h2{font-size:20px}.steps{display:grid;gap:12px;margin:16px 0 0}.step{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}.step strong{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#4b3c61;color:#ffd08e}.step p{margin:3px 0 0}
.setupHead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.setupHead h1{font-size:clamp(30px,7vw,44px);margin:0}.setupHead p{margin:6px 0 0}.setupHead .smallbtn{flex:none}
.settingsGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settingGroup{padding:18px;border-radius:17px;background:#19162bb8;border:1px solid #554765}.settingGroup h2{font-size:17px;margin:0 0 12px}.settingGroup label:first-of-type{margin-top:0}.playersGroup{grid-column:1/-1}.namesGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.namesGrid label{margin:0}.setupFooter{margin-top:18px}.setupFooter .primary{max-width:420px;margin:auto;display:block}.setupFooter p{margin-bottom:0}
.nativeChoice{display:none}.choiceGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:7px 0 16px}.choiceButton{min-height:48px;padding:10px 11px;border:1px solid #65577a;border-radius:12px;background:#29233b;color:#e9e1f1;font-size:13px;line-height:1.25;text-align:left}.choiceButton:hover{border-color:#a98ac7;background:#332a49}.choiceButton[aria-pressed="true"]{border-color:#ffb34d;background:linear-gradient(135deg,#4a3652,#392c4c);box-shadow:0 0 0 1px #ffb34d55 inset;color:#fff}.choiceButton[aria-pressed="true"]::before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;margin-right:7px;border-radius:7px;background:#ffb34d;color:#2b1720;font-weight:900}.activityChoices,.durationChoices{grid-template-columns:1fr}.activityChoices .choiceButton,.durationChoices .choiceButton{min-height:54px}.countChoices{grid-template-columns:repeat(7,minmax(0,1fr))}.countChoices .choiceButton{padding:9px 4px;text-align:center}.countChoices .choiceButton::before{display:none}.checkline{padding:11px 13px;border:1px solid #554765;border-radius:12px;background:#242039}.checkline:has(input:checked){border-color:#ffb34d;background:#352a45}.checkline input{accent-color:#ffb34d}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffcb82;outline-offset:3px}
@media(max-width:600px){.home{padding:28px 20px}.homeActions,.settingsGrid{grid-template-columns:1fr}.playersGroup{grid-column:auto}.namesGrid{grid-template-columns:1fr}.setupHead{align-items:center}.setupHead p{display:none}.choiceGrid{grid-template-columns:1fr}.difficultyChoices,.roundsChoices{grid-template-columns:repeat(3,minmax(0,1fr))}.countChoices{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.heroLogo{filter:none}}

/* XTART Home Model (docs/HOME_MODEL.md): home screen only — shared spacing, sizes and footer; colours stay Hot Potato's */
body,button,select,input{font-family:Arial,Helvetica,sans-serif}
.top .xtart{display:inline-flex;align-items:center;gap:10px;font-size:16px;font-weight:900;letter-spacing:2px;line-height:1;color:#fff}.top .xtart span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--accent);color:var(--accent-ink);font-size:14px;letter-spacing:0}
.top .hub{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid color-mix(in srgb,currentColor 24%,transparent);border-radius:12px;background:color-mix(in srgb,currentColor 6%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:12px;font-weight:700;line-height:1.2;white-space:nowrap}
footer{margin:18px 0 0;text-align:center;font-size:10px;letter-spacing:.04em;color:var(--muted)}
main:has(#home:not(.hidden)){max-width:1180px;min-height:100svh;display:flex;flex-direction:column;padding:25px 22px 70px;box-sizing:border-box}
main:has(#home:not(.hidden))>.top{margin:0 2px 20px}
main:has(#home:not(.hidden))>#home{flex:0 0 auto;margin:auto 0 0;width:100%}
main:has(#home:not(.hidden))>#resumeNote{margin:0}
main:has(#home:not(.hidden))>footer{margin:18px 0 auto}
#home.home{box-sizing:border-box;padding:28px 24px 25px;border-radius:22px;-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15)}
#home .homeHero{max-width:none;margin:0}
#home h1{display:flex;align-items:center;justify-content:center;gap:15px;margin:0;font-size:clamp(38px,4.8vw,60px);font-weight:800;letter-spacing:-2.5px;line-height:1.07}
#home .heroLogo{width:64px;height:64px;flex:none;margin:0}
#home .homeLead{max-width:none;margin:12px 0 0;font-size:14px;line-height:1.5;letter-spacing:.035em}
#home .homeActions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;max-width:none;margin:20px auto 0}
#home .homeActions button{box-sizing:border-box;width:auto;min-width:180px;min-height:44px;padding:0 16px;border-radius:10px;font-size:12px;font-weight:800;letter-spacing:.3px;line-height:1.2;box-shadow:0 6px 16px -10px color-mix(in srgb,currentColor 55%,transparent);transition:transform .18s ease,box-shadow .18s ease}
#home .homeActions button:hover:not(:disabled){transform:translateY(-1px)}
#home .how{margin-top:24px}
@media(max-width:600px){main:has(#home:not(.hidden)){padding:18px 12px 70px}#home.home{padding:23px 18px;border-radius:19px}#home h1{font-size:38px;letter-spacing:-1.8px;gap:11px}#home .heroLogo{width:52px;height:52px}#home .homeActions button{flex:1 1 100%}}
