:root {
  --navy: #18264a;
  --navy-2: #0f1834;
  --purple-navy: #201b35;
  --ivory: #f7edd6;
  --ivory-2: #fff8e8;
  --gold: #c8a46a;
  --gold-2: #e2c684;
  --coral: #d98273;
  --slate: #55748a;
  --green: #78937b;
  --walnut: #322015;
  --walnut-2: #5c3b22;
  --ink: #172033;
  --muted: #6f6a62;
  --shadow: 0 24px 80px rgba(5, 8, 16, .38);
  --soft-shadow: 0 16px 38px rgba(18, 21, 31, .18);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--walnut); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ivory-2);
  background:
    radial-gradient(circle at top left, rgba(200, 164, 106, .22), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(217, 130, 115, .18), transparent 35rem),
    linear-gradient(135deg, #1d120c 0%, #392416 45%, #170f0b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 7px),
    linear-gradient(90deg, rgba(255,255,255,.04), rgba(0,0,0,.12));
  mix-blend-mode: soft-light;
}

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

button, input, select { font: inherit; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--ivory-2);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.page { position: relative; overflow-x: hidden; }

.home-shell {
  min-height: calc(100vh - 54px);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.hero-luxury {
  width: min(1180px, 100%);
  min-height: min(780px, calc(100vh - 92px));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 248, 232, .2);
  isolation: isolate;
  background: var(--navy-2);
}

.hero-media,
.hero-media video,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media video,
.hero-media img { object-fit: cover; }
.hero-video { z-index: 1; }
.hero-fallback { z-index: 0; }

.hero-fallback { opacity: 1; }
.video-card iframe { border: 0; }

.hero-video:not([src]) + .hero-fallback { opacity: 1; }

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 13, 28, .92) 0%, rgba(15, 24, 52, .78) 40%, rgba(15, 24, 52, .36) 100%),
    radial-gradient(circle at 28% 35%, rgba(200, 164, 106, .18), transparent 28rem);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 2rem));
  margin: clamp(1rem, 6vw, 5rem);
  top: clamp(2rem, 14vh, 9rem);
}

.card-glass,
.study-card,
.panel-card,
.question-card {
  border: 1px solid rgba(226, 198, 132, .32);
  background:
    linear-gradient(145deg, rgba(255, 248, 232, .96), rgba(241, 224, 190, .92)),
    radial-gradient(circle at top left, rgba(255,255,255,.7), transparent 18rem);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.card-glass {
  padding: clamp(1.4rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 248, 232, .94), rgba(234, 211, 164, .86)),
    rgba(255, 255, 255, .6);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 .45rem;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: .8rem;
}

.card-glass .eyebrow,
.study-card .eyebrow,
.panel-card .eyebrow,
.question-card .eyebrow { color: #8d6430; }

.eyebrow.small { font-size: .68rem; letter-spacing: .16em; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: .94;
  margin: 0;
  color: var(--navy);
}

.hero-content h1 {
  font-size: clamp(4rem, 12vw, 8.2rem);
  letter-spacing: -.04em;
}

.hero-subtitle {
  margin: .2rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--coral);
}

.hero-line {
  display: inline-flex;
  margin: 1.2rem 0 .6rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(24, 38, 74, .08);
  color: var(--navy);
  font-weight: 900;
}

.hero-copy,
.lead,
.section-intro,
.note {
  color: #4b4a45;
  line-height: 1.65;
  font-weight: 550;
}

.hero-copy { max-width: 46ch; margin: .7rem 0 1.4rem; }

.hero-actions,
.tool-row,
.mini-actions,
.card-actions,
.team-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy-2);
  box-shadow: 0 14px 26px rgba(104, 74, 25, .24);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--navy), var(--purple-navy));
  color: var(--ivory-2);
  border-color: rgba(226, 198, 132, .35);
  box-shadow: 0 12px 24px rgba(14, 20, 42, .26);
}

.btn-ghost {
  background: rgba(24, 38, 74, .07);
  color: var(--navy);
  border-color: rgba(24, 38, 74, .16);
}

.btn-mini {
  min-height: 36px;
  padding: .45rem .8rem;
  font-size: .85rem;
  background: rgba(200, 164, 106, .16);
  border-color: rgba(200, 164, 106, .35);
  color: var(--navy);
}

.btn.full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.site-footer {
  min-height: 54px;
  display: flex;
  gap: .7rem;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  color: rgba(255, 248, 232, .82);
  font-size: .78rem;
  text-align: center;
}

.site-footer img { width: 52px; height: 36px; object-fit: contain; opacity: .9; }

.topbar,
.game-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem clamp(1rem, 3vw, 2rem);
  background: rgba(17, 14, 20, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 198, 132, .18);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  background:
    radial-gradient(circle at 32% 28%, #fff6d9, var(--gold-2) 48%, var(--gold));
  box-shadow: 0 11px 22px rgba(0,0,0,.32), inset 0 0 0 3px rgba(255,255,255,.28);
}

.topnav {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.topnav a {
  text-decoration: none;
  padding: .62rem .9rem;
  border-radius: 999px;
  color: rgba(255, 248, 232, .8);
  font-weight: 800;
  border: 1px solid transparent;
}

.topnav a:hover,
.topnav a.is-active {
  color: var(--ivory-2);
  border-color: rgba(226, 198, 132, .3);
  background: rgba(255,255,255,.08);
}

.study-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.2rem) 0 2rem;
}

.section-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  margin-bottom: 1.2rem;
}

.compact-hero {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(226, 198, 132, .28);
  background:
    linear-gradient(135deg, rgba(24, 38, 74, .96), rgba(32, 27, 53, .88)),
    radial-gradient(circle at top left, rgba(200, 164, 106, .23), transparent 30rem);
  box-shadow: var(--shadow);
}

.compact-hero h1 { color: var(--ivory-2); font-size: clamp(3rem, 7vw, 5.6rem); }
.compact-hero .lead { color: rgba(255, 248, 232, .86); max-width: 68ch; margin: .9rem 0 0; }

.study-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.video-rule-grid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.study-card,
.panel-card {
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2vw, 1.4rem);
  overflow: hidden;
}

.study-card h2,
.panel-card h2,
.question-card h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }

.card-heading-row,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-top: 1rem;
  border-radius: 18px;
  background: var(--navy-2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 16px 32px rgba(0,0,0,.18);
}
.video-frame iframe { width: 100%; height: 100%; }

.study-visual {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.study-visual.wide { aspect-ratio: 16 / 8; }

.rule-box {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(24, 38, 74, .07);
  border: 1px solid rgba(24, 38, 74, .12);
}

.rule-box p { margin: .25rem 0; line-height: 1.55; }

.wide-card { margin-bottom: 1rem; }

.search-input,
.select-field {
  min-height: 42px;
  border: 1px solid rgba(24, 38, 74, .16);
  border-radius: 999px;
  padding: .65rem .9rem;
  color: var(--ink);
  background: rgba(255,255,255,.72);
  outline: none;
}

.select-field { width: 100%; border-radius: 14px; }
.search-input:focus,
.select-field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 164, 106, .18); }

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}

.vocab-card {
  position: relative;
  min-height: 244px;
  padding: 1rem;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(24,38,74,.06), rgba(200,164,106,.11)),
    rgba(255,255,255,.58);
  border: 1px solid rgba(24, 38, 74, .12);
}

.vocab-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .45rem;
}

.pronunciation {
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: rgba(217, 130, 115, .13);
  color: #8f4439;
  font-weight: 900;
  font-size: .78rem;
}

.vocab-card p { margin: .7rem 0 0; color: #464641; line-height: 1.45; }
.vocab-card .listen-btn { margin-top: .85rem; }

.phrase-list,
.rule-list,
.small-list {
  padding-left: 1.1rem;
  color: #47433c;
  line-height: 1.65;
}

.mini-check-grid {
  display: grid;
  gap: .8rem;
  margin: 1rem 0;
}

.mini-item {
  padding: .9rem;
  border-radius: 18px;
  border: 1px solid rgba(24, 38, 74, .1);
  background: rgba(255,255,255,.48);
}

.mini-item p { margin: 0 0 .55rem; font-weight: 800; }
.mini-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.mini-options label { cursor: pointer; padding: .45rem .65rem; border-radius: 999px; background: rgba(24,38,74,.06); }
.mini-item.correct { border-color: rgba(120, 147, 123, .8); background: rgba(120, 147, 123, .14); }
.mini-item.wrong { border-color: rgba(217, 130, 115, .8); background: rgba(217, 130, 115, .13); }

.score-chip,
.pill,
.points-label,
.category-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .78rem;
  font-weight: 900;
  background: rgba(200, 164, 106, .18);
  color: var(--navy);
  border: 1px solid rgba(200, 164, 106, .32);
  white-space: nowrap;
}

.pill.muted { background: rgba(24, 38, 74, .06); color: #59606b; }

.game-page {
  background:
    radial-gradient(circle at 16% 8%, rgba(200,164,106,.24), transparent 28rem),
    radial-gradient(circle at 88% 88%, rgba(217,130,115,.18), transparent 25rem),
    linear-gradient(135deg, #22150e, #422817 46%, #120c09);
}

.game-header { padding-block: .55rem; }
.game-title-block h1 { color: var(--ivory-2); font-size: clamp(1.9rem, 4vw, 3rem); }
.game-title-block .eyebrow { margin-bottom: .1rem; }
.topnav.compact a { padding: .5rem .78rem; }

.game-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(580px, 1fr) minmax(230px, 310px);
  gap: .9rem;
  width: min(1840px, calc(100% - 1rem));
  margin: .7rem auto 0;
  align-items: start;
}

.control-panel {
  display: grid;
  gap: .8rem;
  min-width: 0;
}

.panel-card {
  padding: 1rem;
  border-radius: 22px;
}

.panel-card h2 { font-size: 1.75rem; margin-bottom: .8rem; }
.field-label { display: block; margin: .75rem 0 .35rem; color: #64573e; font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.score-board { display: grid; gap: .55rem; margin: .7rem 0; }
.team-score {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .6rem;
  padding: .65rem;
  border-radius: 16px;
  border: 1px solid rgba(24, 38, 74, .1);
  background: rgba(255,255,255,.5);
}

.team-score.is-active {
  border-color: rgba(200,164,106,.8);
  box-shadow: 0 0 0 3px rgba(200,164,106,.15);
}

.team-dot { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.team-name { font-weight: 900; color: var(--navy); }
.team-points { font-weight: 950; color: #8d6430; }

.team-actions { gap: .45rem; }
.team-actions .btn-mini { flex: 1; }

.board-zone { min-width: 0; }

.board-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .55rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(226,198,132,.22);
  border-radius: 24px;
  background: rgba(15, 12, 16, .52);
  backdrop-filter: blur(10px);
}

.dice-area { display: flex; align-items: center; gap: .75rem; }
.dice-result { margin: .05rem 0 0; font-weight: 900; color: var(--ivory-2); }

.dice-cube {
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  color: var(--navy);
  background:
    radial-gradient(circle at 28% 22%, #fff9dd, transparent 34%),
    linear-gradient(145deg, #f7e5b7, #c69d54 62%, #7e5728);
  box-shadow: 0 18px 32px rgba(0,0,0,.36), inset 8px 8px 16px rgba(255,255,255,.42), inset -8px -10px 16px rgba(83,50,12,.34);
  transform: perspective(500px) rotateX(12deg) rotateY(-15deg);
  transition: transform .2s ease, filter .2s ease;
}

.dice-cube:hover,
.dice-cube:focus-visible { transform: perspective(500px) rotateX(8deg) rotateY(-8deg) translateY(-3px); filter: brightness(1.08); }
.dice-cube.rolling { animation: diceRoll .72s ease-in-out; }
.dice-face { display: block; font-size: 2.25rem; line-height: 1; text-shadow: 0 1px 0 rgba(255,255,255,.5); }

@keyframes diceRoll {
  0% { transform: perspective(500px) rotateX(12deg) rotateY(-15deg) translateY(0); }
  35% { transform: perspective(500px) rotateX(180deg) rotateY(120deg) translateY(-12px); }
  72% { transform: perspective(500px) rotateX(320deg) rotateY(270deg) translateY(4px); }
  100% { transform: perspective(500px) rotateX(12deg) rotateY(-15deg) translateY(0); }
}

.status-line {
  color: rgba(255, 248, 232, .82);
  font-weight: 800;
  text-align: right;
}

.board-stage {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 198, 132, .18);
  background: rgba(0,0,0,.35);
}

.board-image { width: 100%; height: auto; user-select: none; pointer-events: none; }
.board-overlays,
.pawns-layer { position: absolute; inset: 0; }

.board-space {
  position: absolute;
  width: var(--size, 7%);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: transparent;
}

.board-space::after {
  content: attr(data-label);
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 3px rgba(255, 248, 232, .9), 0 0 34px 10px rgba(226, 198, 132, .85);
  transition: opacity .18s ease;
}

.board-space:hover::after,
.board-space:focus-visible::after { opacity: .75; }

.active-glow {
  --x: 21%;
  --y: 19%;
  --size: 8%;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 5px rgba(255, 248, 232, .78), 0 0 42px 16px rgba(226, 198, 132, .9), inset 0 0 22px rgba(255,255,255,.55);
  transition: left .36s ease, top .36s ease, opacity .25s ease;
}
.active-glow.is-visible { opacity: .86; }

.pawn {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(16px, 2.4vw, 34px);
  height: clamp(24px, 3.5vw, 48px);
  transform: translate(-50%, -96%);
  transition: left .55s cubic-bezier(.21,.82,.27,1.08), top .55s cubic-bezier(.21,.82,.27,1.08), filter .2s ease;
  filter: drop-shadow(0 12px 8px rgba(0,0,0,.38));
  z-index: 5;
}

.pawn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 70%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), transparent 28%), var(--pawn-color);
  box-shadow: inset 0 -5px 8px rgba(0,0,0,.24), inset 0 0 0 2px rgba(255,255,255,.22);
}

.pawn::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: 64%;
  transform: translateX(-50%);
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(150deg, rgba(255,255,255,.28), transparent 30%), var(--pawn-color);
  box-shadow: inset 0 -7px 10px rgba(0,0,0,.26), inset 0 0 0 2px rgba(255,255,255,.2);
}

