/* Arena Live design system — tactical dark UI, condensed display type, amber accent. */
:root {
  color-scheme: dark;
  --bg: #0a0d11;
  --bg-2: #0f141a;
  --panel: #141a21;
  --panel-2: #1b222c;
  --line: #243040;
  --line-2: #2f3d50;
  --text: #e8edf3;
  --muted: #8a98ab;
  --dim: #5a6778;
  --accent: #f5a623;
  --accent-2: #ffc457;
  --accent-ink: #1a1200;
  --red: #ff4655;
  --blue: #3fa7ff;
  --green: #3fff8b;
  --yellow: #ffd23f;
  --purple: #c86bff;
  --orange: #ff8f3f;
  --radius: 6px;
  --display: 'Barlow Condensed', 'Rajdhani', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4, .display { font-family: var(--display); letter-spacing: 0.02em; margin: 0; font-weight: 700; text-transform: uppercase; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }

/* ---- backgrounds ---- */
.bg-tactical {
  background:
    radial-gradient(ellipse at 15% -10%, rgba(245, 166, 35, 0.14), transparent 50%),
    radial-gradient(ellipse at 110% 110%, rgba(63, 167, 255, 0.1), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
.scanlines::after { content: ''; position: fixed; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; z-index: 1000; opacity: 0.5; }

/* ---- brand ---- */
.logo { font-family: var(--display); font-weight: 700; letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; }
.logo .mark { width: 28px; height: 28px; border: 2px solid var(--accent); border-radius: 50%; position: relative; flex: none; }
.logo .mark::before, .logo .mark::after { content: ''; position: absolute; background: var(--accent); }
.logo .mark::before { left: 50%; top: -6px; bottom: -6px; width: 2px; transform: translateX(-50%); }
.logo .mark::after { top: 50%; left: -6px; right: -6px; height: 2px; transform: translateY(-50%); }
.logo b { color: var(--accent); }

/* ---- surfaces ---- */
.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.panel.cut { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); border: 0; }
.panel.cut::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); clip-path: inherit; pointer-events: none; }
.label { font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; }
.tag { font-family: var(--display); font-weight: 700; letter-spacing: 0.1em; font-size: 12px; padding: 3px 8px; border-radius: 3px; background: var(--panel-2); border: 1px solid var(--line); text-transform: uppercase; display: inline-block; }
.tag.live { background: var(--red); border-color: var(--red); color: #fff; animation: pulse 1.4s infinite; }
.tag.accent { background: rgba(245, 166, 35, 0.15); border-color: rgba(245, 166, 35, 0.5); color: var(--accent); }
@keyframes pulse { 50% { opacity: 0.55; } }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }

/* ---- buttons ---- */
.btn {
  appearance: none; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); color: var(--text);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 4px; cursor: pointer; transition: transform 0.08s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: 48px; position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn:hover { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.4); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: linear-gradient(180deg, #ffd27a, var(--accent-2)); }
.btn.danger { background: transparent; border-color: rgba(255, 70, 85, 0.5); color: var(--red); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.lg { font-size: 24px; padding: 16px 28px; min-height: 60px; }
.btn.sm { font-size: 14px; padding: 8px 12px; min-height: 36px; }

/* ---- forms ---- */
input, select {
  -webkit-appearance: none; appearance: none;
  font: inherit; color: var(--text); -webkit-text-fill-color: var(--text); caret-color: var(--accent);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; width: 100%; min-height: 48px; font-size: 16px;
}
input::placeholder { color: var(--dim); -webkit-text-fill-color: var(--dim); opacity: 1; }
input:-webkit-autofill, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--bg) inset; transition: background-color 9999s; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field { display: grid; gap: 6px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--bg); padding: 4px; border-radius: 4px; border: 1px solid var(--line); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); padding: 10px 8px; border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; cursor: pointer; white-space: nowrap; text-transform: uppercase; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }

/* ---- bars ---- */
.bar { height: 10px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--c, #fff); transition: width 0.2s; }
.bar.striped > i { background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 10px); }

/* ---- toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  padding: 12px 18px; border-radius: 4px; z-index: 2000; font-weight: 500; max-width: calc(100vw - 32px); text-align: center; animation: toastIn 0.2s ease-out; box-shadow: var(--shadow);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---- weapon svg ---- */
.wsvg { display: block; width: 100%; height: auto; }

/* ---- utility ---- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 12px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }
.kbd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
