/* Learn to Drive — Clutch Yard stylesheet (self-hosted Barlow / Arabic / Cyrillic, desktop, mobile touch & RTL) */
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Barlow';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Barlow';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/vendor/fonts/barlow-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/vendor/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/vendor/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/vendor/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Sans Arabic';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/vendor/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format('woff2')}
@font-face{font-family:'Sofia Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/vendor/fonts/sofia-sans-cyrillic-400-normal.woff2) format('woff2')}
@font-face{font-family:'Sofia Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/vendor/fonts/sofia-sans-cyrillic-400-normal.woff2) format('woff2')}
@font-face{font-family:'Sofia Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/vendor/fonts/sofia-sans-cyrillic-600-normal.woff2) format('woff2')}
@font-face{font-family:'Sofia Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/vendor/fonts/sofia-sans-cyrillic-700-normal.woff2) format('woff2')}

:root {
  --blue: #0B4EA2;
  --yellow: #F7B500;
  --red: #C1121C;
  --white: #F4F5F0;
  --asphalt: #2B2F33;
  --asphalt-dk: #1C1F22;
  --ink: #111417;
  --glow: #7DDB9A;
  --post: #8b9299;
  --font: "DIN Alternate", Bahnschrift, "Barlow", "Arial Narrow", sans-serif;
  --f-xs: 12px; --f-s: 14px; --f-m: 17px; --f-l: 22px; --f-xl: clamp(26px, 3.2vw, 40px);
  --lane: min(1080px, calc(100vw - 32px));
  color-scheme: dark;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Barlow", sans-serif; }
html[lang="ru"] { --font: "Sofia Sans", "Barlow", sans-serif; }
html[lang="ar"] .caps, html[lang="ar"] .vms, html[lang="ar"] .headline-brand, html[lang="ar"] .tog, html[lang="ar"] .rbtn, html[lang="ar"] .btn, html[lang="ar"] .hud-exit, html[lang="ar"] .exit-t small, html[lang="ar"] .exit-st, html[lang="ar"] .num span, html[lang="ar"] .slip-kicker, html[lang="ar"] .stamp, html[lang="ar"] .paint, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
html[lang="ar"] .paint { transform: none; letter-spacing: 0; }
* { box-sizing: border-box; }
html { background: var(--asphalt); scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body { background: var(--asphalt); color: var(--white); font-family: var(--font); font-weight: 500; font-size: var(--f-m); line-height: 1.45; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; line-height: 1.08; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
kbd { font: inherit; font-size: 0.8em; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; opacity: 0.8; }

/* ── signs ── */
.sign { --panel: var(--blue); --rim: var(--white); --txt: var(--white); position: relative; background: var(--panel); color: var(--txt); border-radius: 16px; box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 6px var(--rim); overflow: hidden; }
.sign.plate { --panel: var(--white); --rim: var(--ink); --txt: var(--ink); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 6px var(--ink), 0 0 0 1px rgba(244,245,240,0.35); }
.sign.yplate { --panel: var(--yellow); --rim: var(--ink); --txt: var(--ink); box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 5px var(--ink); }
.sign::after { content: ""; position: absolute; inset: 0 -30%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.34) 50%, transparent 58%); transform: translateX(-110%); pointer-events: none; }
@media (hover: hover) { .sign:hover::after { animation: sweep 0.95s ease-out; } }
@keyframes sweep { to { transform: translateX(110%); } }
.caps { text-transform: uppercase; letter-spacing: 0.08em; }

/* ── hero ── */
.hero { height: 100svh; min-height: 580px; max-height: 1200px; display: flex; flex-direction: column; background: var(--asphalt-dk); }
.stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; outline-offset: -3px; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gantry { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px 0; pointer-events: none; }
.gantry > * { pointer-events: auto; }
.headline { display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 16px; max-width: min(44vw, 540px); transition: padding 0.4s ease; }
.shield { flex: none; display: grid; place-items: center; min-width: 46px; height: 34px; padding: 0 8px; background: var(--yellow); color: var(--ink); border-radius: 6px; box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 0 4px var(--ink); font-weight: 700; font-size: 18px; text-decoration: none; transition: transform 0.15s ease; }
.shield:hover { transform: scale(1.04); }
.headline-brand { display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.92; margin-bottom: 3px; }
.headline-brand a { color: var(--yellow); text-decoration: none; white-space: nowrap; }
.headline-brand a:hover { text-decoration: underline; }
.lang-sel { background: rgba(17,20,23,0.45); color: var(--white); border: 1.5px solid rgba(244,245,240,0.45); border-radius: 5px; padding: 1px 6px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; max-width: 100%; }
.lang-sel option { background: var(--asphalt-dk); color: var(--white); }
h1 { font-size: clamp(23px, 3.1vw, 44px); letter-spacing: 0.01em; transition: font-size 0.4s ease; }
h1 span { display: block; }
.sub { margin-top: 6px; font-size: clamp(13px, 1.2vw, 16px); max-width: 36ch; opacity: 0.95; overflow: hidden; max-height: 6em; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.4s ease; }
.hero.driving .headline { padding: 9px 16px 9px 12px; }
.hero.driving .headline-brand { display: none; }
.hero.driving h1 { font-size: 17px; }
.hero.driving h1 span { display: inline; }
.hero.driving .sub { max-height: 0; opacity: 0; margin: 0; }
.vms { justify-self: center; width: min(100%, 520px); height: 62px; overflow: hidden; line-height: 1.3; display: grid; place-items: center; text-align: center; padding: 8px 14px; background: #090a0b radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px) 0 0 / 4px 4px; border: 3px solid #30353a; border-radius: 8px; color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-size: clamp(12.5px, 1.3vw, 16.5px); font-weight: 600; text-shadow: 0 0 9px rgba(247,181,0,0.55); }
.vms.flick span { animation: flick 0.32s steps(3) 1; }
@keyframes flick { 0% { opacity: 0.1; } 50% { opacity: 0.6; } 100% { opacity: 1; } }
.toggles { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tog { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 11px; background: var(--white); color: var(--ink); border: 0; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 4px var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.tog:hover { background: #ffffff; }
.tog svg { width: 17px; height: 17px; flex: none; }
.tog[aria-pressed="true"] { background: var(--blue); color: var(--white); box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 4px var(--white); }
.tog[aria-pressed="false"] .waves { opacity: 0.25; }
.tog.invite { animation: invite 0.9s ease-in-out 3; }
.tog.tog-sim { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 0 4px var(--ink); }
.tog.tog-sim:hover { background: #ffc61a; }
@keyframes invite { 50% { background: var(--yellow); } }
.hud { position: absolute; left: 16px; top: 0; transform: translateY(var(--hud-y, 150px)); display: grid; gap: 2px; padding: 10px 16px 10px 14px; max-width: min(46vw, 420px); border-radius: 10px; transition: transform 0.4s ease; }
.hud-exit { font-size: var(--f-s); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.hud-goal { font-size: var(--f-s); opacity: 0.95; }
.nplate { display: inline-flex; align-items: stretch; height: 34px; background: var(--white); color: var(--ink); border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink); overflow: hidden; font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.nplate .eu { display: grid; place-items: end center; width: 22px; padding-bottom: 3px; background: var(--blue); color: var(--white); font-size: 9.5px; letter-spacing: 0; }
.nplate-text { display: grid; place-items: center; padding: 0 7px 0 8px; white-space: nowrap; }
.nplate-caret { display: grid; place-items: center; padding-right: 7px; font-size: 11px; opacity: 0.7; }
.nplate-pick { position: relative; cursor: pointer; }
.nplate-pick:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }
.plate-sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.nplate.is-be { color: #b91c1c; box-shadow: inset 0 0 0 2px #b91c1c; }
.nplate.is-uk { background: #f7c926; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.stallno { position: absolute; right: 16px; top: 0; transform: translateY(var(--no-y, 64px)); z-index: 3; }
.stallno.tick { animation: tick 0.5s ease; }
@keyframes tick { 30% { transform: translateY(calc(var(--no-y, 64px) - 6px)) rotate(-3deg); } }
.stall { position: absolute; left: 50%; top: 0; z-index: 4; transform: translate(-50%, var(--stall-y, 110px)) rotate(-2deg); display: grid; gap: 2px; padding: 14px 24px; text-align: center; max-width: min(88vw, 460px); border-radius: 10px; animation: drop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1); }
.stall strong { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: 0.02em; }
.stall span { font-size: var(--f-m); }
@keyframes drop { from { transform: translate(-50%, -140px) rotate(6deg); } }
[hidden] { display: none !important; }

/* report slip + 3D simulator funnel bridge */
.slip { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -46%) rotate(-1.1deg); width: min(92vw, 420px); max-height: 94%; overflow-x: clip; overflow-y: auto; padding: 20px 22px 18px; background: #fbfbf6; color: var(--ink); border-radius: 3px; box-shadow: 0 18px 40px rgba(0,0,0,0.5); background-image: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(11,78,162,0.09) 27px 28px); animation: slipin 0.45s cubic-bezier(0.2, 0.9, 0.3, 1); }
@keyframes slipin { from { transform: translate(-50%, 60%) rotate(4deg); opacity: 0; } }
.slip-kicker { font-size: var(--f-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); font-weight: 600; }
.slip h2 { font-size: var(--f-l); margin: 4px 0 12px; padding-right: 86px; }
.slip-rows { display: grid; grid-template-columns: 1fr auto; row-gap: 0; }
.slip-rows dt, .slip-rows dd { padding: 3px 0; line-height: 22px; border-bottom: 1px dashed rgba(17,20,23,0.25); }
.slip-rows dd { text-align: right; font-weight: 700; padding-left: 16px; }
.slip-verdict { margin: 12px 0 14px; font-size: var(--f-m); font-style: italic; }
.stamp { position: absolute; right: 16px; top: 14px; width: 84px; height: 84px; display: grid; place-content: center; text-align: center; border: 3px solid var(--blue); border-radius: 50%; color: var(--blue); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-14deg); box-shadow: inset 0 0 0 3px #fbfbf6, inset 0 0 0 4px var(--blue); animation: stamp 0.4s 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
.stamp span:first-child { font-size: 24px; line-height: 1; letter-spacing: 0; }
@keyframes stamp { from { transform: rotate(-22deg) scale(1.25); opacity: 0; } }
.slip-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14.5px; text-decoration: none; }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 4px var(--white); }
.btn-blue:hover { background: #0d5cc0; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: rgba(17,20,23,0.08); }
.slip-bridge { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: var(--asphalt-dk); color: var(--white); border: 2px solid var(--ink); display: grid; gap: 8px; }
.slip-bridge p { font-size: 13.5px; line-height: 1.35; color: #e2e6ea; }
.slip-bridge-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 7px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; box-shadow: inset 0 0 0 2px var(--ink); }
.slip-bridge-cta:hover { background: #ffc61a; }

/* Pass gate inside report slip */
.slip-offer { margin: 10px 0 12px; padding: 11px 12px; border-radius: 8px; background: #1c1f22; color: var(--white); border: 2px solid var(--ink); display: grid; gap: 7px; }
.cy-offer-head { font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--yellow); }
.cy-offer-sub { font-size: 12px; line-height: 1.3; color: #d8dce0; }
.cy-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cy-tier { display: grid; gap: 2px; align-content: center; padding: 7px 6px; border-radius: 7px; background: #262b30; color: var(--white); text-decoration: none; border: 1.5px solid #4a5159; text-align: center; cursor: pointer; }
.cy-tier em { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #c9cdd1; line-height: 1.15; }
.cy-tier strong { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--white); }
.cy-tier strong small { display: block; font-size: 10px; font-weight: 600; color: #d8dce0; }
.cy-tier span { font-size: 10.5px; font-weight: 600; color: var(--yellow); line-height: 1.15; }
.cy-tier.pop { background: var(--blue); border-color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.cy-tier.pop em { color: var(--yellow); }
.cy-tier.pop span { color: var(--white); }
.cy-tier.day { border-color: var(--yellow); }
.cy-tier.busy { opacity: 0.65; pointer-events: none; }
.cy-tier:hover { filter: brightness(1.1); }
.cy-trust { font-size: 10.5px; line-height: 1.3; color: #c9cdd1; }
@media (max-width: 520px) {
  .slip { width: min(94vw, 400px); padding: 14px 14px 12px; }
  .slip h2 { font-size: 16px; margin: 2px 0 8px; padding-right: 68px; }
  html[dir="rtl"] .slip h2 { padding-right: 0; padding-left: 68px; }
  .stamp { width: 62px; height: 62px; top: 10px; right: 10px; font-size: 9px; }
  html[dir="rtl"] .stamp { right: auto; left: 10px; }
  .stamp span:first-child { font-size: 18px; }
  .slip-rows dt, .slip-rows dd { padding: 1px 0; line-height: 19px; font-size: 13px; }
  .slip-verdict { margin: 8px 0; font-size: 13px; }
  .slip-offer { margin: 8px 0 10px; padding: 9px 10px; gap: 5px; }
  .cy-tiers { grid-template-columns: 1fr; }
  .cy-tier { grid-template-columns: 1fr auto; grid-template-rows: auto auto; text-align: left; gap: 1px 8px; padding: 7px 10px; }
  html[dir="rtl"] .cy-tier { text-align: right; }
  .cy-tier em { grid-column: 1; grid-row: 1; }
  .cy-tier span { grid-column: 1; grid-row: 2; }
  .cy-tier strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
  html[dir="rtl"] .cy-tier strong { text-align: left; }
}

/* deck: footwell, buttons, mobile steer, Röntgen */
.deck { flex: none; display: grid; grid-template-columns: minmax(360px, 44%) auto minmax(0, 1fr); grid-template-rows: clamp(176px, 27svh, 270px) auto; grid-template-areas: "foot btns xray" "keys keys keys"; gap: 0 12px; padding: 10px 16px 8px; background: var(--asphalt-dk); border-top: 3px solid var(--white); }
.footwell { grid-area: foot; position: relative; min-width: 0; border-radius: 12px; background: #15181b; box-shadow: inset 0 0 0 2px #3a4046; }
#foot { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; cursor: grab; }
.footbtns { grid-area: btns; display: flex; flex-direction: column; gap: 8px; justify-content: center; align-items: center; }
.rbtn { display: grid; justify-items: center; gap: 4px; width: 92px; min-height: 44px; padding: 8px 6px 7px; background: var(--white); color: var(--ink); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 4px var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.rbtn svg { width: 28px; height: 28px; }
.rbtn-l { display: grid; justify-items: center; gap: 2px; }
.rbtn[aria-pressed="true"] { background: var(--red); color: var(--white); box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 4px var(--white); }
.rbtn.pulse { animation: invite 0.9s ease-in-out infinite; }
.steer-row { display: none; gap: 6px; align-items: center; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 12px; background: var(--white); color: var(--ink); border: 0; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 4px var(--ink); font-size: 18px; font-weight: 700; touch-action: none; user-select: none; -webkit-user-select: none; }
.sbtn[aria-pressed="true"] { background: var(--yellow); }
.scroll-cue { display: none; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; background: var(--blue); color: var(--white); border-radius: 10px; box-shadow: inset 0 0 0 2px var(--blue), inset 0 0 0 4px var(--white); text-decoration: none; font-weight: 700; font-size: 14px; }
@media (pointer: coarse) {
  .steer-row { display: flex; }
}
.xray { grid-area: xray; min-width: 0; border-radius: 12px; }
#xray { position: absolute; inset: 8px 10px; width: calc(100% - 20px); height: calc(100% - 16px); display: block; }
.keys { grid-area: keys; margin-top: 8px; font-size: var(--f-xs); letter-spacing: 0.03em; color: #c9cdd1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── the road below (overflow-x: clip preserves sticky triangle!) ── */
.road { position: relative; padding: 110px 16px 0; background: var(--asphalt) radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1.3px) 0 0 / 7px 7px; overflow-x: clip; }
.spine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.spine::before, .spine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; background: var(--white); opacity: 0.85; }
.spine::before { left: max(14px, calc(50% - 640px)); } .spine::after { right: max(14px, calc(50% - 640px)); }
.spine-dash { position: absolute; left: 50%; top: -240px; bottom: -240px; width: 7px; margin-left: -3.5px; background: repeating-linear-gradient(to bottom, var(--white) 0 70px, transparent 70px 210px); opacity: 0.9; will-change: transform; }
@media (max-width: 1160px) { .spine::before, .spine::after { display: none; } }
.post, .bare, .gantry-end { position: relative; z-index: 1; width: var(--lane); margin: 0 auto 120px; }
.post { perspective: 1500px; padding-bottom: 64px; }
.post::before, .post::after { content: ""; position: absolute; bottom: 0; width: 12px; height: 66px; background: linear-gradient(90deg, #6a7178, var(--post) 45%, #5a6168); border-radius: 0 0 2px 2px; }
.post::before { left: 16%; } .post::after { right: 16%; }
.panel { padding: clamp(24px, 4vw, 44px); transform-origin: 50% calc(100% + 64px); }
.post.in > .panel { animation: swing 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes swing { 0% { transform: rotateX(-66deg); } 52% { transform: rotateX(7deg); } 72% { transform: rotateX(-3.2deg); } 88% { transform: rotateX(1.2deg); } 100% { transform: none; } }
.panel h2 { font-size: var(--f-xl); letter-spacing: 0.01em; }
.zusatz { display: inline-grid; place-items: center; min-width: 30px; height: 24px; margin-bottom: 12px; padding: 0 8px; background: var(--ink); color: var(--white); border-radius: 4px; font-size: var(--f-s); font-weight: 700; }
.lede { margin-top: 10px; max-width: 60ch; }

.two { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.copy p { margin-top: 12px; max-width: 46ch; }
.copy p:first-of-type { margin-top: 16px; font-size: var(--f-l); line-height: 1.3; }
.cut-frame { aspect-ratio: 16 / 10; border-radius: 12px; }
#cut { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); display: block; }
.cutaway figcaption { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 4px 10px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--ink); font-size: var(--f-s); }
.chip.on { background: var(--ink); color: var(--white); }

/* syllabus */
.guide-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.bab { width: 64px; height: 48px; flex: none; }
.guide-head p { margin-top: 4px; opacity: 0.95; }
.exits { border-top: 3px solid var(--white); }
.exit { border-bottom: 3px solid var(--white); }
.exit summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 4px; cursor: pointer; list-style: none; min-height: 58px; }
.exit summary::-webkit-details-marker { display: none; }
.exit-no { display: grid; place-items: center; width: 44px; height: 34px; background: var(--white); color: var(--blue); border-radius: 17px; font-weight: 700; font-size: 18px; }
.exit-t { font-size: var(--f-l); font-weight: 600; line-height: 1.15; }
.exit-t small { display: block; margin-top: 2px; font-size: var(--f-s); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.9; }
.exit-st { padding: 3px 9px; border-radius: 5px; background: var(--white); color: var(--ink); font-size: var(--f-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.exit[data-st="done"] .exit-st { background: var(--yellow); }
.exit[data-st="pass"] .exit-st { background: var(--blue); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.exit[data-st="shut"] .exit-st { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); }
.exit[data-st="shut"] .exit-t, .exit[data-st="shut"] .exit-no { opacity: 0.8; }
.exit-arrow { width: 30px; height: 30px; transition: transform 0.25s ease; }
.exit[open] .exit-arrow { transform: rotate(45deg); }
.exit-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 0 4px 18px 62px; }
.exit-body p { max-width: 62ch; }
.drive { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--yellow), inset 0 0 0 4px var(--ink); white-space: nowrap; }
.drive:hover { background: #ffc61a; }
.drive[disabled] { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white); opacity: 0.78; cursor: not-allowed; text-transform: none; letter-spacing: 0; white-space: normal; text-align: left; padding: 8px 14px; }

/* live numbers on yellow plates */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.num { display: grid; gap: 2px; padding: 16px 18px 14px; border-radius: 10px; }
.num b { font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1; letter-spacing: 0.02em; }
.num span { font-size: var(--f-s); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.num.small b { font-size: clamp(26px, 3.4vw, 36px); }
.plates-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }

/* direction signs */
.paint { font-size: clamp(34px, 6vw, 68px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transform: scaleY(1.35); transform-origin: 0 100%; margin: 40px 0 26px; padding-left: 8px; background: var(--asphalt); width: fit-content; }
.dirs { display: grid; gap: 16px; }
.dir { --panel: var(--yellow); --txt: var(--ink); --rim: var(--ink); display: block; width: min(100%, 760px); color: var(--txt); text-decoration: none; background: var(--rim); clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 50%, calc(100% - 54px) 100%, 0 100%); padding: 3px 5px 3px 3px; position: relative; }
.dir:nth-child(2) { --panel: var(--white); margin-left: auto; clip-path: polygon(54px 0, 100% 0, 100% 100%, 54px 100%, 0 50%); padding: 3px 3px 3px 5px; }
.dir:nth-child(3) { --panel: var(--blue); --txt: var(--white); --rim: var(--white); }
.dir-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 20px; min-height: 104px; padding: 16px 78px 16px 26px; background: var(--panel); clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 50%, calc(100% - 52px) 100%, 0 100%); box-shadow: inset 0 0 0 3px var(--panel), inset 0 0 0 5px var(--rim); }
.dir:nth-child(2) .dir-in { clip-path: polygon(52px 0, 100% 0, 100% 100%, 52px 100%, 0 50%); padding: 16px 26px 16px 78px; }
.dir b { font-size: clamp(24px, 3.6vw, 38px); font-weight: 700; line-height: 1.05; }
.dir span { font-size: var(--f-m); }
.dir i { font-style: normal; font-size: var(--f-s); grid-column: 1 / -1; opacity: 0.9; }
.dir:hover .dir-in, .dir:focus-visible .dir-in { filter: brightness(1.08); }

/* questions */
.faq { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.tri-post { position: sticky; top: 24px; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 10px 14px 20px; background: var(--asphalt); border-radius: 12px; }
.tri { width: 150px; }
.tri-post h2 { font-size: var(--f-xl); letter-spacing: 0.04em; margin-top: 6px; }
.tri-post p { font-size: var(--f-s); opacity: 0.9; }
.flips { display: grid; gap: 12px; }
.flip { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; perspective: 1200px; border-radius: 10px; }
.faces { display: grid; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.3, 1.3, 0.5, 1); }
.face { grid-area: 1 / 1; display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 22px; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: var(--f-l); font-weight: 600; line-height: 1.2; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 5px var(--ink); }
.face.back { transform: rotateX(180deg); background: var(--yellow); box-shadow: inset 0 0 0 3px var(--yellow), inset 0 0 0 5px var(--ink); font-size: var(--f-m); font-weight: 500; line-height: 1.4; }
.flip[aria-expanded="true"] .faces { transform: rotateX(180deg); }
.face::before { content: "?"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; font-size: 18px; }
.face.back::before { content: "!"; }

/* closing gantry + full pass upgrade bar */
.gantry-end { margin-bottom: 0; padding: 0 0 110px; }
.gantry-end::before, .gantry-end::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, #6a7178, var(--post) 45%, #5a6168); }
.gantry-end::before { left: 0; } .gantry-end::after { right: 0; }
.truss { height: 46px; background: repeating-linear-gradient(60deg, transparent 0 15px, var(--post) 15px 19px), repeating-linear-gradient(-60deg, transparent 0 15px, var(--post) 15px 19px); border-top: 5px solid var(--post); border-bottom: 5px solid var(--post); }
.hang { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; padding: 0 44px; }
.hang > * { margin-top: 18px; }
.cta { display: flex; align-items: center; gap: 22px; width: 100%; min-height: 190px; padding: 28px 32px; border: 0; text-align: left; font-family: inherit; }
.cta svg { width: clamp(56px, 8vw, 92px); flex: none; }
.cta strong { display: block; font-size: clamp(30px, 4.6vw, 56px); font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.cta em { display: block; margin-top: 10px; font-style: normal; font-size: var(--f-m); }
.cta:hover { background: #0d5cc0; --panel: #0d5cc0; }
.remind { padding: 24px 24px 20px; min-height: 190px; display: grid; align-content: center; gap: 10px; }
.remind label { font-size: var(--f-l); font-weight: 600; }
.remind-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.remind input { min-height: 44px; padding: 0 12px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 8px; min-width: 0; }
.form-msg { min-height: 1.4em; font-size: var(--f-s); }
.stamp-ok { right: 14px; top: 10px; width: 78px; height: 78px; background: rgba(244,245,240,0.92); }
.pass-strip { margin: 18px 44px 0; padding: 18px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pass-strip-copy { display: grid; gap: 3px; max-width: 64ch; }
.pass-strip-copy strong { font-size: var(--f-l); line-height: 1.2; }
.pass-strip-copy span { font-size: var(--f-s); opacity: 0.9; }
.pass-strip .btn { flex: none; }

/* footer: town-exit sign */
.end { display: grid; justify-items: center; gap: 26px; padding: 30px 16px 60px; background: var(--asphalt) radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1.3px) 0 0 / 7px 7px; }
.ortsende { width: min(100%, 520px); background: var(--yellow); color: var(--ink); border-radius: 14px; box-shadow: inset 0 0 0 4px var(--yellow), inset 0 0 0 8px var(--ink), 0 0 0 1px rgba(244,245,240,0.3); overflow: hidden; }
.orts-top { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 20px 14px; font-size: clamp(22px, 4vw, 32px); font-weight: 700; }
.orts-top svg { width: 30px; height: 30px; }
.orts-bot { position: relative; display: grid; place-items: center; margin: 0 8px 8px; padding: 18px 20px 22px; border-top: 4px solid var(--ink); font-size: clamp(26px, 5vw, 42px); font-weight: 700; overflow: hidden; }
.orts-bot::after { content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 12px; margin-top: -6px; background: var(--red); transform: rotate(-11deg); }
.end-meta { display: grid; justify-items: center; gap: 12px; text-align: center; }
.end-meta p { font-size: var(--f-s); color: #c9cdd1; max-width: 52ch; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; font-size: var(--f-s); }
.end-links a { color: var(--white); opacity: 0.88; text-decoration: none; padding: 6px 4px; }
.end-links a:hover { color: var(--yellow); text-decoration: underline; opacity: 1; }

/* ── narrow screens ── */
@media (max-width: 860px) {
  .gantry { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head tog" "vms vms"; gap: 6px; padding: 8px 10px 0; }
  .headline { grid-area: head; max-width: none; padding: 9px 11px; gap: 8px; align-items: flex-start; min-width: 0; }
  .headline-text { min-width: 0; }
  .headline-brand { white-space: nowrap; font-size: 9.8px; margin-bottom: 2px; gap: 4px; }
  .toggles { grid-area: tog; display: grid; grid-template-columns: repeat(2, minmax(44px, auto)); gap: 4px; align-self: start; }
  .tog { min-height: 44px; min-width: 44px; justify-content: center; padding: 0 7px; font-size: 10.5px; }
  .tog svg + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tog.tog-sim { font-size: 10px; padding: 0 6px; letter-spacing: 0.02em; }
  .hero.driving h1 { font-size: 14px; }
  .hud { display: none; }
  .vms { grid-area: vms; height: 48px; width: 100%; font-size: 11.5px; padding: 4px 10px; }
  h1 { font-size: clamp(18px, 4.8vw, 26px); }
  .sub { font-size: 12.5px; margin-top: 3px; max-height: 5.5em; }
  .shield { min-width: 34px; height: 26px; font-size: 14px; margin-top: 2px; }
  .lang-sel { font-size: 10px; padding: 1px 4px; max-width: 72px; }
  .stallno { right: 10px; min-height: 36px; height: 36px; font-size: 14px; }
  html[dir="rtl"] .stallno { left: 10px; right: auto; }
  html[dir="rtl"] .headline { padding: 9px 12px; }
  .deck { grid-template-columns: minmax(0, 1fr); grid-template-rows: 68px 46px clamp(160px, 24svh, 214px); grid-template-areas: "xray" "btns" "foot" "keys"; gap: 6px; padding: 6px 10px 6px; }
  .footbtns { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 6px; }
  .rbtn { display: flex; align-items: center; width: auto; min-height: 44px; padding: 4px 10px 4px 7px; gap: 5px; font-size: 11px; }
  .rbtn svg { width: 20px; height: 20px; }
  .rbtn-l { display: flex; gap: 4px; } .rbtn kbd { display: none; }
  .steer-row { display: flex; gap: 5px; }
  .sbtn { min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 16px; }
  .scroll-cue { display: inline-flex; min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 0; }
  .scroll-cue::after { content: "↓"; font-size: 17px; }
  .keys { margin-top: 0; white-space: normal; }
  .road { padding-top: 80px; }
  .post, .bare { margin-bottom: 84px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .exit summary { grid-template-columns: auto minmax(0, 1fr) auto; }
  .exit-st { grid-column: 2; justify-self: start; }
  .exit-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .exit-body { grid-template-columns: minmax(0, 1fr); padding-left: 4px; }
  html[dir="rtl"] .exit-body { padding: 0 4px 18px; }
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plates-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tri-post { position: static; }
  .tri { width: 110px; }
  .hang { grid-template-columns: minmax(0, 1fr); padding: 0 26px; }
  .pass-strip { margin: 18px 26px 0; padding: 16px 18px; }
  .cta { min-height: 0; padding: 22px; gap: 16px; }
  .remind-row { grid-template-columns: minmax(0, 1fr); }
  .dir-in { grid-template-columns: minmax(0, 1fr); padding-right: 64px; min-height: 0; } .dir:nth-child(2) .dir-in { padding-left: 64px; }
  html[dir="rtl"] .dir .dir-in { padding-left: 64px; padding-right: 18px; }
  html[dir="rtl"] .dir:nth-child(2) .dir-in { padding-right: 64px; padding-left: 18px; }
  .dir b { font-size: clamp(20px, 6.2vw, 30px); overflow-wrap: anywhere; }
  .face { font-size: var(--f-m); }
}
@media (max-height: 640px) and (min-width: 861px) { .sub { display: none; } .deck { grid-template-rows: clamp(150px, 27svh, 200px) auto; } }

/* ── RTL support (Arabic) — keep physical hardware & plates LTR ── */
html[dir="rtl"] #footwell, html[dir="rtl"] #xrayWrap, html[dir="rtl"] .cut-frame, html[dir="rtl"] .steer-row, html[dir="rtl"] .nplate { direction: ltr; }
html[dir="rtl"] .hud { left: auto; right: 16px; }
html[dir="rtl"] .stallno { right: auto; left: 16px; }
html[dir="rtl"] .headline { padding: 14px 16px 14px 22px; }
html[dir="rtl"] .slip h2 { padding-right: 0; padding-left: 86px; }
html[dir="rtl"] .slip-rows dd { text-align: left; padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .stamp { right: auto; left: 16px; transform: rotate(14deg); }
html[dir="rtl"] .stamp-ok { right: auto; left: 14px; }
html[dir="rtl"] .exit-body { padding: 0 62px 18px 4px; }
html[dir="rtl"] .exit-arrow { transform: scaleX(-1); }
html[dir="rtl"] .exit[open] .exit-arrow { transform: scaleX(-1) rotate(45deg); }
html[dir="rtl"] .drive[disabled] { text-align: right; }
html[dir="rtl"] .flip, html[dir="rtl"] .cta { text-align: right; }
html[dir="rtl"] .dir { clip-path: polygon(54px 0, 100% 0, 100% 100%, 54px 100%, 0 50%); padding: 3px 3px 3px 5px; }
html[dir="rtl"] .dir .dir-in { clip-path: polygon(52px 0, 100% 0, 100% 100%, 52px 100%, 0 50%); padding: 16px 26px 16px 78px; }
html[dir="rtl"] .dir:nth-child(2) { margin-left: 0; margin-right: auto; clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 50%, calc(100% - 54px) 100%, 0 100%); padding: 3px 5px 3px 3px; }
html[dir="rtl"] .dir:nth-child(2) .dir-in { clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 50%, calc(100% - 52px) 100%, 0 100%); padding: 16px 78px 16px 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sign:hover::after { display: none; }
}
