@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=Lexend:wght@400;500;600;700&display=swap');

:root {
  --bg-1: #ecf5ff;
  --bg-2: #d3e9ff;
  --bg-3: #f7fbff;
  --primary: #1d6fff;
  --primary-dark: #134fae;
  --accent: #27c4d9;
  --accent-2: #7fd4ff;
  --text: #0b2236;
  --muted: #4d6b84;
  --card: rgba(255, 255, 255, 0.62);
  --card-strong: rgba(255, 255, 255, 0.92);
  --stroke: rgba(255, 255, 255, 0.55);
  --shadow: 0 28px 60px rgba(10, 35, 64, 0.18);
  --radius: 22px;
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.45), 0 22px 50px rgba(12, 45, 85, 0.18);
  --header-height: 72px;
  --footer-gap: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lexend', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 8% -10%, rgba(255, 255, 255, 0.9) 0%, rgba(210, 236, 255, 0.55) 45%, rgba(210, 236, 255, 0) 75%),
    radial-gradient(700px 500px at 100% 0%, rgba(93, 168, 255, 0.35) 0%, rgba(93, 168, 255, 0) 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-3));
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

body.test-mode {
  overflow-x: hidden;
  overflow-y: auto;
  --plate-size: min(82vw, 40vh, 300px);
  --plate-options-gap: clamp(16px, 3.5vh, 24px);
  --plate-arrow-size: 36px;
  --plate-arrow-offset: 0px;
}

body.test-mode .container {
  min-height: calc(100dvh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  padding: 10px 20px var(--footer-gap);
}

body.test-mode .site-footer {
  display: block;
  margin-top: 0;
}

body.test-mode .topbar {
  padding: 8px 20px;
  justify-content: flex-start;
}

body.test-mode .brand-tag {
  display: none;
}

body.test-mode .brand-sub {
  display: none;
}

body.test-mode .nav-links {
  display: none;
}

body.test-mode .nav-links a {
  padding: 6px 10px;
}

body.test-mode .plate-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.test-mode .plate-answer {
  padding-top: 8px;
  flex: 0 0 auto;
}

body.test-mode .option {
  padding: 8px 10px;
  font-size: 12px;
}

body.test-mode .plate-card {
  padding: 10px;
  height: auto;
  grid-template-rows: auto auto;
}

body.test-mode .plate-header h3 {
  font-size: 16px;
  margin: 2px 0 0;
}

body.test-mode .plate-header {
  margin-bottom: 2px;
}

body.test-mode .eyebrow {
  font-size: 11px;
  padding: 4px 8px;
}

body.test-mode .plate-index {
  padding: 4px 8px;
  font-size: 11px;
}

body.test-mode .plate-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: stretch;
  min-height: 0;
  width: 100%;
  flex: 0 0 auto;
  gap: 10px;
}

body.test-mode .plate-media {
  width: var(--plate-size);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  flex: 0 0 auto;
  min-height: 0;
  align-self: center;
}

body.test-mode .plate-options {
  gap: 6px;
  margin-top: 0;
  padding-top: var(--plate-options-gap);
  flex: 0 0 auto;
}

body.test-mode .answer-field {
  padding: 10px 12px;
}

body.test-mode .answer-field input {
  padding: 8px 10px;
  font-size: 13px;
}

body.test-mode .plate-hint {
  font-size: 11px;
  margin-top: 0;
}

body.test-mode .slider-controls .btn {
  padding: 7px 10px;
  font-size: 12px;
}

body.test-mode .test-shell {
  margin-top: 6px;
  gap: 8px;
  height: auto;
}

body.test-mode .test-form.test-slider,
body.test-mode .slider,
body.test-mode .slider-track,
body.test-mode .slide {
  height: auto;
}

body.test-mode .test-form.test-slider {
  grid-template-rows: auto;
}

body.test-mode .slide-card {
  height: auto;
}

body.test-mode .slide {
  align-items: flex-start;
}

body.test-mode .test-head {
  gap: 6px;
}

body.test-mode .test-title h2 {
  font-size: 18px;
}

body.test-mode .test-title p {
  display: none;
}

body.test-mode .test-progress {
  gap: 4px;
  min-width: 120px;
}

body.test-mode .progress-label {
  font-size: 11px;
}

body.test-mode .progress-bar {
  height: 4px;
}

body.test-mode .progress-dots {
  display: none;
}

body.test-mode .slider-controls {
  gap: 4px;
  padding: 0;
  justify-content: center;
}

body.test-mode .slider-note {
  display: none;
}

body.test-mode.test-nav .topbar {
  padding: 14px 20px;
  justify-content: space-between;
}

body.test-mode.test-nav .brand-tag {
  display: inline-flex;
}

body.test-mode.test-nav .brand-sub {
  display: block;
}

body.test-mode.test-nav .nav-links {
  display: flex;
}

body.test-mode.test-nav .nav-links a {
  padding: 8px 14px;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.45) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.35;
}

body::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0.6;
}

.bg-orb {
  position: fixed;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(120, 190, 255, 0.18));
  border-radius: 50%;
  filter: blur(4px);
  z-index: -1;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  top: -60px;
  left: -40px;
}

.orb-2 {
  bottom: 10%;
  right: -60px;
  animation-delay: -3s;
}

.orb-3 {
  top: 30%;
  left: 65%;
  width: 220px;
  height: 220px;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-12px) translateX(8px);
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px var(--footer-gap);
}

.menu-grid {
  display: grid;
  gap: 18px;
}

.menu-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(225, 243, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  display: grid;
  gap: 12px;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(12, 48, 86, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-card > * {
  position: relative;
  z-index: 1;
}

.menu-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 191, 255, 0.55), rgba(127, 191, 255, 0));
  opacity: 0.7;
  pointer-events: none;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(17, 59, 102, 0.22);
}

.menu-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(140deg, #5ab7ff, #b2e6ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 12px 24px rgba(14, 56, 98, 0.16);
}

.menu-icon::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.menu-icon.icon-edu {
  background: linear-gradient(140deg, #37bfd1, #8fe8f5);
}

.menu-icon.icon-game {
  background: linear-gradient(140deg, #5cb4ff, #9fd6ff);
}

.menu-cta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: auto;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 32, 52, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(228, 244, 255, 0.9));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 24px;
  box-shadow: 0 28px 60px rgba(8, 32, 58, 0.25);
  position: relative;
  animation: rise 0.4s ease;
}

