/* Instituto Chapultepec Study Center — Premium Color Upgrade */

:root {
  --navy: #001f4f;
  --navy-2: #052b6d;
  --navy-3: #0a3a88;
  --blue: #0f5fb8;
  --green: #79a847;
  --green-2: #9ac567;
  --emerald: #2f8f6b;
  --gold: #c8a85c;
  --gold-2: #f3d78c;
  --ink: #10213f;
  --muted: #667085;
  --line: rgba(0, 31, 79, 0.12);
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 28px 85px rgba(0, 31, 79, 0.15);
  --shadow-soft: 0 16px 46px rgba(0, 31, 79, 0.09);
  --shadow-green: 0 18px 46px rgba(121, 168, 71, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 4%, rgba(121,168,71,.24), transparent 30rem),
    radial-gradient(circle at 96% 2%, rgba(15,95,184,.16), transparent 34rem),
    radial-gradient(circle at 70% 44%, rgba(200,168,92,.12), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #eff5fb 46%, #ffffff 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image:
    linear-gradient(rgba(0,31,79,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,31,79,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  z-index: -1;
}

button, input, select, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px clamp(18px, 4vw, 60px) 52px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 17%, rgba(154,197,103,.46), transparent 22rem),
    radial-gradient(circle at 18% 82%, rgba(200,168,92,.25), transparent 24rem),
    linear-gradient(135deg, #001737 0%, #00285d 45%, #06427f 72%, #0b5d6e 100%);
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.13), transparent 32%, rgba(255,255,255,.06) 48%, transparent 68%),
    radial-gradient(circle at 74% 10%, rgba(255,255,255,.18), transparent 11rem);
  opacity: .9;
}

.hero::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 999px;
  right: -240px;
  top: -230px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 0 0 42px rgba(255,255,255,.035),
    inset 0 0 0 96px rgba(121,168,71,.05);
  pointer-events: none;
}

.topbar, .hero-grid, .section, .footer { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(0,0,0,.30), 0 0 0 7px rgba(121,168,71,.16);
}

.brand {
  color: #ffffff;
}

.brand strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.20);
}

.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.90);
  font-size: 1.02rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ghost-link, .theme-toggle {
  border: 1px solid rgba(255,255,255,.23);
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .22s var(--ease), background .22s var(--ease), border .22s var(--ease), box-shadow .22s var(--ease);
}

.ghost-link:hover, .theme-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, .66fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-2);
}

.section .eyebrow { color: var(--emerald); }

.hero-professor {
  margin-top: 12px;
  color: rgba(255,255,255,.96);
  font-size: clamp(1.02rem, 1.6vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .015em;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, currentColor, var(--gold-2));
}

.hero h1 {
  max-width: 880px;
  margin: 18px 0 16px;
  font-size: clamp(2.45rem, 6vw, 5.95rem);
  line-height: .93;
  letter-spacing: -.068em;
  text-wrap: balance;
}

.hero p {
  max-width: 690px;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.67;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 31px;
}

.primary-btn, .secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}

.primary-btn {
  color: #061f4b;
  background: linear-gradient(135deg, #ffffff 0%, #edf8df 50%, #f7e6ae 100%);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px rgba(0,0,0,.25);
}

.secondary-btn {
  color: var(--white);
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.23);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.17);
  border-color: rgba(255,255,255,.38);
}

.primary-btn.full, .secondary-btn.full { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  max-width: 610px;
  margin-top: 32px;
}

.hero-stats div {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
}

.hero-stats div::after {
  content: "";
  position: absolute;
  inset: auto -10px -22px auto;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: rgba(154,197,103,.18);
}

.hero-stats strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 7px;
  font-size: .84rem;
  color: rgba(255,255,255,.76);
}

.hero-card {
  position: relative;
  justify-self: end;
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid rgba(255,255,255,.21);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.085)),
    radial-gradient(circle at top right, rgba(154,197,103,.28), transparent 14rem);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  box-shadow: 0 34px 85px rgba(0,0,0,.25);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  width: 14px;
  height: 14px;
  left: 28px;
  top: 32px;
  background: var(--gold-2);
  box-shadow: 0 0 0 9px rgba(243,215,140,.11);
}

