.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:root {
  color-scheme: dark;
  --line: rgba(168, 139, 250, .28);
  --text: #e9e6f2;
  --notice-band-edge: rgba(118, 116, 128, .95);
  --white-screen-font-size: clamp(12px, min(4.2vw, 2.9dvh), 18px);
  --scene-background: #08080f url('/content/tutorial/assets/background-scene.webp') center / cover no-repeat;
  --card-rest-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
.app [hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  background: radial-gradient(circle at 50% 18%, #252038 0, #111019 36%, #050509 100%);
  color: var(--text);
  font-family: "Shippori Mincho", serif;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button, input { font: inherit; }
button { color: inherit; }

.startup-overlay {
  position: absolute; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 8, 15, .97); color: rgba(232, 228, 244, .86);
  text-align: center; pointer-events: auto;
}
.startup-overlay__content { display: grid; justify-items: center; gap: 8px; }
.startup-overlay__title { margin: 0; font-size: 14px; letter-spacing: .12em; }
.startup-overlay__message { margin: 0; color: rgba(232, 228, 244, .58); font-size: 10px; }
.startup-overlay__noscript { margin: 4px 0 0; color: rgba(232, 228, 244, .5); font-size: 9px; }

.session-replaced {
  position: absolute; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 8, 15, .97); color: rgba(232, 228, 244, .86);
  text-align: center; pointer-events: auto;
}
.session-replaced:focus { outline: none; }
.session-replaced__message { margin: 0; font-size: 14px; line-height: 1.8; letter-spacing: .06em; }

.app {
  width: min(100%, 73.9vh);
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--scene-background);
  box-shadow: 0 0 60px rgba(0, 0, 0, .65);
}