.logout-modal .modal-card {
  width: min(460px, 100%);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(214, 236, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 32px 70px rgba(8, 32, 58, 0.28);
  overflow: hidden;
  padding: 20px 22px;
}

.logout-modal .modal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(127, 212, 255, 0.35), transparent 48%),
    radial-gradient(circle at 8% 90%, rgba(255, 210, 140, 0.35), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
}

.logout-modal .modal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.45) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.25;
  pointer-events: none;
}

.logout-modal .modal-card > * {
  position: relative;
  z-index: 1;
}

.logout-hero {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.logout-hero h3 {
  margin: 0 0 4px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.logout-hero .muted-text {
  margin: 0;
}

.logout-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(140deg, #56b3ff, #a7e4ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 14px 24px rgba(14, 56, 98, 0.18);
}

.logout-icon::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.25);
  position: absolute;
}

.logout-icon::after {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.logout-tip {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(120, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  gap: 2px;
}

.logout-tip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.logout-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 139, 255, 0.12);
  border: 1px solid rgba(45, 139, 255, 0.25);
  color: var(--primary-dark);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
}

.logout-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logout-actions .btn {
  flex: 1 1 140px;
}

.game-result-modal .modal-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(210, 236, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 60px rgba(8, 36, 62, 0.3);
  overflow: hidden;
}

.game-result-modal .modal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(127, 212, 255, 0.4), transparent 48%),
    radial-gradient(circle at 10% 85%, rgba(255, 220, 140, 0.4), transparent 50%);
  opacity: 0.85;
  pointer-events: none;
}

.game-result-modal .modal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.45) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: 0.25;
  pointer-events: none;
}

.game-result-card > * {
  position: relative;
  z-index: 1;
}

.game-result-header {
  display: grid;
  gap: 6px;
}

.game-result-score {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.game-result-score span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.game-result-score strong {
  font-size: 28px;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--primary-dark);
}

.game-result-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.result-orb,
.result-spark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.result-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(93, 168, 255, 0.45));
  opacity: 0.7;
  filter: blur(0.5px);
}

.result-orb.orb-a {
  top: -46px;
  right: -36px;
}

.result-orb.orb-b {
  width: 160px;
  height: 160px;
  bottom: -60px;
  left: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 244, 210, 0.95), rgba(255, 182, 120, 0.35));
  opacity: 0.65;
}

.result-spark {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(127, 212, 255, 0.75));
  box-shadow: 0 8px 18px rgba(29, 111, 255, 0.24);
  transform: rotate(18deg);
}

.result-spark.spark-a {
  top: 22px;
  left: 24px;
}

.result-spark.spark-b {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  bottom: 42px;
  right: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 212, 170, 0.85));
}

.modal-card-scroll {
  max-height: min(84vh, 560px);
  display: flex;
  flex-direction: column;
}

.modal-card-scroll .modal-scroll {
  overflow-y: auto;
  min-height: 0;
  padding-right: 4px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-header h3 {
  margin: 0 0 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.modal-header p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.modal-card .muted-text a {
  color: var(--primary);
  font-weight: 600;
}

.modal-card .muted-text a:hover {
  color: var(--primary-dark);
}

.brightness-overlay {
  background: rgba(9, 32, 52, 0.55);
}

.brightness-modal {
  width: min(460px, 100%);
  padding: 26px;
}

.brightness-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.brightness-body {
  display: grid;
  gap: 4px;
}

.brightness-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(140deg, #65b9ff, #b9ecff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.75), 0 10px 22px rgba(13, 52, 92, 0.2);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brightness-icon::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff4b4 0%, #ffd36c 55%, #ffb347 100%);
  box-shadow: 0 0 16px rgba(255, 214, 120, 0.75);
  animation: sunPulse 2.6s ease-in-out infinite;
  z-index: 1;
}

.brightness-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.sun-eye {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b4f2a;
  top: 22px;
  z-index: 3;
}

.sun-eye-left {
  left: 16px;
}

.sun-eye-right {
  right: 16px;
}

.sun-mouth {
  position: absolute;
  width: 16px;
  height: 8px;
  border-radius: 0 0 12px 12px;
  border: 2px solid #6b4f2a;
  border-top: 0;
  top: 30px;
  z-index: 3;
}

.brightness-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.brightness-body h3 {
  margin: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
}

.brightness-hero {
  position: relative;
  margin: 14px 0 8px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(120, 200, 255, 0.5), rgba(255, 243, 210, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 16px 30px rgba(13, 52, 92, 0.12);
}

.brightness-hero::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(127, 212, 255, 0));
  right: -40px;
  top: -50px;
  opacity: 0.7;
}

.brightness-hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
  left: -60px;
  bottom: -50px;
  opacity: 0.6;
}

.hero-sun {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6c4 0%, #ffd36c 60%, #ffb24a 100%);
  box-shadow: 0 10px 20px rgba(255, 190, 90, 0.4);
  top: 12px;
  right: 18px;
  animation: heroFloat 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-sun::before,
.hero-sun::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b4f2a;
  top: 20px;
}

.hero-sun::before {
  left: 16px;
}

.hero-sun::after {
  right: 16px;
}

