:root {
  color-scheme: dark;
  --black: #151314;
  --charcoal: #282629;
  --graphite: #464446;
  --gold: #cda738;
  --gold-dark: #8c6d26;
  --gold-soft: #bd9c35;
  --champagne: #d8c797;
  --cream: #fff8e3;
  --muted: #b9ad90;
  --glass: rgba(24, 22, 22, 0.72);
  --line: rgba(216, 199, 151, 0.2);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cream);
  background: var(--black);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
form, label, input, textarea, select, button { min-width: 0; }

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,241,170,0.22), transparent 18rem),
    linear-gradient(145deg, #0d0c0d, #171414 58%, #282629);
  transition: opacity 0.55s ease, visibility 0.55s ease, transform 0.55s ease;
}
.app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}
.loader-orbit {
  position: relative;
  width: min(18rem, 62vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,241,170,0.28);
  background: radial-gradient(circle, rgba(255,241,170,0.16), rgba(0,0,0,0.28) 64%);
  animation: loaderFloat 2.4s ease-in-out infinite;
  transform-style: preserve-3d;
}
.loader-orbit::before,
.loader-orbit::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #fff1aa;
  border-right-color: rgba(205,167,56,0.75);
  animation: loaderSpin 1.6s linear infinite;
}
.loader-orbit::after {
  inset: 18%;
  animation-duration: 2.2s;
  animation-direction: reverse;
}
.loader-orbit img {
  width: 68%;
  border-radius: 1.2rem;
  filter: drop-shadow(0 22px 45px rgba(205,167,56,0.42));
  animation: loaderLogo 2.8s ease-in-out infinite;
}
.app-loader span {
  color: #ffeaa0;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lux-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(205, 167, 56, 0.22), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(255, 248, 227, 0.08), transparent 24rem),
    radial-gradient(circle at 70% 82%, rgba(140, 109, 38, 0.2), transparent 30rem),
    linear-gradient(145deg, #0d0c0d 0%, #171414 52%, #282629 100%);
}

.lux-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(216, 199, 151, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 199, 151, 0.055) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(900px) rotateX(64deg) translateY(-12%);
  transform-origin: center top;
  animation: gridDrift 18s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent 82%);
}

.lux-bg i {
  position: absolute;
  width: 32rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 40deg, transparent, rgba(205, 167, 56, 0.35), transparent, rgba(255, 248, 227, 0.12), transparent);
  filter: blur(18px);
  opacity: 0.58;
  animation: slowOrbit 19s ease-in-out infinite alternate;
}

.lux-bg i:nth-child(1) { left: -10rem; top: 14rem; }
.lux-bg i:nth-child(2) { right: -12rem; top: 4rem; animation-delay: -6s; }
.lux-bg i:nth-child(3) { left: 36%; bottom: -18rem; animation-delay: -11s; }
.lux-bg span {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 38%, rgba(255,255,255,0.08) 48%, transparent 58% 100%);
  transform: translateX(-100%);
  animation: globalShine 9s ease-in-out infinite;
}

.frost-fall {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.frost-flake {
  position: absolute;
  top: -2rem;
  left: var(--left);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.98) 0 18%, rgba(255,241,170,0.88) 28%, rgba(205,167,56,0.18) 58%, transparent 72%);
  filter: drop-shadow(0 0 8px rgba(255,241,170,0.96)) drop-shadow(0 0 18px rgba(205,167,56,0.58));
  opacity: var(--opacity);
  animation: frostFall var(--duration) linear var(--delay) infinite;
}
.frost-flake::before,
.frost-flake::after {
  content: "";
  position: absolute;
  inset: 48% -45%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.frost-flake::after {
  transform: rotate(90deg);
}

.photo-flashes {
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.photo-flash {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 2%, rgba(255,241,170,0.55) 4%, rgba(205,167,56,0.2) 18%, transparent 62%),
    conic-gradient(from var(--angle), transparent 0 10%, rgba(255,255,255,0.62) 12%, transparent 16% 34%, rgba(255,241,170,0.52) 37%, transparent 42% 100%);
  filter: blur(0.2px) drop-shadow(0 0 24px rgba(255,241,170,0.56));
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.42) rotate(var(--angle));
  animation: photoFlash var(--duration) ease-in-out var(--delay) infinite;
}
.photo-flash::before,
.photo-flash::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 155%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.82), rgba(255,241,170,0.68), transparent);
  transform: translate(-50%, -50%);
}
.photo-flash::after {
  width: 2px;
  height: 155%;
}

.login-body { display: grid; place-items: center; padding: clamp(1rem, 4vw, 4rem); }
.login-sparks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.login-sparks span {
  position: absolute;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff1aa;
  box-shadow: 0 0 22px #fff1aa, 0 0 54px var(--gold);
  animation: sparkRain 7s linear infinite;
}
.login-sparks span:nth-child(1) { left: 12%; animation-delay: -1s; }
.login-sparks span:nth-child(2) { left: 28%; animation-delay: -3s; }
.login-sparks span:nth-child(3) { left: 54%; animation-delay: -4.5s; }
.login-sparks span:nth-child(4) { left: 72%; animation-delay: -2.2s; }
.login-sparks span:nth-child(5) { left: 88%; animation-delay: -5.5s; }
.login-shell {
  width: min(1180px, 100%);
  min-height: min(760px, 92vh);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}

.login-visual, .gold-stage, .premium-scene { position: relative; min-height: 36rem; display: grid; place-items: center; }
.gold-stage { transform-style: preserve-3d; perspective: 1200px; }
.logo-frame-3d {
  position: relative;
  width: min(31rem, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,241,170,0.28);
  border-radius: 1.45rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,241,170,0.04) 38%, rgba(0,0,0,0.18)),
    radial-gradient(circle at 50% 38%, rgba(255,241,170,0.22), transparent 60%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -24px 55px rgba(0,0,0,0.3),
    0 34px 100px rgba(0,0,0,0.58),
    0 0 75px rgba(205,167,56,0.18);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-10deg) rotateX(7deg);
  animation: logoPanelFloat 5.6s ease-in-out infinite;
}
.logo-frame-3d::before,
.logo-frame-3d::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.logo-frame-3d::before {
  inset: 0;
  background: linear-gradient(116deg, transparent 0 30%, rgba(255,255,255,0.28) 45%, transparent 58% 100%);
  transform: translateX(-140%);
  animation: panelLightSweep 4.2s ease-in-out infinite;
}
.logo-frame-3d::after {
  inset: auto 10% -12% 10%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,241,170,0.28), transparent 70%);
  filter: blur(16px);
}
.logo-frame-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,0.54)) saturate(1.08) contrast(1.04);
  transform: translateZ(42px) scale(1.015);
}

