/* Dungeon Tower · game page (team R3, film language). Default = the calm, complete version (no JavaScript, reduced motion).
   html.dt-motion (set by the boot script before the first paint) switches on the moving scenes; the page script drives them through CSSOM. */

.dt *, .dt *::before, .dt *::after { box-sizing: border-box; }
.dt [hidden] { display: none !important; }
:root {
  --dt-night: #070b18;
  --dt-deep: #0a1124;
  --dt-line: rgba(240, 191, 105, .28);
  --dt-text-c: rgba(245, 237, 218, .9);
  --dt-pad: clamp(84px, 13vh, 170px);
}
html[data-world="dt"] { background: var(--dt-handoff); }
body.dt { margin: 0; background: var(--dt-handoff); color: var(--dt-ink); font: 500 clamp(17px, 1.2vw, 20px)/1.62 var(--font-dt-text); }
.dt :where(img) { display: block; max-width: 100%; height: auto; }
.dt :where(figure) { margin: 0; }
.dt-page { overflow-x: clip; }
.dt-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------------ type */
.dt-kicker, .dt-chapter, .dt-status, .dt-note, .dt-stats, .dt-lift__lbl, .dt-lift__kind, .dt-strip__btn, .dt-btn {
  font-family: var(--font-dt-ui); text-transform: uppercase; letter-spacing: .26em; font-weight: 700;
}
.dt-chapter { display: flex; align-items: center; gap: 14px; margin: 0 0 1.1em; font-size: 12.5px; color: var(--dt-gold); }
.dt-chapter::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.dt-h2 { margin: 0 0 .55em; font: 800 clamp(36px, 4.4vw, 70px)/1.04 var(--font-dt-title); letter-spacing: .01em; color: var(--dt-ink); text-wrap: balance; }
.dt-h3 { margin: 0 0 1.2em; font: 800 clamp(20px, 1.6vw, 26px)/1.2 var(--font-dt-title); color: var(--dt-gold); }
.dt-copy p, .dt-lift__copy p, .dt-duel__copy p, .dt-loot__head p { max-width: 34em; color: var(--dt-text-c); }
.dt-status { margin: 0; font-size: 13px; letter-spacing: .22em; color: var(--dt-gold); }
.dt-note { font-size: 12px; letter-spacing: .2em; color: var(--dt-muted); }

/* ------------------------------------------------------------------ hero */
.dt-hero { position: relative; }
.dt-hero__pin { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; background: var(--dt-handoff); }
.dt-hero__still, .dt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.dt-hero__img { object-fit: cover; object-position: 50% 50%; }
.dt-hero__gl, .dt-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dt-hero__gl { visibility: hidden; }
.dt-hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 8, 20, .82) 0%, rgba(5, 8, 20, .45) 34%, rgba(5, 8, 20, 0) 60%),
              linear-gradient(0deg, rgba(5, 8, 20, .9) 0%, rgba(5, 8, 20, 0) 22%); }
.dt-hero__text { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-46%); width: min(38vw, 600px); }
.dt-kicker { margin: 0 0 1.4em; font-size: 12.5px; color: var(--dt-gold); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.dt-hero h1 { margin: 0; }
.dt-hero h1 img { width: 100%; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .55)); }
.dt-tagline { margin: 1.3em 0 1em; max-width: 22em; font: 800 clamp(20px, 1.75vw, 30px)/1.25 var(--font-dt-title); color: var(--dt-ink); text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
.dt-hero .dt-status { text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.dt-scrollcue { display: none; }

/* ------------------------------------------------------------------ the idea + film */
.dt-idea { padding: var(--dt-pad) 0; background: linear-gradient(180deg, var(--dt-handoff), var(--dt-deep) 40%, var(--dt-night)); }
.dt-idea__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.dt-stats { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 2em 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--dt-muted); }
.dt-stats b { display: block; font: 800 clamp(30px, 2.6vw, 42px)/1 var(--font-dt-title); letter-spacing: 0; color: var(--dt-gold); text-transform: none; margin-bottom: 6px; }
.dt-film { position: relative; }
.dt-film__frame { position: relative; aspect-ratio: 16 / 9; background: #05070c;
  box-shadow: 0 0 0 1px var(--dt-line), 0 30px 80px rgba(0, 0, 0, .6); }
.dt-film__poster, .dt-film__video { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.dt-film__video { opacity: 0; transition: opacity .6s ease; }
.dt-film__video.is-playing { opacity: 1; }
.dt-film figcaption, .dt-still figcaption { margin-top: 12px; font: 500 14px/1.5 var(--font-dt-ui); color: var(--dt-muted); }
.dt-film__stage { position: relative; }
.dt-kit { position: absolute; inset: -16% -8% 0; pointer-events: none; }
.dt-kit__i { position: absolute; width: clamp(44px, 5vw, 88px); filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)); }
.dt-kit__i--0 { left: 0; top: 4%; } .dt-kit__i--1 { left: 18%; top: -4%; } .dt-kit__i--2 { left: 42%; top: -7%; }
.dt-kit__i--3 { left: 66%; top: -4%; } .dt-kit__i--4 { right: -3%; top: 8%; } .dt-kit__i--5 { right: -6%; top: 42%; }
.dt-kit__i--6 { right: -4%; top: 72%; } .dt-kit__i--7 { left: -1%; top: 74%; } .dt-kit__i--8 { left: -2%; top: 44%; }
.dt-film__pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px;
  border: 1px solid rgba(245, 237, 218, .45); border-radius: 2px; background: rgba(6, 10, 24, .72); color: var(--dt-ink); cursor: pointer;
  font: 700 11px/1 var(--font-dt-ui); letter-spacing: .18em; text-transform: uppercase; }
