.tft-catalog-tools { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-block: 16px; }
.tft-catalog-tools .tft-search { display: grid; gap: 4px; flex: 1 1 260px; max-width: 420px; }
.tft-cat-block[hidden], .tft-game-card[hidden] { display: none; }



.tft-crumbs { margin: 0; color: var(--muted); font-size: .9rem; }
.tft-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
.tft-facts dt { color: var(--muted); }
.tft-facts dd { margin: 0; font-weight: 600; }
.tft-fine { font-size: .88rem; }
.tft-guest-panel { max-width: 640px; }
.tft-game-rules { margin-top: 32px; }

.tft-stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; z-index: 0; pointer-events: none; }
.tft-hilo-table > *:not(.tft-stage-bg), .tft-bj-table > *:not(.tft-stage-bg), .tft-rt-wrap > *:not(.tft-stage-bg), .tft-wheel-game > *:not(.tft-stage-bg) { position: relative; z-index: 1; }
.tft-stage-msg { min-height: 1.6em; margin: 0; font-weight: 700; }
.tft-stage-msg.tft-win { color: #b5bdb6; }
.tft-stage-msg.tft-lose { color: var(--muted); }
.tft-stage-msg.tft-error { color: #ff9c9c; }
.tft-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.tft-bet { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.tft-bet-field { display: grid; gap: 4px; }
.tft-bet-field input, .tft-bet-field select { width: 150px; }
.tft-bet-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.tft-spin-btn { padding: 12px 28px; font-size: 1.05rem; }
.tft-win-total { margin: 0; font-weight: 700; color: var(--ember); min-height: 1.4em; }
.tft-segmented { display: inline-flex; gap: 6px; }
.tft-btn[aria-pressed="true"], button[aria-pressed="true"] { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); }
.tft-dice-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.tft-dice-facts dt { color: var(--muted); font-size: .85rem; }
.tft-dice-facts dd { margin: 0 0 6px; font-weight: 700; }

.tft-slot-machine { max-width: 720px; width: 100%; margin-inline: auto; background: #0b0c0f; border: 2px solid var(--c2, var(--ember)); border-radius: 14px; padding: 12px; }
.tft-slot-banner { margin: 0 0 8px; text-align: center; font-weight: 700; color: var(--ember); }
.tft-slot-banner[hidden] { display: none; }
.tft-reels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tft-reel { display: grid; grid-template-rows: repeat(3, 1fr); gap: 6px; overflow: hidden; border-radius: 8px; }
.tft-cell { aspect-ratio: 1; border-radius: 8px; background: #1d2026; display: grid; place-items: center; overflow: hidden; position: relative; }
.tft-cell.tft-win { outline: 3px solid var(--ember); animation: pulse .8s ease-in-out 3; z-index: 1; }
.tft-reel.tft-spin .tft-cell { filter: blur(1.5px); transform: translateY(2px); }
.tft-reel.tft-land .tft-cell { animation: land .28s ease-out; }
.tft-sym { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 8px; font-weight: 800; text-align: center; padding: 4px; line-height: 1.05; font-size: clamp(.62rem, 2vw, .95rem); color: #ffffff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); background: linear-gradient(150deg, var(--s1, #605e67), var(--s2, #29292b)); }
.tft-sym img { width: 100%; height: 100%; object-fit: contain; }
.tft-sym-1 { --s1: #ff5b14; --s2: #5a1d03; color: #1a0a02; text-shadow: none; }
.tft-sym-2 { --s1: #807279; --s2: #3a3237; }
.tft-sym-3 { --s1: #788088; --s2: #3b3e42; }
.tft-sym-4 { --s1: #5f6a65; --s2: #272b2a; }
.tft-sym-5 { --s1: #746c66; --s2: #312d2b; }
.tft-sym-6 { --s1: #707174; --s2: #333437; }
.tft-sym-7 { --s1: #717074; --s2: #343337; }
.tft-sym-8 { --s1: #707473; --s2: #303232; }

.tft-plinko-board { background: #0b0c0f; border-radius: 12px; padding: 12px 8px; }
.tft-plinko-field { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.tft-plinko-peg { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translate(-50%, -50%); }
.tft-plinko-ball { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, var(--ember) 55%, #5a1d03); transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.tft-plinko-ball[hidden] { display: none; }
.tft-plinko-slots { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; max-width: 640px; margin: 6px auto 0; }
.tft-plinko-slot { text-align: center; padding: 6px 0; border-radius: 6px; font-size: clamp(.55rem, 1.9vw, .85rem); font-weight: 700; background: #2a2e36; }
.tft-plinko-slot.tft-tier-hot { background: #8a2a2a; }
.tft-plinko-slot.tft-tier-warm { background: #2d4f73; }
.tft-plinko-slot.tft-tier-even { background: #484f4d; }
.tft-plinko-slot.tft-hit { outline: 3px solid var(--ember); transform: translateY(-3px); }
.tft-plinko-cap { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }

.tft-dice-track { position: relative; height: 34px; border-radius: 17px; overflow: hidden; display: flex; background: #0b0c0f; max-width: 720px; width: 100%; margin-inline: auto; }
.tft-dice-zone { display: block; height: 100%; }
.tft-dice-win { background: #5f6a63; }
.tft-dice-lose { background: #8a2a2a; }
.tft-dice-marker { position: absolute; top: 3px; bottom: 3px; width: 6px; margin-left: -3px; border-radius: 3px; background: #ffffff; left: 0; transition: left .5s ease-out; }
.tft-dice-marker.tft-win { box-shadow: 0 0 10px #b5bdb6; }
.tft-dice-marker.tft-lose { box-shadow: 0 0 10px #ff9c9c; }
.tft-dice-roll { text-align: center; font-size: 2.6rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
input[type="range"] { padding: 0; accent-color: var(--ember); width: min(320px, 100%); }

.tft-wheel-game { position: relative; display: grid; place-items: center; padding: 8px; overflow: hidden; border-radius: 12px; }
.tft-wheel-holder { position: relative; width: min(380px, 100%); }
.tft-wheel-svg { width: 100%; height: auto; display: block; }
.tft-wheel-spinner { transform-box: fill-box; transform-origin: center; }
.tft-wheel-pointer-game { position: absolute; left: 50%; top: -6px; width: 0; height: 0; transform: translateX(-50%); border: 12px solid transparent; border-top: 24px solid var(--ember); z-index: 2; }

.tft-keno-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; max-width: 560px; }
.tft-keno-tile { aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: #1d2026; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tft-keno-tile.tft-picked { background: var(--ember); color: var(--ember-ink); border-color: var(--ember); }
.tft-keno-tile.tft-drawn { background: #605e67; }
.tft-keno-tile.tft-hit { background: #5f6a63; color: #ffffff; border-color: #b5bdb6; animation: pulse .6s ease-in-out 2; }
.tft-keno-pay { margin: 0; color: var(--muted); }

.tft-scratch-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 420px; padding: 14px; border-radius: 14px; background: linear-gradient(150deg, var(--c1, #2d4f73), #0b0c0f 150%); border: 2px solid var(--c2, var(--ember)); }
.tft-scratch-tile { aspect-ratio: 1.3; border-radius: 10px; border: 0; font: inherit; font-weight: 800; font-size: 1.3rem; cursor: pointer; background: repeating-linear-gradient(135deg, #c0c1c2, #c0c1c2 6px, #abacad 6px, #abacad 12px); color: #0b0c0f; }
.tft-scratch-tile:disabled { cursor: default; }
.tft-scratch-tile.tft-open { background: #f6ead2; animation: land .3s ease-out; }
.tft-scratch-tile.tft-match { background: #b5bdb6; outline: 3px solid var(--ember); }

.tft-mines-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 420px; }
.tft-mine-tile { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: #2a2e36; cursor: pointer; position: relative; }
.tft-mine-tile:disabled { cursor: default; }
.tft-mine-tile:not(:disabled):hover { background: #55535c; }
.tft-mine-tile.tft-safe::after { content: ""; position: absolute; inset: 24%; background: linear-gradient(135deg, #bbc4c0, #576560); transform: rotate(45deg); border-radius: 4px; }
.tft-mine-tile.tft-safe { background: #242827; }
.tft-mine-tile.tft-pop { animation: land .3s ease-out; }
.tft-mine-tile.tft-mine { background: #343030; }
.tft-mine-tile.tft-mine::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #1a1a1a; box-shadow: 0 0 0 3px #8b7f7f; }
.tft-mine-tile.tft-boom { background: #8a2a2a; animation: pulse .5s ease-in-out 2; }
.tft-mine-tile.tft-dim { opacity: .45; }

.tft-pcard { display: inline-grid; grid-template-rows: auto 1fr; justify-items: center; width: 74px; height: 104px; border-radius: 8px; background: #f6ead2; padding: 6px 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, .5); font-weight: 800; }
.tft-pcard.tft-red { color: #b3262b; }
.tft-pcard.tft-dark { color: #19191a; }
.tft-pcard-rank { font-size: 1.3rem; line-height: 1; }
.tft-pcard-suit { font-size: 2rem; align-self: center; }
.tft-pcard.tft-down { background: repeating-linear-gradient(45deg, #414348, #414348 6px, #53565c 6px, #53565c 12px); border: 3px solid #f6ead2; }
.tft-pcard.tft-mini { width: 40px; height: 56px; }
.tft-pcard.tft-mini .tft-pcard-rank { font-size: .85rem; }
.tft-pcard.tft-mini .tft-pcard-suit { font-size: 1.1rem; }
.tft-pcard.tft-flip, .tft-pcard.tft-deal-in { animation: deal .35s ease-out; }
.tft-hilo-table, .tft-bj-table { background: radial-gradient(ellipse at center, #323936, #1a1e1c); border-radius: 14px; padding: 18px; display: grid; gap: 12px; justify-items: center; position: relative; overflow: hidden; min-height: 220px; }
.tft-hilo-current .tft-pcard { width: 100px; height: 140px; }
.tft-hilo-trail { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; min-height: 56px; }
.tft-guess-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tft-guess { background: transparent; color: var(--ink); border-color: var(--line); }
.tft-bj-label { margin: 0; font-weight: 700; color: #edeeed; }
.tft-bj-hand { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 108px; }

.tft-rt-wrap { display: grid; gap: 16px; position: relative; padding: 8px; border-radius: 12px; overflow: hidden; }
.tft-rt-wheel { display: grid; justify-items: center; gap: 6px; }
.tft-rt-wheel .tft-wheel-svg { width: min(300px, 80%); }
.tft-rt-result { margin: 0; font-weight: 800; font-size: 1.2rem; }
.tft-rt-board { display: grid; grid-template-columns: 0.9fr repeat(12, 1fr) 1.1fr; grid-template-rows: repeat(5, 40px); gap: 3px; max-width: 760px; width: 100%; margin-inline: auto; }
.tft-rt-spot { position: relative; border: 1px solid #cecdcb; border-radius: 4px; color: #ffffff; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; background: #323936; padding: 0; }
.tft-rt-spot.tft-red { background: #b3262b; }
.tft-rt-spot.tft-black { background: #1a1a1b; }
.tft-rt-spot.tft-green { background: #46504a; }
.tft-rt-spot.tft-outside { background: #323936; }
.tft-rt-spot.tft-outside.tft-red { background: #b3262b; }
.tft-rt-spot.tft-outside.tft-black { background: #1a1a1b; }
.tft-rt-spot.tft-has-chip { outline: 2px solid var(--ember); }
.tft-rt-spot.tft-won { outline: 3px solid #b5bdb6; animation: pulse .7s ease-in-out 3; }
.tft-rt-chip { position: absolute; right: 2px; top: 2px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--ember); color: var(--ember-ink); font-size: .68rem; display: grid; place-items: center; }
.tft-rt-chip[hidden] { display: none; }
.tft-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

@keyframes land { 0% { transform: translateY(-14px); opacity: .5; } 100% { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes deal { 0% { transform: translateY(-16px) rotate(-6deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

@media (max-width: 760px) {
  .tft-game-top { grid-template-columns: 1fr; }
  .tft-cover-hero { max-width: 220px; }
  .tft-keno-board { grid-template-columns: repeat(8, 1fr); gap: 4px; }
  .tft-rt-board { grid-template-rows: repeat(5, 34px); gap: 2px; }
  .tft-rt-spot { font-size: .62rem; }
  .tft-bet-field input, .tft-bet-field select { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .tft-reel.tft-land .tft-cell, .tft-cell.tft-win, .tft-pcard.tft-flip, .tft-pcard.tft-deal-in, .tft-mine-tile.tft-pop, .tft-scratch-tile.tft-open, .tft-keno-tile.tft-hit, .tft-rt-spot.tft-won { animation: none !important; }
}

.tft-catalog-tools .tft-search { max-width: 440px; }

.tft-game-top { display: grid; grid-template-columns: minmax(200px, 400px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: 28px; }
.tft-game-cover { position: relative; }
.tft-game-cover::before { content: ""; position: absolute; inset: 8% -8% -8%; background: radial-gradient(closest-side, var(--c2, var(--ember)), transparent); opacity: .3; filter: blur(30px); z-index: -1; }
.tft-cover-hero { border-radius: 26px; border: 3px solid var(--ember-lo); box-shadow: var(--shadow-card), 0 0 60px -10px rgba(255, 91, 20, .35); }
.tft-facts dd { color: var(--ember-hi); }
.tft-stage { background: linear-gradient(180deg, #1d2026, #121418); border: 1px solid var(--ember-lo); border-radius: 26px; padding: clamp(14px, 3vw, 28px); position: relative; display: grid; gap: 18px; overflow: hidden; box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, .08); }
.tft-stage-msg { font: 400 1.25rem/1.3 var(--display); }
.tft-stage-msg.tft-win { color: var(--ember-hi); }
.tft-win-total { font: 400 1.5rem/1.2 var(--display); }
.tft-slot-machine { background: linear-gradient(180deg, #403e46, #1e1d22); border: 4px solid var(--ember); border-radius: 22px; padding: clamp(8px, 2vw, 16px); box-shadow: 0 0 0 2px var(--ember-lo), inset 0 0 36px rgba(0, 0, 0, .5), 0 20px 50px -16px rgba(255, 91, 20, .35); }
.tft-slot-banner { font: 400 1.15rem/1.3 var(--display); color: var(--ember-hi); }
.tft-cell { background: radial-gradient(circle at 50% 35%, #45434b, #201f24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.tft-cell.tft-win { outline: 3px solid var(--ember-hi); box-shadow: 0 0 22px rgba(255, 91, 20, .7); }
.tft-sym { background: none; padding: 2px; }
.tft-sym-label { padding: 2px; border-radius: 8px; background: linear-gradient(150deg, var(--s1, #605e67), var(--s2, #1d2026)); width: 100%; height: 100%; display: grid; place-items: center; }
.tft-guest-panel { max-width: 680px; }
.tft-spin-btn { padding: 14px 40px; font-size: 1.3rem; }
.tft-stamp { position: absolute; inset: 0; margin: auto; width: clamp(130px, 26vw, 200px); height: clamp(130px, 26vw, 200px); background: url("../img/win-badge.svg") center / contain no-repeat; display: grid; place-items: center; align-content: center; text-align: center; color: #201d1a; font: 400 1rem/1.05 var(--display); z-index: 6; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); animation: stamp-in .55s var(--ease) both, stamp-out .6s ease-in 3.2s forwards; }
.tft-stamp b { display: block; font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1; }
@keyframes stamp-in { 0% { transform: scale(2.6) rotate(-30deg); opacity: 0; } 55% { transform: scale(.92) rotate(-10deg); opacity: 1; } 100% { transform: scale(1) rotate(-12deg); opacity: 1; } }
@keyframes stamp-out { to { opacity: 0; transform: scale(1.05) rotate(-12deg); } }
.tft-confetti-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 90; pointer-events: none; }
@media (max-width: 760px) { .tft-game-top { grid-template-columns: 1fr; } .tft-cover-hero { max-width: 260px; } }
a.tft-spin-btn { text-decoration: none; }
.tft-is-guest .tft-controls, .tft-is-guest .tft-bet, .tft-is-guest .tft-guess-row, .tft-is-guest .tft-chip-row { opacity: .78; }
.tft-is-guest button:disabled, .tft-is-guest input:disabled, .tft-is-guest select:disabled { cursor: not-allowed; }
.tft-is-guest .tft-bet-field input:disabled { color: var(--ember-hi); font-weight: 700; opacity: 1; }
.tft-is-guest .tft-keno-tile, .tft-is-guest .tft-mine-tile, .tft-is-guest .tft-rt-spot, .tft-is-guest .tft-scratch-tile { cursor: not-allowed; }
.tft-game-below { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 22px; align-items: start; }
.tft-play-free { border-color: var(--ember-lo); background: radial-gradient(420px 160px at 50% 0, rgba(255, 91, 20, .18), transparent 70%), linear-gradient(180deg, var(--raise), var(--deep)); }
.tft-coin-note { margin: 16px 0 0; font: 400 1.15rem/1.35 var(--display); color: var(--ember-hi); text-align: center; }

/* slot win lines */
.tft-reels { position: relative; }
.tft-line-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.tft-line-win { filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6)); }
.tft-win-caption { margin: 10px 0 0; text-align: center; font-weight: 700; color: var(--ember-hi); }
.tft-win-caption[hidden] { display: none; }
.tft-cell.tft-win .tft-sym { filter: drop-shadow(0 0 8px var(--ember-hi)); }

/* catalogue and forge pages */
.tft-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 .5em; 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; }
.tft-page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 0 .25em; }
.tft-tabs { display: flex; gap: 2px; overflow-x: auto; margin: 14px 0 26px; border-bottom: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--raise-2) transparent; }
.tft-tabs a { flex: none; padding: 10px 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--muted); text-decoration: none; font: 800 1rem/1 var(--display); white-space: nowrap; }
.tft-tabs a:hover { color: var(--text); border-color: var(--line); }
.tft-tabs a[aria-current="true"] { color: var(--ember-hi); border-color: var(--ember); }
.tft-cat-block { margin-top: 34px; }
.tft-cat-block h2 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tft-cat-block .tft-rail-note { margin: 4px 0 16px 50px; }
.tft-forge-no { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 3px; background: var(--ac, var(--ember)); color: var(--ember-ink); font: 800 1.1rem/1 var(--display); }
.tft-forge-band { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 15, 18, .55), var(--night)), var(--bg) center / cover no-repeat, var(--deep); }
.tft-forge-band-in { padding-block: clamp(36px, 7vw, 84px) clamp(24px, 4vw, 40px); }
.tft-forge-band h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); margin: .1em 0 .2em; color: var(--ember-hi); text-shadow: 0 2px 0 rgba(14, 15, 18, .9), 0 0 36px rgba(14, 15, 18, .85); }
.tft-forge-band .tft-lead { color: #e7dfcc; text-shadow: 0 1px 12px rgba(14, 15, 18, .9); }
.tft-forge-band .tft-crumbs { color: #e7dfcc; }
.tft-band-titan { margin: 0; color: var(--text); }
.tft-band-titan a { color: var(--ac); font-weight: 600; }
.tft-forge-games { padding-top: 30px; }
.tft-forge-step { display: flex; justify-content: space-between; gap: 16px; margin: 10px 0 8px; }
.tft-forge-step a { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); text-decoration: none; font: 800 1.15rem/1.2 var(--display); }
.tft-forge-step a:hover { border-color: var(--ember); }
.tft-forge-step small { display: block; font: 600 .72rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tft-step-next { margin-left: auto; text-align: right; }
@media (max-width: 640px) { .tft-forge-step { flex-direction: column; } .tft-step-next { margin-left: 0; } .tft-cat-block .tft-rail-note { margin-left: 0; } }