.floating-chip {
  position: absolute;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(21, 19, 20, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: floatChip 4.5s ease-in-out infinite;
}
.chip-a { left: 7%; top: 20%; }
.chip-b { right: 4%; top: 46%; animation-delay: -1.4s; }
.chip-c { left: 18%; bottom: 12%; animation-delay: -2.5s; }
.login-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(36,32,28,0.82), rgba(12,11,11,0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
}
.login-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255,241,170,0.18) 45%, transparent 58% 100%);
  transform: translateX(-120%);
  animation: cardShine 4s ease-in-out infinite;
  pointer-events: none;
}
.login-logo {
  width: 10rem;
  display: block;
  margin-bottom: 1rem;
  border-radius: 1rem;
  filter: drop-shadow(0 12px 30px rgba(205,167,56,0.28));
}
.login-card h1 { margin: 0.25rem 0 0.8rem; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 0.95; letter-spacing: 0; }
.login-card p, .hero-lux p, .class-card p, .activity p, .timeline p, .riddle-panel p { color: #ded1b3; line-height: 1.7; }
.login-error { display: block; margin: 0 0 1rem; color: #ffdf87; }

.topbar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
  background: rgba(13, 12, 13, 0.72);
  backdrop-filter: blur(20px);
}
.brand { display: flex; align-items: center; gap: 0.8rem; min-width: fit-content; padding-bottom: 1rem; border-bottom: 1px solid rgba(216,199,151,0.16); }
.brand img {
  width: 4.1rem;
  height: 4.1rem;
  object-fit: cover;
  border-radius: 0.85rem;
  filter: drop-shadow(0 8px 20px rgba(205,167,56,0.25));
}
.brand strong, .brand small { display: block; }
.brand small, .nav a, .kicker, .section-head span, .metric span, .metric small, .class-card span, .activity span, .timeline span, .material span, .material small { color: var(--muted); }
.nav { display: grid; gap: 0.45rem; }
.nav-drawer {
  display: grid;
  align-items: stretch;
  gap: 0.7rem;
}
.notification-center {
  position: relative;
}
.notify-button {
  width: 100%;
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(216,199,151,0.22);
  border-radius: 0.85rem;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(255,241,170,0.1), rgba(255,255,255,0.04));
  cursor: pointer;
}
.notify-button span {
  width: 0.7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff1aa;
  box-shadow: 0 0 18px #fff1aa;
  animation: pulseGold 1.7s ease-in-out infinite;
}
.notify-button b {
  margin-left: auto;
  min-width: 1.8rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold));
}
.notify-panel {
  position: absolute;
  left: calc(100% + 0.8rem);
  top: 0;
  width: 18rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(13,12,13,0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  opacity: 0;
  transform: translateX(-0.6rem) scale(0.96);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.notification-center.is-open .notify-panel {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.notify-panel strong {
  color: #ffeaa0;
}
.notify-panel p {
  color: #ded1b3;
  margin: 0.6rem 0 0;
}
.hamburger {
  display: none;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  padding: 0.65rem;
}
.hamburger span {
  display: block;
  height: 2px;
  margin: 0.28rem 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff1aa, var(--gold));
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(0.58rem) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-0.58rem) rotate(-45deg); }
.nav a, .icon-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 0.24s ease;
  text-align: left;
  background: rgba(255,255,255,0.035);
}
.nav a:hover, .icon-btn:hover { color: var(--cream); border-color: var(--line); background: rgba(255,255,255,0.05); transform: translateY(-2px); }

main { width: min(1500px, calc(100% - 18rem)); margin: 0 0 0 18rem; }
.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  display: grid;
  gap: 0.65rem;
}
.floating-actions a {
  width: 3.1rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,241,170,0.32);
  border-radius: 50%;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold), var(--gold-dark));
  box-shadow: 0 16px 34px rgba(0,0,0,0.36), 0 0 24px rgba(205,167,56,0.24);
  font-weight: 950;
  animation: floatChip 3.3s ease-in-out infinite;
}
.floating-actions a:nth-child(2) { animation-delay: -0.8s; }
.floating-actions a:nth-child(3) { animation-delay: -1.5s; }
.route-section {
  display: none !important;
}
.route-section.is-active {
  display: grid !important;
  animation: routeEnter 0.58s ease both;
}
.band.route-section.is-active,
.metrics.route-section.is-active {
  display: block !important;
}
.metrics.route-section.is-active {
  display: flex !important;
}
.hero-lux.route-section.is-active {
  display: grid !important;
}
.nav a.is-active {
  color: #17120a;
  border-color: rgba(255,241,170,0.45);
  background: linear-gradient(135deg, #fff1aa, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 34px rgba(205,167,56,0.22);
}
.hero-lux {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem) 3rem;
}
.hero-lux h1 {
  max-width: 11ch;
  margin: 0.3rem 0 1rem;
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 0.85;
  letter-spacing: 0;
  background: linear-gradient(92deg, #fff8e3 0%, #cda738 38%, #8c6d26 68%, #fff1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 55px rgba(205,167,56,0.18);
}
.hero-lux p { max-width: 46rem; font-size: 1.12rem; }
.hero-actions, .metrics, .form-grid, .class-card footer, .session-grid { display: flex; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.85rem 1.1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.gold-btn {
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa 0%, var(--gold) 34%, var(--gold-dark) 70%, #f9e891 100%);
  box-shadow: 0 18px 40px rgba(205,167,56,0.32);
}
.dark-btn {
  border: 1px solid var(--line);
  color: var(--cream);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(205,167,56,0.08));
}

.premium-scene { min-height: 40rem; perspective: 1300px; transform-style: preserve-3d; }
.scene-floor {
  position: absolute;
  bottom: 5%;
  width: 88%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(205,167,56,0.24), rgba(205,167,56,0.07) 38%, transparent 72%);
  transform: rotateX(72deg);
  filter: blur(2px);
  animation: floorPulse 3.6s ease-in-out infinite;
}
.logo-monolith {
  position: relative;
  z-index: 2;
  width: min(34rem, 82vw);
  min-height: 28rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,199,151,0.24);
  border-radius: 1.1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(28,24,20,0.78));
  box-shadow: inset 0 0 80px rgba(205,167,56,0.12), var(--shadow);
  transform: rotateY(-12deg) rotateX(8deg);
  animation: monolithFloat 6s ease-in-out infinite;
  overflow: hidden;
}
.logo-monolith::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255,255,255,0.22) 45%, transparent 56% 100%);
  transform: translateX(-120%);
  animation: cardShine 4.8s ease-in-out infinite;
}
.logo-monolith img {
  width: 86%;
  border-radius: 1.25rem;
  filter: drop-shadow(0 28px 60px rgba(0,0,0,0.62));
}
.gold-sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff8d1, #cda738 34%, #8c6d26 72%, #221809 100%);
  box-shadow: inset -18px -20px 34px rgba(0,0,0,0.38), 0 20px 45px rgba(205,167,56,0.25);
}
.sphere-a { width: 5.4rem; right: 8%; top: 16%; animation: levitate 4.4s ease-in-out infinite; }
.sphere-b { width: 3.4rem; left: 10%; top: 30%; animation: levitate 5.2s ease-in-out infinite -1s; }
.sphere-c { width: 4.2rem; right: 18%; bottom: 12%; animation: levitate 4.8s ease-in-out infinite -2s; }