.dt-film__pause:hover { background: rgba(6, 10, 24, .92); border-color: var(--dt-gold); }
.dt-film__icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.dt-film__pause.is-paused .dt-film__icon { border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ------------------------------------------------------------------ chapters */
.dt-chap { padding: var(--dt-pad) 0; background: var(--dt-night); }
.dt-card { text-align: center; margin: 0 auto clamp(48px, 8vh, 96px); padding: 0 var(--gutter); }
.dt-card .dt-chapter { justify-content: center; }
.dt-card .dt-chapter::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.dt-h2--card { font-size: clamp(42px, 6vw, 104px); margin: 0; }
.dt-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.dt-split--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dt-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 8vh, 96px); align-items: start; }
.dt-pair--text .dt-copy p { margin-top: 0; }
.dt-still { position: relative; }
.dt-zoom { position: relative; display: block; color: inherit; cursor: zoom-in; }
.dt-zoom__icon { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(6, 10, 24, .75);
  border: 1px solid rgba(245, 237, 218, .4); opacity: .85; transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.dt-zoom__icon::before, .dt-zoom__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--dt-ink); transform: translate(-50%, -50%); }
.dt-zoom__icon::before { width: 14px; height: 2px; } .dt-zoom__icon::after { width: 2px; height: 14px; }
.dt-zoom:hover .dt-zoom__icon, .dt-zoom:focus-visible .dt-zoom__icon { opacity: 1; transform: scale(1.08); }
.dt-zoom img { transition: filter .3s ease; }
.dt-zoom:hover img { filter: brightness(1.08); }
.dt-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 5, 12, .97); color: var(--dt-ink); }
.dt-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.dt-lightbox[open] { display: grid; place-items: center; }
.dt-lightbox__fig { width: min(94vw, 158vh); margin: 0; }
.dt-lightbox__img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; box-shadow: 0 0 0 1px var(--dt-line); }
.dt-lightbox__cap { padding: .9rem 0 0; font: 500 14px/1.5 var(--font-dt-ui); color: var(--dt-muted); }
.dt-lightbox__btn { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; background: rgba(6, 10, 24, .7); color: var(--dt-ink);
  border: 1px solid rgba(240, 191, 105, .4); border-radius: 50%; font: 400 22px/1 var(--font-dt-ui); cursor: pointer; }
.dt-lightbox__btn:hover { background: rgba(240, 191, 105, .18); }
.dt-lightbox__prev { left: 2vw; } .dt-lightbox__next { right: 2vw; } .dt-lightbox__close { top: 28px; right: 2vw; margin-top: 0; }
.dt-still img { width: 100%; box-shadow: 0 0 0 1px var(--dt-line), 0 24px 60px rgba(0, 0, 0, .55); }
.dt-still--small { margin-top: 2em; max-width: 520px; }
.dt-kb { overflow: hidden; }
.dt-kb img { transform-origin: 62% 40%; }

/* regions: the lift (calm version: a grid of halls) */
.dt-regions { padding-top: 0; }
.dt-motion .dt-hero__pin::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; z-index: 4; pointer-events: none;
  background: linear-gradient(rgba(6, 10, 24, 0), var(--dt-handoff)); }
.dt-motion .dt-lift::before { content: ""; display: block; height: 18vh; margin-bottom: -18vh; position: relative; z-index: 6; pointer-events: none;
  background: linear-gradient(var(--dt-night), rgba(7, 11, 24, 0)); }
