/* css/season-setup.css — an alliance's own season (js/season-setup.js).
 *
 * Prefix `szs-` (DESIGN.md §4 registry). Its own file rather than a block in home.css,
 * because the panel is mountable: any page that mounts it links this. Tokens only — no
 * literals — so both themes follow with nothing wired up. `--szs-c` is the SEASON's colour,
 * set inline from SEASON_DEFS at render time; it is the one value that legitimately varies
 * per render, which is why it is a variable and not a class.
 */

.szs-q { font-size: 16px; font-weight: 700; color: var(--text-1); margin: 0 0 4px; }
.szs-q2 { margin-top: 18px; }
.szs-note { font-size: 13px; line-height: 1.5; color: var(--text-2); margin: 0 0 12px; }
.szs-tip { font-size: 11.5px; line-height: 1.5; color: var(--text-3); margin: 10px 0 0; }
.szs-err { font-size: 13px; color: var(--red); margin: 8px 0 0; }
.szs-h { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 6px; }
.szs-row { display: flex; gap: 10px; margin-top: 14px; }
.szs-btn { flex: 1 1 0; }
.szs-lbl { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
           color: var(--text-3); margin: 12px 0 5px; }
.szs-input { width: 100%; font: inherit; font-size: 15px; color: var(--text-1); background: var(--bg-2);
             border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; }
.szs-input:focus-visible, .szs-pick:focus-visible, .szs-chip:focus-visible, .szs-cell-in:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── step 1: pick a season ─────────────────────────────────────── */
.szs-picks { display: flex; flex-direction: column; gap: 8px; }
.szs-pick { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; font: inherit;
            cursor: pointer; background: var(--bg-2); border: 1px solid var(--border-2);
            border-left: 3px solid var(--szs-c, var(--accent)); border-radius: 10px; padding: 11px 13px;
            transition: border-color .15s var(--ease, ease), background-color .15s var(--ease, ease); }
.szs-pick:hover { background: var(--bg-3); }
.szs-pick-em { font-size: 20px; line-height: 1; }
.szs-pick-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.szs-pick-b b { font-weight: 600; color: var(--text-1); }
.szs-pick-b i { font-style: normal; font-size: 11.5px; color: var(--text-3); }

/* ── step 3: the compass grid ──────────────────────────────────── */
.szs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.szs-cell { position: relative; display: flex; flex-direction: column; gap: 3px; }
.szs-cell > i { font-style: normal; font-size: 9.5px; letter-spacing: .08em; color: var(--text-3); }
.szs-cell-in { width: 100%; font: inherit; font-family: var(--font-data); font-size: 15px; text-align: center;
               color: var(--text-1); background: var(--bg-2); border: 1px solid var(--border-2);
               border-radius: 9px; padding: 10px 4px; }
.szs-cell-in.is-bad { border-color: var(--red); }
/* The spinner arrows eat a third of a 3-across cell on a phone and nobody steps a warzone
   number one at a time. `inputmode="numeric"` still brings the number pad up. */
.szs-cell-in::-webkit-outer-spin-button,
.szs-cell-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.szs-cell-in { -moz-appearance: textfield; appearance: textfield; }
.szs-cell-self { display: grid; place-items: center; font-family: var(--font-data); font-size: 15px;
                 font-weight: 700; color: var(--accent); background: var(--bg-3);
                 border: 1px dashed var(--accent-border); border-radius: 9px; min-height: 44px; }

/* ── step 4: the faction split ─────────────────────────────────── */
.szs-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.szs-chip { font: inherit; font-family: var(--font-data); font-size: 14px; cursor: pointer;
            background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border-2);
            border-radius: 999px; padding: 8px 14px;
            transition: background-color .15s var(--ease, ease), color .15s var(--ease, ease), border-color .15s var(--ease, ease); }