.hero-card::after {
  width: 120px;
  height: 120px;
  right: -42px;
  bottom: -40px;
  border: 1px solid rgba(255,255,255,.16);
}

.crest-frame {
  width: 164px;
  height: 164px;
  margin: 0 auto 24px;
  padding: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(237,248,223,.97) 62%, rgba(243,215,140,.88));
  box-shadow: 0 22px 50px rgba(0,0,0,.25), 0 0 0 10px rgba(255,255,255,.08);
}

.crest-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  text-align: center;
}

.hero-card p {
  margin: 0;
  text-align: center;
  font-size: .99rem;
}

.mini-progress {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: .9rem;
}

.mini-progress div {
  height: 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
}

.mini-progress i {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-2), var(--gold-2), #fff);
  box-shadow: 0 0 20px rgba(154,197,103,.45);
  animation: loadbar 1.6s ease both;
}

@keyframes loadbar { from { width: 0; } to { width: 72%; } }

.section {
  padding: clamp(44px, 6vw, 80px) clamp(18px, 4vw, 60px) 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.section-heading.compact { margin-bottom: 22px; }

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -.043em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 740px;
  line-height: 1.6;
}

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

.subject-card {
  --accent: var(--green);
  --accent-2: var(--green-2);
  position: relative;
  overflow: hidden;
  padding: 23px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 12rem);
  border: 1px solid rgba(0,31,79,.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  min-height: 272px;
  display: flex;
  flex-direction: column;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.subject-card:nth-child(1) { --accent: #78a642; --accent-2: #b2d66f; }
.subject-card:nth-child(2) { --accent: #0f5fb8; --accent-2: #74b7ff; }
.subject-card:nth-child(3) { --accent: #c8a85c; --accent-2: #f4df9d; }
.subject-card:nth-child(4) { --accent: #6c63b7; --accent-2: #bdb7ff; }
.subject-card:nth-child(5) { --accent: #2f8f6b; --accent-2: #90d9bd; }
.subject-card:nth-child(6) { --accent: #b46a42; --accent-2: #f3b078; }

.subject-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.subject-card::after {
  content: "";
  position: absolute;
  width: 176px;
  height: 176px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 0 0 28px rgba(255,255,255,.20);
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 68px rgba(0,31,79,.14), 0 14px 34px color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 44%, rgba(0,31,79,.12));
}

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

.subject-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  border-radius: 20px;
  font-weight: 1000;
  letter-spacing: .04em;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--accent) 25%, rgba(0,31,79,.18));
}

.subject-card h3 {
  position: relative;
  z-index: 1;
  margin: 20px 0 8px;
  font-size: 1.38rem;
  color: var(--navy);
}

.subject-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.subject-card .mini-progress {
  position: relative;
  z-index: 1;
}

.subject-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.card-btn {
  border: 1px solid rgba(0,31,79,.10);
  background: rgba(255,255,255,.92);
  color: var(--navy);
  padding: 11px 12px;
  border-radius: 15px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.card-btn.primary {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 20%, rgba(0,31,79,.18));
}

.card-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 48%, rgba(0,31,79,.12));
  box-shadow: 0 10px 22px rgba(0,31,79,.08);
}

.practice-section { padding-bottom: 42px; }

.practice-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 21px;
  align-items: start;
}

.control-panel {
  position: sticky;
  top: 20px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90)),
    radial-gradient(circle at top right, rgba(121,168,71,.16), transparent 12rem);
  border: 1px solid rgba(0,31,79,.11);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.control-panel::before {
  content: "";
  display: block;
  height: 6px;
  margin: -20px -20px 16px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--navy), var(--green), var(--gold));
}

.control-panel label {
  display: block;
  margin: 13px 0 8px;
  color: var(--navy);
  font-weight: 1000;
  font-size: .88rem;
}

.control-panel label:first-child { margin-top: 0; }

