/**
 * ACHunterSRS.css - AC Hunter SRS System Styles
 * Adapted from Hanzi Hunter with Sardegna color palette
 * All classes prefixed with "ac-srs-" to avoid conflicts
 */

/* ========== THEME TOKENS ========== */
:root {
  /* Original HH color palette (bright, clean) */
  --ac-srs-red: #FF4C4C;           /* Daily Hunt - bright red */
  --ac-srs-blue: #2196F3;          /* Hunter Practice - bright blue */
  --ac-srs-yellow: #FFEB3B;        /* Due - bright yellow */
  --ac-srs-green: #4CAF50;         /* Prey - bright green */
  
  /* Surfaces & text */
  --ac-srs-bg: #f0f2f5;
  --ac-srs-card-bg: #fff;
  --ac-srs-text-main: #2c3e50;
  --ac-srs-text-sub: #666;
  --ac-srs-shadow: rgba(0, 0, 0, 0.12);
  
  /* Sizing */
  --ac-srs-char-size: 96px;
  --ac-srs-card-pad: 16px;
  
  /* Header gradient (HH original rainbow) */
  --ac-srs-header-gradient: linear-gradient(
    to right,
    #ff4b1f, #ff9068, #ffd452, #3ddc97, #00a8f3, #7b2ff7
  );
  
  /* Range sliders */
  --ac-srs-range-track-light: #e5eef7;
  --ac-srs-range-track-dark: #2a2f36;
  
  /* Handwritten font stack */
  --ac-srs-kaiti-stack:
    "LXGW WenKai",
    "Ma Shan Zheng", "Zhi Mang Xing", "Long Cang",
    system-ui, -apple-system, "Noto Sans CJK SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Serif SC", serif;
}

/* Dark theme */
html[data-theme="dark"] {
  --ac-srs-bg: #121212;
  --ac-srs-card-bg: #1e1e1e;
  --ac-srs-text-main: #e0e0e0;
  --ac-srs-text-sub: #aaa;
  --ac-srs-shadow: rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ac-srs-bg: #121212;
    --ac-srs-card-bg: #1e1e1e;
    --ac-srs-text-main: #e0e0e0;
    --ac-srs-text-sub: #aaa;
    --ac-srs-shadow: rgba(0, 0, 0, 0.6);
  }
}

/* ========== OVERLAY PANEL ========== */
.ac-srs-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.ac-srs-overlay.ac-srs-active {
  display: flex;
  opacity: 1;
}

