/* DO NOT EDIT — copied from packages/shared/src/account/ui/signup.css
   by `npm run tokens`. Edit the source there, regenerate, commit both.
   A vitest in packages/shared fails if this file drifts from the source. */
/* Shared account sign-up UI (SU-1). Root classes .tdtt-signup (form, games step, verify step) and
 * .tdtt-signup-banner. Source: packages/shared/src/account/ui/signup.css; npm run tokens copies it to
 * apps/server/public/shared/account/signup.css. Tokens only (var(--...)) and SOLID colours: no alpha
 * mixes, so it holds up on /m. Layers come from gradients between solid tokens, borders and box-shadow
 * glows. Works from 360px phones to a 1280px desktop. */

.tdtt-signup { display: grid; gap: 14px; width: 100%; max-width: 460px; min-width: 0; margin: 0 auto; color: var(--text); font-family: var(--body); }
.tdtt-signup *, .tdtt-signup *::before, .tdtt-signup *::after { box-sizing: border-box; }
.tdtt-signup h2, .tdtt-signup p { margin: 0; }
.tdtt-signup a { color: var(--cyan); }
.tdtt-signup [hidden] { display: none; }

.tdtt-signup--form { padding: 18px 16px; border: 1px solid var(--border-hi); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg)); box-shadow: 0 0 26px var(--surface-2); }

/* ── fields ── */
.su-field { display: grid; gap: 6px; min-width: 0; }
.su-label { color: var(--chrome); font: 800 11px/1.3 var(--head); letter-spacing: 0.1em; text-transform: uppercase; }
.su-opt { color: var(--text-dim); font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.su-control { position: relative; display: flex; align-items: center; min-width: 0; }
.su-input { width: 100%; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border-hi); border-radius: 10px; background: var(--input); color: var(--text); font: 500 16px/1.4 var(--body); }
.su-input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan); }
.su-input[aria-invalid="true"] { border-color: var(--magenta); }
.su-control .su-input[type="password"], .su-control .su-input[data-su-input="password"] { padding-right: 64px; }
.su-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 32px; padding: 4px 10px; border: 1px solid var(--cyan-dim); border-radius: 8px; background: var(--surface-2); color: var(--chrome); font: 700 11px/1.2 var(--head); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.su-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.su-help { color: var(--text-dim); font-size: 12px; line-height: 1.4; }
.su-err { color: var(--magenta); font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.su-server-err { padding: 10px 12px; border: 1px solid var(--magenta); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

.su-notice { padding: 10px 12px; border: 1px solid var(--gold); border-radius: 10px; background: linear-gradient(135deg, var(--surface-2), var(--surface)); color: var(--gold); font: 700 11px/1.5 var(--head); letter-spacing: 0.04em; overflow-wrap: anywhere; }

.su-terms { display: flex; align-items: flex-start; gap: 10px; color: var(--text-dim); font-size: 13px; line-height: 1.5; cursor: pointer; }
.su-check { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--magenta); cursor: pointer; }

/* ── buttons: the primary button is never `disabled` for validity, so it stays clickable ── */
.su-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 46px; padding: 9px 18px; border: 1px solid var(--cyan-dim); border-radius: 10px; background: var(--surface-2); color: var(--text); font: 700 14px/1.2 var(--head); letter-spacing: 0.03em; cursor: pointer; }
.su-btn:focus-visible, .su-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.su-btn[disabled] { opacity: 0.6; cursor: default; }
.su-btn--primary { border-color: var(--border-hi); background: var(--surface-2); color: var(--chrome); }
.su-btn--primary.is-ready, .tdtt-signup--games .su-btn--primary { border-color: transparent; background: var(--grad-primary); color: var(--text); box-shadow: 0 0 22px var(--surface-2); }
.su-link { justify-self: center; padding: 8px 12px; border: 0; background: none; color: var(--text-dim); font: 700 13px/1.2 var(--body); text-decoration: underline; cursor: pointer; }

