:root {
  --ink: #111827;
  --muted: #5d6878;
  --line: #dce3eb;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --night: #152033;
  --blue: #2563eb;
  --cyan: #0891b2;
  --orange: #e76f3c;
  --green: #16815f;
  --yellow: #f4b63f;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(220, 227, 235, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 900;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 800;
}

.main-nav > a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  color: #263244;
}

.main-nav > a:hover,
.nav-group:hover > a,
.nav-group:focus-within > a {
  background: #eaf1ff;
  color: var(--blue);
}

.nav-group {
  position: relative;
  padding: 3px 0;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  z-index: 30;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
  display: grid;
}

.dropdown a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #354154;
}

.dropdown a:hover {
  background: #f0f5ff;
  color: var(--blue);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  min-height: calc(100vh - 74px);
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 70px);
  background:
    linear-gradient(120deg, rgba(6, 10, 24, 0.92), rgba(9, 22, 48, 0.62)),
    url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?auto=format&fit=crop&w=1800&q=86")
      center / cover;
  color: #ffffff;
}

.news-hero-copy {
  max-width: 780px;
}

.eyebrow,
.story-kicker,
.item-type {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.news-hero .eyebrow,
.news-hero .story-kicker {
  color: #ffd28c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.news-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  background: var(--orange);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.56);
  color: #ffffff;
}

.news-carousel {
  position: relative;
}

.carousel-track {
  position: relative;
  min-height: 392px;
}

.carousel-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(21, 32, 51, 0.08), rgba(21, 32, 51, 0.88)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1100&q=82")
      center / cover;
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.carousel-card:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(21, 32, 51, 0.08), rgba(21, 32, 51, 0.88)),
    url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=1100&q=82")
      center / cover;
}

.carousel-card:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(21, 32, 51, 0.08), rgba(21, 32, 51, 0.88)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1100&q=82")
      center / cover;
}

.carousel-card:nth-child(4) {
  background:
    linear-gradient(180deg, rgba(21, 32, 51, 0.08), rgba(21, 32, 51, 0.88)),
    url("https://images.unsplash.com/photo-1465101162946-4377e57745c3?auto=format&fit=crop&w=1100&q=82")
      center / cover;
}

.carousel-card.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.carousel-card h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.carousel-card p {
  color: rgba(255, 255, 255, 0.82);
}