.ac-srs-panel {
  background: var(--ac-srs-bg);
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-srs-overlay.ac-srs-active .ac-srs-panel {
  transform: translateY(0);
}

/* ========== HEADER ========== */
.ac-srs-header {
  background: var(--ac-srs-card-bg);
  color: var(--ac-srs-text-main);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ac-srs-header-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-theme="dark"] .ac-srs-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ac-srs-title {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--ac-srs-text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ac-srs-header-spacer {
  flex: 1;
}

/* List selector - lightweight with colored left border */
.ac-srs-list-select {
  appearance: none;
  background: white;
  color: var(--ac-srs-text-main);
  border: none;
  border-left: 3px solid #FF4C4C;
  border-radius: 8px;
  padding: 0.4rem 1.5rem 0.4rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 140px;
  max-width: 220px;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
}

.ac-srs-list-select:hover {
  border-left-color: #ff6666;
  box-shadow: 0 0 0 3px rgba(255, 76, 76, 0.1);
}

.ac-srs-list-select:focus {
  outline: none;
  border-left-color: #ff6666;
  box-shadow: 0 0 0 3px rgba(255, 76, 76, 0.15);
}

/* Dark mode for list select */
html[data-theme="dark"] .ac-srs-list-select {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* ABCD badge - lightweight with green accent */
.ac-srs-abcd-badge {
  background: white;
  color: var(--ac-srs-text-main);
  border: 2px solid #4CAF50;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-srs-abcd-badge:hover {
  background: rgba(76, 175, 80, 0.1);
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.ac-srs-abcd-badge:active {
  transform: scale(0.92);
  transition-duration: 0.1s;
}

html[data-theme="dark"] .ac-srs-abcd-badge {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* Hamburger menu - lightweight with green accent */
.ac-srs-hamburger {
  background: white;
  color: var(--ac-srs-text-main);
  border: none;
  border-left: 3px solid #4CAF50;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ac-srs-hamburger:hover {
  border-left-color: #66BB6A;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

html[data-theme="dark"] .ac-srs-hamburger {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* Close button - lightweight */
.ac-srs-close {
  background: white;
  color: var(--ac-srs-text-main);
  border: none;
  border-left: 3px solid #999;
  font-size: 1.5rem;
  font-weight: 400;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

.ac-srs-close:hover {
  border-left-color: #FF4C4C;
  color: #FF4C4C;
  box-shadow: 0 0 0 3px rgba(255, 76, 76, 0.1);
}

html[data-theme="dark"] .ac-srs-close {
  background: #2a2a2a;
  color: #e0e0e0;
}

/* ========== LOADED INFO ========== */
.ac-srs-loaded-stats {
  text-align: center;
  font-size: 14px;
  color: var(--ac-srs-text-sub);
  padding: 8px 16px;
  background: var(--ac-srs-bg);
}

/* ========== CONTENT AREA ========== */
.ac-srs-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* ========== RANGE SLIDERS ========== */
.ac-srs-controls {
  background: var(--ac-srs-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px var(--ac-srs-shadow);
}

.ac-srs-controls .ac-srs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ac-srs-text-main);
}

.ac-srs-controls .ac-srs-nums {
  color: var(--ac-srs-text-sub);
}

.ac-srs-controls .ac-srs-num {
  font-weight: 600;
  color: var(--ac-srs-text-main);
}

.ac-srs-slider-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.ac-srs-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--ac-srs-range-track-light);
  outline: none;
}

html[data-theme="dark"] .ac-srs-slider-row input[type="range"] {
  background: var(--ac-srs-range-track-dark);
}

.ac-srs-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ac-srs-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ac-srs-slider-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* ========== 4-BUTTON GRID ========== */
.ac-srs-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 400px;
  margin: 36px auto;  /* Add vertical space: 36px top and bottom */
}

.ac-srs-btn {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 18px var(--ac-srs-shadow);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  line-height: 1.3;
  text-align: center;
  padding: 16px 8px;
}

.ac-srs-btn:hover {
  box-shadow: 0 8px 24px var(--ac-srs-shadow);
}

.ac-srs-btn:active {
  transform: translateY(1px);
}

html[data-theme="dark"] .ac-srs-btn {
  border-color: #444;
}

/* Original HH button colors (flat, bright) */
.ac-srs-btn-daily {
  background: var(--ac-srs-red);
  color: #fff;
}

.ac-srs-btn-practice {
  background: var(--ac-srs-blue);
  color: #fff;
}

.ac-srs-btn-due {
  background: var(--ac-srs-yellow);
  color: #2c3e50;
}

.ac-srs-btn-prey {
  background: var(--ac-srs-green);
  color: #fff;
}

.ac-srs-due-count {
  display: block;
  font-size: 20px;
  font-weight: 400;
  margin-top: 4px;
}

/* ========== SPEED CONTROL BAR (OPTION B LAYOUT) ========== */

/* Container for badges + speed slider */
.ac-srs-speed-control-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* Badge buttons (left and right) */
.ac-srs-control-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--ac-srs-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--ac-srs-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-srs-control-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--ac-srs-shadow);
}

.ac-srs-control-badge:active {
  transform: translateY(0);
}

/* Placeholder for right badge (🎓 is outside, managed by AC) */
.ac-srs-control-badge-placeholder {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  /* Invisible spacer to balance layout */
  visibility: hidden;
}

/* Speed control (center section) */
.ac-srs-speed-control {
  flex: 1;
  background: var(--ac-srs-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px var(--ac-srs-shadow);
}

.ac-srs-speed-control label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ac-srs-text-main);
}

.ac-srs-speed-control .ac-srs-label-text {
  min-width: 50px;
  color: var(--ac-srs-text-sub);
}

.ac-srs-speed-control input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--ac-srs-range-track-light);
  outline: none;
}

