/* Little Fair
   Tokens
   sky     #E7F4F8   page ground
   ink     #0B3A46   teal ink: text, outlines, painted signs
   poppy   #D93A26   awning stripes, accents (white lettering on it)
   sun     #FFC62E   actions (ink lettering on it)
   sea     #0F7C76   second colour: booth walls, felt, wheel slices
   white   #FFFFFF
   Type    TeX Gyre Bonum Bold for display and numbers; TeX Gyre Heros for everything you read and press.
   Layout  "The midway": centred masthead, striped awnings over booths, painted signs, bunting over the footer. */

@font-face {
  font-family: "Bonum";
  src: url("../fonts/bonum-bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heros";
  src: url("../fonts/heros-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Heros";
  src: url("../fonts/heros-bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #E7F4F8;
  --ink: #0B3A46;
  --ink-2: #2F5B67;
  --poppy: #D93A26;
  --sun: #FFC62E;
  --sun-2: #F5B400;
  --sea: #0F7C76;
  --sea-2: #0C6F69;
  --white: #FFFFFF;
  --mist: #D2E9EF;
  --mist-2: #A9CDD6;
  --line: 2px solid var(--ink);
  --display: "Bonum", "Bookman Old Style", "URW Bookman", Georgia, serif;
  --text: "Heros", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 70rem;
  --gut: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sea-2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--poppy); }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.lead { font-size: 1.2rem; line-height: 1.55; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.foot :focus-visible, .paysign :focus-visible, .help-sign :focus-visible { outline-color: var(--sun); }
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--sun); color: var(--ink); border: var(--line); border-radius: 999px;
  padding: .55rem 1rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: .5rem; }
main:focus { outline: none; }

/* ---------- Masthead: logo centred, nav on its own row, wallet in the corner ---------- */
.mast { background: var(--sky); }
.mast-in {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding-top: .6rem; padding-bottom: .55rem;
}
.wallet-btn {
  align-self: flex-end; max-width: 100%;
  font: 700 .9rem/1 var(--text); color: var(--ink); background: var(--sun);
  border: var(--line); border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet-btn:hover { background: var(--sun-2); }
.wallet-btn:active { transform: translateY(1px); }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; margin-top: .35rem; }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-size: clamp(1.8rem, 5.4vw, 2.4rem); line-height: 1; letter-spacing: -.01em; }
.logo-mark { flex: none; }
.mast-nav ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: .7rem 0 0; padding: 0; }
.mast-nav li { display: flex; align-items: center; }
.mast-nav li + li::before {
  content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--poppy); margin: 0 .9rem;
}
.mast-nav a {
  display: block; padding: .35rem 0; font-weight: 700; font-size: 1rem; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid transparent;
}
.mast-nav a:hover { border-bottom-color: var(--mist-2); color: var(--ink); }
.mast-nav a[aria-current="page"] { border-bottom-color: var(--poppy); }
@media (min-width: 56rem) {
  .wallet-btn { position: absolute; top: 1.1rem; right: var(--gut); align-self: auto; max-width: 17rem; }
  .mast-in { padding-top: 1.1rem; padding-bottom: .8rem; }
  .brand { margin-top: 0; }
  .brand .logo-mark { width: 54px; height: 54px; }
}

