:root {
  --night: #071613;
  --night-soft: #0b211c;
  --panel: #102a23;
  --panel-2: #15362d;
  --ink: #ecf8e8;
  --muted: #a3b9ad;
  --line: rgba(190, 231, 203, 0.16);
  --mint: #9cf1c2;
  --glow: #5ef4c7;
  --leaf: #84c66a;
  --gold: #e9b963;
  --rust: #bd7242;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(53, 128, 94, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 24%, rgba(86, 172, 143, 0.08), transparent 32rem),
    var(--night);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--night);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 241, 194, 0.4);
  border-radius: 50%;
  color: var(--glow);
  box-shadow: 0 0 24px rgba(94, 244, 199, 0.22);
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--mint);
}

main {
  display: block;
}

.hero {
  width: min(1320px, calc(100% - 48px));
  min-height: 740px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  padding: 46px 0 70px;
}

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 650px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-art::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  height: 18%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(94, 244, 199, 0.16);
  filter: blur(40px);
}

.hero-halo {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  border: 1px solid rgba(156, 241, 194, 0.15);
}

.halo-one {
  width: 72%;
  aspect-ratio: 1;
  box-shadow: inset 0 0 100px rgba(94, 244, 199, 0.06), 0 0 80px rgba(94, 244, 199, 0.04);
}

.halo-two {
  width: 88%;
  aspect-ratio: 1;
  border-color: rgba(233, 185, 99, 0.08);
}

#character-viewer {
  width: 100%;
  height: 650px;
  background: transparent;
  --poster-color: transparent;
}

.viewer-loading {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.viewer-loading img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}

.viewer-loading span {
  position: absolute;
  bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.noscript-model {
  width: 100%;
  height: 650px;
  object-fit: contain;
}

.viewer-controls {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 22, 19, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.viewer-button {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.viewer-button:hover,
.viewer-button:focus-visible {
  color: var(--ink);
}

.viewer-button.is-active {
  color: var(--night);
  background: var(--mint);
}

.viewer-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(163, 185, 173, 0.68);
  font-size: 0.72rem;
  white-space: nowrap;
}

.eyebrow {
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.handoff h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(4rem, 7.4vw, 7.4rem);
}

.hero-copy h1 span {
  display: block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.46em;
  font-style: italic;
  letter-spacing: -0.04em;
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: #d2e3d8;
  font-size: clamp(1.02rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--night);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--glow);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(156, 241, 194, 0.55);
}

.microcopy {
  max-width: 560px;
  margin: 20px 0 0;
  color: #728b7e;
  font-size: 0.76rem;
}

.stat-band {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-band div {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid var(--line);
}

.stat-band div:last-child {
  border-right: 0;
}

.stat-band strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
}

.stat-band span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 130px 0;
}

.section-heading {
  max-width: 780px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-heading h2,
.handoff h2 {
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
}

.section-heading > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.concept {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
}

.lore-card {
  align-self: end;
  position: relative;
  padding: 44px 42px 36px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(156, 241, 194, 0.08), transparent 48%),
    var(--panel);
  box-shadow: var(--shadow);
}

.lore-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(233, 185, 99, 0.08);
}

.lore-card p:not(.lore-mark) {
  margin: 0;
  color: #dceadf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-style: italic;
  line-height: 1.5;
}

.lore-mark {
  position: absolute;
  top: -20px;
  left: 22px;
  margin: 0;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  opacity: 0.5;
}

.lore-card span {
  display: block;
  margin-top: 24px;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ability-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.ability-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(11, 33, 28, 0.62);
}

.ability-card.featured {
  background: linear-gradient(160deg, rgba(94, 244, 199, 0.14), rgba(21, 54, 45, 0.78));
  border-color: rgba(94, 244, 199, 0.26);
}

.ability-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--leaf);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.ability-icon-light {
  background: var(--glow);
  box-shadow: 0 0 34px rgba(94, 244, 199, 0.28);
}

.ability-icon-road {
  background: var(--gold);
  font-size: 1.2rem;
}

.ability-type {
  margin: 32px 0 0;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ability-card h3,
.timeline h3 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.ability-card div > p:last-child,
.timeline p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.turntable {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1320px) / 2));
  background: var(--night-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}

.view-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050b09;
}

.view-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 350ms ease;
}

.view-grid figure:hover img {
  transform: scale(1.025);
}

.view-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 22, 19, 0.78);
  color: #c6d8cc;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.download-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.download-card:hover,
.download-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(156, 241, 194, 0.38);
  background: var(--panel-2);
}

