﻿:root {
  --bg: #eef4ff;
  --card: #ffffff;
  --card2: #f7faff;
  --text: #112240;
  --muted: #61708a;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --purple: #7c3aed;
  --yellow: #f59e0b;
  --cyan: #0284c7;
  --orange: #ea580c;
  --gold: #1d4ed8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(2, 132, 199, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #edf4ff 60%, #e6efff 100%);
  color: var(--text);
}

.app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  width: min(1200px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(208, 221, 245, 0.9);
}

.title {
  text-align: center;
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 22px;
}

.home-badge {
  text-align: center;
  margin: 0 auto 18px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 10px 18px;
  width: fit-content;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-bar {
  width: 100%;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  padding: 0;
}

.top-line {
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

.mnemonic {
  text-align: center;
  color: var(--blue);
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0 18px;
  letter-spacing: 2px;
}

.question-title {
  text-align: center;
  font-size: 32px;
  margin: 18px 0;
  line-height: 1.3;
}

.input {
  display: block;
  width: min(760px, 92%);
  margin: 16px auto;
  padding: 18px;
  font-size: 20px;
  border: 1px solid #d7e3f5;
  background: #ffffff;
  color: var(--text);
  border-radius: 14px;
  outline: none;
  text-align: center;
}

.input:focus,
.multi-answer-input:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.feedback {
  text-align: center;
  min-height: 28px;
  font-size: 17px;
  font-weight: 700;
  margin: 14px 0 16px;
}

.feedback.good {
  color: #4ade80;
}

.feedback.bad {
  color: #f87171;
}

.feedback-detail {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--card2);
  border: 1px solid #d7e3f5;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  text-align: left;
}

.feedback-detail strong {
  color: var(--blue);
  font-weight: 800;
}

.mistake-list {
  display: grid;
  gap: 14px;
}

.mistake-item {
  background: var(--card2);
  border: 1px solid #d7e3f5;
  border-radius: 18px;
  padding: 18px;
  text-align: left;
}

.mistake-item-title {
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
}

.mistake-item p {
  margin: 8px 0;
  line-height: 1.7;
}

.mistake-answer {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #d7e3f5;
}

.mistake-answer strong {
  color: var(--blue);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12);
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.green { background: var(--green); }
.blue { background: var(--blue); }
.red { background: var(--red); }
.purple { background: var(--purple); }

.menu-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.menu-btn {
  border: 1px solid #d7e3f5;
  border-radius: 22px;
  padding: 22px 20px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  text-align: center;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.12);
  position: relative;
}

.menu-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.26);
}

.menu-btn.week-one-highlight {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, #fff9e7, #fff2c7);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.18);
}

.menu-btn.week-one-highlight .menu-btn-title {
  color: #9a6700;
}

.menu-btn.week-two-highlight {
  border-color: rgba(220, 38, 38, 0.42);
  background: linear-gradient(180deg, #fff0f0, #ffd9d9);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.16);
}

.menu-btn.week-two-highlight .menu-btn-title {
  color: #b91c1c;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  margin-bottom: 15px;
}

.section-row .section-bar {
  margin: 0;
  text-align: left;
  flex: 1 1 auto;
}

.section-toggle-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.menu-btn-title,
.menu-btn-meta {
  display: block;
  text-align: center;
}

.menu-btn-title {
  line-height: 1.35;
}

.menu-btn-meta {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.stats {
  background: var(--card2);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 12px 0;
  text-align: center;
  line-height: 1.6;
  border: 1px solid #d7e3f5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.percentage-banner {
  margin: 8px auto 14px;
  max-width: 560px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(2, 132, 199, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 22px;
  padding: 18px 20px;
  text-align: center;
}

.percentage-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.percentage-value {
  display: block;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  color: var(--text);
}

.percentage-footer {
  margin-top: 18px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
}

.stat-card strong {
  display: block;
  color: var(--blue);
  margin-bottom: 6px;
}

.leaderboard-summary {
  text-align: center;
}

.leaderboard-card {
  text-align: left;
  background:
    radial-gradient(circle at 10% 20%, rgba(250, 204, 21, 0.12), transparent 16%),
    radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.16), transparent 18%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border: 2px solid #1d4ed8;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.3);
  color: #e5f0ff;
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.leaderboard-title {
  color: #facc15;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

.leaderboard-pellet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fde047;
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.6);
}

.leaderboard-pellet.small {
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px rgba(253, 224, 71, 0.55);
}

.pacman-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
}

.pacman-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #111827;
}