html[data-theme="dark"] .ac-srs-speed-control input[type="range"] {
  background: var(--ac-srs-range-track-dark);
}

.ac-srs-speed-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ac-srs-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ac-srs-speed-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.ac-srs-speed-value {
  min-width: 50px;
  text-align: right;
  font-weight: 600;
  color: var(--ac-srs-text-main);
}

/* ========== KEYBOARD SHORTCUTS ========== */
.ac-srs-shortcuts {
  background: var(--ac-srs-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px var(--ac-srs-shadow);
  font-size: 13px;
  color: var(--ac-srs-text-sub);
  line-height: 1.6;
  text-align: center;
}

.ac-srs-shortcuts .ac-srs-kbd {
  display: inline-block;
  background: #f0f2f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-weight: 600;
  font-size: 12px;
  color: #2c3e50;
  margin: 0 2px;
}

html[data-theme="dark"] .ac-srs-shortcuts .ac-srs-kbd {
  background: #2a2a2a;
  border-color: #555;
  color: #e0e0e0;
}

/* Hide shortcuts on mobile */
@media (max-width: 768px) {
  .ac-srs-shortcuts {
    display: none;
  }
}

/* ========== TOASTS ========== */
.ac-srs-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 1);
  color: #000;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  z-index: 10000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
  display: none;
  pointer-events: none;
}

.ac-srs-toast.ac-srs-show {
  display: block;
  animation: ac-srs-toast-fade 2s ease-in-out;
}

@keyframes ac-srs-toast-fade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* ========== MODAL OVERLAYS ========== */
.ac-srs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
}

.ac-srs-modal-overlay.ac-srs-open {
  display: flex;
}

.ac-srs-modal {
  background: var(--ac-srs-card-bg);
  color: var(--ac-srs-text-main);
  width: min(90vw, 560px);
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--ac-srs-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-modal-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.ac-srs-modal-close {
  background: var(--ac-srs-amber);
  color: #2c3e50;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.ac-srs-modal-close:hover {
  filter: brightness(0.95);
}

.ac-srs-modal-content {
  padding: 16px 18px;
  line-height: 1.6;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .ac-srs-header {
    padding: 10px 12px;
  }
  
  .ac-srs-title {
    font-size: 18px;
  }
  
  .ac-srs-list-select {
    min-width: 120px;
    font-size: 14px;
    padding: 6px 10px;
  }
  
  .ac-srs-content {
    padding: 12px;
  }
  
  .ac-srs-button-grid {
    max-width: 100%;
  }
  
  .ac-srs-btn {
    font-size: 14px;
    padding: 12px 6px;
  }
  
  .ac-srs-due-count {
    font-size: 24px;
  }
}

/* ========== ACCESSIBILITY ========== */
.ac-srs-btn:focus-visible,
.ac-srs-abcd-badge:focus-visible,
.ac-srs-hamburger:focus-visible,
.ac-srs-close:focus-visible,
.ac-srs-list-select:focus-visible {
  outline: 2px solid var(--ac-srs-blue);
  outline-offset: 2px;
}

/* ========== SETTINGS MODAL (STEP 2) ========== */
.ac-srs-settings-modal {
  width: min(95vw, 600px);
  max-height: 90vh;
}

.ac-srs-settings-content {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.ac-srs-setting-group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-setting-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ac-srs-setting-group h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ac-srs-text-main);
  margin-bottom: 16px;
}

.ac-srs-setting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.ac-srs-setting-row:last-child {
  margin-bottom: 0;
}