.file-type {
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.download-name {
  grid-column: 1 / -1;
  margin-top: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
}

.download-meta {
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.download-arrow {
  grid-column: 2;
  grid-row: 1;
  color: var(--gold);
  font-size: 1.2rem;
}

.tech-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tech-strip div {
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.tech-strip div:first-child {
  padding-left: 0;
}

.tech-strip div:last-child {
  border-right: 0;
}

.tech-strip span,
.tech-strip strong {
  display: block;
}

.tech-strip span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-strip strong {
  margin-top: 7px;
  font-size: 0.84rem;
}

.process {
  border-top: 1px solid var(--line);
}

.timeline {
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline li > div {
  max-width: 780px;
}

.timeline-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

.timeline h3 {
  margin: 0;
  font-size: 1.6rem;
}

.timeline p {
  font-size: 0.96rem;
}

code {
  padding: 0.12em 0.35em;
  border-radius: 3px;
  background: rgba(156, 241, 194, 0.08);
  color: var(--mint);
  font-size: 0.86em;
}

.prompts {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(160deg, rgba(94, 244, 199, 0.07), transparent 36%),
    var(--night-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prompt-card {
  margin-top: 54px;
  border: 1px solid rgba(233, 185, 99, 0.22);
  background: rgba(7, 22, 19, 0.74);
  box-shadow: var(--shadow);
}

.prompt-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-meta span {
  color: var(--gold);
}

.prompt-card blockquote {
  margin: 0;
  padding: 42px clamp(24px, 6vw, 72px) 48px;
  color: #e1eee4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  line-height: 1.55;
}

.prompt-card blockquote p {
  margin: 0 0 1em;
}

.prompt-card blockquote p:last-child {
  margin-bottom: 0;
}

.handoff {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.handoff h2 {
  font-size: clamp(2.7rem, 5.2vw, 4.9rem);
}

.handoff-copy {
  padding-top: 24px;
  color: var(--muted);
}

.handoff-copy > p {
  margin-top: 0;
  color: #c7d9cd;
  font-size: 1.02rem;
}

.handoff-copy ul {
  margin: 24px 0 0;
  padding-left: 1.2em;
}

.handoff-copy li {
  margin: 9px 0;
  padding-left: 4px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 32px;
}

.source-links a {
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

footer {
  width: min(1320px, calc(100% - 48px));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: #748b7f;
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 28px;
  }

  .hero-art,
  #character-viewer,
  .noscript-model {
    min-height: 560px;
    height: 560px;
  }

  .concept,
  .handoff {
    gap: 42px;
  }

  .ability-card {
    padding: 24px;
  }

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

@media (max-width: 800px) {
  .site-header {
    width: min(100% - 32px, 1320px);
    min-height: 72px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    width: min(100% - 32px, 720px);
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .hero-copy {
    order: -1;
    padding-top: 52px;
  }

  .hero-copy h1 {
    font-size: clamp(3.65rem, 16vw, 6.3rem);
  }

  .hero-art,
  #character-viewer,
  .noscript-model {
    min-height: 570px;
    height: 570px;
  }

  .stat-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-band div:nth-child(2) {
    border-right: 0;
  }

  .stat-band div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    width: min(100% - 32px, 720px);
    padding: 92px 0;
  }

  .turntable,
  .prompts {
    width: 100%;
    padding-inline: 16px;
  }

  .concept,
  .handoff {
    grid-template-columns: 1fr;
  }

  .lore-card {
    margin-top: 18px;
  }

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

  .ability-card {
    min-height: auto;
  }

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

  .tech-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 0;
  }

  .tech-strip div:nth-child(2) {
    border-right: 0;
  }

  .tech-strip div:nth-child(3) {
    padding-left: 0;
  }

  footer {
    width: min(100% - 32px, 720px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px 0;
  }
}

@media (max-width: 560px) {
  .hero-art,
  #character-viewer,
  .noscript-model {
    min-height: 480px;
    height: 480px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .viewer-controls {
    bottom: 48px;
  }

  .stat-band div {
    min-height: 118px;
  }

  .stat-band span {
    font-size: 0.62rem;
  }

  .view-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .view-grid {
    gap: 14px;
  }

  .download-card {
    min-height: 170px;
  }

  .tech-strip {
    grid-template-columns: 1fr;
  }

  .tech-strip div,
  .tech-strip div:nth-child(3) {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tech-strip div:last-child {
    border-bottom: 0;
  }

  .timeline li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .prompt-card blockquote {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Tile-first iteration ------------------------------------------------- */

.hero-v2 {
  grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
}

.tile-stage {
  position: relative;
  min-width: 0;
  min-height: 650px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.tile-glow {
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  z-index: -2;
  border-radius: 50%;
  background: rgba(94, 244, 199, 0.12);
  filter: blur(45px);
}

.hero-tile {
  width: min(470px, 82%);
  overflow: hidden;
  transform: rotate(-1.5deg);
  border: 1px solid rgba(233, 185, 99, 0.38);
  border-radius: 28px 28px 16px 16px;
  background: #091712;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.58), 0 0 0 8px rgba(156, 241, 194, 0.035);
}

.tile-art-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.tile-art-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 65%, rgba(3, 12, 9, 0.78));
}

.tile-art-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-status,
.tile-role {
  position: absolute;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 22, 19, 0.76);
  color: #e9f5ec;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.tile-status {
  top: 16px;
  left: 16px;
  color: var(--gold);
}

.tile-role {
  right: 16px;
  bottom: 16px;
}

.tile-nameplate {
  display: grid;
  padding: 22px 26px 24px;
  border-top: 1px solid rgba(233, 185, 99, 0.24);
  background:
    radial-gradient(circle at 85% 20%, rgba(94, 244, 199, 0.12), transparent 45%),
    #0a1d18;
}

.tile-nameplate strong {
  color: #f4f3de;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tile-kicker,
.tile-affinity {
  color: var(--mint);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tile-kicker {
  margin-bottom: 6px;
}

.tile-affinity {
  margin-top: 9px;
  color: var(--muted);
}

.token-preview {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: rotate(4deg);
}

.token-crop {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #0a1b16;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), 0 0 26px rgba(94, 244, 199, 0.16);
}

.token-crop img {
  width: 96px;
  height: 96px;
}

.token-preview > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--night);
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fit-table {
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.fit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.fit-row > * {
  min-width: 0;
  padding: 25px 26px;
  border-right: 1px solid var(--line);
}

.fit-row > *:last-child {
  border-right: 0;
}

.fit-head {
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fit-row strong {
  display: block;
  color: #e6f2e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 500;
}

.fit-row p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.evidence-note {
  margin: 26px 0 0;
  padding-left: 18px;
  border-left: 2px solid rgba(233, 185, 99, 0.5);
  color: #81998c;
  font-size: 0.76rem;
}

.evidence-note span {
  color: var(--gold);
  font-weight: 800;
}

.evidence-note a {
  color: var(--mint);
  text-underline-offset: 3px;
}

.size-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: end;
  gap: 28px;
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(11, 33, 28, 0.58);
}

.size-check > div { align-self: center; }
.size-check strong { display: block; margin-top: 6px; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.size-check p { max-width: 560px; margin: 7px 0 0; color: var(--muted); font-size: 0.75rem; }
.size-check figure { margin: 0; text-align: center; }
.size-check img { margin: 0 auto; }
.size-check figcaption { margin-top: 7px; color: #7d9588; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; }

.mechanic {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 45%, rgba(94, 244, 199, 0.08), transparent 36rem),
    var(--night-soft);
}

.mechanic-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
  gap: 16px;
  margin-top: 58px;
}

.board-shell,
.rule-panel {
  border: 1px solid var(--line);
  background: rgba(7, 22, 19, 0.78);
  box-shadow: var(--shadow);
}

.board-topline {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-topline span:last-child {
  color: var(--gold);
}

.mechanic-board {
  position: relative;
  height: 440px;
  overflow: hidden;
  background:
    linear-gradient(rgba(156, 241, 194, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(156, 241, 194, 0.025) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(28, 81, 65, 0.58), #071611 68%);
  background-size: 44px 44px, 44px 44px, auto;
}

.board-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.board-paths path {
  fill: none;
  stroke: rgba(156, 241, 194, 0.14);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-paths .path-active {
  stroke: var(--glow);
  stroke-width: 4;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(94, 244, 199, 0.8));
  transition: opacity 300ms ease;
}

.step-0 .path-a,
.step-1 .path-a,
.step-2 .path-b,
.step-3 .path-b {
  opacity: 1;
}

.map-tile,
.map-node {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  transform: translate(-50%, -50%);
  transition: left 600ms cubic-bezier(.22,.8,.3,1), top 600ms cubic-bezier(.22,.8,.3,1), opacity 260ms ease, filter 260ms ease;
}

.map-tile {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(233, 185, 99, 0.78);
  border-radius: 50%;
  background: #122b24;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

.map-tile img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.map-tile b {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.map-tile > span,
.map-node > span {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(7, 22, 19, 0.9);
  color: #cadbd0;
  font-size: 0.58rem;
  font-weight: 800;
  white-space: nowrap;
}

.glimmerroot-token { left: 15%; top: 70%; }
.ally-token { left: 15%; top: 30%; border-color: #77b8ff; color: #a7d3ff; }
.enemy-token { left: 82.5%; top: 29.5%; border-color: #da7a68; color: #ff9f8c; }

.map-node {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(156, 241, 194, 0.4);
  border-radius: 50%;
  background: rgba(8, 28, 22, 0.88);
  color: var(--mint);
}

.map-node i {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
}

.map-node > img {
  width: 68px;
  height: 68px;
  max-width: none;
}

.beacon-node { left: 40%; top: 66%; }
.exit-node { left: 41.25%; top: 33%; }
.route-node { left: 85%; top: 65%; opacity: 0.42; }

.beacon-node {
  opacity: 0.3;
}

.step-0 .beacon-node {
  animation: node-pulse 1.4s ease-in-out infinite;
}

.step-1 .beacon-node,
.step-2 .beacon-node {
  opacity: 1;
  border-style: solid;
  color: #effff4;
  background: radial-gradient(circle, rgba(239, 255, 244, 0.95) 0 10%, rgba(94, 244, 199, 0.42) 18%, rgba(13, 60, 46, 0.94) 58%);
  box-shadow: 0 0 36px rgba(94, 244, 199, 0.5);
}

.step-3 .beacon-node {
  opacity: 0.08;
}

.step-2 .ally-token {
  left: 40%;
  top: 66%;
  filter: drop-shadow(0 0 16px rgba(94, 244, 199, 0.9));
}

.step-3 .ally-token {
  left: 41.25%;
  top: 33%;
  filter: drop-shadow(0 0 16px rgba(94, 244, 199, 0.7));
}

@keyframes node-pulse {
  50% { box-shadow: 0 0 0 14px rgba(94, 244, 199, 0.06); }
}

.mechanic-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.mechanic-step {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
}

.mechanic-step:last-child { border-right: 0; }
.mechanic-step span { color: var(--gold); font-family: Georgia, serif; }
.mechanic-step:hover,
.mechanic-step:focus-visible { color: var(--ink); background: rgba(156, 241, 194, 0.05); }
.mechanic-step.is-active { color: var(--night); background: var(--mint); }
.mechanic-step.is-active span { color: var(--night); }

.rule-panel {
  padding: 30px;
}

.rule-panel > .ability-type { margin-top: 0; }

.rule-panel h3 {
  margin: 7px 0 0;
  color: #edf6e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.mechanic-status {
  min-height: 70px;
  margin: 20px 0 0;
  padding: 16px;
  border: 1px solid rgba(94, 244, 199, 0.2);
  background: rgba(94, 244, 199, 0.06);
  color: #bdcfc3;
  font-size: 0.84rem;
}

.mechanic-status strong { color: var(--mint); }

.rule-list {
  margin: 18px 0 0;
}

.rule-list > div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rule-list dt {
  color: #789084;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rule-list dd {
  margin: 0;
  color: #d3e2d7;
  font-size: 0.77rem;
}

.tuning-note {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  color: #82998d;
  font-size: 0.72rem;
}

.tuning-note strong { color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }

.counterplay-button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid rgba(218, 122, 104, 0.42);
  border-radius: 4px;
  background: rgba(218, 122, 104, 0.08);
  color: #f0b0a4;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
}

.counterplay-button:hover,
.counterplay-button:focus-visible,
.counterplay-button[aria-pressed="true"] {
  background: rgba(218, 122, 104, 0.18);
  border-color: rgba(218, 122, 104, 0.7);
}

.is-counterplay .ally-token {
  left: 15%;
  top: 30%;
  filter: none;
}

.is-counterplay .enemy-token {
  left: 40%;
  top: 66%;
  filter: drop-shadow(0 0 18px rgba(218, 122, 104, 0.9));
}

.is-counterplay .beacon-node {
  opacity: 0.08;
}

.is-counterplay .path-active {
  opacity: 0;
}
.compact-abilities { margin-top: 16px; }
.compact-abilities .ability-card { min-height: 240px; }

.source-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1180px) / 2));
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 16px;
  margin-top: 58px;
}

.viewer-panel,
.pipeline-panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.viewer-panel #character-viewer,
.viewer-panel .noscript-model {
  width: 100%;
  height: 620px;
}

.pipeline-panel {
  padding: 30px;
}

.pipeline {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.pipeline li > span {
  color: var(--gold);
  font-family: Georgia, serif;
}

.pipeline strong { font-family: Georgia, serif; font-size: 1.02rem; font-weight: 500; }
.pipeline p { margin: 4px 0 0; color: var(--muted); font-size: 0.73rem; }

.compare-renders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.compare-renders figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050b09;
}

.compare-renders img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.compare-renders figcaption {
  position: absolute;
  left: 5px;
  bottom: 5px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(7, 22, 19, 0.82);
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-download {
  background: linear-gradient(145deg, rgba(94, 244, 199, 0.13), var(--panel));
  border-color: rgba(94, 244, 199, 0.28);
}

.prompt-card + .prompt-card {
  margin-top: 18px;
}

@media (max-width: 1040px) {
  .hero-v2 { grid-template-columns: minmax(350px, 0.85fr) minmax(0, 1.15fr); }
  .tile-stage { min-height: 560px; }
  .token-preview { right: -6px; }
  .mechanic-lab,
  .source-grid { grid-template-columns: 1fr; }
  .rule-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .rule-panel > .ability-type,
  .rule-panel h3,
  .rule-panel .mechanic-status { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-v2 .hero-copy { order: 0; padding-top: 18px; }
  .tile-stage { min-height: 620px; }
  .fit-row { grid-template-columns: 1fr; padding: 16px 0; }
  .fit-head { display: none; }
  .fit-row > * { padding: 12px 18px; border-right: 0; }
  .mechanic,
  .source-section { width: 100%; padding-inline: 16px; }
  .mechanic-board { height: 390px; }
  .map-tile { width: 66px; height: 66px; }
  .map-node { width: 56px; height: 56px; }
  .rule-panel { display: block; }
  .viewer-panel #character-viewer { height: 560px; }
  .size-check { grid-template-columns: 1fr auto auto auto; gap: 14px; padding: 20px; }
}

@media (max-width: 560px) {
  .tile-stage { min-height: 520px; }
  .hero-tile { width: 90%; }
  .token-preview { right: -4px; bottom: 8px; }
  .token-crop { width: 88px; height: 88px; }
  .token-crop img { width: 72px; height: 72px; }
  .mechanic-board { height: 330px; }
  .map-tile { width: 54px; height: 54px; border-width: 2px; }
  .map-node { width: 48px; height: 48px; }
  .map-tile > span,
  .map-node > span { display: none; }
  .mechanic-controls { grid-template-columns: repeat(2, 1fr); }
  .mechanic-step { border-bottom: 1px solid var(--line); }
  .mechanic-step:nth-child(2) { border-right: 0; }
  .compare-renders { grid-template-columns: 1fr 1fr 1fr; }
  .viewer-panel #character-viewer { height: 480px; }
  .size-check { grid-template-columns: repeat(3, 1fr); align-items: end; }
  .size-check > div { grid-column: 1 / -1; }
  .size-check img { width: min(100%, 96px); height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .map-tile,
  .map-node,
  .board-paths .path-active {
    transition: none !important;
  }

  .step-0 .beacon-node {
    animation: none !important;
  }
}

/* --- Playable hex-board iteration ---------------------------------------- */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.executive-points {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.executive-points > div {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.executive-points span {
  color: var(--mint);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.executive-points strong {
  color: #d8e7dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  font-weight: 500;
}

.executive-band strong {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
}

.playable-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 44%, rgba(94, 244, 199, 0.09), transparent 34rem),
    radial-gradient(circle at 84% 66%, rgba(233, 185, 99, 0.06), transparent 30rem),
    var(--night-soft);
}

.playable-heading {
  max-width: 900px;
}

.demo-frame {
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(156, 241, 194, 0.2);
  border-radius: 14px;
  background: rgba(5, 17, 13, 0.88);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.46);
}

.demo-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 22, 19, 0.94);
}

.scenario-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.scenario-tab,
.reset-demo {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.scenario-tab {
  padding: 0 16px;
}

.scenario-tab:hover,
.scenario-tab:focus-visible,
.reset-demo:hover,
.reset-demo:focus-visible {
  color: var(--ink);
  background: rgba(156, 241, 194, 0.07);
}

.scenario-tab.is-active {
  color: var(--night);
  background: var(--mint);
}

.reset-demo {
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.demo-director {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(156, 241, 194, 0.2);
  background: linear-gradient(90deg, rgba(94, 244, 199, 0.12), rgba(233, 185, 99, 0.06));
}

.director-step {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(156, 241, 194, 0.38);
  border-radius: 50%;
  background: #102c23;
}

.director-step small,
.director-copy > span,
.director-input {
  color: var(--mint);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.director-step strong { margin-top: 1px; color: #f1f6ef; font-size: 0.8rem; }
.director-copy { min-width: 0; display: grid; gap: 2px; }
.director-copy strong { color: #f1f6ef; font-size: clamp(0.92rem, 1.55vw, 1.18rem); }
.director-copy small { color: #91a79a; font-size: 0.67rem; }
.director-input {
  padding: 8px 10px;
  border: 1px solid rgba(156, 241, 194, 0.3);
  border-radius: 999px;
  background: rgba(94, 244, 199, 0.06);
  white-space: nowrap;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.65fr);
}

.hex-board-card {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.board-hud {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
}

.board-hud > div:first-child {
  display: grid;
}

.board-hud span,
.ability-tray > div > span,
.action-log > span {
  color: #789186;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.board-hud strong {
  margin-top: 2px;
  color: #dbe9dd;
  font-size: 0.8rem;
}

.turn-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(94, 244, 199, 0.24);
  border-radius: 999px;
  background: rgba(94, 244, 199, 0.08);
}

.turn-chip strong {
  margin: 0;
  color: var(--mint);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.turn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px rgba(94, 244, 199, 0.7);
}

.turn-chip.is-enemy {
  border-color: rgba(218, 122, 104, 0.36);
  background: rgba(218, 122, 104, 0.09);
}

.turn-chip.is-enemy strong { color: #ffad9d; }
.turn-chip.is-enemy .turn-dot { background: #dc7c69; box-shadow: 0 0 12px rgba(220, 124, 105, 0.72); }
.turn-chip.is-bonus { border-color: rgba(233, 185, 99, 0.38); background: rgba(233, 185, 99, 0.08); }
.turn-chip.is-bonus strong { color: var(--gold); }
.turn-chip.is-bonus .turn-dot { background: var(--gold); box-shadow: 0 0 12px rgba(233, 185, 99, 0.68); }
.turn-chip.is-resolved { border-color: var(--line); background: rgba(255, 255, 255, 0.035); }
.turn-chip.is-resolved strong { color: #b8cbbf; }
.turn-chip.is-resolved .turn-dot { background: #96aa9e; box-shadow: none; }
.turn-chip.is-denied strong { color: #eea393; }

.hex-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1.4;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 48%, rgba(80, 148, 111, 0.24), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(44, 103, 70, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(110, 139, 79, 0.13), transparent 42%),
    repeating-linear-gradient(118deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 16px),
    #081a15;
}

.hex-board::before,
.hex-board::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hex-board::before {
  inset: 4%;
  border-radius: 48% 52% 45% 55%;
  background: radial-gradient(ellipse, rgba(37, 89, 63, 0.38), rgba(5, 18, 13, 0.1) 65%);
  filter: blur(14px);
}

.hex-board::after {
  inset: 0;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.68);
}

.hex-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hex-cell {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.94);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(121, 151, 129, 0.24);
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.33));
  outline: none;
  transition: filter 180ms ease, background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.hex-face {
  position: absolute;
  inset: 5%;
  display: grid;
  place-items: center;
  clip-path: inherit;
  background:
    radial-gradient(circle at 42% 36%, rgba(95, 144, 101, 0.22), transparent 40%),
    linear-gradient(150deg, #183c2f, #0d291f 72%);
}

.hex-cell:nth-child(3n) .hex-face { background: linear-gradient(150deg, #1a4332, #0b271e 72%); }
.hex-cell:nth-child(4n) .hex-face { background: linear-gradient(150deg, #233f31, #10281f 72%); }

.hex-cell:focus-visible {
  background: #dfffe9;
  filter: drop-shadow(0 0 14px rgba(156, 241, 194, 0.74));
}

.demo-frame:not(.is-complete) .hex-cell:not(.is-relevant) { opacity: 0.34; }
.hex-cell.is-source { z-index: 4; background: rgba(156, 241, 194, 0.52); }

.hex-cell.is-legal {
  z-index: 3;
  background: var(--mint);
  filter: drop-shadow(0 0 18px rgba(94, 244, 199, 0.66));
  animation: legal-hex-pulse 1.25s ease-in-out infinite;
  cursor: pointer;
}

.hex-cell.is-legal .hex-face {
  background:
    radial-gradient(circle, rgba(94, 244, 199, 0.30), transparent 58%),
    linear-gradient(150deg, #1f5b45, #0e3227 72%);
}

.hex-cell.is-drop-hover {
  transform: translate(-50%, -50%) scale(0.99);
  background: #f3fff6;
  filter: drop-shadow(0 0 28px rgba(94, 244, 199, 0.9));
}

.hex-cell.is-drop-invalid {
  filter: drop-shadow(0 0 12px rgba(218, 122, 104, 0.58));
}

.hex-cell.is-player-route:not(.is-legal) {
  background: rgba(94, 244, 199, 0.6);
  filter: drop-shadow(0 0 10px rgba(94, 244, 199, 0.34));
}

.hex-cell.is-enemy-route:not(.is-legal) {
  background: rgba(218, 122, 104, 0.6);
  filter: drop-shadow(0 0 10px rgba(218, 122, 104, 0.34));
}

.hex-cell.is-blocked-route:not(.is-legal) {
  background: rgba(218, 122, 104, 0.42);
  filter: grayscale(0.65) drop-shadow(0 0 8px rgba(218, 122, 104, 0.22));
}

.hex-cell.is-blocked-route .hex-face::after {
  content: "×";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 165, 145, 0.7);
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  font-weight: 300;
}

@keyframes legal-hex-pulse {
  50% { filter: drop-shadow(0 0 28px rgba(94, 244, 199, 0.88)); }
}

.terrain-mark {
  position: relative;
  width: 44%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(198, 221, 207, 0.26);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 800;
}

.terrain-objective .hex-face {
  background: radial-gradient(circle, rgba(233, 185, 99, 0.26), transparent 55%), linear-gradient(150deg, #4d3c21, #282411 72%);
}

.terrain-objective .terrain-mark::before { content: "✦"; color: var(--gold); font-size: clamp(1rem, 3vw, 2rem); text-shadow: 0 0 18px rgba(233, 185, 99, 0.64); }
.terrain-rock .terrain-mark::before { content: "◆"; color: rgba(153, 170, 158, 0.32); font-size: clamp(1rem, 2vw, 1.6rem); }
.terrain-hazard .terrain-mark::before { content: "×"; color: rgba(189, 114, 66, 0.48); font-size: clamp(1rem, 2.8vw, 2rem); }
.terrain-tower .terrain-mark::before { content: "▥"; color: rgba(188, 211, 197, 0.34); font-size: clamp(1rem, 2.5vw, 1.8rem); }
.terrain-enemy-castle .terrain-mark::before { content: "♜"; color: rgba(218, 122, 104, 0.42); font-size: clamp(1.1rem, 3vw, 2.1rem); }

.route-number {
  position: absolute;
  left: 13%;
  top: 14%;
  z-index: 3;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #092019;
  background: var(--mint);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  font-size: 0.62rem;
  font-weight: 950;
}

.route-number:empty { display: none; }
.is-enemy-route .route-number { color: #2d0f0b; background: #f29a87; }

.target-cue {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 12;
  width: max-content;
  max-width: 86%;
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 999px;
  color: #062018;
  background: #bfffd4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.46), 0 0 18px rgba(94, 244, 199, 0.54);
  font-size: clamp(0.43rem, 0.72vw, 0.61rem);
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.target-cue:empty { display: none; }
.demo-frame[data-state="MOVE_ENEMY"] .target-cue { color: #2b100c; background: #ffae9d; box-shadow: 0 5px 15px rgba(0,0,0,0.46), 0 0 18px rgba(218,122,104,0.58); }

.board-corner-label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  color: rgba(132, 159, 143, 0.5);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-piece {
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

.board-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 56%;
  aspect-ratio: 0.78;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  clip-path: polygon(25% 0, 75% 0, 96% 19%, 91% 79%, 70% 100%, 30% 100%, 9% 79%, 4% 19%);
  border: 0;
  border-radius: 0;
  color: #f2ead8;
  background: linear-gradient(#f0d994, #72542d);
  box-shadow: none;
  filter: drop-shadow(0 8px 9px rgba(0, 0, 0, 0.48));
  font: inherit;
  cursor: grab;
  transition: filter 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.board-piece:active { cursor: grabbing; }
.unit-art {
  position: absolute;
  inset: 5%;
  overflow: hidden;
  clip-path: polygon(23% 0, 77% 0, 96% 18%, 91% 81%, 69% 100%, 31% 100%, 9% 81%, 4% 18%);
  background: #10231d;
  pointer-events: none;
}

.unit-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(4, 13, 11, 0.22) 68%, rgba(4, 13, 11, 0.92) 100%);
}

.unit-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  pointer-events: none;
}

.piece-glimmerroot .unit-art img { transform: scale(1.13); }

.unit-corner {
  position: absolute;
  z-index: 4;
  top: 8%;
  min-width: 22%;
  height: 20%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff8dc;
  background: #b98a1e;
  box-shadow: 0 3px 8px rgba(0,0,0,0.42);
  font-size: clamp(0.42rem, 0.66vw, 0.58rem);
  font-weight: 950;
  pointer-events: none;
}

.unit-level { left: 7%; }
.unit-team { right: 7%; background: #255c85; }

.unit-name {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 7%;
  z-index: 4;
  overflow: hidden;
  color: #f8f4e8;
  font-size: clamp(0.39rem, 0.68vw, 0.56rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  text-shadow: 0 2px 5px #000;
  white-space: nowrap;
  pointer-events: none;
}

.piece-ally { background: linear-gradient(#b9e7ff, #397dad); }
.piece-enemy { background: linear-gradient(#ffc2b4, #a44437); }
.piece-enemy .unit-team { background: #9e342a; }
.piece-glimmerroot { background: linear-gradient(#f1dc9a, #80612e); }
.piece-glimmerroot .unit-team { background: #4f775f; }
.piece-glimmerroot .unit-level { min-width: 31%; border-radius: 999px; font-size: clamp(0.36rem, 0.58vw, 0.5rem); }

.piece-action {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  display: none;
  transform: translate(-50%, -50%);
  padding: 5px 8px;
  border-radius: 999px;
  color: #062018;
  background: #c4ffda;
  box-shadow: 0 5px 16px rgba(0,0,0,0.5), 0 0 18px rgba(94,244,199,0.55);
  font-size: clamp(0.43rem, 0.7vw, 0.6rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.board-piece.is-ready .piece-action { display: block; }
.board-piece.is-ready { filter: drop-shadow(0 0 14px rgba(94, 244, 199, 0.78)) drop-shadow(0 8px 9px rgba(0,0,0,0.5)); animation: ready-piece 1.25s ease-in-out infinite; }
.piece-enemy.is-ready { filter: drop-shadow(0 0 16px rgba(218, 122, 104, 0.9)) drop-shadow(0 8px 9px rgba(0,0,0,0.5)); }
.piece-enemy.is-ready .piece-action { color: #2c0e09; background: #ffaf9f; }
.board-piece.is-locked { cursor: not-allowed; opacity: 0.56; }
.board-piece.is-dragging-source,
.ability-piece.is-dragging-source { opacity: 0.2; }

@keyframes ready-piece {
  50% { transform: translate(-50%, -50%) scale(1.055); }
}

.waylight-board-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 34%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: marker-glow 1.1s ease-in-out infinite;
}

.waylight-board-marker img { width: 100%; height: 100%; }
.waylight-board-marker span {
  position: absolute;
  left: 50%;
  top: 82%;
  transform: translateX(-50%);
  color: var(--mint);
  font-size: clamp(0.42rem, 0.8vw, 0.58rem);
  font-weight: 850;
  white-space: nowrap;
}

@keyframes marker-glow {
  50% { filter: drop-shadow(0 0 16px rgba(94, 244, 199, 0.85)); }
}

.ability-tray {
  min-height: 92px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(8, 27, 21, 0.96);
}

.ability-piece {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(156, 241, 194, 0.35);
  border-radius: 50%;
  background: rgba(94, 244, 199, 0.06);
  cursor: grab;
}

.ability-piece img { width: 66px; height: 66px; pointer-events: none; }
.ability-piece.is-ready { box-shadow: 0 0 26px rgba(94, 244, 199, 0.24); animation: tray-pulse 1.2s ease-in-out infinite; }
.ability-piece.is-ready::after {
  content: "Drag me";
  position: absolute;
  left: 49px;
  top: -6px;
  z-index: 3;
  padding: 5px 8px;
  border-radius: 999px;
  color: #062018;
  background: #c4ffda;
  box-shadow: 0 4px 14px rgba(0,0,0,0.42);
  font-size: 0.52rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}
.ability-piece.is-locked { cursor: not-allowed; }
.ability-tray.is-spent .ability-piece { opacity: 0.22; filter: grayscale(0.8); animation: none; }
.ability-tray > div { display: grid; }
.ability-tray > div > strong { margin-top: 2px; font-family: Georgia, serif; font-size: 1.12rem; font-weight: 500; }
.ability-tray p { margin: 3px 0 0; color: var(--muted); font-size: 0.7rem; }
.ability-cost { color: #789186; font-size: 0.61rem; font-weight: 800; text-transform: uppercase; }

@keyframes tray-pulse {
  50% { transform: translateY(-3px); box-shadow: 0 0 38px rgba(94, 244, 199, 0.4); }
}

.drag-ghost {
  position: fixed !important;
  z-index: 1000 !important;
  left: 0;
  top: 0;
  width: 76px !important;
  height: 76px !important;
  min-height: 0 !important;
  transform: translate(-50%, -50%) scale(1.08) !important;
  opacity: 0.94 !important;
  pointer-events: none !important;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,0.48)) drop-shadow(0 0 14px rgba(94,244,199,0.42));
}

.drag-ghost .piece-label { display: none; }
.demo-dragging { cursor: grabbing; }

.board-result-strip {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 36px);
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(156, 241, 194, 0.48);
  border-radius: 999px;
  color: #082017;
  background: #bfffd4;
  box-shadow: 0 10px 26px rgba(0,0,0,0.5), 0 0 28px rgba(94,244,199,0.28);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.board-result-strip[hidden] { display: none; }
.board-result-strip.is-denied { color: #300f0a; border-color: rgba(255,174,157,0.58); background: #ffad9d; box-shadow: 0 10px 26px rgba(0,0,0,0.5), 0 0 28px rgba(218,122,104,0.28); }

.denial-burst {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 30;
  transform: translate(-50%, -50%);
  padding: 7px 10px;
  border-radius: 999px;
  color: #2e0d08;
  background: #ffad9d;
  box-shadow: 0 0 0 0 rgba(255, 173, 157, 0.65);
  font-size: clamp(0.52rem, 0.9vw, 0.72rem);
  font-weight: 950;
  text-transform: uppercase;
  pointer-events: none;
  animation: denial-pop 850ms ease forwards;
}

@keyframes denial-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.65); box-shadow: 0 0 0 0 rgba(255,173,157,0.65); }
  28% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 18px rgba(255,173,157,0.13); }
  100% { opacity: 0; transform: translate(-50%, -74%) scale(1); box-shadow: 0 0 0 30px rgba(255,173,157,0); }
}

.tutorial-panel {
  min-width: 0;
  padding: clamp(26px, 3vw, 42px);
  background:
    radial-gradient(circle at 90% 10%, rgba(94, 244, 199, 0.08), transparent 46%),
    #0a1d18;
}

.tutorial-progress {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr);
  align-items: center;
  gap: 14px;
}

.tutorial-progress > span {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.progress-track i {
  display: block;
  width: 33%;
  height: 100%;
  border-radius: inherit;
  background: var(--glow);
  box-shadow: 0 0 10px rgba(94,244,199,0.6);
  transition: width 260ms ease;
}

.cue-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-top: 34px;
  border: 1px solid rgba(156, 241, 194, 0.34);
  border-radius: 50%;
  color: var(--mint);
  background: rgba(94,244,199,0.07);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.tutorial-panel h3 {
  margin: 20px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.cue-copy {
  min-height: 76px;
  margin: 16px 0 0;
  color: #c5d8cb;
  font-size: 0.91rem;
}

.input-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(156, 241, 194, 0.42);
  color: #80998c;
  font-size: 0.7rem;
}

.input-hint span { color: var(--mint); font-weight: 850; }

.impact-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
  border: 1px solid var(--line);
}

.impact-card > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  padding: 13px 7px;
  border-right: 1px solid var(--line);
}

.impact-card > div:last-child { border-right: 0; }
.impact-card span { color: #789186; font-size: 0.52rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.impact-card strong { margin-top: 4px; color: #dbe9df; font-size: 0.78rem; }
.impact-waylight { background: rgba(94, 244, 199, 0.05); }
.impact-waylight strong { color: var(--mint); font-size: 1.05rem; }
.impact-waylight.is-zero { background: rgba(218, 122, 104, 0.08); }
.impact-waylight.is-zero strong { color: #f3a493; }

.impact-result {
  margin: 10px 0 0;
  color: #899f92;
  font-size: 0.72rem;
  text-align: center;
}

.impact-result.is-success { color: var(--mint); font-weight: 800; }
.impact-result.is-failure { color: #f0a394; font-weight: 800; }

.action-log {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.action-log ol {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: action;
}

.action-log li {
  position: relative;
  margin: 7px 0;
  padding-left: 14px;
  color: #8ca398;
  font-size: 0.68rem;
}

.action-log li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(156, 241, 194, 0.42);
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}

.result-actions[hidden] { display: none; }

.result-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #d9e7dc;
  background: rgba(255,255,255,0.03);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 850;
  cursor: pointer;
}

.result-actions button:last-child { color: var(--night); border-color: var(--mint); background: var(--mint); }

.tutorial-panel.is-nudged {
  animation: panel-nudge 260ms ease;
}

@keyframes panel-nudge {
  33% { transform: translateX(-5px); }
  66% { transform: translateX(5px); }
}

.demo-frame.is-complete .cue-icon {
  border-color: rgba(94, 244, 199, 0.55);
  background: rgba(94, 244, 199, 0.14);
  box-shadow: 0 0 28px rgba(94,244,199,0.18);
}

.demo-frame.is-denied .cue-icon {
  color: #ffad9e;
  border-color: rgba(218, 122, 104, 0.52);
  background: rgba(218, 122, 104, 0.12);
  box-shadow: 0 0 28px rgba(218,122,104,0.16);
}

.demo-frame[data-state="RESOLVE_DENIED"] .demo-director {
  border-bottom-color: rgba(255, 174, 157, 0.28);
  background: linear-gradient(90deg, rgba(218, 122, 104, 0.14), rgba(233, 185, 99, 0.04));
}

.demo-frame[data-state="RESOLVE_DENIED"] .director-step,
.demo-frame[data-state="RESOLVE_DENIED"] .director-input { border-color: rgba(255, 174, 157, 0.42); }
.demo-frame[data-state="RESOLVE_DENIED"] .director-step small,
.demo-frame[data-state="RESOLVE_DENIED"] .director-copy > span,
.demo-frame[data-state="RESOLVE_DENIED"] .director-input { color: #ffad9d; }

.demo-footnotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(7, 22, 19, 0.82);
}

.demo-footnotes > div {
  display: grid;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.demo-footnotes > div:last-child { border-right: 0; }
.demo-footnotes strong { color: #d4e3d7; font-size: 0.72rem; }
.demo-footnotes span { margin-top: 4px; color: #789186; font-size: 0.64rem; }

.reference-art-note {
  margin: 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-top: 0;
  color: #789186;
  background: rgba(7, 22, 19, 0.72);
  font-size: 0.62rem;
  line-height: 1.55;
}

.delivery-section {
  padding-top: 118px;
}

.handoff-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(233, 185, 99, 0.22);
  background: linear-gradient(145deg, rgba(233, 185, 99, 0.07), rgba(11, 33, 28, 0.72));
}

.handoff-inline h3 {
  margin: 9px 0 0;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

.handoff-inline ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.82rem;
}

.handoff-inline li { margin: 8px 0; }

.rules-details {
  margin-top: 30px;
  border: 1px solid var(--line);
  background: rgba(11, 33, 28, 0.55);
}

.rules-details summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.rules-details .rule-list {
  margin: 0;
  padding: 0 22px 22px;
}

@media (max-width: 1040px) {
  .demo-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); }
  .hex-board { min-height: 470px; }
  .tutorial-panel { padding: 28px; }
  .cue-copy { min-height: 88px; }
}

@media (max-width: 860px) {
  .playable-section { padding-inline: 16px; }
  .demo-layout { grid-template-columns: 1fr; }
  .hex-board-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .hex-board { min-height: 0; aspect-ratio: 1.15; }
  .tutorial-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
  .tutorial-progress,
  .cue-icon,
  .tutorial-panel h3,
  .cue-copy,
  .input-hint { grid-column: 1 / -1; }
  .cue-copy { min-height: 0; }
  .impact-card { align-self: start; }
  .action-log { margin-top: 26px; }
  .result-actions { grid-column: 1 / -1; }
  .handoff-inline { grid-template-columns: 1fr; gap: 22px; }
  .demo-director { grid-template-columns: auto minmax(0, 1fr); }
  .director-input { grid-column: 2; justify-self: start; }
}

@media (max-width: 560px) {
  .executive-points > div { grid-template-columns: 90px minmax(0, 1fr); }
  .executive-points strong { font-size: 0.88rem; }
  .demo-toolbar { align-items: stretch; flex-direction: column; }
  .demo-director { gap: 11px; padding: 12px 13px; }
  .director-step { width: 48px; height: 48px; }
  .director-copy strong { font-size: 0.83rem; }
  .director-copy small { display: none; }
  .director-input { padding: 6px 8px; font-size: 0.5rem; }
  .scenario-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 7px; }
  .scenario-tab { min-width: 0; padding: 0 8px; }
  .reset-demo { width: 100%; }
  .board-hud { align-items: flex-start; flex-direction: column; gap: 9px; padding: 13px 15px; }
  .turn-chip { align-self: flex-start; }
  .hex-board { aspect-ratio: 0.93; }
  .board-piece { width: 56%; }
  .unit-name { font-size: 0.43rem; }
  .target-cue { bottom: 5%; padding: 3px 5px; font-size: 0.42rem; }
  .board-result-strip { bottom: 13px; max-width: calc(100% - 22px); border-radius: 7px; font-size: 0.58rem; }
  .board-corner-label { display: none; }
  .ability-tray { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 11px 13px; }
  .ability-piece { width: 54px; height: 54px; }
  .ability-piece img { width: 58px; height: 58px; }
  .ability-cost { grid-column: 1 / -1; }
  .tutorial-panel { display: block; padding: 24px 20px; }
  .cue-icon { margin-top: 26px; }
  .impact-card { margin-top: 22px; }
  .result-actions { grid-template-columns: 1fr; }
  .demo-footnotes { grid-template-columns: 1fr; }
  .demo-footnotes > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-footnotes > div:last-child { border-bottom: 0; }
  .handoff-inline { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hex-cell,
  .board-piece,
  .progress-track i {
    transition: none !important;
  }

  .hex-cell.is-legal,
  .board-piece.is-ready,
  .waylight-board-marker,
  .ability-piece.is-ready,
  .tutorial-panel.is-nudged {
    animation: none !important;
  }

  .denial-burst { animation: none !important; }
}