.szs-chip.is-on { background: var(--accent-glow); color: var(--accent); border-color: var(--accent-border); font-weight: 700; }
.szs-chip.is-self { cursor: default; }
.szs-count { font-family: var(--font-data); font-size: 12px; color: var(--text-3); margin: 9px 0 0; }
.szs-count.is-done { color: var(--accent); }

/* ── the season, once it is theirs ─────────────────────────────── */
.szs-head { display: flex; align-items: center; gap: 12px; padding-left: 11px;
            border-left: 3px solid var(--szs-c, var(--accent)); margin-bottom: 12px; }
.szs-em { font-size: 26px; line-height: 1; }
.szs-name { font-size: 18px; font-weight: 700; color: var(--text-1); margin: 0; }
.szs-sub { font-family: var(--font-data); font-size: 12px; color: var(--text-3); margin: 3px 0 0; }

.szs-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.szs-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px;
            background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; }
.szs-tile b { font-family: var(--font-data); font-size: 15px; color: var(--text-1); }
.szs-tile i { font-style: normal; font-family: var(--font-data); font-size: 11px; color: var(--text-2); }
.szs-tile em { font-style: normal; font-size: 10px; color: var(--text-3); }
/* The centre of the ring is the MAP, not a ninth warzone — it carries the season's
   glyph so the grid reads as one place rather than as eight loose numbers. */
.szs-tile-mid { display: grid; place-items: center; font-size: 22px;
                background: none; border-style: dashed; }
/* The two sides. Amber and blue are the site's semantic pair for "two opposing groups" and
   deliberately NOT the accent, which means "yours" everywhere else on the site. Both get a
   GROUND, not just a border: a 0.25-alpha border alone was invisible on a dark tile. */
.szs-tile.is-mine   { border-color: var(--amber-border); background: var(--amber-glow); }
.szs-tile.is-theirs { border-color: var(--blue-border);  background: var(--blue-glow); }
/* ⚠ "Yours" must not compete with the faction colour — a tile has to say BOTH "our side"
   and "us" at once, so self is an outline drawn inside the border, never a fill. */
.szs-tile.is-self { outline: 2px solid var(--accent); outline-offset: -2px; }
.szs-tile.is-self b { color: var(--accent); }

/* Which colour is which side — the map is unreadable without it. */
.szs-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.szs-key { font-size: 12px; color: var(--text-2); border: 1px solid var(--border-2);
           border-radius: 999px; padding: 4px 11px; }
.szs-key.is-mine   { border-color: var(--amber-border); background: var(--amber-glow); color: var(--amber); }
.szs-key.is-theirs { border-color: var(--blue-border);  background: var(--blue-glow);  color: var(--blue); }

/* Out to the full boards. /home is their only entry point since the nav tabs went. */
.szs-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.szs-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
            text-decoration: none; color: var(--accent); background: var(--accent-glow);
            border: 1px solid var(--accent-border); border-radius: 999px; padding: 8px 14px; }
.szs-link:hover { background: var(--accent-glow-2); }

.szs-borders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.szs-border { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
              background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 10px; padding: 9px 12px;
              font-family: var(--font-data); font-size: 14px; color: var(--text-1); }
/* The decisive border — #1 against their #3 — gets the only emphasis on the list, because it
   is the one line of this page a reader should leave with. ⚠ It is marked in the SEASON's
   colour, not amber: amber already means "our faction" two rules above, and a colour cannot
   carry two meanings on one screen. */
.szs-border.is-key { border-color: var(--border-3); box-shadow: inset 3px 0 0 var(--szs-c, var(--accent)); }
.szs-border i { font-style: normal; font-size: 11px; color: var(--text-3); margin-left: 5px; }
.szs-b-v { font-size: 11px; color: var(--text-3); }
/* Each row reads mine → theirs, so the sides keep the map's colours. */
.szs-b-a { color: var(--amber); }
.szs-b-b { text-align: right; color: var(--blue); }

@media (max-width: 560px) {
  .szs-row { flex-direction: column; }
  .szs-tile { padding: 8px 2px; }
}
