/* /lai-xe: 3D driving hub. Uses the app's design tokens so it follows light and dark themes. */
.drive-view { display: grid; gap: 18px; min-width: 0; }
.drive-view a { text-decoration: none; }
.drive-eyebrow { margin: 0 0 5px; font-size: 10px; font-weight: 750; letter-spacing: .12em; color: var(--faint); }
.drive-view h2 { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: -.35px; font-weight: 750; color: var(--text); }
.drive-text { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Hero: navy, as the home showcase. */
.drive-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 26px; align-items: center; padding: 30px; border-radius: 22px; color: #fff; background: radial-gradient(110% 90% at 100% 0%, #24457a 0%, transparent 55%), linear-gradient(135deg, #172c4e, #0f213f); }
.drive-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url(/features/game3d/cockpit-hai-van.jpg) 70% 45% / cover no-repeat; opacity: .16; mask-image: linear-gradient(90deg, transparent 25%, #000 80%); -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 80%); }
.drive-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border: 1px solid #ffffff1f; border-radius: 999px; background: #ffffff0d; color: #a9c6f5; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.drive-kicker > i { width: 7px; height: 7px; border-radius: 50%; background: #5fd3a5; box-shadow: 0 0 0 4px #5fd3a524; }
.drive-hero h1 { margin: 14px 0 8px; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -1.4px; font-weight: 800; color: #fff; }
.drive-hero p { margin: 0 0 20px; max-width: 48ch; color: #b4c4dc; font-size: 13.5px; line-height: 1.75; }
.drive-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.drive-hero-stats { display: grid; gap: 10px; }
.drive-hero-stats > div { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 13px 15px; border: 1px solid #ffffff1a; border-radius: 15px; background: #0b1a33a6; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.drive-stat-icon { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #ffffff12; color: #8dbbff; }
.drive-hero-stats b { font-size: 21px; line-height: 1.25; font-weight: 750; color: #fff; }
.drive-hero-stats b small { font-size: 12px; color: #86a1c8; font-weight: 500; margin-left: 2px; }
.drive-hero-stats b.drive-stat-text { font-size: 15px; }
.drive-hero-stats span:last-child { font-size: 11.5px; color: #9fb3d2; }

/* Buttons. */
.drive-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 17px; border-radius: 11px; font-size: 13px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s; }
.drive-btn:hover { transform: translateY(-1px); }
.drive-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.drive-btn-light { background: #fff; color: #173a75; box-shadow: 0 8px 20px #040b1a40; }
.drive-btn-light:hover { color: #173a75; background: #eef4ff; }
.drive-btn-outline { border: 1px solid #ffffff40; background: #ffffff0f; color: #eef4ff; }
.drive-btn-outline:hover { color: #fff; border-color: #8dbbff; background: #ffffff1a; }
.drive-btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 5px 14px #1d5fd133; }
.drive-btn-primary:hover { color: var(--primary-ink); box-shadow: 0 8px 20px #1d5fd144; }
.drive-btn-soft { background: var(--primary-soft); color: var(--primary); }
.drive-btn-soft:hover { color: var(--primary); }
.drive-btn-ghost { border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.drive-btn-ghost:hover { color: var(--text); border-color: var(--primary); }

/* Panels. */
.drive-panel { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.drive-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.drive-count { flex: none; font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 999px; background: var(--surface-2); }
.drive-count b { color: var(--text); font-size: 14px; }
.drive-status { flex: none; font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.drive-status-done { background: var(--ok-soft); color: var(--ok); }
.drive-status-going { background: var(--primary-soft); color: var(--primary); }
.drive-status-retry { background: var(--warn-soft); color: var(--warn); }

/* Combined practical test. */
.drive-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.drive-step { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.drive-step b { display: block; font-size: 14px; color: var(--text); }
.drive-step div span { font-size: 12px; color: var(--muted); }
.drive-step-mark { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 750; font-size: 13px; }
.drive-step-next { border-color: var(--primary); background: var(--primary-soft); }
.drive-step-next .drive-step-mark { border-color: var(--primary); color: var(--primary); }
.drive-step-passed .drive-step-mark { border-color: var(--ok); background: var(--ok); color: #fff; }
.drive-step-failed .drive-step-mark { border-color: var(--warn); color: var(--warn); }
.drive-exam-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.drive-exam-actions p { margin: 0 0 0 auto; font-size: 12px; color: var(--muted); }
.drive-exam-actions p a { color: var(--primary); font-weight: 650; }

/* Yard lessons. */
.drive-lessons { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.drive-lesson { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 13px; color: var(--text); background: var(--surface); transition: border-color .2s, background .2s, transform .2s; }
.drive-lesson:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--text); transform: translateY(-1px); }
.drive-lesson-no { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: 700 12px/1 var(--font); }
.drive-lesson.tried .drive-lesson-no { background: var(--primary-soft); color: var(--primary); }
.drive-lesson.passed .drive-lesson-no { background: var(--ok-soft); color: var(--ok); }
.drive-lesson-text { display: flex; flex-direction: column; min-width: 0; }
.drive-lesson-text b { font-size: 13px; font-weight: 650; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-lesson-text small { font-size: 11px; color: var(--faint); }

/* Road test and city streets. */
.drive-two { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 18px; }
.drive-routes { display: grid; gap: 10px; }
.drive-route { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 9px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: border-color .2s, background .2s; }
.drive-route:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.drive-route img { width: 112px; height: 70px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }
.drive-route div { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.drive-route b { font-size: 14px; display: flex; align-items: baseline; gap: 7px; }
.drive-route b small { font-size: 11px; font-weight: 500; color: var(--faint); }
.drive-route span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.drive-route em { font-style: normal; font-size: 11px; color: var(--faint); }
.drive-route em.passed { color: var(--ok); font-weight: 650; }
.drive-route > svg { color: var(--faint); margin-right: 6px; }
.drive-courses { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.drive-courses li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 11px; background: var(--surface-2); font-size: 13px; }
.drive-courses li svg { color: var(--primary); }
.drive-courses li span { color: var(--faint); font-size: 12px; justify-self: end; }

/* Xuyên Việt. */
.drive-journey { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.drive-journey-media { position: relative; min-height: 260px; background: #24385a; }
.drive-journey-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.drive-journey-body { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.drive-journey-body h2 { margin-bottom: 8px !important; font-size: 22px !important; }
.drive-vehicle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 12px; border-radius: 11px; background: var(--primary-soft); color: var(--text); font-size: 12.5px; }
.drive-vehicle svg { color: var(--primary); }
.drive-vehicle a { color: var(--primary); font-weight: 650; margin-left: 4px; }
.drive-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.drive-chips span { display: inline-flex; align-items: center; gap: 5px; margin-right: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--faint); }
.drive-chips a { padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text); background: var(--surface); transition: border-color .2s, color .2s; }
.drive-chips a:hover { border-color: var(--primary); color: var(--primary); }

/* Theory links and footer. */
.drive-links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.drive-links a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 11px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); transition: border-color .2s, transform .2s; }
.drive-links a:hover { border-color: var(--primary); color: var(--text); transform: translateY(-1px); }
.drive-link-icon { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; }
.drive-links b { font-size: 13.5px; }
.drive-links small { font-size: 11.5px; color: var(--faint); }
.tone-blue { color: #2868db; background: #edf3ff; } .tone-orange { color: #d97a1c; background: #fff3e3; } .tone-teal { color: #289887; background: #e7f5f1; }
[data-theme=dark] .tone-blue { background: #1d2f4b; color: #8bb8fc; } [data-theme=dark] .tone-orange { background: #3a2a10; color: #ffb547; } [data-theme=dark] .tone-teal { background: #1e3735; color: #74c3b3; }
.drive-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 2px 4px 6px; font-size: 12px; color: var(--faint); }
.drive-foot span { display: inline-flex; align-items: center; gap: 6px; }
.drive-foot a { margin-left: auto; color: var(--primary); font-weight: 650; }
.drive-foot .drive-sync svg { color: var(--ok); }
.drive-foot .drive-sync b { color: var(--text); margin-left: 3px; }
.drive-foot .drive-sync a { margin-left: 0; }

@media (max-width: 1023px) {
  .drive-hero { grid-template-columns: 1fr; padding: 24px; }
  .drive-hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .drive-hero-stats > div { grid-template-columns: 1fr; row-gap: 4px; }
  .drive-stat-icon { grid-row: auto; width: 34px; height: 34px; }
  .drive-two { grid-template-columns: 1fr; }
  .drive-lessons { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .drive-view { gap: 14px; }
  .drive-hero { padding: 20px 18px; border-radius: 20px; }
  .drive-hero-stats { gap: 7px; }
  .drive-hero-stats > div { padding: 10px; }
  .drive-hero-stats b { font-size: 18px; }
  .drive-hero-stats b.drive-stat-text { font-size: 12.5px; }
  .drive-hero-stats span:last-child { font-size: 11.5px; }
  .drive-panel { padding: 17px 15px; border-radius: 16px; }
  .drive-view h2 { font-size: 16px; }
  .drive-steps, .drive-links { grid-template-columns: 1fr; }
  .drive-lessons { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
  .drive-lesson { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; }
  .drive-lesson-text b { white-space: normal; font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .drive-lesson-no { width: 28px; height: 28px; border-radius: 9px; }
  .drive-exam-actions p { margin: 4px 0 0; width: 100%; }
  .drive-journey { grid-template-columns: 1fr; }
  .drive-journey-media { min-height: 0; aspect-ratio: 16 / 8; }
  .drive-journey-body { padding: 17px 15px; }
  .drive-route { grid-template-columns: 88px minmax(0,1fr); }
  .drive-route img { width: 88px; height: 58px; }
  .drive-route > svg { display: none; }
  .drive-foot a { margin-left: 0; }
}
@media (max-width: 374px) {
  .drive-hero-stats { grid-template-columns: 1fr; }
  .drive-hero-stats > div { grid-template-columns: auto 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .drive-btn, .drive-lesson, .drive-links a { transition: none; }
  .drive-btn:hover, .drive-lesson:hover, .drive-links a:hover { transform: none; }
}

/* Touch screens: every link at least ~38px tall. */
@media (pointer: coarse) {
  .drive-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; }
  .drive-vehicle a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 6px; margin: -8px -6px -8px 0; }
  .drive-foot a { display: inline-flex; align-items: center; min-height: 40px; }
  .drive-exam-actions p a { display: inline-flex; align-items: center; min-height: 36px; }
}