.carousel-card strong,
.text-link {
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.carousel-dot.active {
  background: #ffffff;
}

.ticker {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  padding: 0 clamp(18px, 5vw, 72px);
  background: var(--line);
}

.ticker a {
  flex: 1 0 160px;
  padding: 18px;
  background: var(--panel);
  color: #2f3b4d;
  font-weight: 900;
  text-align: center;
}

.ticker a:hover {
  color: var(--blue);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 30px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.main-news-card,
.compact-news,
.quick-card,
.course-card,
.page-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.main-news-card {
  overflow: hidden;
}

.main-news-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.main-news-card div {
  padding: clamp(20px, 3vw, 32px);
}

.main-news-card p,
.compact-news p,
.quick-card p,
.course-card p,
.page-panel p {
  color: var(--muted);
}

.main-news-card .text-link {
  color: var(--blue);
}

.page-panel .text-link {
  color: var(--blue);
}

.news-list {
  display: grid;
  gap: 14px;
}

.compact-news {
  padding: 20px;
}

.compact-news span,
.quick-card span,
.course-card span {
  display: inline-block;
  margin-bottom: 38px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-band {
  background: #edf5f7;
}

.contact-band {
  background: var(--night);
  color: #ffffff;
}

.contact-band .section-heading p:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
}

.contact-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
}

.contact-card span {
  display: block;
  margin-bottom: 28px;
  color: #ffd28c;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.quick-grid,
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-card,
.course-card {
  min-height: 240px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-card:hover,
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.quick-card:nth-child(1),
.course-card:nth-child(1) {
  border-top: 5px solid var(--blue);
}

.quick-card:nth-child(2),
.course-card:nth-child(2) {
  border-top: 5px solid var(--orange);
}

.quick-card:nth-child(3),
.course-card:nth-child(3) {
  border-top: 5px solid var(--green);
}

.quick-card:nth-child(4),
.course-card:nth-child(4) {
  border-top: 5px solid var(--yellow);
}

.quick-card:nth-child(5),
.course-card:nth-child(5) {
  border-top: 5px solid var(--cyan);
}

.quick-card:nth-child(6),
.course-card:nth-child(6) {
  border-top: 5px solid #8b5cf6;
}

.page-hero {
  padding: clamp(64px, 10vw, 128px) clamp(18px, 5vw, 72px);
  background: var(--night);
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.page-panel {
  max-width: 920px;
  padding: clamp(22px, 4vw, 40px);
}

.exercises-hero {
  background:
    linear-gradient(120deg, rgba(6, 10, 24, 0.93), rgba(13, 36, 70, 0.68)),
    url("https://images.unsplash.com/photo-1534996858221-380b92700493?auto=format&fit=crop&w=1800&q=86")
      center / cover;
}

.quiz-section {
  background: var(--paper);
}

.quiz-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 22px;
}

.quiz-controls,
.quiz-status,
.quiz-empty,
.quiz-form,
.quiz-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.quiz-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
}

.quiz-controls label,
.development-answer {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 900;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.quiz-status {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
}

.quiz-status strong {
  color: var(--blue);
  font-size: 1.25rem;
}

.quiz-status span,
.quiz-empty p,
.auto-note,
.result-note {
  color: var(--muted);
}

.quiz-empty {
  padding: clamp(24px, 4vw, 42px);
}

.quiz-form {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 26px);
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.quiz-meta span,
.quiz-meta strong {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: #1e3a8a;
  font-size: 0.92rem;
  font-weight: 900;
}

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

.quiz-card {
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.quiz-card.correct {
  border-color: rgba(22, 129, 95, 0.45);
  background: #f0fbf6;
}

.quiz-card.incorrect {
  border-color: rgba(231, 111, 60, 0.45);
  background: #fff6f1;
}

.quiz-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.answer-row {
  display: block;
  width: 100%;
}

.answer-option {
  display: flex;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.answer-option input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.answer-option span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.answer-option:hover {
  border-color: var(--blue);
  background: #edf5ff;
}

.question-feedback {
  margin: 16px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.07);
  color: #1f2937;
  font-weight: 800;
}

.auto-note {
  margin: 9px 0 0;
  font-size: 0.9rem;
}

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

.button.light {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.quiz-results {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 40px);
}

.quiz-results h2 {
  color: var(--blue);
}

.disabled-card {
  opacity: 0.72;
}

.game-page {
  background:
    radial-gradient(circle at 18% 12%, rgba(96, 165, 250, 0.18), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(168, 85, 247, 0.16), transparent 26%),
    #0b1020;
  color: #e5edf8;
}

.game-header {
  border-bottom-color: rgba(148, 163, 184, 0.22);
  background: rgba(10, 15, 30, 0.88);
}

.game-header .main-nav > a,
.game-header .brand {
  color: #e5edf8;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  min-height: calc(100vh - 74px);
  padding: clamp(64px, 10vw, 128px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(7, 11, 26, 0.94), rgba(8, 20, 42, 0.72)),
    url("https://images.unsplash.com/photo-1614728263952-84ea256f9679?auto=format&fit=crop&w=1800&q=86")
      center / cover;
}

.game-hero h1 {
  max-width: 11ch;
  text-shadow: 0 0 28px rgba(96, 165, 250, 0.45);
}

.game-hero-copy p:not(.game-kicker),
.game-split p,
.player-card p {
  max-width: 760px;
  color: rgba(229, 237, 248, 0.78);
  font-size: 1.08rem;
}

.game-kicker,
.hud-label {
  display: inline-block;
  margin: 0 0 12px;
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.challenge-hero-button {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.08rem;
  box-shadow: 0 0 32px rgba(231, 111, 60, 0.35);
}

.full-button {
  width: 100%;
  margin-top: 18px;
}

.button.ghost {
  border-color: rgba(229, 237, 248, 0.4);
  color: #e5edf8;
}

.player-card,
.cycle-card,
.mission-board,
.bill-card,
.reward-card,
.game-console,
.guard-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.player-card {
  padding: clamp(22px, 4vw, 36px);
}

.power-rings {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.power-rings span {
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  font-weight: 900;
}

.game-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.game-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.game-heading h2,
.game-split h2,
.game-console h2,
.guard-panel h2 {
  color: #ffffff;
}

.cycle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cycle-card {
  min-height: 230px;
  padding: 24px;
}

.cycle-card span {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  font-weight: 900;
}

.cycle-card p,
.reward-card span,
.guard-panel li {
  color: rgba(229, 237, 248, 0.74);
}

.game-split,
.game-console,
.guard-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.mission-board {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
  padding: 14px;
}

.mission-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.72);
}

.mission-row strong {
  color: #86efac;
}

.boss-mission {
  border: 1px solid rgba(250, 204, 21, 0.32);
  background: rgba(113, 63, 18, 0.3);
}

.bill-grid,
.reward-grid,
.challenge-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.challenge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge-card,
.admin-card,
.admin-panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.challenge-card {
  min-height: 520px;
  padding: 24px;
}

.challenge-card.weekly {
  border-top: 5px solid #60a5fa;
}

.challenge-card.monthly {
  border-top: 5px solid #c084fc;
}

.challenge-page-hero {
  min-height: 680px;
  background:
    linear-gradient(120deg, rgba(7, 11, 26, 0.94), rgba(45, 15, 80, 0.72)),
    url("https://images.unsplash.com/photo-1462332420958-a05d1e002413?auto=format&fit=crop&w=1800&q=86")
      center / cover;
}

.challenge-stage {
  max-width: 980px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-top: 5px solid #60a5fa;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.challenge-stage.monthly {
  border-color: rgba(192, 132, 252, 0.36);
  border-top-color: #c084fc;
}

.challenge-stage h3 {
  color: #ffffff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.challenge-stage p {
  color: rgba(229, 237, 248, 0.78);
}

.challenge-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 44px;
}

.challenge-top span {
  color: #93c5fd;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.challenge-top strong {
  color: #facc15;
  font-size: 1.25rem;
}

.challenge-card h3,
.admin-card h3 {
  color: #ffffff;
}

.challenge-card p,
.admin-card p,
.admin-panel p {
  color: rgba(229, 237, 248, 0.76);
}

.challenge-facts {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.challenge-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.76);
}

.challenge-facts dt {
  color: #94a3b8;
  font-weight: 900;
}

.challenge-facts dd {
  margin: 0;
  color: #e5edf8;
}

.challenge-rules {
  margin: 0 0 20px;
  padding-left: 20px;
  color: rgba(229, 237, 248, 0.74);
}

.disabled-button {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.admin-hero {
  min-height: 620px;
}

.admin-card {
  min-height: 260px;
  padding: 22px;
}

.admin-card span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
  font-weight: 900;
}

.admin-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: rgba(229, 237, 248, 0.74);
}

.admin-panel {
  padding: 24px;
}

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

.admin-table {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.admin-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.76);
}

