/* groomersvan.com: the car wash the van drives through. Asphalt, lane paint, triple foam, LED signs. */
@font-face { font-family: "Bungee"; src: url("/assets/fonts/bungee-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/fonts/barlow-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --asphalt: #15171d;
  --asphalt-2: #1e212a;
  --asphalt-3: #272b36;
  --paint: #f6f3ea;
  --ink-soft: #c3c7d2;
  --magenta: #ff3ea5;
  --cyan: #22d3ee;
  --yellow: #ffd23f;
  --go: #2fd165;
  --go-deep: #0b3d1d;
  --stop: #ff4d4d;
  --frame: #d3dae0;
  --sign: #0b0c10;
  --measure: 68ch;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --display: "Bungee", "Arial Black", sans-serif;
  --text: "Barlow", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--asphalt-3) var(--asphalt); }
body {
  margin: 0;
  background: var(--asphalt) url("/assets/asphalt.svg") 0 0 / 240px 240px;
  color: var(--paint);
  font: 400 18px/1.62 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
}
::selection { background: var(--magenta); color: #fff; }
input, textarea { caret-color: var(--yellow); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--yellow); color: var(--sign); padding: .4rem .8rem; z-index: 10; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- top bar: the forecourt ---------- */
.forecourt {
  position: sticky; top: 0; z-index: 5;
  background: var(--asphalt-2) url("/assets/lane.svg") 0 100% / 60px 4px repeat-x;
  padding-bottom: 4px;
}
.forecourt-in { max-width: var(--wrap); margin: 0 auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1.4rem; }
.brand { font-family: var(--display); color: var(--yellow); text-decoration: none; font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; }
.brand:hover { color: var(--paint); }
.lanes { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.lanes::-webkit-scrollbar { display: none; }
.lanes a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .35rem .7rem; border-radius: 6px; white-space: nowrap; }
.lanes a:hover { color: var(--paint); background: var(--asphalt-3); }
.lanes a[aria-current="page"] { color: var(--sign); background: var(--yellow); }

/* ---------- the tunnel (first viewport) ---------- */
.tunnel { position: relative; padding: 28px var(--gutter) 0; overflow: hidden; }
.arch {
  max-width: var(--wrap); margin: 0 auto;
  padding: 10px;
  border-radius: 26px 26px 0 0;
  background: var(--frame);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.led {
  margin: 0;
  background: var(--sign);
  border-radius: 18px 18px 6px 6px;
  padding: 26px 34px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 7.2vw, 5.6rem);
  line-height: 1;
  letter-spacing: .03em;
  color: var(--yellow);
  text-align: center;
}
.led span { display: inline-block; }
/* dot-matrix: the lit glyphs show through a grid of round LED cells */
.led .dots {
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 62%);
  mask-image: radial-gradient(circle, #000 58%, transparent 62%);
  -webkit-mask-size: .085em .085em; mask-size: .085em .085em;
}
.led small { display: block; margin-top: .5rem; font-family: var(--text); font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.2rem); letter-spacing: .06em; color: var(--cyan); text-transform: uppercase; }

.bay {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 28px;
  /* the tunnel walls are the frame's own paint, carried down the bay */
  padding: 24px 20px 0;
  background: linear-gradient(90deg, var(--frame) 0 10px, var(--asphalt-2) 10px calc(100% - 10px), var(--frame) calc(100% - 10px));
}
.mouth { position: relative; margin: 0; display: flex; flex-direction: column; gap: 8px; min-height: 100%; }
.mouth .lens { position: relative; flex: 1; border-radius: 14px; overflow: hidden; background: var(--sign); min-height: 320px; }
/* the whole picture rides in the tunnel mouth (sign, van and all six columns); the dark above it
   is the tunnel ceiling and the foam fills the floor below it */
