/* ═══════════════════════════════════════════════════════════
   HOCKEY OVERLAY — ICE THEME
   Palette: deep navy ice, frosted glass, cold blue accents
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700;900&family=Barlow:wght@300;400;600;700&display=swap');

:root {
  /* Backgrounds — layers of ice depth */
  --bg:        #04080f;
  --bg2:       #080f1c;
  --bg3:       #0d1828;
  --bg4:       #132034;

  /* Borders — ice fractures */
  --border:       rgba(120,200,255,.08);
  --border-light: rgba(160,220,255,.15);
  --border-glow:  rgba(100,190,255,.25);

  /* Ice text hierarchy */
  --text:   #cce8ff;
  --text2:  rgba(204,232,255,.6);
  --text3:  rgba(204,232,255,.3);
  --text4:  rgba(204,232,255,.15);

  /* Accent colors */
  --ice:      #7dcfff;       /* primary ice blue */
  --ice-dim:  rgba(125,207,255,.12);
  --ice-glow: rgba(125,207,255,.25);
  --frost:    #b8e0ff;       /* frosted lighter blue */
  --deep:     #1e4060;       /* deep ice */

  /* Functional */
  --red:     #ff5a5a;
  --red-dim: rgba(255,90,90,.1);
  --green:   #3dd68c;
  --yellow:  #e8c840;
  --penalty: #ff8844;        /* penalty orange — warm contrast on cold */

  /* Typography */
  --font:      'Barlow', system-ui, sans-serif;
  --font-cond: 'Barlow Condensed', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════════════════════
   ICE TEXTURE — subtle diagonal grid across the whole page
   ═══════════════════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(100,180,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,180,255,.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── LAYOUT ── */
.layout { display: flex; height: 100vh; overflow: hidden; position: relative; z-index: 1; }
.main   { flex: 1; overflow-y: auto; padding: 28px 32px; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #060e1d 0%, #04080f 100%);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

/* Ice shard accent at top of sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ice), var(--frost), var(--ice), transparent);
  opacity: .6;
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
}

/* Geometric hockey puck / ice crystal as logo mark */
.sidebar-logo-mark svg {
  width: 100%;
  height: 100%;
}

.sidebar-logo-text {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--frost);
  line-height: 1;
}

.sidebar-logo-sub {
  font-size: 9px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-top: 3px;
}

.sidebar-section {
  padding: 16px 16px 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all .15s;
  border-left: 2px solid transparent;
  margin: 1px 0;
  position: relative;
}

.sidebar-link:hover {
  background: rgba(125,207,255,.05);
  color: var(--text);
  border-left-color: rgba(125,207,255,.3);
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(125,207,255,.1), transparent);
  color: var(--ice);
  border-left-color: var(--ice);
  font-weight: 600;
}

.sidebar-link .icon {
  width: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Geometric icon shapes — no emoji */
.ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 12px 0 8px;
}

.sidebar-user {
  padding: 4px 16px 8px;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: .3px;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1 {
  font-family: var(--font-cond);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--frost);
  line-height: 1.2;
}
h2 { font-family: var(--font-cond); font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: .3px; }
h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.page-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-title h1 { margin: 0; }

/* ═══════════════════════════════════════════════════════════
   ICE CARD — the core visual unit
   ═══════════════════════════════════════════════════════════ */
.card {
  background: linear-gradient(135deg, rgba(20,40,65,.9) 0%, rgba(8,15,28,.95) 100%);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 20px;
  margin-bottom: 16px;
  position: relative;
  /* top-right ice shard corner */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; right: 9px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent var(--border-glow) transparent transparent;
}

.card-title {
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(20,50,80,.7) 0%, rgba(8,15,28,.9) 100%);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: border-color .2s;
}

.stat-card:hover { border-color: var(--border-glow); }

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice), transparent);
  opacity: .3;
}

.stat-card-value {
  font-family: var(--font-cond);
  font-size: 32px;
  font-weight: 700;
  color: var(--ice);
  line-height: 1;
  letter-spacing: 1px;
}

.stat-card-label {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th {
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  background: rgba(125,207,255,.03);
}

td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(120,200,255,.04);
  vertical-align: middle;
  color: var(--text2);
}

tr:hover td {
  background: rgba(125,207,255,.04);
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ice), #5ab4e8);
  color: #04080f;
  border-color: var(--ice);
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 0 16px rgba(125,207,255,.35); }

.btn-secondary {
  background: rgba(125,207,255,.08);
  color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover { background: rgba(125,207,255,.14); border-color: var(--ice); color: var(--ice); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--ice-dim); color: var(--text); border-color: var(--border-light); }