.dt-lift__pin { position: relative; padding: var(--dt-pad) 0 0; }
.dt-lift__stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; box-sizing: border-box; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.dt-floor { position: relative; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 0 0 1px var(--dt-line); }
.dt-floor__hall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dt-floor__boss { position: absolute; left: 50%; bottom: 31%; height: 64%; width: auto !important; transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, .55)); }
.dt-floor__glow { position: absolute; pointer-events: none; opacity: 0; }
.dt-floor figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font: 600 13px/1.4 var(--font-dt-ui); letter-spacing: .06em;
  color: var(--dt-ink); background: linear-gradient(0deg, rgba(4, 6, 12, .9), rgba(4, 6, 12, 0)); }
.dt-lift__counter, .dt-lift__fx { display: none; }
.dt-lift__copy { order: -1; box-sizing: border-box; width: 100%; max-width: 1320px; margin: 0 auto 40px; padding: 0 var(--gutter); }
.dt-lift__pin { display: flex; flex-direction: column; }
.dt-regions__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; margin: 0; padding: 0; list-style: none; }
.dt-lift__copy .dt-h3 { margin: 1.6em 0 .9em; }
.dt-motion .dt-regions { padding-bottom: 0; }
.dt-motion .dt-ghosts { padding-top: 0; }
.dt-regions__list li { display: flex; align-items: center; gap: 14px; font: 500 14px/1.35 var(--font-dt-ui); color: var(--dt-muted); }
.dt-regions__list img { width: 52px; flex: none; }
.dt-regions__list b { display: block; font: 800 18px/1.2 var(--font-dt-title); color: var(--dt-ink); }

