/* Duys Motos: design tokens + base. Dark charcoal, red as the only accent, condensed bold headings. Phone first. */
/* Barlow Condensed 800, latin subset, self-hosted (OFL). One file serves weights 700-800 so nothing is faux-bolded.
   The fallback face is scaled to roughly the same width so headings don't rewrap (and shift) when the font arrives. */
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-800-latin.woff2) format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed Fallback"; src: local("Roboto Condensed Bold"), local("RobotoCondensed-Bold"), local("Arial Narrow Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("DejaVu Sans Condensed Bold"), local("DejaVu Sans Bold"); font-weight: 700 800; size-adjust: 74%; }
:root {
  --bg: #121214;
  --bg-2: #1b1b1f;
  --bg-3: #242429;
  --ink: #f2f1ee;
  --ink-2: #b9b7b0;
  --ink-3: #7e7c76;
  --red: #e0271b;
  --red-2: #ff3b2e;
  --red-ink: #ffffff;
  --line: #2e2e34;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --font-head: "Barlow Condensed", "Barlow Condensed Fallback", "Oswald", "Arial Narrow", Impact, system-ui, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1100px;
  --gutter: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 0 0 .4em; }
h1, .h1 { font-size: clamp(2.6rem, 11vw, 6rem); }
h2, .h2 { font-size: clamp(2rem, 7vw, 3.4rem); }
h3, .h3 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius); border: 2px solid transparent; background: var(--red); color: var(--red-ink); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { background: var(--red-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; border-color: var(--ink-3); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.04); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.field { display: grid; gap: .35em; margin-bottom: 1em; }
.field label { font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.input, input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=date], select, textarea { width: 100%; min-height: 48px; padding: .6em .8em; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); outline: none; }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224,39,27,.25); }
textarea { min-height: 110px; resize: vertical; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 20px; }
.chip { display: inline-block; padding: .25em .7em; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); font-size: .85rem; font-weight: 600; }
.chip.red { background: rgba(224,39,27,.18); color: var(--red-2); }
.chip.ok { background: rgba(40,180,99,.18); color: #5fd48a; }
.chip.warn { background: rgba(255,170,0,.16); color: #ffc247; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter); background: rgba(18,18,20,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand b { color: var(--red); }
.lang { background: transparent; border: 1px solid var(--line); color: var(--ink-2); border-radius: 8px; min-height: 36px; padding: 0 .7em; font-weight: 700; cursor: pointer; }
.lang:hover { color: var(--ink); border-color: var(--ink-3); }
.alert { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.alert.error { border-color: rgba(224,39,27,.6); background: rgba(224,39,27,.12); }
.alert.ok { border-color: rgba(40,180,99,.5); background: rgba(40,180,99,.12); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .55em .5em; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink-3); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
footer.site { padding: 40px var(--gutter) calc(90px + var(--safe-b)); color: var(--ink-2); border-top: 1px solid var(--line); font-size: .95rem; }
footer.site a { color: var(--ink); }

/* ---------- Home (body.home: the booking flow on "/") and /juego/ (body.home.juego). Phone first, one column. ---------- */
.home { --maxw: 640px; }
.rumbo:empty { display: none; }
.home [hidden] { display: none !important; }
.home :focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
.home .skip { position: absolute; left: 8px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--red); color: var(--red-ink); font-weight: 700; text-decoration: none; }
.home .skip:focus { top: 8px; }

/* top bar */
.home-top { padding-block: 8px; }
.home .brand-mark { width: 32px; height: 32px; border-radius: 7px; }
.home .brand span { white-space: nowrap; }
.home .top-actions { display: flex; align-items: center; gap: 8px; }
.home .icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.home .icon-btn:hover { border-color: var(--ink-3); }

/* intro card: what you're booking and what it costs */
.home .intro { margin-top: 16px; margin-bottom: 40px; padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0; }
.home .intro-title { margin: 0 0 .3em; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: clamp(1.55rem, 7vw, 2.1rem); line-height: 1; letter-spacing: .01em; }
.home .intro-p { margin: 0; color: var(--ink-2); }
.home .intro .have { margin: 12px 0 0; padding-top: 10px; }

/* the flow sits between two spark dividers; the progress bar clears the sparks above it */
.home .flowbar { padding-top: 40px; }
.flow-page .segments { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* sparks divider: a red hairline; sparks.js lays a canvas over it (nothing with reduced motion / Save-Data) */
.home .sparks { position: relative; height: 72px; margin: -36px 0; pointer-events: none; z-index: 1; }
.home .sparks::before { content: ""; position: absolute; left: 0; right: 0; top: 70%; height: 1px; background: linear-gradient(90deg, rgba(224,39,27,0), rgba(224,39,27,.65) 18%, rgba(224,39,27,.65) 82%, rgba(224,39,27,0)); }
.home .sparks canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* compact footer: hours, address, WhatsApp, the game, legal */
.home-foot { padding: 52px 0 calc(32px + var(--safe-b)); }
.home .foot-grid { display: grid; gap: 28px; }
.home .foot-h { font-size: 1.4rem; margin-bottom: .5em; color: var(--ink); }
.home .open-status { display: inline-flex; align-items: center; gap: .6em; margin: 0 0 10px; padding: .4em .9em .4em .7em; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,18,20,.7); font-weight: 600; font-size: .95rem; color: var(--ink); }
.home .open-status .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; }
.home .open-status.is-open .dot { border-color: var(--red-2); background: var(--red-2); box-shadow: 0 0 0 3px rgba(255,59,46,.18), 0 0 12px 2px rgba(255,59,46,.7); }
/* keep the light's line reserved until site.js fills it, so the hours table doesn't move */
.home .open-status[hidden] { display: inline-flex !important; visibility: hidden; }
.home .open-status[hidden]::after { content: "\00a0"; }
.home .hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.home .hours th, .home .hours td { padding: .55em 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.home .hours th { color: var(--ink-2); }
.home .hours td { text-align: right; font-variant-numeric: tabular-nums; }
.home .hours tr.today th, .home .hours tr.today td { color: var(--ink); font-weight: 700; }
.home .hours tr.today th::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--red); }
.home .foot-contact { font-style: normal; display: grid; justify-items: start; gap: 2px; }
.home .addr { margin: 0 0 6px; color: var(--ink); }
.home .contact-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 600; }
.home .contact-link:hover span { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.home .game-link { justify-self: start; display: inline-flex; align-items: center; min-height: 48px; padding: .5em 1.1em; border: 2px solid var(--ink-3); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; }
.home .game-link:hover { border-color: var(--red); }
.home .rotulo { display: inline-grid; justify-items: start; margin: 0; padding: 10px 16px 12px; border-radius: 6px; background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--red); font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .9; transform: rotate(-1.5deg); }
.home .rotulo-top { font-size: 1.1rem; letter-spacing: .12em; }
.home .rotulo-main { font-size: 2.6rem; color: #c21d12; letter-spacing: .01em; }
.home .rotulo-sub { font-size: .85rem; letter-spacing: .06em; margin-top: 4px; }
.home .foot-city { margin: 12px 0 4px; color: var(--ink-2); }
.home .foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.home .foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration-color: var(--ink-3); text-underline-offset: 4px; }
.home .foot-links .admin-link { color: var(--ink-2); font-size: .85rem; }

/* /juego/: the ride on its own page */
.juego .juego-head { padding: 24px 0 8px; }
.juego .juego-head h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: .92; margin-bottom: .2em; }
.juego .juego-head p { color: var(--ink-2); margin: 0; }
.juego .rumbo { margin: 16px 0 0; }
.juego .juego-back { padding: 28px 0 48px; }
.step h1:focus { outline: none; }
.home .game-link { gap: .5em; }
.home .foot-sign { display: block; width: min(240px, 60vw); height: auto; border-radius: 6px; }
[data-lang-toggle][hidden] { display: none !important; }