.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border-color: rgba(255,90,90,.2);
}
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-ice {
  background: rgba(125,207,255,.1);
  color: var(--ice);
  border-color: rgba(125,207,255,.3);
}
.btn-ice:hover { background: rgba(125,207,255,.18); box-shadow: 0 0 12px rgba(125,207,255,.2); }

.btn-penalty {
  background: rgba(255,136,68,.1);
  color: var(--penalty);
  border-color: rgba(255,136,68,.25);
}
.btn-penalty:hover { background: rgba(255,136,68,.2); }

.btn-sm  { padding: 5px 12px; font-size: 11px; }
.btn-xs  { padding: 3px 8px;  font-size: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group  { margin-bottom: 14px; }
.form-label  {
  display: block;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(8,20,40,.8);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 2px rgba(125,207,255,.1);
}
.form-select option { background: #0d1828; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; }

.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; color: var(--text2); }

input[type="color"].form-input { padding: 3px 6px; height: 34px; cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,5,15,.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal.show { display: flex; }

.modal-box {
  background: linear-gradient(160deg, #0d1e34 0%, #060e1d 100%);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(125,207,255,.05);
}

.modal-box::before {
  content: '';
  position: absolute;
  top: 0; right: 11px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--border-glow) transparent transparent;
}

.modal-title {
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--frost);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 1px;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-blue    { background: var(--ice-dim); color: var(--ice); border: 1px solid rgba(125,207,255,.2); }
.badge-green   { background: rgba(61,214,140,.1); color: var(--green); border: 1px solid rgba(61,214,140,.2); }
.badge-red     { background: var(--red-dim); color: var(--red); border: 1px solid rgba(255,90,90,.2); }
.badge-yellow  { background: rgba(232,200,64,.08); color: var(--yellow); border: 1px solid rgba(232,200,64,.2); }
.badge-ice     { background: var(--ice-dim); color: var(--frost); border: 1px solid rgba(184,224,255,.15); }
.badge-penalty { background: rgba(255,136,68,.1); color: var(--penalty); border: 1px solid rgba(255,136,68,.25); }

/* ═══════════════════════════════════════════════════════════
   FLASH MESSAGES & TOASTS
   ═══════════════════════════════════════════════════════════ */
.flash-msg     { padding: 10px 16px; border-radius: 2px; margin-bottom: 10px; font-size: 13px; }
.flash-success { background: rgba(61,214,140,.08); border: 1px solid rgba(61,214,140,.25); color: var(--green); }
.flash-danger  { background: var(--red-dim); border: 1px solid rgba(255,90,90,.25); color: var(--red); }
.flash-warning { background: rgba(232,200,64,.07); border: 1px solid rgba(232,200,64,.2); color: var(--yellow); }

.toast-container {
  position: fixed; top: 16px; right: 16px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 10px 18px;
  border-radius: 2px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  animation: toastIn .2s ease both;
  border-left: 3px solid;
}
.toast-success { background: #081a12; border-color: var(--green); color: var(--green); }
.toast-error   { background: #1a0808; border-color: var(--red); color: var(--red); }
.toast-info    { background: #060f1e; border-color: var(--ice); color: var(--ice); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════
   GAME CONTROL PANEL
   ═══════════════════════════════════════════════════════════ */
.gc-wrap {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.gc-topbar {
  background: linear-gradient(90deg, #060d1b 0%, #0a1526 50%, #060d1b 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  height: 80px;
  flex-shrink: 0;
  position: relative;
}

/* Top ice line */
.gc-topbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ice) 30%, var(--frost) 50%, var(--ice) 70%, transparent 100%);
  opacity: .5;
}

.gc-body {
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  overflow: hidden;
}

.gc-col {
  overflow-y: auto;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #070e1c 0%, #04080f 100%);
}

.gc-col:last-child {
  border-right: none;
  border-left: 1px solid var(--border);
}

.gc-col-center {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Scoreboard */
.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
  padding: 0 16px;
}

.sb-team { text-align: center; min-width: 110px; }

.sb-name {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 130px;
}

.sb-score {
  font-family: var(--font-cond);
  font-size: 44px;
  font-weight: 900;
  color: var(--ice);
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(125,207,255,.4);
}

.sb-sep { font-family: var(--font-cond); font-size: 28px; color: var(--text3); }

.sb-meta { text-align: center; }

.sb-period {
  font-family: var(--font-cond);
  font-size: 18px;
  font-weight: 700;
  color: var(--frost);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sb-timer {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
}
.sb-timer.running { color: var(--green); text-shadow: 0 0 12px rgba(61,214,140,.4); }
.sb-timer.stopped { color: var(--text3); }

/* Period bar */
.period-bar { display: flex; gap: 8px; justify-content: center; padding: 4px 0; }
.pb-cell { text-align: center; min-width: 38px; }
.pb-cell .lbl { font-size: 9px; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; }
.pb-cell .val { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text3); }
.pb-cell.current .lbl { color: var(--ice); }
.pb-cell.current .val { color: var(--frost); }

/* Timer controls */
.timer-controls { display: flex; gap: 4px; justify-content: center; margin-top: 4px; }

/* Status buttons */
.status-grid { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px; }

.status-btn {
  padding: 4px 9px;
  border-radius: 1px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text3);
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .12s;
}
.status-btn:hover { background: var(--ice-dim); color: var(--text); border-color: var(--border-light); }
.status-btn.active {
  background: linear-gradient(135deg, rgba(125,207,255,.15), rgba(125,207,255,.08));
  color: var(--ice);
  border-color: rgba(125,207,255,.4);
  box-shadow: inset 0 0 8px rgba(125,207,255,.1);
}

/* Section labels */
.sec-label {
  padding: 5px 10px;
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(125,207,255,.04);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Team header bar */
.gc-team-header {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-light);
}

.gc-team-logo { width: 28px; height: 28px; object-fit: contain; }

.gc-team-label {
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex: 1;
  color: var(--frost);
}

/* Tabs */
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(125,207,255,.02);
}

.tab-btn {
  flex: 1;
  padding: 7px 4px;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.tab-btn.active { color: var(--ice); border-bottom-color: var(--ice); }
.tab-btn:hover:not(.active) { color: var(--text2); }

.tab-panel { display: none; flex-direction: column; flex: 1; overflow-y: auto; }
.tab-panel.active { display: flex; }

/* Player line in roster */
.player-line {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-bottom: 1px solid rgba(125,207,255,.04);
  cursor: default;
  transition: background .1s;
}
.player-line:hover { background: rgba(125,207,255,.04); }

.player-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ice);
  min-width: 24px;
  text-align: right;
}
.player-name { flex: 1; font-size: 13px; color: var(--text); }
.player-pos {
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  color: var(--text3);
  min-width: 22px;
  text-align: center;
  background: rgba(125,207,255,.06);
  border: 1px solid var(--border);
  padding: 1px 3px;
}
.player-line.goalie .player-number { color: var(--frost); }
.player-line.goalie .player-pos { color: var(--ice); background: var(--ice-dim); border-color: rgba(125,207,255,.25); }
.player-line.scratched { opacity: .35; }

.line-group-header {
  padding: 3px 10px;
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: rgba(125,207,255,.03);
  border-bottom: 1px solid var(--border);
}

/* Event buttons */
.ev-group { margin-bottom: 6px; }

.ev-group-label {
  padding: 4px 8px;
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ev-btns { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 8px 4px; }

.ev-btn {
  padding: 5px 10px;
  border-radius: 1px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.ev-btn:hover { background: var(--bg4); color: var(--text); }
.ev-btn.btn-goal    { border-color: rgba(61,214,140,.25); color: var(--green); }
.ev-btn.btn-goal:hover { background: rgba(61,214,140,.08); }
.ev-btn.btn-penalty { border-color: rgba(255,136,68,.25); color: var(--penalty); }
.ev-btn.btn-penalty:hover { background: rgba(255,136,68,.08); }
.ev-btn.btn-shot    { border-color: rgba(125,207,255,.2); color: var(--ice); }
.ev-btn.btn-shot:hover { background: var(--ice-dim); }

/* Overlay buttons */
.ovl-btn {
  padding: 5px 10px;
  border-radius: 1px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .12s;
  white-space: nowrap;
}
.ovl-btn:hover { background: var(--bg4); color: var(--text); border-color: var(--border-light); }
.ovl-btn.active {
  background: linear-gradient(135deg, var(--ice-dim), rgba(125,207,255,.06));
  color: var(--ice);
  border-color: rgba(125,207,255,.35);
  box-shadow: 0 0 8px rgba(125,207,255,.1);
}

/* Marker items */
.marker-item {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(125,207,255,.04);
  font-size: 11px;
}

.marker-period { font-family: var(--font-cond); font-weight: 700; color: var(--ice); font-size: 11px; letter-spacing: .5px; }
.marker-time   { font-family: var(--font-mono); font-weight: 700; color: var(--frost); }
.marker-type   { color: var(--text); font-weight: 600; }
.marker-player { color: var(--text2); display: block; margin-top: 2px; }

.marker-actions { display: flex; gap: 4px; margin-top: 4px; }

.marker-btn {
  font-family: var(--font-cond);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 1px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text3);
  cursor: pointer;
  transition: all .12s;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.marker-btn:hover { color: var(--text); background: var(--bg4); }
.marker-btn.broadcast { color: var(--ice); border-color: rgba(125,207,255,.25); }
.marker-btn.active-broadcast { background: var(--red-dim) !important; color: var(--red) !important; border-color: rgba(255,90,90,.3) !important; }
.marker-btn.delete { color: var(--red); border-color: rgba(255,90,90,.2); }
.marker-btn.delete:hover { background: var(--red-dim); }

/* Penalty box */
.penalty-box {
  background: rgba(255,136,68,.05);
  border: 1px solid rgba(255,136,68,.18);
  margin: 6px 8px;
  padding: 8px;
}

.penalty-box-header {
  font-family: var(--font-cond);
  font-size: 9px;
  font-weight: 700;
  color: var(--penalty);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.penalty-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,136,68,.08);
}

.penalty-player { font-size: 12px; font-weight: 600; color: var(--text); flex: 1; }
.penalty-time   { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--penalty); }
.penalty-type   { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — Game cards
   ═══════════════════════════════════════════════════════════ */
.game-card {
  background: linear-gradient(135deg, rgba(18,38,60,.8) 0%, rgba(8,15,28,.9) 100%);
  border: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  text-decoration: none;
  color: var(--text);
  transition: all .15s;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  position: relative;
}
.game-card:hover {
  border-color: var(--border-glow);
  background: linear-gradient(135deg, rgba(28,55,85,.9) 0%, rgba(12,22,40,.95) 100%);
  box-shadow: 0 0 20px rgba(125,207,255,.05);
}

.game-card-score {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 900;
  color: var(--ice);
  min-width: 60px;
  text-align: center;
  letter-spacing: 1px;
}

.game-card-teams { flex: 1; }
.game-card-home, .game-card-away { font-size: 13px; font-weight: 600; line-height: 1.4; }
.game-card-meta  { font-size: 11px; color: var(--text3); margin-top: 2px; }

.game-card-status {
  font-family: var(--font-cond);
  font-size: 10px;
  padding: 2px 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: 1px solid;
}
.status-live      { background: rgba(255,90,90,.08); color: var(--red); border-color: rgba(255,90,90,.2); }
.status-scheduled { background: rgba(232,200,64,.06); color: var(--yellow); border-color: rgba(232,200,64,.2); }
.status-finished  { background: rgba(125,207,255,.05); color: var(--text3); border-color: var(--border); }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGE
   ═══════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(30,65,100,.4) 0%, transparent 70%), var(--bg);
  padding: 20px;
  position: relative;
}