/* ---------- Buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.9rem; padding: .6rem 1.3rem;
  font: 700 1rem/1.15 var(--text); color: var(--ink); text-decoration: none; text-align: center;
  background: var(--white); border: var(--line); border-radius: 999px; cursor: pointer;
}
.btn:hover { color: var(--ink); background: var(--mist); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: var(--sun-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { min-height: 2.3rem; padding: .35rem .9rem; font-size: .9rem; }
.btn-lg { min-height: 3.3rem; padding: .7rem 1.7rem; font-size: 1.1rem; }

.chips { display: flex; align-items: center; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { float: left; padding: 0; margin-right: .6rem; font-weight: 700; line-height: 2.7rem; }
.chip {
  min-width: 3.1rem; min-height: 2.7rem; padding: .3rem .7rem;
  font: 700 1.05rem/1 var(--text); color: var(--ink);
  background: var(--white); border: var(--line); border-radius: 8px; cursor: pointer;
}
.chip:hover { background: var(--sky); }
.chip[aria-pressed="true"] { background: var(--poppy); border-color: var(--ink); color: var(--white); }
.chip:disabled { cursor: not-allowed; opacity: .7; }

/* ---------- Dialogs: a small awning over each ---------- */
.dlg {
  width: min(28rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0;
  background: var(--white); color: var(--ink); border: var(--line); border-radius: 0;
}
.dlg::backdrop { background: rgba(11, 58, 70, .72); }
.dlg-awning { display: block; width: 100%; height: auto; position: relative; z-index: 2; margin-bottom: -4.5%; }
.dlg-body { padding: 2.1rem 1.5rem 1.5rem; }
.dlg h2 { font-size: 1.6rem; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--poppy); color: var(--white); border: 2px solid var(--white);
  font: 700 .8rem/1 var(--display); vertical-align: middle;
}
.dlg .badge-18 { border-color: var(--ink); }
.badge-lg { width: 3.4rem; height: 3.4rem; font-size: 1.15rem; margin: 0 0 .9rem; }
.age-refusal { margin-top: 1.1rem; padding-top: 1rem; border-top: 3px dotted var(--mist-2); }
.field { display: block; font-weight: 700; margin: .9rem 0 .35rem; }
.input {
  width: 100%; min-height: 2.9rem; padding: .5rem .8rem;
  font: 400 1.05rem/1.2 var(--text); color: var(--ink);
  background: var(--white); border: var(--line); border-radius: 8px;
}
.input[aria-invalid="true"] { border-color: var(--poppy); }
.hint { font-size: .92rem; color: var(--ink-2); margin: .45rem 0 0; }
.error { color: #B8301D; font-size: .95rem; font-weight: 700; margin: .3rem 0 0; min-height: 1.3em; }
.profile-list { margin: 0 0 1rem; display: grid; gap: .2rem; }
.profile-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 3px dotted var(--mist-2); padding: .5rem 0; }
.profile-list dt { color: var(--ink-2); }
.profile-list dd { margin: 0; font-family: var(--display); overflow-wrap: anywhere; text-align: right; }

/* ---------- Storage note, toast ---------- */
.store-note {
  position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 40;
  display: flex; gap: .8rem; align-items: center; justify-content: space-between;
  max-width: 34rem; margin: 0 auto; padding: .65rem .85rem;
  background: var(--white); border: var(--line); border-radius: 8px;
  font-size: .88rem; line-height: 1.45;
}
.store-note p { margin: 0; }
.toast {
  position: fixed; left: 50%; top: .75rem; z-index: 60; transform: translateX(-50%);
  max-width: calc(100vw - 2rem); padding: .65rem 1.1rem;
  background: var(--ink); color: var(--white); border-radius: 999px;
  font: 700 .95rem/1.3 var(--text); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toast.show { opacity: 1; }

/* ---------- Awnings ---------- */
.awning { display: block; }

/* ---------- Home: the awning over the demo booth ---------- */
.midway { --awn: clamp(3.9rem, 7.2vw, 5.4rem); position: relative; padding-bottom: 3.25rem; }
.midway-awning { width: 100%; height: var(--awn); position: relative; z-index: 3; }
.midway-row {
  display: grid; gap: 1.5rem; align-items: start;
  margin-top: calc(var(--awn) * -.32);
}
.sign-hero {
  position: relative; z-index: 4; margin-top: calc(var(--awn) * .32 + 1.4rem);
  background: var(--white); border: var(--line); border-radius: 14px; padding: 2.1rem 1.4rem 1.5rem;
}
.sign-hero::before {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: .75rem; height: .6rem;
  background: radial-gradient(circle, var(--poppy) 3px, transparent 3.6px) 0 50% / 1.3rem .6rem repeat-x;
}
.sign-hero h1 { max-width: 14ch; margin-bottom: .45em; }
.sign-hero .lead { margin-bottom: 1.4rem; }
.sign-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.demo-booth { position: relative; z-index: 1; background: var(--sea); border: var(--line); }
.demo-awning-small { width: 100%; height: auto; position: relative; z-index: 2; margin-bottom: -6.2%; }
.demo-inner { padding: 2.2rem 1rem 1.3rem; color: var(--white); }
.demo-head { text-align: center; margin-bottom: 1rem; }
.demo-head h2 { margin: 0; font-size: 1.55rem; }
.demo-head p { margin: .1rem 0 0; font-size: .98rem; }
.counter { background: var(--mist); border-top: var(--line); padding: 1rem; color: var(--ink); }
.counter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; }
.counter-row + .counter-row { margin-top: .8rem; }
.counter-center { justify-content: center; }
.counter-start { justify-content: flex-start; }
.say { margin: .85rem 0 0; min-height: 1.6em; font-weight: 700; line-height: 1.45; }
.say-center { text-align: center; }
.demo-booth .counter-row { justify-content: center; }
.demo-booth .say { text-align: center; }