.ac-srs-setting-row label {
  min-width: 140px;
  font-size: 14px;
  color: var(--ac-srs-text-sub);
}

.ac-srs-setting-row select,
.ac-srs-setting-row input[type="number"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  background: var(--ac-srs-card-bg);
  color: var(--ac-srs-text-main);
}

.ac-srs-setting-row select:focus,
.ac-srs-setting-row input[type="number"]:focus {
  outline: 2px solid var(--ac-srs-blue);
  outline-offset: 0;
  border-color: var(--ac-srs-blue);
}

.ac-srs-setting-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--ac-srs-range-track-light);
  outline: none;
}

.ac-srs-setting-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ac-srs-blue);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.ac-srs-setting-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.ac-srs-setting-row > span {
  min-width: 50px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-srs-text-main);
}

/* Action buttons */
.ac-srs-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-btn-primary,
.ac-srs-btn-secondary {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ac-srs-btn-primary {
  background: var(--ac-srs-blue);
  color: white;
}

.ac-srs-btn-primary:hover {
  background: #1976D2;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.ac-srs-btn-primary:active {
  transform: translateY(0);
}

.ac-srs-btn-secondary {
  background: #e9ecef;
  color: var(--ac-srs-text-main);
}

.ac-srs-btn-secondary:hover {
  background: #dee2e6;
}

/* Setting description text */
.ac-srs-setting-desc {
  font-size: 13px;
  color: var(--ac-srs-text-sub);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Hard Track button */
.ac-srs-btn-hard-track {
  background: var(--ac-srs-amber);
  color: #2c3e50;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ac-srs-btn-hard-track:hover {
  background: var(--ac-srs-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 165, 32, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .ac-srs-settings-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .ac-srs-setting-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .ac-srs-setting-row label {
    min-width: auto;
  }
  
  .ac-srs-setting-row > span {
    text-align: left;
  }
}

/* ========== DAILY HUNT CARDS (STEP 4) - REBUILT ========== */

/* Card panel - 3-column layout */
/* ========== DAILY HUNT CARD (HH-STYLE RIGHT RAIL) ========== */

.ac-srs-card {
  margin: 12px;
  background: var(--ac-srs-card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: var(--ac-srs-card-pad, 20px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible;
  max-width: 600px;
  width: 100%;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .ac-srs-card {
    background: var(--ac-srs-card-bg);
    border-color: rgba(255, 255, 255, 0.08);
  }
}

/* Character wrap - center area */
.ac-srs-char-wrap {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding-right: 100px; /* Space for right rail */
}

/* Counter badge (top-left) */
.ac-srs-card-counter {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--ac-srs-green);
  color: white;
  font-size: 16px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  min-width: 40px;
  text-align: center;
}

/* KaiTi toggle */
.ac-srs-kaiti-toggle {
  position: absolute;
  top: 50px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.ac-srs-kaiti-toggle input[type="checkbox"] {
  cursor: pointer;
}

/* Main card content */
.ac-srs-card-main {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-left: 20px;
  padding-right: 20px;
}

.ac-srs-char {
  font-size: 48px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.ac-srs-char-py {
  font-size: 20px;
  line-height: 1;
  color: var(--ac-srs-text-sub);
  min-height: 22px;
}

.ac-srs-meta {
  font-size: 12px;
  color: var(--ac-srs-text-sub);
}

.ac-srs-char-tr {
  font-size: 15px;
  color: var(--ac-srs-text-sub);
  min-height: 22px;
}

/* KaiTi font when enabled */
.ac-srs-kaiti-active .ac-srs-char {
  font-family: "KaiTi", "STKaiti", "BiauKai", "DFKai-SB", serif;
}

/* ========== RIGHT RAIL (THUMB-FRIENDLY BUTTONS) ========== */

#ac-srs-right-rail {
  position: absolute;
  top: 0;
  right: 12px;
  width: 90px;
  display: flex;
  z-index: 10;
}

.ac-srs-rail-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  gap: 10px;
  padding-block: 16px;
}

.ac-srs-rail-btn {
  user-select: none;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 400;
  transition: transform 0.1s ease;
}

.ac-srs-rail-btn:active {
  transform: scale(0.95);
}

/* Button colors */
.ac-srs-rail-show {
  background: var(--ac-srs-blue);
  color: white;
}

.ac-srs-rail-ok {
  background: var(--ac-srs-green);
  color: white;
}

.ac-srs-rail-again {
  background: var(--ac-srs-red);
  color: white;
}

.ac-srs-rail-exit {
  background: var(--ac-srs-yellow);
  color: black;
}

@media (prefers-color-scheme: dark) {
  .ac-srs-rail-exit {
    background: #4a4a00;
    color: white;
  }
}

/* State: Pre-reveal (Show button tall, Exit small) */
.ac-srs-rail.state-prereveal .ac-srs-rail-show {
  height: 110px;
  display: flex;
}

.ac-srs-rail.state-prereveal .ac-srs-rail-exit {
  height: 20px;
  display: flex;
  font-size: 11px;
}

.ac-srs-rail.state-prereveal .ac-srs-rail-ok,
.ac-srs-rail.state-prereveal .ac-srs-rail-again {
  display: none;
}

/* State: Revealed (I knew + Again buttons, Exit small) */
.ac-srs-rail.state-revealed .ac-srs-rail-ok {
  height: 50px;
  display: flex;
}

.ac-srs-rail.state-revealed .ac-srs-rail-again {
  height: 50px;
  display: flex;
}

.ac-srs-rail.state-revealed .ac-srs-rail-exit {
  height: 20px;
  display: flex;
  font-size: 11px;
}

.ac-srs-rail.state-revealed .ac-srs-rail-show {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .ac-srs-card {
    margin: 8px;
    padding: 16px;
  }
  
  #ac-srs-right-rail {
    right: 8px;
    width: 80px;
  }
  
  .ac-srs-rail-btn {
    font-size: 13px;
  }
  
  .ac-srs-char-wrap {
    padding-right: 90px;
    min-height: 240px;
  }
}
/* ========== HARD TRACK MODAL (STEP 3) ========== */
.ac-srs-hard-modal {
  width: min(95vw, 560px);
  max-height: 90vh;
}

.ac-srs-hard-content {
  padding: 24px;
}

.ac-srs-hard-intro {
  font-size: 14px;
  color: var(--ac-srs-text-sub);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ac-srs-hard-info {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.6;
}

html[data-theme="dark"] .ac-srs-hard-info {
  background: #3a2f1f;
  border-color: #6c5522;
}

.ac-srs-hard-selector {
  margin-bottom: 24px;
}

.ac-srs-hard-selector label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ac-srs-text-main);
  margin-bottom: 16px;
}

.ac-srs-hard-selector input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  background: var(--ac-srs-card-bg);
  color: var(--ac-srs-text-main);
  text-align: center;
}

.ac-srs-hard-preview {
  background: var(--ac-srs-bg);
  padding: 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ac-srs-text-sub);
  line-height: 1.5;
}