/* ghosts: the duel (calm version: ghost with its wreath next to the text) */
.dt-ghosts { background: linear-gradient(180deg, var(--dt-night), #0b0e1f 50%, var(--dt-night)); }
.dt-duel__pin { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: 0 max(var(--gutter), calc((100% - 1272px) / 2)); }
.dt-duel__stage { position: relative; aspect-ratio: 1; max-height: 80vh; }
.dt-duel__aura { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(126, 170, 255, .28), rgba(126, 170, 255, 0)); }
.dt-duel__ghost { position: absolute; left: 50%; bottom: 4%; height: 86%; width: auto !important; transform: translateX(-50%); filter: drop-shadow(0 0 30px rgba(120, 170, 255, .35)); }
.dt-duel__wreath { position: absolute; inset: 0; }
.dt-duel__item { position: absolute; width: 22%; filter: drop-shadow(0 0 14px rgba(255, 220, 160, .25)); }
.dt-duel__item--0 { left: 4%; top: 34%; } .dt-duel__item--1 { left: 39%; top: 0; } .dt-duel__item--2 { right: 4%; top: 34%; }
.dt-duel__fx { display: none; }
.dt-beat { font: 800 clamp(22px, 2vw, 32px)/1.25 var(--font-dt-title); color: var(--dt-gold) !important; margin: .6em 0 0; }
.dt-beat--2 { color: var(--dt-ink) !important; margin-top: .2em; }

/* the Crown */
.dt-crown { background: var(--dt-night); }
.dt-crownfx__pin { position: relative; display: flex; flex-direction: column; gap: clamp(28px, 4vh, 48px); padding: 0 max(var(--gutter), calc((100% - 1272px) / 2)); }
.dt-crownfx__copy { order: -1; max-width: 640px; }
.dt-crownfx__art { position: relative; }
.dt-crownfx__img { width: 100%; height: auto; }
.dt-crownfx__glow, .dt-crownfx__iris, .dt-crownfx__fx { display: none; }
.dt-crownfx__copy .dt-still--small { max-width: 420px; }

/* loot (calm version: items in a row, rarities as a coloured list) */
.dt-loot { background: linear-gradient(180deg, var(--dt-night), #0c0a14 50%, var(--dt-night)); }
/* chapter V: item cards as in the game, in a row that scrolls sideways (mouse, trackpad, swipe, keyboard, buttons) */
.dt-loot__head { margin-bottom: clamp(8px, 2vh, 24px); }
.dt-cards__scroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(214, 178, 106, .45) transparent;
  padding: clamp(36px, 6vh, 64px) max(var(--gutter), calc((100% - 1272px) / 2)) clamp(40px, 6vh, 64px);
  scroll-padding-inline: max(var(--gutter), calc((100% - 1272px) / 2)); }
.dt-cards__scroll:focus-visible { outline: 2px solid var(--dt-gold); outline-offset: -4px; }
.dt-cards__row { display: flex; align-items: flex-start; gap: clamp(30px, 3vw, 48px); width: max-content; margin: 0; padding: 0; list-style: none; }
.dt-cards__i { position: relative; flex: none; isolation: isolate; scroll-snap-align: start; }
.dt-cards__sheen { display: none; }
.dt-cards__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.dt-cards__foot .dt-note { margin: 0; }

/* stills: a film strip */
.dt-stills { padding: var(--dt-pad) 0 calc(var(--dt-pad) * .6); background: #05070f; }
.dt-strip { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 30px var(--gutter) 34px; margin-top: 18px; scrollbar-width: thin; scrollbar-color: rgba(240, 191, 105, .5) transparent;
  background: repeating-linear-gradient(90deg, rgba(245, 237, 218, .12) 0 14px, transparent 14px 34px) top 9px left 0 / 100% 10px no-repeat,
              repeating-linear-gradient(90deg, rgba(245, 237, 218, .12) 0 14px, transparent 14px 34px) bottom 11px left 0 / 100% 10px no-repeat; }
.dt-strip:focus-visible { outline-offset: -4px; }
.dt-strip__f { flex: 0 0 min(64vw, 980px); scroll-snap-align: start; }
.dt-strip__f--tall { flex-basis: min(22vw, 330px); }
.dt-strip__f img { width: 100%; box-shadow: 0 0 0 1px var(--dt-line); }
.dt-strip__f figcaption { margin-top: 12px; max-width: 46em; font: 500 14px/1.5 var(--font-dt-ui); color: var(--dt-muted); }
.dt-strip__nav { display: flex; gap: 12px; justify-content: flex-end; }
.dt-strip__btn, .dt-btn { display: inline-flex; align-items: center; gap: 12px; padding: 13px 20px; border: 1px solid var(--dt-gold); background: rgba(6, 10, 24, .6);
  color: var(--dt-gold); font-size: 12.5px; text-decoration: none; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.dt-strip__btn:hover, .dt-btn:hover { background: var(--dt-gold); color: #160f05; }
.dt-btn--ghost { border-color: rgba(245, 237, 218, .45); color: var(--dt-ink); }
.dt-btn--ghost:hover { background: var(--dt-ink); color: #0b1430; }

/* facts */
.dt-facts { padding: var(--dt-pad) 0; background: #05070f; border-top: 1px solid rgba(245, 237, 218, .08); }
.dt-facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin: 1em 0 0; }
.dt-facts__list > div { padding: 18px 0; border-top: 1px solid rgba(245, 237, 218, .1); }
.dt-facts__list dt { font: 700 12px/1.4 var(--font-dt-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--dt-muted); }
.dt-facts__list dd { margin: 6px 0 0; color: var(--dt-ink); }

/* end card */
.dt-end { position: relative; min-height: 86vh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.dt-end__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 60% 20%; filter: brightness(.55) saturate(.9); }
.dt-end::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 70% at 50% 55%, rgba(5, 8, 20, .2), rgba(5, 8, 20, .85)), linear-gradient(180deg, #05070f, rgba(5, 7, 15, 0) 30%); }
.dt-end__text { position: relative; z-index: 2; padding: 12vh var(--gutter); }
.dt-end .dt-status { margin: 1.4em 0 2.2em; }
.dt-end__links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 0; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 760px) {
  .dt-hero__shade { background: linear-gradient(0deg, rgba(5, 8, 20, .95) 0%, rgba(5, 8, 20, .7) 34%, rgba(5, 8, 20, 0) 62%); }
  .dt-hero__text { left: var(--gutter); right: var(--gutter); top: auto; bottom: 7vh; transform: none; width: auto; text-align: center; }
  .dt-hero h1 img { width: 78%; margin: 0 auto; }
  .dt-tagline { margin: .9em auto .8em; font-size: 20px; }
  .dt-kicker { margin-bottom: 1em; font-size: 11px; }
  .dt-idea__grid, .dt-split, .dt-split--rev, .dt-pair, .dt-duel__pin { grid-template-columns: 1fr; }
  .dt-loot .dt-cards { --hover-card-w: min(330px, calc(100vw - 2 * var(--gutter) - 34px)); }
  .dt-cards__row { gap: 22px; }
  .dt-kit { position: static; display: flex; justify-content: space-between; margin: 0 0 14px; }
  .dt-kit__i { position: static; width: 34px; }
  .dt-lightbox__btn { top: auto; bottom: 24px; margin-top: 0; }
  .dt-lightbox__close { top: 18px; bottom: auto; }
  .dt-lift__stage { grid-template-columns: 1fr; }
  .dt-regions__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt-facts__list { grid-template-columns: 1fr; }
  .dt-strip__f { flex-basis: 86vw; }
  .dt-pair:not(.dt-pair--text) { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dt-pair:not(.dt-pair--text) figcaption { font-size: 12px; line-height: 1.4; }
  .dt-strip__f--tall { flex-basis: 62vw; }
  .dt-strip__nav { display: none; }
  .dt-duel__stage { max-height: none; }
}

/* ================================================================== moving version */
.dt-motion .dt-hero { height: 170vh; }
.dt-motion .dt-hero__pin { position: sticky; top: 0; }
/* first frame: the colour of the takeover, then the tower gate, close (as the home page left it) */
/* first frame: the colour of the takeover, then the tower gate, close (as the home page left it). The pull-back runs in CSS,
   so it does not wait for any script; WebGL reads this animation and draws the same camera with depth and light. */
.dt-motion .dt-hero__img { transform-origin: var(--dt-ox, 66.5%) var(--dt-oy, 63%); animation: dt-from-blue 1.1s .12s both ease-out, dt-pull 2.8s 1.3s both var(--ease-io); }
/* values per screen come from the boot script (gate of the key art → whole tower, through object-fit: cover) */
@keyframes dt-pull { from { transform: translate(var(--dt-t0x, -16.5%), var(--dt-t0y, -13%)) scale(1.68); } to { transform: translate(var(--dt-t1x, -1.98%), var(--dt-t1y, .78%)) scale(var(--dt-s1, 1.06)); } }
@keyframes dt-from-blue { from { opacity: 0; } to { opacity: 1; } }
@keyframes dt-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dt-fade { from { opacity: 0; } to { opacity: 1; } }
.dt-motion .dt-hero__shade { animation: dt-fade 1.6s 2s both ease; }
.dt-motion .dt-hero__text > * { animation: dt-in 1.3s 2.4s both var(--ease-out); }
.dt-motion .dt-hero__text > :nth-child(2) { animation-delay: 2.55s; }
.dt-motion .dt-hero__text > :nth-child(3) { animation-delay: 2.85s; }
.dt-motion .dt-hero__text > :nth-child(4) { animation-delay: 3.05s; }
.dt-motion .dt-hero__text { will-change: transform, opacity; }
.dt-motion .dt-scrollcue { animation: dt-fade 1s 4s both ease; }
.dt-motion .dt-scrollcue.is-gone { animation: none; opacity: 0; transition: opacity .3s ease; }
.dt-motion .dt-scrollcue { display: flex; position: absolute; left: 50%; bottom: 3.4vh; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px;
  margin: 0; font: 700 11px/1 var(--font-dt-ui); letter-spacing: .32em; text-transform: uppercase; color: var(--dt-muted); }
.dt-motion .dt-scrollcue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--dt-gold), transparent); transform-origin: top; animation: dt-cue 2.4s var(--ease-io) infinite; }
@keyframes dt-cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) { .dt-motion .dt-scrollcue { display: none; } }

/* film grain on the moving scenes */
.dt-motion .dt-hero__pin::after, .dt-motion .dt-lift__pin::after, .dt-motion .dt-duel__pin::after {
  content: ""; position: absolute; inset: -60px; pointer-events: none; z-index: 5; background: url('/assets/dt/img/grain-n.8d18bd74.webp') 0 0 / 192px 192px;
  opacity: .035; animation: dt-grain .9s steps(6) infinite; }
@keyframes dt-grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-31px, 17px); } 33% { transform: translate(23px, -41px); }
  50% { transform: translate(-47px, -9px); } 67% { transform: translate(11px, 37px); } 83% { transform: translate(43px, 5px); } 100% { transform: translate(0, 0); } }

