/* ============================================================
   Rozana design system
   Cream paper, ink type, sparing accent. Two display fonts +
   Instrument Serif for editorial moments. Spec: README PART 13.
   ============================================================ */

:root {
  /* Editorial Daily palette per design Dir-A */
  --paper:        #F5EFE3;
  --paper-2:      #ECE4D2;
  --paper-3:      #E0D5BC;
  --ink:          #1A1410;
  --ink-soft:     rgba(26, 20, 16, 0.7);
  --ink-mid:      rgba(26, 20, 16, 0.55);
  --ink-faint:    rgba(26, 20, 16, 0.4);
  --line:         rgba(26, 20, 16, 0.18);
  --line-strong:  rgba(26, 20, 16, 0.30);
  --line-soft:    rgba(26, 20, 16, 0.08);

  --accent:       #D8590E;
  --accent-soft:  #ED7D3C;
  --gold:         #BC8E1A;

  /* Game accents */
  --c-yes:        #E8B73A;
  --c-no:         #3F7CC9;
  --c-chain:      #9C6BB8;
  --c-hue:    #7AA15A;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }

/* The browser's UA stylesheet already does [hidden]{display:none},
   but any author rule that sets `display:` on a tagged element wins
   on equal specificity. We want `hidden` to be authoritative across
   the product so toggling the attribute always actually hides the
   element — e.g. ThisThat's `.tt-wiki { display: inline-block }`
   used to leak through and the wiki link rendered before voting. */
[hidden] { display: none !important; }

body {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  /* Editorial dot-grid — denser, slightly darker, single layer at 14px */
  background-image: radial-gradient(rgba(26,20,16,0.09) 1px, transparent 1px);
  background-size: 14px 14px;
  background-position: 0 0;
}

.serif { font-family: 'Newsreader', Georgia, serif; }
.mono  { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.italic { font-style: italic; }

/* ============ Layout ============ */
/* One content width across every page (600px) — home no longer sits
   wider than the account / game / form pages. .page--narrow is kept
   as a no-op alias so existing markup needn't change. */
.page  { max-width: 600px; margin: 0 auto; padding: 28px 22px 80px; }
.page--narrow { max-width: 600px; }
.page--wide   { max-width: 920px; }

/* ============ Editorial header (Dir-A) ============ */
header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { display: flex; }  /* SVG mark slot */
.brand .name {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px; line-height: 1; letter-spacing: -0.01em;
  font-weight: 400; color: var(--ink); text-decoration: none;
}
.brand .divider {
  width: 1px; height: 14px;
  background: var(--line);
  margin-left: 4px;
}
.brand .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink-soft); text-transform: uppercase;
}

.nav { display: flex; gap: 4px; align-items: center; }
.nav a, .nav button {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mid); background: transparent;
  border: none; cursor: pointer;
  padding: 7px 11px; border-radius: 999px;
  text-decoration: none; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover, .nav button:hover { background: rgba(26,20,16,0.06); color: var(--ink); }
/* Signed-in account link in the header — just the player's mark. */
.nav .header-mark { padding: 4px; }
.nav .header-mark:hover { background: rgba(26,20,16,0.06); }
/* Signed-out account link — a grey profile silhouette. The glyph is
   enough of a sign to invite a click, no "account" word needed. */
.nav .header-account-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  padding: 0; border-radius: 999px;
  color: var(--ink-mid);
}
.nav .header-account-icon:hover { background: rgba(26,20,16,0.06); color: var(--ink); }

/* ============ Edition / meta strip ============ */
.edition, .meta-strip {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.12em;
  color: var(--ink-soft); text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 14px 0 28px;
}

/* Variant: meta strip with prev / next nav arrows around the date.
   Default `.meta-strip` already lays out three children; the nav variant
   styles the middle cell so the arrows sit close to the date label. */
.meta-strip--nav .meta-strip-date {
  display: inline-flex; align-items: baseline; gap: 8px;
}
.meta-nav {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  margin: -10px 0;          /* meta-strip stays the same height despite 44px tap target */
  border-radius: 999px;
  color: var(--ink-mid); text-decoration: none;
  font-size: 14px; line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.meta-nav:hover { background: rgba(26,20,16,0.06); color: var(--ink); }
.meta-nav--disabled { color: var(--ink-faint); cursor: default; }

/* The meta-strip date is the link to all editions (the old separate
   "all editions ↗" link is gone). A dotted underline marks it tappable. */
.meta-strip-date-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted var(--line-strong);
  transition: color 0.15s, border-color 0.15s;
}
.meta-strip-date-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* The right cell of the meta-strip. Houses a per-game streak chip
   ("🔥 N") when the player has one, otherwise falls back to an
   optional game-specific label. Tabular numerals keep the chip from
   jiggling as the streak ticks up. */