.hero-mouth {
  position: absolute;
  width: 18px;
  height: 9px;
  border-radius: 0 0 12px 12px;
  border: 2px solid #6b4f2a;
  border-top: 0;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-phone {
  width: 130px;
  height: 170px;
  border-radius: 28px;
  background: linear-gradient(180deg, #0d3a64, #1e6aa6);
  box-shadow: 0 18px 32px rgba(10, 46, 82, 0.25);
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
  animation: phoneFloat 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-notch {
  position: absolute;
  width: 54px;
  height: 8px;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: rgba(255, 255, 255, 0.22);
}

.hero-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(210, 236, 255, 0.6));
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-screen-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(127, 212, 255, 0.9), rgba(255, 243, 192, 0.95));
  transform: translateY(45%);
  animation: screenRise 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-screen-glow {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  top: 14px;
  left: 18px;
  animation: screenGlow 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 14px rgba(12, 46, 78, 0.12);
}

.hero-bubble.bubble-1 {
  width: 26px;
  height: 26px;
  left: 18px;
  top: 20px;
  animation: bubbleFloat 4.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.hero-bubble.bubble-2 {
  width: 36px;
  height: 36px;
  right: 90px;
  bottom: 18px;
  animation: bubbleFloat 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.brightness-preview {
  margin: 18px 0 14px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.7);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 12px 26px rgba(14, 52, 92, 0.14);
}

.brightness-sun {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c7 0%, #ffd36c 65%, #ffb347 100%);
  box-shadow: 0 0 8px rgba(255, 196, 90, 0.5);
}

.brightness-sun.sun-large {
  width: 24px;
  height: 24px;
  box-shadow: 0 0 12px rgba(255, 196, 90, 0.55);
}

.brightness-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.brightness-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 25%;
  background: linear-gradient(90deg, #7fd4ff 0%, #c1efff 45%, #fff1a8 100%);
  animation: brightnessFill 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.brightness-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(8, 32, 58, 0.2);
  transform: translate(50%, -50%);
}

.brightness-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brightness-meter-bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.brightness-meter-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #6fc0ff, #ffe08a);
  animation: brightnessGlow 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.brightness-meter-label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 12px;
}

.brightness-actions {
  display: grid;
  gap: 10px;
}

.brightness-actions .btn {
  justify-content: center;
}

.brightness-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

@keyframes brightnessFill {
  0% { width: 25%; }
  50% { width: 100%; }
  100% { width: 25%; }
}

@keyframes brightnessGlow {
  0% { filter: brightness(0.95); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(0.95); }
}

@keyframes sunPulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.8; }
}

@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@keyframes phoneFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(8px); }
  100% { transform: translateY(0); }
}

@keyframes screenRise {
  0% { transform: translateY(55%); }
  50% { transform: translateY(10%); }
  100% { transform: translateY(55%); }
}

@keyframes screenGlow {
  0% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0.6; transform: translateY(0); }
}

@keyframes bubbleFloat {
  0% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.7; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  margin: 0 auto;
  max-width: 1120px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(231, 245, 255, 0.7));
  border: none;
  border-radius: 0;
  box-shadow: var(--glow);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 5;
  gap: 18px;
}

.topbar::before {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(140deg, #4ab0ff, #9ddcff);
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65), 0 10px 20px rgba(18, 80, 140, 0.2);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: var(--primary-dark);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.nav-links a.is-active {
  background: rgba(29, 111, 255, 0.18);
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px rgba(29, 111, 255, 0.35);
}

.link-muted {
  color: var(--muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

body.no-nav .nav-links {
  display: none;
}

body.no-nav .header-right {
  margin-left: auto;
}

.profile-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(220, 242, 255, 0.9));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 14px 28px rgba(12, 48, 86, 0.16);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-button:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7), 0 18px 32px rgba(12, 48, 86, 0.2);
}

.profile-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.profile-icon::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.profile-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 9px;
  border-radius: 10px 10px 8px 8px;
  background: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.hero {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(223, 241, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -80px;
  top: -60px;
  background: radial-gradient(circle, rgba(76, 169, 255, 0.35), rgba(76, 169, 255, 0));
  opacity: 0.8;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  margin: 12px 0 14px;
  line-height: 1.1;
}

.hero-content p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  align-items: center;
  font-size: 13px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 11px;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 8px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(14, 54, 94, 0.1);
}

.hero-meta strong {
  font-size: 13px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(235, 247, 255, 0.82));
  border-radius: calc(var(--radius) + 4px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 50px rgba(13, 50, 90, 0.18);
  animation: rise 0.6s ease;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-dot {
  position: relative;
  padding-left: 14px;
}

.status-dot::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #33c07a;
  left: 0;
  top: 4px;
}

.hero-plate {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.plate-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d3ecff, #86c5f1);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.45), 0 16px 30px rgba(23, 74, 118, 0.2);
}

.plate-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.plate-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 52px;
  color: #f0816d;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.hero-card-body h3 {
  margin: 0 0 8px;
}

.section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.container > .section:first-child {
  margin-top: 28px;
}

.test-shell {
  margin-top: 20px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.test-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.test-title h2 {
  margin: 0 0 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.test-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 520px;
}

.test-progress {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.progress-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
}

.progress-bar {
  width: 140px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
  transition: width 0.35s ease;
}

.progress-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 180px;
  justify-content: flex-end;
}

.progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease, background 0.3s ease;
}

.progress-dot.is-active {
  width: 16px;
  background: var(--primary);
  border-color: rgba(29, 111, 255, 0.4);
}

.section-title h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  margin: 0 0 8px;
  position: relative;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent-2));
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(233, 246, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 20px 45px rgba(13, 52, 92, 0.16);
  animation: rise 0.6s ease;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(13, 52, 92, 0.2);
}

.card.form:hover {
  transform: none;
  box-shadow: 0 20px 45px rgba(13, 52, 92, 0.16);
}

.slide-card:hover {
  transform: none;
  box-shadow: 0 20px 45px rgba(13, 52, 92, 0.16);
}

.card h3 {
  margin-top: 0;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px rgba(12, 48, 86, 0.12);
}

.step h3 {
  margin: 0 0 4px;
}

.step p {
  margin: 0;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #5ab7ff, #91d7ff);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(208, 235, 255, 0.85));
  padding: 26px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 55px rgba(12, 48, 86, 0.18);
  position: relative;
  overflow: hidden;
}

.callout::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 210, 255, 0.45), rgba(120, 210, 255, 0));
  pointer-events: none;
}

.callout > * {
  position: relative;
  z-index: 1;
}

.hero-cta {
  margin-top: 0;
}

.reading-progress {
  position: fixed;
  top: var(--reading-progress-top, var(--header-height));
  left: 0;
  right: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 18px;
  margin: 0;
  width: 100%;
  border-radius: 0;
  background: #ffffff;
  border-top: 1px solid rgba(120, 160, 200, 0.15);
  border-bottom: 1px solid rgba(120, 160, 200, 0.15);
  box-shadow: 0 6px 16px rgba(12, 45, 85, 0.08);
  backdrop-filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
  pointer-events: none;
}