.pawn.is-active { filter: drop-shadow(0 0 14px rgba(255,248,232,.95)) drop-shadow(0 12px 8px rgba(0,0,0,.38)); }

.question-card {
  position: absolute;
  left: 50%;
  top: 50.4%;
  width: min(56%, 720px);
  min-height: 45%;
  transform: translate(-50%, -50%);
  padding: clamp(.9rem, 1.7vw, 1.4rem);
  border-radius: 32px;
  z-index: 7;
  display: flex;
  flex-direction: column;
}

.question-topline { display: flex; justify-content: space-between; gap: .8rem; align-items: center; margin-bottom: .55rem; }
.question-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
#questionPrompt { color: #343c50; line-height: 1.5; font-weight: 800; margin: .75rem 0; }

.answer-options { display: grid; gap: .55rem; margin-top: .25rem; }
.answer-btn {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  min-height: 42px;
  border-radius: 16px;
  padding: .62rem .8rem;
  background: rgba(24, 38, 74, .06);
  border: 1px solid rgba(24,38,74,.12);
  color: var(--ink);
}
.answer-btn:hover,
.answer-btn:focus-visible { background: rgba(200,164,106,.16); }
.answer-btn.correct { background: rgba(120, 147, 123, .18); border-color: rgba(120,147,123,.72); }
.answer-btn.wrong { background: rgba(217, 130, 115, .16); border-color: rgba(217,130,115,.72); }

.support-box {
  padding: .8rem;
  border-radius: 16px;
  background: rgba(24,38,74,.06);
  border: 1px solid rgba(24,38,74,.12);
  color: #344052;
  line-height: 1.55;
}
.support-box ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.card-actions { margin-top: auto; padding-top: .7rem; gap: .45rem; }
.feedback {
  min-height: 32px;
  margin-top: .55rem;
  padding: .55rem .7rem;
  border-radius: 14px;
  color: #3d3b34;
  background: rgba(255,255,255,.45);
  font-weight: 800;
  line-height: 1.35;
}
.feedback.good { background: rgba(120,147,123,.16); color: #324d35; }
.feedback.bad { background: rgba(217,130,115,.16); color: #7a3b31; }
.feedback.info { background: rgba(85,116,138,.14); color: #31475a; }

.drawer-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.drawer-tab {
  cursor: pointer;
  border: 1px solid rgba(24,38,74,.12);
  border-radius: 999px;
  padding: .45rem .65rem;
  background: rgba(24,38,74,.06);
  color: var(--navy);
  font-weight: 900;
}
.drawer-tab.is-active { background: var(--navy); color: var(--ivory-2); }
.drawer-content { color: #3e403e; line-height: 1.55; }
.drawer-content h3 { font-family: var(--font-body); font-size: 1rem; margin: .65rem 0 .25rem; }
.drawer-content p { margin: .35rem 0; }
.drawer-content ul { padding-left: 1.1rem; }

.hidden { display: none !important; }

@media (max-width: 1220px) {
  .game-shell { grid-template-columns: 240px minmax(520px, 1fr); }
  .right-panel { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .question-card { width: min(61%, 680px); min-height: 48%; }
}

@media (max-width: 940px) {
  .video-rule-grid,
  .two-columns { grid-template-columns: 1fr; }
  .section-hero { flex-direction: column; align-items: flex-start; }
  .game-shell { grid-template-columns: 1fr; }
  .left-panel,
  .right-panel { grid-template-columns: 1fr; }
  .board-top-strip { align-items: flex-start; flex-direction: column; }
  .status-line { text-align: left; }
  .question-card {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% - 1rem);
    min-height: auto;
    transform: none;
    margin: .5rem;
  }
  .board-stage { overflow: visible; background: transparent; box-shadow: none; border: 0; }
  .board-image { border-radius: 24px; box-shadow: var(--shadow); border: 1px solid rgba(226,198,132,.18); }
  .pawns-layer, .active-glow { pointer-events: none; }
}

@media (max-width: 680px) {
  .hero-content { top: 0; margin: 1rem; width: calc(100% - 2rem); }
  .hero-luxury { min-height: 680px; }
  .hero-actions .btn, .mini-actions .btn { width: 100%; }
  .topbar, .game-header { gap: .5rem; }
  .game-title-block { display: none; }
  .topnav a { padding: .5rem .6rem; font-size: .9rem; }
  .card-heading-row { flex-direction: column; }
  .tool-row { width: 100%; }
  .search-input { width: 100%; }
  .site-footer { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-video { display: none; }
  .hero-fallback { opacity: 1; }
}

@media print {
  body { background: #fff; color: #111; }
  .topbar, .game-header, .hero-actions, .video-frame, .site-footer, .btn, .hero-media, .hero-shade { display: none !important; }
  .study-shell { width: 100%; padding: 0; }
  .study-card { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
}

/* === V2 polish: visible hero video, 3D route/mode icons, stronger study page === */
.home-page-v2 .home-shell { display: block; }
.home-v2-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.3rem) 0 2rem;
}

.home-hero-v2 {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(360px, 1.22fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  min-height: min(720px, calc(100vh - 210px));
}

.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}

.hero-copy-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -86px;
  bottom: -86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,164,106,.42), transparent 68%);
  pointer-events: none;
}

.hero-video-panel {
  position: relative;
  min-height: 520px;
  padding: clamp(.75rem, 1.6vw, 1.1rem);
  border-radius: 36px;
  border: 1px solid rgba(226, 198, 132, .34);
  background:
    linear-gradient(145deg, rgba(255,248,232,.16), rgba(24,38,74,.08)),
    radial-gradient(circle at 22% 18%, rgba(226,198,132,.26), transparent 24rem),
    rgba(12, 11, 16, .58);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-video-frame {
  position: relative;
  height: 100%;
  min-height: 490px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--navy-2);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.16),
    inset 0 0 0 5px rgba(200,164,106,.16),
    0 24px 58px rgba(0,0,0,.42);
}

.hero-showcase-video,
.hero-showcase-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-showcase-video { z-index: 2; }
.hero-showcase-fallback { z-index: 1; }

.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,5,12,.04), rgba(3,5,12,.16)),
    radial-gradient(circle at 52% 8%, rgba(255,255,255,.16), transparent 20rem);
}

.video-caption {
  position: absolute;
  z-index: 5;
  left: 2rem;
  bottom: 1.85rem;
  padding: .56rem .82rem;
  border-radius: 999px;
  color: var(--ivory-2);
  background: rgba(7, 9, 18, .58);
  border: 1px solid rgba(226,198,132,.32);
  backdrop-filter: blur(10px);
  font-weight: 850;
  font-size: .84rem;
}

.home-page-v2 .hero-copy-panel h1 {
  font-size: clamp(4.4rem, 10vw, 8.8rem);
}

.route-deck {
  margin-top: 1.15rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: 30px;
  border: 1px solid rgba(226,198,132,.24);
  background:
    linear-gradient(135deg, rgba(24,38,74,.92), rgba(32,27,53,.78)),
    radial-gradient(circle at top right, rgba(200,164,106,.22), transparent 26rem);
  box-shadow: 0 22px 54px rgba(0,0,0,.28);
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-title-row h2 {
  color: var(--ivory-2);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.action-card-grid {
  display: grid;
  gap: 1rem;
}

.main-actions-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.action-icon-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 150px;
  padding: 1rem;
  border-radius: 26px;
  text-decoration: none;
  color: var(--navy);
  background:
    linear-gradient(145deg, rgba(255,248,232,.98), rgba(232,208,160,.94)),
    radial-gradient(circle at 24% 14%, rgba(255,255,255,.9), transparent 12rem);
  border: 1px solid rgba(226,198,132,.55);
  box-shadow:
    0 18px 36px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.55),
    inset 0 -14px 24px rgba(106,72,28,.1);
  transform: perspective(760px) rotateX(0deg) translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.action-icon-card:hover,
.action-icon-card:focus-visible {
  transform: perspective(760px) rotateX(3deg) translateY(-6px) scale(1.012);
  box-shadow:
    0 30px 56px rgba(0,0,0,.34),
    0 0 0 4px rgba(226,198,132,.18),
    inset 0 0 0 1px rgba(255,255,255,.65);
  filter: saturate(1.05);
}

.action-icon-card:active { transform: perspective(760px) rotateX(0deg) translateY(-2px) scale(.995); }

.big-card .icon-image-shell { width: 132px; height: 118px; }
.icon-image-shell {
  display: block;
  position: relative;
  width: 112px;
  height: 100px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(24,38,74,.08);
  box-shadow:
    0 14px 24px rgba(0,0,0,.22),
    inset 0 0 0 3px rgba(255,255,255,.32);
}
.icon-image-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.action-card-text strong,
.mode-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: .95;
  color: var(--navy);
}
.action-card-text small,
.mode-card small {
  display: block;
  margin-top: .5rem;
  color: #4b4a45;
  line-height: 1.45;
  font-weight: 700;
}

.mode-card {
  grid-template-columns: 1fr;
  min-height: 260px;
  align-content: start;
}
.mode-card .icon-image-shell {
  width: 100%;
  height: 130px;
  margin-bottom: .2rem;
}
.mode-badge {
  display: inline-flex;
  width: max-content;
  padding: .32rem .6rem;
  border-radius: 999px;
  background: rgba(217,130,115,.13);
  color: #884238;
  border: 1px solid rgba(217,130,115,.25);
  font-size: .75rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.study-v2-shell { width: min(1220px, calc(100% - 2rem)); }
.training-hero {
  background:
    linear-gradient(135deg, rgba(24, 38, 74, .98), rgba(32, 27, 53, .9)),
    radial-gradient(circle at 85% 28%, rgba(217,130,115,.18), transparent 26rem),
    radial-gradient(circle at 18% 12%, rgba(226,198,132,.26), transparent 22rem);
}

.training-icon-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin: 1rem 0;
}

.mini-3d-icon {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: .75rem;
  align-items: center;
  min-height: 94px;
  padding: .65rem;
  border-radius: 22px;
  text-decoration: none;
  color: var(--navy);
  background: linear-gradient(145deg, rgba(255,248,232,.96), rgba(235,213,170,.93));
  border: 1px solid rgba(226,198,132,.44);
  box-shadow: 0 14px 30px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.42);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mini-3d-icon:hover,
.mini-3d-icon:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(0,0,0,.3), 0 0 0 4px rgba(226,198,132,.15);
}
.mini-3d-icon img {
  width: 74px;
  height: 62px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.32), 0 10px 18px rgba(0,0,0,.18);
}
.mini-3d-icon span { font-weight: 950; }

.cinema-card {
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.2vw, 1.6rem);
  background:
    linear-gradient(145deg, rgba(255,248,232,.98), rgba(241,224,190,.94)),
    radial-gradient(circle at top left, rgba(226,198,132,.32), transparent 28rem);
}

.video-frame-visible {
  position: relative;
  z-index: 5;
  border-radius: 24px;
  border: 1px solid rgba(24,38,74,.16);
  box-shadow: 0 24px 46px rgba(0,0,0,.24), inset 0 0 0 5px rgba(200,164,106,.12);
  background: #050816;
}
.video-frame-visible iframe {
  display: block;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.rule-card-premium .study-visual { max-height: 250px; }

.vocab-studio-card {
  background:
    linear-gradient(145deg, rgba(255,248,232,.98), rgba(238,218,179,.94)),
    radial-gradient(circle at 90% 8%, rgba(217,130,115,.16), transparent 18rem);
}

.vocab-grid-premium {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.vocab-card-premium {
  min-height: 292px;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,248,232,.48)),
    radial-gradient(circle at top right, rgba(200,164,106,.24), transparent 12rem);
  border-color: rgba(200,164,106,.34);
  box-shadow: 0 16px 34px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.52);
  transform: translateZ(0);
}
.vocab-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .8rem;
}
.word-index {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--navy);
  background: radial-gradient(circle at 30% 24%, #fff6d9, var(--gold-2) 50%, var(--gold));
  font-weight: 950;
  box-shadow: 0 8px 15px rgba(92,59,34,.22), inset 0 0 0 2px rgba(255,255,255,.38);
}
.listen-orb {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(24,38,74,.14);
  background: linear-gradient(145deg, rgba(24,38,74,.08), rgba(200,164,106,.16));
  color: var(--navy);
  cursor: pointer;
  font-weight: 950;
  box-shadow: 0 8px 14px rgba(0,0,0,.09);
}
.listen-orb:hover,
.listen-orb:focus-visible { transform: translateY(-2px); }
.unit-link { font-size: .92rem; color: #5e5547 !important; }

.website-card { margin-bottom: 1rem; }
.website-card-layout {
  display: grid;
  grid-template-columns: minmax(260px, .58fr) 1fr;
  gap: 1rem;
  align-items: center;
}
.website-visual {
  max-height: 320px;
  height: 100%;
  margin: 0;
}
.phrase-list-premium li {
  margin: .35rem 0;
  padding: .52rem .65rem;
  border-radius: 14px;
  background: rgba(24,38,74,.06);
  border: 1px solid rgba(24,38,74,.08);
}

@media (max-width: 960px) {
  .home-hero-v2,
  .main-actions-v2,
  .mode-card-grid,
  .website-card-layout { grid-template-columns: 1fr; }
  .hero-copy-panel,
  .hero-video-panel { min-height: auto; }
  .hero-video-frame { min-height: 360px; }
  .training-icon-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .home-v2-shell,
  .study-v2-shell { width: min(100% - 1rem, 1220px); }
  .hero-video-frame { min-height: 260px; }
  .action-icon-card { grid-template-columns: 1fr; }
  .big-card .icon-image-shell,
  .icon-image-shell { width: 100%; height: 150px; }
  .training-icon-strip { grid-template-columns: 1fr; }
  .section-title-row { align-items: start; flex-direction: column; }
}

/* === V3 ad-style home/study repair === */
.brand-ad-home,
.study-studio-v3 {
  --font-head: "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", Inter, Arial, sans-serif;
  --font-luxe: "Playfair Display", Georgia, serif;
  font-family: var(--font-body);
}

.brand-ad-home h1,
.brand-ad-home h2,
.brand-ad-home h3,
.study-studio-v3 h1,
.study-studio-v3 h2,
.study-studio-v3 h3 {
  font-family: var(--font-head);
  letter-spacing: .018em;
}

.ad-home-shell,
.training-studio-shell {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) 0 2rem;
}

