/* the static pages (how-to-play, about, privacy, support) in the game's Clean room
   theme: light glass specimen plates, dark ink, mono tags, screws and a barcode,
   the orange go button, over a dimmed still of the dish (dish.jpg, from dish.sh).
   Tokens come from design/lab/index.html ([data-d="clean"]); the plates are a
   little more opaque than in the game because a page has long text on them.
   The game page has its own styles. */
:root {
  color-scheme: dark;
  --surface: #0a0f12;
  --ink: #11181c;
  --muted: #5b6970;
  --line: rgba(17, 24, 28, 0.16);
  --glass: linear-gradient(165deg, rgba(250, 252, 253, 0.98) 0%, rgba(232, 239, 242, 0.97) 42%, rgba(214, 225, 230, 0.96) 100%);
  --glass-edge: rgba(255, 255, 255, 0.8);
  --go-a: #ff8a3d;
  --go-b: #f25a05;
  --on-go: #1a0b02;
  --chip-on-bg: rgba(255, 122, 43, 0.12);
  --chip-on-line: #ff6a13;
  --link-hover: #9a3d05;
  --f-head: 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  --f-num: 'DIN Alternate', 'DIN Condensed', 'Helvetica Neue', Arial, sans-serif;
  --mono: Menlo, ui-monospace, 'SF Mono', Consolas, monospace;
  --r: 16px;
  --r-s: 10px;
  --barcode:
    repeating-linear-gradient(90deg, #11181c 0 2px, transparent 2px 5px),
    repeating-linear-gradient(90deg, transparent 0 3px, #11181c 3px 4px, transparent 4px 11px),
    repeating-linear-gradient(90deg, #11181c 0 3px, transparent 3px 13px);
}
* { box-sizing: border-box; }
html { background: var(--surface); }
body {
  margin: 0; color: var(--ink);
  font: 500 17px/1.65 var(--f-head);
  -webkit-text-size-adjust: 100%;
}
/* the dish, fixed behind everything; a pseudo-element because background-attachment: fixed misbehaves on iOS */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 15, 18, 0.72), rgba(10, 15, 18, 0.84)),
    var(--surface) url(dish.jpg) center / cover no-repeat;
}
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--chip-on-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 2px solid var(--info, #1f6fd1); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(720px, calc(100% - 24px)); margin: 0 auto; }

/* header and footer: glass strips */
.bar { padding: 12px 0 0; }
.bar .wrap, footer .wrap {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 12px 8px 16px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); text-decoration: none;
  font: 700 18px/1 var(--f-head); letter-spacing: -0.015em; }
