/* BMArena /play – mobile-first front end ("matchday night"). */
:root {
	--ground: #0B1622; --surface: #13233A; --surface-2: #1B2F4B; --sunk: #0F1C2E; --line: #1E3150; --line-2: #24395A;
	--text: #F2F5F8; --text-2: #C9D6E4; --muted: #9FB0C3;
	--accent: #F5B83D; --on-accent: #1A1300; --good: #7FE3B0; --good-bg: #173A2C; --bad: #FF9C85; --live: #FF8A6B; --live-bg: #3A1A14;
	--radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--text); }
body { font-family: 'Barlow', system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #FFD27A; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; }
.display { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--ground); z-index: 20; }
.topbar-in { max-width: 1360px; margin: 0 auto; padding: 0 16px; min-height: 60px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 0.5px; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.topnav { display: none; gap: 24px; font-weight: 600; }
.topnav a { color: var(--muted); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.topnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.who { color: var(--text-2); display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #FFC85A; color: var(--on-accent); }
.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 56px; font-size: 18px; border-radius: 14px; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; }

/* Layout */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.view { padding-bottom: 120px; }
.card { background: var(--surface); border-radius: var(--radius); }
.pill-free { background: var(--good-bg); color: var(--good); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.5px; }
.pill-paid { background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.pill-live { background: var(--live-bg); color: var(--live); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.6px; }

/* Landing */
.hero { padding: 32px 0 28px; display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 46px; line-height: 0.98; text-transform: uppercase; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { margin: 0; font-size: 17px; color: var(--text-2); }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.step b { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.section { padding: 12px 0 28px; display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; }
.tgrid { display: grid; gap: 12px; }
.tcard { border: 1px solid var(--line-2); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tcard h3 { font-size: 19px; }
.stats3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--sunk); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat strong { font-size: 16px; }
.empty { padding: 24px; text-align: center; color: var(--muted); }
.foot { border-top: 1px solid var(--line); padding: 20px 0 40px; font-size: 13px; color: var(--muted); }

/* Arena */
.arena-head { padding: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.arena-title { display: flex; align-items: center; gap: 6px; }
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--text); background: none; border: 0; margin-left: -10px; text-decoration: none; }
.arena-title h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.strip .stat { background: var(--surface); padding: 10px 12px; }
.strip strong { font-size: 18px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tabs button { min-height: 46px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.arena-body { padding: 14px 0; display: flex; flex-direction: column; gap: 12px; }
.group-title { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.match { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.match-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.match-teams { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; font-weight: 600; }
.match-teams .vs { color: #6F8299; font-weight: 500; }
.match-teams .t2 { text-align: right; }
.score { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; }
.odds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.odd { min-height: 52px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--sunk); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; }
.odd small { font-size: 12px; font-weight: 600; opacity: 0.85; }
.odd b { font-size: 17px; }
.odd[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.odd[disabled] { cursor: default; opacity: 0.6; }
.more { align-self: center; }
.lb-me { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--surface); }
.lb li.me { background: var(--surface-2); border-color: var(--accent); }
.lb .rk { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: 0 0 30px; }
.lb .rk.top { background: var(--accent); color: var(--on-accent); }
.lb .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lb .nm strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb .nm span, .lb .rt span { font-size: 13px; color: var(--muted); }
.lb .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.bet { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.bet-row { display: flex; justify-content: space-between; gap: 10px; }
.join-cta { padding: 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--accent); background: var(--surface-2); }

/* Bottom dock: slip + guest bar */
.dock { position: fixed; left: 0; right: 0; bottom: 0; background: var(--sunk); border-top: 1px solid var(--line); z-index: 30; }
.dock-in { max-width: 1360px; margin: 0 auto; padding: 10px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.slip-head { display: flex; align-items: center; justify-content: space-between; }
.stakes { display: flex; align-items: center; gap: 8px; }
.stakes button { flex: 1; min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: transparent; color: var(--text-2); font-weight: 700; font-size: 15px; cursor: pointer; }
.stakes button[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.guestbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--text-2); }
.guestbar a { font-weight: 700; text-decoration: none; padding: 10px 0; }
.toast { position: fixed; left: 16px; right: 16px; top: 76px; max-width: 520px; margin: 0 auto; background: var(--good-bg); border: 1px solid #2E6B50; color: #CFF5E2; border-radius: 12px; padding: 12px 14px; font-weight: 600; z-index: 40; }
.toast.err { background: #3A1A14; border-color: #7A3626; color: #FFD9CF; }
.side { display: none; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }

/* Desktop */
@media (min-width: 1024px) {
	.topnav, .who { display: flex; }
	.hero h1 { font-size: 64px; }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
	.arena-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 20px; }
	.side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; }
	.dock.slip-desktop { position: static; background: var(--surface); border: 0; border-radius: 16px; }
	.dock.slip-desktop .dock-in { padding: 16px; }
	.view { padding-bottom: 40px; }
}
.lang-sel { min-height: 40px; background: var(--surface); color: var(--text); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0 8px; font: 600 14px 'Barlow', system-ui, sans-serif; cursor: pointer; }
.lang-sel:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- How it works: animated walkthrough ---------- */
.hw-player { display: grid; gap: 24px; align-items: center; padding: 8px 0 32px; }
.hw-stage { position: relative; height: 560px; display: flex; justify-content: center; }
.hw-scene { position: absolute; inset: 0; display: flex; justify-content: center; opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.hw-scene.on { opacity: 1; transform: none; }
.hw-phone { width: 280px; height: 548px; border-radius: 40px; background: #050B12; border: 2px solid var(--line-2); box-shadow: 0 24px 60px rgba(0,0,0,.55); padding: 14px 10px; position: relative; }
.hw-notch { width: 90px; height: 18px; border-radius: 0 0 12px 12px; background: #050B12; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; }
.hw-screen { height: 100%; border-radius: 30px; background: var(--ground); overflow: hidden; position: relative; }
.hw-pad { padding: 30px 14px 14px; display: flex; flex-direction: column; gap: 10px; height: 100%; position: relative; }
.hw-center { align-items: center; justify-content: center; text-align: center; }
.hw-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.hw-card { background: var(--surface); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; border: 1px solid var(--surface); }
.hw-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.hw-muted { color: var(--muted); font-size: 11px; }
.hw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hw-stats span { background: var(--sunk); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.hw-stats small, .hw-odds small { font-size: 10px; color: var(--muted); }
.hw-acc { color: var(--accent); }
.hw-btn { background: var(--accent); color: var(--on-accent); border-radius: 10px; text-align: center; font-weight: 700; font-size: 13px; padding: 9px 6px; }
.hw-card .hw-btn { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.hw-odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hw-odds span { background: var(--sunk); border: 1.5px solid var(--line-2); border-radius: 8px; padding: 6px 0; display: flex; flex-direction: column; align-items: center; }
.hw-slip { position: absolute; left: 10px; right: 10px; bottom: 10px; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; transform: translateY(130%); }
.hw-toast { position: absolute; left: 14px; right: 14px; top: 34px; background: var(--good-bg); border: 1px solid #2E6B50; color: #CFF5E2; border-radius: 10px; padding: 9px 10px; font-weight: 700; font-size: 13px; text-align: center; opacity: 0; transform: translateY(-8px); }
.hw-big { font-family: 'Barlow Condensed', sans-serif; font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; }
.hw-note { color: var(--text-2); font-size: 13px; }
.hw-chipstack { position: relative; width: 90px; height: 70px; margin-bottom: 8px; }
.hw-chipstack i { position: absolute; left: 10px; width: 70px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px dashed #FFE2A0; box-shadow: 0 2px 0 #B07F1C; opacity: 0; }
.hw-chipstack i:nth-child(1) { bottom: 0; } .hw-chipstack i:nth-child(2) { bottom: 14px; } .hw-chipstack i:nth-child(3) { bottom: 28px; } .hw-chipstack i:nth-child(4) { bottom: 42px; }
.hw-board { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.hw-board li, .hw-me { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 10px; padding: 7px 8px; }
.hw-board li b, .hw-me b { flex: 1; }
.hw-rk { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.hw-rk.top { background: var(--accent); color: var(--on-accent); }
.hw-me { border: 1px solid var(--accent); background: var(--surface-2); font-size: 13px; position: absolute; left: 14px; right: 14px; top: 252px; }
/* scene animations (run when the scene becomes active) */
.run .hw-focus { animation: hwring 1.4s ease .6s 2; }
.run .hw-tap { animation: hwtap .5s ease 2.2s forwards; }
.run .hw-chipstack i { animation: hwchip .35s ease forwards; }
.run .hw-chipstack i:nth-child(2) { animation-delay: .25s; } .run .hw-chipstack i:nth-child(3) { animation-delay: .5s; } .run .hw-chipstack i:nth-child(4) { animation-delay: .75s; }
.run .hw-pick { animation: hwpick .4s ease .9s forwards; }
.run .hw-slip { animation: hwslip .45s ease 1.4s forwards; }
.run .hw-toast { animation: hwtoast 1.6s ease 2.6s forwards; }
.run .hw-me { animation: hwclimb 1.2s cubic-bezier(.3,1.2,.5,1) .5s both; }
.run .hw-board li:nth-child(n+3) { animation: hwdown .6s ease .9s both; }
@keyframes hwring { 50% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,184,61,.25); } }
@keyframes hwtap { 50% { transform: scale(.94); } 100% { background: var(--accent); color: var(--on-accent); } }
@keyframes hwchip { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes hwpick { to { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } }
@keyframes hwslip { to { transform: none; } }
@keyframes hwtoast { 0% { opacity: 0; transform: translateY(-8px); } 15%, 85% { opacity: 1; transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes hwclimb { from { top: 330px; } to { top: 132px; } }
@keyframes hwdown { from { transform: translateY(-37px); } to { transform: translateY(0); } }
@keyframes hwbar { from { width: 0; } to { width: 100%; } }
.hw-caption { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.hw-stepno { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
.hw-ctitle { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; text-transform: uppercase; line-height: 1.05; }
.hw-cdesc { margin: 0; color: var(--text-2); font-size: 17px; max-width: 420px; }
.hw-controls { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.hw-dots { display: flex; gap: 8px; }
.hw-dot { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; padding: 0; position: relative; }
.hw-dot::after { content: ''; position: absolute; inset: -16px; }
.hw-dot[aria-selected="true"] { background: var(--accent); }
.hw-progress { width: 220px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hw-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.hw-steps { display: grid; gap: 12px; }
.hw-step { display: flex; gap: 16px; align-items: center; padding: 14px; }
.hw-step h3 { font-size: 18px; margin: 4px 0; }
.hw-step p { margin: 0; font-size: 14px; }
.hw-num { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--accent); align-items: center; justify-content: center; }
.hw-mini { width: 140px; height: 274px; border-radius: 22px; padding: 7px 5px; flex: 0 0 140px; }
.hw-mini .hw-screen { border-radius: 16px; }
.hw-mini .hw-pad { zoom: .5; }
.hw-rules { list-style: none; margin: 0; padding: 8px 16px; }
.hw-rules li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; color: var(--text-2); }
.hw-rules li:last-child { border-bottom: 0; }
.hw-rules li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.hw-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (min-width: 900px) { .hw-player { grid-template-columns: 1fr 1fr; } .hw-caption { text-align: left; align-items: flex-start; } .hw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .hw-scene { transition: none; } .run .hw-focus, .run .hw-tap, .run .hw-chipstack i, .run .hw-pick, .run .hw-slip, .run .hw-toast, .run .hw-me, .run .hw-board li { animation-duration: 1ms !important; animation-delay: 0s !important; } }
/* the small step images show each scene's finished state */
.hw-mini .hw-chipstack i { opacity: 1; }
.hw-mini .hw-pick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hw-mini .hw-slip { transform: none; }
.hw-mini .hw-me { top: 132px; }
.hw-mini .hw-board li:nth-child(n+3) { transform: translateY(37px); }
.hw-mini .hw-focus .hw-btn { background: var(--accent); color: var(--on-accent); }