.metrics { flex-wrap: wrap; padding: 0 clamp(1rem, 4vw, 4rem) 4rem; }
.metric, .panel, .class-card, .activity, .wheel-panel, .riddle-panel, .timeline article, .material, .game-card {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.metric { flex: 1 1 14rem; padding: 1.2rem; position: relative; overflow: hidden; }
.metric::after {
  content: "";
  position: absolute;
  inset: auto 1rem 0;
  height: 0.22rem;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.metric strong { display: block; margin: 0.35rem 0; font-size: 2.6rem; color: #ffeaa0; }

.admin-console {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.console-grid,
.teacher-review-grid,
.student-course-grid,
.admin-kpi-grid,
.student-status-grid,
.module-unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.admin-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.admin-kpi {
  min-height: 8rem;
  display: grid;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: linear-gradient(145deg, rgba(255,241,170,0.08), rgba(255,255,255,0.035));
  box-shadow: var(--shadow);
}
.admin-kpi span {
  color: var(--muted);
}
.admin-kpi strong {
  color: #ffeaa0;
  font-size: 2.5rem;
}
.student-status-grid {
  margin-bottom: 1rem;
}
.student-status-card,
.student-notice {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.student-status-card {
  min-height: 8.4rem;
  display: grid;
  align-content: center;
  padding: 1rem;
}
.student-status-card::before,
.student-notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.34rem;
  background: var(--status);
  box-shadow: 0 0 24px var(--status);
}
.student-status-card span,
.student-status-card small {
  color: var(--muted);
}
.student-status-card strong {
  color: #ffeaa0;
  font-size: 2.5rem;
}
.status-green { --status: #58f2a1; }
.status-gold { --status: #ffd66b; }
.status-red { --status: #ff6d6d; }
.student-notification-table {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.student-notice {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.25rem;
}
.student-notice b {
  color: #ffeaa0;
}
.student-notice span {
  color: #ded1b3;
}
.student-notice small {
  color: var(--muted);
}
.coupon-panel {
  max-width: 42rem;
}
.console-tile,
.review-card,
.student-course-card {
  position: relative;
  min-height: 12rem;
  display: grid;
  align-content: end;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.console-tile::before,
.review-card::before,
.student-course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255,241,170,0.18), transparent 34%);
  pointer-events: none;
}
.console-tile b,
.review-card h3,
.student-course-card h3 {
  position: relative;
  margin: 0;
  color: #ffeaa0;
  font-size: 1.45rem;
}
.console-tile span,
.review-card span,
.review-card small,
.student-course-card span {
  position: relative;
  color: var(--muted);
}
.review-card p,
.student-course-card p {
  position: relative;
  color: #ded1b3;
  line-height: 1.55;
}
.success-bar {
  position: relative;
  height: 0.8rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}
.success-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff1aa, var(--gold), var(--gold-dark));
  box-shadow: 0 0 22px rgba(205,167,56,0.42);
  animation: loadBar 1.2s ease both;
}
.module-unlock-grid {
  margin-top: 1rem;
}
.module-unlock-card {
  position: relative;
  min-height: 13rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.module-unlock-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1aa, var(--gold), var(--gold-dark));
  opacity: 0.28;
  box-shadow: 0 0 36px rgba(205,167,56,0.38);
}
.module-unlock-card.is-complete::after {
  opacity: 1;
  animation: pulseGold 1.8s ease-in-out infinite;
}
.module-unlock-card.is-locked {
  filter: grayscale(0.7);
  opacity: 0.58;
}
.module-unlock-card span,
.module-unlock-card small {
  color: var(--muted);
}
.module-unlock-card h3 {
  color: #ffeaa0;
  margin: 0.35rem 0;
}
.module-unlock-card p {
  color: #ded1b3;
  line-height: 1.55;
}
.module-unlock-card strong {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold));
}
.module-answer-form {
  position: relative;
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(216,199,151,0.18);
}
.module-answer-form label {
  color: #f4e8c4;
}
.module-answer-form textarea {
  min-height: 7rem;
}
.course-player-shell {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.course-player-hero,
.lesson-player-card,
.lesson-step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--accent, var(--gold)) 28%, transparent), transparent 22rem);
  box-shadow: var(--shadow);
}
.course-player-hero {
  padding: clamp(1rem, 3vw, 2rem);
}
.course-player-hero span,
.lesson-player-head span,
.lesson-step b {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.course-player-hero h3,
.lesson-player-head h3 {
  margin: 0.3rem 0;
  color: #ffeaa0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0;
}
.course-player-hero p,
.lesson-player-head p,
.lesson-step p {
  color: #ded1b3;
  line-height: 1.65;
}
.learning-path {
  display: grid;
  gap: 1.2rem;
}
.lesson-player-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}
.lesson-player-card.is-locked {
  opacity: 0.55;
  filter: grayscale(0.65);
}
.lesson-player-card.is-complete {
  border-color: rgba(255,241,170,0.44);
  box-shadow: var(--shadow), 0 0 50px rgba(205,167,56,0.16);
}
.lesson-player-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.lesson-player-head strong,
.lesson-complete-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold), #8c6d26);
  box-shadow: 0 0 24px rgba(205,167,56,0.32);
  font-weight: 900;
}
.lesson-step-stack {
  display: grid;
  gap: 0.85rem;
}
.lesson-step {
  padding: 1rem;
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(0,0,0,0.16)),
    radial-gradient(circle at 90% 18%, rgba(255,241,170,0.14), transparent 13rem);
}
.lesson-step h4 {
  margin: 0.35rem 0;
  color: #fff1aa;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
}
.lesson-step::after {
  content: "";
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 7rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent, rgba(255,241,170,0.3), transparent, rgba(205,167,56,0.24), transparent);
  filter: blur(2px);
  animation: slowOrbit 9s ease-in-out infinite alternate;
}
.lesson-media {
  display: block;
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid rgba(216,199,151,0.2);
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.lesson-pdf-preview {
  width: 100%;
  min-height: 22rem;
  border: 1px solid rgba(216,199,151,0.22);
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.05);
}
.external-video-preview {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.8rem;
  border: 1px solid rgba(216,199,151,0.2);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(255,241,170,0.08), rgba(0,0,0,0.18));
}
.external-video-preview img {
  width: 5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.7rem;
  filter: drop-shadow(0 0 18px rgba(205,167,56,0.3));
}
.external-video-preview strong {
  display: block;
  overflow: hidden;
  color: #ffeaa0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lesson-resource,
.step-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 2.6rem;
  margin-top: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: #1b1409;
  background: linear-gradient(135deg, #fff1aa, var(--gold));
  font-weight: 900;
  box-shadow: 0 0 30px rgba(205,167,56,0.24);
}
.lesson-material-preview {
  display: grid;
  gap: 0.45rem;
  width: min(13rem, 100%);
  padding: 0.55rem;
  border: 1px solid rgba(216,199,151,0.22);
  border-radius: 0.85rem;
  background: rgba(255,255,255,0.05);
}
.lesson-material-preview img,
.lesson-material-preview video,
.lesson-material-preview iframe {
  width: 100%;
  height: 7rem;
  object-fit: cover;
  border: 0;
  border-radius: 0.65rem;
  background: rgba(0,0,0,0.28);
}
.lesson-material-preview span {
  display: grid;
  place-items: center;
  height: 7rem;
  border-radius: 0.65rem;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold));
  font-weight: 950;
}
.lesson-material-preview b {
  color: #ffeaa0;
}
.lesson-material-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
.lesson-material-strip a span {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
}
.lesson-question {
  margin-top: 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(255,241,170,0.2);
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.045);
}
.step-admin-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}
.nested-crud {
  background: rgba(255,255,255,0.05);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.check-row input {
  width: auto;
}
.floating-message {
  display: inline-flex;
  margin-top: 1rem;
}
.empty-state {
  color: var(--muted);
}

.band { padding: clamp(3rem, 6vw, 6rem) clamp(1rem, 4vw, 4rem); }
.band-deep, .band-live { border-block: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.section-head { max-width: 58rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0.35rem 0 0; font-size: clamp(2rem, 4vw, 4.4rem); line-height: 0.96; letter-spacing: 0; }

.split, .challenge-layout, .game-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.2rem;
  align-items: start;
}
.split > *,
.challenge-layout > *,
.game-grid > * {
  min-width: 0;
}
.reverse { grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr); }