.ad-hero {
  position: relative;
  min-height: min(790px, calc(100vh - 88px));
  border-radius: 38px;
  overflow: hidden;
  border: 1px solid rgba(226,198,132,.36);
  background: #111827 url('../assets/images/hero/hero-fallback.webp') center/cover no-repeat;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.ad-hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(1.05) contrast(1.02);
}

.ad-hero-sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,13,30,.86) 0%, rgba(18,28,55,.58) 36%, rgba(18,28,55,.12) 72%, rgba(10,13,30,.15) 100%),
    radial-gradient(circle at 16% 24%, rgba(226,198,132,.28), transparent 28rem),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.08));
}

.ad-copy {
  position: relative;
  z-index: 3;
  width: min(620px, calc(100% - 2rem));
  padding: clamp(2rem, 5vw, 5rem);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ivory-2);
}

.ad-kicker {
  margin: 0 0 .55rem;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 900;
}
.ad-kicker.dark { color: #9c6b26; }

.ad-copy h1 {
  margin: 0;
  line-height: .82;
  color: var(--ivory-2);
  font-size: clamp(5.8rem, 14vw, 11.5rem);
  text-transform: uppercase;
  text-shadow: 0 18px 44px rgba(0,0,0,.42);
}
.ad-copy h1 span { display: block; }

.ad-subtitle {
  margin: .65rem 0 0;
  color: var(--coral);
  font-family: var(--font-luxe);
  font-size: clamp(1.45rem, 3.5vw, 2.55rem);
  font-weight: 800;
}

.ad-line {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin: 1.15rem 0 .55rem;
  padding: .62rem .9rem;
  border-radius: 999px;
  background: rgba(255,248,232,.92);
  color: var(--navy);
  box-shadow: 0 14px 28px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.62);
  font-weight: 900;
}

.ad-note,
.studio-lead {
  margin: .55rem 0 1.35rem;
  color: rgba(255,248,232,.88);
  line-height: 1.7;
  font-weight: 650;
  max-width: 44rem;
}

.ad-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ad-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: .78rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 900;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ad-btn:hover,
.ad-btn:focus-visible { transform: translateY(-3px); filter: saturate(1.05); }
.ad-btn.primary {
  color: var(--navy-2);
  background: linear-gradient(135deg, #f5d88f, var(--gold));
  box-shadow: 0 18px 30px rgba(60,36,8,.32), inset 0 1px 0 rgba(255,255,255,.56);
}
.ad-btn.secondary,
.ad-btn.tiny {
  color: var(--ivory-2);
  border-color: rgba(226,198,132,.34);
  background: linear-gradient(135deg, rgba(24,38,74,.95), rgba(32,27,53,.9));
  box-shadow: 0 16px 28px rgba(0,0,0,.24);
}
.ad-btn.tiny { min-height: 38px; padding: .55rem .85rem; font-size: .86rem; }

.ad-proof-card {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 3vw, 2.4rem);
  bottom: clamp(1rem, 3vw, 2.4rem);
  width: min(350px, calc(100% - 2rem));
  padding: 1rem;
  border-radius: 26px;
  color: var(--navy);
  background: linear-gradient(145deg, rgba(255,248,232,.94), rgba(233,210,164,.9));
  border: 1px solid rgba(226,198,132,.54);
  box-shadow: 0 24px 56px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.55);
}
.ad-proof-card span,
.route-product-card span,
.mode-icon-card span,
.studio-room-card span,
.panel-label {
  display: inline-flex;
  width: max-content;
  color: #915d21;
  background: rgba(200,164,106,.18);
  border: 1px solid rgba(200,164,106,.3);
  border-radius: 999px;
  padding: .28rem .55rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .7rem;
  font-weight: 900;
}
.ad-proof-card strong { display: block; margin-top: .55rem; font-size: 1.08rem; }
.ad-proof-card small { display: block; margin-top: .35rem; color: #625948; font-weight: 700; line-height: 1.45; }

.route-showroom,
.mode-showroom,
.studio-section {
  margin-top: 1.2rem;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: 32px;
  border: 1px solid rgba(226,198,132,.24);
  background:
    linear-gradient(135deg, rgba(255,248,232,.96), rgba(236,215,174,.93)),
    radial-gradient(circle at top right, rgba(217,130,115,.13), transparent 25rem);
  box-shadow: 0 22px 54px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.52);
  color: var(--ink);
}
.showroom-title h2,
.section-ad-heading h2 {
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4.9rem);
  line-height: .86;
  margin: 0;
  text-transform: uppercase;
}
.section-ad-heading p:last-child { color: #5b5a54; font-weight: 650; line-height: 1.6; }
.route-card-row,
.mode-icon-grid,
.studio-room-grid,
.grammar-card-grid,
.expression-grid,
.review-layout {
  display: grid;
  gap: 1rem;
}
.route-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.studio-room-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1rem 0; }
.grammar-card-grid,
.review-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.expression-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.route-product-card,
.mode-icon-card,
.studio-room-card,
.grammar-product-card,
.expression-card,
.review-structure-card,
.review-phrase-card,
.studio-panel,
.word-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--navy);
  border-radius: 26px;
  border: 1px solid rgba(200,164,106,.38);
  background:
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,248,232,.62)),
    radial-gradient(circle at top right, rgba(200,164,106,.18), transparent 12rem);
  box-shadow: 0 18px 36px rgba(55,34,14,.14), inset 0 0 0 1px rgba(255,255,255,.52);
}
.route-product-card,
.grammar-product-card,
.studio-panel { display: grid; grid-template-columns: 210px 1fr; gap: 1rem; padding: .85rem; align-items: center; }
.route-product-card img,
.grammar-product-card img,
.studio-panel > img {
  width: 100%;
  height: 170px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 14px 26px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.5);
}
.route-product-card strong,
.mode-icon-card strong,
.studio-room-card strong,
.grammar-product-card h3,
.studio-panel h3,
.expression-card h3,
.review-structure-card h3,
.review-phrase-card h3,
.word-card h3 {
  display: block;
  margin: .55rem 0 .25rem;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
  line-height: .9;
  text-transform: uppercase;
}
.route-product-card small,
.mode-icon-card small,
.studio-room-card small { display:block; color:#59564c; line-height:1.45; font-weight:700; }
.route-product-card:hover,
.mode-icon-card:hover,
.studio-room-card:hover,
.route-product-card:focus-visible,
.mode-icon-card:focus-visible,
.studio-room-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 32px 62px rgba(55,34,14,.25), 0 0 0 4px rgba(226,198,132,.18);
}
.route-product-card,
.mode-icon-card,
.studio-room-card { transition: transform .22s ease, box-shadow .22s ease, filter .22s ease; }
.mode-icon-card,
.studio-room-card { padding: .85rem; min-height: 285px; }
.mode-icon-card img,
.studio-room-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: .75rem;
  box-shadow: 0 16px 30px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.52);
}

.studio-topbar { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }
.studio-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  min-height: 330px;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  border-radius: 36px;
  border: 1px solid rgba(226,198,132,.32);
  background:
    linear-gradient(90deg, rgba(10,13,30,.88), rgba(24,38,74,.82)),
    url('../assets/images/hero/hero-fallback.webp') center/cover no-repeat;
  box-shadow: var(--shadow);
}
.studio-hero h1 {
  color: var(--ivory-2);
  font-size: clamp(4.8rem, 11vw, 9rem);
  line-height: .84;
  text-transform: uppercase;
  margin: 0;
}

.studio-section { scroll-margin-top: 1rem; }
.video-panel { grid-template-columns: minmax(260px, .58fr) minmax(360px, 1.42fr); margin-top: 1rem; }
.panel-copy p,
.premium-list,
.expression-card li,
.review-structure-card li,
.word-card p { color: #46453f; line-height: 1.55; font-weight: 600; }
.studio-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 22px 48px rgba(0,0,0,.28), inset 0 0 0 5px rgba(200,164,106,.13);
  border: 1px solid rgba(24,38,74,.18);
}
.studio-video-frame iframe { position:absolute; inset:0; z-index:3; width:100%; height:100%; border:0; pointer-events:auto; }
.premium-list { margin:.55rem 0 0; padding-left:1.1rem; }
.premium-list li { margin:.35rem 0; }
.expression-card,
.review-structure-card,
.review-phrase-card { padding: 1rem; }
.expression-card ul,
.review-structure-card ol { margin:.7rem 0 0; padding-left:1.1rem; }

