/* Home: one path that scrolls sideways. Intro, pot, wheel, eight forges, the ad note, the last stop. */
.tft-journey { position: relative; isolation: isolate; height: clamp(600px, calc(100svh - 128px), 860px); overflow: hidden; background: var(--night); border-bottom: 1px solid var(--line); }
.tft-journey::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(14, 15, 18, .62) 0%, rgba(14, 15, 18, .1) 42%, rgba(14, 15, 18, .72) 100%); }
.tft-pan { position: absolute; z-index: -2; left: 0; top: 0; height: 100%; width: auto; max-width: none; will-change: transform; user-select: none; -webkit-user-drag: none; }

.tft-track { position: relative; height: 100%; display: flex; gap: 28px; overflow-x: auto; overflow-y: hidden; padding: 26px 4vw 88px; scroll-snap-type: x mandatory; scroll-padding-inline: 4vw; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; }
.tft-track::-webkit-scrollbar { display: none; }
.tft-track:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: -6px; border-radius: 0; }
.tft-dragging .tft-track { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.tft-dragging .tft-track a { pointer-events: none; }
.tft-track img { -webkit-user-drag: none; }

.tft-stop { position: relative; flex: 0 0 auto; height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.tft-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 .7em; color: var(--ac, var(--ember)); font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.tft-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }

/* art stops: a painting with a short text column over its dark side */
.tft-stop-intro, .tft-stop-pot, .tft-stop-wheel, .tft-stop-ad { border: 1px solid rgba(255, 233, 168, .2); border-radius: 6px; overflow: hidden; background: var(--deep) center / cover no-repeat; }
.tft-stop-intro { width: min(1180px, 88vw); background-image: url("../img/banner-1.jpg"); background-position: 60% 40%; }
.tft-stop-pot { width: min(1100px, 86vw); background-image: url("../img/banner-3.jpg"); background-position: 72% 50%; }
.tft-stop-wheel { width: min(1000px, 84vw); background-image: url("../img/banner-2.jpg"); }
.tft-stop-ad { width: min(1100px, 86vw); background-image: url("../img/bg-table.jpg"); }
.tft-stop-intro::before, .tft-stop-pot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14, 15, 18, .96) 0%, rgba(14, 15, 18, .84) 36%, rgba(14, 15, 18, .12) 66%, transparent 100%); }
.tft-stop-intro > *, .tft-stop-pot > * { position: relative; }