.glass-tilt { transform-style: preserve-3d; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; }
.glass-tilt:hover { border-color: rgba(255, 241, 170, 0.42); box-shadow: 0 36px 100px rgba(0,0,0,0.52), 0 0 38px rgba(205,167,56,0.12); }
.form-panel { display: grid; gap: 1rem; padding: 1.1rem; width: 100%; max-width: 100%; }
label { display: grid; gap: 0.5rem; color: #f4e8c4; font-weight: 800; }
input, textarea, select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(216,199,151,0.22);
  border-radius: 0.68rem;
  outline: 0;
  padding: 0.86rem 0.9rem;
  color: var(--cream);
  background: rgba(255,255,255,0.055);
  transition: 0.22s ease;
}
textarea { resize: vertical; }
select option { color: #151314; }
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(205,167,56,0.13);
}
.form-grid > * { flex: 1; min-width: 0; }

.class-grid, .activity-stack, .material-list, .timeline, .games-grid { display: grid; gap: 1rem; }
.class-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.class-card, .activity { position: relative; min-height: 14rem; padding: 1.1rem; overflow: hidden; }
.activity-thumb {
  width: 100%;
  max-height: 13rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin: 0.8rem 0 0.2rem;
  border: 1px solid rgba(216,199,151,0.18);
}
.class-card::before, .activity::before, .timeline article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.class-card h3, .activity h3, .timeline h3, .riddle-panel h3 { margin: 0.35rem 0 0; letter-spacing: 0; }
.class-card footer { justify-content: space-between; margin-top: 1.4rem; color: #ffeaa0; }
.course-select-btn {
  width: 100%;
  margin-top: 1rem;
  border: 1px solid rgba(255,241,170,0.32);
  border-radius: 0.8rem;
  padding: 0.72rem 0.85rem;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 30px rgba(205,167,56,0.22);
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.course-select-btn:hover {
  transform: translateY(-3px) scale(1.01);
  filter: brightness(1.08);
  box-shadow: 0 18px 42px rgba(255,241,170,0.2);
}
.crud-panel {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  border-top: 1px solid rgba(216,199,151,0.18);
  padding-top: 0.8rem;
}
.crud-panel summary {
  cursor: pointer;
  color: #ffeaa0;
  font-weight: 950;
}
.crud-panel form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}
.danger-btn {
  min-height: 2.7rem;
  border: 1px solid rgba(255,109,109,0.45);
  border-radius: 0.7rem;
  color: #ffe8e8;
  background: rgba(150,35,45,0.22);
  font-weight: 900;
  cursor: pointer;
}
.danger-btn:hover {
  background: rgba(190,45,58,0.34);
}
.timeline article { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem; overflow: hidden; }
.timeline b {
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.72rem;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--accent), var(--gold-dark));
}

.game-grid { grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr); }
.wheel-panel, .riddle-panel { padding: 1.2rem; }
.wheel-panel { position: relative; display: grid; justify-items: center; gap: 1rem; min-height: 35rem; overflow: hidden; }
.pointer {
  position: absolute;
  top: 1rem;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 1.1rem solid transparent;
  border-right: 1.1rem solid transparent;
  border-top: 2.3rem solid #fff1aa;
  filter: drop-shadow(0 0 18px rgba(205,167,56,0.9));
}
.wheel {
  position: relative;
  width: min(28rem, 78vw);
  aspect-ratio: 1;
  margin-top: 2.2rem;
  border: 0.7rem solid rgba(255,241,170,0.18);
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #fff1aa 0 16.66%, #cda738 16.66% 33.32%, #8c6d26 33.32% 49.98%, #bd9c35 49.98% 66.64%, #d8c797 66.64% 83.3%, #464446 83.3% 100%);
  box-shadow: inset 0 0 44px rgba(0,0,0,0.42), 0 34px 80px rgba(0,0,0,0.48), 0 0 45px rgba(205,167,56,0.2);
  transition: transform 4.4s cubic-bezier(0.12, 0.7, 0.08, 1);
}
.wheel::before { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: rgba(15,13,13,0.88); border: 1px solid var(--line); }
.wheel::after { content: ""; position: absolute; inset: 42%; border-radius: 50%; background: radial-gradient(circle, #fff8d1, var(--gold)); box-shadow: 0 0 35px rgba(205,167,56,0.7); }
.wheel-logo {
  position: absolute;
  z-index: 3;
  inset: 39%;
  width: 22%;
  height: 22%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255,241,170,0.7), 0 12px 28px rgba(0,0,0,0.38);
  animation: logoPrizePulse 2.4s ease-in-out infinite;
}
.wheel span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  transform-origin: 0 0;
  transform: rotate(calc((360deg / var(--segments)) * var(--i))) translate(2.2rem, -50%);
  color: #151314;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.14;
}
#wheelResult { min-height: 2rem; color: #f8e8b0; text-align: center; }
.live-pill { display: inline-flex; width: fit-content; margin-bottom: 1rem; padding: 0.4rem 0.7rem; border-radius: 999px; color: #17120a; background: linear-gradient(135deg, #fff1aa, var(--gold)); font-weight: 950; animation: pulseGold 1.8s ease-in-out infinite; }
.riddle-panel form { display: grid; gap: 1rem; margin: 1rem 0; }
.response-feed { display: grid; gap: 0.7rem; max-height: 19rem; overflow: auto; padding-right: 0.35rem; }
.response-feed article { padding: 0.85rem; border-radius: 0.7rem; background: rgba(255,255,255,0.055); }
.response-feed span { float: right; color: #ffeaa0; font-weight: 950; }

.teacher-help-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}
.teacher-help-card,
.user-row {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  padding: 1.1rem;
}
.teacher-help-card h3 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
  color: #ffeaa0;
}
.answer-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1rem 0;
}
.answer-options button {
  min-height: 4rem;
  border: 1px solid rgba(216,199,151,0.26);
  border-radius: 0.8rem;
  color: var(--cream);
  background: rgba(255,255,255,0.055);
  cursor: pointer;
  font-weight: 900;
  transition: 0.22s ease;
}
.answer-options button:hover,
.answer-options button.is-correct {
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold), var(--gold-dark));
  transform: translateY(-4px) rotateX(8deg);
}
.answer-options button.is-wrong {
  border-color: rgba(255,120,120,0.5);
  background: rgba(150,35,45,0.22);
}
.quiz-feedback {
  color: #ded1b3;
}
.admin-message {
  color: #ffeaa0;
}
.user-list {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.user-row b,
.user-row span {
  display: block;
  overflow-wrap: anywhere;
}
.user-row span {
  color: var(--muted);
}
.user-row strong {
  min-width: 6.5rem;
  text-align: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold));
}
.assignment-console {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--glass);
}
.assignment-console h3 {
  margin: 0;
  color: #ffeaa0;
}
.assignment-console p {
  margin: 0;
  color: #ded1b3;
  line-height: 1.55;
}
.enrollment-list {
  display: grid;
  gap: 0.6rem;
}
.enrollment-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(216,199,151,0.16);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.04);
}

