/* ==========================================================================
   MMO11 — KUPA LİGİ (hub view #hubViewTrophyLeague) — a second home page, no scrolling
   Redesign 2026-12-04 (owner: "karman çorman"): one hero (the league's rendered cup on a plinth), two quiet side columns
   in ONE panel frame, gold only on what matters (trophies, progress, the next reward, MAÇ OYNA).
   Top: Ligler · league plate (centre) · trophies (right). Middle: Son Maçlar + Galibiyet Ödülü · cup · Kupa Yolu.
   Bottom: Ana Sayfa · MAÇ OYNA + today's rights. Background: a night stadium (assets/trophy_league/bg_stadium.webp,
   local ComfyUI) under a dark violet grade. Panels (reward strip, leagues, Kupa Yolu) are GameWindow panels (#tlPanel).
   Text colours are explicit on every surface.
   ========================================================================== */
.game-canvas-1080p.trophy-mode,
.game-window-viewport.trophy-mode {
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(20, 8, 60, 0) 0%, rgba(12, 5, 38, 0.55) 70%, rgba(8, 3, 26, 0.85) 100%),
    linear-gradient(180deg, rgba(14, 6, 44, 0.55) 0%, rgba(24, 10, 70, 0.25) 40%, rgba(10, 4, 32, 0.7) 100%),
    url('../../../assets/trophy_league/bg_stadium.webp') no-repeat center 40% / cover,
    #160a3e !important;
}

#hubViewTrophyLeague { min-height: 0; }
#trophyLeaguePage {
  max-width: none; padding: 0; height: 100%; box-sizing: border-box; overflow: hidden;
  color: #f8fafc;
}
#trophyLeaguePage, #tlPanel {
  --tl-gold: #f6c343;
  --tl-gold-2: #ffdf7e;
  --tl-ink: #170a3d;
  --tl-glass: linear-gradient(180deg, rgba(40, 20, 96, 0.86), rgba(18, 9, 52, 0.9));
  --tl-line: #120635;
  --tl-soft: #c4b5fd;
  --tl-frame: rgba(214, 196, 255, 0.22);
  --tl-muted: #b9addf;
  --tl-win: #34d399;
  --tl-draw: #cbd5e1;
  --tl-loss: #fb7185;
}

