/* ============================================================
   MORGANA'S RACING — Neon Grand Prix
   ============================================================ */
:root {
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff2d95;
  --neon-purple: #a06bff;
  --neon-lime: #aaff00;
  --neon-amber: #ffb400;
  --bg-deep: #0a0014;
  --bg-panel: rgba(16, 6, 40, .88);
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  font-family: var(--font-body);
  color: #e8f6ff;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.hidden { display: none !important; }
.accent { color: var(--neon-magenta); }
.hint { font-size: .6em; opacity: .6; letter-spacing: 1px; }

#game {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  background: var(--bg-deep);
}

/* ============ SCREENS (overlays) ============ */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(10px, 2.5vh, 26px);
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 120%, rgba(160, 40, 220, .25), transparent 60%),
    radial-gradient(ellipse at 50% -20%, rgba(0, 240, 255, .12), transparent 55%),
    var(--bg-deep);
  z-index: 50;
  overflow-y: auto;
}
.screen-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.5vw, 34px);
  letter-spacing: 4px;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px var(--neon-cyan), 0 0 40px rgba(0, 240, 255, .5);
}
.screen-title .accent { text-shadow: 0 0 12px var(--neon-magenta), 0 0 40px rgba(255, 45, 149, .5); }

/* ============ SPLASH ============ */
#screen-splash { cursor: pointer; overflow: hidden; }
.splash-grid {
  position: absolute; left: -50%; right: -50%; bottom: 0; height: 45%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 45, 149, .35) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(0, 240, 255, .3) 0 2px, transparent 2px 42px);
  transform: perspective(320px) rotateX(62deg);
  transform-origin: top;
  animation: gridScroll 1.2s linear infinite;
  mask-image: linear-gradient(to top, black 55%, transparent);
  -webkit-mask-image: linear-gradient(to top, black 55%, transparent);
}
@keyframes gridScroll { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 0 42px; } }
.splash-sun {
  position: absolute; top: 12%; left: 50%;
  width: clamp(140px, 26vmin, 260px); height: clamp(140px, 26vmin, 260px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(#ffdd55, #ff2d95 60%, #a06bff);
  box-shadow: 0 0 80px rgba(255, 45, 149, .8);
  mask-image: repeating-linear-gradient(to bottom, black 0 12px, transparent 12px 17px);
  -webkit-mask-image: repeating-linear-gradient(to bottom, black 0 12px, transparent 12px 17px);
  animation: sunPulse 3s ease-in-out infinite;
}
@keyframes sunPulse { 50% { box-shadow: 0 0 130px rgba(255, 45, 149, 1); } }
.logo { position: relative; text-align: center; line-height: 1.02; z-index: 1; }
.logo span { display: block; font-family: var(--font-display); }
.logo-morgana {
  font-size: clamp(34px, 9vw, 84px); font-weight: 900; letter-spacing: 6px;
  color: #fff;
  text-shadow: 0 0 8px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 90px var(--neon-cyan);
  animation: flicker 4s linear infinite;
}
.logo-racing {
  font-size: clamp(28px, 7.5vw, 68px); font-weight: 700; letter-spacing: 18px;
  padding-left: 18px;
  color: var(--neon-magenta);
  text-shadow: 0 0 10px var(--neon-magenta), 0 0 44px var(--neon-magenta);
  font-style: italic;
}
@keyframes flicker {
  0%, 92%, 96%, 100% { opacity: 1; }
  93%, 95% { opacity: .35; }
}
.tagline { z-index: 1; letter-spacing: 3px; font-size: clamp(10px, 2vw, 15px); color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }
.press-start {
  z-index: 1;
  font-family: var(--font-display); font-size: clamp(13px, 2.6vw, 20px);
  letter-spacing: 5px; color: var(--neon-lime);
  text-shadow: 0 0 14px var(--neon-lime);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: .15; } }
.credits { z-index: 1; position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); font-size: 11px; opacity: .45; letter-spacing: 2px; }

