.stage[data-shot^="mirror"] #still {
  object-position: center 35%;
}

.stage[data-shot^="mirror"] #shade {
  background: linear-gradient(180deg, #09060949, transparent 28%, #10090e73 44%, #0e080df2 73%, #0e080d);
}

.stage[data-shot^="mirror"] .dialogue.cinematic {
  gap: clamp(10px, 2svh, 18px);
}

.stage[data-shot="mirror"]::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #10090936, #100b1473 51%, #0b080de9);
  backdrop-filter: blur(1px);
  animation: mirror-veil-rise 540ms cubic-bezier(.16,.75,.22,1) both;
}

.stage[data-shot="mirror"] .dialogue.cinematic {
  top: max(75px, calc(env(safe-area-inset-top) + 58px));
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  justify-content: space-between;
}

.stage[data-shot="mirror"] .cinematic-line {
  font-size: clamp(20px, 5.6vw, 25px);
  line-height: 1.52;
  text-shadow: 0 2px 15px #000, 0 0 14px #ecbd7552;
}

.mirror-centerpiece {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-self: center;
  flex: none;
  width: min(82%, 328px, 36svh);
  aspect-ratio: 1;
  margin-block: auto;
  pointer-events: none;
  animation: mirror-center-in 720ms ease-out 610ms both;
}

.mirror-centerpiece-art {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px #000e) drop-shadow(0 0 24px #74b6bb31);
}

