/* ==========================================================================
   Top slots — /topslots/ (#770)
   Layered on crash-tracker.css (.crx tokens, head, KPI tiles, cards, tables,
   note) and slots-section.css (tabs, play button). Everything is scoped under
   .tsx. Adds the podium (the week's top three), the filter bar, the ranking
   table (rank + movement, thumbnail, numbers with a bar against the leader,
   Demo button) and its mobile fold.
   ========================================================================== */

/* ---------- head ---------- */
/* No state pill: the ranking follows a snapshot, it does not poll. */
.tsx .crx-mark{display:grid;place-items:center;background:linear-gradient(150deg,rgba(245,196,81,.24),rgba(79,199,234,.18));color:var(--gold,#F5C451)}
.tsx .crx-mark svg{width:28px;height:28px}
.tsx .crx-ident-text{min-width:0}

/* the base grid is repeat(8,…) — set the count AND re-declare the fold,
   because this scoped rule out-specificises the base media query */
.tsx .crx-kpis.tsx-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}

.tsx-sec{margin-bottom:26px}

/* ---------- filter bar ---------- */
.tsx .tsx-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:10px}
.tsx-search{position:relative;flex:1 1 260px;min-width:0;max-width:420px}
.tsx .tsx-search input[type="search"]{
	width:100%;font:inherit;font-size:14px;font-weight:600;color:var(--ink);background:var(--card-2);
	border:1px solid var(--hair);border-radius:10px;padding:9px 12px 9px 34px;min-width:0;
	transition:border-color .14s,box-shadow .14s}