.vocab-toolbar {
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: .85rem;
  border-radius: 22px;
  background: rgba(24,38,74,.06);
  border: 1px solid rgba(24,38,74,.09);
}
.vocab-toolbar label { color: var(--navy); font-weight:900; }
.vocab-toolbar input {
  flex: 1 1 260px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(24,38,74,.16);
  padding: .68rem .9rem;
  color: var(--navy);
  background: rgba(255,255,255,.72);
  outline: none;
}
.wordbuilding-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.wordbuilding-strip div {
  min-height: 98px;
  padding: .82rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(24,38,74,.94), rgba(32,27,53,.88));
  color: var(--ivory-2);
  box-shadow: 0 16px 30px rgba(0,0,0,.16);
}
.wordbuilding-strip strong { display:block; color: var(--gold-2); font-size:1.02rem; }
.wordbuilding-strip span { display:block; margin-top:.4rem; line-height:1.45; font-weight:650; font-size:.88rem; }
.word-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .95rem;
}
.word-card { padding: 1rem; min-height: 284px; }
.word-card[hidden] { display: none; }
.word-card-top { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.word-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--navy);
  background: radial-gradient(circle at 28% 20%, #fff5d8, #e2c684 48%, #b88b47);
  box-shadow: 0 9px 16px rgba(72,45,14,.22), inset 0 0 0 2px rgba(255,255,255,.45);
  font-weight: 950;
}
.listen-chip {
  min-height: 35px;
  padding: .45rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(24,38,74,.15);
  color: var(--navy);
  background: linear-gradient(145deg, rgba(255,248,232,.95), rgba(200,164,106,.28));
  box-shadow: 0 9px 16px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.7);
  font-weight: 900;
  cursor: pointer;
}
.word-card h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.pronounce { color: #9a5c2b !important; font-weight:900 !important; margin:.15rem 0 .6rem; }
.unit-note { color:#615747 !important; }

.phrase-chip-grid { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:.75rem; }
.phrase-chip-grid span {
  display:inline-flex;
  padding:.55rem .7rem;
  border-radius:999px;
  color:var(--navy);
  background:rgba(24,38,74,.07);
  border:1px solid rgba(24,38,74,.1);
  font-weight:800;
}
.speaking-practice-panel { grid-template-columns: 260px 1fr; margin-top:1rem; }
.mini-check-panel { grid-template-columns: minmax(220px,.42fr) minmax(360px,1.58fr); margin-top:1rem; align-items:start; }
.mini-score-line { color:var(--navy); }
.mini-check-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:.75rem; }
.mini-check-item {
  padding:.8rem;
  border-radius:18px;
  background:rgba(24,38,74,.06);
  border:1px solid rgba(24,38,74,.08);
}
.mini-check-item p { margin:.1rem 0 .55rem; color:#3c3e3c; font-weight:800; line-height:1.4; }
.mini-check-item button {
  display:block;
  width:100%;
  text-align:left;
  margin:.3rem 0;
  border-radius:14px;
  border:1px solid rgba(24,38,74,.13);
  padding:.5rem .62rem;
  background:rgba(255,255,255,.64);
  color:var(--navy);
  font-weight:800;
  cursor:pointer;
}
.mini-check-item button.is-correct { background:rgba(120,147,123,.22); border-color:rgba(120,147,123,.65); }
.mini-check-item button.is-wrong { background:rgba(217,130,115,.2); border-color:rgba(217,130,115,.65); }
.mini-check-item small { display:block; min-height:1.2rem; margin-top:.4rem; font-weight:900; }
.mini-check-item small.good { color:#385f3b; }
.mini-check-item small.bad { color:#854237; }
.mini-check-actions { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }

.game-mode-icons {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:.45rem;
  margin:.55rem 0 .75rem;
}
.game-mode-icons button {
  border:1px solid rgba(200,164,106,.28);
  border-radius:16px;
  padding:.38rem;
  cursor:pointer;
  background:linear-gradient(145deg, rgba(255,248,232,.96), rgba(236,214,173,.9));
  color:var(--navy);
  font-weight:900;
  box-shadow:0 10px 18px rgba(0,0,0,.12);
}
.game-mode-icons button.is-active { outline:3px solid rgba(226,198,132,.38); background:linear-gradient(145deg, #fff8e8, #e2c684); }
.game-mode-icons img { width:100%; height:54px; object-fit:cover; border-radius:12px; margin-bottom:.25rem; }
.game-mode-icons span { display:block; font-size:.72rem; }

@media (max-width: 1040px) {
  .route-card-row,
  .mode-icon-grid,
  .studio-room-grid,
  .grammar-card-grid,
  .expression-grid,
  .review-layout,
  .wordbuilding-strip,
  .mini-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-proof-card { position:relative; right:auto; bottom:auto; z-index:3; margin: -6rem 1rem 1rem auto; }
  .video-panel,
  .speaking-practice-panel,
  .mini-check-panel { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ad-home-shell,
  .training-studio-shell,
  .studio-topbar { width: min(100% - 1rem, 1240px); }
  .ad-hero { min-height: 720px; border-radius: 28px; }
  .ad-copy { padding: 1.4rem; justify-content:flex-end; }
  .ad-copy h1 { font-size: clamp(4.4rem, 18vw, 6.6rem); }
  .ad-line { width:auto; }
  .ad-proof-card { margin: -1.2rem .75rem .75rem; }
  .route-card-row,
  .mode-icon-grid,
  .studio-room-grid,
  .grammar-card-grid,
  .expression-grid,
  .review-layout,
  .wordbuilding-strip,
  .mini-check-grid { grid-template-columns: 1fr; }
  .route-product-card,
  .grammar-product-card,
  .studio-panel { grid-template-columns: 1fr; }
  .studio-hero { flex-direction:column; align-items:flex-start; min-height:340px; }
  .studio-hero h1 { font-size: clamp(4rem, 17vw, 6.5rem); }
}




/* === V4 repair: visible hero video, ad fonts, structured study studios === */
.home-v4,
.study-studio-v4 {
  --font-head: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Montserrat", Arial, sans-serif;
  --font-luxe: "Playfair Display", Georgia, serif;
  font-family: var(--font-body);
}
.home-v4 h1,
.home-v4 h2,
.home-v4 h3,
.study-studio-v4 h1,
.study-studio-v4 h2,
.study-studio-v4 h3,
.study-studio-v4 h4 {
  font-family: var(--font-head);
  letter-spacing: .025em;
  text-transform: uppercase;
}
.home-v4-shell {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 2.6vw, 2.2rem) 0 2rem;
}
.hero-ad-v4 {
  min-height: min(820px, calc(100vh - 86px));
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: clamp(1rem, 2.4vw, 2rem);
  border-radius: 42px;
  border: 1px solid rgba(226,198,132,.36);
  background:
    radial-gradient(circle at 20% 20%, rgba(226,198,132,.2), transparent 24rem),
    linear-gradient(135deg, #111a35 0%, #18264a 43%, #2b1a12 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.hero-ad-v4::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,.08), transparent 23%, rgba(255,255,255,.06) 46%, transparent 62%);
  mix-blend-mode: screen;
  opacity: .55;
}
.hero-ad-copy-v4 {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(1rem, 3.4vw, 3rem);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(10,13,30,.56), rgba(24,38,74,.2));
  border: 1px solid rgba(255,248,232,.12);
  backdrop-filter: blur(4px);
}
.hero-ad-copy-v4 h1 {
  margin: 0;
  color: var(--ivory-2);
  font-size: clamp(5.4rem, 12vw, 10.8rem);
  line-height: .78;
  text-shadow: 0 18px 48px rgba(0,0,0,.42);
}
.hero-ad-copy-v4 h1 span { display: block; }
.hero-ad-subtitle-v4 {
  margin: .85rem 0 0;
  color: var(--gold-2);
  font-family: var(--font-luxe);
  font-size: clamp(1.5rem, 3.2vw, 2.7rem);
  font-weight: 800;
}
.hero-ad-line-v4 {
  display: inline-flex;
  max-width: 100%;
  margin: 1rem 0 .4rem;
  padding: .62rem .95rem;
  border-radius: 999px;
  background: rgba(255,248,232,.94);
  color: var(--navy);
  font-weight: 950;
  box-shadow: 0 16px 30px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.65);
}
.hero-ad-note-v4 {
  margin: .75rem 0 1.35rem;
  max-width: 46ch;
  color: rgba(255,248,232,.9);
  font-weight: 700;
  line-height: 1.65;
}
.hero-video-showcase-v4 {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}
.video-frame-v4 {
  border-radius: 36px;
  padding: clamp(.55rem, 1vw, .85rem);
  background: linear-gradient(145deg, rgba(255,248,232,.94), rgba(200,164,106,.76));
  box-shadow: 0 30px 80px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.48);
}
.hero-video-v4 {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 420px;
  object-fit: cover;
  border-radius: 28px;
  background: #0d1020 url('../assets/images/hero/hero-fallback.webp') center/cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.video-caption-v4 {
  width: min(440px, calc(100% - 2rem));
  margin: -1.1rem auto 0;
  padding: .92rem 1rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,248,232,.96), rgba(236,215,174,.94));
  color: var(--navy);
  box-shadow: 0 20px 44px rgba(0,0,0,.24);
  text-align: center;
  border: 1px solid rgba(200,164,106,.35);
}
.video-caption-v4 span { display:block; color:#8a5b22; font-weight: 950; letter-spacing:.08em; text-transform:uppercase; font-size:.72rem; }
.video-caption-v4 strong { display:block; margin-top:.25rem; font-size:1.08rem; }
.home-route-v4,
.mode-showroom-v4 { margin-top: 1.15rem; }
.route-product-card-v4,
.mode-icon-card-v4,
.studio-room-card-v4 {
  transform-style: preserve-3d;
}
.route-product-card-v4::after,
.mode-icon-card-v4::after,
.studio-room-card-v4::after,
.vocab-meaning-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.34), transparent 32%, rgba(255,255,255,.16) 54%, transparent 72%);
  pointer-events: none;
  opacity: .65;
}
.mode-icon-card-v4 img,
.studio-room-card-v4 img {
  object-fit: contain;
  background: radial-gradient(circle at 40% 20%, rgba(255,255,255,.82), rgba(255,248,232,.72) 45%, rgba(200,164,106,.24));
}
.training-studio-v4 { padding-bottom: 2rem; }
.study-studio-v4 .studio-hero-v4 {
  background:
    linear-gradient(90deg, rgba(10,13,30,.9), rgba(24,38,74,.76)),
    url('../assets/images/hero/hero-fallback.webp') center/cover no-repeat;
}
.study-studio-v4 .studio-hero-v4 h1 { font-size: clamp(4.8rem, 11vw, 9.6rem); }
.grammar-two-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 1rem;
  margin-top: 1rem;
}
.grammar-focus-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(200,164,106,.38);
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,248,232,.66)),
    radial-gradient(circle at top right, rgba(200,164,106,.18), transparent 14rem);
  color: var(--navy);
  box-shadow: 0 20px 42px rgba(55,34,14,.16), inset 0 0 0 1px rgba(255,255,255,.52);
  padding: 1rem;
}
.passive-focus-card {
  display: grid;
  grid-template-columns: minmax(260px, .86fr) minmax(360px, 1.14fr);
  gap: 1rem;
  align-items: center;
}
.usedto-focus-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(0,0,0,.18);
  margin-bottom: 1rem;
}
.grammar-card-copy h3,
.vocab-chapter-head h3 { color: var(--navy); font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: .86; margin:.55rem 0 .35rem; }
.rule-formula {
  display: inline-flex;
  padding: .5rem .72rem;
  border-radius: 999px;
  background: rgba(24,38,74,.08);
  color: var(--navy);
  font-weight: 950;
  margin: .3rem 0 .45rem;
}
.study-studio-v4 .studio-video-frame-v4 { min-height: 310px; }
.vocab-chapter {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(24,38,74,.06), rgba(255,255,255,.34));
  border: 1px solid rgba(24,38,74,.08);
}
.vocab-chapter-head p { margin:.3rem 0 .9rem; color:#56544c; font-weight:700; line-height:1.55; }
.vocab-meaning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: .85rem;
}
.vocab-meaning-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(200,164,106,.38);
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.95), transparent 8rem),
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,248,232,.66));
  box-shadow: 0 17px 34px rgba(55,34,14,.14), inset 0 0 0 1px rgba(255,255,255,.58);
  color: var(--navy);
}
.vocab-meaning-card[hidden] { display:none; }
.meaning-card-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.meaning-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: radial-gradient(circle at 32% 22%, #fff7dd, #e2c684 47%, #9d6b2d);
  box-shadow: 0 14px 24px rgba(72,45,14,.23), inset 0 0 0 2px rgba(255,255,255,.45);
  font-size: 1.65rem;
}
.vocab-meaning-card h4 {
  margin: .75rem 0 .15rem;
  color: var(--navy);
  font-size: clamp(1.9rem, 3.7vw, 2.8rem);
  line-height: .86;
}
.word-type {
  display:inline-flex;
  margin:.15rem 0 .3rem;
  padding:.22rem .52rem;
  border-radius:999px;
  background: rgba(217,130,115,.16);
  color:#804139 !important;
  font-size:.78rem;
  font-weight:950 !important;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.meaning-line { position:relative; padding-left: 1.1rem; }
.mini-meaning-icon { position:absolute; left:0; color:#9c6b26; }
.vocab-meaning-card p { color:#44433d; font-weight:650; line-height:1.52; margin:.45rem 0; }
.vocab-meaning-card .listen-chip { position:relative; z-index:2; margin-top:.35rem; }
.expression-grid-v4 { margin-top:1rem; }
.review-layout-v4 { margin-top:1rem; }
.speaking-practice-panel-v4,
.mini-check-panel-v4 { margin-top:1rem; }

@media (max-width: 1080px) {
  .hero-ad-v4,
  .grammar-two-grid,
  .passive-focus-card { grid-template-columns: 1fr; }
  .hero-video-v4 { min-height: 360px; }
}
@media (max-width: 700px) {
  .home-v4-shell { width: min(100% - 1rem, 1280px); }
  .hero-ad-v4 { border-radius: 28px; padding:.75rem; min-height: auto; }
  .hero-ad-copy-v4 { padding:1.1rem; }
  .hero-ad-copy-v4 h1 { font-size: clamp(4.2rem, 18vw, 6.4rem); }
  .hero-video-v4 { min-height: 260px; }
  .video-caption-v4 { margin-top:.65rem; }
  .grammar-focus-card { padding:.85rem; }
  .study-studio-v4 .studio-video-frame-v4 { min-height: 220px; }
  .vocab-meaning-grid { grid-template-columns: 1fr; }
}

/* === Study/Home rebuild: premium ad-style layer === */
:root {
  --ad-head: "Bebas Neue", "Archivo Black", Impact, sans-serif;
  --ad-block: "Archivo Black", Inter, Arial, sans-serif;
}

.ad-home-page,
.ad-study-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(226, 198, 132, .23), transparent 26rem),
    radial-gradient(circle at 82% 14%, rgba(85, 116, 138, .24), transparent 28rem),
    radial-gradient(circle at 75% 80%, rgba(217, 130, 115, .14), transparent 27rem),
    linear-gradient(135deg, #20130b 0%, #0f1834 42%, #2a1a12 100%);
  color: var(--ivory-2);
}

.ad-home-page::after,
.ad-study-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .26;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.12) 0 1px, transparent 2px) 0 0 / 58px 58px,
    radial-gradient(circle at 70% 55%, rgba(226,198,132,.16) 0 1px, transparent 2px) 0 0 / 90px 90px;
  animation: adDust 18s linear infinite;
}

@keyframes adDust {
  from { transform: translateY(0); }
  to { transform: translateY(-32px); }
}

.ad-home-shell,
.study-hub-shell,
.study-detail-shell {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
}

.ad-home-shell { padding: 18px 0 28px; }
.study-hub-shell,
.study-detail-shell { padding: 26px 0 34px; }

.ad-hero {
  min-height: min(700px, calc(100vh - 88px));
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(440px, 1.15fr);
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: center;
  border-radius: 36px;
  padding: clamp(1.4rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 198, 132, .35);
  box-shadow: 0 42px 105px rgba(0,0,0,.44);
  background:
    linear-gradient(105deg, rgba(15,24,52,.96) 0%, rgba(24,38,74,.86) 48%, rgba(61,36,21,.88) 100%);
}

.ad-hero::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 40deg, transparent, rgba(226,198,132,.18), transparent, rgba(217,130,115,.10), transparent);
  animation: adGlow 14s linear infinite;
  opacity: .75;
}

@keyframes adGlow { to { transform: rotate(360deg); } }

.ad-copy-panel,
.ad-video-side,
.ad-mode-strip,
.study-ad-title,
.study-room-card,
.checkpoint-strip,
.detail-hero,
.rule-panel,
.video-panel,
.vocab-set,
.expression-bank,
.review-structure-card,
.phrase-bank,
.quiz-panel,
.memory-box {
  position: relative;
  z-index: 1;
}

.ad-copy-panel {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.1rem);
  border-radius: 34px;
  background: linear-gradient(150deg, rgba(14,23,50,.88), rgba(24,38,74,.62));
  border: 1px solid rgba(255,248,232,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 24px 70px rgba(0,0,0,.28);
}

.ad-eyebrow {
  margin: 0 0 .45rem;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 900;
  font-size: .78rem;
}

.ad-eyebrow.small { font-size: .68rem; }

.ad-copy-panel h1,
.study-ad-title h1,
.detail-hero h1 {
  font-family: var(--ad-head);
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: .82;
}

.ad-copy-panel h1 {
  color: #fff7df;
  font-size: clamp(5.5rem, 13.5vw, 10.4rem);
  text-shadow: 0 10px 44px rgba(0,0,0,.32);
}

.ad-subtitle {
  margin: 1.5rem 0 .8rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: #f6d88f;
  font-weight: 700;
}

.ad-pill {
  width: fit-content;
  margin: 0 0 1.25rem;
  padding: .55rem .92rem;
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255,248,232,.94);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,.16);
}

.ad-promise {
  margin: 0 0 1.6rem;
  color: rgba(255,248,232,.95);
  font-weight: 900;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: .01em;
}

.ad-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.ad-btn { min-width: 170px; min-height: 50px; font-size: 1rem; }

.ad-video-side { display: grid; justify-items: center; align-content: center; }

.hero-youtube-card {
  width: min(650px, 100%);
  aspect-ratio: 16 / 9;
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 12px solid rgba(255, 240, 199, .93);
  background: #0c1224;
  box-shadow: 0 24px 70px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.24);
  transform: perspective(1200px) rotateY(-2deg);
  transition: transform .3s ease, box-shadow .3s ease;
}

.hero-youtube-card:hover,
.hero-youtube-card:focus-visible {
  transform: perspective(1200px) rotateY(0deg) translateY(-4px);
  box-shadow: 0 32px 86px rgba(0,0,0,.48), 0 0 38px rgba(226,198,132,.22);
}