.admin-table strong {
  color: #facc15;
}

.admin-table span {
  color: rgba(229, 237, 248, 0.76);
}

.bill-card {
  padding: 20px;
}

.bill-card span {
  display: block;
  margin-bottom: 20px;
  color: #93c5fd;
  font-weight: 900;
}

.bill-card strong {
  font-size: 2.4rem;
  color: #facc15;
}

.game-console {
  grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.5fr) minmax(320px, 0.8fr);
}

.credit-scanner {
  display: grid;
  gap: 12px;
}

.credit-scanner label {
  display: grid;
  gap: 8px;
  color: #e5edf8;
  font-weight: 900;
}

.credit-scanner input {
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font: inherit;
}

.scanner-result {
  display: grid;
  gap: 10px;
}

.scanner-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.76);
}

.scanner-stat span,
.scanner-result p {
  color: rgba(229, 237, 248, 0.76);
}

.scanner-stat strong {
  color: #facc15;
}

.available-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.available-rewards span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
  font-weight: 800;
}

.reward-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.reward-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #e5edf8;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reward-tab.active,
.reward-tab:hover {
  border-color: #facc15;
  color: #facc15;
}

.reward-card {
  min-height: 210px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.reward-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--level-color, #93c5fd);
}

.reward-card h3 {
  position: relative;
  margin-top: 42px;
  color: #ffffff;
}

