/* GENERATED by tools/site_kit.mjs from game/src/ui/kit/kit.css: change the game's kit, then run it again. */
/*
 * The panel kit: the game's panels as made things (DESIGN.md, "Materials").
 *
 * A box wears a material by a class. Each material is one painted picture (game/assets-src/panels, made by
 * tools/panels.py) cut into nine pieces by the browser: the corners keep their size, the edges and the middle
 * stretch. So one picture fits a box of any size, on a television and on a phone.
 *
 *   <section class="fhk fhk-chalk">    a chalkboard: teaching, a play, anything the coach explains
 *   <section class="fhk fhk-paper">    taped note paper: a list, the week, a form, anything the coach reads or fills in
 *   <header  class="fhk fhk-plank">    a wooden sign: the name of the place you are in. One a screen
 *   <div     class="fhk fhk-score">    a scoreboard face: a score, a clock, any number that matters
 *
 * Lettering: .fhk-title (the title's block capitals), .fhk-hand (chalk and marker), .fhk-bulbs (scoreboard numbers).
 * Buttons: .fhk-btn (gold, the one thing to do next), .fhk-btn.quiet. Small things: .fhk-tape (a strip of tape with a name on it).
 * Each material also has its own flat colour under its middle: the browser draws the nine pieces one by one, and
 * on a tilted or part-pixel box a hairline of whatever is behind shows between them without it.
 * Nothing here is purple, and nothing glows. Border widths are whole pixels at the usual text size (steps of
 * 0.125rem): a part-pixel width leaves a hairline where two pieces of a picture meet.
 */