.ghost-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 9px 9px 4px 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.ghost-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background:
    radial-gradient(circle at 3px 0, transparent 4px, currentColor 4px) 0 0 / 6px 6px repeat-x;
  color: inherit;
}

.ghost-eye {
  position: absolute;
  top: 6px;
  width: 4px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
}

.ghost-eye.left {
  left: 4px;
}

.ghost-eye.right {
  right: 4px;
}

.ghost-pink {
  background: #f472b6;
  color: #f472b6;
}

.ghost-cyan {
  background: #22d3ee;
  color: #22d3ee;
}

.ghost-orange {
  background: #fb923c;
  color: #fb923c;
}

.leaderboard-marquee {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
}

.leaderboard-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 16px;
  overflow: hidden;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
  text-align: left;
  font-size: 15px;
}

.leaderboard-table th {
  color: #facc15;
  font-weight: 800;
  background: rgba(30, 41, 59, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}

.leaderboard-table td {
  color: #e2e8f0;
}

.leaderboard-rank {
  color: #fde047;
  font-weight: 900;
  width: 72px;
}

.leaderboard-rank-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-empty {
  text-align: center;
  color: #93c5fd;
  font-weight: 700;
}

.leaderboard-table tbody tr:nth-child(1) .leaderboard-rank {
  color: #facc15;
}

.leaderboard-table tbody tr:nth-child(2) .leaderboard-rank {
  color: #cbd5e1;
}

.leaderboard-table tbody tr:nth-child(3) .leaderboard-rank {
  color: #fdba74;
}

.leaderboard-table tbody tr:hover td {
  background: rgba(30, 64, 175, 0.14);
}

.leaderboard-current td {
  background: rgba(34, 197, 94, 0.16);
  font-weight: 700;
  color: #dcfce7;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
}

.caution-text {
  background: var(--card2);
  border-radius: 22px;
  padding: 24px;
  margin: 20px auto;
  max-width: 1000px;
  text-align: justify;
  line-height: 1.9;
  font-size: 24px;
  border: 1px solid #d7e3f5;
  white-space: pre-line;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.08);
}

.definition-reference {
  margin-top: 12px;
  margin-bottom: 10px;
}

.definition-quiz-panel {
  margin-top: 10px;
}

.blank-word {
  display: inline-block;
  min-width: 90px;
  height: 1.1em;
  border-bottom: 3px solid var(--blue);
  vertical-align: baseline;
  color: transparent;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  padding: 0 4px;
  text-align: center;
}

.blank-word.filled {
  color: var(--text);
  min-width: 0;
  height: auto;
  padding: 0 1px;
  border-bottom: none;
  vertical-align: baseline;
  background: transparent !important;
}

.blank-word .filled-text {
  position: static;
  color: var(--text);
  font-weight: 600;
  font-size: 0.84em;
  line-height: inherit;
  font-family: inherit;
  white-space: normal;
  padding: 0 2px;
  border: none;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent-color, #2563eb) 12%, white) !important;
}

.accent-0 {
  --accent-color: #2563eb;
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
}

.accent-1 {
  --accent-color: #7c3aed;
  border-color: #7c3aed !important;
  background: rgba(124, 58, 237, 0.12) !important;
}

.accent-2 {
  --accent-color: #ea580c;
  border-color: #ea580c !important;
  background: rgba(234, 88, 12, 0.12) !important;
}

.accent-3 {
  --accent-color: #16a34a;
  border-color: #16a34a !important;
  background: rgba(22, 163, 74, 0.12) !important;
}

.accent-4 {
  --accent-color: #0284c7;
  border-color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.12) !important;
}

.diagram {
  max-width: 100%;
  max-height: 380px;
  border-radius: 12px;
  background: white;
  margin: 10px auto;
  display: block;
}

.mc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px auto;
  max-width: 1000px;
}