.tft-intro-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; max-width: 560px; padding: 0 clamp(24px, 4vw, 56px); }
.tft-intro-copy h1 { margin: 0 0 .3em; font-size: clamp(2.6rem, min(5.4vw, 9.5vh), 4.8rem); text-shadow: 0 2px 24px rgba(14, 15, 18, .8); }
.tft-intro-copy .tft-lead { color: #e7dfcc; max-width: 44ch; margin-bottom: 1.3em; }
.tft-intro-facts { list-style: none; margin: 1.6em 0 0; padding: 0; display: grid; gap: 8px; }
.tft-intro-facts li { display: flex; align-items: center; gap: 12px; color: #e7dfcc; }
.tft-intro-facts .tft-ico { color: var(--ember); width: 22px; height: 22px; }
.tft-intro-facts b { font: 800 1.15rem/1 var(--display); color: var(--ember-hi); font-variant-numeric: lining-nums; }
.tft-hint { display: flex; align-items: center; gap: 8px; margin: 1.6em 0 0; color: var(--muted); font-size: .86rem; }
.tft-hint .tft-ico { color: var(--ember); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

.tft-pot-copy { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 460px; padding: 0 clamp(24px, 4vw, 56px); }
.tft-pot-copy h2 { margin: 0 0 .25em; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.tft-pot-copy .tft-jp-pot { font-size: clamp(2.3rem, 4.4vw, 3.9rem); margin-bottom: 10px; }
.tft-pot-copy .tft-jp-pot small { font: 600 1rem var(--body); color: var(--muted); text-shadow: none; letter-spacing: .04em; }
.tft-pot-copy .tft-jp-progress { width: 100%; margin-bottom: 10px; }
.tft-pot-copy .tft-fine { margin: 0 0 14px; }
.tft-pot-copy .tft-jp-time { font-size: 2.1rem; margin: 4px 0 12px; }

.tft-wheel-copy { position: absolute; left: 24px; top: 24px; width: min(310px, calc(100% - 48px)); padding: 20px 22px; background: rgba(14, 15, 18, .88); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--ember); border-radius: 6px; }
.tft-wheel-copy h2 { margin: 0 0 .3em; font-size: 1.8rem; }
.tft-wheel-copy p { color: #e7dfcc; font-size: .95rem; margin-bottom: 14px; }
.tft-wheel-links { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }

/* forges: open air, the panorama moves slowly behind */
.tft-stop-forge { width: min(1280px, 90vw); }
.tft-forge-head { padding-top: 4px; }
.tft-forge-head .tft-eyebrow { background: rgba(14, 15, 18, .82); padding: 7px 10px; border-radius: 3px; }
.tft-forge-head h2 { margin: 0; font-size: clamp(2.6rem, min(6vw, 10.5vh), 5.4rem); color: var(--ember-hi); text-shadow: 0 2px 0 rgba(14, 15, 18, .9), 0 0 36px rgba(14, 15, 18, .85); }
.tft-plate { margin-top: auto; display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 26px; padding: 22px; background: rgba(14, 15, 18, .8); backdrop-filter: blur(6px); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--ac); border-radius: 6px; }
.tft-forge-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tft-forge-blurb { margin: 0; font: 600 1.12rem/1.4 var(--display); color: var(--text); }
.tft-forge-titan { display: flex; align-items: center; gap: 12px; font-size: .86rem; color: var(--muted); }
.tft-forge-titan img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.tft-forge-titan p { margin: 0; line-height: 1.35; }
.tft-forge-titan a { color: var(--ac); font-weight: 600; }
.tft-plate .tft-badge-new { display: none; }
.tft-plate .tft-game-grid { margin: 0; gap: 16px 14px; }
.tft-plate .tft-btn.tft-small { margin-top: auto; }
@media (max-height: 780px) { .tft-plate .tft-game-card-meta { display: none; } .tft-plate { padding: 16px 18px; } }

.tft-slab { position: absolute; left: 9%; right: 9%; top: 34%; bottom: 11%; display: flex; flex-direction: column; justify-content: center; }
.tft-slab h2 { margin: 0 0 .5em; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ember-hi); }
.tft-slab-cols { columns: 2; column-gap: 40px; }
.tft-slab-cols p { break-inside: avoid; font-size: .98rem; margin-bottom: .8em; color: #e7dfcc; }

.tft-stop-join { width: min(1120px, 90vw); justify-content: flex-end; }
.tft-join-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 26px 28px; background: rgba(14, 15, 18, .9); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--ember); border-radius: 6px; }
.tft-join-main h2 { margin: 0 0 .4em; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.tft-join-main .tft-lead { font-size: 1.05rem; }
.tft-join-main > p { margin-bottom: 1em; }
.tft-join-cats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 1.4em 0 1em; }
.tft-join-cats a { color: var(--ember-hi); font-weight: 600; font-size: .92rem; }
.tft-join-side { display: grid; gap: 18px; align-content: start; }
.tft-ledger { background: var(--raise); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.tft-ledger h3 { margin: 0 0 6px; font-size: 1.25rem; color: var(--ember-hi); }
.tft-ledger ul { list-style: none; margin: 0; padding: 0; }
.tft-ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.tft-ledger li:last-child { border-bottom: 0; }
.tft-ledger b { font: 800 1.1rem/1.2 var(--display); color: var(--text); font-variant-numeric: lining-nums tabular-nums; }
.tft-feed-block h3 { margin: 0 0 4px; font-size: 1.15rem; }
.tft-feed-block .tft-fine { margin: 0 0 8px; }
.tft-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tft-feed li { font-size: .86rem; line-height: 1.35; padding-left: 12px; border-left: 2px solid var(--ember-lo); }
.tft-feed li:nth-child(n+5) { display: none; }
.tft-feed b { color: var(--ember-hi); }

/* the route under the path */
.tft-route { position: absolute; z-index: 5; left: 4vw; right: 4vw; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: rgba(14, 15, 18, .9); border: 1px solid var(--line); border-radius: 6px; }
.tft-route-now { order: -1; margin: 0; min-width: 132px; font: 800 1.05rem/1.1 var(--display); color: var(--ember-hi); }
.tft-route-btn { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--raise); color: var(--ember-hi); cursor: pointer; }
.tft-route-btn[hidden] { display: none; }
.tft-route-btn:hover:not(:disabled) { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); }
.tft-route-btn:disabled { opacity: .35; cursor: default; }
.tft-route-list { position: relative; flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; }
.tft-route-list::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--line); }
.tft-route-list li { position: relative; }
.tft-route-list a { position: relative; display: grid; place-items: center; min-width: 28px; height: 28px; text-decoration: none; color: var(--muted); font: 800 .85rem/1 var(--display); }
.tft-route-list a::before { content: ""; position: absolute; inset: 50% auto auto 50%; width: 11px; height: 11px; background: var(--line); border: 2px solid var(--night); transform: translate(-50%, -50%) rotate(45deg); transition: background .2s, transform .2s var(--ease); }
.tft-route-list .tft-rt-forge::before { width: 26px; height: 26px; border-radius: 3px; transform: translate(-50%, -50%); background: var(--raise-2); border-color: var(--line); }
.tft-route-list .tft-rt-forge span { position: relative; }
.tft-route-list a:hover::before { background: var(--ember-lo); }
.tft-route-list a[aria-current="step"]::before { background: var(--ember); border-color: var(--ember-hi); transform: translate(-50%, -50%) rotate(45deg) scale(1.35); }
.tft-route-list .tft-rt-forge[aria-current="step"]::before { transform: translate(-50%, -50%) scale(1.1); }
.tft-route-list .tft-rt-forge[aria-current="step"] { color: var(--ember-ink); }
.tft-route-list a:focus-visible { outline: 3px solid var(--ember-hi); outline-offset: 2px; }