.games-band {
  position: relative;
  overflow: hidden;
}
.games-band::before {
  content: "";
  position: absolute;
  inset: 4rem auto auto 50%;
  width: min(52rem, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,167,56,0.18), transparent 66%);
  transform: translateX(-50%);
  pointer-events: none;
}
.games-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.game-card {
  position: relative;
  min-height: 32rem;
  padding: 1.1rem;
  overflow: hidden;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 32%, rgba(255,241,170,0.12) 45%, transparent 56% 100%);
  transform: translateX(-130%);
  animation: cardShine 5.8s ease-in-out infinite;
  pointer-events: none;
}
.game-kicker {
  color: var(--muted);
  font-weight: 900;
}
.game-card h3 {
  margin: 0.35rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: #ffeaa0;
}
.game-card p {
  color: #ded1b3;
  line-height: 1.65;
}
.game-logo-mark {
  float: right;
  width: 4.3rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-left: 0.8rem;
  filter: drop-shadow(0 0 18px rgba(205,167,56,0.34));
  animation: logoPrizePulse 2.8s ease-in-out infinite;
}
.lip-scene {
  position: relative;
  height: 13rem;
  margin: 1rem 0;
  display: grid;
  place-items: center;
  perspective: 900px;
  transform-style: preserve-3d;
}
.brand-game-scene {
  position: relative;
  height: 13rem;
  margin: 1rem 0;
  display: grid;
  place-items: center;
  perspective: 900px;
  overflow: hidden;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 40%, rgba(255,241,170,0.18), transparent 58%), rgba(255,255,255,0.04);
}
.brand-game-scene img {
  position: relative;
  z-index: 2;
  width: min(12rem, 65%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  filter: drop-shadow(0 24px 45px rgba(0,0,0,0.5)) drop-shadow(0 0 30px rgba(205,167,56,0.45));
  animation: logoPanelFloat 4s ease-in-out infinite;
}
.brand-game-scene i {
  position: absolute;
  width: 0.8rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff1aa;
  box-shadow: 0 0 20px #fff1aa, 0 0 46px var(--gold);
  animation: sparkRain 4.6s linear infinite;
}
.brand-game-scene i:nth-child(2) { left: 18%; animation-delay: -1s; }
.brand-game-scene i:nth-child(3) { left: 52%; animation-delay: -2.2s; }
.brand-game-scene i:nth-child(4) { left: 78%; animation-delay: -3.1s; }
.lip-shape {
  position: absolute;
  width: min(18rem, 82%);
  height: 5.2rem;
  background:
    radial-gradient(circle at 35% 22%, rgba(255,255,255,0.55), transparent 13%),
    linear-gradient(135deg, #fff1aa 0%, #cda738 32%, #8c1e45 62%, #321016 100%);
  box-shadow: inset -22px -18px 28px rgba(0,0,0,0.34), 0 20px 50px rgba(205,167,56,0.28);
  transform-style: preserve-3d;
}
.lip-top {
  top: 3.1rem;
  border-radius: 62% 68% 40% 45% / 78% 78% 36% 36%;
  transform: rotateX(18deg) rotateZ(-2deg) translateZ(18px);
  animation: lipFloat 3.6s ease-in-out infinite;
}
.lip-bottom {
  top: 6.2rem;
  height: 4.8rem;
  border-radius: 40% 45% 70% 68% / 32% 32% 86% 86%;
  transform: rotateX(-16deg) rotateZ(2deg) translateZ(8px);
  animation: lipFloat 3.6s ease-in-out infinite reverse;
}
.lip-gloss {
  position: absolute;
  top: 5rem;
  width: 9rem;
  height: 1rem;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  filter: blur(2px);
  transform: rotate(-8deg);
  animation: glossSlide 2.8s ease-in-out infinite;
}
.lip-spark {
  position: absolute;
  width: 0.65rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff1aa;
  box-shadow: 0 0 18px #fff1aa, 0 0 34px var(--gold);
  animation: sparklePop 1.8s ease-in-out infinite;
}
.spark-one { top: 14%; left: 20%; }
.spark-two { top: 25%; right: 18%; animation-delay: -0.6s; }
.spark-three { bottom: 18%; left: 48%; animation-delay: -1.1s; }
.game-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.mini-game-btn,
.prize-box,
.memory-card,
.modal-close {
  cursor: pointer;
  border: 1px solid rgba(216,199,151,0.26);
  color: var(--cream);
  background: rgba(255,255,255,0.055);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.mini-game-btn {
  min-height: 3.2rem;
  border-radius: 0.7rem;
  font-weight: 900;
}
.mini-game-btn:hover,
.memory-card:hover,
.prize-box:hover {
  transform: translateY(-5px) rotateX(8deg);
  border-color: rgba(255,241,170,0.58);
  background: rgba(205,167,56,0.13);
  box-shadow: 0 18px 42px rgba(205,167,56,0.18);
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 2rem 0 1.2rem;
  perspective: 900px;
}
.prize-box {
  position: relative;
  min-height: 10rem;
  border-radius: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,241,170,0.24), rgba(140,109,38,0.18)),
    rgba(255,255,255,0.045);
  transform-style: preserve-3d;
}
.prize-box::before {
  content: "";
  position: absolute;
  inset: 18% 12% 15%;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #fff1aa, #cda738 44%, #8c6d26);
  box-shadow: inset -15px -15px 24px rgba(0,0,0,0.25), 0 18px 45px rgba(205,167,56,0.25);
}
.prize-box img {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.65rem;
  opacity: 0.38;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 18px rgba(205,167,56,0.45));
}
.prize-box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: 0.8rem;
  height: 67%;
  transform: translateX(-50%);
  background: rgba(21,19,20,0.75);
}
.prize-box span {
  position: absolute;
  left: 11%;
  right: 11%;
  top: 12%;
  height: 1.2rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #fff8d1, #cda738);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  transform-origin: left center;
}
.prize-box.is-open span {
  animation: boxOpen 0.75s ease both;
}
.prize-box.is-open {
  animation: prizeBlast 0.78s ease both;
}
.gift-explosion {
  position: fixed;
  z-index: 80;
  left: var(--x);
  top: var(--y);
  width: 0.9rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #fff1aa, var(--gold));
  box-shadow: 0 0 24px #fff1aa, 0 0 60px var(--gold);
  animation: giftExplosion 0.9s ease-out forwards;
  pointer-events: none;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  perspective: 900px;
}
.memory-card {
  min-height: 7.2rem;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  border-radius: 0.9rem;
  transform-style: preserve-3d;
}
.memory-card b {
  color: #ffeaa0;
  font-size: 1.2rem;
}
.memory-card span {
  color: var(--muted);
}
.memory-card.is-selected,
.memory-card.is-matched {
  color: #17120a;
  background: linear-gradient(135deg, #fff1aa, var(--gold), var(--gold-dark));
  transform: rotateY(180deg) translateY(-4px);
}
.memory-card.is-selected b,
.memory-card.is-selected span,
.memory-card.is-matched b,
.memory-card.is-matched span {
  color: #17120a;
  transform: rotateY(180deg);
}

.prize-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.welcome-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.welcome-card {
  position: relative;
  width: min(36rem, 94vw);
  min-height: 34rem;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 1.25rem 1.6rem;
  border: 1px solid rgba(255,241,170,0.42);
  border-radius: 1.25rem;
  background: radial-gradient(circle at 50% 15%, rgba(255,241,170,0.22), transparent 28%), linear-gradient(145deg, rgba(42,36,28,0.97), rgba(13,12,13,0.96));
  box-shadow: 0 45px 130px rgba(0,0,0,0.68), 0 0 80px rgba(205,167,56,0.26);
  transform: perspective(1100px) rotateX(18deg) scale(0.72);
}
.welcome-modal.is-open .welcome-card {
  animation: modalArrive 0.82s cubic-bezier(.2,1.08,.24,1) both;
}
.welcome-wheel {
  position: relative;
  width: 15rem;
  aspect-ratio: 1;
  margin: 1.2rem 0 0.4rem;
  border-radius: 50%;
  border: 0.55rem solid rgba(255,241,170,0.18);
  background: conic-gradient(from -90deg, #fff1aa 0 25%, #cda738 25% 50%, #8c6d26 50% 75%, #d8c797 75% 100%);
  box-shadow: inset 0 0 32px rgba(0,0,0,0.35), 0 22px 55px rgba(205,167,56,0.2);
  animation: welcomeWheelSpin 7s linear infinite;
}
.welcome-wheel::after {
  content: "";
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8d1, var(--gold));
  box-shadow: 0 0 30px rgba(205,167,56,0.78);
}
.welcome-wheel span {
  position: absolute;
  left: 50%;
  top: 0.3rem;
  width: 0.28rem;
  height: 92%;
  background: rgba(21,19,20,0.38);
  transform-origin: center 7.2rem;
}
.welcome-wheel span:nth-child(2) { transform: rotate(45deg); }
.welcome-wheel span:nth-child(3) { transform: rotate(90deg); }
.welcome-wheel span:nth-child(4) { transform: rotate(135deg); }
.welcome-card h2 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  line-height: 0.88;
  color: #ffeaa0;
}
.welcome-card p {
  color: #f4e8c4;
  line-height: 1.6;
}
.prize-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(14px);
}
.modal-card {
  position: relative;
  width: min(34rem, 94vw);
  min-height: 32rem;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 1.2rem 1.2rem 1.5rem;
  border: 1px solid rgba(255,241,170,0.38);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,241,170,0.18), transparent 28%),
    linear-gradient(145deg, rgba(42,36,28,0.96), rgba(13,12,13,0.95));
  box-shadow: 0 40px 120px rgba(0,0,0,0.65), 0 0 70px rgba(205,167,56,0.24);
  transform: perspective(1100px) rotateX(18deg) scale(0.72);
  opacity: 0;
}
.prize-modal.is-open .modal-card {
  animation: modalArrive 0.78s cubic-bezier(.2,1.08,.24,1) both;
}
.modal-close {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 4;
  width: 2.6rem;
  aspect-ratio: 1;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}