/* the lift through the tower */
.dt-motion .dt-lift { height: 480vh; }
.dt-motion .dt-lift__pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; display: block; background: #05070b; }
.dt-motion .dt-lift__stage { position: absolute; inset: 0; display: block; max-width: none; padding: 0; }
.dt-motion .dt-floor { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; visibility: hidden; will-change: transform; }
.dt-motion .dt-floor::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22vh;
  background: linear-gradient(180deg, #0b0d12 0%, #1a1c22 18%, #0d0f14 40%, #06080b 100%); }
.dt-motion .dt-floor::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 6, 10, .8) 0%, rgba(4, 6, 10, 0) 24%, rgba(4, 6, 10, 0) 62%, rgba(4, 6, 10, .92) 100%); }
.dt-motion .dt-floor__boss { bottom: calc(100% - var(--dais-y, 66%)); height: var(--boss-h, 50vh); opacity: 0; z-index: 2; }
.dt-motion .dt-floor__glow { z-index: 1; left: 50%; width: 70vh; height: 70vh; margin-left: -35vh; bottom: calc(100% - var(--dais-y, 66%) - 35vh); will-change: opacity; }
.dt-motion .dt-floor__glow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, var(--c, #ffd88a), transparent);
  animation: dt-glow-pulse 3.9s ease-in-out infinite alternate; }