.reward-card strong {
  position: relative;
  color: var(--level-color, #93c5fd);
  font-size: 1.6rem;
}

.reward-card.basic {
  --level-color: #cbd5e1;
}

.reward-card.intermediate {
  --level-color: #34d399;
}

.reward-card.advanced {
  --level-color: #60a5fa;
}

.reward-card.epic {
  --level-color: #c084fc;
}

.reward-card.legendary {
  --level-color: #facc15;
}

.guard-panel {
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
}

.guard-panel ul {
  margin: 0;
  padding-left: 20px;
}

.extra-page {
  background: #f4f7fb;
}

.extra-hero {
  min-height: 620px;
  background:
    linear-gradient(120deg, rgba(7, 12, 28, 0.92), rgba(15, 35, 64, 0.62)),
    url("https://images.unsplash.com/photo-1454789548928-9efd52dc4031?auto=format&fit=crop&w=1800&q=86")
      center / cover;
}

.extra-hero h1 {
  max-width: 8ch;
}

.video-band {
  background:
    linear-gradient(180deg, #f7fafc, #eef5f8);
}

.video-carousel {
  display: grid;
  gap: 16px;
}

.video-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-slide.active {
  display: grid;
}

.video-media {
  position: relative;
  min-height: 380px;
  background: var(--night);
}

.video-media img,
.video-media iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  object-fit: cover;
}

.video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.video-play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(231, 111, 60, 0.95);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.video-play:disabled {
  background: rgba(21, 32, 51, 0.72);
  color: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
}

.video-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
}

.video-copy span,
.minecraft-card span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.video-copy h3 {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
}

.video-copy p {
  color: var(--muted);
}

.video-copy .text-link {
  color: var(--blue);
}

.video-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.video-dot {
  width: 46px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #c7d2df;
  cursor: pointer;
}

.video-dot.active,
.video-dot:hover {
  background: var(--orange);
}

.minecraft-band {
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(13, 47, 35, 0.94), rgba(24, 32, 52, 0.82)),
    url("https://images.unsplash.com/photo-1523818667728-6080d110ed4e?auto=format&fit=crop&w=1800&q=84")
      center / cover;
}

.minecraft-heading p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.minecraft-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.minecraft-card {
  min-height: 310px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 20, 18, 0.74);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.24);
}

.minecraft-card h3,
.minecraft-card strong {
  color: #ffffff;
}

.minecraft-card p,
.minecraft-list {
  color: rgba(255, 255, 255, 0.76);
}

.server-card {
  background:
    linear-gradient(135deg, rgba(22, 129, 95, 0.86), rgba(11, 16, 32, 0.84)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px);
}

.server-ip {
  display: flex;
  align-items: center;
  min-height: 76px;
  margin-bottom: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.minecraft-list {
  margin: 0;
  padding-left: 20px;
}

.learning-page {
  background: #f6f9fc;
}

.learning-hero {
  background:
    linear-gradient(120deg, rgba(10, 18, 35, 0.92), rgba(17, 60, 86, 0.62)),
    url("https://images.unsplash.com/photo-1453733190371-0a9bedd82893?auto=format&fit=crop&w=1800&q=84")
      center / cover;
}

.learning-overview {
  background: #eef6f7;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.module-card span,
.learning-sidebar span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.module-card.active {
  border-top: 5px solid var(--orange);
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.26fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 40px);
  align-items: start;
}

.learning-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.learning-sidebar h2 {
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.learning-sidebar a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #334155;
  font-weight: 900;
}

.learning-sidebar a:hover {
  background: #edf5ff;
  color: var(--blue);
}

.learning-content {
  display: grid;
  gap: 18px;
}

.lesson-panel {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.lesson-panel p,
.lesson-panel li,
.module-card p {
  color: var(--muted);
}

.concept-callout {
  margin-top: 18px;
  padding: 18px;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fff7ed;
}

.concept-callout strong {
  display: block;
  color: #9a3412;
}

.concept-callout p {
  margin-bottom: 0;
}

.video-placeholder {
  border-style: dashed;
  background:
    linear-gradient(120deg, rgba(21, 32, 51, 0.88), rgba(11, 26, 46, 0.82)),
    url("https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=1300&q=84")
      center / cover;
  color: #ffffff;
}

.video-placeholder .eyebrow,
.video-placeholder p {
  color: rgba(255, 255, 255, 0.78);
}

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

.lesson-columns > div,
.term-grid article,
.formula-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.wave-diagram {
  position: relative;
  min-height: 260px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px),
    #f8fafc;
  background-size: 34px 34px;
}

.wave-line {
  position: absolute;
  inset: 30px 24px;
  background:
    radial-gradient(60px 42px at 12% 50%, transparent 58%, var(--blue) 60%, var(--blue) 62%, transparent 64%),
    radial-gradient(60px 42px at 34% 50%, transparent 58%, var(--blue) 60%, var(--blue) 62%, transparent 64%),
    radial-gradient(60px 42px at 56% 50%, transparent 58%, var(--blue) 60%, var(--blue) 62%, transparent 64%),
    radial-gradient(60px 42px at 78% 50%, transparent 58%, var(--blue) 60%, var(--blue) 62%, transparent 64%);
}

.wave-diagram span {
  position: absolute;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.12);
}

