/* SKO 2027 theme (MathWorks brand palette). Always dark on purpose: projectors / stage lighting. */
:root {
  --bg: #021321;        /* near-black MathWorks navy */
  --bg2: #063a63;       /* deep MathWorks blue */
  --panel: #004B87;     /* MathWorks accent blue */
  --panel2: #0076A8;    /* MathWorks primary blue */
  --line: #2c6f9e;
  --gold: #F2A900;      /* SKO amber = primary accent */
  --gold2: #FFC94D;
  --text: #eef5fb;
  --muted: #9ec6e0;
  --red: #e0463f;       /* MathWorks red, brightened for dark */
  --green: #57b84c;     /* MathWorks green, brightened for dark */
  --teamA: #00A9E0;     /* MathWorks cyan */
  --teamB: #D78824;     /* SKO orange */
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(ellipse at top, var(--bg2), var(--bg) 70%) fixed;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer; border: 1px solid var(--line); background: var(--panel2);
  border-radius: 10px; padding: 10px 14px; font-weight: 600;
  transition: transform .06s ease, background .15s ease;
}
button:hover { background: #0a5c92; }
button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--gold); color: #1a1300; border-color: var(--gold); }
button.primary:hover { background: var(--gold2); }
button.danger { background: #5a1b18; border-color: var(--red); }
button.good { background: #14532b; border-color: var(--green); }
button.small { padding: 5px 9px; font-size: 13px; border-radius: 8px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #00233c; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel2); }
.pill.A { background: color-mix(in srgb, var(--teamA) 25%, transparent); color: var(--teamA); }
.pill.B { background: color-mix(in srgb, var(--teamB) 25%, transparent); color: var(--teamB); }
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  background: #000c; border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px;
  font-size: 14px; z-index: 50; max-width: calc(100% - 32px);
}
.conn { position: fixed; top: 8px; right: 8px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: #5a1b18; z-index: 60; }
.conn.ok { display: none; }

/* --- SKO 2027 / MathWorks branding helpers --- */
.brandbar { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.brandbar img { display: block; }
.brand-foot { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; opacity: .92; }
.brand-foot img { height: 24px; width: auto; display: block; }
.brand-divider { width: 1px; height: 22px; background: var(--line); opacity: .8; }