.tsx .tsx-search input[type="search"]::-webkit-search-cancel-button{filter:invert(.6)}
.tsx .tsx-search input[type="search"]:focus-visible{outline:none;border-color:var(--cyan,#4FC7EA);box-shadow:0 0 0 3px rgba(79,199,234,.18)}
.tsx-search-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;
	fill:none;stroke:var(--ink-4);stroke-width:2;stroke-linecap:round;pointer-events:none}
.tsx .tsx-toggle{padding:8px 14px;border-radius:999px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;
	color:var(--ink-3);background:var(--card-2);border:1px solid var(--hair-2);white-space:nowrap;
	transition:color .14s,background .14s,border-color .14s}
.tsx button.tsx-toggle:hover{color:#fff;color:light-dark(#0B1220,#fff);background:var(--surface-3,#293046)}
.tsx .tsx-toggle[aria-pressed="true"]{color:#fff;background:var(--grad,linear-gradient(115deg,#4FC7EA,#2F97EE 45%,#7B4DF2));
	border-color:transparent;box-shadow:0 6px 16px -8px rgba(79,150,242,.8)}
.tsx .tsx-toggle:focus-visible{outline:2px solid var(--cyan,#4FC7EA);outline-offset:2px}
.tsx .tsx-count{margin:0 0 0 auto;font-size:12.5px;color:var(--ink-4);font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------- table ---------- */
.tsx-card{padding:0;overflow:hidden}
.tsx .tsx-table{font-size:13.5px}
.tsx .tsx-table th{background:var(--card);white-space:nowrap}
.tsx .tsx-table td{vertical-align:middle}
.tsx .tsx-num{font-variant-numeric:tabular-nums;color:var(--ink)}
.tsx .tsx-dim{color:var(--ink-4)}

.tsx .tsx-c-rank{width:76px;white-space:nowrap}
.tsx-rank{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border-radius:8px;
	font-size:13px;font-weight:700;color:var(--ink-2);background:var(--card-2);font-variant-numeric:tabular-nums}
.tsx-rank.is-podium{color:#1a1206;color:light-dark(#FAF8F5,#1a1206);background:linear-gradient(135deg,#F5C451,#E9A93A)}
.tsx-move{display:inline-flex;align-items:center;gap:2px;margin-left:6px;font-size:11.5px;font-weight:700;
	font-variant-numeric:tabular-nums;color:var(--ink-4);cursor:help}
.tsx-move.is-up{color:var(--up,#2ED47F)}
.tsx-move.is-down{color:var(--down-text,#FF7A94)}
.tsx-move.is-new{padding:1px 6px;border-radius:999px;font-size:10.5px;letter-spacing:.04em;text-transform:uppercase;
	color:var(--cyan,#4FC7EA);background:rgba(79,199,234,.1);border:1px solid rgba(79,199,234,.25)}
.tsx-move span[aria-hidden]{font-size:9px}

.tsx-game{display:flex;align-items:center;gap:11px;min-width:0}
.tsx-thumb{position:relative;flex:0 0 auto;width:44px;height:44px;border-radius:10px;overflow:hidden;
	display:grid;place-items:center;border:1px solid var(--hair)}
.tsx-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tsx-ini{font-size:13px;font-weight:800;color:rgba(255,255,255,.85);color:light-dark(rgba(17,24,39,0.977),rgba(255,255,255,.85));letter-spacing:.02em}
.tsx-name{min-width:0}
.tsx-name b{display:block;font-size:14px;font-weight:600;color:#fff;color:light-dark(#0B1220,#fff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:32ch}
.tsx-studio-sm{display:none;font-size:12px;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsx .tsx-studio a{color:var(--ink-2);text-decoration:none}
.tsx .tsx-studio a:hover{color:#fff;color:light-dark(#0B1220,#fff);text-decoration:underline;text-underline-offset:2px}

.tsx .tsx-c-play{width:1%;text-align:right;white-space:nowrap}
.tsx .tsx-demo,.tsx .tsx-studio-go{display:inline-flex;align-items:center;justify-content:center;min-height:32px;
	padding:6px 14px;border-radius:999px;font-size:12.5px;font-weight:700;text-decoration:none;white-space:nowrap;
	transition:filter .14s,background .14s,color .14s,border-color .14s}
.tsx .tsx-demo{color:#fff;background:var(--grad,linear-gradient(115deg,#4FC7EA,#2F97EE 45%,#7B4DF2));
	box-shadow:0 6px 16px -10px rgba(79,150,242,.9)}
.tsx .tsx-demo:hover{filter:brightness(1.1)}
.tsx .tsx-studio-go{color:var(--ink-3);border:1px solid var(--hair-2);background:transparent}
.tsx .tsx-studio-go:hover{color:#fff;color:light-dark(#0B1220,#fff);border-color:var(--cyan,#4FC7EA)}
.tsx .tsx-demo:focus-visible,.tsx .tsx-studio-go:focus-visible{outline:2px solid var(--cyan,#4FC7EA);outline-offset:2px}
.tsx-none{color:var(--ink-4)}

.tsx tr[hidden]{display:none}

/* ---------- podium: this week's top three ---------- */
.tsx-podium{list-style:none;margin:0 0 14px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tsx-pod{position:relative;display:flex;align-items:center;gap:16px;min-width:0;padding:14px;border-radius:var(--rad,14px);overflow:hidden;
	background:linear-gradient(135deg,color-mix(in srgb,var(--pod,#F5C451) 12%,transparent),transparent 55%),var(--card,#1B2030);background:linear-gradient(135deg,color-mix(in srgb,var(--pod,#F5C451) 12%,transparent),transparent 55%),var(--card,light-dark(#FFFFFF,#1B2030));
	border:1px solid color-mix(in srgb,var(--pod,#F5C451) 30%,var(--hair));border:1px solid color-mix(in srgb,var(--pod,light-dark(#BB8401,#F5C451)) 30%,var(--hair))}
.tsx-pod.is-rank-1{--pod:#F5C451}
.tsx-pod.is-rank-2{--pod:#C7CCDC}
html[data-theme="light"] .tsx-pod.is-rank-2{--pod:#30374D}
.tsx-pod.is-rank-3{--pod:#E39A62}
.tsx-pod-art{position:relative;flex:0 0 auto;display:grid;place-items:center;width:100px;aspect-ratio:4/5;border-radius:12px;overflow:hidden;border:1px solid var(--hair)}
.tsx-pod-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tsx-pod-art .tsx-ini{font-size:18px}
.tsx .tsx-pod-art .slv-play{right:8px;bottom:8px;width:32px;height:32px}
.tsx .tsx-pod-art .slv-play svg{width:13px;height:13px}
.tsx-pod-body{display:grid;gap:4px;min-width:0}
.tsx-pod-rank{display:flex;align-items:center;gap:6px}
.tsx-pod-rank b{font:800 22px/1 var(--font-display,Sora,inherit);color:var(--pod,#F5C451);color:var(--pod,light-dark(#926701,#F5C451))}
.tsx-pod-rank .tsx-move{margin-left:2px}
.tsx-pod-name{font-size:16px;font-weight:700;color:#fff;color:light-dark(#0B1220,#fff);line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tsx-pod-meta{font-size:12.5px;color:var(--ink-4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsx .tsx-pod-meta a{color:var(--ink-3);text-decoration:none}
.tsx .tsx-pod-meta a:hover{color:#fff;color:light-dark(#0B1220,#fff);text-decoration:underline;text-underline-offset:2px}
.tsx-pod-bets{margin-top:4px;font-size:12px;color:var(--ink-4)}
.tsx-pod-bets b{font:700 19px/1 var(--font-mono,ui-monospace,monospace);font-variant-numeric:tabular-nums;color:#fff;color:light-dark(#0B1220,#fff);margin-right:2px}

/* the podium rows repeat in the table only while a search or filter is on */
.tsx:not(.is-filtering) .tsx-table tr.is-podium-row{display:none}

/* ---------- bets column: a bar against the leader ---------- */
.tsx .tsx-bets{min-width:110px}
.tsx-share{display:block;width:84px;height:3px;margin:6px 0 0 auto;border-radius:3px;background:rgba(255,255,255,.07);background:light-dark(rgba(17,24,39,0.081),rgba(255,255,255,.07));overflow:hidden}
.tsx-share i{display:block;height:100%;border-radius:3px;background:var(--grad,linear-gradient(115deg,#4FC7EA,#2F97EE 45%,#7B4DF2))}

/* ---------- FAQ + note ---------- */
.tsx #faq{margin-top:8px}

/* ---------- breakpoints ---------- */
@media (max-width:1240px){
	.tsx-pod{gap:12px;padding:12px}
	.tsx-pod-art{width:80px}
	.tsx-pod-name{font-size:15px}
}
@media (max-width:1080px){
	.tsx .crx-kpis.tsx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
	.tsx-podium{grid-template-columns:1fr;gap:10px}
	.tsx-pod-art{width:72px}
}
@media (max-width:760px){
	.tsx .tsx-bets{min-width:0}
	.tsx-share{width:52px}
	.tsx .tsx-count{margin-left:0;flex-basis:100%}
	.tsx-search{max-width:none}
	.tsx .tsx-toggle{min-height:48px}
	.tsx .tsx-table td,.tsx .tsx-table th{padding-left:10px;padding-right:10px}
	.tsx .tsx-c-rank{width:auto}
	.tsx-move{display:flex;margin:3px 0 0}
	.tsx-thumb{width:38px;height:38px}
	.tsx-name b{max-width:none;white-space:normal;line-height:1.25}
	.tsx-studio-sm{display:block;white-space:normal}
	.tsx .tsx-table th{white-space:normal}
	.tsx .tsx-table td:nth-child(2){white-space:normal}
	.tsx .tsx-demo,.tsx .tsx-studio-go{min-height:44px;padding:8px 12px}
}
@media (max-width:420px){
	.tsx .tsx-game{gap:8px}
	.tsx-thumb{display:none}
}
@media (prefers-reduced-motion:reduce){
	.tsx .tsx-toggle,.tsx .tsx-demo,.tsx .tsx-studio-go{transition:none}
}
