/* Pinto Racer v2 — Mayor Pinto's Casino "Night Room" game page (pinto-racer-v2, 25 Oct 2026). PRESENTATION ONLY.
   Built on the approved Pantry Pop v2 design system (release-packages/pantry-pop-v2/DESIGN-SYSTEM.txt): the same --pp-*
   tokens (copied, same names and values), the cabinet, top bar, tools, theme segment, ready card, result card, how-to,
   folds and motion rules. Loaded only by bean-machine/racer.html (body.pr2-page), after beanville.css and casino-skin.css.
   Rules that must beat Beanville's !important consistency layer use "body.pr2-page.cas-skin main.bm-wrap.pr2" + !important. */

@font-face { font-family: "Cormorant Garamond"; src: url("/css/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ── tokens: Dark (the Night Room, default) — identical to pantry-pop-v2.css ── */
body.pr2-page {
  --pp-page: radial-gradient(1100px 620px at 85% -10%, #3b1a6b66, transparent 60%), radial-gradient(900px 520px at -5% 45%, #2a0f4a44, transparent 60%), #0b0614;
  --pp-text: #f6eedf; --pp-muted: #c9bce0; --pp-gold: #e2b955; --pp-gold-2: #f6d98b; --pp-gold-ink: #2a1a05;
  --pp-panel: #160c2a; --pp-panel-2: #1f1240; --pp-glass: #120a22d9; --pp-rim: #e2b95566; --pp-rim-strong: #e2b955;
  --pp-cab: linear-gradient(180deg, #2b1452 0%, #1a0d33 55%, #150b28 100%);
  --pp-well: radial-gradient(120% 90% at 50% 0%, #3a1d6e, #1d0f3a 70%);
  --pp-bulb: #ffd978; --pp-bulb-off: #8a6a2a; --pp-glow: #8f5bff55;
  --pp-play: linear-gradient(180deg, #f6d98b, #e2b955); --pp-play-ink: #2a1a05; --pp-play-glow: #e2b95566;
  --pp-ok: #5ee39b; --pp-bad: #ff9a90;
  --pp-logo: "Bagel Fat One", "Cormorant Garamond", Georgia, serif;
  --pp-display: "Cormorant Garamond", Georgia, serif; --pp-body: "Outfit", system-ui, sans-serif; --pp-num: "JetBrains Mono", ui-monospace, monospace;
  --pp-r: 18px; --pp-r-lg: 24px; --pp-gap: 12px; --pp-tap: 44px;
  --pp-fast: .14s; --pp-mid: .26s; --pp-slow: .5s; --pp-ease: cubic-bezier(.2, .9, .3, 1.2);
  /* the road: as tall as the screen allows under the site header and the cabinet's top bar */
  --pr-road-h: clamp(440px, calc(100svh - 190px), 700px);
}
body.pr2-page[data-theme="light"] {
  --pp-page: radial-gradient(1000px 520px at 85% -10%, #e9dcff, transparent 60%), radial-gradient(800px 420px at -5% 50%, #f7e7c4, transparent 60%), #f6eedf;
  --pp-text: #1c1033; --pp-muted: #4f3f6b; --pp-gold: #8a6416; --pp-gold-2: #6e4f0e; --pp-gold-ink: #fffaf0;
  --pp-panel: #fffaf0; --pp-panel-2: #f1e4c9; --pp-glass: #fffaf0e6; --pp-rim: #c9a24a99; --pp-rim-strong: #b98a2e;
  --pp-cab: linear-gradient(180deg, #fffaf0, #f6ead2);
  --pp-well: radial-gradient(120% 90% at 50% 0%, #4b2690, #2b1452 70%);
  --pp-bulb: #f0b93a; --pp-bulb-off: #d9c49a; --pp-glow: #7a45f022;
  --pp-play: linear-gradient(180deg, #6f3fe0, #5a2fc4); --pp-play-ink: #ffffff; --pp-play-glow: #7a45f040;
  --pp-ok: #1f7a4d; --pp-bad: #b3261e;
}
body.pr2-page[data-theme="dood"] {
  --pp-page: radial-gradient(900px 520px at 85% -10%, rgba(0,255,160,.14), transparent 60%), #000;
  --pp-text: #effff8; --pp-muted: #a9dcc7; --pp-gold: #00ffa0; --pp-gold-2: #ffe29a; --pp-gold-ink: #00140c;
  --pp-panel: #0b0b0b; --pp-panel-2: #101a14; --pp-glass: #050a07e6; --pp-rim: rgba(0,255,160,.45); --pp-rim-strong: #00ffa0;
  --pp-cab: linear-gradient(180deg, #0b2a1f, #031109);
  --pp-well: radial-gradient(120% 90% at 50% 0%, #0d3a2a, #02100a 70%);
  --pp-bulb: #00ffa0; --pp-bulb-off: #0b4a33; --pp-glow: rgba(0,255,160,.28);
  --pp-play: linear-gradient(180deg, #5dffc4, #00e28d); --pp-play-ink: #00140c; --pp-play-glow: rgba(0,255,160,.35);
  --pp-logo: "Permanent Marker", "Bagel Fat One", sans-serif;
}

/* ── page frame (as Pantry Pop v2) ── */
body.bm-page.cas-skin.pr2-page { background: var(--pp-page); background-attachment: fixed; color: var(--pp-text); overscroll-behavior-y: none; }
body.pr2-page .pr2 { padding-bottom: calc(24px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
body.pr2-page .bv-top, body.pr2-page .bv-footbar, body.pr2-page .bm-tabs, body.pr2-page .bv-more { display: none !important; }
body.pr2-page .csn { position: relative; margin-bottom: 10px; } /* not sticky here: the road gets the screen */
body.pr2-page .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.pr2-page .pr2-kicker { margin: 0; font: 600 11.5px/1.3 var(--pp-body); letter-spacing: .14em; text-transform: uppercase; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-kicker { color: var(--pp-gold) !important; }
body.pr2-page.cas-skin main.bm-wrap.pr2 h1, body.pr2-page.cas-skin main.bm-wrap.pr2 h2 { color: var(--pp-gold-2) !important; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .hint { color: var(--pp-muted) !important; }
body.pr2-page.cas-skin main.bm-wrap.pr2 a:not(.btn) { color: var(--pp-gold-2) !important; }

/* ── the cabinet ── */
.pr2-stage { position: relative; display: grid; gap: 10px; padding: 12px; border-radius: var(--pp-r-lg); background: var(--pp-cab); border: 2px solid var(--pp-rim-strong); box-shadow: 0 24px 60px #0008, 0 0 50px var(--pp-glow), inset 0 1px 0 #ffffff14; scroll-margin-top: 8px; }
body.pr2-page[data-theme="light"] .pr2-stage { box-shadow: 0 18px 40px #4b269022, 0 0 0 1px #fff inset; }
.pr2-stage::before { content: ""; position: absolute; left: 18px; right: 18px; top: -5px; height: 8px; border-radius: 8px; background: radial-gradient(circle, var(--pp-bulb) 2.2px, transparent 2.8px) 0 50% / 16px 8px repeat-x; filter: drop-shadow(0 0 4px var(--pp-bulb)); animation: pr2Bulbs 1.6s steps(2) infinite; z-index: 1; pointer-events: none; }
@keyframes pr2Bulbs { 50% { background-position: 8px 50%; } }

.pr2-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand status" "tools tools"; gap: 8px 10px; align-items: center; }
.pr2-brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; }
body.pr2-page .pr2-logo { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--pp-rim-strong); object-fit: cover; flex: none; box-shadow: 0 0 18px var(--pp-glow); }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-brand h1 { margin: 0; font: 400 clamp(26px, 6.4vw, 40px)/1 var(--pp-logo) !important; color: var(--pp-gold-2) !important; letter-spacing: .01em; text-shadow: 0 2px 0 #00000055, 0 0 18px var(--pp-glow); white-space: nowrap; }
body.pr2-page[data-theme="light"].cas-skin main.bm-wrap.pr2 .pr2-brand h1 { color: #4b2690 !important; text-shadow: none; }
.pr2-status { grid-area: status; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pr2-tries { font: 600 12.5px/1.2 var(--pp-body); color: var(--pp-muted); text-align: right; }
.pr2-pips { display: inline-flex; gap: 4px; }
.pr2-pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--pp-bulb-off); box-shadow: inset 0 0 0 1px #0004; }
.pr2-pips i.on { background: var(--pp-bulb); box-shadow: 0 0 8px var(--pp-bulb); }
.pr2-tix:empty { display: none; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-tix .pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--pp-rim); background: var(--pp-panel-2); color: var(--pp-text) !important; font: 600 13px var(--pp-body); text-decoration: none; }
.pr2-tools { grid-area: tools; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pr2-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 40px; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--pp-rim); background: transparent; color: var(--pp-text); font: 600 13.5px var(--pp-body); cursor: pointer; }
.pr2-tool:hover { background: #ffffff10; }
.pr2-tool[aria-pressed="false"] { color: var(--pp-muted); }
.pr2-tool .v { font-weight: 700; color: var(--pp-gold-2); }
.pr2-tool[aria-pressed="false"] .v { color: var(--pp-muted); }
.pr2-tool:focus-visible, .pr2-theme button:focus-visible, .pr2-steer-btn:focus-visible, .pr2-fold > summary:focus-visible { outline: 3px solid var(--pp-gold-2); outline-offset: 2px; }
#pr2Help { font: 700 18px var(--pp-display); padding: 0; width: 40px; }
.pr2-theme { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--pp-rim); background: var(--pp-panel-2); margin-left: auto; }
.pr2-theme button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--pp-muted); font: 600 13px var(--pp-body); cursor: pointer; }
.pr2-theme button[aria-pressed="true"] { background: var(--pp-play); color: var(--pp-play-ink); }

/* ── the road (the game's "board": gold rim, well colour behind the canvas) ── */
.pr2-road { position: relative; height: var(--pr-road-h); border-radius: 20px; overflow: hidden; isolation: isolate; background: var(--pp-well); border: 2px solid var(--pp-rim-strong); box-shadow: 0 0 0 4px #00000033, 0 0 40px var(--pp-glow), inset 0 0 30px #0007; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; overscroll-behavior: contain; scroll-margin-top: 76px; }
.pr2-road canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
/* beanville.css sizes the old 300x480 #road; the new road fills its frame */
body.pr2-page .pr2-road #road { max-width: none !important; max-height: none !important; width: 100% !important; height: 100% !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; aspect-ratio: auto !important; }
/* while driving the road keeps every touch (a site-wide rule sets manipulation, which lets the browser cancel a sideways swipe) */
body.pr2-page .pr2-road.live, body.pr2-page .pr2-road.live #road { touch-action: none !important; cursor: pointer; }

/* HUD over the road: progress with the three prize markers, then chips (numbers in --pp-num, as Pantry Pop's stats) */
.pr2-road:has(> .pr2-panel:not([hidden])) .pr2-hud { visibility: hidden; } /* a card over the road hides the HUD behind it */
.pr2-hud { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; display: grid; gap: 8px; pointer-events: none; }
.pr2-prog { position: relative; padding: 0 2px 14px; }
.pr2-bar { position: relative; height: 12px; border-radius: 999px; background: #00000059; border: 1px solid var(--pp-rim-strong); box-shadow: inset 0 2px 4px #0006; overflow: hidden; }
.pr2-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #5ee39b, #f6d98b); box-shadow: 0 0 10px #5ee39b88; transition: width .18s ease-out; }
.pr2-marks { position: absolute; left: 2px; right: 2px; top: 0; height: 100%; pointer-events: none; }
.pr2-mark { position: absolute; top: -3px; width: 0; height: 18px; border-left: 2px solid #fff6e6cc; }
.pr2-mark i { position: absolute; top: 16px; right: -1px; transform: translateX(50%); font: 700 10.5px/1 var(--pp-num); font-style: normal; color: #fff6e6; text-shadow: 0 1px 0 #000, 0 0 4px #000; white-space: nowrap; }
.pr2-mark:last-child i { transform: none; right: 0; }
.pr2-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pr2-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 3px 11px; border-radius: 14px; background: #0b0614c7; border: 1px solid #ffffff2e; color: #f6eedf; font: 600 13px/1 var(--pp-body); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pr2-chip b { font: 700 17px/1 var(--pp-num); color: #f6d98b; }
.pr2-chip small { font: 600 10.5px/1 var(--pp-body); color: #c9bce0; text-transform: uppercase; letter-spacing: .12em; }
.pr2-chip.lead { border-color: #e2b955; box-shadow: 0 0 16px #8f5bff55; }
.pr2-chip.tix { border-color: #e2b95599; }
.pr2-chip.tix.practice b { color: #c9bce0; }
.pr2-chip.shield { border-color: #ffd978; box-shadow: 0 0 12px #ffd97866; }

/* banners and the countdown (the game's big moments: --pp-logo) */
.pr2-banner { position: absolute; left: 50%; top: 96px; z-index: 3; transform: translate(-50%, -12px); opacity: 0; pointer-events: none; max-width: calc(100% - 24px); padding: 9px 16px; border-radius: 999px; font: 400 clamp(15px, 2.6vw, 19px)/1.15 var(--pp-logo); text-align: center; color: var(--pp-play-ink); background: var(--pp-play); box-shadow: 0 6px 18px var(--pp-play-glow), 0 0 0 2px #00000040; transition: opacity var(--pp-mid), transform var(--pp-mid) var(--pp-ease); }
.pr2-banner.violet { color: #fff; background: linear-gradient(180deg, #a77bff, #7a45f0); }
.pr2-banner.show { opacity: 1; transform: translate(-50%, 0); }
.pr2-count { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; opacity: 0; font: 400 clamp(72px, 18vw, 140px)/1 var(--pp-logo); color: #f6d98b; text-shadow: 0 5px 0 #2a1a05, 0 0 30px #e2b95599; -webkit-text-stroke: 3px #2a1a05; }
.pr2-count.show { opacity: 1; animation: pr2Pop .45s var(--pp-ease); }
.pr2-count.go { color: #5ee39b; text-shadow: 0 5px 0 #2a1a05, 0 0 30px #5ee39b99; }
@keyframes pr2Pop { from { transform: scale(.4); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1); } }

/* steering buttons in the thumb corners (44px+ targets; feedback is colour only: no moving controls) */
.pr2-steer { position: absolute; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 3; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.pr2-steer[hidden] { display: none; }
.pr2-steer-btn { pointer-events: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; touch-action: none; background: #160c2ab3; color: #f6d98b; border: 2px solid #e2b955cc; box-shadow: 0 4px 0 #05020a; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: background var(--pp-fast), color var(--pp-fast); }
.pr2-steer-btn svg { width: 30px; height: 30px; }
.pr2-steer-btn.hit { animation: pr2Hit .18s ease-out; }
@keyframes pr2Hit { 40% { background: #e2b955; color: #2a1a05; } }
@media (pointer: fine) { .pr2-steer-btn { width: 56px; height: 56px; opacity: .85; } }

/* ── panels over the road: ready card, sending, retry, result ── */
.pr2-panel { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 64px 10px 10px; overflow: auto; overscroll-behavior: contain; background: linear-gradient(180deg, #0b061433, #0b0614a6); }
.pr2-panel[hidden] { display: none; }
.pr2-readycard { position: relative; z-index: 1; width: min(100% - 8px, 440px); display: grid; justify-items: center; gap: 8px; padding: 18px 16px 16px; border-radius: var(--pp-r-lg); background: var(--pp-glass); border: 1px solid var(--pp-rim-strong); box-shadow: 0 20px 50px #000a, 0 0 40px var(--pp-glow); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; color: var(--pp-text); }
.pr2-readycard.small { width: min(100% - 8px, 360px); }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-readycard h2 { margin: 0; font: 700 clamp(26px, 6.4vw, 36px)/1.04 var(--pp-display) !important; }
.pr2-goalline { margin: 0; font: 600 15.5px/1.35 var(--pp-body); }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-goalline { color: var(--pp-text) !important; }
.pr2-readymeta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; }
.pr2-readymeta span { padding: 4px 10px; border-radius: 999px; background: var(--pp-panel-2); border: 1px solid var(--pp-rim); font: 600 13px var(--pp-body); }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-readymeta span { color: var(--pp-text) !important; }
/* the ONE primary action */
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-go, body.pr2-page.cas-skin main.bm-wrap.pr2 #prAgain { width: 100%; max-width: 340px; min-height: 58px; margin-top: 4px; font: 700 18px/1.1 var(--pp-body) !important; background: var(--pp-play) !important; color: var(--pp-play-ink) !important; border: 0 !important; box-shadow: 0 8px 24px var(--pp-play-glow) !important; }
body.pr2-page.cas-skin main.bm-wrap.pr2 #rcGo:not(:disabled) { animation: pr2Ready 2.4s ease-in-out infinite; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-go:disabled, body.pr2-page.cas-skin main.bm-wrap.pr2 #prAgain:disabled { background: var(--pp-panel-2) !important; color: var(--pp-muted) !important; border: 1px solid var(--pp-rim) !important; box-shadow: none !important; animation: none; }
@keyframes pr2Ready { 50% { box-shadow: 0 10px 32px var(--pp-play-glow), 0 0 0 4px var(--pp-play-glow); } }
.pr2-go-sub { font-size: 12.5px; color: var(--pp-muted); margin-top: -2px; }
.pr2-go-sub:empty { display: none; }
.pr2-readycard .bm-why { color: var(--pp-muted); font-size: 13px; }
.pr2-readycard #rcGate:not([hidden]) { width: 100%; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-readycard .bm-gate { margin: 0; text-align: left; border-radius: 14px; background: var(--pp-panel-2); border: 1px solid var(--pp-rim); color: var(--pp-text); padding: 10px 12px; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-readycard .bm-gate p { margin: 0 0 8px; color: var(--pp-text) !important; font-size: 14px; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-readycard .bm-gate .muted { color: var(--pp-muted) !important; }
.pr2-start-msg { width: 100%; margin: 0; padding: 9px 12px; border-radius: 14px; text-align: left; font-size: 13.5px; line-height: 1.35; color: var(--pp-text); background: var(--pp-panel-2); border: 1px solid var(--pp-rim); border-left: 5px solid var(--pp-bad); }
.pr2-as { width: 100%; display: grid; gap: 6px; justify-items: center; }
.pr2-driver { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 14px; border: 1px solid var(--pp-rim); background: var(--pp-panel-2); text-align: left; }
body.pr2-page .pr2-driver img { width: 44px !important; height: 62px !important; max-width: none; object-fit: contain; flex: none; }
.pr2-driver b { display: block; font: 400 18px/1.15 var(--pp-logo); color: var(--pp-gold-2); }
.pr2-driver span { display: block; font-size: 12.5px; color: var(--pp-muted); }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-practice { width: 100%; max-width: 340px; min-height: var(--pp-tap); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 14px; line-height: 1.1; color: var(--pp-text) !important; border: 1px solid var(--pp-rim-strong) !important; background: transparent !important; }
.pr2-practice small { font-weight: 500; font-size: 11.5px; color: var(--pp-muted); }
.pr2-sending { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.pr2-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--pp-rim); border-top-color: var(--pp-rim-strong); animation: pr2Spin .8s linear infinite; }
@keyframes pr2Spin { to { transform: rotate(360deg); } }

/* the result card (Pantry Pop's .pp2-res: kicker, headline, 3 stat chips, sentence, Play next + secondary) */
.pr2-over { background: #0b0614b8; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding-top: 70px; }
body.pr2-page[data-theme="light"] .pr2-over { background: #2b1452a6; }
.pr2-over:not([hidden]) { animation: pr2Fade var(--pp-mid) ease both; }
@keyframes pr2Fade { from { opacity: 0; } }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-res { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: center; gap: 6px; width: min(100%, 380px); padding: 18px 16px 14px; border-radius: 20px; background: var(--pp-panel); border: 2px solid var(--pp-rim-strong); box-shadow: 0 20px 50px #000b, 0 0 40px var(--pp-glow); color: var(--pp-text); text-align: center; animation: pr2Card var(--pp-slow) var(--pp-ease) both; }
@keyframes pr2Card { from { transform: scale(.82) translateY(10px); opacity: 0; } }
.pr2-res-mayor { position: absolute; left: -10px; top: -26px; width: 70px; height: auto; pointer-events: none; filter: drop-shadow(0 6px 10px #0008); }
.pr2-res-icon { font-size: 34px; line-height: 1; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-res-h { margin: 0; font: 400 clamp(24px, 6.4vw, 34px)/1.05 var(--pp-logo) !important; color: var(--pp-gold-2) !important; text-shadow: 0 2px 0 #0006; outline: none; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-res.lose .pr2-res-h { color: var(--pp-text) !important; }
.pr2-res-road { position: relative; width: 100%; padding-bottom: 18px; }
.pr2-res-road .pr2-bar { background: #00000040; border-color: var(--pp-rim); }
body.pr2-page[data-theme="light"] .pr2-res-road .pr2-bar { background: #e9dcc0; }
.pr2-res-road .pr2-mark { border-left-color: var(--pp-rim); }
.pr2-res-road .pr2-mark i { color: var(--pp-muted); text-shadow: none; }
.pr2-res-road .pr2-mark.got i { color: var(--pp-gold-2); }
.pr2-res-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 2px 0; }
.pr2-res-stats div { padding: 6px 4px; border-radius: 12px; background: var(--pp-panel-2); border: 1px solid var(--pp-rim); }
.pr2-res-stats dt { font: 600 10px var(--pp-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pp-muted); }
.pr2-res-stats dd { margin: 2px 0 0; font: 700 17px var(--pp-num); color: var(--pp-text); }
.pr2-res-stats .tix { border-color: var(--pp-rim-strong); }
.pr2-res-stats .tix dd { color: var(--pp-gold-2); }
.pr2-res-stats .tix.practice { border-style: dashed; border-color: var(--pp-rim); }
.pr2-res-stats .tix.practice dd { color: var(--pp-muted); }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-res small { color: var(--pp-muted); font-size: 13px; line-height: 1.35; }
.pr2-over-actions { display: grid; justify-items: center; gap: 8px; width: 100%; }
body.pr2-page.cas-skin main.bm-wrap.pr2 #prPractice2 { min-height: var(--pp-tap); background: var(--pp-panel) !important; color: var(--pp-text) !important; border: 1px solid var(--pp-rim-strong) !important; }
body.pr2-page .pr2-over .bm-why { color: var(--pp-muted); font-size: 13px; }

/* Mayor Pinto under the road (Pantry Pop's .pp-host) */
body.pr2-page .pr2-host { margin: 0; align-items: center; gap: 10px; }
body.pr2-page .pr2-host img { width: 44px; height: auto; flex: none; }
body.pr2-page .pr2-host .bv-bubble { min-height: 0; padding: 8px 12px; border-radius: 16px; border: 1px solid var(--pp-rim-strong); box-shadow: none; font-size: 14px; background: #f6eedf; color: #1c1033; }
body.pr2-page .pr2-host .bv-bubble::before { left: -9px; bottom: 50%; transform: translateY(50%); border-width: 8px; border-right-color: var(--pp-rim-strong); }
body.pr2-page .pr2-host .bv-bubble::after { left: -7px; bottom: 50%; transform: translateY(50%); border-width: 7px; border-right-color: #f6eedf; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-host .who { color: #5b4a77; font-size: 10.5px; margin: 0; }
#rcMsg:empty { display: none; }

/* ── how-to ── */
.pr2-howto { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: #0b0614d0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pr2-howto[hidden] { display: none; }
.pr2-howto-card { width: min(100%, 460px); display: grid; gap: 8px; padding: 18px; border-radius: var(--pp-r-lg); background: var(--pp-panel); border: 2px solid var(--pp-rim-strong); box-shadow: 0 20px 50px #000b; animation: pr2Card var(--pp-slow) var(--pp-ease) both; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-howto-card h2 { margin: 0; font: 700 28px/1.05 var(--pp-display) !important; }
.pr2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.pr2-steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; align-items: start; font-size: 14px; line-height: 1.4; color: var(--pp-text); }
.pr2-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-play); color: var(--pp-play-ink); font: 700 14px var(--pp-body); }
.pr2-steps b { color: var(--pp-gold-2); }
.pr2-steps span { color: var(--pp-text); }
body.pr2-page.cas-skin main.bm-wrap.pr2 #pr2HowToClose { justify-self: center; min-width: 160px; background: var(--pp-play) !important; color: var(--pp-play-ink) !important; border: 0 !important; }

/* ── below the cabinet ── */
.pr2-info { display: grid; gap: 10px; margin-top: 14px; }
.pr2-fold { border-radius: var(--pp-r); border: 1px solid var(--pp-rim); background: var(--pp-panel); }
.pr2-fold > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; cursor: pointer; color: var(--pp-text); }
.pr2-fold > summary::-webkit-details-marker { display: none; }
.pr2-fold > summary::after { content: "+"; color: var(--pp-gold-2); font: 600 22px var(--pp-body); }
.pr2-fold[open] > summary::after { content: "–"; }
.pr2-fold > summary b { font: 700 20px var(--pp-display); color: var(--pp-gold-2); margin-right: 6px; }
.pr2-fold > summary small { color: var(--pp-muted); font-size: 13px; }
.pr2-fold > :not(summary) { margin: 0 16px 14px; }
.pr2-prizes { list-style: none; padding: 0; display: grid; gap: 6px; }
.pr2-prizes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 12px 9px 14px; border-radius: 14px; background: var(--pp-panel-2); border: 1px solid var(--pp-rim); border-left: 6px solid var(--pp-rim-strong); color: var(--pp-text); }
.pr2-prizes li.z0 { border-left-color: #e0703a; } .pr2-prizes li.z1 { border-left-color: #e2489a; } .pr2-prizes li.z2 { border-left-color: #5ee39b; } .pr2-prizes li.zb { border-left-color: #e8c48e; }
.pr2-prizes .nm { font-weight: 700; }
.pr2-prizes .rw { grid-row: 2; font-size: 12.5px; color: var(--pp-muted); }
.pr2-prizes b { grid-row: span 2; font: 700 17px/1 var(--pp-num); color: var(--pp-gold-2); }
body.pr2-page.cas-skin[data-theme="light"] main.bm-wrap.pr2 .bm-badge.ok { color: #14593a !important; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-wallet { padding: 14px 16px; border-radius: var(--pp-r); background: var(--pp-panel); border: 1px solid var(--pp-rim); box-shadow: none; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-wallet h2 { font: 700 20px var(--pp-display) !important; }
.pr2-netrow { display: flex; justify-content: center; }
body.pr2-page .pr2-netrow .bm-net { margin: 0; font-size: 12px; padding: 6px 12px; border-radius: 999px; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .tix-toast { background: var(--pp-play); color: var(--pp-play-ink) !important; border: 0; box-shadow: 0 10px 30px #000a; }
body.pr2-page.cas-skin main.bm-wrap.pr2 .tix-toast b { color: var(--pp-play-ink) !important; }

/* ── wider screens ── */
@media (min-width: 700px) {
  .pr2-road { scroll-margin-top: 118px; } /* the site header is taller here */
  .pr2-res-mayor { left: -34px; top: -44px; width: 80px; }
  .pr2-stage { padding: 16px 18px 18px; gap: 12px; }
  .pr2-top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand status tools"; }
  .pr2-tools { flex-wrap: nowrap; }
  body.pr2-page { --pr-road-h: clamp(480px, calc(100svh - 230px), 680px); }
}
@media (max-width: 559px) {
  .pr2-tool .t, .pr2-tool .v { display: none; }
  #pr2Sound, #pr2Motion { font-size: 0; gap: 0; padding: 0; width: 40px; }
  #pr2Sound span[aria-hidden], #pr2Motion span[aria-hidden] { font-size: 16px; }
  .pr2-theme button { padding: 0 10px; }
  .pr2-tries { font-size: 11.5px; max-width: 110px; }
  .pr2-stage { margin: 0 -10px; padding: 8px; }
  .pr2-road { border-radius: 16px; }
  .pr2-chip { min-height: 30px; padding: 3px 9px; font-size: 12px; }
  .pr2-chip b { font-size: 15px; }
  .pr2-banner { top: 88px; }
  .pr2-res-mayor { width: 56px; left: -6px; top: -22px; }
  .pr2-res-stats dd { font-size: 15px; }
  body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-res { padding: 14px 12px 12px; }
}
@media (max-width: 380px) { .pr2-chip small { display: none; } }

/* ── motion rules: prefers-reduced-motion OR the casino Motion switch (body.still) stop every loop and pop ── */
@media (prefers-reduced-motion: reduce) {
  .pr2-stage::before, .pr2-count.show, .pr2-steer-btn.hit, .pr2-over:not([hidden]), .pr2-spin, .pr2-howto-card { animation: none !important; }
  body.pr2-page.cas-skin main.bm-wrap.pr2 #rcGo, body.pr2-page.cas-skin main.bm-wrap.pr2 .pr2-res { animation: none !important; }
  .pr2-banner { transition: opacity .2s; transform: translate(-50%, 0); }
  .pr2-bar i { transition: none; }
}
body.pr2-page.still .pr2-stage::before, body.pr2-page.still .pr2-count.show, body.pr2-page.still .pr2-steer-btn.hit, body.pr2-page.still .pr2-over:not([hidden]), body.pr2-page.still .pr2-howto-card { animation: none !important; }
body.pr2-page.still.cas-skin main.bm-wrap.pr2 #rcGo, body.pr2-page.still.cas-skin main.bm-wrap.pr2 .pr2-res { animation: none !important; }
body.pr2-page.still .pr2-banner { transition: opacity .2s; transform: translate(-50%, 0); }
body.pr2-page.still .pr2-bar i { transition: none; }

/* ── racer-mobile-v1 (26 Oct 2026, G on his phone: "I cannot use my finger to move the screen up and down") ──
   Before a run, the start card, result card and retry card sat inside the road with their own scroll box, and that box
   kept every swipe (overscroll contain), so one finger could not scroll the page past the game. Now, whenever the road
   is not driving, the card sits in the page's own flow: the road grows to fit it and a swipe scrolls the page.
   While driving (.live) nothing changes: the road keeps every touch, as before. */
.pr2-road { overscroll-behavior: auto; }
.pr2-road.live { overscroll-behavior: contain; }
.pr2-road:not(.live) { height: auto; min-height: var(--pr-road-h); }
.pr2-road:not(.live) > .pr2-panel:not([hidden]) { position: relative; inset: auto; min-height: var(--pr-road-h); overflow: visible; overscroll-behavior: auto; }
.pr2-road:not(.live) > .pr2-panel:not([hidden]) ~ .pr2-panel:not([hidden]) { position: absolute; inset: 0; }
/* a wallet message copied onto the start card (sign-in problems used to show only in the wallet card far below) */
.pr2-start-msg a { color: inherit; text-decoration: underline; }

/* ── Pinto Racer v3, the endless road (racer-endless-v1, 11 Nov 2026): score chip, power-up chips, a full bar once the
      tickets are banked, four result stats, the endless line in the prize list ── */
.pr2-chip.score { border-color: #7cc7ff99; }
.pr2-chip.score b { color: #fff; }
.pr2-chip[hidden], .pr3-pows[hidden] { display: none !important; }
.pr3-pows { display: inline-flex; gap: 4px; align-items: center; }
.pr3-pw { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 2px 8px; border-radius: 12px; background: #0b0614c7; border: 1.5px solid var(--pw, #ffd166); box-shadow: 0 0 10px color-mix(in srgb, var(--pw, #ffd166) 45%, transparent); color: #f6eedf; font: 700 13px/1 var(--pp-num, inherit); }
.pr3-pw > span { font: 700 13px/1 var(--pp-body, inherit); }
.pr3-pw b { color: var(--pw, #ffd166); font: 700 14px/1 var(--pp-num, inherit); }
.pr2-prog.banked .pr2-bar i { background: linear-gradient(90deg, #f6d98b, #ffd166); box-shadow: 0 0 14px #ffd16699; }
.pr2-res-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.pr2-res-stats .score { border-color: #7cc7ff88; }
.pr2-res-stats .score dd { color: #7cc7ff; }
body.pr2-page[data-theme="light"] .pr2-res-stats .score dd { color: #1f6fb2; }
.pr3-res-pows { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
.pr3-res-pows[hidden] { display: none; }
.pr2-prizes li.zs { border-left-color: #7cc7ff; }