.modal-burst {
  position: relative;
  width: 16rem;
  height: 14rem;
  display: grid;
  place-items: center;
  margin-top: 0.7rem;
}
.modal-burst i {
  position: absolute;
  width: 0.7rem;
  height: 5.2rem;
  border-radius: 999px;
  background: linear-gradient(#fff8d1, var(--gold), transparent);
  transform-origin: center bottom;
  animation: burstRay 1.35s ease-out infinite;
}
.modal-burst i:nth-child(1) { transform: rotate(0deg) translateY(-4rem); }
.modal-burst i:nth-child(2) { transform: rotate(60deg) translateY(-4rem); animation-delay: -0.2s; }
.modal-burst i:nth-child(3) { transform: rotate(120deg) translateY(-4rem); animation-delay: -0.4s; }
.modal-burst i:nth-child(4) { transform: rotate(180deg) translateY(-4rem); animation-delay: -0.6s; }
.modal-burst i:nth-child(5) { transform: rotate(240deg) translateY(-4rem); animation-delay: -0.8s; }
.modal-burst i:nth-child(6) { transform: rotate(300deg) translateY(-4rem); animation-delay: -1s; }
.modal-lips {
  position: relative;
  width: 12rem;
  height: 7.4rem;
  transform-style: preserve-3d;
  animation: modalLipBounce 1.7s ease-in-out infinite;
}
.modal-logo-surprise {
  position: relative;
  width: 12rem;
  height: 9rem;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: modalLogoSurprise 1.9s ease-in-out infinite;
}
.modal-logo-surprise img {
  width: 9rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45)) drop-shadow(0 0 35px rgba(205,167,56,0.72));
}
.modal-lips span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3.9rem;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.62), transparent 12%),
    linear-gradient(135deg, #fff1aa, #cda738 34%, #9a2447 64%, #2d0b10);
  box-shadow: inset -16px -16px 22px rgba(0,0,0,0.34), 0 18px 45px rgba(205,167,56,0.3);
}
.modal-lips span:first-child {
  top: 1.1rem;
  border-radius: 62% 68% 40% 45% / 78% 78% 36% 36%;
}
.modal-lips span:last-child {
  top: 3.8rem;
  border-radius: 40% 45% 72% 70% / 32% 32% 88% 88%;
}
.modal-kicker {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}
.modal-card h2 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  color: #ffeaa0;
}
.modal-card p {
  margin: 0 0 1rem;
  color: #f4e8c4;
  line-height: 1.6;
}

