/* ========================================
   FLASHCARD STYLES — Elevated Edition v2
   ======================================== */

/* ── Top Bar (stats + star) ── */
.fc-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding: 14px 20px;
  background: linear-gradient(135deg, rgba(26,26,40,0.9) 0%, rgba(20,20,32,0.95) 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
.fc-topbar-left { display: flex; align-items: center; gap: 14px; }
.fc-stat-chip { display: flex; align-items: baseline; gap: 6px; }
.fc-stat-number { font-size: 1.4rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.fc-stat-number.total { color: var(--text-primary); }
.fc-stat-text { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.fc-stat-divider { width: 1px; height: 20px; background: var(--border-light); }
.fc-topbar-right { display: flex; align-items: center; gap: 8px; }
.fc-bookmark-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: var(--radius-md);
  background: var(--bg-tertiary); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  font-size: 0.82rem; font-weight: 500; font-family: inherit;
}
.fc-bookmark-btn:hover { color: var(--text-primary); border-color: var(--border-light); background: var(--bg-card); }
.fc-bookmark-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.fc-bookmark-btn svg { width: 16px; height: 16px; }

/* ── Deck Selectors ── */
.fc-deck-row { display: flex; gap: 10px; margin-bottom: 20px; }
.fc-select {
  flex: 1; padding: 11px 16px;
  background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-size: 0.88rem; font-family: inherit; cursor: pointer;
  transition: all 0.2s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364648a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.fc-select:hover { border-color: rgba(255,255,255,0.12); }
.fc-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,0.08); }

/* ── Lock Overlay (trial gating) ── */
.fc-lock-wrap { position: relative; flex: 1; display: flex; }
.fc-lock-wrap .fc-select { pointer-events: none; }
.fc-lock-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: var(--bg-primary);
  font-size: 0.7rem; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; z-index: 2;
  box-shadow: 0 2px 6px rgba(245,158,11,0.4);
  pointer-events: none;
}