@media (min-width: 56rem) {
  .midway-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.75rem; }
  .demo-awning-small { display: none; }
  .demo-inner { padding-top: calc(var(--awn) * .32 + 1.1rem); }
  .sign-hero { padding: 2.4rem 2rem 2rem; }
}

/* Reels */
.reels {
  --pane: clamp(4.2rem, 21vw, 6.2rem);
  position: relative; width: fit-content; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, var(--pane)); gap: .5rem;
  background: var(--ink); padding: .55rem; border-radius: 12px;
}
.reels-small { --pane: clamp(4rem, 19vw, 5.2rem); }
.drum { width: var(--pane); height: calc(var(--pane) * 3); overflow: hidden; background: var(--white); border-radius: 5px; position: relative; }
.drum::before, .drum::after {
  content: ""; position: absolute; left: 0; right: 0; height: var(--pane); z-index: 2; pointer-events: none;
  background: rgba(231, 244, 248, .72);
}
.drum::before { top: 0; }
.drum::after { bottom: 0; }
.run { will-change: transform; }
.pane { height: var(--pane); display: grid; place-items: center; padding: .5rem; }
.pane svg { width: 100%; height: 100%; }
.dotline {
  position: absolute; left: .55rem; right: .55rem; top: 50%; height: 0; z-index: 3; pointer-events: none;
  border-top: 5px dotted var(--poppy); transform: translateY(-50%);
}
.dotline::before, .dotline::after {
  content: ""; position: absolute; top: -9px; border: 8px solid transparent;
}
.dotline::before { left: -.55rem; border-left-color: var(--sun); border-right-width: 0; }
.dotline::after { right: -.55rem; border-right-color: var(--sun); border-left-width: 0; }
.reels.hit .drum { outline: 4px solid var(--sun); outline-offset: -4px; }