.hero-youtube-card iframe,
.hero-youtube-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-youtube-card iframe {
  z-index: 2;
  border: 0;
  pointer-events: none;
}

.hero-youtube-card img { z-index: 1; }

.ad-video-label {
  margin-top: -12px;
  padding: .9rem 2.5rem;
  min-width: min(440px, 78%);
  text-align: center;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(135deg, rgba(255,248,232,.96), rgba(226,198,132,.78));
  color: var(--navy);
  box-shadow: 0 16px 34px rgba(0,0,0,.25);
  font-family: var(--ad-block);
  text-transform: uppercase;
  letter-spacing: .07em;
}

.ad-mode-strip {
  margin: 24px auto 0;
  padding: 1.1rem;
  border: 1px solid rgba(226,198,132,.24);
  background: rgba(14,23,50,.55);
  border-radius: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.ad-section-head h2,
.checkpoint-copy h2 {
  font-family: var(--ad-block);
  text-transform: uppercase;
  color: var(--ivory-2);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.mode-icon-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.mode-orb {
  width: 150px;
  display: grid;
  justify-items: center;
  gap: .45rem;
  text-decoration: none;
  color: var(--ivory-2);
  font-weight: 900;
  text-align: center;
  transition: transform .24s ease, filter .24s ease;
}
.mode-orb:hover { transform: translateY(-5px); filter: drop-shadow(0 0 18px rgba(226,198,132,.32)); }
.mode-orb img { width: 96px; height: 96px; object-fit: cover; border-radius: 28px; border: 2px solid rgba(226,198,132,.35); }
.mode-orb span { font-size: .9rem; }

.ad-topbar {
  position: relative;
  z-index: 3;
  border-color: rgba(226,198,132,.24);
  background: rgba(9,14,30,.64);
  backdrop-filter: blur(12px);
}

.study-ad-title {
  text-align: center;
  padding: 2.2rem 1rem 1.2rem;
}
.study-ad-title h1 {
  font-size: clamp(4.6rem, 10vw, 8rem);
  color: #fff7df;
  text-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.study-ad-title p:last-child {
  color: rgba(255,248,232,.84);
  font-weight: 800;
  margin: .65rem 0 0;
}

.study-room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  margin: 1.2rem 0 1.5rem;
}

.study-room-card {
  min-height: 340px;
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,248,232,.42);
  background:
    radial-gradient(circle at 50% 20%, rgba(255,248,232,.55), transparent 10rem),
    linear-gradient(150deg, rgba(255,248,232,.96), rgba(198,184,156,.86));
  color: var(--navy);
  box-shadow: 0 24px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.8);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease;
}
.study-room-card::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform: translateX(-45%) rotate(10deg);
  transition: transform .7s ease;
}
.study-room-card:hover,
.study-room-card:focus-visible {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 34px 80px rgba(0,0,0,.36), 0 0 34px rgba(226,198,132,.22);
}
.study-room-card:hover::before { transform: translateX(50%) rotate(10deg); }

.room-img {
  height: 218px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff9eb, #d9caa9);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65), 0 18px 32px rgba(0,0,0,.16);
}
.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: iconFloat 4.8s ease-in-out infinite;
}
.study-room-card:nth-child(2) .room-img img { animation-delay: .45s; }
.study-room-card:nth-child(3) .room-img img { animation-delay: .9s; }
.study-room-card:nth-child(4) .room-img img { animation-delay: 1.35s; }
@keyframes iconFloat { 0%,100% { transform: scale(1.04) translateY(0); } 50% { transform: scale(1.075) translateY(-6px); } }

.study-room-card strong {
  margin-top: 18px;
  font-family: var(--ad-head);
  text-transform: uppercase;
  font-size: clamp(3rem, 5vw, 4.3rem);
  line-height: .82;
  letter-spacing: -.02em;
  color: var(--navy);
}

.checkpoint-strip {
  margin: 1.5rem auto 0;
  padding: 1.1rem;
  width: min(900px, 100%);
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(226,198,132,.34);
  background: linear-gradient(135deg, rgba(15,24,52,.86), rgba(62,39,23,.72));
  box-shadow: 0 22px 58px rgba(0,0,0,.25);
}

.mini-check-card {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: .7rem;
  align-items: center;
  color: var(--navy);
  background: linear-gradient(135deg, #fff8e8, #e2c684);
  border-radius: 999px;
  padding: .55rem .95rem .55rem .55rem;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(0,0,0,.25);
}

.mini-check-icon {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f1834, #22345e);
  border: 1px solid rgba(226,198,132,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.25);
}
.check-board {
  position: relative;
  width: 38px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8e8, #e7d5ad);
  box-shadow: inset 0 0 0 2px rgba(200,164,106,.4);
}
.check-board::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 11px;
  width: 16px;
  height: 8px;
  border-radius: 8px;
  background: var(--gold-2);
}
.check-board i {
  position: absolute;
  left: 9px;
  width: 20px;
  height: 10px;
  border-left: 4px solid var(--coral);
  border-bottom: 4px solid var(--coral);
  transform: rotate(-45deg) scale(.8);
  opacity: 0;
  animation: tickPop 2.4s ease-in-out infinite;
}
.check-board i:nth-child(1) { top: 10px; }
.check-board i:nth-child(2) { top: 21px; animation-delay: .35s; }
.check-board i:nth-child(3) { top: 32px; animation-delay: .7s; }
@keyframes tickPop { 0%, 15% { opacity: 0; transform: rotate(-45deg) scale(.4); } 30%, 75% { opacity: 1; transform: rotate(-45deg) scale(.8); } 100% { opacity: 0; } }

.detail-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(226,198,132,.38);
  background:
    radial-gradient(circle at 20% 20%, rgba(226,198,132,.28), transparent 18rem),
    linear-gradient(135deg, rgba(15,24,52,.92), rgba(52,31,18,.86));
  box-shadow: 0 26px 72px rgba(0,0,0,.35);
}
.detail-hero h1 {
  font-size: clamp(4rem, 8vw, 7rem);
  color: #fff7df;
}
.detail-hero p:last-child { color: rgba(255,248,232,.88); font-weight: 900; }
.detail-hero-icon {
  width: clamp(150px, 23vw, 240px);
  border-radius: 32px;
  box-shadow: 0 22px 54px rgba(0,0,0,.34);
  animation: iconFloat 5.2s ease-in-out infinite;
}

.grammar-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  gap: 1rem;
}
.rule-panel,
.video-panel,
.vocab-set,
.expression-bank,
.review-structure-card,
.phrase-bank,
.quiz-panel,
.memory-box {
  border-radius: 30px;
  border: 1px solid rgba(226,198,132,.32);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.7), transparent 18rem),
    linear-gradient(145deg, rgba(255,248,232,.97), rgba(236,219,184,.93));
  color: var(--ink);
  box-shadow: 0 22px 58px rgba(0,0,0,.22);
}
.rule-panel,
.video-panel,
.vocab-set,
.expression-bank,
.review-structure-card,
.phrase-bank,
.quiz-panel { padding: clamp(1rem, 2.3vw, 1.7rem); }

