:root {
  --estage-blue: #005EFF;
  --estage-ink: #12110F;
  --estage-sand: #FFF8EA;
  --estage-paper: #FFFDF4;
  --estage-green: #1F5A3B;
  --estage-clay: #8D4F2F;
  --estage-muted: rgba(18,17,15,.68);
  --estage-line: rgba(18,17,15,.12);
  --estage-soft-shadow: 0 18px 48px rgba(18,17,15,.10);
}

.estage-ui-redesign-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(0,94,255,.07), transparent 32rem),
    linear-gradient(180deg, var(--estage-sand), #f6ead4 78%, #f0dec0);
  color: var(--estage-ink);
}

.estage-ui-redesign-page .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,248,234,.91);
  border-bottom: 1px solid rgba(18,17,15,.08);
}

.estage-redesign-shell {
  padding: 1rem 0 3rem;
}

.estage-redesign-container {
  width: min(100% - 1.25rem, 1120px);
  margin-inline: auto;
}

.estage-redesign-hero {
  padding: .75rem 0 .65rem;
}

.estage-identity-row,
.estage-status-chip-row,
.estage-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}

.estage-badge--public,
.estage-season-chip,
.estage-status-chip,
.estage-stage-chip {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: .42rem .72rem;
  font-size: .78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
}

.estage-badge--public {
  color: var(--estage-paper);
  background: var(--estage-green);
}

.estage-season-chip,
.estage-status-chip,
.estage-stage-chip {
  color: var(--estage-ink);
  background: rgba(255,253,244,.82);
  border: 1px solid var(--estage-line);
}

.estage-season-chip--muted {
  background: rgba(0,94,255,.10);
  border-color: rgba(0,94,255,.24);
  color: #003c9b;
}

.estage-redesign-hero h1 {
  margin: .75rem 0 .35rem;
  max-width: 10.5ch;
  font-size: clamp(2.05rem, 11vw, 5.4rem);
  line-height: .94;
  letter-spacing: -.065em;
}

.estage-helper-line {
  max-width: 32rem;
  margin: 0;
  color: var(--estage-muted);
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.38;
}