/* ============ FORMULÁRIO ============ */
#register-form { display: flex; flex-direction: column; gap: 16px; width: min(400px, 92vw); }
#register-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-display); font-size: 12px; letter-spacing: 3px; color: var(--neon-cyan); }
#register-form input {
  font-family: var(--font-body); font-size: 18px; font-weight: 600;
  padding: 12px 14px; color: #fff;
  background: rgba(0, 240, 255, .06);
  border: 1px solid rgba(0, 240, 255, .45); border-radius: 6px;
  outline: none; transition: box-shadow .2s, border-color .2s;
}
#register-form input:focus { border-color: var(--neon-magenta); box-shadow: 0 0 18px rgba(255, 45, 149, .45); }
.form-error { color: #ff5577; font-weight: 700; letter-spacing: 1px; text-shadow: 0 0 8px rgba(255, 40, 80, .8); }

.neon-btn {
  font-family: var(--font-display); font-size: clamp(13px, 2.4vw, 17px); font-weight: 700;
  letter-spacing: 3px; cursor: pointer;
  color: #061018; background: var(--neon-cyan);
  border: none; border-radius: 6px;
  padding: 14px 30px;
  box-shadow: 0 0 18px rgba(0, 240, 255, .7), inset 0 0 8px rgba(255, 255, 255, .4);
  transition: transform .12s, box-shadow .2s;
}
.neon-btn:hover, .neon-btn:active { transform: scale(1.04); box-shadow: 0 0 34px rgba(0, 240, 255, 1); }
.neon-btn.alt { background: transparent; color: var(--neon-magenta); border: 2px solid var(--neon-magenta); box-shadow: 0 0 16px rgba(255, 45, 149, .5); }
.neon-btn.big { font-size: clamp(15px, 3vw, 21px); padding: 16px 44px; }

/* ============ GARAGEM (avatar + carro) ============ */
.row-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 3px; color: var(--neon-purple); }
.hint2 { font-size: 12px; letter-spacing: 1px; opacity: .6; }
.pick-row {
  display: flex; gap: 12px;
  max-width: 96vw; overflow-x: auto;
  padding: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--neon-purple) transparent;
}
.avatar-card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: clamp(76px, 10vw, 100px);
  background: var(--bg-panel);
  border: 2px solid rgba(160, 107, 255, .35);
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
  text-align: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.avatar-card:hover { transform: translateY(-3px); }
.avatar-card.selected { border-color: var(--card-color, var(--neon-cyan)); box-shadow: 0 0 18px var(--card-glow, rgba(0,240,255,.6)); transform: translateY(-4px) scale(1.04); }
.avatar-card canvas { width: 100%; height: auto; display: block; border-radius: 8px; }
.avatar-name { font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; margin-top: 6px; }

#car-carousel { display: flex; gap: 12px; }
.car-card {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: clamp(150px, 18vw, 200px);
  background: var(--bg-panel);
  border: 2px solid rgba(160, 107, 255, .35);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.car-card:hover { transform: translateY(-4px); }
.car-card.selected { border-color: var(--card-color, var(--neon-cyan)); box-shadow: 0 0 24px var(--card-glow, rgba(0,240,255,.6)); transform: translateY(-6px) scale(1.03); }
.car-card canvas { width: 100%; height: auto; display: block; }
.car-name { font-family: var(--font-display); font-size: 15px; letter-spacing: 2px; margin: 8px 0 2px; }
.car-desc { font-size: 11px; opacity: .65; letter-spacing: 1px; margin-bottom: 8px; min-height: 2.2em; }
.stat-row { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 1.5px; margin: 3px 0; }
.stat-row .stat-name { width: 52px; text-align: left; opacity: .7; }
.stat-bar { flex: 1; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; }
.stat-fill { height: 100%; border-radius: 3px; background: var(--card-color, var(--neon-cyan)); box-shadow: 0 0 6px var(--card-color, var(--neon-cyan)); }

/* ============ HUD ============ */
#hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.hud-top {
  position: absolute; top: max(8px, env(safe-area-inset-top)); left: 12px; right: 12px;
  display: flex; gap: 10px; align-items: flex-start;
}
.hud-box {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 240, 255, .4);
  border-radius: 8px;
  padding: 5px 12px;
  display: flex; flex-direction: column; align-items: center;
  min-width: 74px;
  backdrop-filter: blur(3px);
}
.hud-label { font-size: 9px; letter-spacing: 2px; color: var(--neon-purple); font-weight: 700; }
.hud-value { font-family: var(--font-display); font-size: clamp(14px, 2.6vw, 20px); font-weight: 700; color: #fff; text-shadow: 0 0 8px var(--neon-cyan); }
#hud-time { margin-left: auto; }
#mute-btn {
  pointer-events: auto; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-panel); color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, .4); font-size: 17px;
}
#mute-btn.muted { color: #556; text-decoration: line-through; }

