/* ==========================================================================
   Tallycat Games design tokens  (brand/tokens.css)
   Owner: Brand & visual system.  Status: PROVISIONAL, round 1.
   Link it once:  <link rel="stylesheet" href="../brand/tokens.css">

   Variable NAMES are stable. Values may still change, so always use the
   variables, never copy hex values into your own CSS.

   Theme: follows prefers-color-scheme. To force a theme on a mockup (for
   screenshots), put data-theme="light" or data-theme="dark" on <html>.

   Brand name: never bake it into images. In HTML, wrap every visible use in
   <span data-brand="name">Tallycat Games</span> so a rename is one find/replace.
   ========================================================================== */

/* One self-hosted font, display only (Fredoka variable, latin subset,
   29 KB woff2, SIL OFL; licence in fonts/OFL-fredoka.txt). Body text uses the
   system stack, so the page renders instantly and the font only restyles
   headings when it arrives. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* ---- Brand ---------------------------------------------------------- */
  --brand-name: "Tallycat Games"; /* decorative CSS uses only; HTML uses data-brand */
  --brand-domain: "tallycatgames.com";

  /* ---- Colour: light (default) ---------------------------------------- */
  --color-bg: #fbf5ea;            /* warm card-table cream */
  --color-surface: #ffffff;       /* cards, panels */
  --color-surface-2: #f4ead8;     /* alternate bands, wells */
  --color-ink: #1b1712;           /* text; same family as the chips' print ink */
  --color-ink-muted: #5c5246;     /* secondary text (AA on bg and surface) */
  --color-line: #e2d5bf;          /* hairlines, dividers */
  --color-line-strong: #1b1712;   /* sticker outlines on cards, buttons, chips (>= 3:1 in both themes) */
  --color-pop: #1b1712;           /* the hard offset "game piece" shadow (>= 3:1 in both themes) */
  --color-control-edge: #857866;  /* input / control borders: >= 3:1 on bg, surface, surface-2 */

  --color-accent: #ffc21a;        /* "game-night marigold": primary actions */
  --color-accent-hover: #ffb000;
  --color-accent-ink: #1b1712;    /* text on accent (12:1) */
  --color-accent-soft: #fff0c2;   /* highlight wash */

  --color-link: #a23b0a;
  --color-focus: #1e5fcd;
  --color-success: #1f7a33;
  --color-warning: #8a5a00;
  --color-danger: #b42318;
  --color-success-soft: #e3f4e5;
  --color-danger-soft: #fde7e4;

  /* Night band: a dark section you can drop into a light page (footer, promo) */
  --color-night: #1b1712;
  --color-night-ink: #f7efe2;
  --color-night-ink-muted: #c9bda9;

  /* Physical objects: chips, paper tags, playing cards drawn in illustrations.
     Theme-independent on purpose (a white chip stays white in dark mode). */
  --object-chip: #fbfaf7;        /* chip / paper tag white */
  --object-card: #fffdf6;        /* playing-card stock */
  --object-ink: #121212;         /* print ink on chips and cards */
  --object-ink-muted: #5f554c;   /* small print on paper objects */
  --object-rim: #cfc6b8;         /* chip edge / under-shadow on light objects */
  --object-dashed: #b9ab96;      /* cut lines, empty seats */

  /* Felt: the green card-table used in illustrations (from home/) */
  --color-felt: #1e5a4a;
  --color-felt-ink: #f7efe2;

  /* ---- The cast: chip colours (exact, from the printed chips) ----------
     Use --char-X for fills behind white or ink glyphs (badges, stripes).
     Use --char-X-ink for coloured TEXT; it passes AA on bg/surface in both
     themes. */
  --char-rocket: #cd2828;  --char-rocket-ink: #b01f1f;
  --char-shark:  #1e5fcd;  --char-shark-ink:  #1a55b8;
  --char-crown:  #7d4bc3;  --char-crown-ink:  #6a3bae;
  --char-robot:  #737880;  --char-robot-ink:  #585d65;
  --char-octo:   #d72387;  --char-octo-ink:   #b11a6e;
  --char-ufo:    #0096d7;  --char-ufo-ink:    #00709f;
  --char-cat:    #d7580c;  --char-cat-ink:    #a64305;
  --char-cactus: #00ae42;  --char-cactus-ink: #007a2e;  /* Bambu Green filament (meeting 02) */
  --char-dino:   #3f8e43;  --char-dino-ink:   #2f6e33;  /* Mistletoe Green (meeting 01) */

  /* ---- Type ------------------------------------------------------------ */
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Fluid scale, mobile first (390 px -> 1280 px) */
  --text-xs:   0.8125rem;                                   /* 13 */
  --text-sm:   0.9375rem;                                   /* 15 */
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);    /* 16-17 */
  --text-lg:   clamp(1.125rem, 1.07rem + 0.3vw, 1.25rem);   /* 18-20 */
  --text-xl:   clamp(1.375rem, 1.26rem + 0.55vw, 1.625rem); /* 22-26 */
  --text-2xl:  clamp(1.75rem, 1.55rem + 1vw, 2.25rem);      /* 28-36 */
  --text-3xl:  clamp(2.125rem, 1.75rem + 1.9vw, 3.125rem);  /* 34-50 */
  --text-4xl:  clamp(2.5rem, 1.9rem + 3.1vw, 4.25rem);      /* 40-68 */

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.55;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --tracking-tight: -0.015em;
  --tracking-caps: 0.06em;

  /* ---- Space (4 px base) ---------------------------------------------- */
  --space-1: 0.25rem;  /*  4 */
  --space-2: 0.5rem;   /*  8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */
  --space-10: 8rem;    /* 128 */

  --section-y: clamp(3rem, 2rem + 5vw, 6rem);  /* vertical rhythm between sections */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);   /* page side padding: 16 px on phones */
  --container: 72rem;          /* 1152 px */
  --container-narrow: 42rem;   /* prose, forms */

  /* ---- Shape ----------------------------------------------------------- */
  --border-width: 2px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* ---- Elevation -------------------------------------------------------
     --shadow-pop is the signature: a hard offset shadow, like a game piece
     or sticker sitting on the table. Use it on primary buttons and hero
     cards, not everywhere. */
  --shadow-sm: 0 1px 2px rgb(27 23 18 / 0.08);
  --shadow-md: 0 8px 20px -8px rgb(27 23 18 / 0.22);
  --shadow-lg: 0 22px 44px -16px rgb(27 23 18 / 0.30);
  --shadow-pop-sm: 2px 2px 0 var(--color-pop);
  --shadow-pop: 4px 4px 0 var(--color-pop);
  --shadow-pop-lg: 6px 6px 0 var(--color-pop);

  /* ---- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
}

/* ---- Colour: dark ("the table after dark", charcoal PLA) --------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #17140f;
    --color-surface: #221e18;
    --color-surface-2: #2b261f;
    --color-ink: #f7efe2;
    --color-ink-muted: #bdb1a0;
    --color-line: #3a332a;
    --color-line-strong: #e3d6bf;   /* warm light ink: 12.8:1 on bg, 11.6:1 on surface */
    --color-pop: #8c7f6c;           /* shadow: 4.7:1 on bg, 4.2:1 on surface */
    --color-control-edge: #9d907c;  /* 5.3:1 on surface */
    --color-accent: #ffc933;
    --color-accent-hover: #ffd75e;
    --color-accent-ink: #1b1712;
    --color-accent-soft: #3d3216;
    --color-link: #ffb27a;
    --color-focus: #8ab4ff;
    --color-success: #7fd98a;
    --color-warning: #f2c14e;
    --color-danger: #ff8a7a;
    --color-success-soft: #1d3322;
    --color-danger-soft: #3a1f1b;
    --color-night: #1d4a3d;          /* dark mode: the night band becomes felt so it still stands apart */
    --color-night-ink: #f7efe2;
    --color-felt: #18473b;
    --char-rocket-ink: #ff8a80;
    --char-shark-ink: #8ab4ff;
    --char-crown-ink: #c9a8ff;
    --char-robot-ink: #b8bdc5;
    --char-octo-ink: #ff8ac8;
    --char-ufo-ink: #6fd3ff;
    --char-cat-ink: #ffa266;
    --char-cactus-ink: #5fdc85;
    --char-dino-ink: #8fd18f;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 8px 20px -8px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 22px 44px -16px rgb(0 0 0 / 0.7);
    --shadow-pop-sm: 2px 2px 0 var(--color-pop);
    --shadow-pop: 4px 4px 0 var(--color-pop);
    --shadow-pop-lg: 6px 6px 0 var(--color-pop);
  }
}
/* Forced dark: whole page via data-theme, or one band via .theme-dark
   (e.g. <footer class="theme-dark">) */