.reading-progress-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.reading-progress-track {
  height: 8px;
  border-radius: 0;
  background: #f5f9ff;
  border: 1px solid rgba(120, 160, 200, 0.2);
  overflow: hidden;
  position: relative;
}

.reading-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #5ab7ff, #27c4d9);
  transition: width 0.2s ease;
  border-radius: 0;
}

.reading-progress-end {
  height: 1px;
}

.reading-progress-start {
  height: 1px;
  margin-top: 0;
  transform: translateY(-45px);
}

.reading-progress.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.edu-checkpoint-marker {
  height: 1px;
}

.edu-quiz-card {
  display: grid;
  gap: 14px;
}

.edu-quiz-question {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.edu-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.edu-quiz-option {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(12, 45, 85, 0.12);
}

.edu-quiz-option.is-correct {
  border-color: rgba(29, 111, 255, 0.7);
}

.edu-quiz-option.is-wrong {
  border-color: rgba(255, 91, 91, 0.7);
}

.edu-quiz-feedback {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.edu-quiz-feedback[hidden] {
  display: none;
}

.edu-quiz-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.12);
}

.edu-quiz-modal.is-wrong .edu-quiz-chip {
  background: rgba(255, 91, 91, 0.15);
  color: #8f2d2d;
}

.edu-quiz-explanation {
  margin: 0;
  font-size: 12px;
}

.edu-quiz-actions {
  display: flex;
  justify-content: flex-end;
}

.reading-progress-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5fc0ff);
  color: white;
  box-shadow: 0 18px 34px rgba(19, 88, 186, 0.28);
}