.hud-speed {
  position: absolute; left: 16px; bottom: max(14px, env(safe-area-inset-bottom));
  font-family: var(--font-display);
}
#speed-value { font-size: clamp(30px, 6vw, 52px); font-weight: 900; color: #fff; text-shadow: 0 0 12px var(--neon-cyan), 0 0 40px rgba(0, 240, 255, .6); font-style: italic; }
.speed-unit { font-size: 13px; letter-spacing: 2px; color: var(--neon-cyan); margin-left: 6px; }
.speed-bar { width: clamp(120px, 20vw, 200px); height: 7px; margin-top: 4px; background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; }
#speed-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta)); box-shadow: 0 0 10px var(--neon-magenta); transition: width .1s linear; }

/* ---- botão de turbo ---- */
#boost-btn {
  pointer-events: auto; cursor: pointer;
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  width: clamp(74px, 13vmin, 104px); height: clamp(74px, 13vmin, 104px);
  border-radius: 50%;
  border: 2px solid var(--neon-amber);
  background: radial-gradient(circle at 35% 30%, rgba(255, 200, 60, .35), rgba(40, 16, 0, .9));
  color: var(--neon-amber);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 0 22px rgba(255, 180, 0, .55);
  transition: transform .1s;
}
#boost-btn:active { transform: scale(.93); }
#boost-btn .boost-icon { font-size: clamp(22px, 4.5vmin, 34px); filter: drop-shadow(0 0 6px var(--neon-amber)); }
#boost-btn .boost-label { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; font-weight: 700; }
#boost-btn.cooldown { border-color: #444; color: #667; box-shadow: none; background: rgba(10, 10, 20, .85); }
#boost-btn.active { border-color: var(--neon-lime); color: var(--neon-lime); box-shadow: 0 0 34px var(--neon-lime); animation: boostPulse .3s ease-in-out infinite; }
@keyframes boostPulse { 50% { transform: scale(1.07); } }
.boost-ring { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: rotate(-90deg); pointer-events: none; }
#boost-cd-circle {
  fill: none; stroke: var(--neon-amber); stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 276.5; /* 2πr, r=44 */
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px var(--neon-amber));
}

/* ---- controles de toque: setas + pedais ---- */
.steer-btn {
  position: absolute;
  bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px));
  width: clamp(62px, 11vmin, 88px); height: clamp(62px, 11vmin, 88px);
  border-radius: 50%;
  pointer-events: auto;
  display: none;
  align-items: center; justify-content: center;
  font-size: clamp(24px, 5vmin, 36px);
  color: rgba(0, 240, 255, .7);
  background: rgba(10, 6, 30, .55);
  border: 2px solid rgba(0, 240, 255, .35);
  user-select: none;
}
body.is-touch .steer-btn { display: flex; }
.steer-btn.pressed { background: rgba(0, 240, 255, .25); color: #fff; border-color: var(--neon-cyan); }
#touch-left { left: max(14px, env(safe-area-inset-left)); }
#touch-right { left: calc(max(14px, env(safe-area-inset-left)) + clamp(62px, 11vmin, 88px) + 14px); }

.pedals {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(10px, env(safe-area-inset-bottom));
  display: none;
  gap: 12px; align-items: flex-end;
  pointer-events: auto;
}
body.is-touch .pedals { display: flex; }
.pedals button {
  pointer-events: auto; cursor: pointer;
  border-radius: 16px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 2px;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
  transition: transform .08s;
}
.pedals button:active { transform: scale(.94); }
#pedal-gas {
  width: clamp(84px, 15vmin, 120px); height: clamp(60px, 11vmin, 86px);
  font-size: clamp(12px, 2.2vmin, 16px);
  color: #b8ffcc;
  background: linear-gradient(180deg, rgba(0, 200, 90, .4), rgba(0, 60, 25, .8));
  border: 2px solid #2eff88;
  box-shadow: 0 0 16px rgba(46, 255, 136, .45);
}
#pedal-gas.pressed { background: linear-gradient(180deg, rgba(0, 255, 110, .7), rgba(0, 90, 40, .9)); box-shadow: 0 0 28px rgba(46, 255, 136, .9); }
#pedal-brake {
  width: clamp(64px, 11vmin, 92px); height: clamp(52px, 9.5vmin, 74px);
  font-size: clamp(10px, 1.9vmin, 14px);
  color: #ffc2cc;
  background: linear-gradient(180deg, rgba(255, 40, 70, .35), rgba(70, 5, 15, .85));
  border: 2px solid #ff3355;
  box-shadow: 0 0 14px rgba(255, 51, 85, .4);
}
#pedal-brake.pressed { background: linear-gradient(180deg, rgba(255, 60, 90, .7), rgba(110, 8, 25, .9)); box-shadow: 0 0 26px rgba(255, 51, 85, .9); }