/* small screens: stops stack in a column, each forge shows its own piece of the panorama */
@media (max-width: 820px) {
  .tft-journey { height: auto; overflow: visible; background: none; border-bottom: 0; }
  .tft-journey::before, .tft-pan, .tft-route { display: none; }
  .tft-track { height: auto; display: grid; gap: 18px; overflow: visible; padding: 16px; scroll-snap-type: none; cursor: auto; }
  .tft-stop { width: auto; height: auto; }
  .tft-stop-wheel { min-height: 440px; }
  .tft-stop-intro, .tft-stop-pot { background-position: 70% 0; background-size: auto 250px; background-repeat: no-repeat; justify-content: flex-end; padding-top: 220px; }
  .tft-stop-wheel { background-size: auto 100%; background-position: 50% 0; justify-content: flex-end; }
  .tft-stop-intro::before, .tft-stop-pot::before { background: linear-gradient(0deg, rgba(14, 15, 18, .98) 0%, rgba(14, 15, 18, .96) 72%, rgba(14, 15, 18, .2) 100%); }
  .tft-intro-copy, .tft-pot-copy { max-width: none; padding: 0 20px 24px; align-self: flex-end; }
  .tft-wheel-copy { position: relative; left: 0; top: 0; width: auto; margin: 0; border-radius: 0 0 6px 6px; margin-top: auto; }
  .tft-stop-wheel { min-height: 520px; }
  .tft-stop-forge { background: linear-gradient(180deg, rgba(14, 15, 18, .35) 0, var(--night) 280px), var(--bg) center top / auto 280px no-repeat, var(--night); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
  .tft-forge-head { padding-top: 40px; margin-bottom: 18px; }
  .tft-plate { grid-template-columns: 1fr; padding: 16px 14px; gap: 16px; backdrop-filter: none; margin-top: 0; }
  .tft-plate .tft-btn.tft-small { margin-top: 0; }
  .tft-plate .tft-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .tft-plate .tft-game-card-meta { display: -webkit-box; }
  .tft-stop-ad { min-height: 0; background-size: cover; background-position: 50% 30%; padding: 190px 20px 24px; }
  .tft-slab { position: relative; left: 0; right: 0; top: 0; bottom: 0; background: rgba(14, 15, 18, .82); padding: 18px; border-radius: 6px; }
  .tft-slab-cols { columns: 1; }
  .tft-join-grid { grid-template-columns: 1fr; padding: 20px 16px; }
  .tft-feed li:nth-child(n+5) { display: none; }
}
@media (hover: none) and (min-width: 821px) { .tft-track { cursor: auto; } }
@media (prefers-reduced-motion: reduce) { .tft-hint .tft-ico { animation: none; } .tft-pan { will-change: auto; } }