/* Ice grid background on auth */
.auth-wrap::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(100,180,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,180,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-box {
  background: linear-gradient(160deg, #0a1828 0%, #060d18 100%);
  border: 1px solid var(--border-light);
  padding: 36px 32px;
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 60px rgba(125,207,255,.04);
}

.auth-box::before {
  content: '';
  position: absolute;
  top: 0; right: 15px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 16px 16px 0;
  border-color: transparent rgba(125,207,255,.35) transparent transparent;
}

/* Horizontal ice line at top of auth box */
.auth-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ice) 40%, var(--frost) 60%, transparent);
  opacity: .7;
}

.auth-logo { text-align: center; margin-bottom: 32px; }

.auth-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.auth-logo-title {
  font-family: var(--font-cond);
  font-size: 22px;
  font-weight: 900;
  color: var(--frost);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.auth-logo-sub {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.flex         { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4   { margin-top: 4px; }
.mt-8   { margin-top: 8px; }
.mt-12  { margin-top: 12px; }
.mt-16  { margin-top: 16px; }
.mb-4   { margin-bottom: 4px; }
.mb-8   { margin-bottom: 8px; }
.mb-12  { margin-bottom: 12px; }
.text-muted   { color: var(--text3); }
.text-small   { font-size: 11px; }
.text-ice     { color: var(--ice); }
.uppercase    { text-transform: uppercase; letter-spacing: .6px; }
.mono         { font-family: var(--font-mono); }
.cond         { font-family: var(--font-cond); }
.hidden       { display: none !important; }
.w-full       { width: 100%; }
.text-center  { text-align: center; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ice divider */
.ice-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  margin: 16px 0;
}

/* ═══════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════ */
::-webkit-scrollbar       { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(125,207,255,.15); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(125,207,255,.28); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { width: 44px; }
  .sidebar-link span:not(.icon) { display: none; }
  .sidebar-section, .sidebar-logo-text, .sidebar-logo-sub, .sidebar-user { display: none; }
  .gc-body { grid-template-columns: 1fr 1fr; }
  .gc-col-center { display: none; }
}