/* turbo sobe para não brigar com os pedais no toque */
body.is-touch #boost-btn {
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + clamp(60px, 11vmin, 86px) + 14px);
  width: clamp(60px, 10vmin, 84px); height: clamp(60px, 10vmin, 84px);
}

/* ---- integridade + escudo ---- */
#hp-wrap {
  position: absolute;
  top: calc(max(8px, env(safe-area-inset-top)) + 52px);
  left: 12px;
  display: flex; align-items: center; gap: 8px;
}
.hp-bar { width: clamp(90px, 15vw, 150px); height: 8px; background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); }
#hp-fill { height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #2eff88, #aaff00); box-shadow: 0 0 8px rgba(46, 255, 136, .7); transition: width .25s; }
#hp-fill.mid { background: linear-gradient(90deg, #ffb400, #ffdd55); box-shadow: 0 0 8px rgba(255, 180, 0, .7); }
#hp-fill.low { background: linear-gradient(90deg, #ff3355, #ff2d95); box-shadow: 0 0 10px rgba(255, 51, 85, .9); }
#shield-ind { font-size: 13px; font-weight: 700; color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

/* ---- modo de jogo ---- */
.theme-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  font-family: var(--font-display); font-size: clamp(10px, 1.8vw, 12px); font-weight: 700; letter-spacing: 2px;
  padding: 8px 14px; cursor: pointer;
  color: rgba(232, 246, 255, .75);
  background: rgba(160, 107, 255, .08);
  border: 1px solid rgba(160, 107, 255, .4);
  border-radius: 20px;
  transition: all .15s;
}
.chip:hover { border-color: var(--neon-cyan); }
.chip.selected {
  color: #061018; background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, .7);
}
.mode-cols { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; max-width: 94vw; }
.mode-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(160, 107, 255, .4);
  border-radius: 14px;
  padding: 16px 20px;
  min-width: min(300px, 88vw);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mode-panel h3 { font-family: var(--font-display); font-size: 14px; letter-spacing: 3px; color: var(--neon-cyan); }
.join-row { display: flex; gap: 8px; }
.join-row input {
  width: 110px; text-align: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 6px;
  text-transform: uppercase;
  padding: 10px; color: #fff;
  background: rgba(0, 240, 255, .06);
  border: 1px solid rgba(0, 240, 255, .45); border-radius: 6px;
  outline: none;
}
.join-row input:focus { border-color: var(--neon-magenta); }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--neon-purple); font-family: var(--font-body); font-size: 14px; letter-spacing: 1px;
  text-decoration: underline; opacity: .8;
}
.link-btn:hover { opacity: 1; }

/* ---- lobby ---- */
#room-code { letter-spacing: 10px; }
#lobby-players { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lobby-player {
  background: var(--bg-panel);
  border: 2px solid rgba(160, 107, 255, .4);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 110px;
}
.lobby-player canvas { width: 64px; height: 64px; border-radius: 10px; }
.lobby-player .lp-name { font-family: var(--font-display); font-size: 12px; letter-spacing: 1px; }
.lobby-player .lp-car { font-size: 11px; letter-spacing: 1px; }
.lobby-player .lp-host { font-size: 9px; letter-spacing: 2px; color: var(--neon-amber); text-shadow: 0 0 6px var(--neon-amber); }
.lobby-player.empty { opacity: .35; border-style: dashed; justify-content: center; min-height: 120px; font-size: 12px; letter-spacing: 1px; }