.panel-head h2,
.video-panel h2,
.vocab-set-head h2,
.expression-bank h2,
.review-structure-card h2,
.phrase-bank h2,
.quiz-head h2 {
  font-family: var(--ad-head);
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(3rem, 6vw, 4.7rem);
  line-height: .83;
}
.room-number {
  width: fit-content;
  display: inline-block;
  margin-bottom: .55rem;
  padding: .32rem .7rem;
  border-radius: 999px;
  color: #8d6430;
  background: rgba(200,164,106,.22);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .74rem;
}
.formula-grid,
.used-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1rem;
}
.formula-card,
.used-rule-card {
  border-radius: 22px;
  padding: 1rem;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(200,164,106,.25);
}
.formula-label { display:block; color: #9b6c2c; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .5rem; }
.formula-line { font-weight: 900; line-height: 1.65; }
.chip { padding: .24rem .5rem; border-radius: 999px; display: inline-block; margin: .1rem; }
.object-chip, .object-text { background: rgba(24,38,74,.12); color: var(--navy); }
.be-chip, .be-text { background: rgba(200,164,106,.34); color: #6a4618; }
.participle-chip, .participle-text { background: rgba(217,130,115,.22); color: #813e33; }
.object-text, .be-text, .participle-text { padding: .12rem .35rem; border-radius: .5rem; font-weight: 900; }
.example-line { font-size: 1.02rem; line-height: 1.7; margin-bottom: 0; }
.memory-box { margin-top: 1rem; padding: 1rem 1.15rem; background: linear-gradient(135deg, rgba(24,38,74,.96), rgba(42,26,18,.92)); color: var(--ivory-2); }
.memory-box p { margin: .3rem 0 0; color: rgba(255,248,232,.88); font-weight: 750; }
.color-key { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .7rem; color: #4b4a45; font-weight: 900; }
.color-key span { display: inline-flex; align-items: center; gap: .35rem; }
.color-key b { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.key-object { background: var(--navy); } .key-be { background: var(--gold); } .key-participle { background: var(--coral); }
.video-panel .video-frame { margin-top: .8rem; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; background:#111; }
.video-panel iframe { width: 100%; height: 100%; border: 0; }
.video-fallback-link { margin-top: .8rem; width: 100%; }
.two-col-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.small-rule-img { width: 150px; height: 110px; object-fit: cover; border-radius: 24px; }
.used-panel { margin-top: 1rem; }
.used-highlight { background: rgba(200,164,106,.32); color: #6a4618; padding: .12rem .35rem; border-radius: .5rem; font-weight: 900; }
.base-highlight { background: rgba(217,130,115,.22); color: #813e33; padding: .12rem .35rem; border-radius: .5rem; font-weight: 900; }

.vocab-set { margin-top: 1.1rem; }
.produce-set { background: linear-gradient(145deg, rgba(255,248,232,.98), rgba(230,213,176,.94)), radial-gradient(circle at top left, rgba(24,38,74,.16), transparent 18rem); }
.advertise-set { background: linear-gradient(145deg, rgba(255,248,232,.98), rgba(239,212,199,.95)); }
.design-set { background: linear-gradient(145deg, rgba(255,248,232,.98), rgba(211,224,226,.93)); }
.stuff-set { background: linear-gradient(145deg, rgba(255,248,232,.98), rgba(215,228,205,.93)); }
.vocab-set-head { display:flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.vocab-set-head h2 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.compact-vocab-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: .9rem;
}
.two-card-grid { grid-template-columns: repeat(2, minmax(220px, 360px)); }
.word-card {
  min-height: 295px;
  padding: 1rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fffdf6, #f2e4c5);
  color: var(--ink);
  border: 1px solid rgba(200,164,106,.26);
  box-shadow: 0 14px 34px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.78);
  transition: transform .25s ease, box-shadow .25s ease;
}
.word-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px rgba(0,0,0,.20), 0 0 20px rgba(226,198,132,.15); }
.word-card::before { content:""; position:absolute; right:-44px; top:-44px; width:110px; height:110px; border-radius:50%; opacity:.17; background: var(--gold); }
.word-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  font-size: 2.05rem;
  margin-bottom: .7rem;
  background: linear-gradient(145deg, #fff8e8, #e2c684);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 22px rgba(0,0,0,.13);
}
.word-card h3 {
  font-family: var(--ad-head);
  color: var(--navy);
  font-size: 2.5rem;
  line-height: .85;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.pron { margin: .6rem 0 .4rem; color:#936636; font-weight: 900; }
.def,
.ex { margin: .35rem 0; line-height: 1.42; color:#4b4a45; font-weight: 750; }
.listen-orb {
  margin-top: .7rem;
  border: 1px solid rgba(200,164,106,.45);
  border-radius: 999px;
  padding: .45rem .75rem;
  color: var(--navy);
  background: linear-gradient(135deg, #fff8e8, #ead6a8);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
}
.listen-orb:hover { transform: translateY(-1px); }
.slim-memory { max-width: 800px; }

.expression-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.1rem;
}
.expression-bank ul { list-style: none; padding: 0; margin: .85rem 0 0; display: grid; gap: .55rem; }
.expression-bank li,
.phrase-list p {
  margin: 0;
  padding: .72rem .8rem;
  border-radius: 18px;
  background: rgba(255,255,255,.56);
  font-weight: 850;
  color: #3d403d;
}
.expression-bank button,
.phrase-list button {
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-right: .35rem;
  background: var(--navy);
  color: var(--ivory-2);
  font-weight: 900;
  cursor: pointer;
}

.writing-layout {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 1rem;
}
.review-structure-card ol { margin: 1rem 0 0; padding-left: 1.2rem; display:grid; gap:.85rem; color:#3d403d; font-weight:800; line-height:1.5; }
.phrase-list { display: grid; gap: .7rem; margin-top: 1rem; }

.quiz-panel { margin-top: 1rem; }
.quiz-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.score-pill { padding:.55rem .85rem; border-radius:999px; background:var(--navy); color:var(--ivory-2); font-weight:900; }
.mini-quiz { display:grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: .9rem; margin-top: 1rem; }
.mini-question {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(200,164,106,.22);
}
.mini-question h3 { font-family: var(--font-body); font-size: 1rem; line-height:1.35; color:var(--navy); margin-bottom:.8rem; }
.mini-question button {
  width: 100%;
  display:block;
  text-align:left;
  margin:.45rem 0;
  padding:.7rem .85rem;
  border-radius:16px;
  border:1px solid rgba(24,38,74,.14);
  background:#fff9ed;
  color:#333;
  font-weight:800;
  cursor:pointer;
}
.mini-question button.is-correct { background: rgba(120,147,123,.25); border-color: rgba(120,147,123,.65); }
.mini-question button.is-wrong { background: rgba(217,130,115,.22); border-color: rgba(217,130,115,.65); }
.feedback { margin:.55rem 0 0; min-height:1.2rem; color:#6f4a22; font-weight:900; }
.hero-mini-icon { width: 150px; height: 150px; border-radius: 38px; }
.hero-mini-icon .check-board { transform: scale(2); }

.detail-nav { display:flex; justify-content:space-between; gap:.8rem; flex-wrap:wrap; margin-top:1.2rem; }
.clean-signature-footer {
  position: relative;
  z-index: 2;
  gap: .8rem;
  min-height: 72px;
  padding: .65rem 1rem 1rem;
  color: rgba(255,248,232,.88);
  background: rgba(12, 15, 29, .6);
  border-top: 1px solid rgba(226,198,132,.24);
}
.clean-signature-footer .footer-signature {
  width: clamp(120px, 17vw, 190px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(226,198,132,.22));
}
.clean-signature-footer span { font-size: .9rem; font-weight: 750; }

@media (max-width: 1050px) {
  .ad-hero { grid-template-columns: 1fr; }
  .ad-copy-panel { min-height: auto; }
  .study-room-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .grammar-layout,
  .writing-layout { grid-template-columns: 1fr; }
  .compact-vocab-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}

@media (max-width: 720px) {
  .ad-home-shell,
  .study-hub-shell,
  .study-detail-shell { width: min(100% - 22px, 1260px); }
  .ad-hero { padding: 1rem; border-radius: 26px; }
  .ad-copy-panel h1 { font-size: clamp(4rem, 24vw, 6.4rem); }
  .ad-video-label { min-width: 80%; padding: .75rem 1rem; }
  .ad-mode-strip { display: block; }
  .mode-icon-row { margin-top: .8rem; justify-content: center; }
  .study-room-grid,
  .formula-grid,
  .used-grid,
  .expression-grid,
  .mini-quiz,
  .compact-vocab-grid,
  .two-card-grid,
  .checkpoint-strip,
  .detail-hero { grid-template-columns: 1fr; }
  .study-room-card { min-height: 290px; }
  .room-img { height: 190px; }
  .study-room-card strong { font-size: 3.1rem; }
  .detail-hero-icon { width: 150px; justify-self:center; }
  .panel-head h2,
  .video-panel h2,
  .vocab-set-head h2,
  .expression-bank h2,
  .review-structure-card h2,
  .phrase-bank h2 { font-size: 3rem; }
  .clean-signature-footer { flex-direction: column; text-align:center; }
}

/* === Brand Builders V1.2 — Control Room + Full Board Repair === */
:root {
  --ad-title: "Bebas Neue", "Oswald", Impact, sans-serif;
  --ad-body: "Montserrat", "Inter", Arial, sans-serif;
  --ad-serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}
.control-room-page,
.full-board-page {
  font-family: var(--ad-body);
  background:
    radial-gradient(circle at 14% 8%, rgba(226,198,132,.26), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(217,130,115,.16), transparent 32%),
    linear-gradient(135deg, #111b36 0%, #18264a 48%, #2b160d 100%);
  color: var(--navy);
}
.control-room-shell {
  width: min(100% - 34px, 1320px);
  margin: 0 auto 1.5rem;
  display: grid;
  gap: 1rem;
}
.lux-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245,226,178,.44);
  background:
    linear-gradient(145deg, rgba(255,250,238,.96), rgba(235,219,187,.9)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.9), transparent 42%);
  box-shadow: 0 32px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.8);
  border-radius: 34px;
}
.lux-panel::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.34) 48%, transparent 58%);
  transform: translateX(-55%);
  animation: bbAdShimmer 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bbAdShimmer {
  0%, 55% { transform: translateX(-60%) rotate(6deg); opacity: 0; }
  66% { opacity: .55; }
  100% { transform: translateX(65%) rotate(6deg); opacity: 0; }
}
.control-hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2.2rem);
}
.control-hero h1,
.setup-panel h2,
.score-title-row h2,
.board-question-card h1 {
  font-family: var(--ad-title);
  letter-spacing: .025em;
  line-height: .88;
}
.control-hero h1 {
  margin: .15rem 0 .6rem;
  font-size: clamp(4.3rem, 12vw, 9.5rem);
  color: var(--navy);
  text-shadow: 0 2px 0 rgba(255,255,255,.4);
}
.control-subtitle {
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.45;
  font-weight: 850;
  color: #44443c;
}
.control-status-card {
  border-radius: 28px;
  padding: 1.15rem;
  background: linear-gradient(145deg, #18264a, #0e1830);
  color: var(--ivory-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 22px 44px rgba(24,38,74,.28);
}
.status-kicker,
.control-status-card small {
  display: block;
  color: rgba(255,248,232,.76);
  font-weight: 800;
}
.control-status-card strong {
  display: block;
  margin: .35rem 0;
  font-size: 1.25rem;
  color: #f7d98a;
}
.mode-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}
.mode-choice-card {
  position: relative;
  min-height: 310px;
  padding: .9rem;
  border: 1px solid rgba(245,226,178,.58);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,252,243,.94), rgba(225,210,180,.88));
  box-shadow: 0 26px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.88);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  color: var(--navy);
}
.mode-choice-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.mode-choice-card:hover,
.mode-choice-card:focus-visible,
.mode-choice-card.is-active {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 38px 86px rgba(0,0,0,.36), 0 0 0 4px rgba(226,198,132,.28);
  border-color: rgba(248,221,142,.9);
}
.mode-choice-card.is-active { background: linear-gradient(145deg, #fff8e8, #e1bc62); }
.mode-choice-card img {
  width: 100%;
  height: 218px;
  border-radius: 25px;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 14px 28px rgba(0,0,0,.14);
}
.mode-choice-card span {
  display: block;
  margin-top: .75rem;
  text-align: center;
  font-family: var(--ad-body);
  font-weight: 950;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: .05em;
}
.control-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 1rem;
  align-items: stretch;
}
.setup-panel { padding: 1.2rem; }
.panel-headline { position: relative; z-index: 1; }
.setup-panel h2 {
  margin: 0 0 .75rem;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--navy);
}
.control-fields { position: relative; z-index: 1; display: grid; gap: .8rem; }
.team-setup-fields { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: .8rem; }
.control-field { display: grid; gap: .35rem; font-weight: 950; color: #4b463c; }
.control-field span { letter-spacing: .04em; text-transform: uppercase; font-size: .85rem; }
.control-field select {
  width: 100%;
  border: 1px solid rgba(24,38,74,.15);
  border-radius: 20px;
  padding: .92rem 1rem;
  background: rgba(255,255,255,.74);
  color: var(--navy);
  font: 900 1rem var(--ad-body);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.team-preview-card {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 24px;
  background: rgba(24,38,74,.07);
}
.team-preview-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.team-preview-pill {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: .5rem .8rem;
  background: #18264a;
  color: #fff8e8;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(24,38,74,.18);
}
.team-preview-pill small { font-size: .65rem; color: rgba(255,248,232,.74); }
.clean-rule-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7rem;
}
.clean-rule-list li {
  padding: .8rem .9rem;
  border-radius: 20px;
  background: rgba(255,255,255,.58);
  color: #3f403c;
  font-weight: 800;
  line-height: 1.45;
}
.difficulty-strip,
.powerup-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.difficulty-strip span,
.powerup-grid span {
  border-radius: 999px;
  padding: .65rem .8rem;
  background: linear-gradient(145deg, rgba(24,38,74,.98), rgba(16,24,46,.98));
  color: #fff8e8;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(24,38,74,.18);
}
.difficulty-strip b { color: #f5d780; margin-right: .2rem; }
.power-panel { min-height: 220px; }
.launch-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.launch-dice {
  position: relative;
  z-index: 1;
  width: min(100%, 310px);
  height: 150px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.launch-panel p { position: relative; z-index: 1; max-width: 420px; font-weight: 800; color: #46423b; }
.big-launch {
  position: relative;
  z-index: 1;
  min-height: 58px;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.full-board-page { min-height: 100vh; overflow: hidden; }
.full-board-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 330px;
  grid-template-rows: auto 1fr;
  gap: .75rem;
  padding: .75rem;
}
.board-command-bar {
  grid-column: 1 / -1;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(226,198,132,.34);
  border-radius: 26px;
  padding: .65rem .85rem;
  background: linear-gradient(135deg, rgba(15,24,47,.92), rgba(24,38,74,.88));
  color: #fff8e8;
  box-shadow: 0 22px 52px rgba(0,0,0,.28);
}
.command-home,
.command-btn {
  border: 1px solid rgba(226,198,132,.32);
  border-radius: 999px;
  padding: .68rem .85rem;
  background: rgba(255,248,232,.08);
  color: #fff8e8;
  font: 900 .86rem var(--ad-body);
  text-decoration: none;
  cursor: pointer;
}
.command-btn:hover,
.command-home:hover { background: rgba(226,198,132,.2); }
.current-turn-block strong {
  display: block;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
  font-weight: 950;
  color: #f5d780;
}
.current-turn-block small { color: rgba(255,248,232,.78); font-weight: 800; }
.command-actions { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.full-board-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    url('../assets/images/game/board-walnut-room.webp') center/cover no-repeat,
    #2a170e;
  box-shadow: inset 0 0 0 1px rgba(226,198,132,.24), 0 32px 82px rgba(0,0,0,.36);
}
.full-board-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 45% 40%, rgba(255,248,232,.16), transparent 38%), linear-gradient(180deg, rgba(24,38,74,.13), rgba(0,0,0,.26));
  pointer-events: none;
}
.full-board-image {
  position: relative;
  z-index: 1;
  width: min(100%, calc((100vh - 104px) * 1.48));
  max-height: calc(100vh - 106px);
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 26px 36px rgba(0,0,0,.36));
  pointer-events: none;
  user-select: none;
}
.full-overlays,
.full-active-glow,
.full-pawns-layer,
.board-question-card {
  position: absolute;
  z-index: 3;
  width: min(100%, calc((100vh - 104px) * 1.48));
  aspect-ratio: 1532 / 1027;
  max-height: calc(100vh - 106px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.full-overlays { z-index: 4; }
.full-overlays .board-space { pointer-events: auto; }
.board-space {
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.board-space::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255,222,118,.48), rgba(217,130,115,.12) 54%, transparent 70%);
  box-shadow: 0 0 24px rgba(226,198,132,.45);
  opacity: 0;
  transition: opacity .2s ease;
}
.board-space:hover::after,
.board-space:focus-visible::after { opacity: .85; }
.full-active-glow {
  z-index: 2;
  pointer-events: none;
}
.full-active-glow::after,
.active-glow::after {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--size, 8%);
  height: var(--size, 8%);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,220,122,.7), rgba(217,130,115,.22) 50%, transparent 72%);
  filter: blur(1px);
  opacity: 0;
  animation: boardGlowPulse 1.6s ease-in-out infinite;
}
.full-active-glow.is-visible::after,
.active-glow.is-visible::after { opacity: 1; }
@keyframes boardGlowPulse { 0%,100% { transform: translate(-50%, -50%) scale(.88); } 50% { transform: translate(-50%, -50%) scale(1.15); } }
.full-pawns-layer { z-index: 5; pointer-events: none; }
.full-pawn {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(24px, 2.4vw, 42px);
  height: clamp(24px, 2.4vw, 42px);
  transform: translate(-50%, -50%);
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 35% 25%, #fff6d8, var(--pawn-color) 42%, #8a6322 100%);
  border: 2px solid rgba(255,248,232,.8);
  box-shadow: 0 10px 20px rgba(0,0,0,.33), inset 0 2px 6px rgba(255,255,255,.5);
  display: grid;
  place-items: center;
  color: #111b36;
  font: 950 .82rem var(--ad-body);
}
.full-pawn.is-active { animation: pawnActive 1.1s ease-in-out infinite; box-shadow: 0 0 0 5px rgba(245,215,128,.28), 0 16px 26px rgba(0,0,0,.38); }
@keyframes pawnActive { 0%,100% { transform: translate(-50%, -50%) translateY(0); } 50% { transform: translate(-50%, -50%) translateY(-5px); } }
.board-question-card {
  z-index: 6;
  width: min(42%, 520px);
  max-height: 58%;
  aspect-ratio: auto;
  left: 50%;
  top: 50%;
  padding: clamp(.85rem, 1.6vw, 1.25rem);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(226,198,132,.45);
  background: linear-gradient(145deg, rgba(255,250,238,.96), rgba(235,220,190,.94));
  box-shadow: 0 26px 58px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.82);
}
.board-question-card h1 {
  margin: .35rem 0 .35rem;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  color: var(--navy);
}
.board-question-card p {
  color: #3f403c;
  font-weight: 850;
  line-height: 1.38;
}
.board-answer-options { display: grid; gap: .45rem; margin-top: .75rem; }
.board-answer-options .answer-btn,
.answer-options .answer-btn {
  width: 100%;
  border: 1px solid rgba(24,38,74,.12);
  border-radius: 16px;
  padding: .65rem .8rem;
  background: rgba(255,255,255,.62);
  color: #1b2442;
  font: 900 .9rem var(--ad-body);
  text-align: left;
  cursor: pointer;
}
.answer-btn.correct { background: rgba(120,147,123,.28); border-color: rgba(120,147,123,.7); }
.answer-btn.wrong { background: rgba(217,130,115,.28); border-color: rgba(217,130,115,.7); }
.board-card-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; margin-top: .7rem; }
.board-feedback { min-height: 1.25rem; font-weight: 950; }
.board-feedback.good { color: #315f35; }
.board-feedback.bad { color: #9d3f30; }
.board-feedback.info { color: #6f4a22; }
.power-tools {
  margin-top: .7rem;
  padding: .75rem;
  border-radius: 18px;
  background: rgba(24,38,74,.08);
  display: grid;
  gap: .6rem;
}
.power-tools label { display: grid; gap: .35rem; font-weight: 900; }
.power-tools select { border-radius: 14px; border: 1px solid rgba(24,38,74,.14); padding: .55rem; font-weight: 850; }
.board-side-panel {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: .75rem;
  min-height: 0;
}
.golden-dice-panel,
.solo-deck-panel,
.score-panel-full {
  border: 1px solid rgba(226,198,132,.34);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,250,238,.95), rgba(225,209,180,.9));
  box-shadow: 0 22px 52px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.75);
  padding: .9rem;
}
.golden-dice-panel { text-align: center; }
.golden-dice-button {
  position: relative;
  width: 100%;
  height: 138px;
  border: 0;
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #2a170e;
  box-shadow: 0 18px 42px rgba(0,0,0,.28), inset 0 0 0 2px rgba(255,248,232,.4);
}
.golden-dice-button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dice-number {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff4ce, #c8a46a);
  color: #111b36;
  font: 950 1.45rem var(--ad-body);
  box-shadow: 0 10px 22px rgba(0,0,0,.24);
}
.golden-dice-button.rolling { animation: diceShake .72s ease-in-out; }
@keyframes diceShake { 0%,100%{ transform: rotate(0) scale(1); } 20%{ transform: rotate(-3deg) scale(1.02); } 45%{ transform: rotate(4deg) scale(1.04); } 70%{ transform: rotate(-2deg) scale(1.02); } }
.golden-dice-panel strong { display: block; margin-top: .6rem; color: var(--navy); font-weight: 950; }
.golden-dice-panel small { color: #7c5c25; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.solo-deck-panel { display: grid; gap: .55rem; }
.solo-deck-panel label { font-weight: 950; text-transform: uppercase; letter-spacing: .04em; }
.solo-deck-panel select {
  border: 1px solid rgba(24,38,74,.14);
  border-radius: 16px;
  padding: .7rem;
  font-weight: 850;
}
.solo-deck-panel p { margin: 0; font-weight: 950; color: #6f4a22; text-align: center; }
.score-panel-full { min-height: 0; overflow: auto; }
.score-title-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.score-title-row h2 { margin: 0; font-size: 3.6rem; color: var(--navy); }
.score-title-row span { border-radius: 999px; padding: .45rem .65rem; background: rgba(24,38,74,.08); color: #6f4a22; font-weight: 950; }
.score-board-full { display: grid; gap: .48rem; margin: .75rem 0; }
.full-team-score {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: .1rem .5rem;
  align-items: center;
  padding: .62rem;
  border-radius: 18px;
  background: rgba(255,255,255,.52);
  color: #1b2442;
}
.full-team-score .team-dot { grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,248,232,.9); }
.full-team-score strong { font-weight: 950; }
.full-team-score small { color: #7b7568; font-weight: 850; }
.full-team-score b { grid-row: 1 / 3; font-size: 1.25rem; }
.full-team-score.is-active { background: linear-gradient(145deg, #fff7df, #e7c775); box-shadow: 0 0 0 3px rgba(226,198,132,.22); }
.score-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.score-action-grid .full { grid-column: 1 / -1; }
.solo-mode .golden-dice-panel { opacity: .55; }
.solo-mode .score-action-grid,
.solo-mode #nextTeamBtn { display: none; }
.solo-mode .board-space { cursor: default; }
.hidden { display: none !important; }
@media (max-width: 1050px) {
  .control-hero,
  .control-grid { grid-template-columns: 1fr; }
  .mode-choice-grid { grid-template-columns: 1fr; }
  .mode-choice-card { min-height: 250px; }
  .mode-choice-card img { height: 170px; }
  .full-board-shell { grid-template-columns: 1fr; overflow: auto; height: auto; min-height: 100vh; }
  .board-command-bar { grid-template-columns: 1fr; }
  .command-actions { justify-content: flex-start; }
  .full-board-stage { min-height: 680px; }
  .board-side-panel { grid-template-columns: 1fr; }
  .board-question-card { width: min(88%, 520px); max-height: 48%; }
}
@media (max-width: 720px) {
  .control-room-shell { width: min(100% - 20px, 1320px); }
  .control-hero h1 { font-size: 4.4rem; }
  .team-setup-fields { grid-template-columns: 1fr; }
  .full-board-stage { min-height: 560px; border-radius: 24px; }
  .board-question-card { width: min(92%, 420px); padding: .85rem; }
  .board-question-card h1 { font-size: 2.4rem; }
  .board-card-actions { grid-template-columns: 1fr; }
}

/* === V5 review fixes: compact study pages, clearer buttons, better desktop/tablet/phone fit === */
.ad-study-page,
.ad-home-page {
  --font-head: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: Inter, Arial, sans-serif;
}

/* general compact reading hierarchy */
.ad-study-page .study-detail-shell,
.ad-study-page .study-hub-shell {
  width: min(1240px, calc(100% - 28px));
}
.ad-study-page .study-detail-shell {
  padding-top: clamp(.7rem, 1.8vw, 1.25rem);
  padding-bottom: 1rem;
}
.ad-study-page .topbar {
  padding-block: .48rem;
}
.ad-study-page .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
}
.ad-study-page .topnav a {
  padding: .48rem .68rem;
  font-size: .86rem;
}

/* Study hub: one-screen desktop, centered cards, no cropped icons */
.study-ad-title {
  padding: clamp(.7rem, 1.5vw, 1.05rem) 1rem .55rem;
}
.study-ad-title h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .86;
}
.study-ad-title p:last-child {
  margin-top: .35rem;
  white-space: nowrap;
}
.study-room-grid {
  gap: clamp(.7rem, 1.35vw, 1rem);
  margin: .75rem 0 .9rem;
}
.study-room-card {
  min-height: clamp(235px, 31vh, 285px);
  padding: clamp(.65rem, 1.25vw, .9rem);
  justify-content: start;
  gap: .55rem;
}
.room-img {
  width: 100%;
  height: clamp(150px, 21vh, 190px);
  border-radius: 22px;
  overflow: visible;
  background: linear-gradient(135deg, #fff9eb, #dfd1b2);
}
.room-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  animation: iconFloatSoft 5s ease-in-out infinite;
}
@keyframes iconFloatSoft {
  0%,100% { transform: translateY(0) scale(.98); }
  50% { transform: translateY(-5px) scale(1.01); }
}
.study-room-card strong {
  width: 100%;
  display: block;
  margin-top: .25rem;
  text-align: center;
  font-size: clamp(2.05rem, 3.4vw, 3rem);
  line-height: .88;
  letter-spacing: .01em;
}
.checkpoint-strip {
  width: min(100%, 900px);
  margin-top: .85rem;
  grid-template-columns: 1fr auto auto;
  padding: .82rem;
  gap: .75rem;
}
.checkpoint-copy h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  line-height: .95;
  white-space: nowrap;
}
.mini-check-card {
  padding: .45rem .85rem .45rem .45rem;
}
.mini-check-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
}
.start-game-btn .btn-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  margin-right: .45rem;
  background: var(--navy);
  color: var(--gold-2);
  font-size: .74rem;
}