.estage-section-kicker {
  margin: 0 0 .35rem;
  color: var(--estage-muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.estage-selector-prime {
  margin-top: 1rem;
  padding: .85rem .85rem 1rem;
  border: 1px solid var(--estage-line);
  border-radius: 1.4rem;
  background: rgba(255,253,244,.76);
  box-shadow: 0 12px 32px rgba(18,17,15,.06);
}

.estage-selector-prime h2,
.estage-stage-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 6vw, 2.05rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.estage-stage-section {
  margin-top: .85rem;
}

.estage-stage-card,
.estage-info-card,
.estage-accordion {
  border: 1px solid var(--estage-line);
  border-radius: 1.45rem;
  background: rgba(255,253,244,.92);
  box-shadow: var(--estage-soft-shadow);
}

.estage-stage-card {
  overflow: hidden;
}

.estage-stage-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem .75rem;
}

.estage-viewer-shell--redesign {
  position: relative;
  min-height: 0 !important;
  height: clamp(440px, 62vh, 720px);
  border-radius: 0;
  box-shadow: none;
  border: 0;
  border-top: 1px solid rgba(18,17,15,.08);
  background:
    radial-gradient(circle at 50% 30%, rgba(0,94,255,.12), rgba(0,94,255,.025) 36%, transparent 60%),
    var(--estage-paper);
}

.estage-model-viewer--redesign,
.estage-viewer-shell--redesign model-viewer {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  background: transparent !important;
}

.estage-viewer-topline {
  position: absolute;
  top: .75rem;
  left: .75rem;
  right: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.estage-viewer-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: .35rem .62rem;
  border-radius: 999px;
  background: rgba(255,253,244,.78);
  border: 1px solid rgba(18,17,15,.08);
  box-shadow: 0 8px 22px rgba(18,17,15,.07);
  color: rgba(18,17,15,.72);
  font-size: .76rem;
  font-weight: 900;
}

.estage-control-status {
  margin: 0;
  padding: .72rem 1rem 1rem;
  color: var(--estage-muted);
  font-size: .92rem;
}

.estage-quick-meta {
  margin-top: .75rem;
  display: grid;
  gap: .65rem;
}

.estage-link-row a {
  color: var(--estage-green);
  font-weight: 900;
  text-decoration-thickness: .1em;
  text-underline-offset: .2em;
}

.estage-link-row a + a::before {
  content: '·';
  margin-right: .45rem;
  color: rgba(18,17,15,.36);
  text-decoration: none;
}

.estage-figurine-info {
  margin-top: .85rem;
}

.estage-info-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.estage-info-card h3 {
  margin: 0 0 .35rem;
  font-size: clamp(1.35rem, 6vw, 2.25rem);
  letter-spacing: -.045em;
}

.estage-info-card p {
  margin: 0;
  color: var(--estage-muted);
}

.estage-info-dl {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.estage-info-dl div {
  display: grid;
  gap: .2rem;
  padding: .7rem .8rem;
  border-radius: 1rem;
  background: rgba(31,90,59,.08);
}

.estage-info-dl dt {
  color: var(--estage-muted);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.estage-info-dl dd {
  margin: 0;
  font-weight: 900;
}

.estage-quiet-sections {
  margin-top: 1rem;
  display: grid;
  gap: .65rem;
}

.estage-accordion {
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(18,17,15,.06);
}

.estage-accordion summary {
  cursor: pointer;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  padding: .85rem 1rem;
  font-weight: 900;
  list-style: none;
}

.estage-accordion summary::-webkit-details-marker { display: none; }
.estage-accordion summary::after {
  content: '+';
  margin-left: auto;
  color: var(--estage-blue);
  font-size: 1.35rem;
  line-height: 1;
}
.estage-accordion[open] summary::after { content: '−'; }

.estage-accordion__body {
  border-top: 1px solid var(--estage-line);
  padding: 1rem;
  color: var(--estage-muted);
}

.estage-accordion__body p { margin: 0; }
.estage-accordion__body pre {
  max-height: 20rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: .85rem;
  background: #12110f;
  color: #fff8ea;
  padding: 1rem;
}

.estage-utility-links {
  display: grid;
  gap: .65rem;
}

.estage-utility-card {
  display: grid;
  gap: .2rem;
  padding: .8rem;
  border: 1px solid var(--estage-line);
  border-radius: 1rem;
  background: #fffdf4;
  color: var(--estage-ink);
  text-decoration: none;
}
.estage-utility-card span { color: var(--estage-muted); }
.estage-utility-card:focus-visible,
.estage-utility-card:hover {
  outline: 3px solid rgba(0,94,255,.28);
  outline-offset: 2px;
}

.estage-inline-notice {
  margin-top: .75rem;
  border-left: 5px solid var(--estage-blue);
  background: rgba(0,94,255,.08);
  border-radius: .9rem;
  padding: .85rem;
  color: var(--estage-ink);
}

.estage-footer-soft {
  margin-top: 2rem;
}

.visually-hidden {
  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;
}

.estage-fallback-panel--quiet {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 80;
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .estage-redesign-shell { padding-top: 1.5rem; }
  .estage-redesign-hero { padding: 1.2rem 0 .8rem; }
  .estage-redesign-hero h1 { max-width: 13ch; }
  .estage-info-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
    align-items: start;
    padding: 1.25rem;
  }
  .estage-utility-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 430px) {
  .estage-redesign-container { width: min(100% - .9rem, 1120px); }
  .estage-redesign-hero h1 { font-size: clamp(2rem, 12vw, 3.2rem); }
  .estage-viewer-shell--redesign { height: 58vh; min-height: 420px; }
  .estage-stage-head { padding-inline: .8rem; }
  .estage-control-status { font-size: .85rem; }
}

@media (max-width: 370px) {
  .estage-viewer-shell--redesign { height: 54vh; min-height: 390px; }
  .estage-redesign-hero h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .estage-ui-redesign-page *,
  .estage-ui-redesign-page *::before,
  .estage-ui-redesign-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}


/* MM 26/27 Product UI Refinement */
.estage-product-shell {
  padding-top: .55rem;
}

.estage-product-hero {
  padding: .65rem 0 .45rem;
}

.estage-product-hero .estage-identity-row {
  gap: .38rem;
}

.estage-product-hero h1 {
  max-width: 12.5ch;
  margin-top: .62rem;
  font-size: clamp(1.95rem, 9vw, 4.3rem);
  letter-spacing: -.055em;
}

.estage-product-chooser {
  margin-top: .72rem;
  padding: .85rem .8rem .75rem;
}

.estage-product-chooser h2 {
  font-size: clamp(1.45rem, 7vw, 2.45rem);
}

.estage-product-stage-card {
  background: rgba(255,253,244,.96);
}

.estage-product-stage-head {
  padding: .8rem .86rem .62rem;
}

.estage-stage-chip--soon {
  background: rgba(0,94,255,.09);
  color: #003c9b;
  border-color: rgba(0,94,255,.22);
  white-space: nowrap;
}

.estage-product-viewer-shell {
  height: clamp(430px, 60vh, 700px);
  background:
    radial-gradient(circle at 50% 46%, rgba(0,94,255,.12), rgba(0,94,255,.035) 34%, transparent 64%),
    linear-gradient(180deg, #fffdf4, #fff9eb);
  overflow: hidden;
}

.estage-product-viewer-shell::before {
  content: '';
  position: absolute;
  inset: auto 14% 4.8rem 14%;
  height: 1px;
  background: radial-gradient(ellipse, rgba(18,17,15,.18), transparent 70%);
  pointer-events: none;
}

.estage-product-viewer-shell model-viewer::part(poster) {
  display: none;
  opacity: 0;
}

.estage-product-viewer-topline {
  top: .6rem;
  left: .6rem;
  right: .6rem;
}

.estage-product-viewer-topline span {
  min-height: 1.7rem;
  padding: .3rem .54rem;
  font-size: .7rem;
  background: rgba(255,253,244,.70);
}

.estage-product-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .65rem .82rem .86rem;
  color: rgba(18,17,15,.72);
  font-size: .86rem;
}

.estage-product-status-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  border-radius: 999px;
  padding: .35rem .6rem;
  background: rgba(31,90,59,.07);
}

.estage-product-links {
  margin-top: .7rem;
  justify-items: start;
}

.estage-product-info-card {
  box-shadow: 0 12px 32px rgba(18,17,15,.07);
}

.estage-product-support {
  margin-top: .78rem;
}

.estage-product-support .estage-accordion {
  box-shadow: 0 8px 22px rgba(18,17,15,.045);
}

.estage-inline-notice--compact {
  margin-top: .45rem;
  border-left-width: 4px;
  padding: .55rem .68rem;
  font-size: .88rem;
  border-radius: .75rem;
}

.estage-debug,
.estage-control-status {
  display: none !important;
}

@media (max-width: 430px) {
  .estage-product-shell {
    padding-top: .35rem;
  }
  .estage-product-hero h1 {
    font-size: clamp(1.85rem, 9.5vw, 2.55rem);
  }
  .estage-product-viewer-shell {
    height: 57vh;
    min-height: 420px;
  }
  .estage-product-stage-head h2 {
    font-size: clamp(1.25rem, 6vw, 1.85rem);
  }
  .estage-product-status-row {
    padding-inline: .72rem;
  }
}

@media (max-width: 370px) {
  .estage-product-viewer-shell {
    height: 54vh;
    min-height: 390px;
  }
}
