/* Gameznet Arcade — broadcast arcade look on top of the theme system's colours. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body.gza { background: var(--bg); color: var(--ink); font-family: var(--font-ui, system-ui, sans-serif); min-height: 100vh; padding-bottom: 46px; }
.gza a { color: var(--brand); text-decoration: none; }
.gza a:hover { text-decoration: underline; }
.gza h1, .gza h2, .gza h3 { margin: 0 0 .5em; line-height: 1.15; }
.gza-mono, .gza-scorebug, .gza-kicker, .gza-pill { font-family: var(--font-mono, ui-monospace, monospace); }

/* Top bar */
.gza-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 18px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gza-logo { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; font-weight: 800; letter-spacing: .08em; font-size: 15px; text-decoration: none !important; }
.gza-logo b { color: var(--brand); margin-left: .35em; }
.gza-logo-mark { width: 26px; height: 26px; border-radius: 6px; background: conic-gradient(from 45deg, #f0a35e, #ff3ea5, #29c8c0, #8ee36a, #f0a35e); box-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); }
.gza-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.gza-nav a { color: var(--muted); padding: 7px 11px; border-radius: 8px; font-size: 14px; text-decoration: none !important; }
.gza-nav a:hover, .gza-nav a.on { color: var(--ink); background: var(--panel2); }
.gza-nav a.gza-cta { color: var(--bg); background: var(--brand); font-weight: 700; }

.gza-main { max-width: 1280px; margin: 0 auto; padding: 18px; }
.gza-loading { color: var(--muted); }
.gza-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
@media (max-width: 980px) { .gza-grid { grid-template-columns: minmax(0, 1fr); } }
.gza-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.gza-card + .gza-card { margin-top: 18px; }
.gza-teams .gza-card + .gza-card { margin-top: 0; }
.gza-card h2 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gza-section-title { display: flex; justify-content: space-between; align-items: baseline; }

/* The stage: the live match */
.gza-stage { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background:
	radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--p1, #29c8c0) 22%, transparent), transparent 60%),
	radial-gradient(120% 80% at 50% 100%, color-mix(in srgb, var(--p2, #ff3ea5) 18%, transparent), transparent 60%), var(--panel); }
.gza-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); }
.gza-scorebug { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.gza-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gza-side.right { flex-direction: row-reverse; text-align: right; }
.gza-side .who { min-width: 0; }
.gza-side .who b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-ui); }
.gza-side .who span { font-size: 12px; color: var(--muted); }
.gza-side.turn .gza-av { box-shadow: 0 0 0 3px var(--team), 0 0 18px var(--team); }
.gza-mid { text-align: center; }
.gza-pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.gza-pill.live { background: var(--red); color: #fff; animation: gza-pulse 1.6s infinite; }
.gza-pill.final { background: var(--good); color: #062; }
@keyframes gza-pulse { 50% { opacity: .55; } }
.gza-mid .score { font-size: 26px; font-weight: 800; margin-top: 4px; }
.gza-mid .game { font-size: 12px; color: var(--muted); margin-top: 2px; }
.gza-stage-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; }
@media (max-width: 760px) { .gza-stage-body { grid-template-columns: minmax(0, 1fr); } }
.gza-board-wrap { padding: 18px; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.gza-talk { border-left: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; max-height: 470px; overflow: auto; }
@media (max-width: 760px) { .gza-talk { border-left: 0; border-top: 1px solid var(--line); max-height: 280px; } }
.gza-line { display: flex; gap: 9px; align-items: flex-start; animation: gza-in .35s ease-out; }
@keyframes gza-in { from { opacity: 0; transform: translateY(6px); } }
.gza-line .bubble { background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--team, var(--line)); border-radius: 10px; padding: 7px 10px; font-size: 13.5px; line-height: 1.4; }
.gza-line .bubble small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.gza-line.announce .bubble { border-left-color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.gza-line.call .bubble { font-style: italic; border-left-color: var(--lav); }
.gza-countdown { font-size: 46px; font-weight: 800; font-family: var(--font-mono); text-align: center; }
.gza-vs { text-align: center; color: var(--muted); }

/* Avatars */
.gza-av { --team: #888; flex: none; border-radius: 50%; background: var(--panel2); box-shadow: 0 0 0 2px var(--team); display: inline-block; overflow: hidden; }
.gza-av svg { display: block; width: 100%; height: 100%; }

/* Boards */
.gza-board { --cell: min(52px, 11vw); display: grid; gap: 5px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 70%, var(--panel2)); border: 1px solid var(--line); }
.gza-c4 { grid-template-columns: repeat(7, var(--cell)); }
.gza-c4 .cell { width: var(--cell); height: var(--cell); border-radius: 50%; background: var(--bg); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.gza-rv { --cell: min(42px, 10vw); grid-template-columns: repeat(8, var(--cell)); gap: 3px; background: color-mix(in srgb, #0d5c3d 55%, var(--panel2)); }
.gza-rv .cell { width: var(--cell); height: var(--cell); border-radius: 6px; background: rgba(0,0,0,.18); display: grid; place-items: center; }
.gza-rv .cell i { width: 78%; height: 78%; border-radius: 50%; }
.gza-ut { --cell: min(30px, 6.6vw); grid-template-columns: repeat(3, auto); gap: 8px; }
.gza-ut .small { position: relative; display: grid; grid-template-columns: repeat(3, var(--cell)); gap: 3px; padding: 4px; border-radius: 8px; border: 1px solid var(--line); }
.gza-ut .small.next { border-color: var(--brand); box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 50%, transparent); }
.gza-ut .cell { width: var(--cell); height: var(--cell); border-radius: 4px; background: var(--panel2); display: grid; place-items: center; font-weight: 800; font-size: calc(var(--cell) * .62); font-family: var(--font-mono); }
.gza-ut .claim { position: absolute; inset: 0; display: grid; place-items: center; font-size: calc(var(--cell) * 2.6); font-weight: 900; border-radius: 8px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.gza-board .p1 { background: var(--p1, #29c8c0); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.gza-board .p2 { background: var(--p2, #ff3ea5); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.gza-ut .cell.p1, .gza-ut .cell.p2 { background: var(--panel2); box-shadow: none; }
/* A won small board shows its winner's mark large over a dimmed board, never a solid block. */
.gza-ut .claim.p1, .gza-ut .claim.p2 { background: color-mix(in srgb, var(--bg) 72%, transparent); box-shadow: none; text-shadow: 0 0 18px currentColor; }
.gza-ut .cell.p1, .gza-ut .claim.p1 { color: var(--p1, #29c8c0); }
.gza-ut .cell.p2, .gza-ut .claim.p2 { color: var(--p2, #ff3ea5); }
.gza-board .last { outline: 2px solid var(--gold); outline-offset: 1px; }
.gza-board .legal { cursor: pointer; outline: 1px dashed color-mix(in srgb, var(--brand) 70%, transparent); }
.gza-board .legal:hover { background: color-mix(in srgb, var(--brand) 25%, var(--bg)); }
.gza-c4 .colhit { cursor: pointer; }

/* Lists and tables */
.gza-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gza-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 6px; border-bottom: 1px solid var(--line); }
.gza-table td { padding: 8px 6px; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.gza-table tr:last-child td { border-bottom: 0; }
.gza-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; background: var(--team); }
.gza-form span { display: inline-block; width: 18px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 4px; margin-right: 2px; background: var(--panel2); }
.gza-form .W { background: var(--good); color: #032; } .gza-form .L { background: var(--red); color: #fff; } .gza-form .D { background: var(--muted); color: var(--bg); }
.gza-result { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 13.5px; }
.gza-result:last-child { border-bottom: 0; }
.gza-result .r { text-align: right; } .gza-result .won { font-weight: 800; }
.gza-result .mid { color: var(--muted); font-size: 12px; text-align: center; font-family: var(--font-mono); }
.gza-feed-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: 14px; }
.gza-feed-item:last-child { border-bottom: 0; }
.gza-feed-item small { color: var(--muted); display: block; font-size: 11.5px; }
.gza-chip { font-size: 11px; color: var(--muted); }

/* Teams and players */
.gza-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.gza-team { border-top: 4px solid var(--team); }
.gza-team .motto { color: var(--muted); font-style: italic; margin-bottom: 10px; }
.gza-roster { display: grid; gap: 10px; margin-top: 12px; }
.gza-roster a { display: flex; gap: 10px; align-items: center; color: var(--ink); padding: 8px; border-radius: 10px; background: var(--panel2); text-decoration: none !important; }
.gza-roster a:hover { outline: 1px solid var(--team); }
.gza-roster small { color: var(--muted); display: block; }
.gza-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; border-top: 4px solid var(--team); }
.gza-hero .catch { font-size: 18px; font-style: italic; color: var(--team); }
.gza-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 8px; }
.gza-stats div b { display: block; font-size: 22px; } .gza-stats div span { color: var(--muted); font-size: 12px; text-transform: uppercase; }

/* Challenge */
.gza-picker { display: grid; gap: 14px; }
.gza-options { display: flex; gap: 8px; flex-wrap: wrap; }
.gza-options button, .gza-btn { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); padding: 8px 12px; border-radius: 10px; }
.gza-options button.on, .gza-btn.primary { background: var(--brand); color: var(--bg); border-color: var(--brand); font-weight: 700; }
.gza-opp { display: flex; align-items: center; gap: 8px; }

/* Ticker */
.gza-ticker { position: fixed; left: 0; right: 0; bottom: 0; height: 38px; overflow: hidden; background: var(--panel); border-top: 1px solid var(--line); z-index: 20; }
.gza-ticker-track { display: inline-flex; gap: 40px; white-space: nowrap; padding: 10px 0; animation: gza-scroll 90s linear infinite; font-size: 13px; color: var(--muted); }
.gza-ticker-track b { color: var(--ink); }
@keyframes gza-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gza-ticker-track, .gza-pill.live, .gza-line { animation: none; } }

/* Teaser */
.gza-teaser { display: grid; place-items: center; padding: 24px 16px; }
.gza-teaser-box { max-width: 720px; text-align: center; }
.gza-teaser h1 { font-size: clamp(30px, 6vw, 54px); }
.gza-kicker { color: var(--brand); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.gza-lede { color: var(--muted); font-size: 18px; line-height: 1.5; }
.gza-count b { font-size: 30px; color: var(--ink); }
.gza-teaser-teams { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 26px 0; }
.gza-teaser-teams li { border: 1px solid var(--line); border-top: 4px solid var(--team); border-radius: 12px; padding: 12px; background: var(--panel); }
.gza-teaser-teams li span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.gza-fine { font-size: 13px; }

/* Phones: boards fit the screen, the scorebug compacts, nothing scrolls sideways. */
@media (max-width: 600px) {
	.gza-main { padding: 10px; }
	.gza-top { padding: 8px 10px; gap: 8px; }
	.gza-board-wrap { padding: 8px; min-height: 0; }
	.gza-c4 { --cell: calc((100vw - 96px) / 7); }
	.gza-rv { --cell: calc((100vw - 84px) / 8); }
	.gza-ut { --cell: calc((100vw - 120px) / 9); gap: 5px; }
	.gza-scorebug { padding: 10px; gap: 6px; }
	.gza-side { gap: 6px; }
	.gza-side .gza-av { width: 38px !important; height: 38px !important; }
	.gza-side .who b { font-size: 13px; white-space: normal; }
	.gza-side .who span { display: none; }
	.gza-mid { min-width: 0; }
	.gza-mid .score { font-size: 20px; }
	.gza-mid .game { font-size: 10.5px; max-width: 92px; margin-inline: auto; }
	.gza-card { padding: 12px; }
	.gza-table { font-size: 12.5px; }
	.gza-table th, .gza-table td { padding: 6px 4px; }
}

/* Referee lines on the match stage */
.gza-line.ref .bubble { border-left-color: #f4f4f4; background: repeating-linear-gradient(45deg, var(--panel2) 0 10px, color-mix(in srgb, var(--panel2) 80%, #fff 6%) 10px 20px); }
.gza-line.protest .bubble { border-left-color: var(--red); }

/* Main event card and hype train */
.gza-event { border-top: 4px solid var(--red); }
.gza-event-face { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: center; }
.gza-event-face h3 { font-size: 17px; margin: 0 0 4px; }
.gza-hype { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.gza-hype span { font-size: 11px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.gza-hype span.on { background: var(--red); border-color: var(--red); color: #fff; }

/* Show list */
.gza-show-list { display: grid; gap: 8px; margin-top: 12px; }
.gza-show-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px; border-radius: 10px; background: var(--panel2); color: var(--ink) !important; text-decoration: none !important; }
.gza-show-row:hover { outline: 1px solid var(--brand); }
.gza-show-row .gza-chip { grid-column: 2; }

/* Show player: one set per show type */
.gza-show { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.gza-show-top { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gza-show-stage { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.gza-show-stage::before { content: ""; position: absolute; inset: 0; background: var(--set-bg); }
.gza-show-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: var(--set-floor); }
.gza-show-logo { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--font-mono); font-weight: 900; letter-spacing: .25em; font-size: clamp(14px, 3vw, 26px); color: var(--set-logo, var(--ink)); text-shadow: 0 0 18px var(--set-logo, var(--brand)); white-space: nowrap; }
.gza-cast { position: relative; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 2.5vw, 34px); padding: 0 16px 18px; flex-wrap: wrap; }
.gza-castmember { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .25s ease, filter .25s ease; filter: saturate(.75) brightness(.8); }
.gza-castmember span { font-size: 12px; color: var(--muted); max-width: 110px; text-align: center; }
.gza-castmember.speaking { transform: translateY(-10px) scale(1.12); filter: none; }
.gza-castmember.speaking .gza-av { box-shadow: 0 0 0 3px var(--team), 0 0 26px var(--team); animation: gza-talk .32s ease-in-out infinite alternate; }
.gza-castmember.speaking span { color: var(--ink); font-weight: 700; }
@keyframes gza-talk { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-3px) rotate(1deg); } }
.gza-lower { position: relative; z-index: 3; margin: 0 16px 16px; }
.gza-lower-name { display: inline-block; background: var(--team, var(--gold)); color: #0b0d12; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 8px 8px 0 0; letter-spacing: .03em; }
.gza-lower-text { background: color-mix(in srgb, var(--bg) 88%, transparent); border: 1px solid var(--line); border-radius: 0 10px 10px 10px; padding: 12px 14px; font-size: 17px; line-height: 1.45; min-height: 60px; backdrop-filter: blur(6px); }
.gza-show-controls { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gza-transcript { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 0; max-height: 260px; overflow: auto; }
.gza-transcript p { margin: 6px 0; font-size: 14px; color: var(--muted); }
.gza-transcript p.on { color: var(--ink); }
.gza-set-newsdesk { --set-bg: linear-gradient(180deg, #0a1a33, #102a52 60%, #081428); --set-floor: linear-gradient(180deg, #1b3b6e, #0b1730); --set-logo: #8fd3ff; }
.gza-set-studio { --set-bg: radial-gradient(70% 90% at 50% 10%, #5b1f6e, #1d0b2a 70%); --set-floor: linear-gradient(180deg, #ffb347 0 3px, #2a1238 3px); --set-logo: #ffd166; }
.gza-set-podcast { --set-bg: radial-gradient(60% 80% at 50% 30%, #3b2a1a, #120c08 75%); --set-floor: linear-gradient(180deg, #4a3320, #1a120b); --set-logo: #f0a35e; }
.gza-set-sideline { --set-bg: linear-gradient(180deg, #0c1c12, #12301d); --set-floor: repeating-linear-gradient(90deg, #1d5a32 0 60px, #1a5030 60px 120px); --set-logo: #8ee36a; }
.gza-set-presser { --set-bg: repeating-linear-gradient(45deg, #161b26 0 40px, #1b2130 40px 80px); --set-floor: linear-gradient(180deg, #2b3245, #121620); --set-logo: #e9eef7; }
.gza-set-ring { --set-bg: radial-gradient(40% 60% at 30% 0%, rgba(255,255,255,.25), transparent 70%), radial-gradient(40% 60% at 70% 0%, rgba(255,62,165,.28), transparent 70%), #07070c; --set-floor: linear-gradient(180deg, #e8e8e8 0 2px, #1a1a24 2px 8px, #e8e8e8 8px 10px, #2a0f1f 10px); --set-logo: #ff3ea5; }
@media (max-width: 600px) { .gza-show-stage { min-height: 360px; } .gza-castmember .gza-av { width: 60px !important; height: 60px !important; } .gza-lower-text { font-size: 15px; } .gza-event-face { grid-template-columns: 1fr; } }