/* shared detail pages */
.compact-detail-hero,
.detail-hero.compact-detail-hero {
  min-height: 110px;
  padding: clamp(.8rem, 2vw, 1.25rem);
  border-radius: 26px;
}
.compact-detail-hero h1,
.detail-hero.compact-detail-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  line-height: .86;
}
.compact-detail-hero p:last-child,
.detail-hero.compact-detail-hero p:last-child {
  margin: .2rem 0 0;
  font-size: .95rem;
  line-height: 1.35;
}
.compact-hero-icon,
.detail-hero.compact-detail-hero .detail-hero-icon {
  width: clamp(92px, 12vw, 130px);
  border-radius: 24px;
}
.panel-head h2,
.video-panel h2,
.vocab-set-head h2,
.expression-bank h2,
.review-structure-card h2,
.phrase-bank h2,
.quiz-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: .9;
}
.room-number {
  font-size: .64rem;
  padding: .25rem .55rem;
  margin-bottom: .3rem;
}
.memory-box {
  padding: .75rem .95rem;
  border-radius: 20px;
}
.memory-box p { margin: .15rem 0 0; }
.detail-nav {
  margin-top: .85rem;
  align-items: center;
}
.detail-nav .btn,
.back-study-btn {
  min-height: 42px;
  padding: .65rem .95rem;
}
.back-study-btn,
.detail-nav .btn-ghost {
  color: var(--navy-2) !important;
  background: linear-gradient(135deg, #f5d88f, var(--gold)) !important;
  border-color: rgba(245,216,143,.78) !important;
  box-shadow: 0 12px 24px rgba(60,36,8,.24), inset 0 1px 0 rgba(255,255,255,.55) !important;
  font-weight: 900;
}
.back-study-btn::before,
.detail-nav .btn-ghost::before {
  content: "";
  margin-right: 0;
}

/* Grammar page: one-line rules, less repetition, cleaner video */
.grammar-layout-v5 {
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, .68fr);
  gap: .85rem;
  margin-top: .85rem;
}
.passive-panel-v5,
.passive-video-panel-v5,
.used-panel-v5 {
  padding: clamp(.85rem, 1.6vw, 1.15rem);
}
.compact-panel-head {
  align-items: center;
}
.compact-panel-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
}
.one-line-rule {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .35rem;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  margin: .75rem 0 .8rem;
  padding: .55rem .7rem;
  border-radius: 999px;
  background: rgba(24,38,74,.06);
  color: var(--navy);
  font-weight: 950;
}
.chip,
.object-chip,
.be-chip,
.participle-chip,
.object-text,
.be-text,
.participle-text,
.used-highlight,
.base-highlight {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .16rem .42rem;
  line-height: 1.15;
}
.object-chip,
.object-text { background: rgba(24,38,74,.10); color: var(--navy); }
.be-chip,
.be-text { background: rgba(200,164,106,.28); color: #7a531f; }
.participle-chip,
.participle-text { background: rgba(217,130,115,.22); color: #834139; }
.used-highlight { background: rgba(200,164,106,.30); color: #6f4b1d; font-weight: 950; }
.base-highlight { background: rgba(217,130,115,.20); color: #7e4037; font-weight: 950; }
.formula-grid-v5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: .55rem;
}
.formula-grid-v5 .formula-card,
.used-grid-v5 .used-rule-card {
  padding: .78rem;
  border-radius: 18px;
}
.formula-label {
  font-size: .78rem;
}
.example-line,
.used-grid-v5 p {
  font-size: .98rem;
  line-height: 1.45;
}
.compact-memory-box {
  margin-top: .75rem;
}
.compact-color-key {
  margin-top: .6rem;
  gap: .75rem;
  font-size: .8rem;
}
.compact-video-box {
  margin-top: .55rem;
  border-radius: 20px;
}
.passive-video-panel-v5 .video-fallback-link {
  width: 100%;
  margin-top: .7rem;
}
.used-panel-v5 {
  margin-top: .85rem;
}
.used-small-img {
  width: 110px;
  height: 88px;
  object-fit: contain;
  border-radius: 18px;
}
.used-rule-line {
  max-width: 100%;
}
.used-grid-v5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

/* Vocabulary page: compact cards, better section titles, centered stuff/thing */
.vocab-page .detail-hero h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.9rem);
}
.vocab-set {
  margin-top: .85rem;
  padding: clamp(.85rem, 1.55vw, 1.1rem);
}
.vocab-set-head {
  margin-bottom: .55rem;
}
.vocab-set-head h2 {
  font-size: clamp(2.1rem, 4.1vw, 3.45rem);
}
.compact-vocab-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .7rem;
}
.word-card {
  min-height: 250px;
  padding: .82rem;
  border-radius: 22px;
}
.word-icon {
  width: 52px;
  height: 52px;
  font-size: 1.45rem;
  border-radius: 18px;
}
.word-card h3 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}
.pron, .def, .ex {
  font-size: .88rem;
  line-height: 1.36;
}
.listen-orb {
  padding: .38rem .65rem;
  font-size: .88rem;
  margin-top: .45rem;
}
.stuff-set .vocab-set-head {
  justify-content: center;
  text-align: center;
}
.stuff-set .two-card-grid {
  grid-template-columns: repeat(2, minmax(220px, 300px));
  justify-content: center;
}
.stuff-set .memory-box {
  width: min(620px, 100%);
  margin: .8rem auto 0;
}
.slim-memory {
  max-width: none;
}

/* Speaking page: 3x2 PC dashboard, icons, conversation card, smaller hierarchy */
.speaking-compact-page .detail-hero {
  grid-template-columns: 1fr auto;
}
.expression-grid-v5,
.expression-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: .75rem;
  margin-top: .85rem;
}
.expression-card-v5,
.expression-bank {
  padding: .78rem;
  border-radius: 22px;
}
.expression-card-v5 .bank-icon {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff8e8, #e2c684);
  color: var(--navy);
  font-weight: 950;
  box-shadow: 0 9px 18px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.82);
  margin-bottom: .45rem;
}
.expression-card-v5 h2,
.expression-bank h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: .9;
}
.expression-bank ul {
  margin-top: .55rem;
  gap: .38rem;
}
.expression-bank li,
.conversation-box p {
  padding: .48rem .58rem;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.3;
}
.expression-bank button {
  width: 24px;
  height: 24px;
  font-size: .65rem;
}
.conversation-box {
  display: grid;
  gap: .38rem;
  margin-top: .55rem;
}
.conversation-box p {
  margin: 0;
  background: rgba(255,255,255,.58);
  color: #3d403d;
  font-weight: 780;
}

/* Footer stays visible/compact on desktop */
.clean-signature-footer {
  min-height: 58px;
  padding: .45rem 1rem .65rem;
}
.clean-signature-footer .footer-signature {
  width: clamp(105px, 13vw, 155px);
}
.clean-signature-footer span {
  font-size: .78rem;
}