.ac-srs-hard-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-hard-actions button {
  flex: 1;
}

/* ========== SETTINGS MODAL (STEP 2) ========== */
.ac-srs-prey-modal {
  max-height: 90vh;
  width: min(95vw, 700px);
}

/* Top controls */
.ac-srs-prey-controls {
  background: var(--ac-srs-card-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
}

.ac-srs-prey-control-row {
  margin-bottom: 12px;
}

.ac-srs-prey-control-row:last-child {
  margin-bottom: 0;
}

.ac-srs-prey-control-row label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ac-srs-text-sub);
}

.ac-srs-prey-control-row label span:first-child {
  min-width: 80px;
}

.ac-srs-prey-control-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--ac-srs-range-track-light);
  outline: none;
}

.ac-srs-prey-control-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ac-srs-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.ac-srs-prey-control-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.ac-srs-prey-control-row label span:last-child {
  min-width: 40px;
  text-align: right;
  font-weight: 600;
  color: var(--ac-srs-text-main);
}

/* Total views stats */
.ac-srs-prey-stats {
  font-size: 13px;
  color: var(--ac-srs-text-sub);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-prey-stats strong {
  color: var(--ac-srs-text-main);
  font-weight: 600;
}

/* List content */
.ac-srs-prey-content {
  padding: 8px 0;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  background: var(--ac-srs-bg);
}

/* Compact rows (HH style) */
.ac-srs-prey-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: var(--ac-srs-card-bg);
  transition: background 0.15s;
}