:root[data-theme="dark"],
.theme-dark {
  color-scheme: dark;
  --color-bg: #17140f;
  --color-surface: #221e18;
  --color-surface-2: #2b261f;
  --color-ink: #f7efe2;
  --color-ink-muted: #bdb1a0;
  --color-line: #3a332a;
  --color-line-strong: #e3d6bf;   /* warm light ink: 12.8:1 on bg, 11.6:1 on surface */
  --color-pop: #8c7f6c;           /* shadow: 4.7:1 on bg, 4.2:1 on surface */
  --color-control-edge: #9d907c;  /* 5.3:1 on surface */
  --color-accent: #ffc933;
  --color-accent-hover: #ffd75e;
  --color-accent-ink: #1b1712;
  --color-accent-soft: #3d3216;
  --color-link: #ffb27a;
  --color-focus: #8ab4ff;
  --color-success: #7fd98a;
  --color-warning: #f2c14e;
  --color-danger: #ff8a7a;
  --color-success-soft: #1d3322;
  --color-danger-soft: #3a1f1b;
  --color-night: #1d4a3d;          /* dark mode: the night band becomes felt so it still stands apart */
  --color-night-ink: #f7efe2;
  --color-felt: #18473b;
  --char-rocket-ink: #ff8a80;
  --char-shark-ink: #8ab4ff;
  --char-crown-ink: #c9a8ff;
  --char-robot-ink: #b8bdc5;
  --char-octo-ink: #ff8ac8;
  --char-ufo-ink: #6fd3ff;
  --char-cat-ink: #ffa266;
  --char-cactus-ink: #5fdc85;
  --char-dino-ink: #8fd18f;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 8px 20px -8px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 22px 44px -16px rgb(0 0 0 / 0.7);
  --shadow-pop-sm: 2px 2px 0 var(--color-pop);
  --shadow-pop: 4px 4px 0 var(--color-pop);
  --shadow-pop-lg: 6px 6px 0 var(--color-pop);
}
:root[data-theme="light"] { color-scheme: light; }
.theme-dark { background: var(--color-bg); color: var(--color-ink); }