#race-msg {
  position: absolute; top: 22%; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-display); font-size: clamp(18px, 4vw, 32px); font-weight: 900;
  letter-spacing: 6px;
  color: var(--neon-lime); text-shadow: 0 0 18px var(--neon-lime);
  opacity: 0; transition: opacity .3s;
}
#race-msg.show { opacity: 1; }
#race-msg.bad { color: #ff4466; text-shadow: 0 0 18px #ff4466; }

/* ============ COUNTDOWN ============ */
#countdown {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(90px, 24vmin, 220px);
  color: var(--neon-cyan);
  text-shadow: 0 0 30px var(--neon-cyan), 0 0 120px var(--neon-cyan);
}
#countdown.go { color: var(--neon-lime); text-shadow: 0 0 30px var(--neon-lime), 0 0 120px var(--neon-lime); }
#countdown span { animation: countPop .9s ease-out; display: block; }
@keyframes countPop {
  0% { transform: scale(2.6); opacity: 0; }
  25% { transform: scale(1); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: scale(.8); opacity: 0; }
}

/* ============ RESULTADOS ============ */
.results-cols { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; max-width: 94vw; }
.results-panel {
  background: var(--bg-panel);
  border: 1px solid rgba(160, 107, 255, .4);
  border-radius: 12px;
  padding: 14px 18px;
  min-width: min(320px, 90vw);
}
.results-panel h3 { font-family: var(--font-display); font-size: 13px; letter-spacing: 3px; color: var(--neon-purple); margin-bottom: 10px; }
.results-panel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.results-panel td, .results-panel th { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.results-panel th { font-size: 10px; letter-spacing: 2px; opacity: .55; }
.results-panel tr.me { background: rgba(0, 240, 255, .12); }
.results-panel tr.me td:first-child { color: var(--neon-cyan); }
.pos-1 { color: var(--neon-amber); font-weight: 700; }
.results-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ============ GIRE O CELULAR ============ */
#rotate-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(ellipse at center, #17002e, var(--bg-deep));
}
.phone-anim { position: relative; width: 120px; height: 120px; }
.phone {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 96px;
  border: 3px solid var(--neon-cyan); border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 240, 255, .7), inset 0 0 12px rgba(0, 240, 255, .3);
  animation: phoneRotate 2.4s ease-in-out infinite;
}
.phone-screen { position: absolute; inset: 6px; background: linear-gradient(160deg, rgba(255, 45, 149, .5), rgba(0, 240, 255, .3)); border-radius: 4px; }
@keyframes phoneRotate {
  0%, 15% { transform: rotate(0deg); }
  55%, 85% { transform: rotate(90deg); }
  100% { transform: rotate(90deg); }
}
.rotate-arrow {
  position: absolute; top: -22px; right: -26px;
  font-size: 34px; color: var(--neon-magenta);
  text-shadow: 0 0 12px var(--neon-magenta);
  animation: arrowSpin 2.4s ease-in-out infinite;
}
@keyframes arrowSpin { 0%, 15% { transform: rotate(0); opacity: 1; } 55%, 100% { transform: rotate(100deg); opacity: .3; } }
.rotate-text { font-family: var(--font-display); font-size: 22px; letter-spacing: 5px; color: var(--neon-cyan); text-shadow: 0 0 14px var(--neon-cyan); animation: blink 1.4s steps(2) infinite; }
.rotate-sub { font-size: 14px; letter-spacing: 2px; opacity: .65; }

/* mobile paisagem: telas mais compactas */
@media (max-height: 480px) {
  .screen { gap: 8px; justify-content: flex-start; padding-top: 14px; }
  .car-card { width: 158px; padding: 8px; }
  .car-desc { display: none; }
  .results-panel { padding: 8px 12px; }
  .results-panel table { font-size: 12px; }
}