.tl-cup { width: 22px; height: 22px; flex: 0 0 auto; }
.tl-cup.xs { width: 20px; height: 20px; }
.tl-cup.sm { width: 34px; height: 34px; }
.tl-cup.md { width: 52px; height: 52px; }
.tl-shirt { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- page (stage) */
.tl-stage {
  position: relative; height: 100%; box-sizing: border-box; display: flex; flex-direction: column;
  padding: 16px 32px 22px; gap: 10px;
}
/* one warm spotlight behind the cup in the league's colour; nothing else glows on the page except MAÇ OYNA */
.tl-lights {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(26% 40% at 50% 50%, var(--tl-glow), rgba(0, 0, 0, 0) 70%);
  opacity: 0.55;
}
.tl-stage > *:not(.tl-lights) { position: relative; z-index: 1; }

/* the one panel frame used by every box on the page */
.tl-pill-btn, .tl-trophy-pill, .tl-league, .tl-rules, .tl-day, .tl-home-btn, .tl-cancel {
  background: var(--tl-glass);
  border: 1.5px solid var(--tl-frame);
  box-shadow: 0 10px 24px rgba(4, 1, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tl-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; }
.tl-top-left { display: flex; align-items: center; gap: 10px; }
.tl-top-left .help-q-btn { margin-left: 0; }
.tl-top-right { display: flex; justify-content: flex-end; }
.tl-pill-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 16px; cursor: pointer;
  color: #f8fafc; font-weight: 800; font-size: 20px; font-family: inherit;
}
.tl-pill-btn:active, .tl-home-btn:active { transform: translateY(2px); }
.tl-trophy-pill {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 22px 8px 12px; border-radius: 16px;
  border-color: rgba(246, 195, 67, 0.55);
  background: linear-gradient(180deg, rgba(74, 50, 8, 0.92), rgba(34, 22, 4, 0.92));
}
.tl-trophy-pill .tl-cup { width: 42px; height: 42px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.tl-trophy-pill div { display: flex; flex-direction: column; line-height: 1; }
.tl-trophy-pill b { font-size: 34px; font-weight: 900; color: var(--tl-gold-2); font-variant-numeric: tabular-nums; }
.tl-trophy-pill span { font-size: 12px; font-weight: 800; letter-spacing: 0.24em; color: #e9c97a; }

/* the league plate hanging from the top bar: name, a thin bar in the league's colour, trophies to the next league */
.tl-league {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 420px;
  padding: 8px 40px 12px; border-radius: 0 0 24px 24px; margin-top: -16px; border-top: 0;
}
.tl-league::after { content: ""; position: absolute; left: 24%; right: 24%; bottom: -1.5px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--tl-a), transparent); }
.tl-league-cap { font-size: 13px; font-weight: 800; letter-spacing: 0.34em; color: var(--tl-muted); }
.tl-league-name {
  font-size: 40px; font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: 0.06em;
  color: #ffffff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 18px var(--tl-glow);
}
.tl-league small { color: #d9d3f2; font-size: 16px; font-weight: 600; }
.tl-league small b { color: var(--tl-gold-2); }
.tl-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); overflow: hidden; margin-top: 4px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.tl-bar i { display: block; height: 100%; min-width: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--tl-b), var(--tl-a)); box-shadow: 0 0 8px var(--tl-glow); }
.tl-bar.gold i { background: linear-gradient(90deg, #f59e0b, #ffe08a); box-shadow: 0 0 8px rgba(246, 195, 67, 0.6); }

/* middle: card · cup · card — two twin cards, same width, same height, same title (owner 2026-12-04) */
.tl-mid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; grid-template-rows: minmax(0, 1fr); gap: 28px; align-items: center; }
.tl-side-col { display: flex; flex-direction: column; justify-content: center; }
.tl-card {
  position: relative; box-sizing: border-box; height: 400px; max-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 16px 18px 18px; border-radius: 22px; text-align: left; color: #f8fafc; font-family: inherit;
  background: linear-gradient(180deg, rgba(44, 22, 104, 0.9), rgba(18, 9, 52, 0.94));
  border: 1.5px solid var(--tl-frame);
  box-shadow: 0 14px 30px rgba(4, 1, 18, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
/* the one title style: gold icon disc + white caps, hairline under it */
.tl-card h4 {
  margin: 0; padding-bottom: 12px; display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #ffffff;
  border-bottom: 1px solid rgba(214, 196, 255, 0.16);
}
.tl-h-ic { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  background: radial-gradient(circle at 35% 30%, #5b3a0a, #2a1a03); box-shadow: inset 0 0 0 1.5px rgba(246, 195, 67, 0.6); }
.tl-h-ic .tl-cup { width: 20px; height: 20px; }
.tl-card h4 .tl-badge-n { position: static; margin-left: auto; }
/* last five: five equal slots (an empty slot until played) */
.tl-form { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tl-form i {
  height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-weight: 900; font-size: 19px; color: #ffffff; background: #64748b; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.tl-form i.win { background: linear-gradient(180deg, #22c55e, #15803d); }
.tl-form i.loss { background: linear-gradient(180deg, #f43f5e, #be123c); }
.tl-form i.draw { background: linear-gradient(180deg, #94a3b8, #64748b); }
.tl-form i.none { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12); }
/* totals: three equal stat boxes, number over its letter */
.tl-wdl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tl-wdl span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; border-radius: 12px; background: rgba(0, 0, 0, 0.28);
  font-size: 14px; font-weight: 800; letter-spacing: 0.1em; color: var(--tl-muted); }
.tl-wdl b { font-size: 26px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.tl-wdl .w b { color: var(--tl-win); }
.tl-wdl .d b { color: #f1f5f9; }
.tl-wdl .l b { color: var(--tl-loss); }
/* the win prizes: a tappable well at the bottom of the left card */
.tl-sub { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px; cursor: pointer; font-family: inherit; text-align: left;
  border: 1px solid rgba(246, 195, 67, 0.3); background: rgba(0, 0, 0, 0.3); }
.tl-sub:active { transform: translateY(1px); }
.tl-sub-cap { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #e9c97a; }
.tl-prize-run { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tl-prize-track { display: flex; gap: 8px; width: max-content; animation: tl-run 14s linear infinite; }
@keyframes tl-run { to { transform: translateX(-50%); } }
.tl-prize { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #334155; border-bottom: 4px solid #94a3b8; box-sizing: border-box; padding: 5px; }
.tl-prize.rare { background: #1e3a5f; border-bottom-color: #3b82f6; }
.tl-prize.epic { background: #3b1f5c; border-bottom-color: #a855f7; }
.tl-prize.legendary { background: #5c4210; border-bottom-color: var(--tl-gold); }
.tl-prize img, .tl-prize svg { width: 100%; height: 100%; object-fit: contain; }

/* right card: Kupa Yolu — the next reward big in a well, its bar, the button */
.tl-road-card { cursor: pointer; }
.tl-road-card:active { transform: translateY(2px); }
.tl-next { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; border-radius: 16px;
  background: radial-gradient(70% 70% at 50% 40%, rgba(246, 195, 67, 0.22), rgba(0, 0, 0, 0.3)); border: 1px solid rgba(246, 195, 67, 0.25); }
.tl-next .tl-tiles { gap: 14px; }
.tl-next .tl-tile img { width: 64px; height: 64px; }
.tl-next .tl-tile b { font-size: 22px; color: #ffffff; }
.tl-next-foot { display: flex; flex-direction: column; gap: 6px; }
.tl-next-foot .tl-bar { margin: 0; height: 9px; }
.tl-next-foot small { color: #e2e8f0; font-size: 16px; font-weight: 600; text-align: center; }
.tl-next-foot small b { color: var(--tl-gold-2); }
.tl-card-cta { text-align: center; padding: 10px 16px; border-radius: 14px; font-size: 19px; font-weight: 900; color: #3b2300;
  background: linear-gradient(180deg, #ffe08a, #f6c343); box-shadow: 0 4px 0 #8a5a00, inset 0 1px 0 rgba(255, 255, 255, 0.6); }
/* "ready" glow: a pseudo-element fading in and out (opacity only — no repaint loop) */
.tl-road-card.ready::after, .tl-cell.claim::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px rgba(246, 195, 67, 0.7), 0 0 30px rgba(246, 195, 67, 0.6);
  animation: tl-glow 1.6s ease-in-out infinite;
}
@keyframes tl-glow { 50% { opacity: 1; } }

/* centre: the hero cup */
.tl-center { min-height: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.tl-emblem-wrap { position: relative; flex: 1 1 auto; min-height: 0; max-height: 540px; width: 100%; display: flex; align-items: center; justify-content: center; }
.tl-hero { position: relative; height: 100%; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.tl-halo { position: absolute; left: 50%; top: 42%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--tl-glow) 0%, rgba(0, 0, 0, 0) 62%); opacity: 0.75; }
.tl-float { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; align-items: flex-end; justify-content: center; animation: tl-floaty 3.6s ease-in-out infinite; }
@keyframes tl-floaty { 50% { transform: translateY(-8px); } }
.tl-cup-img { display: block; height: 100%; max-height: 100%; width: auto; object-fit: contain; user-select: none; pointer-events: none;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55)); }
/* the plinth: an ellipse of light in the league's colour, the stars (one per league) on its front */
.tl-plinth { position: relative; z-index: 0; flex: 0 0 auto; width: 92%; height: 64px; margin-top: -26px; display: flex; align-items: flex-end; justify-content: center; }
.tl-plinth-ring { position: absolute; left: 0; right: 0; top: 0; height: 40px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0.35), var(--tl-glow) 45%, rgba(0, 0, 0, 0) 72%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05); }
.tl-stars { position: relative; display: flex; gap: 4px; }
.tl-stars svg { width: 20px; height: 20px; fill: var(--tl-a); stroke: #170a3d; stroke-width: 1.6; filter: drop-shadow(0 0 4px var(--tl-glow)); }
.tl-rays {
  position: absolute; left: 50%; top: 42%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 170, 0.10) 0deg 6deg, rgba(255, 255, 255, 0) 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%);
  animation: tl-spin 50s linear infinite;
}
@keyframes tl-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.tl-spark { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; background: radial-gradient(circle, #fff 0 20%, rgba(255, 236, 170, 0.9) 30%, transparent 70%); border-radius: 50%; animation: tl-twinkle 2.4s ease-in-out infinite; }
.tl-spark.s1 { top: 22%; left: 14%; }
.tl-spark.s2 { top: 6%; right: 18%; animation-delay: 0.8s; width: 18px; height: 18px; }
.tl-spark.s3 { top: 50%; right: 8%; animation-delay: 1.6s; }
@keyframes tl-twinkle { 0%, 100% { opacity: 0; transform: scale(0.4); } 50% { opacity: 1; transform: scale(1.2); } }
/* trophies per result: one segmented capsule */
.tl-rules { display: flex; border-radius: 999px; overflow: hidden; }
.tl-rules span { padding: 6px 18px; font-size: 16px; font-weight: 700; color: #e2e8f0; white-space: nowrap; }
.tl-rules span + span { border-left: 1px solid rgba(214, 196, 255, 0.16); }
.tl-rules b { font-weight: 900; font-variant-numeric: tabular-nums; }
.tl-rules .w b { color: var(--tl-win); }
.tl-rules .d b { color: #f1f5f9; }
.tl-rules .l b { color: var(--tl-loss); }

.tl-bottom { margin-top: 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; }
.tl-side { display: flex; align-items: flex-end; }
.tl-side.right { justify-content: flex-end; }
.tl-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tl-play {
  position: relative; overflow: hidden;
  min-width: 420px; padding: 16px 46px; border-radius: 20px; border: 3px solid #6b3a00; cursor: pointer; font-family: inherit;
  font-size: 42px; font-weight: 900; letter-spacing: 0.08em; color: #ffffff;
  -webkit-text-stroke: 2.5px #6b3a00; paint-order: stroke fill; text-shadow: 0 3px 0 #6b3a00;
  background: linear-gradient(180deg, #fff3a0 0%, #ffd23f 42%, #f5a400 100%);
  box-shadow: 0 7px 0 #a65f00, 0 14px 26px rgba(0, 0, 0, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.7), 0 0 30px rgba(255, 200, 0, 0.4);
  transition: transform 0.08s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
}
.tl-play span { position: relative; z-index: 1; }
/* a light sweep over the button every few seconds */
.tl-play:not(:disabled)::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 70px; left: 0; transform: translateX(-120px) skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  animation: tl-sweep 3.2s ease-in-out infinite;
}
@keyframes tl-sweep { 0%, 55% { transform: translateX(-120px) skewX(-20deg); } 100% { transform: translateX(560px) skewX(-20deg); } }
.tl-play:not(:disabled) { animation: tl-breathe 2.4s ease-in-out infinite; }
@keyframes tl-breathe { 50% { transform: scale(1.03); } }
.tl-play:active:not(:disabled) { animation: none; transform: translateY(4px); box-shadow: 0 3px 0 #a65f00, 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 3px 0 rgba(255, 255, 255, 0.7); }
.tl-play:disabled { filter: grayscale(0.85); opacity: 0.65; cursor: default; }
.tl-play.live { background: linear-gradient(180deg, #f87171, #dc2626); border-color: #fecaca; box-shadow: 0 8px 0 #7f1d1d, 0 16px 34px rgba(0, 0, 0, 0.4); text-shadow: none; -webkit-text-stroke: 0; }
.tl-day { display: flex; align-items: center; gap: 10px; padding: 6px 18px; border-radius: 999px; color: var(--tl-muted); font-size: 17px; font-weight: 700; }
.tl-day b { color: #ffffff; font-size: 19px; font-variant-numeric: tabular-nums; }
.tl-dots { display: flex; gap: 6px; }
.tl-dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.tl-dots i.on { background: #fbbf24; box-shadow: 0 0 6px rgba(251, 191, 36, 0.7); }
.tl-day-text { margin: 0; color: #f8fafc; font-size: 17px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }

.tl-strip-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 18px; cursor: pointer;
  font-family: inherit; font-size: 22px; font-weight: 900; color: #3b2300; border: 2px solid #fff3c4;
  background: linear-gradient(180deg, #ffe08a, #f6c343 60%, #d69e1e); box-shadow: 0 6px 0 #8a5a00, 0 0 22px rgba(246, 195, 67, 0.6);
  animation: tl-breathe 1.6s ease-in-out infinite;
}
/* bottom left: back to the main home (owner 2026-11-10 — a swipe alone is not obvious) */
.tl-home-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 16px; cursor: pointer;
  font-family: inherit; font-size: 20px; font-weight: 800; color: #ffffff;
}
.tl-home-btn svg { width: 24px; height: 24px; fill: #ffffff; }
.tl-badge-n { position: absolute; top: -10px; right: -10px; min-width: 30px; height: 30px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: #dc2626; color: #ffffff; font-size: 17px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #ffffff; letter-spacing: 0; }

.tl-search { display: flex; align-items: center; gap: 14px; }
.tl-search b { font-size: 30px; color: #ffffff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
.tl-radar { position: relative; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; }
.tl-radar span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(246, 195, 67, 0.75); animation: tl-ping 1.4s ease-out infinite; }
.tl-radar span:nth-child(2) { animation-delay: 0.7s; }
@keyframes tl-ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.tl-cancel { padding: 8px 26px; border-radius: 999px; color: #f8fafc; font-weight: 800; font-size: 18px; cursor: pointer; font-family: inherit; }
.tl-live-dot { padding: 3px 12px; border-radius: 999px; font-size: 15px; font-weight: 800; letter-spacing: 0.1em; color: #dc2626; background: #ffffff; animation: tl-blink 1.2s ease-in-out infinite; }
@keyframes tl-blink { 50% { opacity: 0.5; } }

/* sliding between the two home pages */
.tl-slide-r { animation: tl-in-r 0.32s ease-out; }
.tl-slide-l { animation: tl-in-l 0.32s ease-out; }
@keyframes tl-in-r { from { transform: translateX(14%); opacity: 0.2; } to { transform: none; opacity: 1; } }
@keyframes tl-in-l { from { transform: translateX(-14%); opacity: 0.2; } to { transform: none; opacity: 1; } }


/* smaller windows (phones): keep everything on one screen */
@container game (max-height: 900px) {
  .tl-stage { padding: 10px 22px 12px; gap: 6px; }
  .tl-league { padding: 6px 30px 8px; min-width: 360px; }
  .tl-league-name { font-size: 30px; }
  .tl-league small { font-size: 14px; }
  .tl-play { font-size: 30px; padding: 12px 36px; min-width: 340px; }
  .tl-day { padding: 4px 14px; font-size: 15px; }
  .tl-day-text { font-size: 15px; }
  .tl-rules span { font-size: 14px; padding: 4px 12px; }
  .tl-center { gap: 6px; }
  .tl-mid { grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 16px; }
  .tl-tile img { width: 30px; height: 30px; }
  .tl-tile b { font-size: 14px; }
  .tl-pill-btn { font-size: 17px; padding: 7px 16px; }
  .tl-trophy-pill { padding: 5px 16px 5px 10px; }
  .tl-trophy-pill b { font-size: 26px; }
  .tl-trophy-pill .tl-cup { width: 32px; height: 32px; }
  .tl-home-btn { font-size: 17px; padding: 8px 16px; }
  .tl-mid { grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 18px; }
  .tl-card { height: 300px; padding: 10px 12px 12px; gap: 8px; border-radius: 16px; }
  .tl-card h4 { font-size: 15px; padding-bottom: 7px; gap: 7px; }
  .tl-h-ic { width: 26px; height: 26px; }
  .tl-h-ic .tl-cup { width: 16px; height: 16px; }
  .tl-form { gap: 5px; }
  .tl-form i { height: 30px; font-size: 14px; }
  .tl-wdl { gap: 5px; }
  .tl-wdl span { padding: 5px 0 4px; font-size: 11px; }
  .tl-wdl b { font-size: 19px; }
  .tl-sub { padding: 6px 8px; gap: 5px; }
  .tl-sub-cap { font-size: 11px; }
  .tl-prize { width: 32px; height: 32px; padding: 3px; border-bottom-width: 3px; }
  .tl-next .tl-tile img { width: 44px; height: 44px; }
  .tl-next .tl-tile b { font-size: 16px; }
  .tl-next-foot small { font-size: 13px; }
  .tl-card-cta { font-size: 15px; padding: 6px 12px; }
  .tl-plinth { height: 48px; margin-top: -20px; }
  .tl-plinth-ring { height: 30px; }

  .tl-stars svg { width: 15px; height: 15px; }
  .tl-pcard { gap: 8px; }
  .tl-phead h3 { font-size: 26px; }
  .tl-phead p { font-size: 15px; }
  .tl-phead .tl-cup.md { width: 40px; height: 40px; }
  .tl-road { grid-auto-columns: 150px; grid-template-columns: repeat(var(--n, 12), 150px); grid-template-rows: auto 50px auto; }
  .tl-cell { min-height: 108px; padding: 12px 6px 6px; gap: 4px; }
  .tl-road-labels { grid-template-rows: 1fr 50px 1fr; }
  .tl-road-best b { font-size: 26px; }
  .tl-node b { font-size: 16px; }
  .tl-node span { padding: 3px 10px; }
  .tl-mini { font-size: 15px; padding: 4px 16px; }
  .tl-lock-ic { width: 20px; height: 20px; }
  .tl-bp-btn { font-size: 16px; padding: 6px 16px; }
  .hub-pager button i { width: 18px; height: 18px; }
  .hub-pager button.on i { width: 42px; }
  .hub-pager button { width: 42px; height: 42px; }
}

/* ---------------------------------------------------------------- top bar: the two page dots (home · Kupa Ligi) */
.hub-pager { flex: 1 1 auto; display: flex; justify-content: center; align-items: center; gap: 4px; min-width: 0; }
.hub-pager button { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hub-pager button i { display: block; width: 14px; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); transition: width 0.2s ease, background 0.2s ease; }
.hub-pager button.on i { width: 34px; background: #ffffff; }
.hub-pager button[data-page="trophyleague"].on i { background: #f6c343; }
/* the two dots are not shown (owner 2026-11-20); the bar keeps its place and the swipe still works */
.hub-pager > button { visibility: hidden; pointer-events: none; }

/* ---------------------------------------------------------------- home: the gold "Kupa Ligi" button above Not Defteri */
/* same look, size and right edge as the Not Defteri button (class notebook-trigger), one row higher */
.notebook-trigger.tl-home-trigger { bottom: 206px; justify-content: center; box-sizing: border-box; }
.notebook-trigger.tl-home-trigger {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
  border-color: rgba(221, 214, 254, 0.7);
  box-shadow: 0 8px 22px rgba(109, 40, 217, 0.55);
}
.tl-home-trigger .nbt-icon { display: inline-flex; margin: -8px 0; }
.tl-home-trigger .tl-cup { width: 30px; height: 30px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
html:not(.has-token) .tl-home-trigger,
.live-match-mode .tl-home-trigger,
#gameViewport.tutorial-open .tl-home-trigger { display: none !important; }

/* ---------------------------------------------------------------- panels (#tlPanel) */
.tl-panel {
  position: absolute; inset: 0; z-index: 800000; display: none; align-items: center; justify-content: center;
  padding: clamp(10px, 2.5%, 30px); background: rgba(2, 6, 23, 0.7); box-sizing: border-box; overflow: hidden;
}
.tl-pcard {
  position: relative; width: 100%; max-width: 1180px; max-height: 100%; box-sizing: border-box; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; padding: clamp(14px, 2.5%, 26px);
  border-radius: 24px; color: #f8fafc; font-family: 'Rajdhani', sans-serif;
  background: radial-gradient(90% 70% at 50% 0%, rgba(246, 195, 67, 0.2), rgba(246, 195, 67, 0) 60%), linear-gradient(170deg, #3a1890, #170a3d);
  border: 2px solid rgba(246, 195, 67, 0.55); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.tl-pcard-leagues { max-width: 980px; }
.tl-pcard-road { max-width: 1300px; }
.tl-pclose {
  position: absolute; top: 16px; right: 18px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.35); color: #ffffff; font-size: 20px; font-weight: 900;
}
.tl-phead { display: flex; align-items: center; gap: 14px; padding-right: 56px; }
.tl-phead h3 { margin: 0; font-size: 32px; font-weight: 900; color: #ffffff; }
.tl-phead p { margin: 2px 0 0; font-size: 17px; color: var(--tl-soft); }
.tl-phead p b { color: var(--tl-gold-2); }

/* reward strip */
.tl-strip-wrap { position: relative; flex: 0 0 auto; overflow: hidden; border-radius: 16px; padding: 14px 0; background: linear-gradient(180deg, #0f172a, #1e293b); }
.tl-strip-wrap::before, .tl-strip-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.tl-strip-wrap::before { left: 0; background: linear-gradient(90deg, #0f172a, rgba(15, 23, 42, 0)); }
.tl-strip-wrap::after { right: 0; background: linear-gradient(270deg, #0f172a, rgba(15, 23, 42, 0)); }
.tl-strip-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--tl-gold); z-index: 3; box-shadow: 0 0 12px rgba(246, 195, 67, 0.9); }
.tl-strip-marker::before, .tl-strip-marker::after { content: ""; position: absolute; left: 50%; margin-left: -10px; border: 10px solid transparent; }
.tl-strip-marker::before { top: 0; border-top-color: var(--tl-gold); }
.tl-strip-marker::after { bottom: 0; border-bottom-color: var(--tl-gold); }
.tl-strip-track { display: flex; gap: 10px; padding: 0 10px; will-change: transform; }
.tl-strip-item {
  flex: 0 0 150px; height: 150px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: #334155; color: #f8fafc; border-bottom: 6px solid #94a3b8; font-weight: 800; font-size: 17px; text-align: center; padding: 6px; box-sizing: border-box;
}
.tl-strip-item.rare { border-bottom-color: #3b82f6; background: #1e3a5f; }
.tl-strip-item.epic { border-bottom-color: #a855f7; background: #3b1f5c; }
.tl-strip-item.legendary { border-bottom-color: var(--tl-gold); background: #5c4210; }
.tl-strip-item.won { outline: 4px solid var(--tl-gold-2); box-shadow: 0 0 26px rgba(246, 195, 67, 0.85); }
.tl-strip-icon { width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; }
.tl-strip-icon img { width: 100%; height: 100%; object-fit: contain; }
.tl-strip-foot { display: flex; align-items: center; justify-content: center; gap: 22px; }
.tl-spin {
  min-width: 260px; padding: 14px 40px; border-radius: 16px; border: 0; cursor: pointer; font-family: inherit; font-size: 28px; font-weight: 900; color: #3b2300;
  background: linear-gradient(180deg, #ffe08a, #f6c343 60%, #d69e1e); box-shadow: 0 6px 0 #8a5a00;
}
.tl-spin:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; }
.tl-link { border: 0; background: none; color: var(--tl-soft); font-weight: 700; font-size: 18px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.tl-odds { display: none; list-style: none; margin: 0; padding: 12px 16px; border-radius: 14px; background: #ffffff; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; overflow-y: auto; min-height: 0; }
.tl-odds.open { display: grid; }
.tl-odds li { display: flex; align-items: center; gap: 8px; color: #0f172a; font-size: 16px; font-weight: 600; }
.tl-odds li b { margin-left: auto; color: #0f172a; }
.tl-odds-icon { width: 26px; height: 26px; display: inline-flex; }
.tl-odds-icon img { width: 100%; height: 100%; object-fit: contain; }

/* leagues + last matches */
.tl-pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; min-height: 0; overflow-y: auto; }
.tl-pcols h4 { margin: 0 0 8px; font-size: 20px; color: #ffffff; }
.tl-pcols h4 small { color: var(--tl-soft); font-size: 16px; margin-left: 6px; }
.tl-leagues, .tl-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl-leagues li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #e2e8f0; font-weight: 800; font-size: 18px; }
.tl-leagues li i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(180deg, var(--tl-a), var(--tl-b)); }
.tl-leagues li b { margin-left: auto; font-size: 16px; color: #cbd5e1; }
.tl-leagues li.passed span { color: #86efac; }
.tl-leagues li.on { background: linear-gradient(90deg, var(--tl-b), rgba(0, 0, 0, 0.2)); color: #ffffff; box-shadow: inset 0 0 0 2px var(--tl-a); }
.tl-leagues li.on b { color: #ffffff; }
.tl-hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #f8fafc; font-size: 16px; }
.tl-hist li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-hist li em { font-style: normal; font-weight: 900; text-align: right; }
.tl-hist li.win em { color: #4ade80; }
.tl-hist li.loss em { color: #f87171; }
.tl-hist li.draw em { color: #cbd5e1; }
.tl-hist li.none { display: block; color: var(--tl-soft); }

/* ---------------------------------------------------------------- Kupa Yolu (panel) */
.tl-road-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-right: 56px; }
.tl-road-head .tl-phead { padding-right: 0; }
.tl-road-sum { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-width: 340px; }
.tl-road-sum .tl-bar { flex: 1 0 100%; height: 10px; margin: 0; }
.tl-road-best { display: flex; align-items: center; gap: 8px; }
.tl-road-best b { font-size: 34px; font-weight: 900; color: var(--tl-gold-2); line-height: 1; }
.tl-road-best span { font-size: 15px; color: #cbd5e1; font-weight: 700; }
.tl-ready { padding: 5px 14px; border-radius: 999px; background: #16a34a; color: #ffffff; font-weight: 900; font-size: 16px; animation: tl-breathe 1.4s ease-in-out infinite; }

.tl-road-body { flex: 1 1 auto; display: flex; gap: 10px; min-height: 0; overflow-y: auto; }
.tl-road-labels { flex: 0 0 34px; display: grid; grid-template-rows: 1fr 64px 1fr; padding-bottom: 12px; }
.tl-road-labels span { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 900; letter-spacing: 0.2em; }
.tl-road-labels .paid { background: linear-gradient(0deg, #f59e0b, #fde68a); color: #451a03; }
.tl-road-labels .free { background: #ccfbf1; color: #134e4a; }
.tl-road-labels .node { background: none; }
.tl-road-track { flex: 1; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 6px 2px 12px; }
.tl-road { display: grid; grid-template-columns: repeat(var(--n, 12), 172px); grid-template-rows: auto 64px auto; row-gap: 4px; padding-top: 10px; align-content: start; }

.tl-cell {
  position: relative; margin: 0 6px; min-height: 150px; box-sizing: border-box; border-radius: 16px; padding: 14px 8px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.tl-cell.paid { background: linear-gradient(170deg, #fff1c1 0%, #fbbf24 55%, #d97706 100%); color: #451a03; border: 2px solid #fde68a; }
.tl-cell.free { background: linear-gradient(170deg, #f0fdfa 0%, #ccfbf1 60%, #99f6e4 100%); color: #134e4a; border: 2px solid #ffffff; }
.tl-cell.locked { filter: saturate(0.85) brightness(0.88); }
.tl-cell.taken { filter: saturate(0.4) brightness(0.85); }
.tl-crown { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 10px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: #fff7d6; background: linear-gradient(180deg, #7c3aed, #5b21b6); border: 1px solid #ddd6fe; }
.tl-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.tl-tile { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 52px; }
.tl-tile img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3)); }
.tl-tile b { font-size: 16px; font-weight: 900; color: inherit; white-space: nowrap; }
.tl-node { position: relative; display: flex; align-items: center; justify-content: center; }
.tl-node::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 12px; margin-top: -6px;
  background: linear-gradient(90deg, #fbbf24 0, #ffe08a calc(var(--f, 0) * 100%), rgba(255, 255, 255, 0.14) calc(var(--f, 0) * 100%));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.tl-node span { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: 999px; background: #170a3d; border: 3px solid rgba(255, 255, 255, 0.25); }
.tl-node b { font-size: 19px; font-weight: 900; color: #ffffff; }
.tl-node.open span { border-color: var(--tl-gold); background: linear-gradient(180deg, #4a3306, #241802); }
.tl-node.next span { box-shadow: 0 0 0 5px rgba(246, 195, 67, 0.25); }
.tl-you {
  position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: 2; font-style: normal;
  padding: 2px 8px; border-radius: 8px; font-size: 13px; font-weight: 900; color: #ffffff; background: #e11d48; border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.7);
}
.tl-mini { padding: 6px 22px; border-radius: 999px; border: 0; background: linear-gradient(180deg, #4ade80, #16a34a); color: #ffffff; font-weight: 900; font-size: 18px; cursor: pointer; font-family: inherit; box-shadow: 0 3px 0 #14532d; }
.tl-mini.pass { background: linear-gradient(180deg, #a78bfa, #7c3aed); box-shadow: 0 3px 0 #4c1d95; font-size: 15px; padding: 6px 14px; }
.tl-taken { font-size: 16px; font-weight: 900; color: #15803d; background: rgba(255, 255, 255, 0.85); padding: 2px 12px; border-radius: 999px; }
.tl-lock { display: flex; }
.tl-lock-ic { width: 26px; height: 26px; }

/* Battle Pass: the Kupa Yolu button in its tab row */
.bp-subtab-btn.bp-subtab-road { display: inline-flex; align-items: center; gap: 6px; }
.bp-subtab-road .tl-cup { width: 20px; height: 20px; }

/* Kupa Yolu: "Battle Pass Aç" (no pass yet) */
.tl-bp-btn {
  padding: 8px 22px; border-radius: 14px; cursor: pointer; font-family: inherit; font-size: 20px; font-weight: 900; color: #ffffff;
  -webkit-text-stroke: 1.5px #3b0764; paint-order: stroke fill; border: 3px solid #3b0764;
  background: linear-gradient(180deg, #d8b4fe, #a855f7 50%, #7e22ce); box-shadow: 0 5px 0 #4c1d95, inset 0 3px 0 rgba(255, 255, 255, 0.5);
}
.tl-road-head { row-gap: 8px; }

/* a smaller window (phone at 1.25x – 1.75x — Venus): the head stays one row. With "N ödül hazır" + "Battle Pass Aç" it used
   to wrap to two rows, the road got shorter and the free row's AL buttons were cut off (owner 2026-11-10). */
@container game (max-height: 900px) {
  .tl-road-head { flex-wrap: nowrap; }
  .tl-road-head .tl-phead { flex: 1 1 auto; min-width: 0; }
  .tl-road-head .tl-phead > div { min-width: 0; }
  .tl-road-head .tl-phead p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tl-road-sum { flex: 0 0 auto; min-width: 0; flex-wrap: nowrap; gap: 10px; }
  .tl-road-sum .tl-bar { position: absolute; left: 0; right: 0; bottom: -10px; }
  .tl-road-sum { position: relative; }
  .tl-road-best span { display: none; }
  .tl-ready { font-size: 14px; padding: 4px 10px; }
}

/* a short window (phone at 1.75x / 2x — Venus): smaller road so both rows fit; the body scrolls if still taller */
@container game (max-height: 600px) {
  .tl-pcard { gap: 6px; padding: 12px 16px; }
  .tl-phead p { display: none; }
  .tl-road-best b { font-size: 22px; }
  .tl-road .tl-cell { min-height: 0; padding: 10px 4px 4px; gap: 2px; }
  .tl-road { grid-template-rows: auto 40px auto; }
  .tl-tile { min-width: 40px; }
  .tl-road-labels { grid-template-rows: 1fr 40px 1fr; flex-basis: 26px; }
  .tl-tile img { width: 26px; height: 26px; }
  .tl-tile b { font-size: 13px; }
  .tl-bp-btn { font-size: 15px; padding: 5px 14px; }
}

/* the one-time "Kupa Ligi açıldı" showcase (openIntro) */
.tl-pcard-intro { max-width: 1060px; border: 3px solid #ffd23f; box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.25), 0 24px 60px rgba(0, 0, 0, 0.6);
  background: radial-gradient(60% 80% at 25% 50%, rgba(255, 63, 164, 0.28), rgba(255, 63, 164, 0) 70%), linear-gradient(160deg, #5b21b6, #2a1466 55%, #170a3d); }
.tl-intro { display: flex; align-items: center; gap: 28px; padding: 10px 10px 6px; }
.tl-intro-new { position: absolute; top: 18px; left: -6px; z-index: 3; padding: 6px 22px; font-size: 20px; font-weight: 900; letter-spacing: 0.12em; color: #fff;
  background: linear-gradient(180deg, #ff5ab8, #e11d74); border: 3px solid #5c0a33; border-radius: 0 12px 12px 0; -webkit-text-stroke: 1.5px #5c0a33; paint-order: stroke fill; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.tl-intro-art { position: relative; flex: 0 0 340px; height: 360px; display: flex; align-items: center; justify-content: center; }
.tl-intro-art .tl-hero { height: 92%; }
.tl-intro-text { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tl-intro-cap { font-size: 18px; font-weight: 900; letter-spacing: 0.3em; color: #ffd23f; }
.tl-intro-text h3 { margin: 0; font-size: 56px; line-height: 1; font-weight: 900; color: #fff; -webkit-text-stroke: 4px #120635; paint-order: stroke fill; text-shadow: 0 5px 0 #120635; }
.tl-intro-text p { margin: 0; font-size: 21px; line-height: 1.35; color: #e9d5ff; font-weight: 600; }
.tl-intro-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tl-intro-feats li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; font-size: 19px; color: #f5f3ff;
  background: rgba(0, 0, 0, 0.28); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.1); }
.tl-intro-feats li b { color: #ffd23f; }
.tl-intro-feats .tl-cup { width: 26px; height: 26px; flex: 0 0 auto; }
.tl-intro-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.tl-intro-actions .tl-play { min-width: 300px; font-size: 38px; padding: 14px 36px; }
.tl-intro-later { background: none; border: 0; color: #c4b5fd; font-family: inherit; font-size: 20px; font-weight: 800; cursor: pointer; text-decoration: underline; }
@container game (max-height: 900px) {
  .tl-intro-art { flex-basis: 220px; height: 240px; }

  .tl-intro-text h3 { font-size: 40px; }
  .tl-intro-text p { font-size: 16px; }
  .tl-intro-feats li { font-size: 15px; padding: 5px 10px; }
  .tl-intro-actions .tl-play { min-width: 220px; font-size: 28px; padding: 10px 24px; }
}
@container game (max-height: 600px) {
  .tl-intro { gap: 14px; }
  .tl-intro-art { flex-basis: 160px; height: 180px; }

  .tl-intro-text { gap: 6px; }
  .tl-intro-text h3 { font-size: 30px; -webkit-text-stroke-width: 3px; }
  .tl-intro-text p { font-size: 13px; }
  .tl-intro-feats { gap: 4px; }
  .tl-intro-feats li { font-size: 13px; padding: 3px 8px; }
  .tl-intro-actions .tl-play { min-width: 170px; font-size: 22px; padding: 7px 18px; }
}