.entry {
  height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(rgba(8, 8, 15, .72), rgba(8, 8, 15, .96));
}
.eyebrow { margin: 0; letter-spacing: .32em; color: rgba(200, 185, 255, .55); font-size: 11px; }
.entry h1 { margin: 10px 0 14px; font-weight: 500; letter-spacing: .12em; font-size: clamp(28px, 9vw, 42px); }
.entry__lead { margin: 0 0 12px; color: rgba(232, 228, 244, .72); font-size: 12px; line-height: 1.75; }
.notice { margin: 8px 0; padding: 10px 12px; border: 1px solid rgba(255, 190, 110, .35); color: #f4d9b7; font-size: 11px; line-height: 1.6; }
.entry-step { margin-top: 10px; padding: 12px; border: 1px solid rgba(168, 139, 250, .2); background: rgba(5, 4, 12, .5); }
.entry-step__title { margin: 0; color: rgba(235, 230, 250, .9); font-size: 12px; letter-spacing: .04em; }
.entry-step__number { display: inline-grid; width: 20px; height: 20px; margin-right: 5px; place-items: center; border: 1px solid var(--line); color: #c4b3ff; }
.entry-step__help { margin: 6px 0 0; color: rgba(232, 228, 244, .55); font-size: 9px; line-height: 1.6; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.role-card {
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(80, 54, 130, .42), rgba(12, 10, 25, .9));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 11px; cursor: pointer;
}
.role-card__name { font-size: 18px; letter-spacing: .12em; }
.join-form { margin-top: 9px; font-size: 10px; }
.join-form label { display: block; margin-bottom: 7px; color: rgba(232, 228, 244, .65); }
.join-form__row { display: flex; gap: 8px; }
.join-form input {
  min-width: 0; flex: 1; padding: 11px; text-transform: uppercase; letter-spacing: .18em;
  color: white; background: rgba(4, 4, 10, .8); border: 1px solid var(--line); border-radius: 0;
}
.join-form button, .game-header button {
  padding: 8px 12px; border: 1px solid var(--line); background: rgba(35, 25, 62, .88); cursor: pointer;
}

.pre-scene-intro {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: max(24px, env(safe-area-inset-top)) clamp(20px, 6vw, 44px) max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(8, 8, 15, .78), rgba(8, 8, 15, .94));
}
.pre-scene-intro.is-closing {
  animation: preSceneIntroOut .25s ease-in forwards;
  pointer-events: none;
}
.pre-scene-intro.is-page-switching .pre-scene-intro__content {
  animation: preSceneIntroPageSwap .25s ease-in-out both;
}
@keyframes preSceneIntroOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes preSceneIntroPageSwap {
  0%, 100% { opacity: 1; }
  45%, 55% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pre-scene-intro.is-closing,
  .pre-scene-intro.is-page-switching .pre-scene-intro__content { animation: none; }
}
.pre-scene-intro__content {
  width: min(100%, 36rem); margin: auto; display: grid; justify-items: center;
  gap: clamp(24px, 6vh, 42px); text-align: center;
}
.pre-scene-intro__text {
  margin: 2em 0; margin: 1lh 0; color: rgba(238, 233, 250, .9);
  font-size: clamp(15px, 4.2vw, 19px); line-height: 2;
  white-space: pre-line;
}
.pre-scene-intro__continue {
  min-height: 48px; font-size: 1.1em; cursor: pointer;
}
.pre-scene-intro__continue:focus { outline: none; }
:root[data-input-modality="keyboard"] .pre-scene-intro__continue:focus-visible {
  outline: 2px solid #d8c9ff; outline-offset: 3px;
}

.game { height: 100%; display: flex; flex-direction: column; position: relative; }
.game-header {
  position: relative;
  min-height: calc(max(4px, env(safe-area-inset-top)) + 48px);
  padding: max(4px, env(safe-area-inset-top)) 8px 4px;
  display: flex; align-items: center; gap: 6px; z-index: 30;
  background: rgba(5, 5, 12, .88); border-bottom: 1px solid var(--line); font-size: 10px;
}
.game:has(> .choice-panel:not([hidden])) > .game-header { z-index: 65; }
.game-header__identity { min-width: 0; margin-right: auto; display: flex; flex-direction: column; gap: 3px; }
.game-header__identity > span { color: rgba(225, 218, 245, .78); }
.game-header__identity > .member-status { color: rgba(190, 178, 220, .62); }
.member-status { font-size: 8px; white-space: nowrap; }
.tap-hint {
  position: absolute; left: 0; right: 0;
  top: max(4px, env(safe-area-inset-top)); bottom: 2px;
  display: flex; align-items: flex-end; justify-content: center;
  font-size: 8px; white-space: nowrap; pointer-events: none;
  color: rgba(190, 178, 220, .62);
}
.game-header button {
  padding: 4px 8px; font-size: 9px;
  font-family: "Jost", sans-serif; letter-spacing: .08em;
}
.game-header__voice-toggle {
  position: relative; min-width: 24px; min-height: 24px; padding: 2px 4px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.game-header__voice-icon {
  display: block; height: 14px; width: auto; aspect-ratio: 10.710986 / 8.3731489;
  -webkit-user-drag: none; -webkit-user-select: none; user-select: none; pointer-events: none;
}
.game-header__voice-toggle.is-muted .game-header__voice-icon { opacity: .55; }
.game-header__voice-toggle.is-muted::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px;
  background: var(--text); border-radius: 1px; pointer-events: none;
  transform: translate(-50%, -50%) rotate(-40deg);
}
.voice-panel-catcher { position: absolute; inset: 0; z-index: 84; background: transparent; }
.voice-panel {
  position: absolute; z-index: 86; width: max-content; min-width: 60px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: stretch; gap: 9px;
  padding: 10px 8px 8px; background: rgba(20, 13, 35, .97);
  border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .45);
}
.voice-volume-slider {
  --voice-volume: 50%; position: relative;
  height: clamp(56px, calc(100vh - var(--voice-panel-top, 58px) - 61px), 150px);
  flex: 0 0 clamp(56px, calc(100vh - var(--voice-panel-top, 58px) - 61px), 150px);
  height: clamp(56px, calc(100dvh - var(--voice-panel-top, 58px) - 61px), 150px);
  flex: 0 0 clamp(56px, calc(100dvh - var(--voice-panel-top, 58px) - 61px), 150px);
  touch-action: none; cursor: ns-resize; outline: none;
}
.voice-volume-slider:focus-visible { outline: 2px solid #c7b6f2; outline-offset: 2px; }
.voice-volume-slider__track, .voice-volume-slider__fill {
  position: absolute; left: 50%; width: 5px; transform: translateX(-50%); border-radius: 4px;
}
.voice-volume-slider__track { top: 0; bottom: 0; background: rgba(222, 214, 245, .25); }
.voice-volume-slider__fill { bottom: 0; height: var(--voice-volume); background: #b9a7e8; }
.voice-volume-slider__thumb {
  position: absolute; left: 50%; bottom: calc(var(--voice-volume) - 7px); width: 14px; height: 14px;
  transform: translateX(-50%); border-radius: 50%; background: #f1edff; border: 1px solid #7d68b4;
  box-sizing: border-box;
}
.voice-volume-slider__thumb::before { content: ''; position: absolute; inset: -5px; }
.voice-panel__mute {
  min-width: 42px; min-height: 24px; padding: 4px 5px; border: 1px solid var(--line);
  background: rgba(35, 25, 62, .88); color: inherit; cursor: pointer; font-size: 9px; white-space: nowrap;
  font-family: "Jost", sans-serif; letter-spacing: .08em;
}
.voice-panel__mute::after {
  content: attr(data-width-label); display: block; height: 0; overflow: hidden; visibility: hidden;
}
.voice-panel__mute:focus-visible { outline: 2px solid #c7b6f2; outline-offset: 2px; }
.invite-code { min-width: 126px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.2; }
.game-header .invite-code { padding-top: 2px; padding-bottom: 2px; }
.invite-code span { font-size: 7px; color: rgba(210, 200, 235, .58); }
.invite-code strong { font-size: 12px; letter-spacing: .12em; color: #f1edff; }
.phase-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 12;
  display: flex; align-items: center; justify-content: center;
  min-height: 22px; padding: 4px 12px;
  font-size: clamp(11px, 3.2vw, 14px); letter-spacing: .1em;
  color: rgba(214, 205, 240, .82); pointer-events: none;
  text-shadow: 0 1px 3px rgba(4, 4, 10, .85), 0 0 10px rgba(4, 4, 10, .6);
}
.phase-bar__round {
  position: absolute; left: 12px;
  color: rgba(226, 217, 255, .92); letter-spacing: .14em;
}
.phase-bar__phase { letter-spacing: .16em; }
.phase-bar:not([hidden]) ~ .board { --box-draw-top: 36px; }

.round-flourish {
  position: absolute; inset: 0; z-index: 16;
  display: grid; place-items: center; pointer-events: none;
  font-size: clamp(28px, 11vw, 56px); letter-spacing: .18em;
  color: #f3eefc; text-shadow: 0 0 18px rgba(124, 58, 237, .75), 0 0 42px rgba(76, 29, 149, .6);
}
.round-flourish__label {
  --round-flourish-fill: rgba(0, 0, 0, .6);
  display: block; padding: .22em 1.6em; line-height: 1.25;
  background: linear-gradient(90deg, transparent,
    var(--round-flourish-fill) 12%, var(--round-flourish-fill) 88%, transparent);
}
.round-flourish.is-playing { animation: roundFlourish 1.6s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .round-flourish.is-playing { animation: roundFlourishStill 1.6s steps(1, end) both; }
}

.status {
  position: absolute; top: 56px; right: 8px; z-index: 40;
  max-width: 88%; padding: 6px 12px; border: 1px solid rgba(167, 139, 250, .28);
  background: rgba(7, 5, 14, .88); color: rgba(224, 216, 245, .8); font-size: 10px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.status.is-visible { opacity: 1; }
.status.status--at-dialogue { top: auto; bottom: max(8px, env(safe-area-inset-bottom)); right: 12px; }
.game:has(> .status.status--at-dialogue.is-visible) .dialogue__next { visibility: hidden; }

.game__scene {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
  background: var(--scene-background);
}
.role-portrait {
  position: absolute; top: 0; left: 50%; z-index: 14;
  height: 100%; width: auto; max-width: none;
  transform: translate(-50%, 3%);
  pointer-events: none; -webkit-user-select: none; user-select: none;
  opacity: 0; transition: opacity .6s ease;
}
.role-portrait.is-visible { opacity: 1; }
.game.is-ending-scene :is(.board, .tap-hint) {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
@media (prefers-reduced-motion: reduce) {
  .role-portrait { transition: none; }
  .game.is-ending-scene :is(.board, .tap-hint) { transition: none; }
}
.board {
  position: absolute; inset: 0; overflow: hidden; container-type: size;
  display: grid; place-items: center; background: var(--scene-background);
  --box-draw-top: 8px; --box-draw-height: 56px;
  --box-draw-hint-top: calc(var(--box-draw-top) + var(--box-draw-height) + 6px);
  --box-draw-hint-height: clamp(14px, 3.92vw, 18.2px);
  perspective: 900px; perspective-origin: 50% 55%;
}
.life-entry-flight { position: absolute; inset: 0; z-index: 32; pointer-events: none; }
.life-entry-flight__token {
  position: absolute; width: var(--life-flight-width); height: var(--life-flight-height);
  transform-origin: center;
  filter: drop-shadow(0 0 12px rgba(173, 157, 255, 1));
}
.life-entry-flight__token.is-holding {
  animation: lifeTokenHold .3s cubic-bezier(.2, .7, .25, 1) both;
}
.life-entry-flight__token.is-landing {
  animation: lifeTokenLand .86s cubic-bezier(.2, .7, .25, 1) both;
}
.life-marker.is-life-arriving { opacity: 0; }
@keyframes lifeTokenHold {
  0% { opacity: 0; transform: scale(.7); }
  100% { opacity: 1; transform: scale(3.8); }
}
@keyframes lifeTokenLand {
  0% { opacity: 1; transform: scale(3.8); }
}
.defense-card-highlight {
  position: absolute; inset: 0; z-index: 30;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-sizing: border-box; padding: 8px 0;
  pointer-events: none;
}
.defense-card-highlight__card { position: relative; flex: 0 1 auto; width: min(58%, 250px); max-height: 88%; }
.defense-card-highlight__label {
  --box-draw-fill: rgba(238, 236, 242, .94);
  --box-draw-line: var(--notice-band-edge);
  color: #111;
  flex: 0 0 auto; margin: 0; box-sizing: border-box; display: flex;
  align-items: center; justify-content: center;
  min-height: var(--box-draw-height);
  padding: 10px min(26px, calc(var(--cq-w, 1vw) * 8)); padding: 10px min(26px, 8cqw);
  width: max-content; max-width: min(calc(100% - 32px), 440px);
  text-align: center; line-height: 1.25;
  font-size: 14px; letter-spacing: .12em;
  background:
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      left top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      right top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-fill) 25%, var(--box-draw-fill) 75%, transparent);
}
.defense-card-highlight.is-entering .defense-card-highlight__label {
  animation: defenseLabelIn .3s ease-out .42s both;
}
.defense-card-highlight.is-departing .defense-card-highlight__label {
  opacity: 0; transition: opacity .2s;
}
@keyframes defenseLabelIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.defense-card-highlight__image {
  display: block; width: 100%; max-height: 88dvh; object-fit: contain;
  border-radius: 3px; box-shadow: 0 12px 36px rgba(0, 0, 0, .72);
}
.defense-card-highlight.is-entering .defense-card-highlight__card {
  animation: defenseCardAppear .42s cubic-bezier(.15, 0, 0, 1) both;
}
.defense-card-highlight.is-departing .defense-card-highlight__card {
  transform-origin: center center;
  animation: defenseCardDepart .85s cubic-bezier(.2, .65, .25, 1) both;
}
.defense-card-highlight__triangle {
  position: absolute; top: 0; width: 12%; height: 16%; overflow: visible;
  color: #ff4545; filter: drop-shadow(0 0 2px rgba(255, 65, 65, .85)) drop-shadow(0 0 5px rgba(220, 38, 38, .55));
}
.defense-card-highlight.is-departing .defense-card-highlight__triangle {
  animation: none; opacity: 0;
}
.defense-card-highlight.is-entering .defense-card-highlight__triangle {
  animation: defenseTrianglePulse 5.5s ease-in-out infinite;
}
.defense-card-highlight__triangle path {
  fill: none; stroke: currentColor; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.defense-card-highlight__triangle--left { left: 0; }
.defense-card-highlight__triangle--right { right: 0; }
@keyframes defenseTrianglePulse {
  0%, 100% {
    opacity: .78;
    filter: drop-shadow(0 0 2px rgba(255, 65, 65, .8)) drop-shadow(0 0 5px rgba(220, 38, 38, .45));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 3px rgba(255, 90, 90, 1)) drop-shadow(0 0 10px rgba(239, 40, 40, .9));
  }
}
@keyframes defenseLinePulse {
  0%, 100% { opacity: .78; }
  50% { opacity: 1; }
}
@keyframes defenseCardAppear {
  from { opacity: 0; transform: scale(.66); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes defenseCardDepart {
  from { transform: translate(0, 0) scale(1, 1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .life-entry-flight__token,
  .life-entry-flight__token.is-holding,
  .life-entry-flight__token.is-landing,
  .defense-card-highlight.is-entering .defense-card-highlight__card,
  .defense-card-highlight.is-departing .defense-card-highlight__card {
    animation: none; transform: none;
  }
  .defense-card-highlight.is-entering .defense-card-highlight__label { animation: none; }
  .defense-card-highlight.is-departing .defense-card-highlight__label { transition: none; }
  .defense-card-highlight.is-entering .defense-card-highlight__triangle {
    animation: none; opacity: 1;
    filter: drop-shadow(0 0 2px rgba(255, 65, 65, .85)) drop-shadow(0 0 5px rgba(220, 38, 38, .55));
  }
  .life-entry-flight { display: none; }
  .life-marker.is-life-arriving { opacity: 1; }
}
.board.is-card-zooming,
.board.is-card-zooming * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.board.is-appearing > .board__stage { animation: boardAppear .9s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .board.is-appearing > .board__stage { animation: none; }
}
.board::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 50px rgba(0, 0, 0, .75); }
.card-preview, .defense-card-highlight, .card-stand-illustration, .round-flourish, .preview-exit {
  transform-origin: 50% 55%;
  translate: 0 0 450px;
  scale: .5;
}
.board__stage {
  position: relative;
  width: min(calc(var(--cq-w, 1vw) * 85), calc(var(--cq-h, 1vh) * 100 * 1588 / 2167), calc(655px * 1588 / 2167));
  width: min(85cqw, calc(100cqh * 1588 / 2167), calc(655px * 1588 / 2167));
  aspect-ratio: 1588 / 2167;
  flex: none;
  background: url('/content/tutorial/assets/board_default.webp') center/100% 100% no-repeat;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .6), 0 0 60px rgba(60, 30, 100, .06);
  transform: translate(var(--board-pan-x, 0%), var(--board-pan-y, 0%))
    scale(var(--board-zoom, 1)) rotateX(28deg);
  transform-origin: 50% 50%;
  transition: transform .8s cubic-bezier(.4, 0, .2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .board__stage { transition: none; }
}
.board__shade {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .44); opacity: 0;
  transition: opacity .35s; z-index: 1; pointer-events: none;
}
.board.is-focused .board__shade { opacity: 1; }
.board.is-camera-act :is(.life-indicators, .tokens, .act-power, .demon-deck, .discard, .alter-cards, .tarots, .moment) {
  filter: brightness(.6);
  transition: filter .35s;
}
@media (prefers-reduced-motion: reduce) {
  .board.is-camera-act :is(.life-indicators, .tokens, .act-power, .demon-deck, .discard, .alter-cards, .tarots, .moment) { transition: none; }
}
.board.is-card-previewing .board__shade { opacity: .42; }
.life-indicators { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.life-marker {
  position: absolute; z-index: 2;
  height: 1.818%; width: auto; aspect-ratio: 214 / 131;
  --life-marker-step: 0; --life-orientation: rotate(0deg);
  transform: var(--life-orientation) translateY(calc(var(--life-marker-step) * 100%));
  transition: transform .32s ease-out; transform-origin: center;
}
.life-marker--player { top: 55.45%; left: 1.06%; }
.life-marker--opponent { top: 42.73%; right: 1.06%; --life-orientation: rotate(180deg); }
.life-marker.is-row-glow {
  filter: drop-shadow(0 0 7px rgba(173, 157, 255, 1))
    drop-shadow(0 0 18px rgba(124, 108, 240, .92));
}
.life-marker.is-row-glow-change {
  filter: drop-shadow(0 0 5px rgba(255, 138, 138, .9))
    drop-shadow(0 0 13px rgba(220, 38, 38, .62));
}
.card-row { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.board-card {
  position: absolute; isolation: isolate; height: 16.8%; aspect-ratio: 5 / 7; display: block;
  color: white; font-size: clamp(7px, 2.5vw, 11px); text-align: center; pointer-events: auto; cursor: pointer;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.board-card.is-entering { animation: cardIn .5s cubic-bezier(.15, 0, 0, 1) 1 both; }
.board-card.is-opponent { transform: rotate(180deg); animation-name: opponentCardIn; }
.board-card.is-entering.is-opponent { animation-name: opponentCardIn; }
.board-card.is-conflict { transform: rotate(180deg); animation-name: conflictCardIn; }
.board-card.is-entering.is-conflict { animation-name: conflictCardIn; }
.board-card.is-opponent.is-conflict { transform: rotate(360deg); animation-name: opponentConflictCardIn; }
.board-card.is-entering.is-opponent.is-conflict { animation-name: opponentConflictCardIn; }
.board-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
  border: 1px solid rgba(130, 120, 180, .3); border-radius: 3px;
  -webkit-user-drag: none; user-drag: none; pointer-events: none;
  box-shadow: var(--card-rest-shadow);
}
.board-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 3px;
  background: rgba(0, 0, 0, .4); opacity: 0;
  pointer-events: none; z-index: 1;
  transition: opacity .35s;
}
.board.is-camera-act .board-card:not(.is-focus-target)::before,
.board.is-act-power-focus .board-card::before,
.board.is-focused.is-camera-awareness .board-card::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .board.is-camera-act .board-card::before,
  .board.is-act-power-focus .board-card::before,
  .board.is-focused.is-camera-awareness .board-card::before { transition: none; }
}
.board-card.is-row-glow img {
  box-shadow: 0 0 11px 3px rgba(173, 157, 255, .9), 0 0 24px 8px rgba(124, 108, 240, .78);
}
.board-card.is-fallback.is-row-glow {
  box-shadow: 0 0 11px 3px rgba(173, 157, 255, .9), 0 0 24px 8px rgba(124, 108, 240, .78);
}
.board-card.is-focus-target img,
.board-card.is-fallback.is-focus-target {
  box-shadow: 0 0 0 2px rgba(173, 157, 255, .98),
    0 0 14px 4px rgba(149, 133, 250, .92), 0 0 30px 8px rgba(124, 108, 240, .6);
}
.board-card.is-focus-target--attacker img,
.board-card.is-fallback.is-focus-target--attacker {
  box-shadow: 0 0 0 2px rgba(255, 138, 138, .98),
    0 0 14px 3px rgba(220, 38, 38, .72), 0 0 30px 8px rgba(252, 165, 165, .3);
}
.board-card.is-focus-target--placed img,
.board-card.is-fallback.is-focus-target--placed {
  box-shadow: 0 5px 8px 0 rgba(124, 108, 240, .9), 0 12px 20px -4px rgba(149, 133, 250, .6);
}
.board-card.is-focus-target--companion img,
.board-card.is-fallback.is-focus-target--companion {
  box-shadow: var(--card-rest-shadow);
}
.moment.is-entering img { animation: boardImagePlaceGlow 1.1s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .board-card.is-entry-glow::after,
  .moment.is-entering img { animation: none; }
}
.board-card.is-fallback {
  display: grid; place-items: center;
  padding: 4px; overflow: hidden; border: 1px solid rgba(130, 120, 180, .3); border-radius: 3px;
  background: linear-gradient(145deg, #4a3b68, #15101d 64%);
  box-shadow: var(--card-rest-shadow);
}
.tokens { position: absolute; z-index: 3; inset: 0; pointer-events: none; }
.tokens--magic { z-index: 4; }
.tokens.is-carrying-move { z-index: 5; }
.token-move-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 14;
  pointer-events: none;
  overflow: visible;
}
@media (prefers-reduced-motion: reduce) {
  .token-move-arrow { display: none; }
}
.tarots { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.tarot {
  position: absolute; height: var(--tarot-height, 30.6%); aspect-ratio: 480 / 951; display: block;
}
.tarot--opponent { transform: rotate(180deg); }
.tarot img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 2px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .75);
}
.tarot.is-row-glow img {
  box-shadow: 0 3px 10px rgba(0, 0, 0, .75),
    0 0 8px rgba(173, 157, 255, 1),
    0 0 22px rgba(124, 108, 240, .88);
}
.tarot.is-entering { animation: tarotAppear .6s ease-out .8s both; }
.tarot.is-entering img { animation: boardImagePlaceGlow 1.1s ease-out 1.2s both; }
@media (prefers-reduced-motion: reduce) {
  .tarot.is-entering,
  .tarot.is-entering img { animation: none; }
}
.alter-cards { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.alter-card {
  position: absolute; height: 16.8%; aspect-ratio: 5 / 7; display: block;
  transform: rotate(270deg);
}
.alter-card--opponent { transform: rotate(90deg); }
.alter-card img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}
.alter-card.is-row-glow img {
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7),
    0 0 8px rgba(173, 157, 255, 1),
    0 0 22px rgba(124, 108, 240, .88);
}
.alter-card.is-entering { animation: tarotAppear .3s ease-out 1s both; }
.alter-card.is-entering img { animation: boardImagePlaceGlow 1.1s ease-out 1.1s both; }
@media (prefers-reduced-motion: reduce) {
  .alter-card.is-entering,
  .alter-card.is-entering img { animation: none; }
}
.discard { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.discard__card {
  position: absolute; height: 16.8%; aspect-ratio: 5 / 7; display: block;
}
.discard__card.is-flying {
  z-index: 3;
  transition: left .55s cubic-bezier(.3, 0, .1, 1), top .55s cubic-bezier(.3, 0, .1, 1);
}
@media (prefers-reduced-motion: reduce) {
  .discard__card.is-flying { transition: none; }
}
.discard__card.is-flipped img { transform: rotate(180deg); }
.discard__card img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  border: 1px solid rgba(130, 120, 180, .3); border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}
.discard__pile { position: absolute; inset: 0; isolation: isolate; }
.discard__pile.is-row-glow .discard__card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  box-shadow: 0 0 8px rgba(173, 157, 255, 1), 0 0 22px rgba(124, 108, 240, .88);
  pointer-events: none;
}
.discard__card.is-entering img { animation: boardImagePlaceGlow 1.1s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .discard__card.is-entering img { animation: none; }
}
.demon-deck { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.demon-deck__stack {
  position: absolute; height: 16.8%; aspect-ratio: 5 / 7; display: block;
  opacity: 0; visibility: hidden; transition: opacity .35s;
}
.demon-deck__stack.is-visible { opacity: 1; visibility: visible; }
.demon-deck__stack.is-arriving { transition-delay: .95s; }
.demon-deck__stack.is-opponent { transform: rotate(180deg); }
.demon-deck__stack.is-highlighted .demon-deck__back {
  animation: deckBackHighlightPulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .demon-deck__stack.is-highlighted .demon-deck__back {
    animation: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .7),
      0 0 4px rgba(255, 198, 72, .95),
      0 0 12px rgba(249, 150, 22, .8);
  }
}
.demon-deck__back {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain; display: block;
  transform: translate(calc(var(--demon-deck-depth, 0) * 1.6%), calc(var(--demon-deck-depth, 0) * 1.3%));
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .7);
}
.demon-deck__stack.is-drawing::after {
  content: '';
  position: absolute; inset: 0;
  background: url('/content/tutorial/assets/cards/cardback.webp') center/contain no-repeat;
  animation: demonDeckDraw .8s ease-out 2 both;
  animation-duration: var(--draw-step, .8s);
  animation-iteration-count: var(--draw-count, 2);
}
.demon-deck__stack.is-drawing.is-dealing::after { animation-name: classDeckDraw; }
.demon-deck__stack.is-final-draw { --draw-count: 1; }
@media (prefers-reduced-motion: reduce) {
  .demon-deck__stack.is-drawing::after { animation: none; content: none; }
}
.act-power { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.act-power__mark { position: absolute; border-radius: 2px; }
.defense-marks { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.defense-mark {
  position: absolute; overflow: visible;
}
.defense-mark__glow,
.defense-mark__line {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  color: #ff4545;
}
.defense-mark__glow {
  filter: drop-shadow(0 0 2px rgba(255, 65, 65, .85)) drop-shadow(0 0 5px rgba(220, 38, 38, .55));
  animation: defenseTrianglePulse 5.5s ease-in-out infinite;
}
.defense-mark__line { animation: defenseLinePulse 5.5s ease-in-out infinite; }
.defense-mark__value {
  position: absolute; z-index: 2; display: grid; place-items: center;
  box-sizing: border-box; width: 170%; height: 135%;
  color: #fff; background: rgba(91, 12, 27, .96);
  border: 1px solid #ff6b6b; border-radius: 999px;
  font: 700 clamp(7px, 1.8vw, 12px) / 1 sans-serif;
  text-shadow: 0 1px 2px rgba(36, 0, 5, .9);
  filter: drop-shadow(0 0 2px rgba(220, 38, 38, .65));
  animation: defenseValueIn .2s ease-out both;
}
.defense-mark--tl .defense-mark__value { left: 110%; top: -17.5%; }
.defense-mark--tr .defense-mark__value { right: 110%; top: -17.5%; }
.defense-mark--bl .defense-mark__value { left: 110%; bottom: -17.5%; }
.defense-mark--br .defense-mark__value { right: 110%; bottom: -17.5%; }
.defense-guardian-count {
  position: absolute; z-index: 2; display: grid; place-items: center;
  box-sizing: border-box;
  color: #fff; background: rgba(91, 12, 27, .96);
  border: 1px solid #ff6b6b; border-radius: 999px;
  font: 700 clamp(7px, 1.8vw, 12px) / 1 sans-serif;
  text-shadow: 0 1px 2px rgba(36, 0, 5, .9);
  filter: drop-shadow(0 0 2px rgba(220, 38, 38, .65));
  pointer-events: none;
  animation: defenseValueIn .2s ease-out both;
}
@keyframes defenseValueIn {
  from { opacity: 0; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}
.defense-mark--tl .defense-mark__glow { clip-path: polygon(evenodd, -200% -200%, 300% -200%, 300% 300%, -200% 300%, -200% -200%, 2% 2%, 98% 2%, 2% 98%, 2% 2%); }
.defense-mark--tr .defense-mark__glow { clip-path: polygon(evenodd, -200% -200%, 300% -200%, 300% 300%, -200% 300%, -200% -200%, 2% 2%, 98% 2%, 98% 98%, 2% 2%); }
.defense-mark--bl .defense-mark__glow { clip-path: polygon(evenodd, -200% -200%, 300% -200%, 300% 300%, -200% 300%, -200% -200%, 2% 98%, 98% 98%, 2% 2%, 2% 98%); }
.defense-mark--br .defense-mark__glow { clip-path: polygon(evenodd, -200% -200%, 300% -200%, 300% 300%, -200% 300%, -200% -200%, 98% 98%, 2% 98%, 98% 2%, 98% 98%); }
.defense-mark__glow path,
.defense-mark__line path {
  fill: none; stroke: currentColor; stroke-width: 1px; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
@media (prefers-reduced-motion: reduce) {
  .defense-mark__glow {
    animation: none; opacity: 1;
    filter: drop-shadow(0 0 2px rgba(255, 65, 65, .85)) drop-shadow(0 0 5px rgba(220, 38, 38, .55));
  }
  .defense-mark__line { animation: none; opacity: 1; }
  .defense-mark__value,
  .defense-guardian-count { animation: none; }
}
.act-power-light { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.act-power-glow { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
:is(.act-power-light__patch, .act-power-light__halo) {
  position: absolute; inset: 0; width: 100%; height: 100%; display: none;
  -webkit-user-drag: none; -webkit-user-select: none; user-select: none;
}
.board.is-act-power-focus :is(.act-power-light__patch, .act-power-light__halo).is-lit { display: block; }
.board.is-act-power-focus .act-power-light__halo.is-lit {
  animation: actPowerPulse 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .board.is-act-power-focus .act-power-light__halo.is-lit { animation: none; }
}
.board.is-act-power-focus :is(.life-indicators, .tokens, .demon-deck, .discard, .alter-cards, .tarots, .moment) {
  filter: brightness(.6);
  transition: filter .35s;
}
@media (prefers-reduced-motion: reduce) {
  .board.is-act-power-focus :is(.life-indicators, .tokens, .demon-deck, .discard, .alter-cards, .tarots, .moment) { transition: none; }
}
.token-slot {
  position: absolute; isolation: isolate; width: 4.35%; height: 3.2%; transition: left .45s, top .45s, transform .45s;
}
.token-slot.is-down { transform: rotate(180deg); }
.token-slot img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: var(--zone-edge,) drop-shadow(0 1px 3px rgba(0,0,0,.7));
}
.token-slot.is-zone-magic {
  --zone-edge: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
    drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}
.token-slot.is-zone-awareness {
  --zone-edge: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000);
}
@property --flip-edge-color {
  syntax: '<color>';
  inherits: true;
  initial-value: #c9a6ff;
}
.token-slot.is-scene-flipped {
  --zone-edge: drop-shadow(1px 0 0 var(--flip-edge-color))
    drop-shadow(-1px 0 0 var(--flip-edge-color))
    drop-shadow(0 1px 0 var(--flip-edge-color))
    drop-shadow(0 -1px 0 var(--flip-edge-color));
}
:is(.tokens, .token-glow, .token-lit):has(> .token-slot.is-scene-flipped) {
  animation: sceneFlippedEdgePulse 1.6s ease-in-out infinite alternate;
}
@keyframes sceneFlippedEdgePulse {
  from { --flip-edge-color: #c9a6ff; }
  to { --flip-edge-color: #4b1d8f; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.tokens, .token-glow, .token-lit):has(> .token-slot.is-scene-flipped) { animation: none; }
}
.token-slot.is-row-glow img {
  filter: var(--zone-edge,) drop-shadow(0 1px 3px rgba(0,0,0,.7))
    drop-shadow(0 0 7px rgba(173, 157, 255, 1))
    drop-shadow(0 0 18px rgba(124, 108, 240, .88));
}
.token-slot.is-row-glow {
  filter: drop-shadow(0 0 7px rgba(173, 157, 255, 1))
    drop-shadow(0 0 18px rgba(124, 108, 240, .88));
}
.token-glow, .token-lit { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
:is(.token-glow, .token-lit) > .token-slot:not(.is-row-glow):not(.is-focus-target) { visibility: hidden; }
:is(.tokens, .token-lit) > .token-slot.is-row-glow { filter: none; }
:is(.tokens, .token-lit) > .token-slot.is-row-glow img,
:is(.tokens, .token-lit) > .token-slot.is-focus-target img {
  filter: var(--zone-edge,) drop-shadow(0 1px 3px rgba(0,0,0,.7));
}
.token-glow > .token-slot.is-thesis-placement-highlight {
  visibility: visible;
  animation: demonDeckHighlightPulse 1.6s ease-in-out infinite;
}
.token-glow > .token-slot.is-thesis-placement-highlight img {
  animation: none;
  filter: var(--zone-edge,) drop-shadow(0 1px 3px rgba(0,0,0,.7));
}
.token-lit > .token-slot.is-thesis-placement-highlight { visibility: visible; }
:is(.tokens, .token-lit) > .token-slot.is-thesis-placement-highlight.is-entering img {
  animation: tokenAppear .35s ease both;
}
.token-glow > .token-slot.is-thesis-placement-highlight.is-entering img {
  animation: tokenAppear .35s ease both, thesisPlacementEntryGlow 1.1s ease-out both;
}
.token-glow > .token-slot.is-zone-awareness.is-thesis-placement-highlight.is-entering img {
  animation: tokenAppear .35s ease both, thesisPlacementEntryGlowAwareness 1.1s ease-out both;
}
.token-glow > .token-slot.is-zone-magic.is-thesis-placement-highlight.is-entering img {
  animation: tokenAppear .35s ease both, thesisPlacementEntryGlowMagic 1.1s ease-out both;
}
@keyframes thesisPlacementEntryGlow {
  0% { filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
  30% {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.7))
      drop-shadow(0 0 7px rgba(255, 215, 112, 1))
      drop-shadow(0 0 18px rgba(249, 150, 22, .95));
  }
  100% { filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
}
@media (prefers-reduced-motion: reduce) {
  .token-glow > .token-slot.is-thesis-placement-highlight {
    animation: none;
    filter: drop-shadow(0 0 3px rgba(255, 198, 72, .9))
      drop-shadow(0 0 8px rgba(249, 150, 22, .7));
  }
  :is(.tokens, .token-lit) > .token-slot.is-thesis-placement-highlight.is-entering img,
  .token-glow > .token-slot.is-thesis-placement-highlight.is-entering img { animation: none; }
}

.offset-placement-guides { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.offset-placement-guide__line {
  position: absolute; height: 0; border-top: 2px solid #ad9dff;
  transform: scaleY(.667); transform-origin: 0 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 2px rgba(0, 0, 0, .82));
  opacity: 0; animation: offsetPlacementGuideIn .22s ease-out both;
}
.offset-placement-guide__line--normal { border-top-style: dashed; }
.offset-placement-guide__line--shifted { border-top-style: solid; }
@keyframes offsetPlacementGuideIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .offset-placement-guide__line { animation-duration: 1ms; }
}
.token-glow > .token-slot.is-focus-target.is-focus-target--defender img {
  filter: var(--zone-edge,) drop-shadow(1px 0 0 rgba(255,138,138,.98))
    drop-shadow(-1px 0 0 rgba(255,138,138,.98))
    drop-shadow(0 1px 0 rgba(255,138,138,.98))
    drop-shadow(0 -1px 0 rgba(255,138,138,.98))
    drop-shadow(0 1px 3px rgba(0,0,0,.7))
    drop-shadow(0 0 7px rgba(255,65,65,1))
    drop-shadow(0 0 18px rgba(220,38,38,.9));
}
.token-flip-markers { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.token-flip-marker {
  position: absolute; z-index: 6; pointer-events: none;
  animation: tokenFlipMarkerBob 1.4s ease-in-out infinite;
}
.token-flip-marker svg { display: block; width: 100%; height: 100%; overflow: visible; }
.token-flip-marker path { animation: tokenFlipMarkerPulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .life-marker.is-row-glow,
  .life-marker.is-row-glow-change,
  .board-card.is-row-glow,
  .moment.is-row-glow,
  .tarot.is-row-glow,
  .alter-card.is-row-glow,
  .discard__pile.is-row-glow,
  .token-slot.is-row-glow { animation: none; }
  .token-flip-marker { animation: none; }
  .token-flip-marker path { animation: none; fill: #c9bcff; }
}
.board-card.is-fallback.is-focus-target { overflow: visible; }
.board-card.is-fallback.is-entering,
.board-card.is-fallback.is-entry-glow { overflow: visible; }
.token-slot.is-entering img {
  animation: tokenAppear .35s ease both, tokenPlaceGlow 1.1s ease-out both;
}
.token-slot.is-flipped img { animation: tokenFlip .6s ease-in-out; }
.token-slot.is-moving {
  z-index: 15;
  transition: left 1s cubic-bezier(.4, 0, .2, 1), top 1s cubic-bezier(.4, 0, .2, 1), transform .45s;
}
.token-slot.is-moving img {
  animation: tokenPlaceGlow 1.1s ease-out both;
}
.token-slot.is-zone-magic.is-entering img { animation: tokenAppear .35s ease both, tokenPlaceGlowMagic 1.1s ease-out both; }
.token-slot.is-zone-magic.is-moving img { animation: tokenPlaceGlowMagic 1.1s ease-out both; }
.token-slot.is-zone-awareness.is-entering img { animation: tokenAppear .35s ease both, tokenPlaceGlowAwareness 1.1s ease-out both; }
.token-slot.is-zone-awareness.is-moving img { animation: tokenPlaceGlowAwareness 1.1s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .token-slot.is-entering img { animation: none; }
  .token-slot.is-moving img { animation: none; }
  .token-slot.is-zone-magic.is-entering img,
  .token-slot.is-zone-magic.is-moving img,
  .token-slot.is-zone-awareness.is-entering img,
  .token-slot.is-zone-awareness.is-moving img { animation: none; }
  .token-slot.is-moving { transition: none; }
}

.token-slot.is-focus-target img {
  filter: var(--zone-edge,) drop-shadow(0 1px 3px rgba(0, 0, 0, .7))
    drop-shadow(0 0 7px rgba(173, 157, 255, 1))
    drop-shadow(0 0 18px rgba(124, 108, 240, .92));
}
.board.is-focused.is-camera-awareness :is(.life-indicators, .demon-deck, .discard, .alter-cards, .tarots, .moment) {
  filter: brightness(.6);
  transition: filter .35s;
}
.board.is-focused.is-camera-awareness .board-card::before {
  opacity: 1;
  transition: opacity .35s;
}
.board.is-focused.is-camera-awareness :is(.tokens, .token-glow, .token-lit) > .token-slot:not(.is-focus-target) {
  filter: brightness(.6);
  transition: filter .35s;
}
@media (prefers-reduced-motion: reduce) {
  .board.is-focused.is-camera-awareness :is(.life-indicators, .demon-deck, .discard, .alter-cards, .tarots, .moment),
  .board.is-focused.is-camera-awareness .board-card::before,
  .board.is-focused.is-camera-awareness :is(.tokens, .token-glow, .token-lit) > .token-slot:not(.is-focus-target) { transition: none; }
}
.board-card.is-focus-target--defender img,
.board-card.is-fallback.is-focus-target--defender {
  box-shadow: var(--card-rest-shadow);
}

.moment {
  position: absolute; z-index: 4; height: 16.8%; aspect-ratio: 5 / 7;
  transition: left .5s, top .5s, transform .5s;
}
.moment.is-opponent { transform: rotate(180deg); }
.moment__image {
  width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 3px;
  box-shadow: var(--card-rest-shadow);
}
.moment.is-row-glow .moment__image {
  box-shadow: 0 0 11px 3px rgba(173, 157, 255, .9), 0 0 24px 8px rgba(124, 108, 240, .78);
}
.card-stand-illustration {
  position: absolute; inset: 0; z-index: 17;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4%; box-sizing: border-box;
  padding: 5%; padding-bottom: calc(var(--box-draw-height) + 24px);
  background: rgba(4, 4, 10, .9);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.card-stand-illustration__label {
  --box-draw-fill: rgba(238, 236, 242, .94);
  --box-draw-line: var(--notice-band-edge);
  color: #111;
  position: absolute; top: auto; bottom: 8px; left: 50%; transform: translateX(-50%);
  min-height: var(--box-draw-height); box-sizing: border-box; display: flex;
  align-items: center; justify-content: center; margin: 0;
  white-space: pre-line;
  padding: 10px min(26px, calc(var(--cq-w, 1vw) * 8)); padding: 10px min(26px, 8cqw); width: max-content; max-width: calc(100% - 32px);
  text-align: center; line-height: 1.25;
  font-size: 14px; letter-spacing: .12em;
  background:
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      left top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      right top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-fill) 25%, var(--box-draw-fill) 75%, transparent);
}
.card-stand-illustration__frame {
  position: relative; display: grid; flex: 0 1 auto;
  width: 82%; max-width: 82%;
  width: min(82%, calc(var(--cq-h, 1vh) * 90 - var(--cq-w, 1vw) * 4.5 - (var(--box-draw-height) + 24px) * .9));
  width: min(82%, calc(90cqh - 4.5cqw - (var(--box-draw-height) + 24px) * .9));
  aspect-ratio: 1;
}
.card-stand-illustration__art {
  grid-area: 1 / 1; position: relative; display: grid;
  width: 100%; height: 100%;
}
.card-stand-illustration__static {
  grid-area: 1 / 1; position: relative; display: grid;
  width: 100%; height: 100%;
  transition: opacity .4s ease;
}
.card-stand-illustration__image {
  grid-area: 1 / 1;
  display: block; max-width: 100%; max-height: 100%;
  width: 100%; height: 100%; object-fit: contain;
}
.card-stand-illustration__stand {
  position: absolute; display: block; transform-origin: center;
  top: 13.324%; width: 6.595%; height: 73.082%; z-index: 1;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.card-stand-illustration__stand--left { left: 56.662%; }
.card-stand-illustration__stand--right { left: 63.257%; }
.card-stand-illustration__glow {
  grid-area: 1 / 1;
  position: absolute; left: 56.93%; top: 13.46%; width: 12.79%; height: 72.81%;
  pointer-events: none; mix-blend-mode: screen;
  box-shadow: 0 0 30px 10px rgba(173, 157, 255, .55);
  animation: card-stand-glow-pulse 3.2s ease-in-out infinite;
}
@keyframes card-stand-glow-pulse {
  0%, 100% { opacity: .35; filter: blur(2px); }
  50% { opacity: 1; filter: blur(6px); }
}
.card-stand-illustration.is-visible {
  opacity: 1; visibility: visible;
  transition: opacity .3s ease, visibility 0s;
}
.card-stand-illustration.is-flying {
  background-color: rgba(4, 4, 10, 0);
  transition: opacity .3s ease, visibility 0s, background-color .5s ease;
}
.card-stand-illustration.is-flying .card-stand-illustration__static { opacity: 0; }
.card-stand-illustration.is-flying .card-stand-illustration__stand--left,
.card-stand-landed.is-glowing {
  box-shadow: 0 0 14px 4px rgba(173, 157, 255, .7);
}
.card-stand-illustration.is-stand-landed .card-stand-illustration__stand--left { visibility: hidden; }
.card-stand-illustration.is-instant,
.card-stand-illustration.is-instant .card-stand-illustration__static,
.card-stand-illustration.is-instant .card-stand-illustration__stand { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .card-stand-illustration { transition: none; }
  .card-stand-illustration.is-visible { transition: none; }
  .card-stand-illustration__glow { animation: none; opacity: .7; filter: blur(4px); }
  .card-stand-illustration__static, .card-stand-illustration__stand { transition: none; }
}
.card-stand-landed {
  position: absolute; z-index: 5; pointer-events: none; transform: rotate(-90deg); transform-origin: center;
  opacity: 0; transition: opacity .5s ease;
}
.card-stand-landed.is-landed { opacity: 1; transition: none; }
.card-stand-landed img { width: 100%; height: 100%; display: block; }
.card-stand-landed::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 100%; width: 35.4%;
  background: #2b2b31; opacity: 0;
  transition: opacity .35s ease;
  -webkit-clip-path: polygon(100% 0, 100% 100%, 0 99%, 0 1%);
  clip-path: polygon(100% 0, 100% 100%, 0 99%, 0 1%);
}
.card-stand-landed.is-landed::before { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .card-stand-landed, .card-stand-landed::before { transition: none; }
}
.card-stand-card {
  position: absolute; z-index: 5; pointer-events: none;
  opacity: 0; transition: opacity .5s ease;
  border-radius: 3px;
  transform-origin: 100% 100%;
  transform: perspective(calc(min(calc(var(--cq-w, 1vw) * 115.995), calc(var(--cq-h, 1vh) * 100), 655px) * .5444)) rotateX(-40deg);
  transform: perspective(calc(min(115.995cqw, 100cqh, 655px) * .5444)) rotateX(-40deg);
}
.card-stand-card.is-placed { opacity: 1; transition: none; }
.card-stand-card img {
  width: 100%; height: 100%; display: block; object-fit: fill;
  border: 1px solid rgba(130, 120, 180, .3); border-radius: 3px;
  box-shadow: var(--card-rest-shadow);
}
.card-stand-landed.is-instant,
.card-stand-landed.is-instant::before,
.card-stand-card.is-instant { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .card-stand-card, .card-stand-card.is-placed { transition: none; }
}
.card-preview {
  position: absolute; inset: 0; z-index: 14; display: grid; place-items: center;
  padding: 8% 5%; opacity: 0; pointer-events: none;
  transition: opacity .24s ease;
}
.board.is-box-draw-row > .card-preview {
  padding-top: max(8%, calc(var(--box-draw-top) + var(--box-draw-height) + 8px));
}
.board.is-box-draw-row > .card-preview.is-multiple-preview {
  padding-top: max(8%, calc(var(--box-draw-hint-top) + var(--box-draw-hint-height) + 8px));
}
.board.is-box-draw-bottom-row > .card-preview {
  padding-bottom: max(8%, calc(var(--box-draw-height) + 16px));
}
.card-preview.is-visible { opacity: 1; }
.box-draw-label {
  --box-draw-fill: rgba(238, 236, 242, .94);
  --box-draw-line: var(--notice-band-edge);
  color: #111;
  position: absolute; top: var(--box-draw-top); left: 50%; transform: translateX(-50%);
  height: var(--box-draw-height); box-sizing: border-box; display: flex;
  align-items: center; justify-content: center;
  padding: 0 min(26px, calc(var(--cq-w, 1vw) * 8)); padding: 0 min(26px, 8cqw); width: max-content; max-width: calc(100% - 32px);
  text-align: center; line-height: 1.25;
  z-index: 15; font-size: 14px; letter-spacing: .12em; pointer-events: none;
  background:
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      left top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      right top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-fill) 25%, var(--box-draw-fill) 75%, transparent);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.board.is-box-draw-label-shown > .box-draw-label {
  opacity: 1; visibility: visible;
  transition: opacity .3s, visibility 0s;
}
.box-draw-label.box-draw-label--bottom { top: auto; bottom: 8px; }
.box-draw-label {
  translate: 0 0 450px;
  scale: .5;
  transform-origin: 0 calc(var(--cq-h, 1vh) * 55 - var(--box-draw-top));
  transform-origin: 0 calc(55cqh - var(--box-draw-top));
}
.box-draw-label.box-draw-label--bottom {
  transform-origin: 0 calc(var(--box-draw-height) + 8px - var(--cq-h, 1vh) * 45);
  transform-origin: 0 calc(var(--box-draw-height) + 8px - 45cqh);
}
@keyframes noticeBandHalo {
  0%, 100% { transform: scaleY(1); opacity: .5; }
  50% { transform: scaleY(1.225); opacity: 1; }
}
.invite-qr__instructions, .defense-card-highlight__label { position: relative; isolation: isolate; }
.box-draw-label::before, .card-stand-illustration__label::before, .invite-qr__instructions::before, .defense-card-highlight__label::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .85) 30%, rgba(255, 255, 255, .85) 70%, transparent);
  transform-origin: center; transform: scaleY(1); opacity: .5;
}
.board.is-box-draw-label-shown > .box-draw-label::before, .card-stand-illustration__label::before, .invite-qr__instructions::before {
  animation: noticeBandHalo 1.6s ease-in-out infinite;
}
.defense-card-highlight.is-entering .defense-card-highlight__label::before {
  animation: noticeBandHalo 1.6s ease-in-out .72s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .box-draw-label,
  .board.is-box-draw-label-shown > .box-draw-label { transition: none; }
  .board.is-box-draw-label-shown > .box-draw-label::before,
  .card-stand-illustration__label::before,
  .invite-qr__instructions::before,
  .defense-card-highlight.is-entering .defense-card-highlight__label::before { animation: none; }
}
.card-preview__cards { transition: transform .16s ease; transform-origin: center; }
.card-preview.is-zoomed .card-preview__cards { transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .card-preview__cards { transition: none; }
}
.card-preview__cards {
  position: relative; width: 100%; max-width: 430px; display: flex; align-items: center;
  justify-content: center; gap: clamp(5px, 2vw, 14px);
}
.card-preview__cards::before {
  content: attr(data-tap-hint); position: absolute; left: 50%; bottom: 100%;
  transform: translate(-50%, -8px); z-index: 2;
  width: max-content; max-width: min(calc(100% - 16px), 430px);
  font-size: clamp(10px, 2.8vw, 13px); line-height: 1.4; white-space: normal; text-align: center;
  color: rgba(225, 218, 245, .78); text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  pointer-events: none;
}
.card-preview.is-multiple-preview[data-tap-hint]::before {
  content: attr(data-tap-hint); position: absolute; top: max(26px, 5%); left: 50%;
  transform: translateX(-50%); z-index: 2;
  width: max-content; max-width: min(calc(100% - 16px), 430px);
  font-size: clamp(10px, 2.8vw, 13px); line-height: 1.4; white-space: normal; text-align: center;
  color: rgba(225, 218, 245, .78); text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
  pointer-events: none;
}
.board.is-box-draw-row .card-preview.is-multiple-preview[data-tap-hint]::before {
  top: var(--box-draw-hint-top); height: var(--box-draw-hint-height);
}
.card-preview__item {
  width: min(29%, 120px); aspect-ratio: 5 / 7; position: relative; isolation: isolate;
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; color: #f3eefc; text-align: center;
  transform: rotate(var(--card-preview-rotation, 0deg));
  pointer-events: auto; cursor: pointer;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
}
.card-preview__cards--4 .card-preview__item { width: min(22%, 96px); }
.card-preview__cards--deck { flex-wrap: wrap; row-gap: clamp(4px, 1.5vw, 10px); }
.card-preview__item:only-child:not(.card-preview__item--thesis):not(.card-preview__item--tarot) {
  width: min(76%, 300px, calc(var(--cq-h, 1vh) * 55));
  width: min(76%, 300px, 55cqh);
}
.card-preview__item--emphasis-bottom-right .card-preview__image {
  transform-origin: 88% 88%;
  animation: cardPreviewZoomCornerOut 3.3s ease-in-out 0s both;
}
@media (prefers-reduced-motion: reduce) {
  .card-preview__item--emphasis-bottom-right .card-preview__image { animation: none; }
}
.card-preview__whisper {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; pointer-events: none;
  transform-origin: 88% 88%;
  animation: cardPreviewZoomCornerOut 3.3s ease-in-out 0s both, cardInitialWhisperFade 3.3s linear 0s both;
}
@media (prefers-reduced-motion: reduce) {
  .card-preview__whisper { animation: none; opacity: 0; }
}
.card-preview__item--tarot {
  aspect-ratio: 480 / 951;
  width: auto;
  height: min(calc(var(--cq-h, 1vh) * 74), 470px);
  height: min(74cqh, 470px);
}
.card-preview__item--flipped .card-preview__image {
  animation: cardPreviewToConflict .8s cubic-bezier(.4, 0, .2, 1) .9s both;
}
@media (prefers-reduced-motion: reduce) {
  .card-preview__item--flipped .card-preview__image {
    animation: none; transform: rotate(180deg);
  }
}
.card-preview__item--emphasis-bottom .card-preview__image {
  transform-origin: 50% 88%;
  animation: cardPreviewZoomBottom 4.2s ease-in-out .9s both;
}
@media (prefers-reduced-motion: reduce) {
  .card-preview__item--emphasis-bottom .card-preview__image { animation: none; }
}
.card-preview__item--thesis { aspect-ratio: 1 / 1; width: min(34%, 132px); }
.thesis-flip {
  position: relative; display: block; width: 100%; height: 100%;
  animation: thesisFlip 4.5s ease-in-out infinite;
}
.thesis-flip__face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
  filter: drop-shadow(0 0 11px rgba(124, 108, 240, .9)) drop-shadow(0 2px 6px rgba(0, 0, 0, .7));
}
.thesis-flip__face--white { animation: thesisFlipWhiteFace 4.5s step-end infinite; }
.thesis-flip__face--black {
  transform: scaleX(-1); opacity: 0;
  animation: thesisFlipBlackFace 4.5s step-end infinite;
}
@media (prefers-reduced-motion: reduce) {
  .thesis-flip, .thesis-flip__face--white, .thesis-flip__face--black { animation: none; }
}
.card-preview__image {
  width: 100%; height: 100%; object-fit: contain; display: block;
  -webkit-user-drag: none; user-drag: none; pointer-events: none;
  filter: drop-shadow(0 0 11px rgba(124, 108, 240, .9)) drop-shadow(0 0 24px rgba(124, 108, 240, .6));
}
.card-preview__cost {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block; pointer-events: none; z-index: 1;
  animation: cardCostPulse 1.6s ease-in-out infinite;
}
.card-preview__cost--power { animation-name: cardPowerPulse; }
.card-preview__label {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  pointer-events: none;
}
.card-preview__label > img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.card-preview__label-text {
  position: absolute; left: 23.13%; width: 29.34%;
  top: calc(var(--label-center, 0) * 1%);
  top: calc(50% + (var(--label-center, 0) - 50) * 1.39586cqw);
  transform: translateY(calc(-50% + .04em));
  display: block; text-align: center;
  text-box: trim-both cap alphabetic;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 700; line-height: 1; white-space: nowrap;
  font-size: min(calc(var(--cq-w, 1vw) * 3.6), 14.4px);
  font-size: min(4.8cqw, calc(var(--label-fit, 27) * 1cqw / var(--label-em, 4)));
}
.card-preview__label--condition .card-preview__label-text { --label-center: 4.493; color: #3f3a39; }
.card-preview__label--cost .card-preview__label-text { --label-center: 12.16; color: #F0F0F0; }
.card-preview__label--breakthrough .card-preview__label-text,
.card-preview__label--power .card-preview__label-text {
  width: 26.58%; --label-fit: 24.5;
}
.card-preview__label--breakthrough .card-preview__label-text { left: 61.34%; --label-center: 6.389; color: #e7e6eb; }
.card-preview__label--power .card-preview__label-text { left: 11.85%; --label-center: 12.407; color: #890000; }
@media (prefers-reduced-motion: reduce) {
  .card-preview__cost {
    animation: none;
    filter: drop-shadow(0 0 3px rgba(173, 157, 255, 1))
      drop-shadow(0 0 4px rgba(173, 157, 255, 1))
      drop-shadow(0 0 7px rgba(149, 133, 250, 1))
      drop-shadow(0 0 18px rgba(124, 108, 240, .95))
      drop-shadow(0 0 35px rgba(124, 108, 240, .9));
  }
  .card-preview__cost--power {
    filter: drop-shadow(0 0 2px rgba(255, 150, 150, 1))
      drop-shadow(0 0 3px rgba(255, 150, 150, 1))
      drop-shadow(0 0 5px rgba(248, 113, 113, .95))
      drop-shadow(0 0 13px rgba(220, 38, 38, .85))
      drop-shadow(0 0 26px rgba(185, 28, 28, .7));
  }
}
.card-preview__fallback {
  width: 100%; height: 100%; display: grid; place-items: center; padding: 6px;
  color: #fff; font-size: clamp(8px, 2.5vw, 12px); line-height: 1.35;
  background: linear-gradient(145deg, #5b477d, #171020 68%);
  border: 1px solid rgba(215, 198, 255, .7); border-radius: 4px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .62);
}
.card-preview__item--emphasis-top-left .card-preview__image,
.card-preview__item--emphasis-top-left .card-preview__cost,
.card-preview__item--emphasis-top-left .card-preview__label {
  transform-origin: 14% 8%;
}
.card-preview__item--emphasis-top-left .card-preview__image {
  animation: cardPreviewZoomCorner 1.5s ease-in-out .4s both;
}
.card-preview__item--emphasis-top-left .card-preview__cost {
  animation: cardCostPulse 1.6s ease-in-out infinite, cardPreviewZoomCorner 1.5s ease-in-out .4s both;
}
.card-preview__item--emphasis-top-left .card-preview__label {
  animation: cardPreviewZoomCorner 1.5s ease-in-out .4s both, cardLabelFadeIn .5s ease-out 1.9s both;
}
@media (prefers-reduced-motion: reduce) {
  .card-preview__item--emphasis-top-left .card-preview__image,
  .card-preview__item--emphasis-top-left .card-preview__cost,
  .card-preview__item--emphasis-top-left .card-preview__label { animation: none; }
}
.card-preview__item--emphasis-top .card-preview__image,
.card-preview__item--emphasis-top .card-preview__cost,
.card-preview__item--emphasis-top .card-preview__label {
  transform-origin: 50% 12%;
}
.card-preview__item--emphasis-top .card-preview__image {
  animation: cardPreviewZoomTop 1.5s ease-in-out .4s both;
}
.card-preview__item--emphasis-top .card-preview__cost {
  animation: cardCostPulse 1.6s ease-in-out infinite, cardPreviewZoomTop 1.5s ease-in-out .4s both;
}
.card-preview__item--emphasis-top .card-preview__cost--power {
  animation: cardPowerPulse 1.6s ease-in-out infinite, cardPreviewZoomTop 1.5s ease-in-out .4s both;
}
.card-preview__item--emphasis-top .card-preview__label {
  animation: cardPreviewZoomTop 1.5s ease-in-out .4s both, cardLabelFadeIn .5s ease-out 1.9s both;
}
@media (prefers-reduced-motion: reduce) {
  .card-preview__item--emphasis-top .card-preview__image,
  .card-preview__item--emphasis-top .card-preview__cost,
  .card-preview__item--emphasis-top .card-preview__cost--power,
  .card-preview__item--emphasis-top .card-preview__label { animation: none; }
}
.card-preview.is-entering .card-preview__item {
  animation: cardPreviewIn .36s cubic-bezier(.15, 0, 0, 1) both;
}
.card-preview.is-entering .card-preview__item:nth-child(2) { animation-delay: .04s; }
.card-preview.is-entering .card-preview__item:nth-child(3) { animation-delay: .08s; }
.card-preview.is-entering .card-preview__item:nth-child(4) { animation-delay: .12s; }
.card-preview.is-dealt .card-preview__item {
  animation: cardPreviewDeal .38s cubic-bezier(.15, 0, 0, 1) both;
  animation-delay: calc(var(--deal-lead, 300ms) + var(--deal-index, 0) * var(--deal-step, 500ms));
}
@media (prefers-reduced-motion: reduce) {
  .card-preview.is-dealt .card-preview__item { animation: none; }
}

.preview-exit { position: absolute; inset: 0; z-index: 13; pointer-events: none; }
.preview-exit__card {
  position: absolute;
  animation: previewExitFly .95s cubic-bezier(.4, 0, .2, 1) var(--exit-delay, 0s) both;
}
.preview-exit__flip {
  position: relative; display: block; width: 100%; height: 100%;
  animation: previewExitFlip .5s ease-in-out var(--exit-delay, 0s) both;
}
.preview-exit__face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .7));
}
.preview-exit__face--front { animation: previewExitFrontFace .5s step-end var(--exit-delay, 0s) both; }
.preview-exit__face--back {
  transform: scaleX(-1);
  animation: previewExitBackFace .5s step-end var(--exit-delay, 0s) both;
}
@media (prefers-reduced-motion: reduce) {
  .preview-exit { display: none; }
}

.card-preview.is-dealt .card-preview__item::after,
.card-preview.is-entering .card-preview__item::after {
  content: '';
  position: absolute; left: -78%; right: -78%; bottom: -107%; height: 214%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(149, 133, 250, .75) 0%, rgba(124, 108, 240, .46) 42%, rgba(173, 157, 255, 0) 100%);
  pointer-events: none; z-index: -1;
}
.board-card.is-entry-glow::after {
  animation: boardCardEntryGlow 1.2s ease-out both;
  content: ''; position: absolute; inset: 0; border-radius: 3px;
  background: none; pointer-events: none; z-index: -1;
}
.card-preview.is-dealt .card-preview__item::after,
.card-preview.is-entering .card-preview__item::after {
  animation: objectRiseGlow 1.2s ease-out both;
}
.card-preview.is-dealt .card-preview__item::after {
  animation-delay: calc(var(--deal-lead, 300ms) + var(--deal-index, 0) * var(--deal-step, 500ms));
}
@media (prefers-reduced-motion: reduce) {
  .board-card.is-entry-glow::after { animation: none; }
}

.invite-qr {
  position: absolute; inset: 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: 10px; padding: 8%;
  overflow-y: auto; overscroll-behavior: contain;
  background: rgba(4, 4, 10, .72);
}
.invite-qr__instructions {
  --box-draw-fill: rgba(238, 236, 242, .94);
  --box-draw-line: var(--notice-band-edge);
  color: #111;
  flex: 0 0 auto; margin: 0; box-sizing: border-box;
  width: max-content; max-width: min(100%, 360px);
  padding: 12px min(26px, 8vw);
  text-align: center; line-height: 1.25;
  font-size: 14px; letter-spacing: .12em;
  white-space: pre-line;
  background:
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      left top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-line) 25%, var(--box-draw-line) 75%, transparent)
      right top / 2px 100% no-repeat,
    linear-gradient(180deg, transparent, var(--box-draw-fill) 25%, var(--box-draw-fill) 75%, transparent);
}
.invite-qr__card {
  flex: 0 1 auto;
  width: min(72%, 240px); padding: 14px 14px 12px;
  max-height: calc(100% - 16px); min-height: min(140px, calc(100% - 16px)); overflow-y: auto;
  overscroll-behavior: contain; scroll-padding-block: 8px;
  background: #fff; color: #17121f;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.invite-qr__title { margin: 0; font-size: 11px; letter-spacing: .06em; }
.invite-qr__code { width: 100%; }
.invite-qr__code svg { display: block; width: 100%; height: auto; }
.invite-qr__hint { margin: 2px 0 0; font-size: 9px; color: #5a5468; }
.invite-qr__code-text { font-size: 15px; letter-spacing: .14em; color: #17121f; }
.invite-qr__copy,
.invite-qr__join-form button {
  width: 100%; min-height: 32px; padding: 7px 10px;
  font: inherit; font-size: 11px; letter-spacing: .04em; text-align: center;
  border-radius: 4px; cursor: pointer; pointer-events: auto;
}
.invite-qr__copy {
  border: 1px solid #2b2338; background: #2b2338; color: #fff;
}
.invite-qr__copy:hover { background: #3a2f4c; }
.invite-qr__copy.is-copied { background: #3f7d55; border-color: #3f7d55; }
.invite-qr__join-form { width: 100%; }
.invite-qr__join-form label {
  display: block; margin-bottom: 4px; font-size: 9px; color: #5a5468;
}
.invite-qr__join-row { display: flex; gap: 6px; }
.invite-qr__join-form input {
  min-width: 0; flex: 1; min-height: 32px; padding: 6px 7px;
  border: 1px solid #b9b2c6; border-radius: 4px; background: #fff; color: #17121f;
  font: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.invite-qr__join-form input:focus {
  outline: 2px solid #8069a8; outline-offset: 1px;
}
.invite-qr__join-form button {
  flex: 0 0 auto; width: auto;
  border: 1px solid #2b2338; background: #2b2338; color: #fff;
}
.invite-qr__join-form button:hover { background: #3a2f4c; }
.invite-qr__warning {
  margin: 5px 0 0; color: #a12626; font-size: 9px; line-height: 1.4;
}
@media (max-height: 560px) {
  .invite-qr { padding: 4%; gap: 6px; }
  .invite-qr__instructions { padding-block: 8px; }
  .invite-qr__card {
    width: min(82%, 240px); padding: 8px 10px 7px; gap: 4px;
    max-height: calc(100% - 8px);
  }
  .invite-qr__code { width: min(100%, 128px); }
  .invite-qr__code-text { font-size: 13px; }
  .invite-qr__copy,
  .invite-qr__join-form button,
  .invite-qr__join-form input { min-height: 30px; padding: 6px 8px; }
}

.dialogue {
  flex: 0 0 var(--dialogue-height, clamp(150px, 25dvh, 205px)); position: relative; z-index: 20;
  padding: 14px 18px max(18px, env(safe-area-inset-bottom)); cursor: pointer; outline: none;
  background: linear-gradient(180deg, rgba(13, 12, 26, .97), rgba(6, 6, 13, .995));
  border-top: 1px solid var(--line); -webkit-user-select: none; user-select: none;
}
.dialogue.is-concealed { visibility: hidden; }
.dialogue__replay {
  position: absolute; top: 9px; right: 12px; z-index: 1; min-width: 65px; min-height: 28px;
  padding: 4px 7px; border: 1px solid rgba(168, 139, 250, .42); border-radius: 3px;
  background: rgba(35, 25, 62, .82); color: rgba(232, 228, 244, .82);
  font: inherit; font-size: 8px; letter-spacing: .04em; line-height: 1; cursor: pointer;
}
.dialogue__replay {
  min-width: 36px; padding: 0; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
}
.dialogue__replay-icon {
  display: block; height: 28px; width: auto; aspect-ratio: 459.47 / 421.05; opacity: .82;
  -webkit-user-drag: none; -webkit-user-select: none; user-select: none;
}
.dialogue__replay:not(:disabled):hover .dialogue__replay-icon,
.dialogue__replay:not(:disabled):focus-visible .dialogue__replay-icon { opacity: 1; }
.dialogue__replay:disabled .dialogue__replay-icon { opacity: .45; }
.pre-scene-intro__replay-icon {
  display: inline-block; height: 1em; width: auto; aspect-ratio: 459.47 / 421.05;
  margin: 0 .2em; vertical-align: -.12em;
}
.dialogue__replay:not(:disabled):hover,
.dialogue__replay:not(:disabled):focus-visible { color: #fff; }
.dialogue__replay:not(:disabled):focus-visible { outline: 2px solid #c4b3ff; outline-offset: 2px; }
.dialogue__replay:disabled {
  color: rgba(157, 153, 165, .42); opacity: .62; cursor: default;
}
.dialogue__replay-catcher {
  display: none; position: absolute; top: 9px; right: 12px; z-index: 2;
  width: 36px; height: 28px; cursor: default;
}
.dialogue__replay:disabled:not([hidden]) + .dialogue__replay-catcher { display: block; }
.dialogue__speaker { min-height: 1.3em; margin: 0 0 5px; color: rgba(175, 151, 240, .86); font-size: 11px; letter-spacing: .12em; }
.dialogue__text { margin: 0; white-space: pre-wrap; font-size: clamp(13px, 3.8vw, 16px); line-height: 1.85; overflow-y: auto; overscroll-behavior: contain; }
.dialogue__card-names { margin: 2px 0 0; color: #9a9aa4; font-size: 12px; line-height: 1.4; }
.dialogue__thesis-moves { white-space: pre-line; }
.dialogue__text--narration { font-style: italic; }
.dialogue__next { position: absolute; right: 18px; bottom: 12px; color: rgba(167,139,250,.65); font-size: 9px; opacity: 0; }
.dialogue__next.is-visible { opacity: 1; animation: bounce 1s infinite; }
.reset-panel {
  position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px;
  background: rgba(3, 3, 9, .82); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.reset-panel__dialog {
  width: min(100%, 420px); display: flex; flex-direction: column; gap: 12px; padding: 18px 16px;
  border: 1px solid rgba(189, 169, 248, .45); background: rgba(13, 10, 25, .98);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .58);
}
.reset-panel__body { margin: 0; font-size: 13px; line-height: 1.8; text-align: center; }
.reset-panel__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.reset-panel__actions button {
  min-width: 84px; min-height: 38px; padding: 8px 18px;
  font-size: 12px; letter-spacing: .12em;
}
.reset-panel__accept { border-color: rgba(228, 150, 150, .55); color: #f6dede; }
.backlog {
  position: absolute; inset: 0; z-index: 70; display: flex;
  background: rgba(13, 10, 25, .98);
}
.backlog__dialog {
  flex: 1 1 auto; width: 100%; min-height: 0; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.backlog__header,
.backlog__list {
  width: 100%; box-sizing: border-box;
}
.backlog__list { flex: 1 1 auto; }
.backlog__header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.backlog__header h2 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.backlog__header button { padding: 5px 8px; border: 1px solid var(--line); background: rgba(45, 30, 76, .8); cursor: pointer; font-size: 10px; }
.backlog__list { min-height: 0; margin: 0; padding: 10px 14px 16px; overflow-y: auto; list-style: none; }
.backlog__entry { padding: 12px 0; border-bottom: 1px solid rgba(168, 139, 250, .16); }
.backlog__entry:last-child { border-bottom: 0; }
.backlog__speaker { margin: 0 0 5px; color: rgba(185, 161, 244, .9); font-size: 10px; letter-spacing: .08em; }
.backlog__speaker--narration { color: rgba(220, 214, 237, .63); font-style: italic; }
.backlog__text { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.75; }
.backlog__previews {
  display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 5px 0 0; padding: 0;
  list-style: none; color: rgba(198, 191, 212, .78); font-size: 11px; line-height: 1.5;
}
.backlog__preview-name { min-width: 0; overflow-wrap: anywhere; }
.backlog__empty { margin: 18px 0; color: rgba(230, 225, 240, .58); font-size: 11px; text-align: center; }
.choice-panel {
  --interstitial-top-gap: calc(52px + max(0px, env(safe-area-inset-top) - 4px) + 8px);
  position: absolute; inset: 0; z-index: 60; padding: 25% 24px 24px; background: rgba(4, 4, 10, .9); overflow-y: auto;
}
.choice-panel.is-interstitial,
.choice-panel.is-rules {
  padding-top: var(--interstitial-top-gap);
}
.choice-panel:not([hidden]) { animation: choicePanelIn .25s ease-out both; }
.choice-panel.is-reopened { animation: none; }
.choice-panel.is-closing { animation: choicePanelOut .25s ease-in forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .choice-panel:not([hidden]),
  .choice-panel.is-closing { animation: none; }
}
.choice-panel h2 { font-size: 16px; font-weight: 500; text-align: center; }
.choice-panel__rules-heading,
.choice-panel__rules-block { max-width: 32rem; margin-inline: auto; }
.choice-panel__rules-heading { color: rgba(226, 220, 240, .94); }
.choice-panel__rules-block { margin-top: 28px; color: rgba(226, 220, 240, .9); }
.choice-panel__rules-block.is-center { text-align: center; }
.choice-panel__rules-block.has-image { display: flex; align-items: center; gap: 12px; }
.choice-panel__rules-text { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.9; }
.choice-panel__rules-figure {
  position: relative; isolation: isolate; flex: 0 0 auto; width: min(42%, 180px);
}
.choice-panel__rules-figure.is-wide { width: min(52%, 260px); }
.choice-panel__rules-image,
.choice-panel__rules-glow {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.choice-panel__rules-glow {
  z-index: 1; pointer-events: none;
  animation: rules-offering-glow-pulse 3.2s ease-in-out infinite;
}
@keyframes rules-offering-glow-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
.choice-panel button.choice-panel__rules-next {
  display: block; width: min(100%, 20rem); min-height: 44px; margin: 32px auto 0;
  --choice-fill: rgba(64, 44, 100, .95);
  --choice-line: rgba(170, 140, 230, .8);
  --choice-line-width: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .choice-panel__rules-glow { animation: none; opacity: .75; }
}
.choice-panel button,
.choice-panel__help-item,
.pre-scene-intro__continue {
  --choice-fill: rgba(42, 29, 70, .92);
  --choice-line: var(--line);
  --choice-line-width: 1px;
  position: relative; width: 100%; margin: 8px 0; padding: 14px;
  border: none;
  background:
    linear-gradient(90deg, transparent, var(--choice-line) 12%, var(--choice-line) 88%, transparent)
      top left / 100% var(--choice-line-width) no-repeat,
    linear-gradient(90deg, transparent, var(--choice-line) 12%, var(--choice-line) 88%, transparent)
      bottom left / 100% var(--choice-line-width) no-repeat,
    linear-gradient(90deg, transparent, var(--choice-fill) 12%, var(--choice-fill) 88%, transparent);
}
.choice-panel button.is-peer-choice {
  --choice-fill: rgba(74, 52, 122, .95);
  --choice-line: rgba(190, 156, 255, .9);
  --choice-line-width: 2px;
  filter: drop-shadow(0 0 5px rgba(124, 58, 237, .5))
    drop-shadow(0 0 12px rgba(124, 58, 237, .35));
}
.choice-panel__peer,
.choice-panel__own {
  position: absolute; right: 8px; bottom: 5px;
  font-size: 9px; letter-spacing: .12em; line-height: 1;
  color: rgba(212, 198, 255, .82); pointer-events: none;
}
.choice-panel__own { right: auto; left: 8px; color: rgba(198, 214, 255, .82); }
.choice-panel button:disabled { opacity: .72; cursor: default; }
.choice-panel button.is-own-choice {
  --choice-line: rgba(150, 180, 255, .7);
  --choice-line-width: 2px;
  font-weight: 600;
}
.choice-panel__waiting {
  margin: 14px 0 0; text-align: center; font-size: 10px;
  color: rgba(205, 195, 235, .72);
}
.choice-panel button.choice-panel__back {
  --choice-fill: rgba(24, 17, 40, .92);
  --choice-line: rgba(150, 134, 196, .5);
  color: rgba(212, 202, 236, .86);
}
.choice-panel.is-interstitial .choice-panel__finish-bar {
  position: sticky; top: 0; z-index: 1;
  margin: -8px -24px;
  padding: 8px 24px;
  background: rgb(4, 4, 10);
}
.choice-panel.is-interstitial .choice-panel__finish-bar::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 100%;
  height: var(--interstitial-top-gap);
  background: inherit; pointer-events: none;
}
.choice-panel button.choice-panel__finish {
  --choice-fill: rgba(64, 44, 100, .95);
  --choice-line: rgba(170, 140, 230, .8);
  --choice-line-width: 2px;
  animation: finishChoicePulse 1.6s ease-in-out infinite;
}
.choice-panel__finish-prompt {
  margin: 7px 0 0;
  color: rgba(226, 220, 255, .86);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: .05em;
  text-align: center;
  white-space: pre-line;
}
@media (prefers-reduced-motion: reduce) {
  .choice-panel button.choice-panel__finish { animation: none; }
}
.choice-panel__help-group {
  margin: 14px 0 2px; text-align: center;
  font-size: 13px; font-weight: 500; letter-spacing: .3em;
  color: rgba(214, 202, 244, .92);
}
.choice-panel .choice-panel__help-item { display: block; padding: 0; }
.choice-panel .choice-panel__help-toggle {
  margin: 0; background: none;
  font-size: 1.1em;
}
.choice-panel__help-detail {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .25s ease, visibility 0s linear .25s;
}
.choice-panel__help-item.is-open .choice-panel__help-detail {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .25s ease, visibility 0s linear 0s;
}
.choice-panel__help-detail-inner { min-height: 0; overflow: hidden; }
.choice-panel .choice-panel__help-close {
  display: block; width: auto; min-width: 46%;
  margin: 12px auto 9px; padding: 7px 28px;
  font-size: 14px;
  --choice-fill: rgba(16, 12, 30, .72);
}
@media (prefers-reduced-motion: reduce) {
  .choice-panel__help-detail,
  .choice-panel__help-item.is-open .choice-panel__help-detail { transition: none; }
}
.choice-panel__help-body {
  max-height: 46vh; overflow-y: auto; margin: 0; padding: 0 calc(12% - 1em);
  font-size: 14px; line-height: 1.9; color: rgba(226, 220, 240, .88);
  text-align: left;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.choice-panel__thesis-icon {
  display: inline-block; height: 1em; width: auto;
  vertical-align: -0.12em;
}
.whiteout { position: absolute; inset: 0; z-index: 15; background: white; opacity: 0; pointer-events: none; transition: opacity 2.5s; }
.whiteout.is-visible { opacity: 1; }

.epilogue {
  position: absolute; inset: 0; z-index: 16;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 64px 18px calc(64px + env(safe-area-inset-bottom));
  text-align: center; cursor: pointer; outline: none;
  color: #2b2142;
}
.epilogue__text {
  width: min(100%, 32em); min-height: 0; max-height: 100%; overflow-y: auto;
  overscroll-behavior: contain; font-size: var(--white-screen-font-size);
  line-height: 1.85; font-style: italic; white-space: pre-line;
  scrollbar-width: thin; scrollbar-color: rgba(43, 33, 66, .3) transparent;
}
@media (max-height: 480px) {
  .epilogue { padding-top: 56px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}
.epilogue__line { margin: 0; opacity: 0; }
.epilogue__line + .epilogue__line { margin-top: 1.85em; }
.epilogue__line--bold { font-weight: 700; }
.epilogue.is-revealing .epilogue__line {
  animation: epilogueLineIn 1.2s ease forwards;
  animation-delay: calc(var(--epilogue-delay-base, 0s) + var(--epilogue-index, 0) * 1.2s);
}
.epilogue.is-revealed .epilogue__line { opacity: 1; animation: none; }
.epilogue.is-leaving { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
@keyframes epilogueLineIn { from { opacity: 0; } to { opacity: 1; } }

.game.is-epilogue .dialogue {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.game.is-epilogue-static .dialogue {
  opacity: 0; visibility: hidden; pointer-events: none; transition: none;
}

#epilogue-next.epilogue__next {
  position: absolute; left: 0; right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  text-align: center; color: rgba(43, 33, 66, .55); font-size: 9px;
  opacity: 0; pointer-events: none;
}
#epilogue-next.epilogue__next.is-visible { opacity: 1; animation: bounce 1s infinite; }

@keyframes choicePanelIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes choicePanelOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes finishChoicePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}
.choice-panel button.choice-panel__finish::after {
  content: ''; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0, rgba(173, 157, 255, .8) 8px, transparent 14px,
    transparent calc(100% - 14px), rgba(173, 157, 255, .8) calc(100% - 8px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  opacity: .3; animation: finishChoiceHalo 1.6s ease-in-out infinite;
}
@keyframes finishChoiceHalo {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .choice-panel button.choice-panel__finish::after { animation: none; }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.85); } }
@keyframes opponentCardIn { from { opacity: 0; transform: rotate(180deg) translateY(20px) scale(.85); } }
@keyframes conflictCardIn { from { opacity: 0; transform: rotate(180deg) translateY(20px) scale(.85); } }
@keyframes opponentConflictCardIn { from { opacity: 0; transform: rotate(360deg) translateY(20px) scale(.85); } }
@keyframes tokenAppear { from { opacity: 0; transform: scale(.65); } }
@keyframes cardCostPulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(173, 157, 255, 1))
      drop-shadow(0 0 3px rgba(173, 157, 255, 1))
      drop-shadow(0 0 4px rgba(149, 133, 250, 1))
      drop-shadow(0 0 11px rgba(124, 108, 240, .95))
      drop-shadow(0 0 24px rgba(124, 108, 240, .9));
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(173, 157, 255, 1))
      drop-shadow(0 0 5px rgba(173, 157, 255, 1))
      drop-shadow(0 0 9px rgba(149, 133, 250, 1))
      drop-shadow(0 0 24px rgba(124, 108, 240, .95))
      drop-shadow(0 0 46px rgba(124, 108, 240, .9));
  }
}
@keyframes cardPowerPulse {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(255, 150, 150, 1))
      drop-shadow(0 0 2px rgba(255, 150, 150, 1))
      drop-shadow(0 0 3px rgba(248, 113, 113, .95))
      drop-shadow(0 0 8px rgba(220, 38, 38, .85))
      drop-shadow(0 0 18px rgba(185, 28, 28, .7));
  }
  50% {
    filter: drop-shadow(0 0 3px rgba(255, 150, 150, 1))
      drop-shadow(0 0 4px rgba(255, 150, 150, 1))
      drop-shadow(0 0 7px rgba(248, 113, 113, .95))
      drop-shadow(0 0 18px rgba(220, 38, 38, .85))
      drop-shadow(0 0 34px rgba(185, 28, 28, .7));
  }
}
@keyframes demonDeckHighlightPulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(255, 198, 72, .9))
      drop-shadow(0 0 8px rgba(249, 150, 22, .7));
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(255, 215, 112, 1))
      drop-shadow(0 0 14px rgba(249, 150, 22, .95))
      drop-shadow(0 0 26px rgba(234, 120, 12, .7));
  }
}
@keyframes boardImagePlaceGlow {
  30% { box-shadow: 0 0 8px 1px rgba(173, 157, 255, 1), 0 0 24px 4px rgba(124, 108, 240, .9); }
}
@keyframes deckBackHighlightPulse {
  0%, 100% {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .7),
      0 0 3px rgba(255, 198, 72, .9),
      0 0 8px rgba(249, 150, 22, .7);
  }
  50% {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .7),
      0 0 5px rgba(255, 215, 112, 1),
      0 0 14px rgba(249, 150, 22, .95),
      0 0 26px rgba(234, 120, 12, .7);
  }
}
@keyframes boardCardEntryGlow {
  0% {
    opacity: 0;
    box-shadow: none;
  }
  35% {
    opacity: 1;
    box-shadow: 0 0 10px 3px rgba(173, 157, 255, .9), 0 0 24px 8px rgba(124, 108, 240, .78);
  }
  100% {
    opacity: 0;
    box-shadow: none;
  }
}
@keyframes tokenPlaceGlow {
  0% { filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
  30% {
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.7))
      drop-shadow(0 0 7px rgba(173, 157, 255, 1))
      drop-shadow(0 0 18px rgba(124, 108, 240, .95));
  }
  100% { filter: drop-shadow(0 1px 3px rgba(0,0,0,.7)); }
}
@keyframes thesisPlacementEntryGlowAwareness {
  0%, 100% {
    filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000)
      drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)
      drop-shadow(0 1px 3px rgba(0,0,0,.7));
  }
  30% {
    filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000)
      drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)
      drop-shadow(0 1px 3px rgba(0,0,0,.7))
      drop-shadow(0 0 7px rgba(255, 215, 112, 1))
      drop-shadow(0 0 18px rgba(249, 150, 22, .95));
  }
}
@keyframes thesisPlacementEntryGlowMagic {
  0%, 100% {
    filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
      drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)
      drop-shadow(0 1px 3px rgba(0,0,0,.7));
  }
  30% {
    filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
      drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)
      drop-shadow(0 1px 3px rgba(0,0,0,.7))
      drop-shadow(0 0 7px rgba(255, 215, 112, 1))
      drop-shadow(0 0 18px rgba(249, 150, 22, .95));
  }
}
@keyframes tokenPlaceGlowMagic {
  0%, 100% {
    filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
      drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)
      drop-shadow(0 1px 3px rgba(0,0,0,.7));
  }
  30% {
    filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
      drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff)
      drop-shadow(0 1px 3px rgba(0,0,0,.7))
      drop-shadow(0 0 7px rgba(173, 157, 255, 1))
      drop-shadow(0 0 18px rgba(124, 108, 240, .95));
  }
}
@keyframes tokenPlaceGlowAwareness {
  0%, 100% {
    filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000)
      drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)
      drop-shadow(0 1px 3px rgba(0,0,0,.7));
  }
  30% {
    filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000)
      drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)
      drop-shadow(0 1px 3px rgba(0,0,0,.7))
      drop-shadow(0 0 7px rgba(173, 157, 255, 1))
      drop-shadow(0 0 18px rgba(124, 108, 240, .95));
  }
}
@keyframes tokenFlip { 50% { transform: rotateY(90deg); } }
@keyframes tokenFlipMarkerBob {
  0%, 100% { transform: translateY(-3%); }
  50% { transform: translateY(5%); }
}
@keyframes tokenFlipMarkerPulse {
  0%, 100% { fill: #c9bcff; }
  50% { fill: #5b45c9; }
}
@keyframes objectRiseGlow {
  0% { opacity: 0; transform: translateY(14%) scale(.55, .3); }
  35% { opacity: 1; transform: translateY(2%) scale(1, .85); }
  100% { opacity: 0; transform: translateY(-16%) scale(1.35, 1.15); }
}
@keyframes previewExitFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  88% { opacity: 1; }
}
@keyframes previewExitFlip {
  from { transform: scaleX(1); }
  to { transform: scaleX(-1); }
}
@keyframes previewExitFrontFace {
  0% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes previewExitBackFace {
  0% { opacity: 0; }
  50%, 100% { opacity: 1; }
}
@keyframes cardPreviewToConflict {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}
@keyframes roundFlourish {
  0% { opacity: 0; transform: translateY(14px) scale(.94); letter-spacing: .05em; }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  72% { opacity: 1; transform: translateY(0) scale(1); letter-spacing: .18em; }
  100% { opacity: 0; transform: translateY(-10px) scale(1.02); letter-spacing: .24em; }
}
@keyframes roundFlourishStill {
  0% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes cardPreviewDeal {
  from { opacity: 0; transform: rotate(var(--card-preview-rotation, 0deg)) translateY(70px) scale(.82); }
  55% { opacity: 1; }
  to { opacity: 1; transform: rotate(var(--card-preview-rotation, 0deg)) translateY(0) scale(1); }
}
@keyframes cardPreviewIn {
  from { opacity: 0; transform: rotate(var(--card-preview-rotation, 0deg)) translateY(12px) scale(.9); }
  to { opacity: 1; transform: rotate(var(--card-preview-rotation, 0deg)) translateY(0) scale(1); }
}
@keyframes cardLabelFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cardPreviewZoomCorner {
  0% { transform: scale(1); }
  100% { transform: scale(2.3); }
}
@keyframes cardPreviewZoomCornerOut {
  0%, 54.5% { transform: scale(2.3); }
  100% { transform: scale(1); }
}
@keyframes cardInitialWhisperFade {
  0% { opacity: 0; }
  4.5%, 54.5% { opacity: 1; }
  70%, 100% { opacity: 0; }
}
@keyframes cardPreviewZoomTop {
  0% { transform: scale(1); }
  100% { transform: scale(1.9); }
}
@keyframes cardPreviewZoomBottom {
  0%, 26% { transform: scale(1); }
  62%, 100% { transform: scale(1.9); }
}
@keyframes boardAppear { from { opacity: 0; } to { opacity: 1; } }
@keyframes tarotAppear { from { opacity: 0; } to { opacity: 1; } }
@keyframes actPowerPulse { 50% { opacity: .45; } }
@keyframes demonDeckDraw {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  16% { opacity: 1; transform: translateY(18%) scale(1.05); }
  55% { opacity: 0; transform: translateY(62%) scale(1.16); }
  100% { opacity: 0; transform: translateY(62%) scale(1.16); }
}
@keyframes classDeckDraw {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  10% { opacity: 1; transform: translateY(18%) scale(1.05); }
  34% { opacity: 0; transform: translateY(62%) scale(1.16); }
  100% { opacity: 0; transform: translateY(62%) scale(1.16); }
}
@keyframes thesisFlip {
  0%, 18% { transform: scaleX(1); }
  42%, 60% { transform: scaleX(-1); }
  84%, 100% { transform: scaleX(1); }
}
@keyframes thesisFlipWhiteFace {
  0% { opacity: 1; }
  30% { opacity: 0; }
  72%, 100% { opacity: 1; }
}
@keyframes thesisFlipBlackFace {
  0% { opacity: 0; }
  30% { opacity: 1; }
  72%, 100% { opacity: 0; }
}
@keyframes bounce { 50% { transform: translateY(4px); } }
@media (max-height: 690px) {
  .entry { justify-content: flex-start; overflow-y: auto; }
  .entry h1 { margin-bottom: 7px; }
  .entry-step { margin-top: 7px; padding: 9px; }
  .role-card { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (prefers-reduced-motion: reduce) {
  .epilogue.is-leaving { transition: none; }
  .epilogue__line { animation: none; opacity: 1; }
  #epilogue-next.epilogue__next.is-visible { animation: none; }
  .game.is-epilogue .dialogue { transition: none; }
}