.btn-danger {
  background: linear-gradient(135deg, #ff5f5f, #ff8a8a);
  color: white;
  box-shadow: 0 18px 34px rgba(200, 50, 50, 0.28);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-small {
  padding: 8px 14px;
  font-size: 12px;
}

.btn-icon {
  gap: 6px;
}

.btn-logout {
  padding: 6px 10px;
  font-size: 11px;
}

.icon-exit {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  mask: url("icons/logout.svg") no-repeat center / contain;
  -webkit-mask: url("icons/logout.svg") no-repeat center / contain;
  margin-left: 2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px rgba(19, 88, 186, 0.24);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:hover::after {
  opacity: 0.6;
}

.form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 600;
  font-size: 13px;
}

input,
select {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 200, 0.3);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(45, 128, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 128, 255, 0.2);
}

.alert {
  background: rgba(255, 239, 239, 0.92);
  border: 1px solid rgba(240, 120, 120, 0.45);
  color: #8f2d2d;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(112, 34, 34, 0.12);
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
}

.narrow {
  max-width: 540px;
  margin: 0 auto;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-list div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.dev-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  counter-reset: dev;
}

.dev-list li {
  counter-increment: dev;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 200, 0.3);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dev-list li::before {
  content: counter(dev);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(45, 139, 255, 0.12);
  border: 1px solid rgba(45, 139, 255, 0.25);
  flex: 0 0 20px;
}

.mentor-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.mentor-list li {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 200, 0.3);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.result-summary {
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: auto 1fr;
}

.status-card {
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.status-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.status-card.status-ok {
  background: linear-gradient(135deg, rgba(218, 247, 231, 0.95), rgba(198, 238, 216, 0.78));
  border-color: rgba(92, 186, 138, 0.5);
}

.status-card.status-warn {
  background: linear-gradient(135deg, rgba(255, 243, 214, 0.95), rgba(255, 228, 178, 0.78));
  border-color: rgba(234, 176, 88, 0.55);
}

.status-card.status-danger {
  background: linear-gradient(135deg, rgba(255, 230, 230, 0.95), rgba(255, 202, 202, 0.78));
  border-color: rgba(240, 120, 120, 0.5);
}

.status-card .muted-text {
  color: rgba(32, 55, 74, 0.8);
}

.score-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #ffffff, #cfe7ff);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.8), 0 10px 20px rgba(14, 52, 92, 0.18);
}

.score-circle.large {
  width: 90px;
  height: 90px;
  font-size: 16px;
}

.test-form {
  display: grid;
  gap: 20px;
}

.test-form.test-slider {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.test-slider {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slider {
  flex: 1;
  min-height: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 40px rgba(13, 52, 92, 0.12);
  overflow: hidden;
  height: 100%;
}

.slider-track {
  height: 100%;
  display: flex;
  align-items: stretch;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide {
  flex: 0 0 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 8px;
}

.slide-card {
  width: min(840px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  min-height: 100%;
}

.slide.is-active .slide-card {
  animation: slideReveal 0.6s ease;
}

.slide.needs-answer .slide-card {
  animation: nudge 0.35s ease;
  box-shadow: 0 0 0 2px rgba(240, 120, 120, 0.4), 0 20px 45px rgba(13, 52, 92, 0.18);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
  flex-wrap: wrap;
}

.slider-note {
  font-size: 11px;
  color: var(--muted);
}

[data-submit] {
  display: none;
}

.plate-card {
  display: grid;
  gap: 16px;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.plate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plate-body {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.plate-stage {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.plate-media {
  width: min(70vw, 280px);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
}

.plate-arrow {
  position: absolute;
  top: 50%;
  width: var(--plate-arrow-size, 36px);
  height: var(--plate-arrow-size, 36px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  font-size: calc(var(--plate-arrow-size, 36px) * 0.5);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(12, 48, 86, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.plate-arrow:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 16px 30px rgba(12, 48, 86, 0.2);
}

.plate-arrow:disabled,
.plate-arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

.plate-arrow-prev {
  left: calc(((100% - var(--plate-size, 280px)) / 4) + var(--plate-arrow-offset, 0px));
  transform: translate(-50%, -50%);
}

.plate-arrow-next {
  right: calc(((100% - var(--plate-size, 280px)) / 4) + var(--plate-arrow-offset, 0px));
  transform: translate(50%, -50%);
}

.plate-index {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.plate-canvas {
  width: 100%;
  max-width: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.5), 0 14px 26px rgba(15, 55, 94, 0.18);
}

.plate-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.5), 0 14px 26px rgba(15, 55, 94, 0.18);
}

.plate-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.plate-answer {
  display: grid;
  gap: 10px;
  width: 100%;
}

.plate-answer .btn {
  margin-top: 2px;
}

.answer-field {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(120, 160, 200, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.answer-field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.answer-field input {
  width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(120, 160, 200, 0.2);
}

.answer-field input:focus {
  box-shadow: 0 0 0 2px rgba(29, 111, 255, 0.25);
}

.plate-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 160, 200, 0.2);
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(12, 48, 86, 0.12);
}

.option input {
  margin: 0;
}

.option input:checked {
  accent-color: var(--primary);
}

.option input:checked + span {
  font-weight: 600;
  color: var(--primary-dark);
}

.sticky-actions {
  position: sticky;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(12, 48, 86, 0.18);
}

.answer-grid {
  display: grid;
  gap: 12px;
}

.answer-item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 200, 0.2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.answer-item.correct {
  border-color: rgba(80, 180, 140, 0.5);
  background: rgba(218, 244, 231, 0.75);
}

.answer-item.wrong {
  border-color: rgba(240, 120, 120, 0.4);
  background: rgba(255, 229, 229, 0.7);
}

.activity-card {
  margin-top: 0;
}

.history-extended {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(120, 160, 200, 0.3);
}

.history-more {
  margin-top: 12px;
}

.is-hidden {
  display: none !important;
}


.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(120, 160, 200, 0.2);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.activity-score {
  font-weight: 600;
  color: var(--primary-dark);
}

.activity-status {
  font-size: 11px;
  color: var(--muted);
}

.activity-time {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.game-card {
  display: grid;
  gap: 16px;
}

.game-thumb {
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 160, 200, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.game-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-stats div {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.game-stats strong {
  font-size: 16px;
}

.game-stat-wide {
  grid-column: 1 / -1;
}

.game-status {
  display: block;
  width: 100%;
  overflow-wrap: break-word;
}

.game-timer {
  display: grid;
  gap: 8px;
}

.game-timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.game-timer-value {
  font-weight: 600;
  color: var(--primary-dark);
}

.game-timer .progress-bar {
  width: 100%;
  height: 8px;
}

.game-timer .progress-bar span {
  transition: width 0.1s linear;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(var(--game-size, 4), minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px dashed rgba(120, 160, 200, 0.4);
  background:
    radial-gradient(140px 140px at 12% 18%, rgba(127, 212, 255, 0.35), transparent 70%),
    radial-gradient(160px 160px at 88% 86%, rgba(39, 196, 217, 0.22), transparent 70%),
    repeating-linear-gradient(0deg, rgba(29, 111, 255, 0.08) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(29, 111, 255, 0.08) 0 1px, transparent 1px 60px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(223, 240, 255, 0.75));
  min-height: 260px;
}

.game-dot {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.15s ease;
}

.game-dot:hover {
  transform: scale(1.03);
}

.game-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.myth-game-card {
  display: grid;
  gap: 16px;
}

.myth-game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.myth-game-header h3 {
  margin: 4px 0 0;
}

.myth-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 200px;
}

.myth-stats div {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.myth-stats strong {
  font-size: 16px;
  color: var(--primary-dark);
}

.myth-game-body {
  display: grid;
  gap: 14px;
}

.myth-statement {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.myth-game-card.is-done .myth-statement {
  background: linear-gradient(135deg, rgba(120, 190, 255, 0.35), rgba(255, 240, 200, 0.8));
}

.myth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.myth-choice {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  box-shadow: 0 12px 26px rgba(12, 45, 85, 0.12);
}

.myth-choice-myth {
  background: linear-gradient(135deg, rgba(255, 172, 172, 0.4), rgba(255, 255, 255, 0.9));
}

.myth-choice-fact {
  background: linear-gradient(135deg, rgba(127, 212, 255, 0.45), rgba(255, 255, 255, 0.9));
}

.myth-choice.is-selected {
  transform: translateY(-1px);
}

.myth-choice.is-correct {
  border-color: rgba(29, 111, 255, 0.7);
}

.myth-choice.is-wrong {
  border-color: rgba(255, 91, 91, 0.7);
}

.myth-feedback {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.myth-feedback[hidden] {
  display: none;
}

.myth-feedback-chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(29, 111, 255, 0.12);
}

.myth-game-card.is-wrong .myth-feedback-chip {
  background: rgba(255, 91, 91, 0.15);
  color: #8f2d2d;
}

.myth-feedback-text {
  margin: 0;
  font-size: 12px;
  color: var(--text);
}

.myth-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.game-list {
  display: grid;
  gap: 20px;
}

.game-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-header h3 {
  margin: 4px 0 0;
}

.game-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(39, 196, 217, 0.15);
  color: var(--primary-dark);
  border: 1px solid rgba(39, 196, 217, 0.35);
  font-weight: 600;
  white-space: nowrap;
}

.game-image {
  display: grid;
  gap: 16px;
}

.game-image-frame {
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 160, 200, 0.25);
}

.game-image-canvas {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.game-image-canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.color-scene {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(120, 160, 200, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 18px 30px rgba(10, 35, 64, 0.12);
}

.color-scene-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.color-target-info {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.color-target-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--primary-dark);
}

.color-target-info strong {
  font-size: 16px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.color-swatch {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.03);
}

.color-swatch.is-selected {
  border-color: rgba(29, 111, 255, 0.6);
  box-shadow: 0 8px 18px rgba(29, 111, 255, 0.2);
  background: rgba(29, 111, 255, 0.08);
}

.color-swatch.is-correct {
  border-color: rgba(29, 111, 255, 0.9);
  box-shadow: 0 10px 22px rgba(29, 111, 255, 0.25);
  background: rgba(29, 111, 255, 0.12);
}

.color-swatch.is-wrong {
  border-color: rgba(255, 91, 91, 0.85);
  box-shadow: 0 10px 22px rgba(255, 91, 91, 0.2);
  background: rgba(255, 91, 91, 0.12);
}

.scene-target-indicator {
  position: absolute;
  width: clamp(44px, 7vw, 84px);
  height: clamp(44px, 7vw, 84px);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 20px rgba(29, 111, 255, 0.22);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: targetPulse 2.4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scene-target-indicator::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 0 0 2px rgba(29, 111, 255, 0.2);
}

@keyframes targetPulse {
  0% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
  100% { opacity: 0.4; transform: scale(0.98); }
}

@media (min-width: 960px) {
  .game-image {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: start;
  }
}

.image-spot {
  position: absolute;
  width: var(--spot-size, clamp(64px, 20vw, 96px));
  height: var(--spot-size, clamp(64px, 20vw, 96px));
  border-radius: 50%;
  border: 2px dashed rgba(29, 111, 255, 0.4);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.image-spot::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(29, 111, 255, 0.35);
}

.image-spot:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.image-spot.is-selected {
  border-style: solid;
  box-shadow: 0 8px 18px rgba(29, 111, 255, 0.18);
}

.image-spot.is-correct {
  border-color: rgba(29, 111, 255, 0.8);
  background: rgba(29, 111, 255, 0.12);
}

.image-spot.is-wrong {
  border-color: rgba(255, 91, 91, 0.75);
  background: rgba(255, 91, 91, 0.12);
}

.image-spot.spot-1 {
  left: 28%;
  top: 33%;
}

.image-spot.spot-2 {
  left: 72%;
  top: 33%;
}

.image-spot.spot-3 {
  left: 28%;
  top: 72%;
}

.image-spot.spot-4 {
  left: 72%;
  top: 72%;
}

.game-image-panel {
  display: grid;
  gap: 12px;
}

.game-image-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.game-image-stats div {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.game-image-stats strong {
  font-size: 16px;
}

.game-image-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.game-image-actions .muted-text {
  flex-basis: 100%;
}

.game-arrange {
  display: grid;
  gap: 18px;
}

.arrange-stage {
  display: grid;
  gap: 8px;
}

.arrange-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.arrange-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 12px;
}

.arrange-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arrange-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--primary-dark);
}

.arrange-hint {
  font-size: 12px;
  color: var(--muted);
}

.arrange-row {
  display: grid;
  grid-template-columns: repeat(var(--arrange-cols, var(--arrange-size, 4)), minmax(44px, 1fr));
  gap: 6px;
}

.arrange-chip {
  height: 40px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 18px rgba(12, 45, 85, 0.18);
  position: relative;
  overflow: hidden;
  animation: arrangeFloat 3.6s ease-in-out infinite;
}

.arrange-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), transparent 60%);
  opacity: 0.55;
}

.arrange-slot {
  height: 40px;
  border-radius: 14px;
  border: 2px dashed rgba(120, 160, 200, 0.55);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  place-items: center;
  position: relative;
}

.arrange-slot::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(29, 111, 255, 0.2);
}

.arrange-slot:hover {
  transform: scale(1.02);
}

.arrange-slot.is-filled {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 20px rgba(12, 45, 85, 0.2);
}

.arrange-slot.is-filled::after {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.arrange-slot.is-active {
  border-color: rgba(29, 111, 255, 0.8);
  box-shadow: 0 0 0 2px rgba(29, 111, 255, 0.16);
}

.arrange-options {
  display: grid;
  grid-template-columns: repeat(var(--arrange-options-cols, 1), minmax(0, 1fr));
  gap: 10px;
}

.arrange-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}

.arrange-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(12, 45, 85, 0.16);
}

.arrange-option-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 12px rgba(12, 45, 85, 0.18);
  flex: 0 0 auto;
}

.arrange-option-label {
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}

.arrange-option.is-used {
  opacity: 0.55;
  filter: grayscale(0.2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.arrange-status {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.game-arrange-card.is-celebrate .arrange-stage {
  animation: arrangeCelebrate 0.45s ease;
}

@keyframes arrangeFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes arrangeCelebrate {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@media (min-width: 960px) {
  .game-arrange {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

.admin-nav .btn {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.admin-hero-actions {
  margin: 0 0 18px;
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.admin-hero-actions .btn {
  width: 100%;
  flex: 1 1 0;
  font-size: 10.5px;
  line-height: 1;
  padding: 8px;
  letter-spacing: 0.04em;
}

.admin-hero {
  margin-top: 0;
}

.admin-hero-card {
  display: grid;
  gap: 18px;
}

.admin-data-page .admin-split,
.admin-data-page .admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
}

.admin-data-page .admin-split .card,
.admin-data-page .admin-grid .card {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.admin-admin-page .admin-split,
.admin-admin-page .admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  justify-content: center;
}

.admin-admin-page .admin-split .card,
.admin-admin-page .admin-grid .card {
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.admin-admin-page .card h3 {
  margin: 0 0 4px;
}

.admin-admin-page .card h3 + .muted-text {
  margin-top: 0;
}

.admin-filter-form .field,
.admin-filter-form .btn {
  width: 274.4px;
  max-width: 100%;
  justify-self: start;
}

.admin-filter-form select {
  width: 100%;
}

.admin-export-form .field,
.admin-export-form .btn {
  width: 274.4px;
  max-width: 100%;
  justify-self: start;
}

.admin-export-form select {
  width: 100%;
}

.admin-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-export-form .admin-export-actions .btn {
  width: auto;
  flex: 1 1 140px;
}

.admin-chart-card {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.admin-chart-card::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 139, 255, 0.28), rgba(45, 139, 255, 0));
  opacity: 0.9;
  pointer-events: none;
}

.admin-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.admin-chart-head h3 {
  margin: 0 0 4px;
}

.admin-chart-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-chart-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 200, 0.4);
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.03em;
}

.admin-chart {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.admin-chart-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.admin-chart-grid {
  stroke: rgba(120, 160, 200, 0.35);
  stroke-dasharray: 5 6;
  stroke-width: 1;
}

.admin-chart-area {
  fill: url(#adminChartFill);
}

.admin-chart-line {
  fill: none;
  stroke: url(#adminChartLine);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-chart-dot {
  fill: #ffffff;
  stroke: #2d8bff;
  stroke-width: 2;
  filter: drop-shadow(0 6px 10px rgba(24, 84, 150, 0.2));
}

.admin-chart-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.admin-chart-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-bar-chart {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.admin-bar-row {
  display: grid;
  grid-template-columns: var(--admin-bar-label, 90px) 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}

.admin-bar-label {
  font-weight: 600;
  color: var(--primary-dark);
}

.admin-bar-track {
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.admin-bar-fill {
  --bar-start: #2d8bff;
  --bar-end: #70d7ff;
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bar-start), var(--bar-end));
  box-shadow: 0 6px 12px rgba(28, 86, 152, 0.2);
}

.admin-bar-value {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.admin-bar-fill.tone-blue {
  --bar-start: #2d8bff;
  --bar-end: #6fd3ff;
}

.admin-bar-fill.tone-pink {
  --bar-start: #ff6ea5;
  --bar-end: #ffb6d6;
}

.admin-bar-fill.tone-violet {
  --bar-start: #7a5cff;
  --bar-end: #c4b6ff;
}

.admin-bar-fill.tone-green {
  --bar-start: #2ab97f;
  --bar-end: #89e7b7;
}

.admin-bar-fill.tone-teal {
  --bar-start: #1fb6d1;
  --bar-end: #87e6f2;
}

.admin-bar-fill.tone-orange {
  --bar-start: #ff914d;
  --bar-end: #ffc28b;
}

.admin-bar-fill.tone-rose {
  --bar-start: #ff5f7a;
  --bar-end: #ffb3c0;
}

.admin-bar-fill.tone-gray {
  --bar-start: #8aa3b8;
  --bar-end: #c6d5e3;
}

.admin-bar-fill.variant-success {
  --bar-start: #2ab97f;
  --bar-end: #89e7b7;
}

.admin-bar-fill.variant-warn {
  --bar-start: #f2a84b;
  --bar-end: #ffd08a;
}

.admin-bar-fill.variant-danger {
  --bar-start: #f36c6c;
  --bar-end: #ffb3b3;
}

.admin-bar-fill.variant-neutral {
  --bar-start: #7aa2c9;
  --bar-end: #c3d6f0;
}

.admin-report-page .site-footer,
.admin-report-page .modal-overlay,
.admin-report-page .bg-orb {
  display: none;
}

.admin-report-page {
  background: #f4f8ff;
}

.admin-report-page .container {
  padding: 24px 24px 40px;
}

.report-hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(227, 245, 255, 0.85));
  border-radius: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 50px rgba(12, 48, 86, 0.16);
  display: grid;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.report-hero::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  right: -70px;
  top: -60px;
  background: radial-gradient(circle, rgba(77, 180, 255, 0.3), rgba(77, 180, 255, 0));
  opacity: 0.8;
  pointer-events: none;
}

.report-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  filter: blur(1px);
}

.report-orb-a {
  width: 160px;
  height: 160px;
  top: -60px;
  left: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(89, 168, 255, 0.35));
}

.report-orb-b {
  width: 180px;
  height: 180px;
  bottom: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(118, 208, 255, 0.4));
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
}

.report-sub {
  font-size: 12px;
  color: var(--muted);
}

.report-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.report-meta-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  position: relative;
  overflow: hidden;
}

.report-meta-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #6fd3ff);
  opacity: 0.7;
}

.report-meta-card span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.report-meta-card strong {
  color: var(--primary-dark);
}

.report-section {
  margin-top: 32px;
  border-top: 1px solid rgba(120, 160, 200, 0.2);
  padding-top: 18px;
}

.report-hero + .report-section {
  border-top: none;
  padding-top: 0;
}

.report-chart-grid {
  margin-top: 18px;
}

.report-table-grid .card {
  align-self: start;
}

.report-chart-axis {
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
}

.report-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.admin-report-page .card,
.admin-report-page .admin-chart-card {
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 40px rgba(12, 48, 86, 0.14);
}

.admin-report-page .stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(229, 244, 255, 0.75));
}

.admin-report-page .data-table thead {
  background: rgba(255, 255, 255, 0.9);
}

.admin-report-page .data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.65);
}

@media print {
  body.admin-report-page {
    background: #ffffff;
  }

  body.admin-report-page .bg-orb,
  body.admin-report-page .report-actions {
    display: none !important;
  }

  body.admin-report-page .report-hero,
  body.admin-report-page .card,
  body.admin-report-page .admin-chart-card {
    box-shadow: none;
    border-color: rgba(120, 160, 200, 0.45);
  }

  body.admin-report-page .admin-chart-card,
  body.admin-report-page .card {
    break-inside: avoid;
  }

  body.admin-report-page .container {
    padding: 0;
  }
}

.admin-health-header h3 {
  margin: 12px 0 4px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.admin-health-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-health-grid div {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.admin-health-grid strong {
  font-size: 14px;
  color: var(--primary-dark);
}

.admin-status-list {
  display: grid;
  gap: 10px;
}

.admin-status-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.admin-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.admin-status-item strong {
  color: var(--primary-dark);
  font-size: 13px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-split {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.stat-card {
  display: grid;
  gap: 8px;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stat-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  color: var(--primary-dark);
}

.stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  color: var(--primary-dark);
}

.stat-meta {
  font-size: 12px;
  color: var(--muted);
}

.card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.card-toolbar h3 {
  margin: 0 0 4px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(120, 160, 200, 0.2);
}

.data-table th {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--muted);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.65);
}

.table-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-user span {
  font-size: 11px;
  color: var(--muted);
}

.table-score {
  font-weight: 600;
  color: var(--primary-dark);
}

.data-table.results-table {
  table-layout: fixed;
}

.data-table.results-table .col-user {
  width: 32%;
  padding-right: 8px;
}

.data-table.results-table .col-score {
  width: 8%;
  padding-left: 6px;
  padding-right: 6px;
  text-align: left;
  white-space: nowrap;
}

.data-table.results-table .col-status {
  width: 36%;
  min-width: 240px;
  padding-left: 8px;
  padding-right: 8px;
}

.data-table.results-table .col-time {
  width: 24%;
  padding-left: 8px;
  padding-right: 8px;
  text-align: left;
  white-space: nowrap;
}

.data-table.results-table .col-action {
  width: 10%;
  padding-left: 8px;
  padding-right: 8px;
}

.data-table.results-table.results-table-actions .col-user {
  width: 28%;
}

.data-table.results-table.results-table-actions .col-status {
  width: 34%;
  min-width: 220px;
}

.data-table.results-table.results-table-actions .col-time {
  width: 20%;
}

.data-table.results-table .table-user span {
  overflow-wrap: anywhere;
}

.data-table.results-table .table-score {
  white-space: nowrap;
}

.data-table.results-table .table-chip {
  white-space: normal;
  max-width: 200px;
}

.table-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(120, 160, 200, 0.3);
  background: rgba(255, 255, 255, 0.7);
}

.table-chip.success {
  background: rgba(218, 244, 231, 0.75);
  border-color: rgba(80, 180, 140, 0.45);
  color: #1b6c48;
}

.table-chip.warn {
  background: rgba(255, 241, 214, 0.8);
  border-color: rgba(234, 176, 88, 0.5);
  color: #8a5a17;
}

.table-chip.danger {
  background: rgba(255, 228, 228, 0.8);
  border-color: rgba(240, 120, 120, 0.45);
  color: #8f2d2d;
}

.table-chip.neutral {
  background: rgba(232, 241, 255, 0.8);
  border-color: rgba(120, 160, 200, 0.4);
  color: var(--primary-dark);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 200, 0.2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.admin-callout {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.admin-callout .admin-actions {
  justify-content: flex-start;
}

.admin-tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.admin-tips li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 200, 0.2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: var(--text);
}

.site-footer {
  margin-top: 0;
  padding: 24px 20px 32px;
  text-align: left;
  color: var(--text);
  background: #ffffff;
  border-top: 1px solid rgba(120, 160, 200, 0.2);
}

.footer-shell {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: grid;
  gap: 10px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  margin: 0;
  text-align: left;
}

.footer-sub {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  text-align: left;
}

.footer-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-tag {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  font-weight: 600;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 200, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(12, 48, 86, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 128, 255, 0.45);
  box-shadow: 0 16px 26px rgba(12, 48, 86, 0.16);
}

.social-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.social-link-instagram .social-icon {
  width: 18px;
  height: 18px;
}

.social-links-compact .social-link {
  padding: 6px 10px;
  font-size: 11px;
}

.social-links-compact .social-icon {
  width: 14px;
  height: 14px;
}

.social-links-compact .social-link-instagram .social-icon {
  width: 16px;
  height: 16px;
}

.social-block {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.social-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  font-weight: 600;
}

.social-block .muted-text {
  margin: 0;
}

.footer-text {
  margin: 0;
  max-width: 520px;
  font-size: 12px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.footer-copy {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid rgba(120, 160, 200, 0.2);
  padding-top: 8px;
  position: relative;
  z-index: 1;
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nudge {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-meta {
    gap: 16px;
  }

  .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    padding: 18px 20px var(--footer-gap);
  }

  .topbar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 0;
    align-items: center;
  }

  .hero {
    padding: 22px;
  }

  .brand-tag {
    display: none;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .header-right {
    display: contents;
  }

  body.no-nav .topbar {
    flex-wrap: nowrap;
  }

  body.no-nav .header-right {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  body.no-nav .nav-links {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    order: 1;
  }

  .profile-button {
    order: 2;
    margin-left: auto;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .reading-progress {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 12px;
  }

  .reading-progress-label {
    grid-column: 1 / -1;
  }

  .edu-quiz-options {
    grid-template-columns: 1fr;
  }

  .test-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.test-mode {
    --plate-size: min(84vw, 34vh, 240px);
    --plate-options-gap: clamp(24px, 6vh, 36px);
    --plate-arrow-size: 32px;
    --plate-arrow-offset: 0px;
  }

  body.test-mode .plate-body {
    gap: 16px;
  }

  body.test-mode .plate-stage {
    margin-top: -10px;
    margin-bottom: 20px;
  }

  body.test-mode .plate-options {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .test-progress {
    align-items: flex-start;
    width: 100%;
  }

  .progress-bar {
    width: 100%;
  }

  .progress-dots {
    display: none;
  }

  .slide {
    padding: 8px;
  }

  .slider-controls {
    justify-content: center;
  }

  .slider-note {
    width: 100%;
    text-align: center;
  }

  .brightness-modal {
    padding: 20px;
  }

  .brightness-preview {
    padding: 10px 12px;
  }

  .brightness-hero {
    min-height: 150px;
    padding: 14px;
  }

  .hero-phone {
    width: 112px;
    height: 150px;
  }

  .hero-sun {
    width: 46px;
    height: 46px;
    top: 10px;
    right: 12px;
  }

  .hero-bubble.bubble-2 {
    right: 70px;
  }

  .plate-options {
    grid-template-columns: 1fr;
  }

  body.test-mode .plate-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .activity-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .activity-time {
    text-align: left;
    white-space: normal;
  }

  .game-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .myth-actions {
    grid-template-columns: 1fr;
  }

  .myth-stats {
    width: 100%;
  }

  .admin-health-grid {
    grid-template-columns: 1fr;
  }

  .admin-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .card-toolbar {
    align-items: flex-start;
  }

  .table-wrap {
    overflow: visible;
  }

  .data-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .data-table tbody tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(120, 160, 200, 0.2);
  }

  .data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.9);
  }

  .data-table td {
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .data-table.results-table .col-user,
  .data-table.results-table .col-score,
  .data-table.results-table .col-status,
  .data-table.results-table .col-time,
  .data-table.results-table .col-action {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .data-table.results-table.results-table-actions .col-user,
  .data-table.results-table.results-table-actions .col-score,
  .data-table.results-table.results-table-actions .col-status,
  .data-table.results-table.results-table-actions .col-time,
  .data-table.results-table.results-table-actions .col-action {
    width: 100%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .data-table.results-table .table-user strong,
  .data-table.results-table .table-user span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .data-table td::before {
    content: attr(data-label);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
  }

  .data-table td .admin-actions {
    justify-content: flex-start;
  }

  .data-table.results-table .table-chip {
    white-space: normal;
  }

  .site-footer {
    padding: 24px 24px 28px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-tags {
    justify-content: flex-start;
  }

  .footer-social {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-text {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
