:root {
  --green-950: #081a13;
  --green-900: #0b2018;
  --green-800: #0f2a1f;
  --green-700: #143425;
  --green-600: #1b3a2c;
  --green-500: #244e3b;
  --green-fairway: #3d6b43;
  --green-fairway-light: #487a4f;
  --gold: #c9a961;
  --gold-light: #dcc07f;
  --gold-dark: #a98944;
  --cream: #f1e7cf;
  --paper: #f6edd3;
  --paper-warm: #f4e9cd;
  --ink: #1a1a1a;
  --ink-soft: #3a3a36;
  --ink-mute: #6b6a60;
  --rust: #a03c2a;
  --rust-dark: #7a2c1f;
  --sand: #e5d4a8;
  --white: #fffdf2;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --shadow-soft: 0 1px 2px rgba(20, 40, 28, .06), 0 12px 30px -18px rgba(20, 40, 28, .25);
  --shadow-deep: 0 24px 48px -28px rgba(0, 0, 0, .55), 0 8px 24px -16px rgba(0, 0, 0, .4);
  --radius: 6px;
  --radius-sm: 3px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 1000px 640px at 80% -10%, rgba(201, 169, 97, .18), transparent 60%),
    radial-gradient(ellipse 820px 620px at 0% 100%, rgba(15, 42, 31, .08), transparent 55%),
    linear-gradient(180deg, #f6edd3 0%, #efe3c5 100%);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 42, 31, .045) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .45;
}

button {
  font: inherit;
  cursor: pointer;
}

p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

/* ─── Topbar ─────────────────────────────────────── */

.topbar {
  display: flex;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 14px 28px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(15, 42, 31, .14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-800);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--green-500), var(--green-800) 70%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 4px 10px -4px rgba(15, 42, 31, .4);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-sub {
  margin-top: 4px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.series-title,
.topbar-meta {
  margin: 0;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.series-title {
  flex: 1;
  text-align: center;
  color: var(--green-800);
}

/* ─── Studio ─────────────────────────────────────── */

.studio {
  display: grid;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 22px 28px 28px;
  gap: 18px;
}

/* ─── Persona switcher ────────────────────────── */

.persona-switch {
  display: grid;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: var(--radius);
  background: rgba(255, 253, 242, .68);
  box-shadow: var(--shadow-soft);
}

.persona-switch-label {
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.persona-switch-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.persona-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(15, 42, 31, .15);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green-900);
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.persona-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 169, 97, .55);
}

.persona-chip[aria-selected="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 169, 97, .22), rgba(201, 169, 97, .08));
  box-shadow: 0 0 0 1px rgba(201, 169, 97, .35) inset;
}

.persona-chip[aria-selected="true"] .persona-chip-avatar {
  background: linear-gradient(135deg, var(--rust) 0%, var(--rust-dark) 100%);
  color: var(--paper);
}

.persona-chip-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
}

.persona-chip-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.persona-chip-name {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}