.dt-motion .dt-floor:nth-child(2n) .dt-floor__glow::before { animation-delay: -1.7s; }
@keyframes dt-glow-pulse { from { opacity: .5; } to { opacity: 1; } }
.dt-motion .dt-floor figcaption { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.dt-motion .dt-lift__fx { display: block; z-index: 4; }
.dt-motion .dt-lift__counter { display: block; position: absolute; z-index: 4; left: var(--gutter); top: calc(var(--head-h) + 3vh); color: var(--dt-ink); }
.dt-motion .dt-lift__counter::before { content: ""; position: absolute; inset: -30% -40% -30% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(3, 5, 10, .6), rgba(3, 5, 10, 0)); }
.dt-lift__lbl, .dt-lift__kind { display: block; font-size: 12px; color: var(--dt-muted); text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.dt-lift__num { position: relative; display: flex; font: 800 clamp(60px, 8.4vw, 140px)/1.18 var(--font-dt-title); margin: -.04em 0 -.08em; }
.dt-odo { display: block; height: 1.18em; overflow: hidden; }
.dt-odo > span { display: block; will-change: transform; }
.dt-odo > span > span { display: block; height: 1.18em; line-height: 1.18em; }
.dt-lift__inf { position: absolute; left: 0; top: 0; line-height: 1.18; opacity: 0; }
.dt-lift__name { position: relative; display: block; min-height: 1.2em; font: 800 clamp(18px, 1.7vw, 28px)/1.2 var(--font-dt-title); color: var(--dt-gold); text-shadow: 0 1px 14px rgba(0, 0, 0, .9); }
.dt-lift__kind { position: relative; margin-top: .7em; min-height: 1em; }
.dt-lift__lab { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.dt-motion .dt-lift__copy { position: absolute; z-index: 4; left: var(--gutter); bottom: 6vh; width: auto; margin: 0; padding: 0; max-width: min(40vw, 560px); }
.dt-motion .dt-lift__copy::before { content: ""; position: absolute; inset: -40% -30% -30% -20%; z-index: -1; background: radial-gradient(closest-side, rgba(3, 5, 10, .78), rgba(3, 5, 10, 0)); }
.dt-motion .dt-lift__copy .dt-h2 { font-size: clamp(32px, 3.4vw, 56px); }
.dt-motion .dt-lift__copy .dt-h3 { font-size: 14px; letter-spacing: .04em; margin: 1.2em 0 .7em; }
.dt-motion .dt-regions__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.dt-motion .dt-regions__list li { gap: 8px; font-size: 11px; line-height: 1.25; }
.dt-motion .dt-regions__list img { width: 30px; }
.dt-motion .dt-regions__list b { font-size: 13px; }

/* the duel */
.dt-motion .dt-duel { height: 180vh; }
.dt-motion .dt-duel__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.dt-motion .dt-duel__item, .dt-motion .dt-duel__ghost, .dt-motion .dt-duel__aura, .dt-motion .dt-duel__halo { will-change: transform, opacity; }
.dt-motion .dt-duel__item { left: 0; top: 0; right: auto; opacity: 0; animation: dt-bob 4.6s ease-in-out infinite alternate; }
.dt-motion .dt-duel__item--1 { animation-delay: -1.5s; } .dt-motion .dt-duel__item--2 { animation-delay: -3.1s; }
.dt-duel__halo { display: none; }
.dt-motion .dt-duel__halo { display: block; position: absolute; left: 0; top: 0; width: 39.6%; margin: -8.8% 0 0 -8.8%; aspect-ratio: 1; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 200, 120, .55), rgba(255, 200, 120, .18) 55%, rgba(255, 200, 120, 0)); }
.dt-motion .dt-duel__ghost { animation: dt-float 7s ease-in-out infinite alternate; }
.dt-motion .dt-duel__aura { opacity: 0; animation: dt-breathe-s 3.7s ease-in-out infinite alternate; }
@keyframes dt-bob { from { translate: 0 -2px; } to { translate: 0 2px; } }
@keyframes dt-float { from { translate: 0 -3px; } to { translate: 0 3px; } }
@keyframes dt-breathe-s { from { scale: .985; } to { scale: 1.015; } }
.dt-motion .dt-duel__fx { display: block; z-index: 3; }
.dt-motion .dt-beat { opacity: 0; will-change: opacity, translate; }

