/* Dubai Games OS — light theme, fully responsive (desktop → tablet → phone) */
:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface2: #f8fafc; --raise: #f1f4f8; --line: #e6e9ef; --line2: #d6dbe4;
  --text: #0f1729; --text2: #4a5466; --muted: #8590a3; --navy: #0f2a4a; --navy2: #1b3d66;
  --gold: #b8862b; --gold2: #d4a64a; --gold-soft: #faf3e3; --blue: #2a78d6; --blue-d: #1c5cab; --blue-soft: #eaf2fd;
  --green: #12a26a; --green-soft: #e7f6ef; --red: #d93a3f; --red-soft: #fdecec; --yellow: #c98a00; --yellow-soft: #fdf4dd; --violet: #5b4bc4; --violet-soft: #efecfc;
  --r: 12px; --sh1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06); --sh2: 0 10px 30px rgba(16, 24, 40, .10); --sh3: 0 24px 60px rgba(16, 24, 40, .18);
  --font: Inter, "Helvetica Neue", Arial, sans-serif; --ar: "Noto Kufi Arabic", Tahoma, sans-serif;
  color-scheme: light;
  /* DUBAI GAMES emblem palette (decorative accents; text uses the darker -ink variants for contrast) */
  --dg-cyan: #49CEE9; --dg-green: #6BC540; --dg-orange: #F65F07; --dg-pink: #ED008B;
  --dg-cyan-ink: #0b7fa1; --dg-green-ink: #3f8a1f; --dg-orange-ink: #c2410c; --dg-pink-ink: #b8006b;
  --dg-cyan-soft: #e8f8fc; --dg-green-soft: #eef8e8; --dg-orange-soft: #fff1e7; --dg-pink-soft: #fde7f3;
  --dg-stripe: linear-gradient(90deg, var(--dg-cyan) 0 25%, var(--dg-green) 25% 50%, var(--dg-orange) 50% 75%, var(--dg-pink) 75% 100%);
  --dg-flow: linear-gradient(90deg, var(--dg-cyan), var(--dg-green), var(--dg-orange), var(--dg-pink));
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--blue-d); text-decoration: none; cursor: pointer; } a:hover { text-decoration: underline; }
.muted { color: var(--muted); } .small { font-size: 12px; } .bad { color: var(--red); font-weight: 600; } .ok { color: var(--green); font-weight: 600; }
.ar, [dir="rtl"] { font-family: var(--ar); }
.ar { color: var(--text2); font-weight: 400; font-size: .82em; margin-left: 8px; }
.eyebrow { font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--gold); text-transform: uppercase; }

