/* ==========================================================================
   ZOO.COM 文明动物公司 · single-screen opening stage
   One screen: the opening sequence, the name, the reservation.
   ========================================================================== */

.zoo-stage {
  --topbar-h: 0px;
  --zstage-bg: #070d0f;
  --zline: rgba(230, 166, 61, 0.18);
  --zline-soft: rgba(230, 166, 61, 0.1);
  --zmuted: #8d8172;
  --ztext: #ece3d0;
  --zor: #e4572e;
  min-height: 100svh;
  background:
    radial-gradient(1000px 640px at 50% 0%, rgba(47, 74, 58, 0.24), transparent 72%),
    var(--zstage-bg);
  color: var(--ztext);
  overflow-x: hidden;
}
.zoo-stage ::selection { background: rgba(228, 87, 46, 0.42); }
.zoo-stage .site-head { top: 0; }

.stage {
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--head-h) + 28px) 0 30px;
}
.stage-inner {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2.2vh, 24px);
}

/* ---------- Brand line ---------- */

.stage-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: var(--zmuted);
}
.stage-kicker::before { content: ""; width: 28px; height: 1px; background: var(--zor); }

/* ---------- Screen ---------- */

.stage-screen {
  width: min(1040px, 100%, calc((100svh - 360px) * 2.222));
  margin: 0;
  background: #04090a;
  border: 1px solid var(--zline);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}
.stage-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #7e7667;
  border-bottom: 1px solid var(--zline-soft);
}
.stage-bar span:last-child { color: #6d6a5f; }
.stage-media {
  position: relative;
  background: #000;
}
.stage-media video {
  display: block;
  width: 100%;
  aspect-ratio: 20 / 9;
  object-fit: contain;
  background: #000;
}

/* ---------- Player controls ---------- */

.stage-ctrls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease);
}
.stage-media:hover .stage-ctrls,
.stage-media:focus-within .stage-ctrls { opacity: 1; }
.stage-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(236, 227, 208, 0.4);
  background: rgba(4, 9, 10, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f0e7d4;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.stage-ctrl:hover { border-color: var(--amber); color: #fff2d6; background: rgba(9, 14, 16, 0.94); }
.stage-ctrl svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.stage-ctrl .ico-play { display: none; }
.stage-ctrl.is-paused .ico-pause { display: none; }
.stage-ctrl.is-paused .ico-play { display: block; }
.stage-ctrl .ico-sound { display: none; }
.stage-ctrl:not(.is-muted) .ico-muted { display: none; }
.stage-ctrl:not(.is-muted) .ico-sound { display: block; }
.stage-ctrl:not(.is-muted) { color: #f4cd7d; border-color: rgba(230, 166, 61, 0.6); }

/* ---------- Sound prompt ---------- */

.stage-sound-prompt {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 11px;
  border: 1px solid rgba(230, 166, 61, 0.55);
  background: rgba(7, 13, 15, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  color: #f4cd7d;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.stage-sound-prompt[hidden] { display: none; }
.stage-sound-prompt:hover { border-color: var(--amber-hi); background: rgba(12, 20, 22, 0.96); transform: translateY(-1px); }
.stage-sound-prompt:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 2px; }
.stage-sound-prompt svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.stage-sound-txt { display: flex; flex-direction: column; gap: 2px; }
.stage-sound-txt strong {
  font-family: var(--font-cn);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f7e7c0;
  line-height: 1.2;
}
.stage-sound-txt small {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: #9c8f78;
  line-height: 1.2;
}
@media (prefers-reduced-motion: no-preference) {
  .stage-sound-prompt { animation: sound-prompt-pulse 2.6s ease-in-out infinite; }
  @keyframes sound-prompt-pulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(230, 166, 61, 0); }
    50% { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 0 5px rgba(230, 166, 61, 0.14); }
  }
}

/* ---------- Foot ---------- */

.stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  flex-wrap: wrap;
  width: min(1040px, 100%);
}
.stage-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.stage-title-en {
  font-family: var(--font-en);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #f4ecda;
}
.stage-title-cn {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #b7ac96;
}
.stage-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--zmuted);
}
.stage-chip {
  flex: none;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #f0a084;
  border: 1px dashed rgba(228, 87, 46, 0.55);
  background: rgba(228, 87, 46, 0.08);
}
.stage-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.stage-back {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: #a2977f;
  border-bottom: 1px solid rgba(236, 227, 208, 0.22);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.stage-back:hover { color: #f6e8cb; border-color: var(--amber); }

.stage-legal {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #5e5b52;
}
.stage-legal a { color: #7c7464; border-bottom: 1px solid rgba(124, 116, 100, 0.4); }
.stage-legal a:hover { color: #cbbfa4; }

/* ---------- Dialog on the stage ---------- */

.zoo-stage .reserve::backdrop { background: rgba(2, 6, 7, 0.72); backdrop-filter: blur(5px); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .stage { padding-top: calc(var(--head-h) + 22px); }
  .stage-screen { width: 100%; }
  .stage-foot {
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }
  .stage-title { justify-content: center; }
  .stage-note { justify-content: center; }
}

@media (max-width: 720px) {
  .stage-inner { width: calc(100% - 32px); gap: 18px; }
  .stage-screen { box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55); }
  .stage-bar { padding: 7px 10px; font-size: 8px; letter-spacing: 0.14em; }
  .stage-ctrls { right: 8px; bottom: 8px; opacity: 0.85; }
  .stage-ctrl { padding: 6px 7px; font-size: 9px; }
  .stage-ctrl span { display: none; }
  .stage-ctrl svg { width: 14px; height: 14px; }
  .stage-sound-prompt { left: 8px; bottom: 8px; gap: 7px; padding: 6px 9px 6px 8px; }
  .stage-sound-txt small { display: none; }
  .stage-sound-txt strong { font-size: 11.5px; }
  .stage-title { gap: 8px 12px; }
  .stage-title-cn { font-size: 12px; letter-spacing: 0.24em; }
  .stage-actions { width: 100%; flex-direction: column; gap: 14px; }
  .stage-actions .btn { width: 100%; justify-content: center; }
  .stage-legal { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-screen { box-shadow: none; }
}