.dropzone { min-height: 8rem; place-content: center; border: 1px dashed rgba(216,199,151,0.34); border-radius: 0.85rem; padding: 1rem; background: rgba(255,255,255,0.04); }
.material-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.material { display: grid; gap: 0.4rem; padding: 1rem; border-left: 0.3rem solid var(--accent); }
.material b { color: #ffeaa0; }
.material-preview-card figure {
  margin: 0 0 0.5rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(216,199,151,0.18);
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.25);
}
.material-preview-card img,
.material-preview-card video,
.material-preview-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.72s ease, transform 0.72s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.confetti {
  position: fixed;
  top: -1rem;
  z-index: 60;
  width: 0.55rem;
  height: 1rem;
  border-radius: 0.16rem;
  background: hsl(var(--hue), 80%, 62%);
  box-shadow: 0 0 14px rgba(255,255,255,0.25);
  animation: confettiFall 1.55s ease-in var(--delay) forwards;
}
.gold-bomb {
  position: fixed;
  z-index: 90;
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff8d1, var(--gold) 42%, var(--gold-dark));
  box-shadow: 0 0 24px rgba(255,241,170,0.9), 0 0 48px rgba(205,167,56,0.45);
  pointer-events: none;
  animation: goldBomb 0.95s cubic-bezier(.12,.78,.18,1) forwards;
}