/* ---------- Booths on the midway ---------- */
.row { padding: 1.25rem 0 0; }
.row-head { text-align: center; margin-bottom: 1.75rem; }
.row-head h2 { margin-bottom: .2em; }
.row-head p { margin: 0; color: var(--ink-2); }
.stalls { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.stall { display: flex; flex-direction: column; }
.stall-awning { display: block; width: 100%; height: auto; position: relative; z-index: 2; margin-bottom: -6.1%; }
.stall-body {
  flex: 1; display: flex; flex-direction: column; text-align: center;
  background: var(--white); border: var(--line); padding-bottom: 1.35rem;
}
.stall-wall { background: var(--mist); padding: 1.9rem 1rem .6rem; }
.stall-art { width: 100%; max-width: 15rem; max-height: 8.5rem; margin: 0 auto; }
.stall-shelf { height: .9rem; background: linear-gradient(var(--sea) 0 .32rem, var(--ink) .32rem); }
.stall-name { margin: 1.1rem 0 .7rem; }
.stall-name span {
  display: inline-block; background: var(--ink); color: var(--white); border-radius: 6px;
  padding: .4rem 1.2rem; font-size: 1.4rem;
}
.stall-body p { padding: 0 1.3rem; margin-bottom: 1.1rem; color: var(--ink-2); }
.stall-facts { margin: 0 1.3rem 1.2rem; padding: .7rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; border-top: 3px dotted var(--mist-2); border-bottom: 3px dotted var(--mist-2); text-align: left; }
.stall-facts dt { font-size: .82rem; color: var(--ink-2); }
.stall-facts dd { margin: 0; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.stall-body .btn { margin: auto auto 0; }
@media (min-width: 56rem) {
  .stalls { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
}

/* Three small notes */
.notes { background: var(--white); border-top: var(--line); border-bottom: var(--line); margin-top: 3.5rem; padding: 1.75rem 0; }
.notes-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.notes-row li { display: flex; gap: 1rem; align-items: flex-start; }
.notes-row svg { width: 3rem; height: 3rem; flex: none; }
.notes-row h3 { margin: 0 0 .2rem; font-size: 1.15rem; }
.notes-row p { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.notes-row li + li { border-top: 3px dotted var(--mist-2); padding-top: 1.25rem; }
@media (min-width: 56rem) {
  .notes-row { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .notes-row li { padding: 0 1.5rem; }
  .notes-row li:first-child { padding-left: 0; }
  .notes-row li:last-child { padding-right: 0; }
  .notes-row li + li { border-top: 0; padding-top: 0; border-left: 4px dotted var(--mist-2); }
}

/* ---------- Inner pages ---------- */
.hall-head { text-align: center; padding: 2.2rem var(--gut) 1.5rem; }
.hall-head h1 { margin-bottom: .3em; }
.hall-head .lead { max-width: 38rem; margin: 0 auto; }
.hall-head::after {
  content: ""; display: block; width: 8.4rem; height: .6rem; margin: 1.4rem auto 0;
  background: radial-gradient(circle, var(--poppy) 3px, transparent 3.6px) 0 50% / 1.4rem .6rem repeat-x;
}
.hall-body { padding-bottom: 3.25rem; }
.prose { max-width: 45rem; margin-left: auto; margin-right: auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.prose ul li { position: relative; padding-left: 1.4rem; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--poppy); }
.prose .plain-list li::before, .prose .help-sign li::before { content: none; }
.plain-list { margin: 0 0 1.25rem; }
.plain-list li { padding: .7rem 0 !important; border-bottom: 3px dotted var(--mist-2); display: flex; gap: 1rem; flex-wrap: wrap; }
.plain-list strong { min-width: 5.5rem; }
.fine { font-size: .9rem; color: var(--ink-2); }
.fine-center { text-align: center; margin-top: 2rem; }

.help-sign, .paysign {
  position: relative; background: var(--ink); color: #E9F5F7; border-radius: 6px; padding: 1.5rem 1.4rem;
  outline: 2px dashed rgba(255, 255, 255, .38); outline-offset: -10px;
}
.help-sign { margin: 2rem 0; }
.help-sign h2, .paysign h2 { color: var(--white); margin-top: 0; font-size: 1.55rem; }
.help-sign a, .paysign a { color: var(--sun); }
.help-sign a:hover { color: var(--white); }
.help-sign p:last-child { margin-bottom: 0; }

/* Game pages: the booth front and the painted pay sign */
.game-lay { display: grid; gap: 2.5rem; padding-bottom: 3rem; align-items: start; }
.booth-awning { display: block; width: 100%; height: auto; position: relative; z-index: 2; }
.booth-awning-wide { display: none; margin-bottom: -3.1%; }
.booth-awning-narrow { margin-bottom: -6.2%; }
@media (min-width: 40rem) {
  .booth-awning-wide { display: block; }
  .booth-awning-narrow { display: none; }
}
.booth-front { background: var(--white); border: var(--line); padding: 2.2rem 1rem 0; overflow: hidden; }
.plates { display: flex; justify-content: center; gap: .75rem; margin: 0 0 1.1rem; }
.plate {
  margin: 0; min-width: 7.5rem; padding: .45rem 1rem .5rem; text-align: center;
  background: var(--mist); border-radius: 8px; line-height: 1.2;
}
.plate span { display: block; font-size: .84rem; color: var(--ink-2); }
.plate strong { display: block; font-family: var(--display); font-size: 1.45rem; font-variant-numeric: tabular-nums lining-nums; }
.booth-front .counter { margin: 1.25rem -1rem 0; }

.paysign { margin-bottom: 1.5rem; }
.paysign::before, .paysign::after {
  content: ""; position: absolute; bottom: -1.5rem; width: .7rem; height: 1.5rem; background: var(--ink);
}
.paysign::before { left: 14%; }
.paysign::after { right: 14%; }
.pay-table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.pay-table th { color: var(--sun); font-size: .88rem; text-align: left; padding: .35rem .45rem; border-bottom: 2px solid rgba(255, 255, 255, .5); }
.pay-table td { padding: .5rem .45rem; border-bottom: 2px dotted rgba(255, 255, 255, .3); vertical-align: middle; }
.pay-table .r, .pay-table .pay { text-align: right; }
.pay-table .pay { font-family: var(--display); white-space: nowrap; color: var(--white); }
.pay-table .big { font-family: var(--display); font-size: 1.2rem; color: var(--white); }
.pt-row { display: inline-flex; gap: .1rem; background: var(--white); border-radius: 6px; padding: .2rem .3rem; }
.pt-row svg { width: 1.55rem; height: 1.55rem; }
.paysign .fine { color: #BFDDE3; margin: 0; }
.pay-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.pay-list li { padding: .6rem 0; border-bottom: 2px dotted rgba(255, 255, 255, .3); }
.pay-list strong { display: block; color: var(--sun); }
@media (min-width: 60rem) {
  .game-lay { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; }
}

/* Wheel */
.wheel-stage { position: relative; width: min(100%, 24rem); aspect-ratio: 1; margin: 1.4rem auto 0; }
.wheel-svg { display: block; width: 100%; height: 100%; transform: rotate(0deg); transform-origin: 50% 50%; pointer-events: none; }
.wheel-svg.spinning { transition: transform 4s cubic-bezier(.12, .7, .14, 1); }
.wheel-peg { position: absolute; left: 50%; top: -1.05rem; width: 2.3rem; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-content: center; text-align: center; pointer-events: none;
  border-radius: 50%; background: var(--sun); border: var(--line); color: var(--ink); line-height: 1;
}
.wheel-hub span { font-family: var(--display); font-size: clamp(1.1rem, 4.2vw, 1.5rem); }
.wheel-hub small { font-size: clamp(.6rem, 2vw, .72rem); font-weight: 700; margin-top: .15rem; }

/* Cards */
.felt {
  display: flex; justify-content: center; align-items: center; gap: clamp(.7rem, 4vw, 1.8rem);
  background: var(--sea); border: var(--line); border-radius: 10px; padding: 1.3rem .75rem;
}
.felt-word { font: 700 1.15rem/1 var(--display); color: var(--white); }
.pcard { width: clamp(6rem, 27vw, 8.4rem); aspect-ratio: 5 / 7; perspective: 900px; }
.pcard-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s ease; }
.pcard.up .pcard-in { transform: rotateY(180deg); }
.pcard-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pcard-face svg { width: 100%; height: 100%; }
.pcard-front { transform: rotateY(180deg); }
.pcard.still .pcard-in { transition: none; }

/* Contact, cookies, 404 */
.table-scroll { overflow-x: auto; }
.key-table { width: 100%; border-collapse: collapse; background: var(--white); border: var(--line); margin: 1rem 0; font-size: .95rem; }
.key-table th, .key-table td { padding: .6rem .75rem; border-bottom: 2px solid var(--mist); text-align: left; vertical-align: top; }
.key-table th { background: var(--mist); }
.key-table code { font-size: .9rem; overflow-wrap: anywhere; }
.lost { text-align: center; padding: 3.5rem var(--gut) 4rem; }
.lost .sign-actions { justify-content: center; }

/* ---------- Footer: a fairground sign under a string of bunting ---------- */
.foot { background: var(--ink); color: #E9F5F7; margin-top: 3.5rem; font-size: .96rem; }
.bunting { display: block; width: 100%; height: 38px; }
.foot a { color: var(--sun); }
.foot a:hover { color: var(--white); }
.foot-in { padding-top: 1.2rem; padding-bottom: 5.5rem; text-align: center; }
.brand-foot { color: var(--white); margin-top: 0; }
.brand-foot:hover { color: var(--white); }
.brand-foot .brand-name { font-size: 1.7rem; }
.foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.foot-nav li { display: flex; align-items: center; }
.foot-nav li + li::before { content: ""; width: .35rem; height: .35rem; border-radius: 50%; background: var(--sun); margin: 0 .8rem; }
.foot-nav a { font-weight: 700; text-decoration: none; padding: .3rem 0; }
.foot-nav a:hover { text-decoration: underline; }
.foot-sign {
  display: grid; gap: 1rem; text-align: left; margin: 0 auto 1.5rem; max-width: 62rem;
  padding: 1.3rem 1.3rem 1.1rem; border-radius: 8px; border: 2px dashed rgba(255, 255, 255, .4);
}
.foot-sign p { margin: 0 0 .75rem; }
.foot-sign-col p:last-child { margin-bottom: 0; }
.age-line { display: flex; align-items: center; gap: .7rem; }
.foot-op { margin: 0 0 .3rem; overflow-wrap: anywhere; }
.foot-copy { margin: 0; font-size: .88rem; color: #BFDDE3; }
@media (min-width: 56rem) {
  .foot-sign { grid-template-columns: 1fr 1fr; gap: 2.25rem; padding: 1.5rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