/* ── Flashcard Container ── */
.flashcard-container { perspective: 1200px; margin-bottom: 20px; }
.flashcard {
  position: relative; width: 100%; height: 400px;
  cursor: pointer; transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.flashcard.flipped { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute; width: 100%; height: 100%;
  backface-visibility: hidden; border-radius: var(--radius-xl);
  display: flex; flex-direction: column; overflow: hidden;
}
.flashcard-front {
  background: #111116;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.flashcard-front::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #3b82f6, #22c55e, #a855f7);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1;
}
.flashcard:hover .flashcard-front { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.flashcard-back {
  background: #111116;
  border: 1px solid rgba(255,255,255,0.06);
  transform: rotateY(180deg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.flashcard-back::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #a855f7, #22c55e, #3b82f6, #f59e0b, #ef4444);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1;
}
.flashcard-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.flashcard-chapter {
  font-size: 0.74rem; color: #64648a; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 600;
}
.flashcard-number { font-size: 0.8rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.star-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--radius-sm); transition: all 0.2s; }
.star-btn:hover { background: var(--accent-dim); }
.star-btn svg { width: 20px; height: 20px; color: var(--text-muted); transition: all 0.2s; }
.star-btn.starred svg { color: var(--accent); fill: var(--accent); filter: drop-shadow(0 0 6px rgba(245,158,11,0.4)); }
.flashcard-content { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 28px 32px; text-align: center; overflow-y: auto; min-height: 0; }
.flashcard-text { font-size: 1.3rem; line-height: 1.7; max-width: 580px; margin: auto 0; }
.flashcard-front .flashcard-text { font-weight: 500; color: var(--text-primary); }
.flashcard-back .flashcard-text { color: var(--text-secondary); font-size: 1.15rem; }
.flashcard-footer { padding: 12px 22px; border-top: 1px solid rgba(255,255,255,0.04); text-align: center; }
.flip-hint { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* ── Recall Rating Buttons ── */
.sr-buttons {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 16px;
}
.sr-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px;
  background: #16161e; border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.sr-btn::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; border-radius: 1px; opacity: 0; transition: opacity 0.25s;
}
.sr-btn:hover { transform: translateY(-3px); }
.sr-btn:hover::after { opacity: 1; }
.sr-btn:active { transform: translateY(-1px) scale(0.98); }

.sr-btn.again:hover { border-color: rgba(239,68,68,0.3); }
.sr-btn.again::after { background: #ef4444; }

.sr-btn.hard:hover { border-color: rgba(245,158,11,0.3); }
.sr-btn.hard::after { background: #f59e0b; }

.sr-btn.good:hover { border-color: rgba(59,130,246,0.3); }
.sr-btn.good::after { background: #3b82f6; }

.sr-btn.easy:hover { border-color: rgba(34,197,94,0.3); }
.sr-btn.easy::after { background: #22c55e; }

.sr-btn.mastered:hover { border-color: rgba(168,85,247,0.3); }
.sr-btn.mastered::after { background: #a855f7; }

.sr-label { font-size: 0.88rem; font-weight: 600; position: relative; z-index: 1; }
.sr-time { font-size: 0.68rem; color: var(--text-muted); position: relative; z-index: 1; letter-spacing: 0.02em; }
.sr-btn.again .sr-label { color: var(--danger); }
.sr-btn.hard .sr-label { color: var(--accent); }
.sr-btn.good .sr-label { color: rgb(59,130,246); }
.sr-btn.easy .sr-label { color: var(--success); }
.sr-btn.mastered .sr-label { color: rgb(168,85,247); }

/* ── Navigation Buttons ── */
.nav-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.nav-btn {
  display: flex; align-items: center; gap: 8px; padding: 11px 20px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.25s;
  font-family: inherit;
}
.nav-btn:hover:not(:disabled) { border-color: rgba(255,255,255,0.15); color: var(--text-primary); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.nav-btn svg { width: 18px; height: 18px; }
.nav-buttons .fc-bookmark-btn { font-family: inherit; }
.nav-buttons .fc-bookmark-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

/* ── Keyboard Hint ── */
.keyboard-hint {
  text-align: center; margin-bottom: 20px;
  font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.02em;
}
.keyboard-hint kbd {
  display: inline-block; padding: 2px 7px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 4px; font-family: inherit; font-size: 0.7rem;
  color: var(--text-secondary); margin: 0 2px;
}

/* ── Flashcard Tracker (Progress Section) ── */
.progress-section {
  padding: 22px 24px;
  background: linear-gradient(145deg, rgba(26,26,40,0.9) 0%, rgba(18,18,28,0.95) 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.progress-title { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
.progress-count { font-size: 0.82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.progress-bar {
  height: 6px; background: rgba(255,255,255,0.04); border-radius: var(--radius-full); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}
.progress-fill {
  height: 100%; border-radius: var(--radius-full); transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #d97706, var(--accent), #fbbf24);
  box-shadow: 0 0 12px rgba(245,158,11,0.35);
}
.progress-stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.progress-stat {
  text-align: center; padding: 12px 6px; border-radius: var(--radius-md);
  border: 1px solid transparent; transition: all 0.25s;
  position: relative;
}
.progress-stat.clickable { cursor: pointer; }
.progress-stat.clickable:hover {
  background: rgba(255,255,255,0.04); border-color: var(--border);
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.progress-stat-value {
  font-size: 1.4rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
#dueCount {
  background: linear-gradient(90deg, #ef4444, #f59e0b, #fbbf24, #22c55e, #3b82f6, #6366f1, #a855f7, #ec4899, #ef4444, #f59e0b, #fbbf24, #22c55e, #3b82f6, #6366f1, #a855f7, #ec4899);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow-scroll 4s linear infinite;
}
@keyframes rainbow-scroll {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.progress-stat-label {
  font-size: 0.66rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 4px; line-height: 1.3;
}
.progress-stat.new .progress-stat-value { color: var(--text-secondary); }
.progress-stat.learning .progress-stat-value { color: var(--accent); }
.progress-stat.due .progress-stat-value { color: #ef4444; }
.progress-stat.mastered .progress-stat-value { color: rgb(168,85,247); }

/* Colored bottom accent on each stat */
.progress-stat::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; border-radius: 1px; opacity: 0; transition: opacity 0.25s;
}
.progress-stat.clickable:hover::after { opacity: 1; }
.progress-stat.new::after { background: var(--text-secondary); }
.progress-stat.learning::after { background: var(--accent); }
.progress-stat.due::after { background: var(--danger); }
.progress-stat.mastered::after { background: rgb(168,85,247); }

/* ── Previous Sessions ── */
.sessions-section {
  margin-top: 20px; padding: 20px 22px;
  background: linear-gradient(135deg, rgba(26,26,40,0.85) 0%, rgba(20,20,32,0.9) 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
}
.sessions-header { display: flex; align-items: center; margin-bottom: 14px; }
.sessions-title { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.sessions-list { display: flex; flex-direction: column; gap: 6px; }
.session-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all 0.2s;
}
.session-item:hover { border-color: var(--border-light); background: rgba(255,255,255,0.04); }
.session-info { flex: 1; min-width: 0; }
.session-deck { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; }
.session-resume-btn {
  padding: 7px 18px;
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(217,119,6,0.08));
  border: 1px solid rgba(245,158,11,0.25); border-radius: var(--radius-full);
  color: var(--accent-light); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; margin-left: 12px;
}
.session-resume-btn:hover { background: var(--accent); color: var(--bg-primary); box-shadow: 0 2px 12px rgba(245,158,11,0.2); }

/* ── Category Popup ── */
.category-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(6px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.category-popup-overlay.open { display: flex; }
.category-popup {
  background: linear-gradient(160deg, #1e1e2a 0%, #16161f 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  width: 90%; max-width: 560px; max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.1);
}
.category-popup-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.category-popup-title { font-size: 1.1rem; font-weight: 600; }
.category-popup-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: var(--radius-sm); transition: color 0.2s; }
.category-popup-close:hover { color: var(--text-primary); }
.category-popup-list { overflow-y: auto; padding: 8px; flex: 1; }
.category-popup-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.15s;
  border: 1px solid transparent;
}
.category-popup-item:hover { background: rgba(255,255,255,0.04); border-color: var(--border); }
.category-popup-item-num { font-size: 0.75rem; color: var(--text-muted); min-width: 28px; padding-top: 2px; }
.category-popup-item-q { font-size: 0.9rem; color: var(--text-primary); line-height: 1.4; }
.category-popup-item-ch { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.category-popup-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 0.9rem; }

/* ── Empty State ── */
.empty-state {
  text-align: center; padding: 72px 24px;
  background: linear-gradient(145deg, rgba(26,26,40,0.9) 0%, rgba(18,18,28,0.95) 100%);
  border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 20px; }
.empty-state-title { font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.empty-state-desc { color: var(--text-muted); max-width: 400px; margin: 0 auto; font-size: 0.92rem; line-height: 1.6; }

/* ── Loading State ── */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; }
.loading-spinner { width: 40px; height: 40px; border: 2.5px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: fc-spin 0.8s linear infinite; }
@keyframes fc-spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 16px; color: var(--text-muted); font-size: 0.88rem; }

/* ── Mode Selection Screen ── */
.fc-mode-select { max-width: 900px; margin: 0 auto; }
.fc-mode-header { text-align: center; margin-bottom: 28px; }
.fc-mode-heading { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.fc-mode-sub { font-size: 0.9rem; color: var(--text-muted); }
.fc-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fc-mode-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 40px 32px 36px; border-radius: var(--radius-lg);
  cursor: pointer; transition: all 0.35s ease;
  background: linear-gradient(160deg, rgba(26,26,40,0.95) 0%, rgba(20,20,32,1) 100%);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.fc-mode-panel:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.fc-mode-panel.classic:hover { border-color: rgba(59,130,246,0.35); }
.fc-mode-panel.adaptive {
  background: linear-gradient(160deg, #1a170e 0%, #141008 40%, #18140c 70%, #1c1810 100%);
  border-color: rgba(245,158,11,0.15);
}
.fc-mode-panel.adaptive:hover {
  border-color: rgba(245,158,11,0.4);
  box-shadow: 0 12px 40px rgba(245,158,11,0.08), 0 4px 24px rgba(0,0,0,0.3);
}
.fc-mode-panel-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px; pointer-events: none;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
}
.fc-mode-panel-glow.adaptive-glow { background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%); }
.fc-mode-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.06));
  border: 1px solid rgba(59,130,246,0.2); color: var(--blue);
}
.fc-mode-icon.adaptive-icon {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(217,119,6,0.08));
  border-color: rgba(245,158,11,0.25);
  box-shadow: 0 0 24px rgba(245,158,11,0.06);
}
.fc-mode-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.fc-mode-title.adaptive-title { color: #fbbf24; }
.fc-mode-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; max-width: 340px; }
.fc-mode-features { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; margin-bottom: 24px; }
.fc-mode-feature { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.fc-mode-feature svg { color: var(--blue); flex-shrink: 0; }
.fc-mode-feature.adaptive-feature svg { color: #d97706; }
.fc-mode-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 0; border-radius: var(--radius-full);
  font-size: 0.95rem; font-weight: 700; transition: all 0.25s; margin-top: auto;
}
.fc-mode-btn.classic-btn {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.08));
  border: 1px solid rgba(59,130,246,0.3); color: var(--blue);
}
.fc-mode-panel.classic:hover .classic-btn { background: var(--blue); color: #fff; box-shadow: 0 4px 20px rgba(59,130,246,0.25); }
.fc-mode-btn.adaptive-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #06060a; box-shadow: 0 2px 14px rgba(245,158,11,0.2);
}
.fc-mode-panel.adaptive:hover .adaptive-btn { box-shadow: 0 4px 24px rgba(245,158,11,0.3); transform: scale(1.02); }

/* ── Back to Modes Button ── */
.fc-back-to-modes {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; margin-bottom: 24px;
  background: var(--bg-tertiary); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); color: var(--text-secondary);
  font-size: 0.92rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.25s;
}
.fc-back-to-modes:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); background: var(--bg-card); transform: translateX(-2px); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .fc-mode-grid { grid-template-columns: 1fr; gap: 16px; }
  .fc-mode-panel { padding: 24px 20px 22px; }
  .fc-mode-heading { font-size: 1.3rem; }
  .fc-topbar { flex-direction: column; gap: 10px; padding: 12px 16px; }
  .fc-topbar-left { width: 100%; justify-content: center; }
  .fc-topbar-right { width: 100%; justify-content: center; }
  .fc-deck-row { flex-direction: column; }
  .flashcard { height: 340px; }
  .flashcard-text { font-size: 1.15rem; }
  .sr-buttons { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .sr-btn { padding: 10px 2px; }
  .sr-label { font-size: 0.78rem; }
  .sr-time { font-size: 0.62rem; }
  .progress-stats { grid-template-columns: repeat(3, 1fr) !important; }
  .keyboard-hint { display: none; }
}
@media (max-width: 480px) {
  .sr-buttons { grid-template-columns: repeat(5, 1fr); }
  .sr-btn { padding: 8px 2px; }
  .sr-label { font-size: 0.72rem; }
  .nav-btn { padding: 10px 14px; font-size: 0.8rem; }
  .keyboard-hint { display: none; }
}