@keyframes gridDrift { to { background-position: 90px 90px; } }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderFloat { 0%,100% { transform: perspective(900px) rotateY(-10deg) translateY(0); } 50% { transform: perspective(900px) rotateY(10deg) translateY(-0.9rem); } }
@keyframes loaderLogo { 0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 22px 45px rgba(205,167,56,0.42)); } 50% { transform: translateZ(30px) scale(1.04); filter: drop-shadow(0 28px 58px rgba(255,241,170,0.55)); } }
@keyframes slowOrbit { 0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); } 100% { transform: translate3d(3rem,-2rem,0) rotate(42deg) scale(1.08); } }
@keyframes globalShine { 0%, 48% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes frostFall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg) scale(0.7); }
  55% { opacity: var(--opacity); }
  100% { transform: translate3d(var(--drift), 108vh, 0) rotate(380deg) scale(1.08); opacity: 0.05; }
}
@keyframes photoFlash {
  0%, 72%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.42) rotate(var(--angle)); }
  76% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.08) rotate(calc(var(--angle) + 8deg)); }
  82% { opacity: 0.18; transform: translate(-50%, -50%) scale(1.42) rotate(calc(var(--angle) + 16deg)); }
}
@keyframes loadBar {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
@keyframes routeEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes ringSpin { to { transform: rotateX(68deg) rotateZ(360deg); } }
@keyframes levitate { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.1rem); } }
@keyframes logoPanelFloat {
  0%,100% { transform: perspective(1200px) rotateY(-10deg) rotateX(7deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(8deg) rotateX(4deg) translateY(-1rem); }
}
@keyframes panelLightSweep {
  0%, 36% { transform: translateX(-145%); opacity: 0; }
  52% { opacity: 1; }
  78%, 100% { transform: translateX(145%); opacity: 0; }
}
@keyframes floatChip { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-0.9rem) rotate(1deg); } }
@keyframes floorPulse { 0%,100% { opacity: 0.7; transform: rotateX(72deg) scale(1); } 50% { opacity: 1; transform: rotateX(72deg) scale(1.05); } }
@keyframes monolithFloat { 0%,100% { transform: rotateY(-12deg) rotateX(8deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(11deg) translateY(-1rem); } }
@keyframes cardShine { 0%, 40% { transform: translateX(-130%); } 70%, 100% { transform: translateX(130%); } }
@keyframes pulseGold { 0%,100% { box-shadow: 0 0 0 rgba(205,167,56,0); } 50% { box-shadow: 0 0 32px rgba(205,167,56,0.45); } }
@keyframes confettiFall { to { transform: translateY(105vh) translateX(var(--drift)) rotate(620deg); opacity: 0; } }
@keyframes lipFloat { 0%,100% { translate: 0 0; filter: brightness(1); } 50% { translate: 0 -0.45rem; filter: brightness(1.18); } }
@keyframes glossSlide { 0%,100% { transform: translateX(-1.7rem) rotate(-8deg); opacity: 0.2; } 50% { transform: translateX(1.7rem) rotate(-8deg); opacity: 0.82; } }
@keyframes sparklePop { 0%,100% { transform: scale(0.4) translateZ(0); opacity: 0.35; } 50% { transform: scale(1.25) translateZ(28px); opacity: 1; } }
@keyframes boxOpen { 0% { transform: rotateX(0) translateY(0); } 100% { transform: rotateX(-72deg) translateY(-1.2rem); } }
@keyframes prizeBlast { 0% { transform: scale(1); } 45% { transform: scale(1.08) rotateZ(-2deg); filter: brightness(1.3); } 100% { transform: scale(1); } }
@keyframes giftExplosion { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.45); } }
@keyframes logoPrizePulse { 0%,100% { transform: translateZ(0) scale(1); filter: drop-shadow(0 0 16px rgba(205,167,56,0.35)); } 50% { transform: translateZ(22px) scale(1.06); filter: drop-shadow(0 0 34px rgba(255,241,170,0.72)); } }
@keyframes modalArrive { 0% { opacity: 0; transform: perspective(1100px) rotateX(24deg) scale(0.72) translateY(4rem); } 70% { opacity: 1; transform: perspective(1100px) rotateX(-4deg) scale(1.04) translateY(-0.5rem); } 100% { opacity: 1; transform: perspective(1100px) rotateX(0deg) scale(1) translateY(0); } }
@keyframes burstRay { 0%,100% { opacity: 0.32; height: 4.4rem; } 50% { opacity: 1; height: 6.2rem; filter: brightness(1.35); } }
@keyframes modalLipBounce { 0%,100% { transform: translateY(0) rotateY(-8deg); } 50% { transform: translateY(-0.7rem) rotateY(8deg); } }
@keyframes modalLogoSurprise { 0%,100% { transform: translateY(0) rotateY(-10deg) scale(1); } 50% { transform: translateY(-0.8rem) rotateY(12deg) scale(1.06); } }
@keyframes goldBomb { 0% { opacity: 1; transform: translate(0,0) scale(0.4); } 70% { opacity: 1; transform: translate(var(--x), var(--y)) scale(1.15); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.1); } }
@keyframes sparkRain { 0% { transform: translateY(-8vh) scale(0.45); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(108vh) scale(1.15); opacity: 0; } }
@keyframes loginLipOrbit { 0%,100% { transform: translateY(0) rotateY(-12deg); } 50% { transform: translateY(-1rem) rotateY(12deg); } }
@keyframes welcomeWheelSpin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  body {
    min-width: 0;
  }
  .topbar {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    min-height: 4.75rem;
    align-items: center;
    flex-direction: row;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(13, 12, 13, 0.9);
    z-index: 80;
  }
  main {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    overflow: hidden;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 0;
    padding-bottom: 0;
    gap: 0.55rem;
  }
  .brand span {
    min-width: 0;
  }
  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .notification-center {
    flex: 0 0 auto;
  }
  .notify-button {
    position: relative;
    width: 3rem;
    min-height: 3rem;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }
  .notify-button span {
    width: 0.82rem;
  }
  .notify-button b {
    position: absolute;
    right: -0.35rem;
    top: -0.35rem;
    min-width: 1.35rem;
    padding: 0.08rem 0.32rem;
    font-size: 0.72rem;
    line-height: 1.25rem;
  }
  .hamburger {
    display: block;
    flex: 0 0 auto;
    margin-left: 0;
  }
  .nav-drawer {
    position: fixed;
    inset: 5rem 0.5rem auto auto;
    width: min(22rem, calc(100vw - 1rem));
    max-height: calc(100svh - 5.7rem);
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1rem 0 0 1rem;
    background: rgba(13,12,13,0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
    transform: translateX(108%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .notify-panel {
    position: fixed;
    left: 0.65rem;
    right: 0.65rem;
    top: 4.95rem;
    width: auto;
    max-width: none;
    transform: translateY(-0.45rem) scale(0.98);
    z-index: 90;
  }
  .notification-center.is-open .notify-panel {
    transform: translateY(0) scale(1);
  }
  .nav-drawer.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav {
    display: grid;
    justify-content: stretch;
  }
  .nav a,
  .icon-btn {
    width: 100%;
    text-align: left;
    border-color: rgba(216,199,151,0.12);
    background: rgba(255,255,255,0.045);
  }
  .band {
    padding: 2rem 0.8rem;
  }
  .metrics {
    padding: 0 0.8rem 2rem;
  }
  .section-head {
    margin-bottom: 1.25rem;
  }
  .login-shell, .hero-lux, .split, .reverse, .challenge-layout, .game-grid, .games-grid { grid-template-columns: 1fr; }
  .split,
  .reverse,
  .challenge-layout,
  .game-grid {
    width: 100%;
    max-width: 100%;
  }
  .hero-lux { min-height: auto; padding-top: 3rem; }
  .console-grid,
  .teacher-review-grid,
  .student-course-grid,
  .student-status-grid,
  .module-unlock-grid,
  .class-grid,
  .material-list,
  .activity-stack {
    grid-template-columns: 1fr;
  }
  .premium-scene, .login-visual { min-height: 30rem; }
  .teacher-help-grid { grid-template-columns: 1fr; }
  .answer-options { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .nav { justify-content: flex-start; }
  .topbar {
    min-height: 4.35rem;
    padding: 0.52rem 0.62rem;
  }
  .brand {
    max-width: calc(100vw - 8.2rem);
  }
  .hero-lux h1 { font-size: 3rem; }
  .hero-actions, .form-grid { flex-direction: column; }
  .wheel { width: min(21rem, 84vw); }
  .wheel span { font-size: 0.66rem; transform: rotate(calc((360deg / var(--segments)) * var(--i))) translate(1.55rem, -50%); }
  .logo-monolith { min-height: 22rem; }
  .login-body { padding: 0.8rem; }
  .login-shell { gap: 0.5rem; }
  .login-visual { min-height: 20rem; }
  .logo-frame-3d { width: min(20rem, 86vw); border-radius: 1rem; }
  .floating-chip { font-size: 0.78rem; padding: 0.55rem 0.72rem; }
  .login-card { border-radius: 1.2rem; box-shadow: 0 24px 90px rgba(205,167,56,0.18), var(--shadow); }
  .login-card h1 { font-size: 3rem; }
  .brand img { width: 3rem; height: 3rem; }
  .brand strong { font-size: 0.82rem; }
  .brand small { display: none; }
  .notify-button,
  .hamburger {
    width: 2.75rem;
    min-height: 2.75rem;
  }
  .nav-drawer {
    inset: 4.55rem 0.45rem auto auto;
    width: calc(100vw - 0.9rem);
    max-height: calc(100svh - 5.1rem);
  }
  .notify-panel {
    top: 4.55rem;
    left: 0.45rem;
    right: 0.45rem;
  }
  .band {
    padding: 1.45rem 0.62rem;
  }
  .form-panel {
    padding: 0.85rem;
  }
  label {
    font-size: 0.92rem;
  }
  input,
  textarea,
  select {
    padding: 0.78rem 0.72rem;
    font-size: 0.95rem;
  }
  .user-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.65rem;
    padding: 0.85rem;
  }
  .user-row strong {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    text-align: left;
  }
  .panel,
  .class-card,
  .activity,
  .wheel-panel,
  .riddle-panel,
  .timeline article,
  .material,
  .game-card,
  .console-tile,
  .review-card,
  .student-course-card,
  .module-unlock-card,
  .admin-kpi {
    border-radius: 0.75rem;
  }
  .section-head h2 {
    font-size: 2rem;
  }
  .metrics {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0 0.62rem 1.45rem;
  }
  .metrics.route-section.is-active {
    display: grid !important;
  }
  .metric {
    min-width: 0;
    padding: 0.85rem;
  }
  .metric strong {
    font-size: 1.85rem;
  }
  .games-band { padding-top: 2rem; }
  .game-card { min-height: 28rem; }
  .lip-scene { height: 12rem; animation: mobilePop 2.6s ease-in-out infinite; }
  .prize-grid { gap: 0.5rem; }
  .prize-box { min-height: 8rem; animation: mobilePrizeDance 2.8s ease-in-out infinite; }
  .prize-box:nth-child(2) { animation-delay: -0.8s; }
  .prize-box:nth-child(3) { animation-delay: -1.4s; }
  .game-actions { grid-template-columns: 1fr; }
  .modal-card { min-height: 30rem; }
  .admin-kpi-grid { grid-template-columns: 1fr; }
  .student-notice {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .floating-actions {
    right: 0.7rem;
    bottom: 0.7rem;
    gap: 0.45rem;
  }
  .floating-actions a {
    width: 2.55rem;
  }
}

@keyframes mobilePop { 0%,100% { transform: scale(1) rotateZ(0deg); } 50% { transform: scale(1.04) rotateZ(-1.5deg); } }
@keyframes mobilePrizeDance { 0%,100% { transform: rotateY(-5deg) translateY(0); } 50% { transform: rotateY(7deg) translateY(-0.45rem); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