.mirror-centerpiece-reflection {
  grid-area: 1 / 1;
  width: 69%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 64% 72%, #a6dde87a, transparent 25%),
              conic-gradient(from 18deg, transparent 7%, #48b4b387 16%, transparent 28%, #c49e6261 44%, transparent 61%, #5392bf8c 78%, transparent 91%);
  filter: blur(9px);
  mix-blend-mode: screen;
  opacity: .28;
  animation: mirror-reflection-drift 8s linear infinite;
}

.mirror-centerpiece-title {
  grid-area: 1 / 1;
  z-index: 1;
  margin: 0;
  color: #fff0d8;
  font: 700 clamp(23px, 7vw, 33px)/1.2 Gowun, serif;
  letter-spacing: .045em;
  text-align: center;
  text-shadow: 0 2px 8px #000, 0 0 20px #ccefff80;
}

.mirror-invitation-copy {
  grid-area: 1 / 1;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
}
.mirror-invite-button {
  position: relative;
  min-width: 94px;
  min-height: 44px;
  padding: 6px 15px;
  border: 0;
  background: transparent;
  color: #fff0d8;
  font: 650 14px/1.3 Pretendard, sans-serif;
  cursor: pointer;
  pointer-events: auto;
  animation: mirror-invite-glow 3s ease-in-out infinite;
}
.mirror-invite-button:focus-visible { outline: 2px solid #ffeac0; outline-offset: 4px; }
@keyframes mirror-invite-glow {
  0%, 39%, 100% { transform: scale(.98); text-shadow: 0 1px 4px #061019, 0 0 7px #ead6a559; }
  50% { transform: scale(1.05); text-shadow: 0 1px 4px #061019, 0 0 16px #ffe3ae; }
  61% { transform: scale(1); }
}

@keyframes mirror-center-in {
  from { opacity: 0; transform: scale(.93); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes mirror-reflection-drift {
  0% { transform: rotate(0deg) scale(.94); opacity: .18; }
  45% { transform: rotate(155deg) scale(1); opacity: .47; }
  100% { transform: rotate(360deg) scale(.94); opacity: .18; }
}

.mirror-intro-line {
  display: block;
  animation: mirror-line-in 430ms ease-out 320ms both;
}
.mirror-intro-line + .mirror-intro-line {
  margin-top: 8px;
  animation-delay: 600ms;
  font-size: .93em;
  text-wrap: balance;
}

.mirror-prompt {
  margin: 0;
  color: #f5e3cc;
  font: 550 14px/1.5 Pretendard, sans-serif;
  text-align: center;
  animation: mirror-line-in 340ms ease-out 1550ms both;
}

.mirror-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  perspective: 700px;
}

[data-mirror="circle"] {
  --reflection: #ff674e;
  --entrance: 0ms;
  --glass: ellipse(34% 20% at 48% 71%);
}

[data-mirror="triangle"] {
  --reflection: #ffd25e;
  --entrance: 130ms;
  --glass: polygon(50% 51%, 84% 87%, 15% 87%);
}

[data-mirror="square"] {
  --reflection: #52e0ae;
  --entrance: 260ms;
  --glass: polygon(18% 53%, 80% 53%, 80% 88%, 18% 88%);
}

#answers button.mirror-choice {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 0 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #f9ebdd;
  box-shadow: none;
  animation: mirror-relic-rise 650ms cubic-bezier(.15,.74,.22,1) calc(850ms + var(--entrance)) backwards;
}

#answers button.mirror-choice:hover,
#answers button.mirror-choice:focus-visible {
  border-color: color-mix(in srgb, var(--reflection) 55%, transparent);
  background: #fff7d80a;
}

#answers button.mirror-choice::after { content: none; }

.mirror-choice-art { position: relative; display: block; width: 100%; }
.mirror-relic {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 7px #000c) drop-shadow(0 0 12px color-mix(in srgb, var(--reflection) 23%, transparent));
}
.mirror-choice-label {
  color: color-mix(in srgb, var(--reflection) 68%, #fff2e6);
  font: 650 clamp(11px, 3.3vw, 14px)/1.35 Pretendard, sans-serif;
  text-align: center;
  word-break: keep-all;
}

.mirror-glass-color {
  position: absolute;
  inset: 0;
  clip-path: var(--glass);
  background: radial-gradient(ellipse at 54% 83%, var(--reflection), transparent 51%);
  opacity: .46;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes mirror-veil-rise {
  from { opacity: .18; transform: translateY(102%); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mirror-line-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mirror-relic-rise {
  0% { visibility: hidden; opacity: 0; transform: translateY(calc(100% + 76px)) scale(.94); }
  22% { visibility: visible; opacity: 1; }
  82% { transform: translateY(-4px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}
.mirror-story { font: 400 15px/1.62 Pretendard, sans-serif; word-break: keep-all; }

@media (max-width: 350px), (max-height: 650px) {
  .stage[data-shot="mirror"] .dialogue.cinematic {
    top: max(62px, calc(env(safe-area-inset-top) + 52px));
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  }
  .mirror-centerpiece { width: min(79%, 35svh); }
  .mirror-options { gap: 5px; }
  .mirror-story { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-shot="mirror"]::after { animation: none; }
}

.mirror-birth-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mirror-birth-details > div { min-width: 0; }
.dialogue.cinematic #answers .mirror-birth-details :is(input, select) {
  width: 100%; min-width: 0; min-height: 44px; margin: 0 0 10px; padding: 8px 10px;
  border: 1px solid #dac6b66b; border-radius: 10px; color: #fff2e6;
  background: #21151bc9; font: 16px Pretendard, sans-serif; color-scheme: dark;
}

.stage[data-shot="mirror-result"] .dialogue.cinematic { justify-content: end; top: 60px; }
@keyframes mirror-open {
  from { opacity: 0; transform: perspective(600px) rotateX(41deg) scale(.64); }
  62% { opacity: 1; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}
@keyframes mirror-face-in {
  0%, 23% { opacity: 0; filter: blur(14px); transform: scale(1.15); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.mirror-result-card {
  padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--reflection) 40%, transparent);
  border-radius: 14px; background: #150e15e8; color: #ffebd8;
}
.mirror-result-card h1 { margin: 4px 0 7px; font: 700 clamp(20px, 5.9vw, 27px)/1.3 Gowun, serif; word-break: keep-all; }
.mirror-result-card .mirror-story { margin: 0; }
.stage[data-shot="mirror-result"] .dialogue.cinematic .mirror-result-sector {
  color: color-mix(in srgb, var(--reflection) 73%, #fff1df);
  font: 700 clamp(16px, 4.6vw, 20px)/1.35 Gowun, serif;
  padding: 0;
}
.mirror-result-kicker {
  margin: 0;
  color: color-mix(in srgb, var(--reflection) 74%, #fff1df);
  font: 700 14px/1.35 Pretendard, sans-serif;
}
.mirror-loader {
  display: grid; justify-items: center; gap: 14px; padding: 0 14px;
  text-align: center; color: #fff1dc; font: 20px/1.5 Gowun, serif; text-shadow: 0 2px 8px #000;
}
.stage[data-shot="mirror-loading"] #still { object-position: center 39%; }
.stage[data-shot="mirror-loading"] #shade {
  background: linear-gradient(180deg, #09060938, transparent 30%, #0d080d38 54%, #0d080de8 88%, #0d080d);
}
.stage[data-shot="mirror-loading"] .dialogue.cinematic {
  bottom: max(32px, 9svh, env(safe-area-inset-bottom));
}
.mirror-loader p { margin: 0; }
.mirror-loader-spinner {
  width: 57px; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--reflection) 23%, transparent); border-top-color: var(--reflection);
  background: radial-gradient(circle, color-mix(in srgb, var(--reflection) 30%, transparent), transparent 67%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--reflection) 42%, transparent);
  animation: mirror-loader-spin 950ms linear infinite;
}
@keyframes mirror-loader-spin { to { transform: rotate(360deg); } }

.stage:is([data-shot="mirror-invitation"],[data-shot="mirror"]) #still {
  object-position: center 32%;
  transform: scale(1.34);
  transform-origin: 50% 62%;
}
.stage[data-shot="mirror-invitation"] #shade {
  background: linear-gradient(180deg, #08050a31, transparent 34%, #0b080a32 58%, #0b080ced 100%);
}
.stage[data-shot="mirror-invitation"] .dialogue.cinematic {
  top: 0;
  bottom: max(72px, 20svh, env(safe-area-inset-bottom));
  justify-content: flex-end;
  gap: clamp(12px, 3svh, 24px);
}
.stage[data-shot="mirror-invitation"] .dialogue.cinematic .cinematic-line {
  position: absolute;
  top: max(66px, 12svh, calc(env(safe-area-inset-top) + 48px));
  animation: mirror-line-in 1s ease-out 180ms both;
}
.stage[data-shot="mirror-invitation"] .mirror-centerpiece {
  order: 0;
  width: min(91%, 363px, 43svh);
  margin: 0;
}
.stage[data-shot="mirror-invitation"] .mirror-centerpiece::before {
  content: '';
  position: absolute;
  inset: -13%;
  z-index: -1;
  background: radial-gradient(ellipse, #b9955539 36%, #bc945862 51%, #698dac31 60%, transparent 73%);
  animation: mirror-heartbeat-glow 4.8s ease-in-out infinite;
}
.stage[data-shot="mirror-invitation"] .mirror-centerpiece-reflection {
  background: radial-gradient(ellipse at 67% 66%, #a6e0f583, transparent 30%),
    conic-gradient(from 18deg, transparent 9%, #7dc5d2a0 29%, transparent 40%, #d5a65b8a 68%, transparent 87%);
}
.stage[data-shot="mirror-invitation"] .mirror-centerpiece-title { font-size: clamp(17px, 5.2vw, 25px); }
.stage[data-shot="mirror-invitation"] #answers:empty { display: none; }

.stage[data-shot="mirror"] .dialogue.cinematic {
  bottom: max(58px, 11svh, calc(env(safe-area-inset-bottom) + 24px));
}
.stage[data-shot="mirror"] .mirror-options { align-items: end; }
.stage[data-shot="mirror"] .mirror-choice-art {
  width: min(100%, 22svh, 145px);
  margin: auto;
}
.stage[data-shot="mirror"] .mirror-choice .mirror-relic { max-height: 32svh; object-fit: fill; }

.stage[data-shot="mirror-passage"] #still {
  transform-origin: 50% 56%;
  animation: mirror-shrine-depth 4s cubic-bezier(.46,.08,.77,.86) both;
}
.mirror-passage {
  position: absolute; inset: 0; z-index: 4; overflow: hidden;
  color: var(--reflection); pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%, #08030b33, #0a0611b0 72%);
}
.mirror-passage-gate {
  position: absolute; left: 50%; top: 45%; width: min(49%, 235px, 36svh);
  transform-origin: 50% 71%;
  animation: mirror-gate-pull 2.85s cubic-bezier(.41,.07,.81,.89) both;
}
.mirror-passage-gate .mirror-relic { filter: drop-shadow(0 0 20px currentColor); }
.mirror-tunnel, .mirror-tunnel-trails, .mirror-passage-flash { position: absolute; inset: 0; }
.mirror-tunnel {
  background: radial-gradient(ellipse at 50% 52%, #020209 10%, transparent 48%),
              repeating-conic-gradient(from 20deg at 50% 52%, transparent 0deg 18deg, color-mix(in srgb, currentColor 32%, transparent) 26deg, transparent 38deg 53deg);
  mask-image: radial-gradient(ellipse at 50% 52%, transparent 8%, #000a 37%, black 72%);
  animation: mirror-tunnel-turn 4s ease-in-out both;
}
.mirror-tunnel-ring {
  position: absolute; left: 50%; top: 53%;
  width: 54%; aspect-ratio: 1; border-radius: 44%;
  border: 2px solid currentColor; outline: 8px double #ffffff38;
  box-shadow: 0 0 24px currentColor, inset 0 0 22px currentColor;
  animation: mirror-depth-ring 1370ms cubic-bezier(.42,.05,.72,.88) var(--delay) both;
}
.mirror-tunnel-spark {
  position: absolute; left: 50%; top: 53%; width: 2px; height: 28px;
  border-radius: 50%; transform-origin: center top;
  background: linear-gradient(transparent, currentColor, #fffbe4); box-shadow: 0 0 7px currentColor;
  animation: mirror-depth-spark 1040ms ease-in var(--delay) both;
}
.mirror-passage-flash {
  background: radial-gradient(ellipse at 50% 52%, #fff8eb 0 12%, color-mix(in srgb, #fff8eb 65%, currentColor) 33%, currentColor 62%, #140919 100%);
  animation: mirror-passage-flare 4s ease-in-out both;
}
@keyframes mirror-shrine-depth {
  from { transform: scale(1); filter: brightness(.82); }
  to { transform: scale(2.85) rotate(9deg); filter: brightness(.19) blur(8px); }
}
@keyframes mirror-gate-pull {
  0% { transform: translate(-50%,-63%) scale(.75) rotate(-8deg); opacity: .15; }
  29% { transform: translate(-50%,-63%) scale(1) rotate(0); opacity: 1; }
  56% { transform: translate(-50%,-63%) scale(1.32) rotate(7deg); opacity: .98; }
  100% { transform: translate(-50%,-63%) scale(7.3) rotate(34deg); opacity: 0; filter: blur(5px); }
}
@keyframes mirror-tunnel-turn {
  0%, 12% { opacity: 0; transform: scale(.85) rotate(0); }
  76% { opacity: .93; }
  to { opacity: .1; transform: scale(1.5) rotate(66deg); }
}
@keyframes mirror-depth-ring {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(-22deg) scale(.12); }
  26% { opacity: .7; }
  to { opacity: 0; transform: translate(-50%,-50%) rotate(41deg) scale(4.3); }
}
@keyframes mirror-depth-spark {
  0% { opacity: 0; transform: rotate(var(--angle)) translateY(5px) scaleY(.25); }
  23% { opacity: .9; }
  to { opacity: 0; transform: rotate(var(--angle)) translateY(48svh) scaleY(3.4); }
}
@keyframes mirror-passage-flare {
  0%, 56% { opacity: 0; }
  82% { opacity: .93; }
  to { opacity: 0; }
}

.stage[data-shot="mirror-result"] .dialogue.cinematic {
  top: max(52px, env(safe-area-inset-top));
  bottom: max(17px, env(safe-area-inset-bottom));
  justify-content: space-between;
}
.mirror-character-slot {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-height: 0;
  container-type: size;
}
.mirror-centerpiece.mirror-character-frame {
  width: min(90%, 340px, 38svh);
  width: min(90%, 340px, 38svh, 63cqh);
  display: block;
  aspect-ratio: auto;
  filter: none;
  animation: mirror-open 920ms cubic-bezier(.16,.72,.22,1) both;
}
.mirror-character-frame::before {
  content: '';
  position: absolute; z-index: -1; inset: 10% -20%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--reflection) 63%, transparent) 8%, color-mix(in srgb, var(--reflection) 30%, transparent) 44%, transparent 70%);
  animation: mirror-heartbeat-glow 3s ease-in-out infinite;
  pointer-events: none;
}
.mirror-character-glass { position: absolute; inset: 0; clip-path: var(--glass); }
.mirror-character-portrait {
  position: absolute; top: 45%; left: 10%;
  width: 80%; height: 48%; aspect-ratio: auto;
  object-fit: cover; object-position: var(--face-position, center 24%);
  border-radius: 0; mask-image: none;
  animation: mirror-face-in 1050ms cubic-bezier(.22,.7,.25,1) both;
}
.mirror-character-frame[data-mirror="triangle"] { --face-position: center 12%; --glass: polygon(50% 50%, 84% 88%, 15% 88%); }
.mirror-character-frame[data-mirror="triangle"] .mirror-character-glass::before {
  content: '';
  position: absolute;
  inset: 49% 12% 10%;
  background: var(--portrait-wash) center 42% / cover;
  filter: blur(9px) brightness(.55);
}
.mirror-character-frame[data-mirror="triangle"] .mirror-character-portrait {
  top: 69%; left: 50%; width: 68%; height: auto;
  translate: calc(-1 * var(--eye-x, 50%)) calc(-1 * var(--eye-y, 27%));
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 84%, transparent);
}
.mirror-character-frame[data-mirror="square"] { --face-position: center top; --glass: polygon(18% 52%, 81% 52%, 81% 89%, 18% 89%); }
.mirror-character-frame[data-mirror="square"] .mirror-character-portrait { top: 52%; left: 16%; width: 67%; height: 40%; }
.mirror-character-frame[data-mirror="circle"] { --glass: ellipse(33% 20% at 48% 71%); }
.mirror-character-frame[data-mirror="circle"] .mirror-character-portrait { top: 49%; }
.mirror-character-haze {
  position: absolute; z-index: 2; inset: 42% 10% 6%;
  background: radial-gradient(ellipse at 50% 50%, transparent 17%, color-mix(in srgb, var(--reflection) 29%, transparent) 82%);
  pointer-events: none; animation: mirror-heartbeat-glow 3s ease-in-out infinite;
}
@keyframes mirror-heartbeat-glow {
  0%, 40%, 100% { opacity: .42; transform: scale(.93); }
  49% { opacity: .87; transform: scale(1.075); }
  56% { opacity: .49; transform: scale(.99); }
  64% { opacity: .68; transform: scale(1.03); }
  75% { opacity: .43; transform: scale(.95); }
}
.mirror-result-card { text-align: center; padding: 12px 15px 14px; }
.mirror-result-card h1 { margin: 6px 0; }
.mirror-result-card .mirror-story { max-width: 32em; margin: auto; font: 400 clamp(12px, 3.35vw, 14px)/1.6 Gowun, serif; }

@media (max-height: 520px) {
  .stage[data-shot="mirror"] .dialogue.cinematic { bottom: max(24px, env(safe-area-inset-bottom)); }
  .stage[data-shot="mirror-result"] .dialogue.cinematic { top: 46px; bottom: max(12px, env(safe-area-inset-bottom)); gap: 6px; }
  .mirror-centerpiece.mirror-character-frame { width: min(75%, 35svh, 63cqh); }
  .stage[data-shot="mirror-result"] #answers { gap: 8px; }
  .mirror-result-card { padding-block: 8px; }
}

/* === 🎰 3-Mirror Slot-Machine Gacha === */
.mirror-slot-window {
  position: absolute;
  inset: 14% 12% 16%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 12, 10, 0.88) 0%, rgba(12, 6, 8, 0.94) 100%);
  border: 1.5px solid rgba(245, 198, 120, 0.55);
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
  transition: opacity 220ms ease, transform 280ms cubic-bezier(.2,.8,.2,1);
}
.mirror-choice.slot-spinning .mirror-slot-window,
.mirror-choice.slot-locked .mirror-slot-window {
  opacity: 1;
  transform: scale(1);
}
.mirror-slot-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #d93829;
  border-radius: 5px;
  background: rgba(185, 28, 28, 0.22);
  color: #ffd8b5;
  font: 700 18px/1 'Gowun Batang', serif;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
}
.mirror-slot-name {
  max-width: 92%;
  text-align: center;
  color: #fde6b4;
  font: 700 10.5px/1.25 'Gowun Batang', serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mirror-choice.slot-spinning .mirror-slot-window {
  border-color: rgba(255, 228, 152, 0.95);
  box-shadow: 0 0 22px rgba(255, 206, 108, 0.55), inset 0 0 12px rgba(255, 212, 120, 0.28);
  animation: slot-blur-pulse 130ms linear infinite;
}
@keyframes slot-blur-pulse {
  0%, 100% { filter: brightness(1.15); border-color: rgba(255, 218, 130, 0.72); }
  50% { filter: brightness(1.38); border-color: rgba(255, 240, 185, 1); }
}
.mirror-choice.slot-dimmed {
  opacity: 0;
  transform: scale(0.82);
  filter: blur(5px);
  pointer-events: none;
  transition: opacity 780ms ease, transform 780ms ease, filter 780ms ease;
}
.mirror-choice.slot-winner {
  z-index: 9;
  transform: translate(var(--winner-dx, 0px), -58px) scale(1.52);
  filter: drop-shadow(0 0 38px rgba(255, 214, 120, 0.92));
  transition: transform 980ms cubic-bezier(0.22, 1, 0.36, 1), filter 980ms ease;
}
.mirror-choice.slot-winner .mirror-slot-window {
  border-color: #fff0be;
  box-shadow: 0 0 32px rgba(255, 206, 108, 0.88), inset 0 0 18px rgba(255, 220, 130, 0.48);
  transition: box-shadow 900ms ease, border-color 900ms ease;
}

/* === 📜 Long-Breath Scrollable Bangmun Reveal (Hwarang Visible Top → Image-First Scroll) === */
.stage[data-shot="mirror-result"] .dialogue.cinematic {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 18px max(48px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  background: linear-gradient(180deg, rgba(14, 8, 10, 0.05) 0%, rgba(14, 8, 10, 0.18) 28%, rgba(14, 8, 10, 0.86) 50%, rgba(12, 7, 9, 0.97) 72%);
}
.share-card-btn {
  position: absolute;
  z-index: 9;
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 107, 0.55);
  background: rgba(24, 12, 14, 0.78);
  color: #ffe394;
  font: 700 12.5px/1.2 Pretendard, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.share-card-btn:hover, .share-card-btn:focus-visible {
  background: rgba(255, 216, 107, 0.18);
  color: #fff6d6;
}
.bangmun-scroll-flow {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding-top: min(48svh, 355px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.bangmun-lead-whisper {
  margin: 0;
  text-align: center;
  font: 700 14px/1.4 'Gowun Batang', serif;
  color: #ffd86b;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.bangmun-sheet {
  position: relative;
  width: min(100%, 306px);
  padding: 12px 12px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 49.4%, rgba(92, 66, 38, 0.09) 49.7%, transparent 50.2%),
    radial-gradient(circle at 20% 15%, #efe3c8 0%, #dfd0ae 62%, #cdb992 100%);
  border: 2px solid #4a3520;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.72), inset 0 0 24px rgba(74, 48, 22, 0.25);
  color: #20150c;
  text-align: left;
  animation: mirror-open 760ms cubic-bezier(.16,.72,.22,1) both;
}
.bangmun-sheet[data-rarity="SSR"] {
  border-color: #c88b26;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.74), 0 0 24px rgba(245, 185, 76, 0.35);
}
.bangmun-top {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 0;
}
.bangmun-caption-block {
  width: 100%;
  text-align: center;
  padding: 24px 6px 20px;
}
.bangmun-title-solo {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Gowun Batang', serif;
  word-break: keep-all;
}
.bangmun-title-prefix {
  font-size: clamp(16px, 4.4vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: #e6d5c3;
}
.bangmun-title-noun {
  font-size: clamp(28px, 8.2vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #ffd86b;
  text-shadow: 0 0 22px rgba(255, 206, 92, 0.48), 0 3px 12px rgba(0, 0, 0, 0.85);
}
.bangmun-scene-solo {
  margin: 0 0 28px;
  font: 400 clamp(15px, 4vw, 16.5px)/2.45 'Gowun Batang', serif;
  color: #e4d3c2;
  word-break: keep-all;
}
.bangmun-portrait-box {
  position: relative;
  border: 2px solid #2b1d12;
  background: #e5d8bc;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.bangmun-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}
.bangmun-sheet[data-frame="bangmun"] .bangmun-portrait,
.bangmun-sheet[data-frame="minhwa"] .bangmun-portrait,
.bangmun-sheet[data-frame="portrait"] .bangmun-portrait {
  filter: saturate(0.84) contrast(1.04) sepia(0.18) brightness(0.98);
}
.bangmun-seal {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #a81c1c;
  outline: 1px solid rgba(168, 28, 28, 0.55);
  outline-offset: -4px;
  background: rgba(242, 232, 212, 0.86);
  color: #a81c1c;
  font: 700 18px/1 'Gowun Batang', serif;
  transform: rotate(-4deg);
}
.bangmun-hanja-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  border-left: 1.5px solid rgba(43, 29, 18, 0.35);
}
.bangmun-hanja-main {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font: 700 15px/1.2 'Gowun Batang', serif;
  letter-spacing: 0.14em;
  color: #1f130a;
}
.bangmun-realm-chip {
  font: 700 10px/1.2 Pretendard, sans-serif;
  color: #8f1d1d;
  text-align: center;
  word-break: keep-all;
}
.bangmun-copy {
  border-top: 1.5px solid rgba(43, 29, 18, 0.32);
  padding-top: 12px;
}
.bangmun-karma-pill {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 9px;
  border: 1px solid rgba(143, 29, 29, 0.45);
  background: rgba(143, 29, 29, 0.08);
  color: #8f1d1d;
  font: 700 11.5px/1.3 Pretendard, sans-serif;
}
.bangmun-title {
  margin: 0 0 8px;
  font: 700 clamp(18px, 5vw, 22px)/1.35 'Gowun Batang', serif;
  color: #180f08;
  word-break: keep-all;
}
.bangmun-story {
  margin: 0 0 10px;
  font: 400 clamp(13.5px, 3.6vw, 15px)/1.68 'Gowun Batang', serif;
  color: #2e1f12;
  word-break: keep-all;
}
.bangmun-reincarnation {
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(43, 29, 18, 0.28);
  font: 700 clamp(12.5px, 3.3vw, 13.5px)/1.55 'Gowun Batang', serif;
  color: #6b2416;
  word-break: keep-all;
}