select, input {
  width: 100%;
  border: 1px solid rgba(0,31,79,.13);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

select:focus, input:focus {
  border-color: rgba(121,168,71,.82);
  box-shadow: 0 0 0 4px rgba(121,168,71,.14);
}

.control-buttons {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.control-panel .primary-btn {
  background: linear-gradient(135deg, var(--navy), #0a3f86 58%, var(--green));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0,31,79,.20);
}

.control-panel .secondary-btn {
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(0,31,79,.12);
  box-shadow: none;
}

.score-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.score-box div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-radius: 17px;
  background: linear-gradient(135deg, #f7fbff, #f4f8ed);
  border: 1px solid rgba(0,31,79,.10);
}

.score-box div:nth-child(2) { background: linear-gradient(135deg, #f4fbf0, #fffdf2); }
.score-box div:nth-child(3) { background: linear-gradient(135deg, #fff8f1, #f9fbff); }

.score-box span {
  color: var(--muted);
  font-size: .86rem;
}

.score-box strong {
  color: var(--navy);
  font-size: 1.22rem;
}

.game-area {
  min-height: 620px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.78)),
    radial-gradient(circle at 100% 0%, rgba(15,95,184,.10), transparent 16rem),
    radial-gradient(circle at 0% 100%, rgba(121,168,71,.12), transparent 16rem);
  border: 1px solid rgba(0,31,79,.11);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.search-wrap { width: min(380px, 100%); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,31,79,.09), rgba(121,168,71,.10));
  color: var(--navy);
  font-weight: 1000;
  font-size: .82rem;
  border: 1px solid rgba(0,31,79,.07);
}

.chip.muted {
  color: var(--muted);
  background: rgba(102,112,133,.10);
}

.flashcard-area {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.flashcard {
  position: relative;
  overflow: hidden;
  width: min(800px, 100%);
  padding: clamp(22px, 4vw, 40px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 10%, rgba(154,197,103,.42), transparent 16rem),
    radial-gradient(circle at 12% 96%, rgba(200,168,92,.24), transparent 16rem),
    linear-gradient(150deg, #001b43 0%, #052b6d 56%, #0a467d 100%);
  color: #fff;
  box-shadow: 0 30px 78px rgba(0,31,79,.25);
  border: 1px solid rgba(255,255,255,.18);
  transform: translateY(0);
  animation: cardIn .34s var(--ease) both;
}

.flashcard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,.12), transparent 30%, rgba(255,255,255,.05) 60%, transparent),
    linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
}

.flashcard > * { position: relative; z-index: 1; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.flashcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.points-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 9px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-2), var(--gold-2), #fff);
  color: var(--navy);
  font-weight: 1000;
  box-shadow: 0 13px 31px rgba(0,0,0,.18);
}

.question-id {
  color: rgba(255,255,255,.77);
  font-weight: 900;
}

.flashcard h3 {
  margin: 0 0 14px;
  color: rgba(255,255,255,.66);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.clue-text {
  margin: 0;
  font-size: clamp(1.36rem, 3.1vw, 2.45rem);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -.023em;
}

.answer-box {
  margin-top: 22px;
  padding: 19px;
  border-radius: 21px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.answer-box.hidden { display: none; }

.answer-box span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 8px;
}

.answer-box strong {
  display: block;
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.card-actions button {
  flex: 1 1 150px;
  border: 0;
  border-radius: 17px;
  padding: 13px 16px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease);
}

.card-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.btn-light { color: var(--navy); background: #fff; }
.btn-green { color: #092050; background: linear-gradient(135deg, var(--green-2), var(--gold-2), #fff); }
.btn-outline { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22) !important; }

.empty-state {
  text-align: center;
  padding: 54px 22px;
  color: var(--muted);
}

.empty-state h3 {
  color: var(--navy);
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.board-area { display: grid; gap: 14px; }

.board-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.board-head, .board-cell {
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
  min-height: 76px;
  display: grid;
  place-items: center;
}

.board-head {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: #fff;
  font-weight: 1000;
  font-size: .85rem;
  letter-spacing: .02em;
  box-shadow: 0 12px 24px rgba(0,31,79,.14);
}

.board-cell {
  border: 1px solid rgba(0,31,79,.11);
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.45rem;
  font-weight: 1000;
  box-shadow: 0 11px 25px rgba(0,31,79,.08);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.board-cell:nth-child(6n+2) { background: linear-gradient(180deg, #ffffff, #f7fbef); }
.board-cell:nth-child(6n+3) { background: linear-gradient(180deg, #ffffff, #f2f7ff); }
.board-cell:nth-child(6n+4) { background: linear-gradient(180deg, #ffffff, #fff9e8); }

.board-cell:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: #fff;
  box-shadow: 0 17px 34px rgba(0,31,79,.16);
}

.board-cell.done { opacity: .42; filter: grayscale(.25); }

.question-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.question-row {
  border: 1px solid rgba(0,31,79,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,31,79,.04);
}

.question-row button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--navy);
  font-weight: 1000;
  text-align: left;
  cursor: pointer;
}

.question-row p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.55;
}

.question-row .answer-small {
  color: var(--ink);
  font-weight: 900;
  margin-top: 8px;
}

.hidden { display: none !important; }

.footer {
  margin-top: 30px;
  padding: 30px clamp(18px, 4vw, 60px) 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.footer img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 9px 20px rgba(0,31,79,.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, var(--navy), var(--green));
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(0,31,79,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease);
  z-index: 50;
  font-weight: 900;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1060px) {
  .subjects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-layout { grid-template-columns: 1fr; }
  .control-panel { position: relative; top: auto; }
  .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; }
}

@media (max-width: 720px) {
  .hero {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 36px;
  }

  .top-actions { width: 100%; justify-content: flex-start; }
  .brand img { width: 58px; height: 58px; }
  .hero-stats, .subjects-grid, .subject-actions { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-wrap { width: 100%; }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-head, .board-cell { min-height: 64px; }
  .card-actions { flex-direction: column; }
}

/* Modular PHP layout additions */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px clamp(18px, 4vw, 60px);
  background:
    radial-gradient(circle at 84% 0%, rgba(121,168,71,.20), transparent 20rem),
    linear-gradient(135deg, rgba(0,23,55,.96), rgba(0,40,93,.96) 58%, rgba(10,93,110,.96));
  border-bottom: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 16px 38px rgba(0,31,79,.18);
  backdrop-filter: blur(18px);
}

.module-topbar {
  margin-bottom: 0;
}

.nav-actions .ghost-link.active {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,248,223,.94));
  color: var(--navy);
  border-color: rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.home-hero {
  margin: 0 clamp(10px, 2vw, 24px);
  padding-top: clamp(42px, 7vw, 82px);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.hero h1 {
  text-transform: none;
}

.center-heading {
  align-items: center;
  text-align: center;
}

.center-heading p {
  margin-left: auto;
  margin-right: auto;
}

.module-section {
  padding-top: clamp(48px, 6vw, 86px);
}

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

.module-card {
  --accent: var(--green);
  --accent-2: var(--green-2);
  position: relative;
  overflow: hidden;
  min-height: 315px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(0,31,79,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86)),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 14rem);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.module-card::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: inset 0 0 0 28px color-mix(in srgb, var(--accent) 8%, transparent);
}

.module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0,31,79,.16);
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(0,31,79,.12));
}

.module-number {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  background: color-mix(in srgb, var(--accent) 14%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, rgba(0,31,79,.08));
  font-weight: 1000;
  font-size: .82rem;
}

.module-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-top: 34px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 22%, rgba(0,31,79,.18));
  font-size: 1.9rem;
}

