* { box-sizing: border-box; }
body { margin: 0; font-family: Verdana, Geneva, sans-serif; background: #eef1e6; color: #1d2416; }
.wrap { max-width: 520px; margin: 0 auto; padding: 16px 14px 28px; }
.head h1 { margin: 6px 0 6px; font-size: 34px; letter-spacing: -0.5px; color: #14532d; }
.sub { margin: 0; line-height: 1.5; font-size: 15px; color: #374151; }
.scoreboard { display: flex; gap: 8px; margin: 14px 0 10px; }
.stat { flex: 1; background: #fff; border: 2px solid #14532d; border-radius: 10px; padding: 8px 4px; text-align: center; }
.stat .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; }
.stat .value { display: block; font-size: 22px; font-weight: 700; }
.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-main { background: #14532d; color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font-size: 16px; font-weight: 700; cursor: pointer; min-height: 48px; }
.btn-main:active { transform: translateY(1px); }
.hint { margin: 0; font-size: 13px; color: #4b5563; flex: 1; min-width: 180px; }
.road-frame { margin-top: 12px; }
.lane-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #14532d; padding: 0 18px 6px; }
.road { position: relative; height: 540px; background: #3f4448; border: 4px solid #222; border-radius: 14px; overflow: hidden; touch-action: manipulation; }
.median { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: repeating-linear-gradient(#facc15 0 18px, transparent 18px 36px); opacity: 0.9; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; }
.dot-wrong { background: #dc2626; }
.dot-ok { background: #16a34a; }
.motor { position: absolute; width: 84px; min-height: 58px; margin-left: -42px; border-radius: 12px; border: 3px solid #16a34a; background: #fef9c3; cursor: pointer; padding: 4px 2px; text-align: center; line-height: 1.1; }
.bike-svg { display: block; width: 62px; height: 43px; margin: 0 auto; }
.motor.crashed { border-color: #7f1d1d; background: #450a0a; color: #fff; transform: rotate(-8deg); }
.motor.crashed .tag { color: #fecaca; }
.motor .tag { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.03em; }
.motor.wrong { border-color: #dc2626; background: #fee2e2; box-shadow: 0 0 0 3px #fca5a5; }
.motor.wrong .tag { color: #b91c1c; }
.motor.ok .tag { color: #15803d; }
.motor.turning { transition: transform 0.35s ease; }
.motor.fixed { border-color: #16a34a; background: #dcfce7; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(20, 30, 18, 0.78); color: #fff; z-index: 5; }
.overlay.hidden { display: none; }
.overlay-title { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.overlay-text { margin: 0; line-height: 1.5; max-width: 320px; }
.how { background: #fff; border-radius: 12px; padding: 12px 16px; margin-top: 16px; }
.how h2 { margin: 4px 0 8px; font-size: 18px; }
.how ol { margin: 0; padding-left: 20px; line-height: 1.55; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .motor.turning { transition: none; } .btn-main:active { transform: none; } }