.crest {
  top: 40px;
  left: 18%;
}

.valley {
  bottom: 44px;
  left: 39%;
}

.amplitude {
  top: 110px;
  right: 12%;
}

.wavelength {
  bottom: 24px;
  right: 22%;
}

.term-grid,
.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.formula-grid {
  margin-bottom: 18px;
}

.formula-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 900;
}

.formula-grid strong {
  color: var(--blue);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.interactive-questions {
  display: grid;
  gap: 16px;
}

.interactive-question,
.lesson-quiz fieldset,
.lesson-result {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.interactive-question.correct {
  border-color: rgba(22, 129, 95, 0.45);
  background: #f0fbf6;
}

.interactive-question.incorrect {
  border-color: rgba(231, 111, 60, 0.45);
  background: #fff6f1;
}

.interactive-question textarea,
.interactive-question input {
  width: 100%;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.interactive-question input {
  min-height: 48px;
}

.answer-feedback {
  margin: 12px 0 0;
  font-weight: 900;
}

.expected-answer {
  display: none;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.08);
}

.expected-answer.visible {
  display: block;
}

.lesson-quiz {
  display: grid;
  gap: 16px;
}

.lesson-quiz fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
}

.lesson-quiz legend {
  margin-bottom: 8px;
  font-weight: 900;
}

.lesson-quiz label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.lesson-result {
  margin-top: 16px;
}

.lesson-result h3 {
  color: var(--blue);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.site-footer span:first-child {
  color: #ffffff;
}

@media (max-width: 1040px) {
  .news-hero,
  .news-layout,
  .game-hero,
  .game-split,
  .game-console,
  .guard-panel,
  .video-slide,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .course-grid,
  .contact-grid,
  .quiz-builder,
  .quiz-controls,
  .cycle-grid,
  .bill-grid,
  .reward-grid,
  .challenge-grid,
  .admin-grid,
  .minecraft-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-controls .button {
    grid-column: 1 / -1;
  }

  .learning-sidebar {
    position: static;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 66px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a,
  .nav-group > a {
    width: 100%;
    justify-content: space-between;
  }

  .nav-group {
    display: grid;
  }

  .dropdown {
    position: static;
    display: grid;
    min-width: 0;
    margin: 0 0 8px 12px;
    border: 0;
    box-shadow: none;
    background: #f4f7fb;
  }

  .news-hero {
    min-height: 760px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.5rem);
  }

  .quick-grid,
  .course-grid,
  .contact-grid,
  .quiz-builder,
  .quiz-controls,
  .cycle-grid,
  .bill-grid,
  .reward-grid,
  .challenge-grid,
  .admin-grid,
  .admin-table div,
  .challenge-facts div,
  .minecraft-grid,
  .module-grid,
  .lesson-columns,
  .term-grid,
  .formula-grid {
    grid-template-columns: 1fr;
  }

  .video-media,
  .video-media img,
  .video-media iframe {
    min-height: 260px;
  }

  .game-page .main-nav.open {
    position: static;
    display: flex;
    margin-top: 10px;
  }

  .game-page .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