.mouth img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 62%; }
.mouth .lens::before, .mouth .lens::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 3.5%;
  background: url("/assets/brushes.svg") 0 0 / 100% 100% no-repeat;
  z-index: 1; pointer-events: none;
}
.mouth .lens::before { left: 0; }
.mouth .lens::after { right: 0; transform: scaleX(-1); }
.foam {
  position: absolute; left: -2%; right: -2%; bottom: -2px; height: 20%;
  background: url("/assets/foam.svg") center bottom / cover no-repeat;
  z-index: 2; pointer-events: none;
}
.mouth figcaption { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.mouth.portrait .lens { background: #0e1630; }
.mouth.portrait img { object-fit: contain; object-position: 50% 50%; }

/* ---------- wash menu board ---------- */
.board { background: var(--sign); border: 3px solid var(--asphalt-3); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.board h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.4rem; color: var(--cyan); letter-spacing: .04em; }
.figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--asphalt-3); border-radius: 10px; overflow: hidden; }
.figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs li { display: flex; flex-direction: column; gap: .3rem; padding: 12px 12px 12px; background: var(--sign); }
.figs span { color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.figs b { font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1; }
.figs li:nth-child(3n+1) b { color: var(--yellow); }
.figs li:nth-child(3n+2) b { color: var(--magenta); }
.figs li:nth-child(3n) b { color: var(--cyan); }

/* receipt tags: where a partner figure comes from, and when it was read */
.tag {
  display: inline-block; vertical-align: middle;
  background: var(--paint); color: var(--sign);
  font: 600 .72rem/1.25 var(--text); letter-spacing: .01em;
  padding: 3px 7px 5px; border-radius: 2px; white-space: nowrap;
  -webkit-mask: radial-gradient(circle at 4px 100%, transparent 2.5px, #000 3px) -4px 0 / 8px 100% repeat-x;
  mask: radial-gradient(circle at 4px 100%, transparent 2.5px, #000 3px) -4px 0 / 8px 100% repeat-x;
}
.figs .tag { align-self: flex-start; margin-top: 2px; }

/* tier rows: the free-spins ladder read as a wash menu */
.tiers { list-style: none; margin: 0; padding: 0; }
.tiers li { display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 14px; padding: 7px 0; border-bottom: 2px dashed var(--asphalt-3); }
.tiers li:last-child { border-bottom: 0; }
.tiers b { font-family: var(--display); font-weight: 400; font-size: 1.05rem; letter-spacing: .03em; }
.tiers li:nth-child(1) b { color: var(--cyan); }
.tiers li:nth-child(2) b { color: var(--magenta); }
.tiers li:nth-child(3) b { color: var(--yellow); }
.tiers li:nth-child(4) b { color: var(--paint); }
.tiers span { color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.tiers em { font-style: normal; font-family: var(--display); font-size: 1.05rem; color: var(--paint); min-width: 4.6em; text-align: right; }

.rating { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 22px; height: 22px; fill: var(--yellow); }
.rating p { margin: 0; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }

/* ---------- the signal: the page's one action ---------- */
.signal { display: flex; align-items: stretch; gap: .8rem; }
.lamps { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; background: #000; border-radius: 12px; padding: 7px; }
.lamps i { width: 18px; height: 18px; border-radius: 50%; background: #262626; }
.lamps i:first-child { background: #3a1616; }
.lamps i:last-child { background: var(--go); }
.go {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  background: var(--go); color: var(--go-deep);
  font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: .02em;
  text-decoration: none; text-align: center; text-wrap: balance;
  padding: 1.05rem 1.2rem; border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
  transition: transform .15s cubic-bezier(.16, 1, .3, 1), background .15s;
}
.go:hover { background: #4ee27e; color: var(--go-deep); transform: translateY(-2px); }
.go:active { transform: translateY(1px); }
.go svg { width: 1.1em; height: 1.1em; flex: none; }
.alt { margin: 0; color: var(--ink-soft); font-size: .92rem; font-weight: 600; }
.alt a { color: var(--yellow); }

/* the one authored moment: the van rolls through the foam and the light turns green */
@media (prefers-reduced-motion: no-preference) {
  .foam { animation: foam-in 1.4s cubic-bezier(.16, 1, .3, 1) .15s backwards; }
  .lamps i:first-child { animation: stop-off .9s steps(1) .2s backwards; }
  .lamps i:last-child { animation: go-on .5s cubic-bezier(.16, 1, .3, 1) 1.1s backwards; }
  @keyframes foam-in { from { transform: translateX(-104%); } to { transform: none; } }
  @keyframes stop-off { from { background: var(--stop); } }
  @keyframes go-on { from { background: #173d24; } }
}

/* ---------- the exit apron: the sign's reflection on wet asphalt ---------- */
.ramp {
  max-width: var(--wrap); margin: 0 auto; height: 64px; overflow: hidden; position: relative;
  background: linear-gradient(90deg, var(--frame) 0 10px, var(--asphalt-2) 10px calc(100% - 10px), var(--frame) calc(100% - 10px));
  -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent);
}
.ramp span {
  position: absolute; left: 0; right: 0; top: 4px;
  font-family: var(--display); font-size: clamp(2.1rem, 7.2vw, 5.6rem); line-height: 1; text-align: center;
  color: var(--yellow); opacity: .16; transform: scaleY(-1); filter: blur(2px);
}

/* ---------- the road below the tunnel ---------- */
main { display: block; }
/* a yellow lane line runs down the page between the wash bands */
.road { background: url("/assets/lane-v.svg") calc(50% - 600px) 0 / 4px 60px repeat-y; padding-bottom: 64px; }
.road h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 3.2vw, 2.2rem); line-height: 1.12; letter-spacing: .01em; margin: 0 0 .9rem; color: var(--paint); text-wrap: balance; }
.road h3 { font-size: 1.35rem; font-weight: 800; margin: 1.6rem 0 .4rem; color: var(--yellow); }
.road p { margin: 0 0 1rem; }
.road ul, .road ol { padding-left: 1.2rem; }
.road .exits { padding-left: 0; }
.road strong { color: var(--paint); font-weight: 800; }
.lead { max-width: var(--measure); font-size: 1.15rem; color: var(--paint); margin: 0 0 1.4rem; }
.col { max-width: var(--measure); }
.stretch { padding-top: 56px; }

/* two columns: reading on the left, a board or a picture on the right */
.pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.pair.mid { align-items: center; }

.verdict-card { background: var(--sign); border: 3px solid var(--asphalt-3); border-radius: 14px; padding: 24px; }
.verdict-card h2 { font-size: 1.4rem; color: var(--yellow); margin-bottom: .6rem; }
.verdict-card ul { margin: .8rem 0 0; padding-left: 1.1rem; }
.verdict-card li { margin: .3rem 0; color: var(--ink-soft); }

/* full-width wash bands: each foam colour owns a whole stripe of the page */
.band { position: relative; margin-top: 56px; padding: 44px 0 48px; color: var(--sign); }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px;
  background: url("/assets/brushes-h.svg") 0 0 / 120px 30px repeat-x;
}
.band + .band { margin-top: 0; }
.band.magenta { background: var(--magenta); }
.band.cyan { background: var(--cyan); }
.band.yellow { background: var(--yellow); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.band h2, .band h3 { color: var(--sign); margin: 0; }
.band h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.1; text-wrap: balance; }
.band h2 { text-wrap: balance; }
/* each band's colour lies on the wet asphalt below it as a short reflection */
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -46px; height: 46px; pointer-events: none;
  background: linear-gradient(var(--wet), transparent);
}
.band.magenta { --wet: rgba(255, 62, 165, .2); }
.band.cyan { --wet: rgba(34, 211, 238, .2); }
.band.yellow { --wet: rgba(255, 210, 63, .2); }
/* only the last band of a run reflects; the next band covers the others */
.band:has(+ .band)::after { display: none; }
.band p { margin: 0; font-size: 1.12rem; font-weight: 600; color: #15111a; max-width: var(--measure); }
.band a:not(.go) { color: var(--sign); }
.band .step { display: block; font: 600 .9rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; color: #2a1630; }
.band .shot figcaption { color: #2a1630; }

/* the express lane (bonus buy) band */
.band.express .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.band.express h2 { margin-bottom: .8rem; }
.band.express p + p { margin-top: 1rem; }

/* pictures from the game */
.shot { margin: 0; }
.shot img { border-radius: 14px; background: var(--sign); width: 100%; }
.shot figcaption { color: var(--ink-soft); font-size: .9rem; margin-top: .5rem; }
.shot.tall img { max-height: 520px; width: auto; margin: 0 auto; }

/* wash menu table (sub-pages) */
.menu { width: 100%; max-width: 760px; border-collapse: separate; border-spacing: 0 8px; margin: 1rem 0 1.4rem; }
.menu th, .menu td { text-align: left; padding: .8rem 1rem; background: var(--asphalt-2); }
.menu thead th { background: transparent; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 0; }
.menu tbody th { font-family: var(--display); font-weight: 400; border-radius: 10px 0 0 10px; width: 34%; }
.menu tbody td:last-child { border-radius: 0 10px 10px 0; font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.menu tbody tr:nth-child(1) th { color: var(--cyan); }
.menu tbody tr:nth-child(2) th { color: var(--magenta); }
.menu tbody tr:nth-child(3) th { color: var(--yellow); }
.menu tbody tr:nth-child(4) th { color: var(--paint); }
.menu tbody tr:nth-child(4) th, .menu tbody tr:nth-child(4) td { background: #3a2140; }

/* exits to the other pages: yellow road-sign tickets */
.exits { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.exits a {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--sign); color: var(--yellow); text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: .95rem; letter-spacing: .02em;
  padding: .6rem .95rem .6rem .75rem; border-radius: 6px; border: 2px solid var(--yellow);
}
.exits a:hover { background: var(--yellow); color: var(--sign); }
.exits a span { font-family: var(--text); font-weight: 600; color: var(--ink-soft); font-size: .9rem; letter-spacing: 0; }
.exits a:hover span { color: #3a3000; }
.exits svg { width: 1.05em; height: 1.05em; flex: none; }

/* questions */
.faq { max-width: var(--measure); }
.faq details { border-top: 2px dashed var(--asphalt-3); padding: 14px 0; }
.faq details:last-child { border-bottom: 2px dashed var(--asphalt-3); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: url("/assets/toggle.svg") center / contain no-repeat; transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .5rem 0 0; color: var(--ink-soft); }

/* final pull-forward */
.final { background: var(--sign); border-radius: 18px; padding: 30px; border: 3px solid var(--asphalt-3); display: flex; flex-direction: column; gap: 18px; }
.final h2 { margin: 0; }
.final p { margin: 0; color: var(--ink-soft); }

/* sub-page layout (single column below a shorter tunnel) */
.tunnel.short .led { font-size: clamp(1.6rem, 5vw, 3.6rem); }
.tunnel.short .ramp span { font-size: clamp(1.6rem, 5vw, 3.6rem); }
.page { padding-top: 40px; }
.page .final { margin-top: 48px; }

/* ---------- footer: small print on the exit ---------- */
.exit-sign { background: url("/assets/lane-white.svg") 0 0 / 60px 4px repeat-x; padding-top: 4px; }
.exit-sign p { max-width: var(--wrap); margin: 0 auto; padding: 1.1rem var(--gutter) 1.6rem; color: #8f95a3; font-size: .82rem; }
.exit-sign a { color: #8f95a3; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1320px) { .road { background-position: 12px 0; } }
@media (max-width: 860px) {
  body { font-size: 17px; }
  .forecourt-in { gap: .8rem; padding-top: .55rem; padding-bottom: .55rem; }
  .lanes { -webkit-mask: linear-gradient(90deg, #000 78%, transparent); mask: linear-gradient(90deg, #000 78%, transparent); padding-right: 28px; }
  .tunnel { padding-top: 18px; }
  .bay {
    grid-template-columns: 1fr; padding: 16px 14px 0; gap: 16px;
    background: linear-gradient(90deg, var(--frame) 0 6px, var(--asphalt-2) 6px calc(100% - 6px), var(--frame) calc(100% - 6px));
  }
  .ramp { background: linear-gradient(90deg, var(--frame) 0 6px, var(--asphalt-2) 6px calc(100% - 6px), var(--frame) calc(100% - 6px)); height: 44px; }
  .arch { padding: 6px; border-radius: 18px 18px 0 0; }
  .led { padding: 18px 20px; }
  .mouth .lens { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .mouth.portrait .lens { aspect-ratio: 4 / 3; }
  .board { gap: 11px; padding: 16px; }
  .board h2 { font-size: 1.3rem; }
  .figs li { padding: 9px 9px 10px; }
  .figs b { font-size: 1.25rem; }
  .figs .tag { font-size: .6rem; padding: 2px 5px 4px; }
  /* on a phone the action comes right after the figures, inside the first screen */
  .board .signal { order: 2; }
  .board .tiers { order: 3; }
  .board .rating { order: 4; }
  .board .alt { order: 5; }
  .go { font-size: 1rem; padding: .9rem 1rem; }
  .led small { margin-top: .35rem; }
  .road { background: none; }
  .pair, .band .wrap, .band.express .wrap { grid-template-columns: 1fr; gap: 22px; }
  .band { margin-top: 40px; padding: 40px 0 36px; }
  .stretch { padding-top: 36px; }
  .menu th, .menu td { padding: .65rem .75rem; }
  .final { padding: 22px; }
}
@media (max-width: 420px) {
  .brand { font-size: .9rem; }
  .lanes a { padding: .3rem .5rem; font-size: .9rem; }
}

/* .menu.kyc: tables with sentences in the cells (duel-no-kyc, 30.10.2026) */
.menu.kyc th, .menu.kyc td { padding: .7rem .8rem; }
.menu.kyc td { overflow-wrap: anywhere; }
.menu.kyc tbody td, .menu.kyc tbody td:last-child { font-family: inherit; font-size: 1rem; }
.menu.kyc tbody td:not(:last-child) { border-radius: 0; }
@media (max-width: 480px) {
  .menu.kyc th, .menu.kyc td { padding: .6rem .5rem; }
  .menu.kyc thead th { font-size: .72rem; letter-spacing: .03em; }
  .menu.kyc tbody th { font-size: .9rem; width: 31%; }
  .menu.kyc tbody td, .menu.kyc tbody td:last-child { font-size: .92rem; }
}

/* phone dock (08.11.2026, tools/quality/gv_dock.py): the Duel button stays within reach while reading; assets/dock.js
   shows it only while no big Duel button and no footer is on screen */
.dock { display: none; }
@media (max-width: 860px) {
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 12, 16, .94); border-top: 2px dashed var(--yellow);
    transform: translateY(115%); transition: transform .25s ease; }
  .dock.dock-on { transform: none; }
  .dock .go { width: 100%; font-size: .95rem; padding: .8rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