/* ── steps ── */
.tdtt-signup--games, .tdtt-signup--verify { max-width: 560px; }
.tdtt-signup--verify { justify-items: center; text-align: center; padding: 22px 16px; border: 1px solid var(--border-hi); border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--bg)); box-shadow: 0 0 26px var(--surface-2); }
.su-title { font: 900 clamp(20px, 5vw, 26px)/1.15 var(--display); letter-spacing: 0.04em; text-transform: uppercase; text-align: center; }
.su-sub { color: var(--text-dim); font-size: 14px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.su-mask { color: var(--text); }
.su-verify__icon { color: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan-dim)); }
.su-msg { color: var(--green); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.su-msg.is-bad { color: var(--magenta); }
.tdtt-signup--verify .su-btn { max-width: 280px; }

/* ── game tiles: every tile the same height, a fixed logo box, art centred ── */
.su-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
@media (min-width: 420px) { .su-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) { .su-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.su-tile { --tile: var(--cyan); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-width: 0; height: 100%; padding: 8px 6px; border: 1px solid var(--border-hi); border-radius: 13px; background: linear-gradient(180deg, var(--input), var(--surface)); color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.su-tile:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.su-tile.is-on { border: 2px solid var(--magenta); padding: 7px 5px; box-shadow: 0 0 18px var(--surface-2); }
.su-tile[data-su-pick="DICE_THRONE"] { --tile: var(--game-dice-throne); }
.su-tile[data-su-pick="MTG"] { --tile: var(--game-mtg); }
.su-tile[data-su-pick="POKEMON_TCG"] { --tile: var(--game-pokemon); }
.su-tile[data-su-pick="LORCANA"] { --tile: var(--game-lorcana); }
.su-tile[data-su-pick="YU_GI_OH"] { --tile: var(--game-yugioh); }
.su-tile[data-su-pick="ONE_PIECE_TCG"] { --tile: var(--game-one-piece); }
.su-tile[data-su-pick="STAR_WARS_UNLIMITED"] { --tile: var(--game-star-wars); }
.su-tile[data-su-pick="RIFTBOUND"] { --tile: var(--game-riftbound); }
.su-tile__logo { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; padding: 6px 8px; border: 1px solid var(--border-hi); border-radius: 10px; background: var(--input); overflow: hidden; }
.su-tile.is-on .su-tile__logo { border-color: var(--tile); }
.su-tile__img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.su-tile__fb { display: none; color: var(--text); font: 800 14px/1 var(--head); letter-spacing: 0.06em; }
.su-tile__logo.is-broken .su-tile__img { display: none; }
.su-tile__logo.is-broken .su-tile__fb { display: block; }
.su-tile__cap { color: var(--text-dim); font: 700 10px/1.3 var(--head); letter-spacing: 0.05em; text-transform: uppercase; overflow-wrap: anywhere; }
.su-tile.is-on .su-tile__cap { color: var(--text); }
.su-tile__check { display: none; position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; background: var(--grad-primary); color: var(--text); font-size: 11px; font-weight: 900; line-height: 1; box-shadow: 0 0 8px var(--surface-2); }
.su-tile.is-on .su-tile__check { display: flex; }

/* ── the SHOP OWNER ONLY tile: wide, gold-framed, store glyph, visibly not a game ── */
.su-tile--shop { flex-direction: row; justify-content: flex-start; gap: 14px; width: 100%; height: auto; min-height: 68px; padding: 12px 16px; border: 2px dashed var(--gold); background: linear-gradient(135deg, var(--surface-2), var(--bg)); text-align: left; box-shadow: 0 0 16px var(--surface-2); }
.su-tile--shop.is-on { padding: 12px 16px; border-style: solid; border-color: var(--gold); background: linear-gradient(135deg, var(--gold), var(--orange)); color: var(--bg); box-shadow: 0 0 22px var(--orange); }
.su-shop__glyph { flex: none; color: var(--gold); }
.su-tile--shop.is-on .su-shop__glyph { color: var(--bg); }
.su-shop__text { display: grid; gap: 3px; min-width: 0; }
.su-shop__title { color: var(--gold); font: 900 14px/1.2 var(--head); letter-spacing: 0.1em; }
.su-shop__sub { color: var(--text-dim); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.su-tile--shop.is-on .su-shop__title, .su-tile--shop.is-on .su-shop__sub { color: var(--bg); }
.su-tile--shop .su-tile__check { top: 50%; right: 12px; transform: translateY(-50%); background: var(--bg); color: var(--gold); }

/* ── slim unverified banner: wraps on phones, never clips ── */
.tdtt-signup-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; width: 100%; padding: 8px 14px; border-bottom: 1px solid var(--gold); background: linear-gradient(90deg, var(--surface-2), var(--surface)); color: var(--text); font: 600 13px/1.4 var(--body); box-sizing: border-box; }
.tdtt-signup-banner [hidden] { display: none; }
.su-banner__text { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; overflow-wrap: anywhere; }
button.su-banner__text { text-decoration: underline; cursor: pointer; }
.su-banner__msg { color: var(--green); font-size: 12px; font-weight: 700; }
.su-banner__msg.is-bad { color: var(--magenta); }
.su-banner__btn { min-height: 30px; padding: 4px 12px; border: 1px solid var(--gold); border-radius: 8px; background: var(--surface-2); color: var(--gold); font: 800 11px/1.2 var(--head); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.su-banner__btn[disabled] { opacity: 0.6; cursor: default; }
.su-banner__btn:focus-visible, button.su-banner__text:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