/* ================= shell */
#app { display: grid; grid-template-columns: 236px 1fr; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; }
.topbar { grid-column: 1 / 3; display: flex; align-items: center; gap: 16px; padding: 10px 18px; min-height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 30; position: relative; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 10px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; flex: none; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #0f2a4a, #24507f); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 10px rgba(15,42,74,.25); flex: none; }
.logo span { font-weight: 800; color: var(--gold2); letter-spacing: -.5px; font-size: 14px; }
.brand-t { min-width: 0; overflow: hidden; } .brand-t b { display: block; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; } .brand-t span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.heat { display: flex; align-items: center; gap: 8px; min-width: 0; } .heat label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
select { background: var(--surface); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 30px 7px 10px; outline: none; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
select:focus, input:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 3px rgba(42,120,214,.14); }
.heat select { max-width: 290px; min-width: 0; }
.clock { flex: 1; min-width: 200px; max-width: 420px; }
.clk-top { display: flex; align-items: center; gap: 10px; } .clk-top b { font-size: 13.5px; white-space: nowrap; }
.phase { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 9px; border-radius: 20px; background: var(--raise); white-space: nowrap; }
.phase.work { background: var(--green-soft); color: #0b7a4b; } .phase.rest { background: var(--yellow-soft); color: #8a5a00; } .phase.done { background: var(--violet-soft); color: var(--violet); }
.clk-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clk-track { height: 4px; background: var(--raise); border-radius: 4px; margin-top: 5px; overflow: hidden; } .clk-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold)); border-radius: 4px; }
.transport { display: flex; align-items: center; gap: 4px; }
.transport button { background: var(--surface); border: 1px solid var(--line2); border-radius: 9px; padding: 7px 10px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text2); }
.transport button:hover { border-color: var(--gold); color: var(--text); }
.transport .play { width: 44px; background: var(--navy); color: #fff; border-color: var(--navy); }
.transport .play.on { background: var(--gold); border-color: var(--gold); }
.top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--red); white-space: nowrap; }
.live-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,58,63,.45); } 70% { box-shadow: 0 0 0 8px rgba(217,58,63,0); } 100% { box-shadow: 0 0 0 0 rgba(217,58,63,0); } }
.btn { background: var(--blue); border: 1px solid var(--blue); color: #fff; border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: .15s; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); } .btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: var(--surface); border-color: var(--line2); color: var(--text); } .btn.ghost:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; } .btn.big { padding: 12px 22px; font-size: 14.5px; border-radius: 12px; }
.link { background: none; border: 0; color: var(--blue-d); cursor: pointer; padding: 0 4px; font-weight: 600; }
.icon-btn { background: var(--surface); border: 1px solid var(--line2); border-radius: 9px; width: 32px; height: 32px; cursor: pointer; flex: none; color: var(--text2); }
.icon-btn:hover { border-color: var(--gold); }
.sidenav { background: var(--surface); border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; display: flex; flex-direction: column; z-index: 20; }
.nav-g { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin: 14px 12px 6px; font-weight: 700; }
.nav-i { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 0; border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--text2); text-align: left; font-weight: 500; position: relative; }
.nav-i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-i:hover { background: var(--surface2); color: var(--text); }
.nav-i.on { background: var(--blue-soft); color: var(--navy); font-weight: 600; }
.nav-i.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-foot { margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.nav-foot b { color: var(--gold); font-size: 11.5px; }
.nav-scrim { display: none; }
#view { overflow-y: auto; position: relative; background: var(--bg); }
#view.full { overflow: hidden; }

/* ================= overlays */
#tooltip { position: fixed; z-index: 200; display: none; pointer-events: none; background: #0f1729; color: #fff; border-radius: 9px; padding: 8px 11px; font-size: 12px; max-width: 300px; box-shadow: var(--sh2); }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
#modal { display: none; position: fixed; inset: 0; z-index: 150; }
.modal-back { position: absolute; inset: 0; background: rgba(15,23,41,.38); backdrop-filter: blur(3px); }
.modal-card { position: relative; margin: 7vh auto; width: min(640px, 92vw); max-height: 84vh; overflow: auto; background: var(--surface); border-radius: 16px; box-shadow: var(--sh3); }
.modal-card.wide { width: min(840px, 94vw); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { margin: 0; font-size: 16px; } .modal-body { padding: 18px 20px; } .modal-body h4 { margin: 16px 0 6px; color: var(--gold); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
#toast { position: fixed; right: 18px; bottom: 18px; z-index: 160; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 11px 14px; max-width: 380px; box-shadow: var(--sh2); transition: .4s; }
.toast.ok { border-left-color: var(--green); } .toast.warn { border-left-color: var(--yellow); } .toast.info { border-left-color: var(--violet); } .toast.out { opacity: 0; transform: translateY(8px); }
#tour { display: none; position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 120; width: min(640px, 94vw); }
.tour-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 16px; padding: 16px 20px; box-shadow: var(--sh3); }
.tour-k { font-size: 10.5px; letter-spacing: .14em; color: var(--gold); font-weight: 700; } .tour-card p { margin: 6px 0 12px; font-size: 14px; color: var(--text); }
.tour-a { display: flex; gap: 8px; align-items: center; } .tour-a span { flex: 1; }

/* ================= provenance + status */
.prov { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .07em; padding: 2px 7px; border-radius: 5px; vertical-align: 1px; white-space: nowrap; }
.prov.real { background: var(--green-soft); color: #0b7a4b; } .prov.sim { background: var(--violet-soft); color: var(--violet); } .prov.mix { background: var(--yellow-soft); color: #8a5a00; }
.st { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--violet-soft); color: var(--violet); white-space: nowrap; }
.st.upheld { background: var(--green-soft); color: #0b7a4b; } .st.rejected { background: var(--red-soft); color: #b42318; } .st.review { background: var(--yellow-soft); color: #8a5a00; }
.tagu { font-size: 9.5px; background: var(--blue-soft); color: var(--blue-d); padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.qual { display: inline-block; margin-left: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--gold); padding: 2px 7px; border-radius: 5px; }

/* ================= pages */
.page { padding: 26px 30px 70px; max-width: 1260px; margin: 0 auto; } .page.wide { max-width: 1540px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; color: var(--navy); }
.page-h p { margin: 6px 0 0; color: var(--text2); max-width: 840px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; min-width: 0; box-shadow: var(--sh1); }
.card h4 { margin: 2px 0 12px; font-size: 13px; color: var(--text2); font-weight: 600; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 14.5px; color: var(--navy); }
.card:has(> .matrix) { overflow-x: auto; }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; } .grid-1-1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; } .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh1); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold2); }
.kpi b { display: block; font-size: 21px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--navy); } .kpi span { font-size: 11.5px; color: var(--text2); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--text2); border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tabs button:hover { color: var(--text); } .tabs button.on { color: var(--navy); border-bottom-color: var(--gold); }
.seg { display: inline-flex; background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; gap: 2px; }
.seg button { background: none; border: 0; padding: 6px 11px; border-radius: 7px; cursor: pointer; color: var(--text2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--navy); box-shadow: var(--sh1); font-weight: 600; }
.search { background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; min-width: 220px; outline: none; }
.note-box { background: var(--gold-soft); border: 1px solid #efdfbd; border-radius: 12px; padding: 14px 16px; color: #5b4a24; margin-top: 18px; }
.insight { background: var(--blue-soft); border-left: 3px solid var(--blue); border-radius: 0 10px 10px 0; padding: 11px 14px; margin-top: 12px; color: #17355c; }
.lane { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: var(--surface); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl.small td, .tbl.small th { padding: 7px 8px; font-size: 12.5px; }
.tbl tr.row { cursor: pointer; } .tbl tr.row:hover td { background: var(--surface2); } .tbl tr.open td { background: var(--blue-soft); }
.tbl tr.q td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.tbl tr.detail td { background: var(--surface2); padding: 12px 14px; }
.pc { text-align: center; font-size: 12px; font-weight: 600; border-left: 2px solid #fff; } .pc.empty { background: transparent; color: var(--muted); font-weight: 400; }
.src { font-size: 12px; } .stories { margin: 0; padding-left: 18px; } .stories li { margin-bottom: 7px; }
td.hit { background: var(--yellow-soft) !important; color: #8a5a00; font-weight: 600; }

/* charts (light) */
.chart { width: 100%; height: auto; display: block; } .chart .grid { stroke: #eceff4; stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 10.5px; } .chart .lab { fill: var(--text2); font-size: 11.5px; } .chart .val { fill: var(--text); font-size: 11px; font-weight: 600; }
.chart .xh { stroke: rgba(15,23,41,.35); stroke-dasharray: 3 3; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--text2); margin-bottom: 8px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ================= overview */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px 40px 36px; box-shadow: var(--sh1);
  background-image: radial-gradient(900px 400px at 105% -20%, rgba(212,166,74,.16), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(42,120,214,.08), transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23d4a64a' stroke-opacity='.18' stroke-width='1'%3E%3Cpath d='M32 4l8 20 20 8-20 8-8 20-8-20-20-8 20-8z'/%3E%3Ccircle cx='32' cy='32' r='6'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%); mask-image: linear-gradient(90deg, transparent 35%, #000 85%); }
.hero-copy, .hero-stats { position: relative; z-index: 1; }
.hero h1 { font-size: 46px; margin: 10px 0 8px; letter-spacing: -.03em; color: var(--navy); line-height: 1.05; }
.hero-sub { font-size: 16.5px; color: var(--text2); max-width: 680px; margin: 0 0 22px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-stats div { background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(4px); }
.hero-stats b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--navy); } .hero-stats span { font-size: 12px; color: var(--text2); }
.hero-stats em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--muted); }
.sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 34px 0 14px; flex-wrap: wrap; }
.sec-h h2 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.01em; color: var(--navy); } .sec-h p { margin: 0; color: var(--text2); max-width: 460px; }
.pain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--sh1); }
.pain-n { font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: -.02em; line-height: 1.1; }
.pain h4 { margin: 8px 0 4px; font-size: 14px; color: var(--navy); } .pain p { margin: 0 0 12px; color: var(--text2); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.flow-step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--sh1); position: relative; }
.flow-step.gold { border: 1.5px dashed var(--gold2); background: var(--gold-soft); }
.flow-step h4 { margin: 10px 0 4px; color: var(--navy); font-size: 14px; } .flow-step p { margin: 0; color: var(--text2); }
.flow-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; }
.flow-step.gold .flow-n { background: var(--gold); }
.flow-arrow { display: grid; place-items: center; color: var(--gold); font-size: 22px; font-weight: 700; }
.mod-group { margin-bottom: 16px; } .mod-g { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 8px 2px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mod { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh1); transition: .15s; }
.mod:hover { border-color: var(--gold2); box-shadow: var(--sh2); transform: translateY(-1px); }
.mod-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 4px; }
.mod-ic svg { width: 19px; height: 19px; fill: none; stroke: var(--blue-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mod b { font-size: 14.5px; color: var(--navy); } .mod span { color: var(--text2); } .mod em { font-style: normal; font-size: 12px; color: #8a5a00; }

/* ================= 3D arena */
.arena { position: absolute; inset: 0; overflow: hidden; background: #cfd9e3; }
.arena-canvas { position: absolute; inset: 0; } .arena-canvas canvas { display: block; cursor: grab; touch-action: none; }
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: auto; font-size: 11px; will-change: transform; }
.lbl.team { background: rgba(255,255,255,.92); color: var(--text); border: 1px solid rgba(15,23,41,.08); border-radius: 7px; padding: 2px 7px 2px 5px; display: flex; align-items: center; gap: 5px; cursor: pointer; box-shadow: 0 2px 8px rgba(15,23,41,.14); }
.lbl.team i { width: 8px; height: 8px; border-radius: 2px; } .lbl.team .r { color: var(--gold); font-weight: 800; font-size: 10.5px; } .lbl.team .p { color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.lbl.team.sel { background: var(--navy); color: #fff; border-color: var(--navy); z-index: 3; } .lbl.team.sel .r { color: var(--gold2); } .lbl.team.sel .p { color: #c9d6e8; }
.lbl.zone { background: var(--navy); border: 1px solid rgba(212,166,74,.7); color: #fff; border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 11.5px; box-shadow: 0 4px 12px rgba(15,42,74,.3); } .lbl.zone b { color: var(--gold2); }
.lbl.poi { color: var(--text); font-size: 10.5px; padding: 3px 8px; border-radius: 12px; background: rgba(255,255,255,.82); border: 1px solid rgba(15,23,41,.06); pointer-events: none; box-shadow: 0 2px 6px rgba(15,23,41,.1); }
.lbl.poi.far { color: #6b4c12; background: rgba(250,243,227,.92); }
.glass { background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,41,.08); box-shadow: 0 8px 24px rgba(15,23,41,.12); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); }
.hud { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 4; max-width: calc(100% - 400px); }
.hud-toggle { display: none; }
.hud-group { display: flex; align-items: center; gap: 3px; border-radius: 11px; padding: 4px 6px; flex-wrap: wrap; background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,41,.08); box-shadow: 0 6px 18px rgba(15,23,41,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-k { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 6px 0 4px; font-weight: 700; }
.hud button { background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 5px 9px; cursor: pointer; font-size: 12px; color: var(--text); font-weight: 500; }
.hud button:hover { background: var(--surface2); border-color: var(--line); } .hud button.on { background: var(--navy); color: #fff; }
.hud label { font-size: 12px; color: var(--text2); display: inline-flex; align-items: center; gap: 5px; margin: 0 5px; cursor: pointer; }
.hud input[type=checkbox] { accent-color: var(--navy); }
.minilb { position: absolute; right: 14px; top: 14px; width: 300px; border-radius: 14px; padding: 8px; z-index: 4; background: rgba(255,255,255,.92); border: 1px solid rgba(15,23,41,.08); box-shadow: 0 8px 24px rgba(15,23,41,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mlb-h { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; color: var(--gold); font-weight: 800; margin: 2px 6px 6px; cursor: pointer; } .mlb-h em { font-style: normal; color: var(--muted); transition: .2s; }
.minilb.collapsed .mlb-r { display: none; } .minilb.collapsed .mlb-h { margin-bottom: 2px; } .minilb.collapsed .mlb-h em { transform: rotate(-90deg); }
.mlb-r { display: grid; grid-template-columns: 22px 8px minmax(0, 1fr) 30px 52px; gap: 7px; align-items: center; padding: 5px 6px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mlb-r:hover { background: var(--surface2); } .mlb-r.sel { background: var(--gold-soft); }
.mlb-r .rk { color: var(--muted); text-align: right; font-weight: 700; } .mlb-r i { width: 8px; height: 14px; border-radius: 2px; } .mlb-r .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .mlb-r .ob { color: var(--muted); font-size: 11px; } .mlb-r b { text-align: right; color: var(--navy); }
.minimap { position: absolute; left: 14px; bottom: 62px; width: 190px; height: 190px; z-index: 4; cursor: pointer; filter: drop-shadow(0 8px 18px rgba(15,23,41,.18)); }
.feed { position: absolute; right: 14px; bottom: 62px; width: 360px; z-index: 4; display: flex; flex-direction: column; gap: 4px; }
.fe { border-radius: 9px; padding: 6px 9px; font-size: 12px; cursor: pointer; display: flex; gap: 6px; align-items: baseline; background: rgba(255,255,255,.9); border: 1px solid rgba(15,23,41,.07); box-shadow: 0 2px 8px rgba(15,23,41,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text2); }
.fe:hover { border-color: var(--gold2); } .fe .tm { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 10.5px; } .fe b { color: var(--navy); }
.fe .ic { width: 12px; text-align: center; } .fe.finish .ic { color: var(--green); } .fe.bonus .ic { color: var(--gold); } .fe.yellow .ic { color: var(--yellow); } .fe.appeal .ic { color: var(--violet); } .fe.timeout .ic { color: var(--red); } .fe.stage .ic { color: var(--blue); }
.side-panel { position: absolute; right: 328px; top: 14px; width: 350px; max-height: calc(100% - 96px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; z-index: 5; transform: translateX(16px); opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--sh3); }
.side-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.sheet-grip { display: none; }
.pn-head { display: flex; justify-content: space-between; gap: 8px; } .pn-head h3 { margin: 4px 0 2px; font-size: 18px; color: var(--navy); letter-spacing: -.01em; }
.pn-k { font-size: 11.5px; color: var(--text2); } .pn-ar { color: var(--text2); font-size: 13px; }
.pn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.pn-stats div { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .pn-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--navy); } .pn-stats span { font-size: 10.5px; color: var(--muted); }
.pn-now { background: var(--blue-soft); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; color: #17355c; }
.phase-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--blue); }
.phase-dot.finished { background: var(--green); } .phase-dot.rest { background: var(--yellow); } .phase-dot.done { background: var(--violet); }
.bar { height: 6px; background: rgba(42,120,214,.15); border-radius: 4px; margin-top: 8px; overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #6da7ec); border-radius: 4px; }
.pn-sub { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 6px; font-weight: 700; }
.obdots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.obdot { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 2px; text-align: center; font-size: 10.5px; }
.obdot span { display: block; font-weight: 700; color: var(--navy); } .obdot em { font-style: normal; font-size: 10px; color: var(--text2); font-variant-numeric: tabular-nums; }
.obdot.done { border-color: #bfe6d3; background: var(--green-soft); } .obdot.now { border-color: var(--gold2); background: var(--gold-soft); } .obdot.now em { color: var(--gold); font-weight: 700; }
.pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.pn-grid div { background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; } .pn-grid span { display: block; font-size: 10.5px; color: var(--muted); } .pn-grid b { font-size: 12.5px; color: var(--navy); }
.pn-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pn-bonus { margin: 8px 0; color: var(--gold); font-size: 12.5px; font-weight: 600; }
.stages { margin: 12px 0; padding-left: 18px; } .stages li { margin-bottom: 7px; } .stages em { float: right; font-style: normal; color: var(--green); font-weight: 700; }
table.mini { width: 100%; border-collapse: collapse; font-size: 12.5px; } table.mini td { padding: 5px 6px; border-bottom: 1px solid var(--line); }
.timeline { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 38px; border-radius: 12px; z-index: 4; padding: 0 14px; background: rgba(255,255,255,.92); border: 1px solid rgba(15,23,41,.08); box-shadow: 0 8px 24px rgba(15,23,41,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tl-track { position: relative; height: 100%; }
.tl-track .rd { position: absolute; top: 3px; font-size: 9.5px; color: var(--muted); transform: translateX(2px); font-weight: 600; }
.tl-track .rest { position: absolute; top: 16px; height: 6px; background: var(--yellow-soft); border-radius: 3px; }
.tl-track .mk { position: absolute; top: 14px; width: 4px; height: 10px; border-radius: 2px; transform: translateX(-2px); cursor: pointer; z-index: 2; }
.mk.yellow { background: var(--yellow); } .mk.appeal { background: var(--violet); top: 25px; height: 8px; }
.tl-track input[type=range] { position: absolute; left: 0; right: 0; top: 11px; width: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; height: 16px; }
.tl-track input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #e6e9ef; border-radius: 3px; }
.tl-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15,23,41,.3); cursor: pointer; }
.tl-track input[type=range]::-moz-range-track { height: 4px; background: #e6e9ef; border-radius: 3px; }
.tl-track input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; }
.arena-note { position: absolute; left: 216px; bottom: 62px; font-size: 11px; color: var(--text2); background: rgba(255,255,255,.82); padding: 4px 10px; border-radius: 8px; z-index: 3; }

/* ================= command */
.matrix { display: grid; grid-template-columns: 84px repeat(7, minmax(92px, 1fr)); gap: 5px; min-width: 760px; }
.mx-h { font-size: 11px; font-weight: 700; color: var(--gold); text-align: center; padding: 4px 2px; } .mx-h span { display: block; font-weight: 500; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-l { font-size: 12px; color: var(--text2); display: flex; align-items: center; font-weight: 500; }
.mx-c { background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; min-height: 62px; cursor: pointer; font-size: 11px; transition: .12s; }
.mx-c:hover { box-shadow: var(--sh2); }
.mx-c b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--navy); } .mx-c span { color: var(--text2); font-size: 10.5px; }
.mx-c.empty { cursor: default; color: var(--muted); display: grid; place-items: center; }
.mx-c.work { border-color: #c4dbf7; background: #f5f9ff; } .mx-c.fin { border-color: #bfe6d3; background: var(--green-soft); } .mx-c.stuck { border-color: #f6c9ca; background: var(--red-soft); } .mx-c.rest { border-style: dashed; opacity: .8; }
.dots { display: flex; gap: 3px; margin: 4px 0; } .dots i { width: 15px; height: 4px; border-radius: 2px; background: var(--line2); } .dots i.on { background: var(--green); } .dots i.cur { background: var(--yellow); }
.alerts { display: flex; flex-direction: column; gap: 7px; max-height: 440px; overflow-y: auto; }
.al { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; cursor: pointer; color: var(--text2); }
.al b { color: var(--navy); } .al.crit { border-left-color: var(--red); background: #fffafa; } .al.warn { border-left-color: var(--yellow); } .al:hover { box-shadow: var(--sh2); }
.al-k { display: inline-block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 6px; font-weight: 700; } .al em { float: right; font-style: normal; color: var(--muted); font-size: 10.5px; }
.officials { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } .officials div { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .officials b { display: block; font-size: 12.5px; color: var(--navy); } .officials span { font-size: 11.5px; color: var(--text2); }
.inc div { font-size: 12.5px; padding: 5px 0; border-bottom: 1px solid var(--line); } .inc em { font-style: normal; color: var(--muted); margin-right: 8px; font-variant-numeric: tabular-nums; } .inc b { margin-right: 6px; color: var(--navy); }
.sch-day { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .sch-day > b { font-size: 12.5px; color: var(--gold); grid-row: span 3; }
.sch-it { font-size: 12.5px; color: var(--text2); grid-column: 2; padding: 3px 8px; border-radius: 7px; } .sch-it span { display: inline-block; width: 78px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sch-it.link { cursor: pointer; } .sch-it.link:hover { background: var(--surface2); color: var(--text); } .sch-it.now { background: var(--gold-soft); color: var(--navy); font-weight: 600; }

/* ================= referee */
.tablet { background: #1f242c; border-radius: 28px; padding: 16px; box-shadow: var(--sh3), inset 0 0 0 2px #0b0d12; }
.tablet-screen { background: var(--surface); border-radius: 14px; padding: 16px; min-height: 520px; }
.tb-h { font-size: 11px; letter-spacing: .14em; color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.tb-row { margin-bottom: 12px; } .tb-row label { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 5px; font-weight: 700; } .tb-row select { width: 100%; }
#tbLane button.on { background: var(--lc); color: #fff; font-weight: 700; }
.tb-team { background: var(--blue-soft); border: 1px solid #cfe0f6; border-radius: 12px; padding: 11px 13px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 2px; min-height: 70px; color: #17355c; } .tb-team b { font-size: 16px; color: var(--navy); }
.tb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tb { background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 13px; cursor: pointer; text-align: left; font-weight: 700; font-size: 13.5px; color: var(--navy); box-shadow: var(--sh1); }
.tb span { display: block; font-weight: 500; font-size: 11.5px; color: var(--text2); } .tb:hover { border-color: var(--gold); }
.tb.yel { background: #fff7e0; border-color: #f0cf73; } .tb.red { background: var(--red-soft); border-color: #f2b3b5; color: #8f1d22; } .tb.warn { background: var(--surface2); }
.tb-foot { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.ap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.locator { background: var(--blue-soft); border: 1px solid #cfe0f6; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.loc-k { font-size: 10px; letter-spacing: .14em; color: var(--gold); font-weight: 800; margin-top: 4px; } .loc-v { font-size: 15px; font-weight: 700; color: var(--navy); } .loc-t { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--blue-d); font-weight: 700; }
.vote { display: flex; align-items: center; gap: 6px; margin: 7px 0; flex-wrap: wrap; } .vote span { flex: 1; font-size: 12.5px; min-width: 150px; }
.vb { background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 600; } .vb.on.up { background: var(--green-soft); border-color: var(--green); color: #0b7a4b; } .vb.on.rej { background: var(--red-soft); border-color: var(--red); color: #b42318; } .vb:disabled { opacity: .45; cursor: default; }

/* ================= teams */
.doc { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; font-size: 11px; margin-right: 3px; font-weight: 800; } .doc.ok { background: var(--green-soft); color: #0b7a4b; } .doc.no { background: var(--yellow-soft); color: #8a5a00; }
.scan { display: flex; gap: 6px; flex-wrap: wrap; } .scan input { flex: 1; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 11px; outline: none; min-width: 160px; }
.scan-out { margin-top: 12px; } .scan-card { border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; border: 1px solid; } .scan-card.ok { background: var(--green-soft); border-color: #bfe6d3; } .scan-card.warn { background: var(--yellow-soft); border-color: #f0dca5; }
.scan-card em { font-style: normal; font-weight: 700; margin-top: 4px; }
.draw { display: grid; grid-template-columns: 26px repeat(7, minmax(0, 1fr)); gap: 3px; margin-top: 10px; } .dh { font-size: 10.5px; color: var(--gold); text-align: center; font-weight: 800; display: grid; place-items: center; } .dc { background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; font-size: 9.5px; padding: 5px 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chk { display: block; margin: 5px 0; }

/* ================= reports */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--sh1); border-top: 4px solid var(--gold2); }
.report .card { box-shadow: none; background: var(--surface2); }
.rep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.rep-head h2 { margin: 6px 0; font-size: 26px; color: var(--navy); letter-spacing: -.02em; } .rep-k { font-size: 10.5px; letter-spacing: .16em; color: var(--gold); font-weight: 800; }
.rep-rank { text-align: right; } .rep-rank b { display: block; font-size: 48px; color: var(--gold); line-height: 1; letter-spacing: -.03em; } .rep-rank span { color: var(--text2); }
.rep-foot { font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.pctl { display: grid; grid-template-columns: 30px minmax(0, 1fr) 42px; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; } .pctl em { font-style: normal; color: var(--text2); text-align: right; font-weight: 600; }
.pbar { position: relative; height: 8px; background: var(--line); border-radius: 4px; } .pbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #86b6ef, #1c5cab); } .pbar b { position: absolute; top: -3px; width: 2px; height: 14px; background: rgba(15,23,41,.35); border-radius: 1px; }

/* ================= sponsors */
.zone-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.zone-card { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--sh1); transition: .15s; }
.zone-card:hover { border-color: var(--gold2); } .zone-card.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: var(--sh2); }
.zc-k { font-size: 9.5px; letter-spacing: .14em; color: var(--gold); font-weight: 800; } .zone-card b { font-size: 14.5px; color: var(--navy); } .zone-card span { font-size: 11.5px; color: var(--text2); } .zc-m { font-size: 11px; color: var(--muted); margin-top: 4px; } .zc-m em { font-style: normal; color: var(--navy); font-weight: 700; }
.moments { display: flex; flex-direction: column; gap: 6px; } .mom { background: var(--surface2); border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 12.5px; } .mom .link { float: right; }

/* ================= studio */
.studio-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; } .studio-ctl select { max-width: 280px; min-width: 0; }
.wf { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 12px; color: var(--muted); flex-wrap: wrap; } .wf span { padding: 4px 10px; border-radius: 20px; background: var(--surface2); border: 1px solid var(--line); text-transform: capitalize; } .wf span.on { background: var(--green-soft); color: #0b7a4b; border-color: #bfe6d3; font-weight: 600; } .wf i { font-style: normal; }
.st-out { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.st-lab { font-size: 11.5px; color: var(--muted); }
.st-en, .st-ar { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14.5px; line-height: 1.7; outline: none; color: var(--text); }
.st-en:focus, .st-ar:focus { border-color: var(--blue); background: #fff; }
.st-ar { font-size: 15.5px; line-height: 1.95; text-align: right; }
.sharecard { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--sh2); }

/* ================= rules */
.calc input, .calc select { background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 7px; }
.calc select { padding-right: 26px; }
.cp { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.calc-tot { text-align: right; } .calc-tot b { font-size: 28px; color: var(--navy); display: block; line-height: 1; } .calc-tot span { font-size: 11.5px; color: var(--muted); }
.calc-x { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--text2); } .calc-x input { width: 60px; background: var(--surface); border: 1px solid var(--line2); border-radius: 8px; padding: 5px 7px; margin-left: 4px; }
.tests { display: flex; flex-direction: column; gap: 4px; max-height: 540px; overflow-y: auto; }
.test { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: var(--surface2); border: 1px solid var(--line); } .test span { font-weight: 800; } .test.pass span { color: var(--green); } .test.fail span { color: var(--red); } .test em { margin-left: auto; font-style: normal; color: var(--text2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rules-ref { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .rules-ref div { background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font-size: 12.5px; color: var(--text2); } .rules-ref b { display: block; color: var(--navy); margin-bottom: 4px; }
.rules-ref .flag { border-color: #f0dca5; background: var(--yellow-soft); color: #6b4c12; }

/* ================= integration */
.arch { display: flex; align-items: stretch; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; }
.arch .col { flex: 1; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh1); }
.arch .col.gold { border: 1.5px dashed var(--gold2); background: var(--gold-soft); }
.ck { font-size: 9.5px; letter-spacing: .14em; color: var(--muted); font-weight: 800; } .col.gold .ck { color: var(--gold); }
.bx { background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; } .bx.out { background: var(--navy); border-color: var(--navy); color: #fff; }
.col.gold .bx { background: #fff; }
.arr { display: grid; place-items: center; color: var(--muted); font-size: 22px; } .arr.gold { color: var(--gold); }
.code { background: #0f1729; border-radius: 10px; padding: 12px 14px; font: 11.5px/1.6 "SF Mono", Menlo, Consolas, monospace; color: #bcd6ff; overflow-x: auto; white-space: pre; margin: 0; }
.stream { min-height: 190px; white-space: pre-wrap; word-break: break-all; }
.verb { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 5px; } .verb.get { background: var(--green-soft); color: #0b7a4b; } .verb.post { background: var(--blue-soft); color: var(--blue-d); }
.checks { margin: 0; padding-left: 0; list-style: none; } .checks li { padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid var(--line); font-size: 13px; } .checks li::before { content: "✓"; position: absolute; left: 3px; color: var(--green); font-weight: 800; }
.cmp-sel { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; } .cmp-sel select { min-width: 240px; max-width: 100%; }
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 14px; }
.cmp-head div:last-child { text-align: right; } .cmp-head b { display: block; font-size: 15px; color: var(--navy); } .cmp-head span { font-size: 26px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.cmp-head .gap { text-align: center; font-size: 22px; font-weight: 800; color: var(--navy); } .cmp-head .gap em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.cmp-head h4, .card > h4 { color: var(--text2); }

/* ================= responsive */
@media (max-width: 1360px) {
  .live-badge { display: none; }
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-1-2 { grid-template-columns: minmax(0, 1fr); }
  .rules-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed { width: 320px; }
}
@media (max-width: 1180px) {
  #app { grid-template-columns: 72px 1fr; }
  .sidenav { padding: 10px 8px; }
  .nav-i { justify-content: center; padding: 10px; } .nav-i span, .nav-g, .nav-foot { display: none; }
  .nav-i.on::before { left: -8px; }
  .transport [data-tr="back"], .transport [data-tr="fwd"] { display: none; }
  .brand-t span, .heat label, .top-r .lbl-t { display: none; }
  .clock { min-width: 170px; }
  .grid-2-1, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hud { max-width: calc(100% - 340px); }
  .side-panel { right: 14px; top: auto; bottom: 62px; max-height: calc(100% - 190px); }
  .feed { display: none; }
}
@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .menu-btn { display: flex; }
  .sidenav { position: fixed; top: 0; bottom: 0; left: 0; width: 272px; z-index: 60; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--sh3); padding-top: 18px; }
  .nav-i { justify-content: flex-start; padding: 10px 12px; } .nav-i span, .nav-g { display: block; } .nav-foot { display: flex; }
  .nav-i.on::before { left: -10px; }
  body.nav-open .sidenav { transform: none; }
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,41,.35); z-index: 55; backdrop-filter: blur(2px); }
  .topbar { gap: 10px; padding: 8px 12px; flex-wrap: wrap; row-gap: 8px; }
  .brand { flex: 1 1 auto; }
  .heat { order: 10; flex: 1 1 52%; } .heat select { max-width: none; width: 100%; }
  .clock { order: 11; flex: 1 1 36%; max-width: none; }
  .top-r { margin-left: 0; }
  .brand-t span, .heat label, .clk-sub { display: none; }
  .clock { min-width: 140px; }
  .transport [data-tr="start"], .transport [data-tr="next"] { display: none; }
  .top-r .lbl-t { display: none; }
  .grid-1-1, .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); } .flow-arrow { transform: rotate(90deg); height: 18px; }
  .page { padding: 18px 16px 70px; }
  .hero { padding: 26px 22px; } .hero h1 { font-size: 36px; }
  .tbl { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .tbl tr { white-space: nowrap; }
  /* 3D overlays → mobile layout */
  .hud { left: 10px; top: 10px; right: auto; max-width: calc(100% - 20px); }
  .hud-toggle { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); border: 1px solid rgba(15,23,41,.1) !important; box-shadow: 0 6px 18px rgba(15,23,41,.12); border-radius: 11px !important; padding: 8px 12px !important; font-weight: 600 !important; }
  .hud .hud-group { display: none; }
  .hud.open .hud-group { display: flex; }
  .hud.open { background: rgba(255,255,255,.96); border-radius: 14px; padding: 8px; box-shadow: var(--sh3); max-height: 70%; overflow-y: auto; }
  .hud.open .hud-group { box-shadow: none; border: 0; background: transparent; padding: 2px; }
  .minilb { top: 10px; right: 10px; width: 210px; padding: 6px; }
  .mlb-r { grid-template-columns: 18px 6px minmax(0, 1fr) 46px; } .mlb-r .ob { display: none; }
  .minimap { left: 10px; bottom: 56px; width: 116px; height: 116px; }
  .arena-note { display: none; }
  .timeline { left: 10px; right: 10px; bottom: 10px; }
  .side-panel { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 62%; border-radius: 20px 20px 0 0; transform: translateY(100%); opacity: 1; padding: 10px 16px 18px; z-index: 8; }
  .side-panel.open { transform: none; }
  .sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 10px; }
  .lbl.team { font-size: 10px; padding: 1px 5px 1px 4px; } .lbl.team .p { display: none; }
}
@media (max-width: 600px) {
  .topbar { row-gap: 8px; }
  .brand-t { display: none; }
  .heat { flex: 1 1 100%; }
  .clock { flex: 1 1 100%; }
  .pain-grid, .zone-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rules-ref, .officials { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi b { font-size: 18px; }
  .hero h1 { font-size: 30px; } .hero-sub { font-size: 15px; } .hero-stats b { font-size: 22px; }
  .page-h h1 { font-size: 22px; }
  .sec-h { margin-top: 26px; }
  .search, .cmp-sel select, .studio-ctl select { min-width: 0; width: 100%; max-width: none; }
  .cmp-head { grid-template-columns: minmax(0, 1fr); text-align: center; } .cmp-head div:last-child { text-align: center; }
  .rep-head { flex-direction: column; } .rep-rank { text-align: left; }
  .tablet { padding: 10px; border-radius: 22px; } .tablet-screen { min-height: 0; padding: 12px; }
  .modal-card, .modal-card.wide { margin: 0; width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  #tour { bottom: 10px; } .tour-card { padding: 14px; } .tour-card p { font-size: 13.5px; }
  #toast { left: 12px; right: 12px; bottom: 12px; } .toast { max-width: none; }
  .minilb { width: 170px; }
  .minimap { display: none; }
  .pn-stats b { font-size: 16px; }
  .transport button { padding: 6px 8px; }
}

/* ================= print (entity report) */
@media print {
  body { background: #fff; } #app { display: block; height: auto; } .topbar, .sidenav, .page-h .actions, #tour, #toast, .nav-scrim { display: none !important; }
  #view { overflow: visible; } .page { padding: 0; } .report { border: 0; box-shadow: none; } .card, .kpi { box-shadow: none; }
}

/* ================= DUBAI GAMES colour touches */
.ink-cyan { color: var(--dg-cyan-ink); } .ink-green { color: var(--dg-green-ink); } .ink-orange { color: var(--dg-orange-ink); } .ink-pink { color: var(--dg-pink-ink); }
.topbar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--dg-stripe); }
.logo { position: relative; overflow: hidden; } .logo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--dg-stripe); }
.clk-track i { background: var(--dg-flow); }
.nav-i.on { background: linear-gradient(90deg, var(--dg-cyan-soft), #f3f9ff 70%); }
.nav-i.on::before { background: linear-gradient(180deg, var(--dg-cyan), var(--dg-green), var(--dg-orange), var(--dg-pink)); width: 4px; }
.tabs button.on { border-bottom: 3px solid; border-image: var(--dg-flow) 1; }
.kpi:nth-child(4n+1)::before { background: var(--dg-cyan); } .kpi:nth-child(4n+2)::before { background: var(--dg-green); }
.kpi:nth-child(4n+3)::before { background: var(--dg-orange); } .kpi:nth-child(4n+4)::before { background: var(--dg-pink); }
.hero { background-image: radial-gradient(800px 380px at 108% -10%, rgba(73,206,233,.16), transparent 60%), radial-gradient(700px 340px at 95% 120%, rgba(237,0,139,.09), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(107,197,64,.08), transparent 60%); }
.hero::after { display: none; }
.hero-streaks { position: absolute; right: -40px; top: -30px; width: 520px; height: 420px; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420' fill='none' stroke-linecap='round' stroke-width='9'%3E%3Cpath d='M120 400 L440 40' stroke='%2349CEE9'/%3E%3Cpath d='M170 410 L470 80' stroke='%236BC540'/%3E%3Cpath d='M60 150 L330 300' stroke='%23F65F07'/%3E%3Cpath d='M80 205 L300 330' stroke='%23ED008B'/%3E%3C/svg%3E") no-repeat right top / contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.hero-stats div { border-top: 3px solid var(--dg-cyan); } .hero-stats div:nth-child(2) { border-top-color: var(--dg-green); } .hero-stats div:nth-child(3) { border-top-color: var(--dg-orange); } .hero-stats div:nth-child(4) { border-top-color: var(--dg-pink); }
.pain { border-top: 3px solid var(--dg-cyan); } .pain:nth-child(2) { border-top-color: var(--dg-green); } .pain:nth-child(3) { border-top-color: var(--dg-orange); } .pain:nth-child(4) { border-top-color: var(--dg-pink); }
.pain:nth-child(1) .pain-n { color: var(--dg-cyan-ink); } .pain:nth-child(2) .pain-n { color: var(--dg-green-ink); } .pain:nth-child(3) .pain-n { color: var(--dg-orange-ink); } .pain:nth-child(4) .pain-n { color: var(--dg-pink-ink); }
.flow-step:nth-child(1) .flow-n { background: var(--dg-cyan-ink); } .flow-step:nth-child(5) .flow-n { background: var(--dg-pink-ink); }
.mod-g::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--muted); }
.g-live .mod-g::before { background: var(--dg-cyan); } .g-live .mod-ic { background: var(--dg-cyan-soft); } .g-live .mod-ic svg { stroke: var(--dg-cyan-ink); } .g-live .mod:hover { border-color: var(--dg-cyan); }
.g-competition .mod-g::before { background: var(--dg-green); } .g-competition .mod-ic { background: var(--dg-green-soft); } .g-competition .mod-ic svg { stroke: var(--dg-green-ink); } .g-competition .mod:hover { border-color: var(--dg-green); }
.g-intelligence .mod-g::before { background: var(--dg-orange); } .g-intelligence .mod-ic { background: var(--dg-orange-soft); } .g-intelligence .mod-ic svg { stroke: var(--dg-orange-ink); } .g-intelligence .mod:hover { border-color: var(--dg-orange); }
.g-platform .mod-g::before { background: var(--dg-pink); } .g-platform .mod-ic { background: var(--dg-pink-soft); } .g-platform .mod-ic svg { stroke: var(--dg-pink-ink); } .g-platform .mod:hover { border-color: var(--dg-pink); }
.tour-card { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-top: 20px; } .tour-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--dg-stripe); }
.tour-k { color: var(--dg-pink-ink); }
.report { position: relative; overflow: hidden; border-top: 1px solid var(--line); } .report::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--dg-stripe); }
.mlb-h { color: var(--dg-pink-ink); }
.live-badge { color: var(--dg-pink-ink); } .live-badge i { background: var(--dg-pink); }
#tbLane button.on { color: #0f1729; }
.lbl.zone { border-color: rgba(73,206,233,.75); } .lbl.zone b { color: var(--dg-cyan); }
.transport .play.on { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 -3px 0 var(--dg-pink); }
.tl-track input[type=range]::-webkit-slider-thumb { background: var(--dg-pink); }
.tl-track input[type=range]::-moz-range-thumb { background: var(--dg-pink); }
.btn.ghost:hover { border-color: var(--dg-cyan); background: var(--dg-cyan-soft); }
@media (max-width: 900px) { .hero-streaks { width: 300px; height: 240px; right: -60px; top: -40px; opacity: .28; } }
@media (max-width: 600px) { .hero-streaks { width: 220px; height: 180px; right: -70px; top: -50px; opacity: .22; } }