.logo img { display: block; width: 32px; height: 32px; border-radius: 8px; }
nav ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
nav li { margin: 0; }
nav a { display: flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: var(--r-s); border: 1px solid transparent; color: var(--ink); text-decoration: none; }
nav a:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.6); color: var(--ink); }
nav a[aria-current] { background: linear-gradient(180deg, #fff4ec, #ffe6d6); border-color: var(--chip-on-line); }

/* the main plate */
main { padding: 16px 0 16px; }
.plate {
  position: relative; padding: 30px 34px 24px; border: 1px solid var(--glass-edge); border-radius: var(--r);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  background:
    radial-gradient(circle at 50% 50%, #fff 0 1.5px, #9aa7ad 3.2px, rgba(17, 24, 28, 0.25) 3.8px, transparent 4.4px) left 8px top 8px / 9px 9px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 1.5px, #9aa7ad 3.2px, rgba(17, 24, 28, 0.25) 3.8px, transparent 4.4px) right 8px top 8px / 9px 9px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 1.5px, #9aa7ad 3.2px, rgba(17, 24, 28, 0.25) 3.8px, transparent 4.4px) left 8px bottom 8px / 9px 9px no-repeat,
    radial-gradient(circle at 50% 50%, #fff 0 1.5px, #9aa7ad 3.2px, rgba(17, 24, 28, 0.25) 3.8px, transparent 4.4px) right 8px bottom 8px / 9px 9px no-repeat,
    var(--glass);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .plate { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
/* tag line above the title, and the rule with barcode and lot line below; generated, so they are not text */
.plate::before {
  content: attr(data-tag); display: block; margin: 0 0 14px; padding-left: 15px;
  font: 400 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  background: radial-gradient(circle, var(--chip-on-line) 0 3px, transparent 3.6px) left center / 8px 8px no-repeat;
}
.plate::after {
  content: attr(data-lot); display: block; margin-top: 32px; padding: 16px 0 0 0; border-top: 1px solid var(--line);
  text-align: right; font: 400 10px/20px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  background-image: var(--barcode); background-repeat: no-repeat; background-size: 92px 20px; background-position: left bottom;
  min-height: 37px;
}
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; margin: 0; color: var(--ink); }
h1 { font-size: 42px; line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 16px; }
h2 { font-size: 23px; line-height: 1.2; letter-spacing: -0.015em; margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
h3 { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; margin: 22px 0 6px; }
p, ul, ol, dl { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--chip-on-line); }
strong { font-weight: 700; }
.lead { font-size: 19px; line-height: 1.55; }
.dim { margin-top: -6px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.plate > .dim { margin-bottom: 22px; }

/* the go button */
.play-now {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin: 6px 0 4px; padding: 0 34px;
  border-radius: 14px; border: 1px solid rgba(120, 40, 0, 0.35); text-decoration: none; overflow: hidden;
  background: linear-gradient(180deg, var(--go-a), var(--go-b)); color: var(--on-go);
  font: 700 18px/1 var(--f-head);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(120, 40, 0, 0.3);
}
.play-now::before { content: ""; position: absolute; inset: 0 0 50% 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)); pointer-events: none; }
.play-now:hover { color: var(--on-go); filter: brightness(1.06); }
.play-now:active { box-shadow: inset 0 2px 5px rgba(80, 25, 0, 0.45); filter: none; }
.play-now:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 14px; }

/* the four cell types: "come back as" chips */
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.card { margin: 0; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid rgba(17, 24, 28, 0.14);
  background: linear-gradient(180deg, #fff, #e8eef0); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset; }
.card h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.card h3::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--chip-on-line); }
.card p { margin: 0; font-size: 15px; line-height: 1.5; }

/* the About facts: a stat well */
dl.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 14px; overflow: hidden;
  border: 1px solid rgba(17, 24, 28, 0.14); border-radius: 12px; background: rgba(17, 24, 28, 0.12); }
dl.facts > div { padding: 12px 14px 14px; background: rgba(255, 255, 255, 0.72); }
dl.facts dt { margin: 0 0 6px; font: 400 10.5px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
dl.facts dd { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
dl.facts .num { display: block; font: 400 38px/1 var(--f-num); letter-spacing: 0.01em; margin-bottom: 4px; }

/* the FAQ: rows between rules */
.faq { margin: 0 0 14px; }
.faq dt { margin: 0; padding: 14px 0 4px; border-top: 1px solid var(--line); font-weight: 700; }
.faq dt:first-child { border-top: 0; padding-top: 4px; }
.faq dd { margin: 0 0 10px; }

/* key plates */
kbd { display: inline-block; min-width: 28px; padding: 1px 8px 0; border-radius: 7px; text-align: center;
  background: linear-gradient(180deg, #fff, #e3eaed); border: 1px solid rgba(17, 24, 28, 0.2); border-bottom-width: 3px;
  font: 400 14px/1.5 var(--mono); color: var(--ink); }
.badge { display: inline-block; margin: 4px 0 0 -14px; }
.badge img { display: block; width: auto; height: 78px; }
.badge:focus-visible { border-radius: 8px; }

footer { padding: 12px 0 36px; font-size: 15px; line-height: 1.5; color: #3c484e; }
footer .wrap { padding: 12px 16px 14px; }
footer ul { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0 0 6px -10px; padding: 0; list-style: none; font-weight: 600; }
footer li { margin: 0; }
footer li a { display: flex; align-items: center; min-height: 38px; padding: 0 10px; text-decoration: none; border-radius: var(--r-s); }
footer li a:hover { background: rgba(255, 255, 255, 0.6); color: var(--ink); }
footer p { margin: 0 0 4px; font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  nav a, footer li a, .play-now { transition: background-color 0.15s, border-color 0.15s, filter 0.15s; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 24px); }
  .plate { padding: 24px 18px 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; margin-top: 32px; }
  .lead { font-size: 18px; }
  .types, dl.facts { grid-template-columns: 1fr; }
  .bar .wrap { padding-left: 14px; }
  nav a { padding: 0 10px; }
  .play-now { display: flex; width: 100%; }
}
@media (max-width: 360px) { .logo span { display: none; } }