.persona-chip-meta {
  margin-top: 2px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.persona-chip:disabled {
  cursor: progress;
  opacity: .65;
}

/* ─── Hero (course + persona) ───────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 242, .8), rgba(255, 253, 242, .4));
  box-shadow: var(--shadow-soft);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 380 / 460;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #14301f 0%, #0d2418 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 36px -22px rgba(0, 0, 0, .55);
}

.stage-meta {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 2;
  color: var(--cream);
}

.stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .4; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

.stage-headline {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
}

.stage-headline em {
  display: inline-block;
  margin-left: 4px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .12em;
  vertical-align: 2px;
}

.course {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 540px;
}

/* ─── OG-frame (Playwright-driven 1200x630 capture) ─────────────── */
.is-og-frame {
  width: 1200px;
  max-width: none;
  height: 630px;
  padding: 28px;
  border-radius: 0;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(180deg, #fbf2d9 0%, #efe3c5 100%);
}

.is-og-frame .hero-stage {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}

.is-og-frame .persona-card {
  height: 100%;
  justify-content: flex-start;
}

.is-og-frame .stage-headline {
  font-size: 28px;
}

.is-og-frame .persona-name {
  font-size: 30px;
}

/* ─── Export-time fallbacks (html2canvas can't render SVG patterns/radial gradients) ── */
.is-exporting .fairway {
  fill: #3d6b43;
}

.is-exporting .green {
  fill: #7cb35e;
}

.is-exporting .ob-strip {
  fill: rgba(160, 60, 42, .55);
}

.is-exporting .rough-band {
  fill: #213d28;
  opacity: 1;
}

.is-exporting .hero-stage {
  background: #0d2418;
}

/* SVG course parts */
.ob-strip {
  fill: rgba(160, 60, 42, .38);
}

.rough-band {
  fill: #2a4a32;
  opacity: .8;
}

.ob-label {
  fill: rgba(241, 231, 207, .72);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
}

.fairway {
  fill: url(#fairwayStripe);
  stroke: rgba(241, 231, 207, .22);
  stroke-width: 1.5;
}

.fairway-cut {
  fill: rgba(255, 255, 255, .04);
  stroke: rgba(241, 231, 207, .14);
  stroke-width: 1;
}

.bunker {
  fill: var(--sand);
  stroke: rgba(111, 76, 44, .42);
  stroke-width: 1.5;
}

.green {
  fill: url(#greenGrad);
  stroke: rgba(241, 231, 207, .68);
  stroke-width: 1.5;
}

.green-core {
  fill: rgba(255, 255, 255, .1);
  stroke: rgba(255, 255, 255, .22);
  stroke-width: 1;
}

.flag-stick {
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.flag {
  fill: var(--rust);
}

.cup {
  fill: #102116;
}

.tee-box {
  fill: rgba(241, 231, 207, .2);
  stroke: rgba(241, 231, 207, .42);
  stroke-width: 1;
}

.yardage-label {
  fill: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}

.dispersion {
  fill: rgba(241, 231, 207, .14);
  stroke: rgba(241, 231, 207, .68);
  stroke-width: 1.8;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .3s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}

.dispersion.is-visible {
  opacity: 1;
  transform: scale(1.04);
}

.target-line {
  fill: none;
  stroke: rgba(241, 231, 207, .65);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  opacity: 0;
  transition: opacity .3s ease;
}

.target-line.is-visible {
  opacity: 1;
}

.shot-trace {
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 4.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 9px rgba(220, 192, 127, .6));
}

.shot-trace.is-firing {
  animation: trace 1.05s cubic-bezier(.18, .78, .2, 1) forwards;
}

@keyframes trace {
  to { stroke-dashoffset: 0; }
}

.target-dot {
  fill: var(--gold-light);
  stroke: var(--green-900);
  stroke-width: 2;
  opacity: 0;
  transition: opacity .3s ease;
}

.target-dot.is-visible {
  opacity: 1;
}

.player-marker {
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.player-marker circle {
  fill: var(--cream);
  stroke: var(--green-900);
  stroke-width: 2.5;
}

.player-marker path {
  fill: none;
  stroke: var(--green-900);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.ball-marker {
  fill: var(--white);
  stroke: var(--green-900);
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45));
  transition:
    cx .9s cubic-bezier(.18, .78, .2, 1),
    cy .9s cubic-bezier(.18, .78, .2, 1);
}

.stage-overlay {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lie-pill,
.trial-pill {
  display: inline-flex;
  padding: 6px 11px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(201, 169, 97, .35);
  border-radius: 999px;
  background: rgba(11, 32, 24, .78);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.lie-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.lie-pill[data-lie="ob"] i { background: var(--rust); }
.lie-pill[data-lie="rough"] i { background: #6e8a52; }
.lie-pill[data-lie="green"] i { background: #a8d27e; }

/* ─── Persona card ─────────────────────────────── */

.persona-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding: 22px 22px 24px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .22));
  box-shadow: var(--shadow-soft);
}

.persona-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
}

.persona-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
}

.persona-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--rust) 0%, var(--rust-dark) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 6px 14px -6px rgba(160, 60, 42, .5);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
}

.persona-eyebrow {
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.persona-name {
  margin-top: 3px;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.05;
}

.persona-meta {
  margin-top: 4px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.persona-score {
  display: grid;
  min-width: 64px;
  padding: 8px 12px;
  border: 1px solid rgba(201, 169, 97, .38);
  border-radius: 4px;
  background: rgba(201, 169, 97, .08);
  text-align: center;
}

.persona-score span {
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.persona-score strong {
  display: block;
  margin-top: 4px;
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.persona-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.persona-tags span {
  padding: 5px 10px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: 999px;
  background: rgba(15, 42, 31, .04);
  color: var(--green-800);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
}

.persona-tags span:nth-child(3n) {
  border-color: rgba(201, 169, 97, .38);
  background: rgba(201, 169, 97, .14);
  color: var(--gold-dark);
}

.persona-list {
  display: grid;
  margin-top: 4px;
  border-top: 1px dashed rgba(15, 42, 31, .18);
}

.persona-list > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(15, 42, 31, .12);
}

.persona-list dt {
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.persona-list dd {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ─── Moment (decision panel) ──────────────────── */

.moment {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--green-700) 0%, var(--green-800) 100%);
  color: var(--cream);
  box-shadow: var(--shadow-deep);
}

.moment-eyebrow {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.moment-headline {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.moment-decision {
  color: rgba(241, 231, 207, .82);
  font-size: 14px;
  line-height: 1.6;
}

.voice-stack {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.voice-line {
  padding: 9px 12px;
  border-left: 2px solid var(--gold);
  border-radius: 2px;
  background: rgba(255, 255, 255, .04);
  color: rgba(241, 231, 207, .92);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.voice-reaction {
  border-left-color: var(--gold-light);
  background: rgba(201, 169, 97, .1);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.metrics > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(201, 169, 97, .22);
  border-radius: 3px;
  background: rgba(255, 255, 255, .04);
}

.metrics span {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.metrics strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Controls ──────────────────────────────────── */

.controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: var(--radius);
  background: rgba(255, 253, 242, .7);
  box-shadow: var(--shadow-soft);
}

.ctrl {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(15, 42, 31, .12);
  border-radius: 4px;
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 10px -4px rgba(0, 0, 0, .25);
  color: var(--green-800);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}

.ctrl:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.ctrl-primary {
  background: var(--green-800);
  border-color: var(--green-900);
  color: var(--gold-light);
}

.ctrl-primary:hover {
  background: var(--green-700);
}

.progress {
  flex: 1;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 42, 31, .12);
}

#progressFill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: 0 0 8px rgba(201, 169, 97, .42);
  transition: width .35s ease;
}

.progress-label {
  flex: 0 0 auto;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ─── Reflection ────────────────────────────────── */

.reflection {
  position: relative;
  padding: 14px 22px 14px 60px;
  border: 1px solid rgba(15, 42, 31, .14);
  border-radius: var(--radius);
  background: rgba(255, 253, 242, .58);
  box-shadow: var(--shadow-soft);
}

.reflection::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 12px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 64px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  opacity: .55;
}

.reflection-eyebrow {
  margin-bottom: 4px;
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.reflection blockquote {
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

/* ─── Share ─────────────────────────────────────── */

.share-bar {
  display: grid;
  gap: 12px;
  padding: 18px 22px;
  border: 1px solid rgba(201, 169, 97, .35);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(201, 169, 97, .08), rgba(201, 169, 97, .02));
  box-shadow: var(--shadow-soft);
}

.share-label {
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  padding: 10px 16px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15, 42, 31, .15);
  border-radius: 4px;
  background: var(--cream);
  color: var(--green-900);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}

.share-btn > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.share-btn:hover {
  background: var(--green-800);
  color: var(--cream);
  transform: translateY(-1px);
}

.share-btn:hover > span:first-child {
  background: var(--gold);
  color: var(--green-900);
}

.share-btn.share-x:hover { background: #000; }
.share-btn.share-line:hover { background: #06c755; color: #fff; }
.share-btn.share-line:hover > span:first-child { background: #fff; color: #06c755; }
.share-btn.share-image:hover { background: var(--gold-dark); color: var(--paper); }
.share-btn.share-image:hover > span:first-child { background: var(--paper); color: var(--gold-dark); }

.share-btn:disabled {
  cursor: progress;
  opacity: .65;
  transform: none;
}

.share-hint {
  color: var(--ink-mute);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.6;
}

/* ─── Footer ────────────────────────────────────── */

.pagefoot {
  display: flex;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 14px 28px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(15, 42, 31, .12);
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.foot-center {
  flex: 1;
  text-align: center;
  text-transform: none;
}

/* ─── Toast ─────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .55);
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─── Responsive ────────────────────────────────── */

@media (max-width: 960px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 18px;
    gap: 12px;
  }

  .series-title {
    flex: 0 0 auto;
    order: 3;
    width: 100%;
    text-align: left;
  }

  .topbar-meta {
    margin-left: auto;
  }

  .studio {
    padding: 16px 16px 22px;
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .hero-stage {
    min-height: 0;
    aspect-ratio: 4 / 3.6;
  }

  .course {
    min-height: 0;
    height: 100%;
  }

  .persona-card {
    padding: 18px 18px 20px;
  }

  .moment {
    padding: 18px;
  }

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

  .reflection {
    padding-left: 50px;
  }

  .controls-bar {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .progress-label {
    flex: 1 0 auto;
    text-align: right;
  }

  .pagefoot {
    flex-direction: column;
    padding: 16px 18px 22px;
    text-align: center;
  }

  .foot-center {
    order: -1;
  }
}

@media (max-width: 540px) {
  .stage-headline {
    font-size: 18px;
  }

  .hero-stage {
    aspect-ratio: 4 / 4.2;
  }

  .persona-head {
    grid-template-columns: 50px 1fr auto;
    gap: 12px;
  }

  .persona-avatar {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .persona-name {
    font-size: 22px;
  }

  .persona-list > div {
    grid-template-columns: 76px 1fr;
  }

  .moment-headline {
    font-size: 20px;
  }

  .voice-line {
    font-size: 12px;
  }

  .metrics strong {
    font-size: 14px;
  }

  .reflection blockquote {
    font-size: 15px;
  }

  .share-buttons {
    gap: 8px;
  }

  .share-btn {
    flex: 1 0 calc(50% - 4px);
    justify-content: center;
    padding: 10px 12px;
    font-size: 12px;
  }
}