/* crown, map, kit: scroll-linked through CSS variables */
.dt-motion .dt-crown { padding: 0; }
.dt-motion .dt-crownfx { height: 180vh; }
.dt-motion .dt-crownfx__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: block; padding: 0; }
/* the tree grows out of its heart: an iris (a soft hole in a night-blue disc) widens on the compositor; edges fade into the night
   through a still overlay (no masks, filters or blend modes that would have to be redrawn while scrolling) */
.dt-motion .dt-crownfx__art { position: absolute; left: 53%; top: 63%; width: min(94vw, 190vh); transform: translate(-50%, -50%); }
.dt-motion .dt-crownfx__art::after { content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: linear-gradient(90deg, var(--dt-night), rgba(7, 11, 24, 0) 7%, rgba(7, 11, 24, 0) 93%, var(--dt-night)), linear-gradient(var(--dt-night), rgba(7, 11, 24, 0) 9%),
    radial-gradient(75% 85% at 50% 60%, rgba(7, 11, 24, 0) 55%, var(--dt-night) 100%); }
.dt-motion .dt-crownfx__iris { display: block; position: absolute; left: 50%; top: 88%; width: 104%; aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -50%); will-change: transform; background: radial-gradient(closest-side, rgba(7, 11, 24, 0) 15.9%, var(--dt-night) 26.9%); }
.dt-motion .dt-crownfx__glow { display: block; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.dt-motion .dt-crownfx__glow img { display: block; width: 100%; height: auto; animation: dt-breathe 2.9s ease-in-out infinite alternate; }
@keyframes dt-breathe { from { opacity: .8; } to { opacity: 1; } }
.dt-motion .dt-crownfx__fx { display: block; }
.dt-motion .dt-crownfx__copy { position: absolute; z-index: 2; left: max(var(--gutter), calc((100% - 1272px) / 2)); top: calc(var(--head-h) + 3vh); max-width: min(30vw, 460px); }
.dt-motion .dt-crownfx__copy::before { content: ""; position: absolute; inset: -30% -25% -20% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(7, 11, 24, .85), rgba(7, 11, 24, 0)); }
.dt-motion .dt-crownfx__copy .dt-still--small { max-width: 220px; margin-top: 1em; }
.dt-motion .dt-kb img { transform: scale(var(--kb, 1.14)); will-change: transform; }
.dt-motion .dt-kit__i { will-change: transform; animation: dt-wobble 6.3s ease-in-out infinite alternate; }
.dt-motion .dt-kit__i:nth-child(3n + 1) { animation-duration: 7.9s; animation-delay: -2.2s; }
.dt-motion .dt-kit__i:nth-child(3n + 2) { animation-duration: 5.4s; animation-delay: -4.1s; }
@keyframes dt-wobble { from { transform: translateY(-5px) rotate(-4deg); } to { transform: translateY(5px) rotate(4deg); } }

/* item cards: the game's own idle light runs only while the row is on screen; a soft glow by rarity breathes behind each card;
   under a mouse the card tilts a little towards the pointer and a sheen follows it (opacity and transform only, nothing flashes) */