/* ==========================================================================
   Base (low specificity via :where, so your page CSS wins without fights)
   ========================================================================== */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:where(body) {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
:where(h1, h2, h3, h4) {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}
:where(h1) { font-size: var(--text-4xl); }
:where(h2) { font-size: var(--text-3xl); }
:where(h3) { font-size: var(--text-xl); line-height: var(--leading-snug); }
:where(h4) { font-size: var(--text-lg); line-height: var(--leading-snug); }
:where(p) { margin: 0 0 var(--space-4); text-wrap: pretty; }
:where(a) { color: var(--color-link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
:where(a:hover) { text-decoration-thickness: 0.14em; }
:where(img, svg) { max-width: 100%; height: auto; }
:where(:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
:where(hr) { border: 0; border-top: 1px solid var(--color-line); margin: var(--space-6) 0; }

@media (prefers-reduced-motion: reduce) {
  :where(*, *::before, *::after) { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-surface-2); }
.section--night { background: var(--color-night); color: var(--color-night-ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Small uppercase label above a heading */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: var(--space-2);
}
.lede { font-size: var(--text-lg); color: var(--color-ink-muted); max-width: 34em; } /* ~75 characters a line */

/* ==========================================================================
   Character helper: sets --char / --char-ink for any component.
   <div class="card is-shark"> ... </div>
   ========================================================================== */
.is-rocket { --char: var(--char-rocket); --char-ink: var(--char-rocket-ink); }
.is-shark  { --char: var(--char-shark);  --char-ink: var(--char-shark-ink); }
.is-crown  { --char: var(--char-crown);  --char-ink: var(--char-crown-ink); }
.is-robot  { --char: var(--char-robot);  --char-ink: var(--char-robot-ink); }
.is-octo   { --char: var(--char-octo);   --char-ink: var(--char-octo-ink); }
.is-ufo    { --char: var(--char-ufo);    --char-ink: var(--char-ufo-ink); }
.is-cat    { --char: var(--char-cat);    --char-ink: var(--char-cat-ink); }
.is-cactus { --char: var(--char-cactus); --char-ink: var(--char-cactus-ink); }
.is-dino   { --char: var(--char-dino);   --char-ink: var(--char-dino-ink); }

/* ==========================================================================
   Buttons
   <a class="btn btn--primary" href="/flip7/">Score Flip 7</a>
   ========================================================================== */
.btn {
  --btn-bg: var(--color-surface);
  --btn-ink: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;                 /* thumb-friendly */
  padding: var(--space-2) var(--space-5);
  border: var(--border-width) solid var(--color-line-strong);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-pop-sm);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-pop); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--color-pop); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-pill); }
.btn svg, .btn img { width: 1.25em; height: 1.25em; flex: none; }

.btn--primary { --btn-bg: var(--color-accent); --btn-ink: var(--color-accent-ink); }
.btn--primary:hover { --btn-bg: var(--color-accent-hover); }
.btn--secondary { --btn-bg: var(--color-surface); --btn-ink: var(--color-ink); }
.btn--dark { --btn-bg: var(--color-ink); --btn-ink: var(--color-bg); }
.btn--ghost {
  --btn-bg: transparent;
  border-color: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.btn--ghost:hover { box-shadow: none; transform: none; text-decoration-thickness: 0.14em; }
.btn--lg { min-height: 56px; padding-inline: var(--space-6); font-size: var(--text-lg); }
@media (max-width: 480px) { .btn--lg { padding-inline: var(--space-5); } } /* phones: full-width labels keep one line */
.btn--sm { min-height: 40px; padding-inline: var(--space-4); font-size: var(--text-sm); }
.btn--block { display: flex; width: 100%; }

/* ==========================================================================
   Cards
   .card        plain panel
   .card--pop   outlined + hard shadow (hero/featured items)
   .card--char  coloured top stripe from --char (pair with .is-<name>)
   ========================================================================== */
.card {
  background: var(--color-surface);
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.card--pop {
  border: var(--border-width) solid var(--color-line-strong);
  box-shadow: var(--shadow-pop);
}
.card--char { border-top: 8px solid var(--char, var(--color-accent)); }
.card > :last-child { margin-bottom: 0; }

/* ==========================================================================
   Badges / pills: status labels ("Live", "Beta", "Requested", "Free", "$25")
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-pill);
  border: 1.5px solid currentColor;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--color-ink);
  background: var(--color-surface);
}
.badge--live { color: var(--color-success); background: var(--color-success-soft); }
.badge--live::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: currentColor; }
.badge--soon { color: var(--color-ink-muted); background: var(--color-surface-2); border-style: dashed; }
/* Beta: open to everyone, still learning (a ring: not the solid "Live" dot). >= 4.5:1 in both themes. */
.badge--beta { color: var(--color-warning); background: var(--color-accent-soft); }
.badge--beta::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; }
.badge--accent { color: var(--color-accent-ink); background: var(--color-accent); border-color: var(--color-line-strong); }
.badge--char { color: var(--char-ink, var(--color-ink)); }

/* ==========================================================================
   Character badge: round icon from brand/characters/<name>.svg
   <img class="char-badge" src="../brand/characters/cat.svg" alt="Cat">
   Sizes: default 48 px, --sm 32 px, --lg 72 px, --xl 112 px.
   ========================================================================== */
.char-badge {
  display: inline-block;
  width: 48px; height: 48px;
  border-radius: 50%;
  flex: none;
}
.char-badge--sm { width: 32px; height: 32px; }
.char-badge--lg { width: 72px; height: 72px; }
.char-badge--xl { width: 112px; height: 112px; }

/* ==========================================================================
   Player chip: a small stylised render of the physical chip (61 x 70 mm).
   <figure class="player-chip is-cat">
     <img class="char-badge" src="../brand/characters/cat.svg" alt="">
     <figcaption>Cat</figcaption>
   </figure>
   ========================================================================== */
.player-chip {
  --chip-w: 104px;
  position: relative;
  display: inline-grid;
  justify-items: center;
  align-content: center;
  gap: calc(var(--chip-w) * 0.06);
  width: var(--chip-w);
  aspect-ratio: 61 / 70;
  margin: 0;
  padding: calc(var(--chip-w) * 0.1) calc(var(--chip-w) * 0.08) calc(var(--chip-w) * 0.07);
  background: var(--object-chip);
  color: var(--object-ink);
  border: var(--border-width) solid var(--color-line-strong);
  border-radius: calc(var(--chip-w) * 0.1);
  box-shadow: 0 3px 0 var(--char, var(--object-ink)), var(--shadow-md);
  font-family: var(--font-display);
}
/* QR-ish corner finders, drawn in CSS so the render stays tiny */
.player-chip::before {
  content: "";
  position: absolute;
  inset: calc(var(--chip-w) * 0.08) calc(var(--chip-w) * 0.08) 30%;
  background:
    radial-gradient(circle, var(--object-ink) 32%, transparent 34%) 0 0 / calc(var(--chip-w) * 0.07) calc(var(--chip-w) * 0.07),
    linear-gradient(var(--object-chip), var(--object-chip));
  -webkit-mask:
    linear-gradient(#000 0 0) top left / 26% 30% no-repeat,
    linear-gradient(#000 0 0) top right / 26% 30% no-repeat,
    linear-gradient(#000 0 0) bottom left / 26% 30% no-repeat;
          mask:
    linear-gradient(#000 0 0) top left / 26% 30% no-repeat,
    linear-gradient(#000 0 0) top right / 26% 30% no-repeat,
    linear-gradient(#000 0 0) bottom left / 26% 30% no-repeat;
  opacity: 0.85;
  border-radius: calc(var(--chip-w) * 0.04);
}
.player-chip .char-badge {
  position: relative;
  width: calc(var(--chip-w) * 0.46);
  height: calc(var(--chip-w) * 0.46);
  margin-top: calc(var(--chip-w) * 0.12);
}
.player-chip figcaption {
  position: relative;
  font-size: calc(var(--chip-w) * 0.13);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.player-chip--lg { --chip-w: 160px; }
.player-chip--sm { --chip-w: 72px; }

/* ==========================================================================
   Forms (email capture for "Get notified", request-a-game, contact)
   ========================================================================== */
.label { display: block; font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.hint { display: block; font-size: var(--text-sm); color: var(--color-ink-muted); margin-top: var(--space-1); }
.input {
  width: 100%;
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  border: var(--border-width) solid var(--color-control-edge);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
}
.input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; border-color: var(--color-line-strong); }
.input::placeholder { color: var(--color-ink-muted); opacity: 0.8; }
.checkbox { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--color-ink); flex: none; }
/* Native controls get the same >= 3:1 edge */
:where(input:not([type]), input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], select, textarea) { border-color: var(--color-control-edge); }

/* ==========================================================================
   Brand lockup: mark (SVG, name-free) + name (live text, swappable)
   <a class="brand" href="/"><svg class="brand__mark" ...></svg>
     <span class="brand__name" data-brand="name">Tallycat Games</span></a>
   ========================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__mark { width: 1.6em; height: 1.6em; flex: none; }
