/* jeeprep.online — PART 2: DEDICATED MOBILE EXPERIENCE */
html[data-device="mobile"] .desktop-only,
html[data-device="mobile"] .desktop-flex,
html[data-device="mobile"] .desktop-shortcuts {
  display: none !important;
}

html[data-device="mobile"] .mobile-only {
  display: block;
}

html[data-device="mobile"] .container {
  max-width: 540px;
  padding: 0 14px;
}

/* Mobile Ultra-Thin Compact Header */
html[data-device="mobile"] .site-header {
  background: rgba(5, 8, 17, 0.92);
}

html[data-device="mobile"] .header-inner {
  min-height: 36px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html[data-device="mobile"] .brand {
  gap: 7px;
}

html[data-device="mobile"] .brand-crest {
  width: 22px;
  height: 22px;
}

html[data-device="mobile"] .brand-title {
  font-size: 0.94rem;
  line-height: 1.1;
}

html[data-device="mobile"] .mobile-nav-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 3px 14px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
html[data-device="mobile"] .mobile-nav-strip::-webkit-scrollbar { display: none; }

html[data-device="mobile"] .mobile-nav-strip a {
  flex: 0 0 auto;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  line-height: 1.3;
}

html[data-device="mobile"] .mobile-nav-strip a.active {
  color: #050811;
  background: var(--accent-cyan);
  border-color: transparent;
  font-weight: 700;
}

/* Mobile Hero */
html[data-device="mobile"] .hero-academic {
  padding: 20px 0 16px;
}

html[data-device="mobile"] .hero-eyebrow {
  font-size: 0.66rem;
  padding: 4px 11px;
  margin-bottom: 10px;
}

html[data-device="mobile"] .hero-academic h1 {
  font-size: 1.65rem;
  line-height: 1.16;
  margin-bottom: 10px;
}

html[data-device="mobile"] .hero-lead {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

html[data-device="mobile"] .stat-strip {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

html[data-device="mobile"] .stat-pill {
  padding: 11px 12px;
}

html[data-device="mobile"] .stat-pill strong {
  font-size: 1rem;
}

html[data-device="mobile"] .stat-pill span {
  font-size: 0.72rem;
}

/* Mobile Cards & Setup Console */
html[data-device="mobile"] .main-section {
  padding: 16px 0 96px;
}

html[data-device="mobile"] .card {
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
}

html[data-device="mobile"] .card-header {
  padding-bottom: 12px;
  margin-bottom: 16px;
  gap: 10px;
}

html[data-device="mobile"] .card-title {
  font-size: 1.2rem;
}

html[data-device="mobile"] .step-block {
  padding: 14px;
}

html[data-device="mobile"] .choice-pill {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.84rem;
}

html[data-device="mobile"] .dual-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

html[data-device="mobile"] .chapter-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 260px;
}

html[data-device="mobile"] .chapter-item {
  padding: 12px;
}

/* Mobile Sticky Bottom Launch Bar for Setup */
html[data-device="mobile"] .launch-bar {
  position: sticky;
  bottom: 10px;
  z-index: 40;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
  background: rgba(5, 8, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.55);
}

html[data-device="mobile"] .launch-summary {
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

html[data-device="mobile"] #btn-start-exam {
  width: 100%;
  min-height: 48px;
  font-size: 0.96rem;
}

/* Mobile Exam Room: Compact Sticky HUD + Swipeable Card + Bottom Sheet Palette + Thumb Bar */
html[data-device="mobile"] .exam-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  gap: 8px;
}

html[data-device="mobile"] .exam-topbar-title {
  font-size: 0.92rem !important;
}

html[data-device="mobile"] .exam-timer {
  font-size: 1rem;
  padding: 5px 12px;
}

html[data-device="mobile"] .exam-layout {
  display: block;
}

html[data-device="mobile"] .exam-question-card {
  padding: 18px 16px 20px;
  border-top: 1px solid var(--border-glass);
  border-radius: 18px;
}

html[data-device="mobile"] .question-stem {
  font-size: 1.02rem;
  line-height: 1.62;
  margin-bottom: 18px;
}

html[data-device="mobile"] .option-btn {
  min-height: 54px;
  padding: 13px 14px;
  font-size: 0.94rem;
  gap: 12px;
}

html[data-device="mobile"] .exam-nav-bar {
  display: none;
}

/* Fixed Thumb-Zone Bottom Exam Bar */
html[data-device="mobile"] .mobile-exam-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 17, 0.94);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid var(--border-strong);
}

html[data-device="mobile"] .mobile-exam-dock .btn {
  padding: 10px 8px;
  font-size: 0.8rem;
  min-height: 44px;
  border-radius: 12px;
}

/* Slide-Up Bottom Sheet Palette Drawer on Mobile */
html[data-device="mobile"] .mobile-palette-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

html[data-device="mobile"] .palette-card {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  max-height: 78vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.97);
  border-top: 1px solid var(--border-strong);
  transform: translateY(105%);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-device="mobile"] .palette-card.sheet-open {
  transform: translateY(0);
}

html[data-device="mobile"] .palette-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

html[data-device="mobile"] .pal-btn {
  height: 40px;
}

/* Mobile Results & Subject Hubs */
html[data-device="mobile"] .score-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

html[data-device="mobile"] .score-tile {
  padding: 12px 10px;
}

html[data-device="mobile"] .score-tile strong {
  font-size: 1.35rem;
}

html[data-device="mobile"] .review-options {
  grid-template-columns: 1fr;
}

html[data-device="mobile"] .seo-grid,
html[data-device="mobile"] .next-tests-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

html[data-device="mobile"] .site-footer {
  padding: 20px 0 24px;
  margin-top: 28px;
}