.ac-srs-prey-row:hover {
  background: #f8f9fa;
}

html[data-theme="dark"] .ac-srs-prey-row:hover {
  background: #1a1a1a;
}

.ac-srs-prey-index {
  font-size: 12px;
  color: #adb5bd;
  min-width: 35px;
  text-align: right;
}

.ac-srs-prey-word {
  font-size: 24px;
  font-weight: 500;
  color: var(--ac-srs-text-main);
  min-width: 60px;
  position: relative;
  cursor: pointer;
}

/* Card counter (views) - small number beneath word */
.ac-srs-prey-views {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #adb5bd;
  font-weight: 400;
}

.ac-srs-prey-pinyin {
  font-size: 18px;
  color: #6c757d;
  flex: 1;
  min-width: 100px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

/* Hidden pinyin state */
.ac-srs-prey-pinyin.ac-srs-py-hidden {
  opacity: 0;
  pointer-events: auto; /* Keep clickable even when hidden */
}

.ac-srs-prey-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
}

.ac-srs-prey-next {
  color: #6c757d;
  min-width: 50px;
  text-align: center;
}

.ac-srs-prey-level {
  color: var(--ac-srs-text-main);
  font-weight: 600;
  min-width: 28px;
}

.ac-srs-prey-stats {
  color: #6c757d;
  font-size: 12px;
  min-width: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .ac-srs-prey-modal {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
  }
  
  .ac-srs-prey-row {
    gap: 6px;
    padding: 8px 12px;
  }
  
  .ac-srs-prey-index {
    min-width: 28px;
    font-size: 11px;
  }
  
  .ac-srs-prey-word {
    font-size: 20px;
    min-width: 50px;
  }
  
  .ac-srs-prey-pinyin {
    font-size: 16px;
    min-width: 80px;
  }
  
  .ac-srs-prey-meta {
    gap: 6px;
    font-size: 11px;
  }
  
  .ac-srs-prey-stats {
    display: none; /* Hide detailed stats on mobile */
  }
  
  .ac-srs-prey-speaker-sm {
    font-size: 16px;
  }
}

/* ========== UTILITIES ========== */
.ac-srs-hidden {
  display: none !important;
}

.ac-srs-kaiti-on {
  font-family: var(--ac-srs-kaiti-stack) !important;
}

/* ========== HUNTER PRACTICE ENTRY (STEP 5) ========== */
.ac-srs-practice-entry-modal {
  width: min(95vw, 560px);
  max-height: 90vh;
}

.ac-srs-practice-entry-content {
  padding: 24px;
}

.ac-srs-practice-mode {
  margin-bottom: 24px;
}

.ac-srs-practice-mode-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ac-srs-text-main);
  margin-bottom: 12px;
}

.ac-srs-practice-radio {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--ac-srs-text-main);
  cursor: pointer;
  user-select: none;
}

.ac-srs-practice-radio input[type="radio"] {
  margin-right: 8px;
  cursor: pointer;
}

.ac-srs-practice-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ac-srs-practice-slider-row label {
  min-width: 160px;
  font-size: 14px;
  color: var(--ac-srs-text-sub);
}

.ac-srs-practice-slider-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: var(--ac-srs-range-track-light);
  outline: none;
}

