/* The Live page (live/index.php): the landing page's colors and fonts; one card per channel racing right now. */
:root { --bg: #0b0d1c; --ink: #eef0ff; --muted: #9aa1d0; --soft: #b9bee3; --cyan: #5eeaff; --pink: #ff5cbe; --yellow: #ffd64a; --green: #5af096;
  --purple: #b48cff; --red: #ff4d6d; --line: #262b52; --line2: #2c3168; --card: #12152b; --chip: #1a1d3a; --dim: #6f76a8; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; line-height: 1.5; }
body { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, #2a1438 0, transparent 60%), radial-gradient(900px 500px at 100% 0, #0f2a3a 0, transparent 60%), var(--bg); }
main { max-width: 1140px; margin: 0 auto; padding-block: 36px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: var(--cyan); }
.back { font-size: 14px; text-decoration: none; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--yellow); background: var(--chip); border: 1px solid var(--line2); border-radius: 6px; padding: 0 6px; }

.lhead { margin: 18px 0 26px; }
.count { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #ff8fa3; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(255, 77, 109, .18); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 77, 109, 0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
h1 { font-family: Bungee, Inter, sans-serif; font-weight: 400; font-size: clamp(32px, 7vw, 52px); line-height: 1.04; margin: 0 0 10px;
  background: linear-gradient(180deg, #fff 0%, var(--cyan) 60%, #2aa9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro { color: var(--soft); margin: 0; max-width: 62ch; font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card.join { border-color: #2f6b4b; }
.pic { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #2b1050, #0e1630); overflow: hidden; }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic .art { position: absolute; inset: 0; z-index: 0; }
.pic img + .art { display: none; }
.pic .art::before, .pic .art::after { content: ""; position: absolute; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); width: 70%; }
.pic .art::before { left: -6%; top: 30%; transform: rotate(14deg); }
.pic .art::after { right: -8%; top: 56%; transform: rotate(-12deg); }
.pic .live, .pic .views, .pic .st { position: absolute; z-index: 1; font-weight: 800; }
.pic .live { left: 12px; top: 12px; padding: 3px 9px; border-radius: 6px; background: #e8193c; color: #fff; font-size: 12px; letter-spacing: .08em; }
.pic .views { right: 12px; top: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12.5px; font-weight: 700; }
.pic .st { left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(11, 13, 28, .85); border: 1px solid var(--line2); color: var(--ink); font-size: 13px; }
.card.join .st { border-color: var(--green); color: #b8ffd3; }
.card.race .st { border-color: #ff8fa3; }
.card.bet .st { border-color: var(--yellow); }
.card.bots .st { border-color: var(--purple); }
.body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.who > div { min-width: 0; }
.av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--av, var(--pink)); display: grid; place-items: center; overflow: hidden;
  font: 400 18px Bungee, Inter, sans-serif; color: var(--bg); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.who h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.who p { margin: 0; font-size: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line2); font-size: 12.5px; color: #d6d9f5; }
.chip:first-child { color: var(--yellow); font-weight: 700; }
.go { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; background: var(--pink); color: #2a0519;
  text-decoration: none; font-weight: 800; font-size: 15px; }
.card.join .go { background: var(--green); color: #062012; }
.go:hover { filter: brightness(1.08); }
.go:focus-visible, .pic:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.empty { display: flex; flex-direction: column; gap: 16px; }
.emptyhead { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.emptyhead > div:last-child { flex: 999 1 380px; min-width: 0; }
.emptyhead h2 { margin: 0 0 6px; font-size: 24px; }
.emptyhead p { margin: 0; color: var(--soft); }
.emptyart { flex: none; position: relative; width: 170px; height: 104px; border-radius: 14px; background: #070914; border: 1px solid var(--line2); overflow: hidden; }
.emptyart i { position: absolute; display: block; }
.emptyart .t1 { left: 10px; top: 38px; width: 124px; height: 5px; border-radius: 3px; background: var(--line2); transform: rotate(12deg); }
.emptyart .t2 { left: 46px; top: 76px; width: 116px; height: 5px; border-radius: 3px; background: var(--line2); transform: rotate(-10deg); }
.emptyart .b { left: 72px; top: 20px; width: 18px; height: 18px; border-radius: 50%; background: #3a4078; }
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.todo a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.todo a:hover { border-color: #3a4180; }
.todo b { font-size: 17px; }
.todo span { font-size: 14.5px; color: var(--soft); }

.pitch { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.pitch > div { flex: 999 1 380px; min-width: 0; }
.pitch h2 { margin: 0 0 4px; font-size: 19px; }
.pitch p { margin: 0; color: var(--soft); }
.pitch a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--pink); color: #2a0519; text-decoration: none; font-weight: 800; }

footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }
footer .vfoot { margin-left: auto; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: var(--dim); }
@media (max-width: 520px) { .emptyart { display: none; } footer .vfoot { margin-left: 0; width: 100%; } }