.mc-btn {
  border: 1px solid #d7e3f5;
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mc-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
}

.mc-btn:disabled {
  opacity: 0.9;
  cursor: default;
}

.mc-btn.correct-answer,
.mc-btn.correct-answer:disabled {
  background: #ecfdf5;
  border-color: #22c55e;
  color: #166534;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.14);
}

.mc-btn.selected-wrong,
.mc-btn.selected-wrong:disabled {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

.small-note {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.answer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 850px;
  margin: 20px auto;
}

.answer-row {
  background: var(--card2);
  border: 1px solid #d7e3f5;
  border-radius: 16px;
  padding: 16px;
}

.answer-label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.multi-answer-input {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border: 1px solid #d7e3f5;
  background: #ffffff;
  color: var(--text);
  border-radius: 12px;
  outline: none;
}

.input.accent-0,
.multi-answer-input.accent-0 {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.input.accent-1,
.multi-answer-input.accent-1 {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.input.accent-2,
.multi-answer-input.accent-2 {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.08);
}

.input.accent-3,
.multi-answer-input.accent-3 {
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.input.accent-4,
.multi-answer-input.accent-4 {
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: inset 0 0 0 1px rgba(2, 132, 199, 0.08);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(2, 132, 199, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.hero-note {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  line-height: 1.7;
}

.disclaimer {
  background: #fff8e8;
  color: #7c5a10;
  border: 1px solid #f4d488;
  border-radius: 20px;
  padding: 18px 20px;
  margin-top: 26px;
  line-height: 1.7;
}

.disclaimer strong {
  display: block;
  margin-bottom: 6px;
}

.poster-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.poster-card,
.poster-panel-view {
  background: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.12);
}

.poster-number {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.secret-badge-btn {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  width: fit-content;
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  padding: 10px 18px;
  text-align: center;
}

.secret-badge-btn:hover,
.secret-badge-btn:focus,
.secret-badge-btn:active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.secret-counter {
  text-align: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -8px 0 14px;
}

.secret-reset-notice {
  text-align: center;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: -4px 0 14px;
}

.poster-thumb-wrap {
  padding: 12px;
  background: var(--card2);
  border: 1px solid #d7e3f5;
  border-radius: 18px;
}

.poster-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
}

.poster-title {
  margin: 14px 0 10px;
  text-align: center;
  font-size: 26px;
  color: var(--text);
}

.poster-subtitle {
  margin: -2px 0 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.5;
}

.poster-wrap {
  margin: 20px auto;
  padding: 18px;
  background: var(--card2);
  border: 1px solid #d7e3f5;
  border-radius: 24px;
  text-align: center;
}

.poster-card-actions {
  margin-top: 8px;
}

.poster-image {
  display: block;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(17, 34, 64, 0.14);
}

.poster-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d7e3f5;
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.criminal-guide-header {
  background: linear-gradient(135deg, #17357a, #10275a);
  color: white;
  border-radius: 24px;
  padding: 28px 24px;
  margin-bottom: 22px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(17, 34, 64, 0.18);
}

.criminal-guide-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd166;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.criminal-guide-subtitle {
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

.criminal-guide-grid {
  display: grid;
  gap: 18px;
}

.criminal-guide-card {
  color: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(17, 34, 64, 0.14);
}

.criminal-guide-card.section-one {
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}

.criminal-guide-card.section-two {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.criminal-guide-card.section-three {
  background: linear-gradient(135deg, #3f7d20, #84cc16);
}

.criminal-guide-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 10px;
}

.criminal-guide-card h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.criminal-guide-list {
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
  font-size: 18px;
}

.criminal-guide-list li + li {
  margin-top: 8px;
}

.criminal-guide-memory {
  margin-top: 18px;
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(17, 34, 64, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.criminal-guide-reminder {
  margin: 22px 0 18px;
  padding: 24px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
  border: 1px solid #d7e3f5;
  text-align: center;
}

.criminal-guide-reminder-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.criminal-guide-reminder-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.criminal-guide-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: white;
  border: 1px solid #d7e3f5;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.06);
}

.caution-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.caution-small-input {
  width: 170px;
  margin: 0;
}

.utility-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.utility-btn,
.mini-btn {
  border: 1px solid #d7e3f5;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.toggle-btn::before {
  content: "";
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #dbe4f3;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
  transition: background 0.2s ease;
}

.toggle-btn::after {
  content: "";
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.utility-btn:hover,
.mini-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.08);
}

.utility-btn.active,
.mini-btn.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.28);
}

.toggle-btn.active {
  background: #fff7db;
  color: #9a6700;
  border-color: rgba(245, 158, 11, 0.42);
}

.toggle-btn.active::before {
  background: rgba(245, 158, 11, 0.9);
}

.toggle-btn.active::after {
  transform: translateX(18px);
}

.toggle-btn-red.active {
  background: #ffe8e8;
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.35);
}

.toggle-btn-red.active::before {
  background: rgba(220, 38, 38, 0.9);
}

.quiz-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 14px;
}

.navigator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 18px;
  max-width: 920px;
}

.navigator-pill {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #edf4ff;
  border: 1px solid #d7e3f5;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.navigator-pill.done {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.3);
  color: #15803d;
}

.navigator-pill.current {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--blue);
}

.study-banner {
  max-width: 920px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff8e8;
  border: 1px solid #f4d488;
  color: #7c5a10;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.study-correct {
  background: rgba(22, 163, 74, 0.18) !important;
  color: #166534 !important;
  border-color: rgba(22, 163, 74, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12) !important;
}

.study-wrong {
  background: rgba(220, 38, 38, 0.12) !important;
  color: #991b1b !important;
  border-color: rgba(220, 38, 38, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
  align-items: stretch;
}

.point-card {
  background: var(--card2);
  border: 1px solid #d7e3f5;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.point-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
  min-height: 3.2em;
}

.point-list {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.8;
  flex: 1 1 auto;
}

.point-list li {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
}

.point-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  align-items: stretch;
}

.point-card-actions .btn {
  flex: 1 1 0;
  min-height: 48px;
}

@media (max-width: 768px) {
  .card {
    padding: 18px;
  }

  .title {
    font-size: 26px;
  }

  .subtitle {
    font-size: 16px;
  }

  .section-bar {
    font-size: 22px;
  }

  .question-title {
    font-size: 22px;
    line-height: 1.25;
    margin: 14px 0;
  }

  .mnemonic {
    font-size: 22px;
  }

  .input {
    width: 100%;
    font-size: 18px;
  }

  .menu-btn {
    width: 100%;
    min-width: unset;
    font-size: 17px;
    padding: 18px 16px;
  }

  .caution-text {
    font-size: 15px;
    line-height: 1.5;
    padding: 12px;
    margin: 12px auto;
    border-radius: 16px;
  }

  .mc-options {
    grid-template-columns: 1fr;
  }

  .mc-btn {
    font-size: 16px;
  }

  .caution-small-input {
    width: 100%;
  }

  .utility-btn,
  .mini-btn {
    width: 100%;
  }

  .poster-wrap {
    padding: 12px;
    border-radius: 18px;
  }

  .poster-gallery {
    grid-template-columns: 1fr;
  }

  .poster-card,
  .poster-panel-view {
    padding: 14px;
    border-radius: 18px;
  }

  .poster-title {
    font-size: 22px;
  }

  .poster-subtitle {
    font-size: 13px;
  }

  .poster-note {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .criminal-guide-header,
  .criminal-guide-card,
  .criminal-guide-reminder {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .criminal-guide-card h3 {
    font-size: 24px;
  }

  .criminal-guide-list {
    font-size: 16px;
    line-height: 1.55;
  }

  .criminal-guide-reminder-title {
    font-size: 22px;
  }

  .navigator {
    gap: 6px;
  }

  .navigator-pill {
    min-width: 36px;
    padding: 7px 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .percentage-banner {
    padding: 16px;
  }

  .percentage-value {
    font-size: 34px;
  }

  .point-card-actions .btn {
    width: 100%;
  }

  .definition-reference,
  .definition-quiz-panel {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .definition-reference strong,
  .definition-quiz-panel strong {
    display: inline;
  }

  .blank-word {
    min-width: 72px;
  }

  .blank-word .filled-text {
    font-size: 0.78em;
  }
}
