/* =========================================================
   REACTION DRIVE — стилови
   Боите на брендот се менуваат во :root подолу.
   ========================================================= */
:root {
  --bg: #07090e;
  --card: #111623;
  --card-2: #161c2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef2f8;
  --muted: #8d97aa;
  --accent: #ffc233;      /* главна (жолта) боја на брендот */
  --accent-2: #ff8a00;
  --red: #ff3b30;
  --red-dark: #8a0f08;
  --green: #34d399;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;              /* скролирањето е внатре во екраните */
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(255, 194, 51, 0.10), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(255, 59, 48, 0.06), transparent 60%),
    var(--bg);
}

button {
  font: inherit; color: inherit; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

kbd {
  display: inline-block;
  font: 700 0.8em/1 var(--font);
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 3px;
  background: var(--card-2);
  color: var(--text);
}

#app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
  font-weight: 900;
  font-size: 17px;
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo.has-img { width: 48px; height: 48px; background: none; border-radius: 0; overflow: visible; }
.rc-brand { display: inline-flex; align-items: center; gap: 6px; }
.rc-logo { display: inline-flex; width: 30px; height: 30px; }
.rc-logo[hidden] { display: none; }
.rc-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-weight: 700; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sound-toggle {
  flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
}
.sound-toggle[aria-pressed="false"] { color: var(--muted); }

/* ---------- Screens ---------- */
.stage { flex: 1; position: relative; min-height: 0; }
.screen {
  position: absolute; inset: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.is-active { display: block; animation: screenIn 0.35s ease both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
.wrap-center { min-height: 100%; justify-content: center; text-align: center; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card-label {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}

/* ---------- Start ---------- */
.hero { text-align: center; padding-top: 6px; }
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 194, 51, 0.1); border: 1px solid rgba(255, 194, 51, 0.25);
  margin-bottom: 14px;
}
.logo-title {
  font-size: clamp(46px, 15vw, 76px);
  font-weight: 900; font-style: italic;
  line-height: 0.88; letter-spacing: -0.03em;
}
.logo-title span {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.road-stripe { display: flex; justify-content: center; gap: 10px; margin: 16px 0 14px; }
.road-stripe i {
  display: block; width: 26px; height: 5px; border-radius: 3px; background: var(--accent);
  opacity: 0.25; animation: stripe 1.2s linear infinite;
}
.road-stripe i:nth-child(2) { animation-delay: 0.15s; }
.road-stripe i:nth-child(3) { animation-delay: 0.3s; }
.road-stripe i:nth-child(4) { animation-delay: 0.45s; }
.road-stripe i:nth-child(5) { animation-delay: 0.6s; }
@keyframes stripe { 0%, 100% { opacity: 0.2; } 30% { opacity: 1; } }
.subtitle { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 32ch; margin: 0 auto; }

.speed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.speed-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 6px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.12s ease, border-color 0.2s, background 0.2s;
}
.speed-btn:active { transform: scale(0.97); }
.speed-btn .num { font-size: clamp(24px, 7vw, 30px); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.speed-btn .unit { font-size: 11px; color: var(--muted); font-weight: 700; }
.speed-btn .tag { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.2; text-align: center; }
.speed-btn.is-danger .tag { color: #ff7a70; }
.speed-btn.is-selected {
  border-color: var(--accent);
  background: rgba(255, 194, 51, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 194, 51, 0.15), 0 8px 24px rgba(255, 194, 51, 0.12);
}
.speed-btn.is-selected .num { color: var(--accent); }

.btn {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.05em;
  transition: transform 0.12s ease, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-xl { padding: 20px 16px; font-size: 19px; font-weight: 900; }
.btn-primary {
  color: #141004;
  background: linear-gradient(180deg, #ffd35c, var(--accent) 40%, #f5a300);
  box-shadow: 0 10px 30px rgba(255, 176, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost { border: 1.5px solid var(--line-2); background: var(--card); color: var(--text); }

.hint { text-align: center; color: #b9c2d2; font-size: 15px; line-height: 1.55; }
.hint b { color: var(--text); }
.disclaimer { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.55; opacity: 0.85; }

.desktop-only { display: none; }
@media (hover: hover) and (pointer: fine) { .desktop-only { display: inline; } }

/* ---------- Drive ---------- */
.screen-drive.is-active { display: flex; flex-direction: column; overflow: hidden; animation: none; }
.scene {
  position: relative;
  flex: 1; min-height: 0;
  overflow: hidden;
  background: #9cc3dd;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
#roadCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hud {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  pointer-events: none;
}
.hud-speed {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.hud-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--muted); }
.hud-value { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1; }
.hud-unit { font-size: 13px; font-weight: 700; color: #cfd6e3; }
.hud-status {
  padding: 8px 12px; border-radius: 12px;
  background: rgba(8, 10, 16, 0.6);
  font-size: 13px; font-weight: 600; color: #dfe5ef;
}

.alert {
  position: absolute; left: 50%; top: 24%;
  transform: translate(-50%, -50%);
  display: none;
  padding: 10px 24px;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  font-size: clamp(30px, 9vw, 52px);
  font-weight: 900; letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 12px 40px rgba(255, 59, 48, 0.55);
  pointer-events: none;
}
.flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 6px rgba(255, 59, 48, 0.95), inset 0 0 90px rgba(255, 59, 48, 0.55);
}
.scene.is-hazard .alert { display: block; animation: pulse 0.45s ease-in-out infinite alternate; }
.scene.is-hazard .flash { opacity: 1; animation: flash 0.45s ease-in-out infinite alternate; }
.scene.is-braking .alert {
  display: block;
  background: rgba(8, 10, 16, 0.85);
  border: 2px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
@keyframes pulse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.07); } }
@keyframes flash { from { opacity: 1; } to { opacity: 0.35; } }

.controls {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #0b0e15, var(--bg));
  border-top: 1px solid var(--line);
}
/* Педали: кочница лево, гас десно */
.pedals {
  width: 100%; max-width: 640px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px;
  touch-action: none;
}
.pedal {
  height: clamp(96px, 17vh, 140px);
  border-radius: 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: none;
  transition: transform 0.06s ease, box-shadow 0.06s ease, filter 0.15s;
}
.pedal-main { font-size: clamp(26px, 7.5vw, 40px); font-weight: 900; letter-spacing: 0.05em; line-height: 1; }
.pedal-sub { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.pedal-sub kbd { font-size: 11px; background: rgba(0, 0, 0, 0.25); border-color: rgba(255, 255, 255, 0.3); }

.brake-btn {
  background: radial-gradient(120% 90% at 50% 20%, #ff6a5f, #e3170c 60%, #b80f06);
  box-shadow: 0 9px 0 var(--red-dark), 0 18px 40px rgba(255, 59, 48, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.brake-btn:active, .brake-btn.is-pressed {
  transform: translateY(7px);
  box-shadow: 0 2px 0 var(--red-dark), 0 8px 20px rgba(255, 59, 48, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.brake-btn.is-done { filter: grayscale(0.4) brightness(0.8); }

.gas-btn {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 6px, transparent 6px 14px),
    radial-gradient(120% 90% at 50% 20%, #4fe39a, #17a860 60%, #0e7a45);
  box-shadow: 0 9px 0 #0a4d2c, 0 18px 40px rgba(52, 211, 153, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}
.gas-btn.is-held {
  transform: translateY(7px);
  box-shadow: 0 2px 0 #0a4d2c, 0 0 0 3px rgba(52, 211, 153, 0.55), 0 0 30px rgba(52, 211, 153, 0.5);
}
.pedals.is-idle .gas-btn:not(.is-held) { animation: gasPulse 1s ease-in-out infinite; }
@keyframes gasPulse { 50% { box-shadow: 0 9px 0 #0a4d2c, 0 0 0 5px rgba(52, 211, 153, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.35); } }

.gas-hint {
  position: absolute; left: 50%; bottom: 16%;
  transform: translateX(-50%);
  display: none;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(8, 10, 16, 0.85);
  border: 2px solid var(--green);
  color: #fff; font-size: clamp(17px, 5vw, 22px); font-weight: 700; text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.gas-hint b { color: var(--green); }
.gas-hint-arrow { font-size: 22px; animation: bob 0.8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(5px); } }
.scene.needs-gas .gas-hint { display: block; }
.hud-status.is-warn { background: rgba(255, 194, 51, 0.9); color: #1a1405; }

/* Start: како се игра */
.howto { display: flex; flex-direction: column; gap: 8px; }
.howto-step {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; line-height: 1.4; color: #cfd6e3;
  padding: 8px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.howto-step b { color: var(--text); }
.howto-ico {
  flex: none; width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; font-size: 15px; font-weight: 900;
}
.howto-ico.gas { background: linear-gradient(135deg, #4fe39a, #17a860); color: #06331c; font-size: 10px; }
.howto-ico.warn { background: rgba(255, 194, 51, 0.15); }
.howto-ico.brake { background: rgba(255, 59, 48, 0.18); }

@media (min-width: 900px) {
  .screen-drive.is-active { padding: 16px 16px 0; }
  .scene { width: 100%; max-width: 1100px; margin: 0 auto; border-radius: 20px; border: 1px solid var(--line-2); }
  .controls { background: none; border-top: 0; }
}

/* ---------- Message ---------- */
.msg-icon { font-size: 72px; line-height: 1; animation: pop 0.4s cubic-bezier(.2, 1.6, .4, 1) both; }
.msg-title { font-size: clamp(36px, 11vw, 56px); font-weight: 900; font-style: italic; color: var(--accent); }
.msg-text { font-size: 17px; line-height: 1.5; color: #cfd6e3; max-width: 32ch; margin: 0 auto; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Result card (screenshot friendly) ---------- */
.result-card {
  position: relative; overflow: hidden;
  padding: 20px 18px 18px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(420px 220px at 85% -10%, rgba(255, 194, 51, 0.22), transparent 70%),
    linear-gradient(160deg, #161d2d, #0c1018);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.result-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background-image: linear-gradient(90deg, var(--accent) 0%, var(--accent) 65%, transparent 65%, transparent 100%);
  background-size: 40px 5px;
  background-repeat: repeat-x;
}
.rc-head { display: flex; justify-content: flex-start; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 14px; }
.rc-app { font-style: italic; font-weight: 800; letter-spacing: 0.08em; }
.rc-app b { color: var(--accent); }
.rc-brand { color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-label { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; color: var(--accent); }
.rc-ms {
  font-size: clamp(76px, 25vw, 112px);
  font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.rc-ms small { font-size: 0.3em; letter-spacing: 0; margin-left: 6px; color: var(--muted); }
.rc-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.rc-stats { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; margin-top: 16px; }
.stat {
  padding: 12px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.stat-v { font-size: clamp(28px, 8.5vw, 36px); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat-v small { font-size: 0.45em; color: var(--muted); margin-left: 4px; font-weight: 700; }
.stat-l { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.stat-hl { background: rgba(255, 194, 51, 0.1); border-color: rgba(255, 194, 51, 0.35); }
.stat-hl .stat-v { color: var(--accent); }
.rc-feedback {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800; font-size: 16px;
  background: rgba(52, 211, 153, 0.12); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.35);
}
.rc-feedback[data-level="2"] { background: rgba(255, 194, 51, 0.12); color: var(--accent); border-color: rgba(255, 194, 51, 0.35); }
.rc-feedback[data-level="3"] { background: rgba(255, 59, 48, 0.12); color: #ff7a70; border-color: rgba(255, 59, 48, 0.35); }
.rc-shock {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 59, 48, 0.1); border: 1px solid rgba(255, 59, 48, 0.3);
  text-align: left; font-size: 13px; line-height: 1.4; color: #f1f4f9;
}
.rc-shock b { color: #ff8a80; }
.rc-shock { justify-content: center; text-align: center; font-weight: 600; }
.rc-best { margin-top: 6px; font-size: 13px; color: var(--muted); }
.rc-cta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 15px; font-weight: 700; color: #dfe5ef; }
.rc-cta b { color: var(--accent); }
.rc-site { margin-top: 6px; font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }
.rc-site a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.note {
  font-size: 14px; line-height: 1.5; color: #cfd6e3;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 194, 51, 0.06);
  border-left: 3px solid var(--accent);
}

/* ---------- Comparison bars ---------- */
.compare-title { font-size: 22px; font-weight: 900; line-height: 1.2; }
.compare-intro { color: var(--muted); font-size: 14px; margin: 6px 0 14px; line-height: 1.4; }
.compare-intro b { color: var(--text); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row {
  display: grid; grid-template-columns: 70px 1fr 62px; align-items: center; gap: 10px;
  padding: 6px 8px; margin: 0 -8px; border-radius: 12px;
}
.bar-row.is-current { background: rgba(255, 194, 51, 0.1); outline: 1px solid rgba(255, 194, 51, 0.35); }
.bar-speed { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-speed small { color: var(--muted); font-weight: 600; font-size: 11px; }
.bar-track { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar-fill {
  height: 100%; width: 0; border-radius: inherit;
  transition: width 0.9s cubic-bezier(.2, .8, .2, 1);
}
.bar-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; white-space: nowrap; }
.compare-sum { margin-top: 14px; font-size: 15px; line-height: 1.5; color: #dfe5ef; }
.compare-sum b { color: #ff7a70; }

/* ---------- Споделување (прозорец од долу) ---------- */
.share-open { display: flex; align-items: center; justify-content: center; gap: 10px; }
.share-open svg { width: 22px; height: 22px; }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 520px;
  max-height: 94vh; max-height: 94dvh;
  display: flex; flex-direction: column;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #151a24;
  border: 1px solid var(--line-2); border-bottom: 0;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(.2, .8, .2, 1);
}
.sheet-backdrop.is-open .sheet { transform: none; }
.sheet-grab { width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); margin: 0 auto 10px; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; }
.sheet-head h3 { font-size: 17px; font-weight: 700; }
.sheet-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: #dfe5ef; }
.sheet-close svg { width: 22px; height: 22px; }
.sheet-preview {
  position: relative; flex: 1; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  margin: 12px 0 16px; overflow: hidden;
}
.sheet-preview img { display: block; max-width: 100%; max-height: 62vh; max-height: 62dvh; object-fit: contain; opacity: 0; transition: opacity 0.2s; }
.sheet-preview.is-ready img { opacity: 1; }
.sheet-loading { position: absolute; color: var(--muted); font-size: 14px; }
.sheet-preview.is-ready .sheet-loading { display: none; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.sheet-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 52px; padding: 0 8px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: transparent; color: var(--text);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}
.sheet-btn svg { width: 19px; height: 19px; flex: none; }
.sheet-btn:disabled { opacity: 0.45; }
.sheet-btn-primary { background: var(--accent); border-color: var(--accent); color: #141004; }
.sheet-btn:active:not(:disabled) { transform: scale(0.97); }
@media (max-width: 360px) { .sheet-btn { font-size: 12.5px; gap: 5px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px;
  background: #eef2f8; color: #0b0f17;
  font-size: 14px; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.shared-banner {
  text-align: center; font-size: 13px; font-weight: 700; color: var(--accent);
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 194, 51, 0.08); border: 1px solid rgba(255, 194, 51, 0.25);
}
.shared-banner[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .screen.is-active, .msg-icon, .road-stripe i { animation: none; }
  .scene.is-hazard .alert, .scene.is-hazard .flash { animation: none; }
  .bar-fill { transition: none; }
}