.module-card h3 {
  position: relative;
  z-index: 1;
  margin: 24px 0 10px;
  color: var(--navy);
  font-size: 1.75rem;
  letter-spacing: -.035em;
}

.module-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.module-card strong {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--accent);
  padding-top: 24px;
  font-weight: 1000;
}

.accent-green { --accent: #78a642; --accent-2: #b2d66f; }
.accent-blue { --accent: #0f5fb8; --accent-2: #74b7ff; }
.accent-gold { --accent: #c8a85c; --accent-2: #f4df9d; }
.accent-purple { --accent: #6c63b7; --accent-2: #bdb7ff; }
.accent-emerald { --accent: #2f8f6b; --accent-2: #90d9bd; }
.accent-copper { --accent: #b46a42; --accent-2: #efb081; }

.quick-section {
  padding-top: clamp(44px, 5vw, 74px);
}

.mini-subjects .subject-card {
  min-height: 245px;
}

.subhero {
  margin: 0 clamp(10px, 2vw, 24px);
  padding: clamp(40px, 6vw, 76px) clamp(18px, 4vw, 60px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(154,197,103,.35), transparent 22rem),
    radial-gradient(circle at 12% 90%, rgba(200,168,92,.24), transparent 24rem),
    linear-gradient(135deg, #001737 0%, #00285d 48%, #06427f 74%, #0b5d6e 100%);
  border-bottom-left-radius: 42px;
  border-bottom-right-radius: 42px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 26px;
  position: relative;
  overflow: hidden;
}

.subhero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 390px;
  height: 390px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 42px rgba(255,255,255,.035), inset 0 0 0 90px rgba(121,168,71,.05);
  pointer-events: none;
}

.subhero > * {
  position: relative;
  z-index: 1;
}

.subhero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.058em;
}

.subhero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,.82);
  line-height: 1.64;
  font-size: 1.08rem;
}

.subhero-card {
  justify-self: end;
  width: min(290px, 100%);
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 65px rgba(0,0,0,.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 9px;
}

.subhero-card img {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255,255,255,.82);
  box-shadow: 0 16px 32px rgba(0,0,0,.24);
}

.subhero-card span {
  color: rgba(255,255,255,.72);
  font-weight: 800;
  font-size: .86rem;
}

.subhero-card strong {
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.25;
}

.jeopardy-subhero {
  background:
    radial-gradient(circle at 82% 18%, rgba(243,215,140,.35), transparent 22rem),
    radial-gradient(circle at 14% 92%, rgba(121,168,71,.25), transparent 24rem),
    linear-gradient(135deg, #001737 0%, #00285d 44%, #0a3a88 72%, #7b6221 100%);
}

.first-section {
  padding-top: clamp(38px, 5vw, 64px);
}

.three-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jeopardy-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.jeopardy-area {
  min-height: 700px;
}

.trophy-card strong {
  color: var(--gold-2);
}

@media (max-width: 1060px) {
  .module-grid { grid-template-columns: 1fr; }
  .subhero { grid-template-columns: 1fr; }
  .subhero-card { justify-self: start; }
  .jeopardy-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .top-header { position: relative; }
  .module-topbar { align-items: flex-start; flex-direction: column; }
  .nav-actions { justify-content: flex-start; }
  .home-hero, .subhero { margin: 0; border-radius: 0 0 30px 30px; }
  .module-card { min-height: 260px; }
  .three-actions { grid-template-columns: 1fr; }
}

/* Blue + Green professional game update */
:root {
  --gold: #2f8f6b;
  --gold-2: #b7e889;
}

.subject-card:nth-child(1), .accent-green { --accent: #2f8f6b; --accent-2: #9bd879; }
.subject-card:nth-child(2), .accent-blue { --accent: #0f5fb8; --accent-2: #66c7d5; }
.subject-card:nth-child(3), .accent-gold { --accent: #0b4f91; --accent-2: #8bd66b; }
.subject-card:nth-child(4), .accent-purple { --accent: #14756b; --accent-2: #7fd0b2; }
.subject-card:nth-child(5), .accent-emerald { --accent: #0a6fa8; --accent-2: #76d47b; }
.subject-card:nth-child(6), .accent-copper { --accent: #1f8f6a; --accent-2: #6ebcff; }

.control-panel::before,
.subject-card::before {
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--green));
}

.points-badge,
.btn-green,
.control-panel .primary-btn,
.mini-progress i {
  background: linear-gradient(135deg, var(--navy), var(--blue), var(--green));
  color: #ffffff;
}

.score-box div,
.score-box div:nth-child(2),
.score-box div:nth-child(3) {
  background: linear-gradient(135deg, rgba(15,95,184,.08), rgba(121,168,71,.12));
}

.jeopardy-subhero,
.practice-launch-subhero,
.game-subhero {
  background:
    radial-gradient(circle at 84% 16%, rgba(121,168,71,.36), transparent 23rem),
    radial-gradient(circle at 10% 92%, rgba(15,95,184,.25), transparent 25rem),
    linear-gradient(135deg, #001737 0%, #00285d 45%, #06427f 72%, #0b6a67 100%);
}

/* Practice launcher */
.launcher-layout {
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  align-items: stretch;
}

.launcher-panel {
  top: 92px;
}

.setup-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.setup-label::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.launcher-panel h2 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  letter-spacing: -.04em;
}

.launcher-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.launcher-preview {
  min-height: auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(15,95,184,.12), transparent 20rem),
    radial-gradient(circle at 0% 100%, rgba(121,168,71,.14), transparent 20rem),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
}

.launcher-preview-card {
  width: min(900px, 100%);
  padding: clamp(26px, 4vw, 48px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 8%, rgba(121,168,71,.28), transparent 17rem),
    linear-gradient(135deg, #001f4f 0%, #052b6d 48%, #0b6a67 100%);
  color: #ffffff;
  box-shadow: 0 34px 90px rgba(0,31,79,.24);
  border: 1px solid rgba(255,255,255,.18);
  overflow: hidden;
  position: relative;
}

.launcher-preview-card::after {
  content: "";
  position: absolute;
  right: -85px;
  top: -85px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 34px rgba(255,255,255,.04), inset 0 0 0 76px rgba(121,168,71,.07);
}

.launcher-preview-card > * {
  position: relative;
  z-index: 1;
}

.launcher-preview-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.launcher-preview-card p {
  max-width: 740px;
  margin: 0;
  color: rgba(255,255,255,.82);
  line-height: 1.65;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.preview-grid div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
}

.preview-grid span {
  display: block;
  color: rgba(255,255,255,.70);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  margin-bottom: 7px;
}

.preview-grid strong {
  display: block;
  white-space: pre-line;
  font-size: 1.18rem;
  line-height: 1.28;
}

.mini-board-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.mini-board-preview span {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(183,232,137,.92));
  color: var(--navy);
  font-size: 1.3rem;
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(0,0,0,.14);
}

/* Real Jeopardy board */
.game-section {
  padding-bottom: 56px;
}

.game-control-panel {
  top: 92px;
}

.jeopardy-area {
  min-height: 720px;
  padding: clamp(18px, 3vw, 30px);
  background:
    radial-gradient(circle at 94% 0%, rgba(121,168,71,.16), transparent 18rem),
    radial-gradient(circle at 0% 100%, rgba(15,95,184,.12), transparent 20rem),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,250,255,.90));
}

.game-toolbar {
  margin-bottom: 22px;
}

.game-back-link {
  min-width: 150px;
}

.board-stage {
  width: 100%;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 0%, rgba(121,168,71,.18), transparent 18rem),
    linear-gradient(135deg, #001737 0%, #00285d 54%, #0b6a67 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 34px 90px rgba(0,31,79,.22);
}

.stage-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: #ffffff;
}

.stage-top span {
  display: block;
  color: var(--green-2);
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stage-top h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.stage-top strong {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.92);
  white-space: nowrap;
}

.real-board {
  gap: 12px;
}

.real-board .board-head,
.real-board .board-cell {
  border-radius: 18px;
  min-height: 88px;
}

.real-board .board-head {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(219,246,221,.90));
  color: var(--navy);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.real-board .board-cell,
.real-board .board-cell:nth-child(6n+2),
.real-board .board-cell:nth-child(6n+3),
.real-board .board-cell:nth-child(6n+4) {
  background:
    radial-gradient(circle at 86% 12%, rgba(121,168,71,.36), transparent 6rem),
    linear-gradient(150deg, #07336d 0%, #001f4f 52%, #0a6a65 100%);
  color: #ffffff;
  border: 1px solid rgba(183,232,137,.26);
  box-shadow: 0 16px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.10);
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  letter-spacing: -.02em;
}

.real-board .board-cell:hover {
  background:
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.20), transparent 6rem),
    linear-gradient(135deg, #0b6a67 0%, #0f5fb8 100%);
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 22px 42px rgba(0,31,79,.28);
}

.real-board .board-cell.done {
  opacity: .36;
  filter: none;
  cursor: default;
}

.real-board .board-cell.empty {
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.40);
  cursor: not-allowed;
}

.game-question-card {
  width: min(980px, 100%);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 92% 10%, rgba(121,168,71,.34), transparent 18rem),
    linear-gradient(150deg, #001737 0%, #052b6d 54%, #0b6a67 100%);
}

.game-question-card .clue-text {
  font-size: clamp(1.85rem, 4vw, 3.65rem);
}

.game-card-actions .btn-outline,
.game-card-actions .btn-light,
.game-card-actions .btn-green {
  min-height: 54px;
}

@media (max-width: 1040px) {
  .launcher-layout,
  .jeopardy-layout {
    grid-template-columns: 1fr;
  }

  .launcher-panel,
  .game-control-panel {
    position: relative;
    top: 0;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .real-board {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  .mini-board-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .real-board .board-head,
  .real-board .board-cell {
    min-height: 70px;
    min-width: 98px;
  }
}



/* ===== Clean student version: blue + green only ===== */
:root {
  --navy: #001f4f;
  --navy-2: #052b6d;
  --navy-3: #0f5fb8;
  --blue: #0f5fb8;
  --green: #6fa843;
  --green-2: #8fd16c;
  --emerald: #2f8f6b;
  --gold: #6fa843;
  --gold-2: #8fd16c;
}

body {
  background:
    radial-gradient(circle at 6% 8%, rgba(15,95,184,.10), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(111,168,67,.10), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 52%, #ffffff 100%) !important;
}

.top-header,
.hero,
.subhero {
  background: #001f4f !important;
}

.hero::before,
.subhero::before {
  background: radial-gradient(circle at 84% 10%, rgba(111,168,67,.20), transparent 18rem) !important;
}

.hero::after,
.subhero::after {
  border-color: rgba(111,168,67,.22) !important;
  box-shadow: inset 0 0 0 42px rgba(111,168,67,.06), inset 0 0 0 96px rgba(255,255,255,.03) !important;
}

.primary-btn,
.card-btn.primary,
.php-submit,
.launcher-submit {
  background: #001f4f !important;
  color: #ffffff !important;
}

.primary-btn:hover,
.card-btn.primary:hover,
.php-submit:hover,
.launcher-submit:hover {
  background: #0f5fb8 !important;
}

.secondary-btn,
.card-btn,
.php-link-button,
.php-reveal-button {
  background: #ffffff !important;
  color: #001f4f !important;
  border-color: rgba(0,31,79,.14) !important;
}

.eyebrow,
.section .eyebrow,
.launcher-kicker,
.php-control-title,
.php-stage-title span,
.php-clue-label {
  color: #6fa843 !important;
}

.eyebrow::before,
.launcher-kicker::before {
  background: #6fa843 !important;
}

.accent-blue,
.subject-card:nth-child(2n),
.module-card:nth-child(2n) {
  --accent: #0f5fb8 !important;
  --accent-2: #0f5fb8 !important;
}

.accent-green,
.accent-emerald,
.accent-gold,
.accent-purple,
.accent-copper,
.subject-card:nth-child(2n+1),
.module-card:nth-child(2n+1) {
  --accent: #6fa843 !important;
  --accent-2: #6fa843 !important;
}

.subject-card::before,
.module-card::before {
  background: var(--accent) !important;
}

.subject-icon,
.module-number {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.chip,
.php-chip {
  background: rgba(15,95,184,.08) !important;
  color: #001f4f !important;
  border-color: rgba(15,95,184,.14) !important;
}

.footer {
  background: transparent !important;
}

/* Practice launcher */
.launcher-section-bluegreen {
  padding-top: clamp(26px, 4vw, 54px);
}

.launcher-clean-layout {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
}

.launcher-form-card,
.launcher-info-card {
  border-radius: 34px;
  border: 1px solid rgba(0,31,79,.10);
  box-shadow: 0 26px 70px rgba(0,31,79,.12);
}

.launcher-form-card {
  padding: clamp(22px, 3vw, 34px);
  background: #ffffff;
  border-top: 7px solid #001f4f;
}

.launcher-info-card {
  padding: clamp(26px, 5vw, 56px);
  color: #ffffff;
  background: #001f4f;
  overflow: hidden;
  position: relative;
}

.launcher-info-card::after {
  content: "";
  position: absolute;
  right: -95px;
  top: -95px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 38px solid rgba(111,168,67,.22);
}

.launcher-info-card > * {
  position: relative;
  z-index: 1;
}

.launcher-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.launcher-kicker::before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: 99px;
}

.launcher-form-card h2,
.launcher-info-card h2 {
  margin: 16px 0 10px;
  line-height: 1;
  letter-spacing: -.055em;
}

.launcher-form-card h2 {
  color: #001f4f;
  font-size: clamp(2rem, 4vw, 3rem);
}

.launcher-info-card h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.35rem);
}

.launcher-form-card label {
  display: block;
  margin: 18px 0 8px;
  color: #001f4f;
  font-weight: 900;
}

.launcher-form-card select {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(0,31,79,.14);
  background: #ffffff;
  color: #10213f;
  padding: 0 18px;
  font-size: 1.02rem;
  outline: none;
}

.launcher-submit {
  width: 100%;
  min-height: 62px;
  margin-top: 24px;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(0,31,79,.22);
  font-weight: 1000;
  cursor: pointer;
}

.mini-board-clean {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.mini-board-clean span {
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 20px;
  background: #6fa843;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 1000;
}

/* PHP Jeopardy */
.php-jeopardy-section {
  padding-top: clamp(22px, 4vw, 46px);
}

.php-jeopardy-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.php-game-controls,
.php-game-main,
.php-question-card {
  border: 1px solid rgba(0,31,79,.10);
  box-shadow: 0 26px 70px rgba(0,31,79,.12);
}

.php-game-controls {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: 30px;
  background: #ffffff;
  border-top: 7px solid #001f4f;
}

.php-game-controls label {
  display: block;
  color: #001f4f;
  font-weight: 950;
  margin: 16px 0 8px;
}

.php-game-controls select {
  width: 100%;
  min-height: 54px;
  border-radius: 17px;
  border: 1px solid rgba(0,31,79,.14);
  background: #fff;
  padding: 0 15px;
  color: #10213f;
  outline: none;
}

.php-control-title {
  display: block;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.php-game-controls h2 {
  margin: 0 0 4px;
  color: #001f4f;
  font-size: 1.75rem;
  letter-spacing: -.04em;
}

.php-submit,
.php-link-button,
.php-reveal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 1000;
  cursor: pointer;
  text-align: center;
}

.php-submit {
  width: 100%;
  border: 0;
  margin-top: 22px;
  box-shadow: 0 18px 38px rgba(0,31,79,.22);
}

.php-link-button.green,
.php-score,
.php-stage-title strong {
  color: #ffffff !important;
  background: #6fa843 !important;
  border-color: #6fa843 !important;
}

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

.php-game-main {
  padding: clamp(18px, 3vw, 32px);
  border-radius: 34px;
  background: #ffffff;
}

.php-game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.php-board-stage {
  padding: clamp(18px, 3vw, 34px);
  border-radius: 32px;
  background: #001f4f;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 34px 90px rgba(0,31,79,.24);
}

.php-stage-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
  color: #fff;
}

.php-stage-title span {
  display: block;
  font-size: .76rem;
  font-weight: 1000;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.php-stage-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.php-stage-title strong {
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.php-board-grid {
  display: grid;
  gap: 12px;
}

.php-board-head,
.php-board-cell,
.php-board-empty,
.php-board-used {
  min-height: 82px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 1000;
}

.php-board-head {
  background: #ffffff;
  color: #001f4f;
  padding: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,.16);
}

.php-board-cell {
  color: #ffffff;
  background: #6fa843;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.php-board-cell:hover {
  transform: translateY(-4px) scale(1.015);
  background: #0f5fb8;
  box-shadow: 0 22px 42px rgba(0,31,79,.30);
}

.php-board-empty {
  color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.php-board-used {
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 1.6rem;
}

.php-question-card {
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 34px;
  color: #ffffff;
  background: #001f4f;
}

.php-question-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.php-question-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.16);
  font-weight: 900;
}

.php-clue-label {
  display: block;
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.php-question-card h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.php-answer-toggle {
  position: absolute;
  left: -9999px;
}

.php-question-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.php-reveal-button {
  border: 0;
}

.php-answer-box {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}

.php-answer-toggle:checked ~ .php-answer-box {
  display: block;
}

.php-answer-box span {
  display: block;
  color: rgba(255,255,255,.70);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 1000;
  margin-bottom: 8px;
}

.php-answer-box strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

@media (max-width: 1080px) {
  .php-jeopardy-shell,
  .launcher-clean-layout {
    grid-template-columns: 1fr;
  }

  .php-game-controls {
    position: relative;
    top: 0;
  }
}

@media (max-width: 760px) {
  .php-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .php-stage-title {
    align-items: flex-start;
    flex-direction: column;
  }

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