/*
 * KikAssist's skin for the shared home page (kikassist-web#144, baseword-web#208).
 * Brand file: only custom properties and brand-only rules live here.
 * The layout is site.css, byte-identical in both repos. See site/TEMPLATE.md.
 *
 * The track sits on a chalkboard: a wood clipboard frame around a green slate,
 * chalk-white tiles and buttons as in the app. No clip on top (dropped 2026-11-05).
 * Play throughout.
 *
 * The page is the kit's pitch with random tactics chalked on it
 * (css/pitch.css and js/pitch-tactics.js, linked in the template's BRAND HEAD
 * block and shared with the other pages). As in the app, nothing sits
 * straight on the pitch: text and media are on slate plates (--slate).
 */
:root {
  --bg: #0E1A12;
  --bg-band: #12261A;
  --band-border: #22402C;
  --text: #F2F1E8;
  --text-muted: #D3D6CC;
  --text-faint: #B5BBAE;
  --accent: #F6E27A;
  --accent-ink: #0E1A12;
  --eyebrow: #F6E27A;
  --link: #F6E27A;
  --link-hover: #FFFFFF;
  --cta-bg: #0B8334;
  --cta-ink: #FFFFFF;
  --cta-weight: 700;

  --font-body: Play, system-ui, sans-serif;
  --font-display: Play, system-ui, sans-serif;
  --font-label: Play, system-ui, sans-serif;
  --font-tile: Play, system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: 0.5px;
  --label-weight: 700;
  --label-transform: uppercase;
  --eyebrow-size: 14px;
  --h1-size: 58px;
  --h2-size: 56px;
  --h2-small-size: 48px;
  --h3-size: 28px;
  --wordmark-font: Play, system-ui, sans-serif;
  --wordmark-size: 30px;
  --wordmark-weight: 700;
  --nav-weight: 700;

  /* Kikky: always a circle with the chalk-yellow ring */
  --mascot-ring: #F6E27A;
  --mascot-bg: #1B4A2B;

  /* The chalkboard: wood frame, slate inside */
  --plate-bg: #8A5A2E;
  --plate-border: 3px solid #3A2410;
  --plate-radius: 18px;
  --plate-pad: 16px;
  --plate-inner-bg: #1B4A2B;
  --plate-inner-radius: 10px;
  --plate-head-bg: transparent;
  --plate-head-rule: 0 solid transparent;
  --plate-head-ink: #F6E27A;
  --plate-meta-ink: #D3D6CC;
  --plate-circuit: none;
  --plate-chalk: block;
  --plate-body-ink: #F2F1E8;

  --card-bg: #12261A;
  --card-border: 1px solid #2E5A3C;
  --card-radius: 14px;
  --card-title-ink: #F6E27A;

  /* the track, as the app sets it: bold Play chalk, solved words in yellow,
     the missing word "( 3 )" in white over a solid chalk rule */
  --track-font: Play, system-ui, sans-serif;
  --track-weight: 700;
  --track-size: 21px;
  --track-name-ink: #F2F1E8;
  --plate-rule: rgba(242, 241, 232, .35);
  --hl-ink: #F6E27A;
  --hl-weight: 700;
  --blank-rule: 2px solid #F2F1E8;
  --blank-ink: #F2F1E8;

  /* tiles: white with a black edge; the word being built in dashed chalk */
  --tile-bg: #FFFFFF;
  --tile-ink: #111111;
  --tile-border: 3px solid #111111;
  --tile-weight: 400;
  --tile-radius: 12px;
  --built-bg: transparent;
  --built-border: 2px dashed #D3D6CC;
  --built-ink: #F2F1E8;

  --btn-border: 2px solid #C9CDC4;
  --btn-ink: #F2F1E8;
  --btn-weight: 700;

  /* the streak screen: black ticks and progress on dark slate cards */
  --s-card-bg: #12201A;
  --s-pill-bg: #22332A;
  --s-check-bg: #0A0F0C;
  --s-dot-bg: #22332A;
  --s-bar-fill: #0A0F0C;
  --s-bar-track: #2A3B31;
  --s-title-font: Play, system-ui, sans-serif;
  --s-title-weight: 700;
  --streak-number-ink: #F2F1E8;
  --step-ink: #F2F1E8;

  --swatch-border: #A9B8AD;
  --pick-border: 2px solid #F6E27A;
  --pick-idle-border: 1px solid #2E5A3C;
  --pick-bg: #12261A;

  /* leaderboard badges in the clipboard's wood */
  --lb-avatar-ring: 2px solid #8A5A2E;
}

/* How to play and the share card: a slate in a thin wood frame, no clipboard padding */
.step-plate, .share-plate {
  --plate-border: 0 solid transparent;
  --plate-pad: 6px;
  --plate-radius: 14px;
  --plate-inner-radius: 8px;
}

/* The kit preview: the chalkboard takes the picked kit's slate (its `accent`). */
.theme-preview { --plate-inner-bg: var(--t-accent); }

.band { background: transparent; border-color: transparent; }

/* Slate plates under everything that would otherwise sit on the pitch. Blocks
   that are a .wrap keep the gutter outside the plate rather than inside it. */
.site-header, .download, .footer-inner {
  max-width: none;
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  margin-right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  padding: 16px 24px;
  background: var(--slate);
  border-radius: 14px;
}
.site-header { margin-top: 16px; }
.download { padding: 28px; }
.site-footer { border-top: 0; padding-bottom: 24px; }
.hero-copy, .intro, .share-copy, #leaderboard > .split-side { background: var(--slate); border-radius: 14px; padding: 28px; }
.intro { align-self: flex-start; }
.band > .wrap > h2 { align-self: flex-start; background: var(--slate); border-radius: 12px; padding: 12px 20px; }
@media (max-width: 480px) {
  .site-header, .download, .footer-inner { padding: 16px; }
  .hero-copy, .intro, .share-copy, #leaderboard > .split-side { padding: 20px 16px; }
}