.dt-motion .dt-cards:not(.is-live) .itm-card *, .dt-motion .dt-cards:not(.is-live) .itm-card *::before, .dt-motion .dt-cards:not(.is-live) .itm-card *::after,
.dt-motion .dt-cards:not(.is-live) .dt-cards__i::before { animation-play-state: paused !important; }
.dt-motion .dt-cards__i { transition: transform .5s var(--ease-out); }
.dt-motion .dt-cards__i.is-tilt { transition: transform .12s linear; }
.dt-motion .dt-cards__i::before { content: ""; position: absolute; inset: -12% -26%; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, var(--glow, transparent), transparent); animation: dt-card-glow 5.6s ease-in-out infinite alternate; }
.dt-motion .dt-cards__i:nth-child(2n)::before { animation-delay: -2.4s; } .dt-motion .dt-cards__i:nth-child(3n)::before { animation-delay: -4.1s; }
.dt-cards__i[data-r="2"] { --glow: rgba(90, 174, 240, .2); } .dt-cards__i[data-r="3"] { --glow: rgba(181, 140, 242, .24); }
.dt-cards__i[data-r="4"] { --glow: rgba(242, 178, 92, .26); } .dt-cards__i[data-r="5"] { --glow: rgba(240, 106, 142, .28); } .dt-cards__i[data-r="u"] { --glow: rgba(242, 178, 92, .3); }
@keyframes dt-card-glow { from { opacity: .78; } to { opacity: 1; } }
.dt-motion .dt-cards__sheen { display: block; position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.dt-motion .dt-cards__sheen::before { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 200%; transform: translateX(var(--sx, 0%));
  background: linear-gradient(105deg, rgba(255, 244, 214, 0) 38%, rgba(255, 244, 214, .1) 47%, rgba(255, 244, 214, .17) 50%, rgba(255, 244, 214, .1) 53%, rgba(255, 244, 214, 0) 62%); }
.dt-motion .dt-cards__i.is-tilt .dt-cards__sheen { opacity: 1; }
.dt-motion .dt-cards__i.is-tilt .itm-card[data-rarity="4"] .itm-card-head::before, .dt-motion .dt-cards__i.is-tilt .itm-card[data-rarity="5"] .itm-card-head::before {
  animation: dt-lightrun .7s var(--ease-wood) .05s 1; }
@keyframes dt-lightrun { 0% { opacity: 1; transform: translateX(-100%); } 99% { opacity: 1; transform: translateX(170%); } 100% { opacity: 0; transform: translateX(170%); } }
.dt-warm { position: absolute; left: 0; top: calc(100vh + 4px); width: 100%; height: 100vh; z-index: -1; isolation: isolate; overflow: hidden; pointer-events: none; }
/* the opening holds on its first frame while the card programs compile (set and lifted by the page script) */
.dt-hold .dt-hero *, .dt-hold .dt-hero *::before, .dt-hold .dt-hero *::after { animation-play-state: paused !important; }
.dt-warm::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--dt-handoff); }
.dt-warm .dt-cards__scroll { width: 60%; padding: 0; }
.dt-warm .dt-cards__row { padding-right: 700px; }
.dt-warm .dt-warm__low { position: absolute; left: 40%; bottom: 0; }
.dt-warm .dt-cards__i { margin-right: calc(var(--hover-card-w) * -.72); }
/* calm version: the cards stand still */
html:not(.dt-motion) .dt-cards *, html:not(.dt-motion) .dt-cards *::before, html:not(.dt-motion) .dt-cards *::after { animation: none !important; transition: none !important; }

@media (max-width: 760px) {
  .dt-motion .dt-hero { height: 150vh; }
  .dt-motion .dt-duel { height: 160vh; }
  .dt-motion .dt-crownfx { height: 160vh; }
  .dt-motion .dt-crownfx__art { width: 118vw; top: 60%; left: 50%; transform: translate(-50%, -50%); }
  .dt-motion .dt-crownfx__art::after { background: linear-gradient(var(--dt-night), rgba(7, 11, 24, 0) 10%, rgba(7, 11, 24, 0) 92%, var(--dt-night)),
    radial-gradient(75% 85% at 50% 60%, rgba(7, 11, 24, 0) 55%, var(--dt-night) 100%); }
  .dt-motion .dt-crownfx__iris { top: 73%; width: 140%; }
  .dt-motion .dt-crownfx__copy { left: var(--gutter); right: var(--gutter); max-width: none; top: calc(var(--head-h) + 2vh); }
  .dt-motion .dt-crownfx__copy p { font-size: 16px; }
  .dt-motion .dt-crownfx__copy .dt-h2 { font-size: 30px; }
  .dt-motion .dt-crownfx__copy .dt-still--small { display: none; }
  .dt-motion .dt-lift { height: 420vh; }
  .dt-motion .dt-lift__copy .dt-h3 { display: none; }
  .dt-motion .dt-regions__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; margin-top: 12px; }
  .dt-motion .dt-regions__list li { flex-direction: column; gap: 3px; text-align: center; font-size: 10px; }
  .dt-motion .dt-regions__list img { width: 26px; }
  .dt-motion .dt-regions__list b { font-size: 11px; }
  .dt-motion .dt-regions__list li span { font-size: 0; }
  .dt-motion .dt-regions__list li span b { font-size: 10px; line-height: 1.15; letter-spacing: 0; }
  .dt-motion .dt-regions__list li { min-width: 0; }
  .dt-motion .dt-lift__copy { left: var(--gutter); right: var(--gutter); max-width: none; bottom: 4vh; }
  .dt-motion .dt-lift__copy p { font-size: 16px; }
  .dt-motion .dt-lift__copy .dt-h2 { font-size: 30px; }
  .dt-motion .dt-duel__pin { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding-top: var(--head-h); }
  .dt-motion .dt-duel__stage { flex: none; width: 100%; max-height: none; aspect-ratio: auto; height: 44svh; }
  .dt-motion .dt-duel__ghost { height: 78%; bottom: 2%; }
  .dt-motion .dt-duel__copy p { font-size: 16px; }
  .dt-motion .dt-duel__copy .dt-h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-strip { scroll-behavior: auto; }
}