@media (min-width: 1100px) {
  .study-hub-page .study-hub-shell {
    min-height: calc(100vh - 108px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .speaking-page .study-detail-shell,
  .grammar-page .study-detail-shell {
    min-height: calc(100vh - 112px);
  }
}

@media (max-width: 1050px) {
  .study-room-grid,
  .expression-grid-v5,
  .expression-grid,
  .used-grid-v5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grammar-layout-v5 {
    grid-template-columns: 1fr;
  }
  .checkpoint-strip {
    grid-template-columns: 1fr auto;
  }
  .checkpoint-strip .start-game-btn {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .ad-study-page .study-detail-shell,
  .ad-study-page .study-hub-shell {
    width: min(100% - 18px, 1240px);
  }
  .study-ad-title p:last-child,
  .checkpoint-copy h2 {
    white-space: normal;
  }
  .study-room-grid,
  .expression-grid-v5,
  .expression-grid,
  .formula-grid-v5,
  .used-grid-v5,
  .stuff-set .two-card-grid,
  .checkpoint-strip {
    grid-template-columns: 1fr;
  }
  .study-room-card {
    min-height: 260px;
  }
  .room-img {
    height: 178px;
  }
  .study-room-card strong {
    font-size: 2.45rem;
  }
  .detail-hero,
  .speaking-compact-page .detail-hero {
    grid-template-columns: 1fr;
  }
  .detail-hero-icon,
  .compact-hero-icon {
    display: none;
  }
  .one-line-rule {
    white-space: nowrap;
    font-size: .9rem;
  }
  .compact-vocab-grid {
    grid-template-columns: 1fr;
  }
  .word-card {
    min-height: auto;
  }
  .checkpoint-strip .start-game-btn {
    grid-column: auto;
  }
}

/* === Writing page V5 — one-paragraph review rebuild === */
.writing-page-v5 .study-detail-shell {
  width: min(1280px, calc(100% - 28px));
  padding-top: 18px;
}
.writing-page-v5 .detail-hero {
  min-height: 160px;
  padding: clamp(.9rem, 2vw, 1.35rem);
  grid-template-columns: 1fr auto;
  border-radius: 28px;
}
.writing-page-v5 .detail-hero h1 {
  font-size: clamp(3rem, 6.2vw, 5.5rem);
  line-height: .86;
  margin: 0;
}
.writing-page-v5 .detail-hero p:last-child {
  max-width: 850px;
  margin: .45rem 0 0;
  font-size: clamp(.92rem, 1.6vw, 1.08rem);
  line-height: 1.35;
}
.writing-hero-icon-v5 {
  width: clamp(116px, 16vw, 170px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 26px;
}
.writing-dashboard-v5 {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.writing-rule-card-v5,
.model-review-card-v5,
.quick-phrase-card-v5,
.sentence-code-card-v5,
.your-turn-card-v5 {
  border-radius: 28px;
  border: 1px solid rgba(226,198,132,.32);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.72), transparent 16rem),
    linear-gradient(145deg, rgba(255,248,232,.98), rgba(234,216,181,.94));
  color: var(--ink);
  box-shadow: 0 22px 58px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.65);
  padding: clamp(.95rem, 2vw, 1.25rem);
}
.writing-card-head-v5 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .7rem;
}
.writing-card-head-v5 h2,
.quick-phrase-card-v5 h2,
.sentence-code-card-v5 h2,
.your-turn-card-v5 h2 {
  margin: 0;
  font-family: var(--ad-head);
  text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(2.05rem, 3.6vw, 3.4rem);
  line-height: .86;
}
.rule-lead-v5,
.rule-note-v5,
.your-turn-card-v5 p {
  margin: .35rem 0 .7rem;
  color: #46443d;
  font-weight: 800;
  line-height: 1.42;
}
.idea-tools-v5 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: .8rem 0;
}
.idea-tool-v5 {
  margin: 0;
  padding: .65rem;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(200,164,106,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  overflow: hidden;
}
.idea-tool-v5 img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(24,38,74,.16));
}
.idea-tool-v5 figcaption {
  margin-top: .45rem;
  color: #594f3f;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.35;
}
.ladder-tool-v5 img { animation: ladderSwayV5 4.5s ease-in-out infinite; transform-origin: 50% 95%; }
.wheel-tool-v5 img { animation: wheelTurnV5 12s ease-in-out infinite; }
@keyframes ladderSwayV5 {
  0%, 100% { transform: rotate(-1.2deg) translateX(0); }
  50% { transform: rotate(1.2deg) translateX(3px); }
}
@keyframes wheelTurnV5 {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.025); }
}
.review-steps-v5 {
  margin-top: .7rem;
  padding: .85rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(24,38,74,.08), rgba(200,164,106,.13));
  border: 1px solid rgba(24,38,74,.08);
}
.review-steps-v5 p { margin: .25rem 0; color: var(--navy); font-weight: 900; }
.review-steps-v5 ol {
  margin: .45rem 0 .4rem;
  padding-left: 1.2rem;
  display: grid;
  gap: .25rem;
  color: #414139;
  font-weight: 800;
  line-height: 1.32;
}
.color-key-v5 {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .35rem 0 .75rem;
}
.color-key-v5 span {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .26rem .5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: #46443d;
  font-size: .76rem;
  font-weight: 950;
}
.color-key-v5 i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.key-red-v5 { background: #d94a3a; }
.key-blue-v5 { background: #2f63c6; }
.key-green-v5 { background: #2e8b57; }
.key-black-v5 { background: #111; }
.model-paragraph-v5 {
  margin: 0;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(200,164,106,.26);
  color: #24231f;
  font-size: clamp(.98rem, 1.35vw, 1.08rem);
  line-height: 1.78;
  font-weight: 800;
}
.model-paragraph-v5 span { margin-right: .22rem; }
.model-paragraph-v5 u { text-underline-offset: .16em; text-decoration-thickness: .12em; }
.model-topic-v5 { color: #d94a3a; }
.model-reason-v5 { color: #2f63c6; }
.model-detail-v5 { color: #2e8b57; }
.model-weak-v5 { color: #111; }
.writing-support-row-v5 {
  display: grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: .85rem;
  margin-top: .85rem;
}
.quick-phrase-card-v5 p,
.sentence-code-card-v5 p,
.your-turn-card-v5 p {
  margin: .45rem 0;
  padding: .58rem .7rem;
  border-radius: 16px;
  background: rgba(255,255,255,.56);
  color: #3d403d;
  font-weight: 850;
  line-height: 1.35;
}
.quick-phrase-card-v5 button {
  border: 0;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  margin-right: .32rem;
  background: var(--navy);
  color: var(--ivory-2);
  font-weight: 900;
  cursor: pointer;
}
.detail-nav-v5 {
  margin-top: .95rem;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  flex-wrap: wrap;
}
.nav-pill-v5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .72rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: 0 14px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.54);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.nav-pill-v5:hover,
.nav-pill-v5:focus-visible {
  transform: translateY(-3px);
  filter: saturate(1.08);
  box-shadow: 0 18px 34px rgba(0,0,0,.28), 0 0 22px rgba(226,198,132,.2);
}
.back-pill-v5,
.next-pill-v5 {
  color: var(--navy-2);
  background: linear-gradient(135deg, #fff2bd, #c8a46a);
  border: 1px solid rgba(255,248,232,.64);
}
@media (min-width: 1120px) and (min-height: 760px) {
  .writing-page-v5 .study-detail-shell { padding-top: 14px; }
  .writing-page-v5 .detail-hero { min-height: 138px; }
  .idea-tool-v5 img { height: 132px; }
  .model-paragraph-v5 { line-height: 1.66; }
  .writing-support-row-v5 { margin-top: .75rem; }
}
@media (max-width: 1050px) {
  .writing-dashboard-v5,
  .writing-support-row-v5 { grid-template-columns: 1fr; }
  .writing-page-v5 .detail-hero { grid-template-columns: 1fr auto; }
}
@media (max-width: 720px) {
  .writing-page-v5 .detail-hero { grid-template-columns: 1fr; text-align: left; }
  .writing-hero-icon-v5 { justify-self: center; }
  .idea-tools-v5 { grid-template-columns: 1fr; }
  .idea-tool-v5 img { height: 170px; }
  .detail-nav-v5 { justify-content: stretch; }
  .nav-pill-v5 { width: 100%; }
}

/* === Study hub V6 repair: labels restored, centered, compact one-screen layout === */
body.study-hub-v6 {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}
.study-hub-v6 .study-v6-topbar {
  min-height: 48px;
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.study-hub-v6 .study-v6-shell {
  width: min(1280px, calc(100% - 24px));
  padding: .55rem 0 .7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.study-hub-v6 .study-v6-title {
  margin: 0;
  padding: .2rem 1rem .45rem;
}
.study-hub-v6 .study-v6-title .ad-eyebrow {
  margin-bottom: .1rem;
}
.study-hub-v6 .study-v6-title h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.65rem);
  line-height: .82;
  margin: 0;
}
.study-hub-v6 .study-v6-title p:last-child {
  margin-top: .32rem;
  white-space: nowrap;
  font-size: clamp(.92rem, 1.3vw, 1rem);
  letter-spacing: .01em;
}
.study-hub-v6 .study-v6-room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.25vw, 1.05rem);
  margin: .45rem 0 .65rem;
}
.study-hub-v6 .study-v6-room-card {
  min-height: clamp(230px, 33vh, 274px);
  max-height: 292px;
  padding: clamp(.6rem, 1vw, .82rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .28rem;
  overflow: hidden;
}
.study-hub-v6 .study-v6-room-img {
  width: 100%;
  height: clamp(158px, 23vh, 198px);
  border-radius: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9eb, #dfd1b2);
}
.study-hub-v6 .study-v6-room-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 42%;
  transform: translateY(-5px) scale(.98);
  animation: studyIconLiftV6 5.2s ease-in-out infinite;
}
.study-hub-v6 .study-v6-room-card:nth-child(2) .study-v6-room-img img { animation-delay: .35s; }
.study-hub-v6 .study-v6-room-card:nth-child(3) .study-v6-room-img img { animation-delay: .7s; }
.study-hub-v6 .study-v6-room-card:nth-child(4) .study-v6-room-img img { animation-delay: 1.05s; }
@keyframes studyIconLiftV6 {
  0%, 100% { transform: translateY(-5px) scale(.98); }
  50% { transform: translateY(-10px) scale(1.01); }
}
.study-hub-v6 .study-v6-room-card strong {
  width: 100%;
  margin: .1rem 0 0;
  display: block;
  text-align: center;
  font-family: var(--ad-head, "Bebas Neue", Impact, sans-serif);
  text-transform: uppercase;
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: .9;
  letter-spacing: .025em;
  color: var(--navy, #18264a);
  white-space: nowrap;
}
.study-hub-v6 .study-v6-checkpoint {
  width: min(920px, 100%);
  min-height: 76px;
  margin: .4rem auto 0;
  padding: .72rem .82rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .75rem;
}
.study-hub-v6 .study-v6-checkpoint-copy h2 {
  font-size: clamp(1.15rem, 2.05vw, 1.62rem);
  line-height: .95;
  white-space: nowrap;
  margin: 0;
  letter-spacing: .035em;
}
.study-hub-v6 .study-v6-action {
  height: 60px;
  min-width: 170px;
  padding: .38rem .78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  border-radius: 999px;
  border: 1px solid rgba(255,248,232,.38);
  background: linear-gradient(135deg, #fff3c8, #d8ad55);
  color: var(--navy, #18264a);
  text-decoration: none;
  font-weight: 950;
  box-shadow: 0 15px 32px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.58);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.study-hub-v6 .study-v6-action:hover,
.study-hub-v6 .study-v6-action:focus-visible {
  transform: translateY(-3px);
  filter: brightness(1.06);
  box-shadow: 0 20px 38px rgba(0,0,0,.32), 0 0 20px rgba(226,198,132,.26);
}
.study-hub-v6 .study-v6-action strong {
  line-height: 1;
  white-space: nowrap;
  font-size: .98rem;
}
.study-hub-v6 .study-v6-action-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0f1834, #22345e);
  color: var(--gold-2, #e2c684);
  border: 1px solid rgba(226,198,132,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px rgba(0,0,0,.24);
}
.study-hub-v6 .study-v6-action-icon .check-board {
  transform: scale(.82);
}
.study-hub-v6 .study-v6-action-icon.play-icon {
  border-radius: 50%;
  font-size: 1.05rem;
  padding-left: 2px;
}
.study-hub-v6 .study-v6-footer {
  min-height: 50px;
  padding: .28rem 1rem .4rem;
}
.study-hub-v6 .study-v6-footer .footer-signature {
  width: clamp(100px, 11vw, 140px);
}
.study-hub-v6 .study-v6-footer span {
  font-size: .74rem;
}
@media (min-width: 1100px) and (max-height: 760px) {
  .study-hub-v6 .study-v6-title h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); }
  .study-hub-v6 .study-v6-title p:last-child { margin-top: .22rem; }
  .study-hub-v6 .study-v6-room-card { min-height: 220px; }
  .study-hub-v6 .study-v6-room-img { height: 155px; }
  .study-hub-v6 .study-v6-room-card strong { font-size: clamp(1.6rem, 2.45vw, 2.18rem); }
  .study-hub-v6 .study-v6-checkpoint { min-height: 68px; padding: .55rem .7rem; }
  .study-hub-v6 .study-v6-action { height: 54px; min-width: 158px; }
  .study-hub-v6 .study-v6-action-icon { width: 43px; height: 43px; flex-basis: 43px; }
}
@media (max-width: 1050px) {
  .study-hub-v6 .study-v6-shell { justify-content: flex-start; }
  .study-hub-v6 .study-v6-room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-hub-v6 .study-v6-checkpoint { grid-template-columns: 1fr; justify-items: stretch; }
  .study-hub-v6 .study-v6-checkpoint-copy { text-align: center; }
  .study-hub-v6 .study-v6-action { width: min(100%, 360px); justify-self: center; }
}
@media (max-width: 720px) {
  body.study-hub-v6 { display: block; }
  .study-hub-v6 .study-v6-title p:last-child,
  .study-hub-v6 .study-v6-checkpoint-copy h2 { white-space: normal; }
  .study-hub-v6 .study-v6-room-grid { grid-template-columns: 1fr; }
  .study-hub-v6 .study-v6-room-card { min-height: 255px; }
  .study-hub-v6 .study-v6-room-img { height: 178px; }
  .study-hub-v6 .study-v6-room-card strong { font-size: 2.05rem; }
  .study-hub-v6 .study-v6-action { width: 100%; }
}