.meta-strip-right { display: inline-flex; align-items: baseline; justify-content: flex-end; }
.meta-strip-streak {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.meta-archive-link {
  text-align: right;
  margin: 0 0 22px;
}
.archive-link {
  font-size: 9.5px; color: var(--ink-mid); text-decoration: none;
  letter-spacing: 0.18em;
}
.archive-link:hover { color: var(--accent); }

/* ============ History banner ============ */
.history-banner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 10px 14px;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-size: 10px;
  color: var(--ink-soft);
}
.history-banner-cta {
  color: var(--accent); text-decoration: none;
  font-size: 10px; letter-spacing: 0.18em;
}
.history-banner-cta:hover { text-decoration: underline; }

.history-note {
  margin: 4px 0 18px;
  padding: 10px 14px;
  background: rgba(216, 89, 14, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 14px; line-height: 1.45;
  color: var(--ink-soft);
}

/* ============ Archive list ============ */
.archive-head { margin: 18px 0 22px; }
.archive-title {
  font-size: 38px; line-height: 1; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.archive-sub {
  font-size: 10px; color: var(--ink-mid);
  margin: 0 0 12px;
}
.archive-back a { color: var(--ink-mid); text-decoration: none; font-size: 10px; }
.archive-back a:hover { color: var(--ink); }
.archive-empty { color: var(--ink-soft); font-size: 16px; margin: 30px 0; }

.archive-list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.archive-row { border-bottom: 1px solid var(--line); }
.archive-link-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 6px;
  text-decoration: none; color: inherit;
  transition: background 0.15s;
}
.archive-link-row:hover { background: var(--paper-2); }
.archive-edition { font-size: 10px; color: var(--ink-mid); }
.archive-date { font-size: 16px; color: var(--ink); }
.archive-stat { display: inline-flex; align-items: baseline; gap: 8px; font-size: 11px; }
.archive-stat-tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 9px; letter-spacing: 0.18em;
  border: 1px solid var(--line);
}
.archive-stat-tag--yes  { background: rgba(232, 183, 58, 0.18); color: #7d5b00; border-color: rgba(232, 183, 58, 0.6); }
.archive-stat-tag--no   { background: rgba(63, 124, 201, 0.18); color: #214d80; border-color: rgba(63, 124, 201, 0.6); }
.archive-stat-tag--won  { background: rgba(122, 161, 90, 0.22); color: #3f5d28; border-color: rgba(122, 161, 90, 0.55); }
.archive-stat-tag--lost { background: rgba(26, 20, 16, 0.05); color: var(--ink-mid); }
.archive-stat-tag--partial  { background: rgba(216, 89, 14, 0.10); color: var(--accent); border-color: rgba(216, 89, 14, 0.4); }
.archive-stat-tag--unplayed { background: var(--paper-2); color: var(--ink-faint); }
.archive-stat-pct, .archive-stat-count, .archive-stat-empty {
  font-size: 10px; color: var(--ink-mid);
}
.archive-arrow { color: var(--ink-faint); font-size: 12px; text-align: right; }

/* ============ History split (YESNO read-only) ============ */
.history-split {
  display: flex; justify-content: center; align-items: baseline;
  gap: 18px;
  margin: 14px 0 6px;
  font-size: 11px;
}
.history-split-cell { display: inline-flex; align-items: baseline; gap: 6px; }
.history-split-label { color: var(--ink-mid); font-size: 10px; }
.history-split-num { font-family: 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 18px; }
.history-split-divider { color: var(--ink-faint); }

/* ============ Footer (Footer B — grouped) ============ */
footer.foot {
  border-top: 1px solid var(--line);
  margin-top: 40px; padding-top: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.foot-nav {
  display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline;
  font-family: 'Newsreader', Georgia, serif;
}
.foot-nav a { color: var(--ink); text-decoration: none; font-size: 15px; transition: color 0.15s; }
.foot-nav a:hover { color: var(--accent); }
.foot-sep { color: var(--ink-faint); }
.foot-legal {
  display: flex; gap: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.foot-legal a { color: var(--ink-mid); text-decoration: none; transition: color 0.15s; }
.foot-legal a:hover { color: var(--ink); }
.foot-by {
  font-family: 'Newsreader', Georgia, serif; font-style: italic;
  font-size: 13px; color: var(--ink-soft);
}
.foot-by a { color: var(--ink); }

/* ============ Buttons ============ */
.btn {
  font: inherit; font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  letter-spacing: 0.05em;
  font-size: 14px;
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--accent { background: var(--accent); color: white; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: translateY(1px); }

/* ============ Account mark (avatar) ============ */
/* A coloured disc + dark-ink geometric glyph. The disc colour is set
   inline per mark; the glyph inherits currentColor. See Rozana::Avatars
   and ApplicationHelper#mark_tag. */
.mark-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none; vertical-align: middle;
}
.mark-avatar svg { color: var(--ink); display: block; }

/* ============ "Next game" prompt (shown on a finished game) ============ */
.next-game {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mid); text-decoration: none;
  padding: 11px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: color 0.15s, border-color 0.15s;
}
.next-game:hover { color: var(--ink); border-color: var(--ink); }
.next-game strong { color: var(--accent); font-weight: 600; }

/* Standard wrapper around any post-game action row (next-game prompt,
   share buttons that bubble outside a section, "play today" link on a
   history page). Every game previously rolled its own hl-actions /
   tt-actions / st-actions / inline-style div. */
.game-actions { text-align: center; margin: 22px 0 0; }

/* ============ Per-country panel (today) ============ */
/* Sits between the first next-game prompt and tomorrow's countdown
   on every game's results page. Reuses the lead-strip rhythm but
   wider rows (country name + bar/value + right-side number). */
.country-panel { margin: 28px 0 0; }
.country-panel-h {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 0 0 8px;
}
.country-panel-h h3 {
  font-family: 'Newsreader', Georgia, serif; font-style: italic;
  font-size: 18px; font-weight: 400; margin: 0; color: var(--ink-soft);
}
.country-panel-meta {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.06em; color: var(--ink-mid);
}
.country-panel-rows {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.country-panel-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 12px; align-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  min-height: 24px;
}
.country-panel-name {
  color: var(--ink-mid); text-transform: uppercase;
  letter-spacing: 0.06em; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.country-panel-bar {
  display: flex; height: 10px; border-radius: 3px; overflow: hidden;
  background: var(--paper-2);
}
.country-panel-bar .bar-seg { display: block; height: 100%; }
/* Generic split colours so the panel works on every game without
   depending on world_map.css being loaded. Game-specific classes
   (bar-seg--yes / bar-seg--no etc.) override via locals where needed. */
.country-panel-bar .bar-seg--accent { background: var(--accent); }
.country-panel-bar .bar-seg--mute   { background: var(--ink-mid); opacity: 0.45; }
.country-panel-value {
  text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.country-panel-empty {
  color: var(--ink-faint); font-style: italic;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  text-align: center; padding: 10px 0;
}

/* ============ Lead strip — "the last two weeks" ============ */
/* Same rhythm across every game that has historical context. Header
   with italic title + mono meta; tight rows; date / middle / value. */
.lead-strip { margin: 16px 0 22px; }
.lead-strip-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; }
.lead-strip-h h3 { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-size: 18px; font-weight: 400; margin: 0; color: var(--ink-soft); }
.lead-strip-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mid); }
.lead-strip-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.lead-strip-row  { display: grid; grid-template-columns: 56px 1fr 64px; gap: 10px; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 11px; min-height: 18px; }
.lead-strip-date { color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.lead-strip-value { color: var(--ink-mid); text-align: right; font-variant-numeric: tabular-nums; }
.lead-strip-value .empty { color: var(--ink-faint); }
.lead-strip-value .won  { color: var(--accent); }
.lead-strip-value .lost { color: var(--ink-faint); }

/* Status chip for the middle cell — used when the game's lead strip
   shows categorical status rather than a numerical/visual bar. */
.lead-strip-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mid); padding: 2px 8px; border-radius: 999px; background: var(--paper-2); display: inline-block; }
.lead-strip-status.is-won     { background: rgba(122, 161, 90, 0.18); color: rgb(74, 105, 53); }
.lead-strip-status.is-lost    { background: rgba(216, 89, 14, 0.12);  color: var(--accent); }
.lead-strip-status.is-partial { background: var(--paper-2); color: var(--ink-mid); }
.lead-strip-status.is-unplayed { background: transparent; color: var(--ink-faint); }

/* Swatch cell — used by Hue's lead strip to show the day's target color. */
.lead-strip-swatch { width: 22px; height: 14px; border-radius: 3px; display: inline-block; vertical-align: middle; }

/* ============ Result block + stats section ============ */
/* The canonical containers every game's result/stats hangs off of, so
   the visual rhythm reads the same across YESNO, Hue, HighLow,
   ThisThat, Speed-Tap and LEFTRIGHT. The bespoke center stays inside;
   only the chrome (margins, divider, label) is shared. */
/* The dark "result box" surrounding every game's centerpiece (your
   answer / your guesses / your score). YESNO and Hue layer their
   own .result / .result-card on top with game-specific tweaks
   (radial glow, swatch grids) — those override where they need to. */
.result-block {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 24px 22px;
  margin: 18px 0 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Defaults for the canonical inner pieces: the small mono lead
   label, the streak chip. Most other text inside a result-block
   already explicitly sets its colour (accent score numbers, paper
   chips on the inner game UI). */
.result-block .result-lead   { color: rgba(255, 255, 255, 0.6); }
.result-block .result-streak { color: rgba(255, 255, 255, 0.8); }
.result-lead {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 12px;
}
.stats-section {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.stats-section-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin: 0 0 14px;
  font-weight: 400;
}

/* "Tomorrow's round" countdown — same look on every game's result tail. */
.next-up {
  text-align: center;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.next-up .when {
  font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 6px;
}
.next-up .countdown {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ============ Shared share component ============ */
/* shared/_share partial + share_controller.js — every game's share UI.
   Two equal-width buttons (Share + Copy) side by side, no taglines. */
.share-section { margin: 18px 0; }
.share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.share-btn--primary { background: var(--accent); color: white; }
.share-btn--copy    { background: var(--paper);  color: var(--ink); border-color: var(--ink); }
@media (hover: hover) {
  .share-btn:hover           { transform: translateY(-1px); }
  .share-btn--primary:hover  { background: var(--accent-soft); }
  .share-btn--copy:hover     { background: var(--paper-2); }
}
.share-btn:active { transform: translateY(1px); }
.share-toast {
  margin: 10px 0 0; min-height: 1.2em; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.08em; color: var(--accent);
  opacity: 0; transition: opacity 0.2s;
}
.share-toast.shown { opacity: 1; }
.share-url {
  display: block; margin: 8px 0 0; padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--accent); text-decoration: none;
  background: var(--paper-2); border: 1px dashed var(--line-strong);
  border-radius: 6px; word-break: break-all; text-align: center;
}
.share-url:hover { background: var(--paper); }

/* ============ Cookie banner ============ */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 480px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  font-size: 13px;
  z-index: 100;
  display: none;
  align-items: center; gap: 14px;
  animation: slideUp 0.4s ease-out;
}
.cookie-banner.shown { display: flex; }

/* While the banner is shown, reserve room at the bottom of the page
   so it doesn't sit on top of game content (the YESNO world map,
   leaderboard, etc.). Both the :has() rule (modern browsers, no JS)
   and the body class (toggled by the inline banner script for older
   engines) drive the same padding. */
body:has(.cookie-banner.shown),
body.has-cookie-banner {
  padding-bottom: 130px;
}
.cookie-banner .text { flex: 1; line-height: 1.45; }
.cookie-banner a { color: var(--c-yes); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner button {
  background: var(--paper); color: var(--ink);
  border: none; border-radius: 999px;
  padding: 8px 16px;
  font: inherit; font-weight: 600; font-size: 12px;
  cursor: pointer; flex-shrink: 0;
}

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  padding: 11px 22px; border-radius: 999px;
  font-family: 'JetBrains Mono'; font-size: 11px; letter-spacing: 0.1em;
  z-index: 1200; font-weight: 600;
  animation: slideUp 0.3s, fadeOut 0.3s 2.4s forwards;
}

/* ============ Animations ============ */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============ Focus visibility (accessibility) ============ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Mobile ============ */
@media (max-width: 480px) {
  .page { padding: 22px 18px 60px; }
}

/* ============ Transfer notice ============
   One-shot strip rendered when a player's session has been moved to a
   different device. SessionContext consumes the cookie so it shows
   exactly once, then never again on this device. */
.transfer-notice {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--ink);
}
.transfer-notice strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.85;
}
.transfer-notice p {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.4;
}