.ac-srs-practice-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ac-srs-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.ac-srs-practice-slider-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.ac-srs-practice-slider-row > span {
  min-width: 35px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--ac-srs-text-main);
}

.ac-srs-practice-preview {
  background: var(--ac-srs-bg);
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ac-srs-text-sub);
  margin: 20px 0;
  line-height: 1.5;
}

.ac-srs-practice-preview strong {
  color: var(--ac-srs-text-main);
  font-weight: 700;
}

.ac-srs-practice-score-range {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-practice-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ac-srs-practice-actions button {
  flex: 1;
}

@media (max-width: 768px) {

/* ========== CARD DETAILS (STEP 6) - EXACT HH CSS ========== */

#ac-srs-card-details-overlay.ac-srs-hidden { 
  display: none; 
}

#ac-srs-card-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

#ac-srs-card-details-overlay .ac-srs-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

#ac-srs-card-details-overlay .ac-srs-card-content {
  position: relative;
  z-index: 1;
  background: var(--ac-srs-card-bg);
  color: var(--ac-srs-text-main);
  width: 90%;
  max-width: 540px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 16px 64px;
}

/* Close button (white × on orange) */
#ac-srs-card-details-overlay .ac-srs-card-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 33px;
  height: 33px;
  border: none;
  border-radius: 50%;
  background: #FFC107;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Body */
#ac-srs-card-details-overlay .ac-srs-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

#ac-srs-card-details-overlay .ac-srs-card-hanzi {
  font-size: 2.4rem;
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
}

#ac-srs-card-details-overlay .ac-srs-card-pinyin {
  font-size: 1.2rem;
  color: var(--ac-srs-text-sub);
  cursor: default;
}

#ac-srs-card-details-overlay .ac-srs-card-translation {
  font-size: 0.95rem;
  color: var(--ac-srs-text-sub);
  margin-top: 6px;
}

/* Actions row */
#ac-srs-card-details-overlay .ac-srs-card-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

#ac-srs-card-details-overlay .ac-srs-card-replay {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  background: #2196F3;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-size: 16px;
}

/* Prev / Next */
#ac-srs-card-details-overlay .ac-srs-card-prev,
#ac-srs-card-details-overlay .ac-srs-card-next {
  position: absolute;
  top: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  padding: 4px 8px;
  color: var(--ac-srs-text-sub);
}

#ac-srs-card-details-overlay .ac-srs-card-prev {
  left: 8px;
}

#ac-srs-card-details-overlay .ac-srs-card-next {
  right: 40px; /* leave room for close btn */
}

/* KaiTi toggle (top right area) */
#ac-srs-card-details-overlay .ac-srs-card-kaiti-label {
  position: absolute;
  top: 12px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ac-srs-text-sub);
  cursor: pointer;
  user-select: none;
}

#ac-srs-card-details-overlay .ac-srs-card-kaiti-label input[type="checkbox"] {
  cursor: pointer;
}

/* Kaiti font support */
.ac-srs-kaiti-on #ac-srs-card-details-overlay .ac-srs-card-hanzi,
.ac-srs-kaiti-on #ac-srs-card-details-overlay .ac-srs-card-translation {
  font-family: 'KaiTi', 'STKaiti', 'BiauKai', 'DFKai-SB', serif !important;
}

/* Keep pinyin in UI font */
.ac-srs-kaiti-on #ac-srs-card-details-overlay .ac-srs-card-pinyin {
  font-family: system-ui, -apple-system, sans-serif !important;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #ac-srs-card-details-overlay .ac-srs-card-prev,
  #ac-srs-card-details-overlay .ac-srs-card-next {
    top: 8px;
  }
}

/* ========== DUE OVERVIEW MODAL (STEP 7) ========== */

.ac-srs-due-modal {
  width: min(95vw, 500px);
  max-height: 85vh;
}

.ac-srs-due-buttons {
  display: flex;
  gap: 8px;
}

