/* Create a Game (create.html), the host share panel (game.html) and the one-click join landing
   (register.html). Colours come from the styles.css tokens, which switch under prefers-color-scheme. */
:root{--share-accent:var(--brand);--share-new-bg:var(--brand-soft);--share-new-line:var(--brand-soft-line)}
@media(prefers-color-scheme:dark){:root{--share-accent:var(--brand-ink)}}
.flow-head{margin-bottom:1.5rem}
.flow-head h1{font-size:clamp(1.9rem,4vw,2.6rem);margin-bottom:.5rem}
.flow-panel{max-width:40rem}
.choice-group{border:0;margin:0 0 1.25rem;padding:0;min-width:0}
.choice-group legend{font-weight:650;margin-bottom:.5rem;padding:0}
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.625rem}
.choice{display:flex;align-items:center;gap:.625rem;min-height:2.75rem;padding:.625rem .875rem;border:1px solid var(--field-line);border-radius:.75rem;background:var(--paper);cursor:pointer;font-weight:600}
.choice:hover{background:var(--surface-hover)}
.choice input[type=radio]{width:1.25rem;height:1.25rem;min-height:1.25rem;margin:0;flex:none;accent-color:var(--brand)}
.choice:has(input:checked){border-color:var(--share-accent);box-shadow:inset 0 0 0 .0625rem var(--share-accent)}
.choice:has(input:focus-visible){outline:.1875rem solid var(--focus);outline-offset:.125rem}
.choice small{display:block;color:var(--muted);font-weight:500}
.flow-panel .checkline{justify-content:flex-start;min-height:2.75rem;margin:.25rem 0 1rem}
.flow-panel .checkline input[type=checkbox]{flex:none}
.flow-note{margin:0 0 1rem;color:var(--muted);font-size:.9rem}
.flow-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.flow-actions button,.flow-actions .button{min-height:2.75rem}
.flow-blocked{max-width:40rem}
.flow-blocked h2{font-size:1.3rem}
.share-panel{margin-bottom:1.5rem}
.share-panel.share-panel-new{background:var(--share-new-bg);border-color:var(--share-new-line)}
.share-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem 1rem;margin-bottom:.5rem}
.share-head h2{margin:0;font-size:1.3rem}
.share-head h2:focus{outline:none}
.share-head h2:focus-visible{outline:.1875rem solid var(--focus);outline-offset:.25rem}
.share-link-row{display:flex;gap:.625rem;align-items:stretch;margin:.25rem 0 .5rem}
.share-link-row input{flex:1 1 auto;min-width:0;font-size:.9rem}
.share-link-row button{flex:none;min-height:2.75rem}
.share-panel label{display:block;font-weight:650;margin-top:.75rem}
.share-panel .actions{margin-top:.75rem}
.join-summary dl{margin:0}
.join-summary h1{font-size:clamp(1.7rem,4vw,2.3rem);margin:.75rem 0 .75rem}
.join-closed{margin-top:1rem}
.join-closed h2{font-size:1.2rem;margin-bottom:.5rem}
.join-as{margin:0 0 1rem}
.join-options{margin:0 0 1rem;border:1px solid var(--line);border-radius:.875rem;padding:.25rem 1rem}
.join-options summary{min-height:2.75rem;display:flex;align-items:center}
.join-options .form-row{margin-top:.75rem}
@media(max-width:43.75rem){.share-link-row{flex-direction:column}.share-link-row button,.flow-actions button,.flow-actions .button{width:100%}.choices{grid-template-columns:1fr 1fr}}