.fhk-root, .fhk {
  --fhk-black: #0a0c0e;
  --fhk-night: oklch(0.15 0.012 250);
  --fhk-gold: oklch(0.80 0.15 84);
  --fhk-gold-up: oklch(0.86 0.15 88);
  --fhk-gold-deep: oklch(0.66 0.143 70);
  --fhk-chalk: oklch(0.95 0.015 85);
  --fhk-chalk-dim: oklch(0.80 0.02 150);
  --fhk-ink: oklch(0.24 0.016 250);
  --fhk-ink-dim: oklch(0.45 0.02 250);
  --fhk-marker: oklch(0.55 0.19 28);
  --fhk-bulb: oklch(0.84 0.16 80);
  --fhk-bulb-off: oklch(0.30 0.03 80);
  --fhk-display: 'Alfa Slab One', 'Rockwell Extra Bold', 'Arial Black', 'Segoe UI Black', Impact, system-ui, sans-serif;
  --fhk-handwriting: 'Chalkboard SE', 'Segoe Print', 'Bradley Hand', 'Comic Neue', cursive;
  --fhk-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.fhk {
  box-sizing: border-box; position: relative; margin: 0;
  border-style: solid; border-color: transparent;
  font-family: var(--fhk-body); font-size: 0.9375rem; line-height: 1.45;
}

/* ---- a chalkboard */
.fhk-chalk {
  border-width: 1.125rem;
  border-image: url('panels/chalkboard.webp') 64 fill / 1.125rem stretch;
  padding: 0.9rem 1.1rem 1rem;
  color: var(--fhk-chalk);
  background: #1c2922 padding-box;
}
.fhk-chalk h2, .fhk-chalk h3 { color: var(--fhk-chalk); }
.fhk-chalk .fhk-note { color: var(--fhk-chalk-dim); }
.fhk-chalk .fhk-key { color: var(--fhk-gold); }

/* ---- taped note paper */
.fhk-paper {
  border-width: 1.4rem;
  border-image: url('panels/paper.webp') 180 fill / 3.5rem stretch;
  padding: 1.1rem 1.2rem 1.2rem;
  color: var(--fhk-ink);
  background: #f1e8cf padding-box;
}
.fhk-paper h2, .fhk-paper h3 { color: var(--fhk-ink); }
.fhk-paper .fhk-note { color: var(--fhk-ink-dim); }
.fhk-paper .fhk-key { color: var(--fhk-marker); }

/* ---- a wooden sign */
.fhk-plank {
  border-width: 0.9rem 1.6rem;
  border-image: url('panels/plank.webp') 120 fill / 1.75rem stretch;
  padding: 0.45rem 0.6rem 0.5rem;
  color: var(--fhk-chalk);
  background: #724423 padding-box;
}

/* ---- a scoreboard face */
.fhk-score {
  border-width: 1.5rem 1.125rem;
  border-image: url('panels/scoreboard.webp') 100 60 fill / 2rem 1.125rem round stretch;
  padding: 0.5rem 0.9rem 0.55rem;
  color: var(--fhk-chalk);
  background: #1a1a1a padding-box;
}

/* ---- lettering */
.fhk-title {
  margin: 0;
  font-family: var(--fhk-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; line-height: 0.95;
  color: var(--fhk-chalk);
  -webkit-text-stroke: 0.14em var(--fhk-black); paint-order: stroke fill;
  text-shadow: 0 0.09em 0 var(--fhk-black);
}
.fhk-title.gold { color: var(--fhk-gold); }
.fhk-hand { font-family: var(--fhk-handwriting); letter-spacing: 0.01em; }
.fhk-label { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.fhk-bulbs {
  font-family: var(--fhk-display); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1;
  color: var(--fhk-bulb);
}
.fhk h2, .fhk h3 { margin: 0 0 0.4rem; letter-spacing: -0.02em; line-height: 1.15; }
.fhk h2 { font-size: 1.375rem; font-weight: 800; }
.fhk h3 { font-size: 1.0625rem; font-weight: 700; }
.fhk p { margin: 0 0 0.5rem; }
.fhk p:last-child { margin-bottom: 0; }

/* ---- buttons: gold is the one thing to do next; everything else is quiet */
.fhk-btn {
  appearance: none; cursor: pointer; border: 0; display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--fhk-body); font-size: 1rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fhk-black); background: var(--fhk-gold);
  padding: 0.7em 1.5em 0.64em;
  clip-path: polygon(0.6em 0, calc(100% - 0.6em) 0, 100% 50%, calc(100% - 0.6em) 100%, 0.6em 100%, 0 50%);
  box-shadow: inset 0 -0.22em 0 var(--fhk-gold-deep);
  transition: background 0.2s, transform 0.2s;
}
.fhk-btn:hover, .fhk-btn:focus-visible { background: var(--fhk-gold-up); outline: none; transform: translateY(-1px); }
.fhk-btn:active { transform: translateY(1px); box-shadow: none; }
.fhk-btn.quiet { color: var(--fhk-chalk); background: oklch(0.30 0.018 250); box-shadow: inset 0 -0.22em 0 oklch(0.20 0.014 250); }
.fhk-btn.quiet:hover, .fhk-btn.quiet:focus-visible { background: oklch(0.36 0.022 250); }

/* ---- a strip of tape with a name on it */
.fhk-tape {
  display: inline-block; padding: 0.18em 0.75em 0.14em; transform: rotate(-1.2deg);
  font-family: var(--fhk-handwriting); font-weight: 700; font-size: 0.9375rem; color: var(--fhk-ink);
  background: linear-gradient(oklch(0.95 0.02 90), oklch(0.91 0.025 88));
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 99% 92%, 96% 100%, 4% 96%, 0 100%);
}
.fhk-tape:nth-child(even) { transform: rotate(0.9deg); }

/* ---- a ticked or empty box drawn by hand, for lists on paper */
.fhk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.fhk-list li { display: grid; grid-template-columns: 1.15rem 1fr auto; gap: 0.6rem; align-items: baseline; padding-bottom: 0.4rem; border-bottom: 1px solid oklch(0.24 0.016 250 / 0.14); }
.fhk-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fhk-box { width: 0.95rem; height: 0.95rem; border: 2px solid currentColor; border-radius: 2px; align-self: center; position: relative; }
.fhk-box.done::after { content: ''; position: absolute; left: 0.12rem; top: -0.3rem; width: 0.42rem; height: 0.85rem; border: solid var(--fhk-marker); border-width: 0 3px 3px 0; transform: rotate(40deg); }