.ac-srs-due-buttons button {
  padding: 6px 14px;
  font-size: 13px;
}

.ac-srs-due-content {
  padding: 16px 24px;
  max-height: calc(85vh - 80px);
  overflow-y: auto;
}

.ac-srs-due-list {
  display: flex;
  flex-direction: column;
}

.ac-srs-due-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: transparent;
  font-size: 14px;
  line-height: 1.4;
}

.ac-srs-due-today {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  font-weight: 600;
  margin: 2px 0;
  border-radius: 4px;
}

.ac-srs-due-date {
  color: var(--ac-srs-text-main);
}

.ac-srs-due-count {
  color: var(--ac-srs-text-main);
  font-weight: 700;
  font-size: 15px;
}

.ac-srs-due-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ac-srs-text-sub);
  font-size: 14px;
}

/* ========== WEEKLY STATS MODAL (STEP 7) ========== */

.ac-srs-stats-modal {
  width: min(95vw, 500px);
  max-height: 70vh;
}

.ac-srs-stats-content {
  padding: 16px 24px;
}

.ac-srs-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-srs-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--ac-srs-bg);
  border-radius: 6px;
}

.ac-srs-stats-label {
  color: var(--ac-srs-text-main);
  font-size: 14px;
  font-weight: 500;
}

.ac-srs-stats-count {
  color: var(--ac-srs-text-main);
  font-weight: 700;
  font-size: 14px;
}

.ac-srs-stats-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ac-srs-text-sub);
  font-size: 14px;
}

/* Mobile */
@media (max-width: 600px) {
  .ac-srs-due-modal,
  .ac-srs-stats-modal {
    width: 100%;
    max-height: 90vh;
  }
  
  .ac-srs-due-buttons {
    flex-direction: row;
  }
  
  .ac-srs-due-buttons button {
    flex: 1;
  }
}

/* Mobile adjustments for speed control bar */
@media (max-width: 600px) {
  .ac-srs-speed-control-bar {
    gap: 8px;
  }
  
  .ac-srs-control-badge,
  .ac-srs-control-badge-placeholder {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .ac-srs-speed-control {
    padding: 10px 12px;
  }
  
  .ac-srs-speed-control .ac-srs-label-text {
    min-width: 40px;
    font-size: 13px;
  }
  
  .ac-srs-speed-value {
    font-size: 13px;
    min-width: 45px;
  }
}
/* ========== ROUND BADGE (Revision Indicator) ========== */
.ac-srs-round-badge {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  z-index: 10;
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== TRACK INDICATOR BADGE ========== */
.ac-srs-track-indicator {
  background: #e0e0e0;
  color: #333;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 8px;
}

.ac-srs-track-indicator:hover {
  background: #d0d0d0;
  transform: translateY(-1px);
}

.ac-srs-track-indicator:active {
  transform: translateY(0);
}

.ac-srs-track-hard {
  background: #ff9800;
  color: white;
}

.ac-srs-track-hard:hover {
  background: #f57c00;
}

.ac-srs-track-primary {
  background: #2196F3;
  color: white;
}

.ac-srs-track-primary:hover {
  background: #1976D2;
}

/* ========== SESSION END SCREEN ========== */
.ac-srs-session-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.ac-srs-end-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 30px;
}

.ac-srs-end-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.ac-srs-end-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ac-srs-end-stat-value {
  font-size: 48px;
  font-weight: 700;
  color: #34495e;
}

.ac-srs-stat-correct {
  color: #27ae60;
}

.ac-srs-stat-wrong {
  color: #e74c3c;
}

.ac-srs-end-stat-label {
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ac-srs-btn-primary {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.ac-srs-btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ac-srs-btn-primary:active {
  transform: translateY(0);
}

/* ========== SOUND REPLAY BUTTON ========== */
.ac-srs-sound-btn {
  margin-top: 20px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s;
}

.ac-srs-sound-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

.ac-srs-sound-btn:active {
  transform: scale(0.95);
}