@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Jost:wght@600;700;800&display=swap');

:root {
  --brand-primary: #3b82f6;
  --brand-primary-hover: #2563eb;
  --color-bg: #0e1015;
  --color-surface: #161922;
  --color-surface-elevated: #1e2330;
  --color-surface-hover: #262c3c;
  --color-border: #262c3a;
  --color-border-strong: #363f54;
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-danger: #f87171;
  --color-info: #38bdf8;
  --font-header: "Jost", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  background-color: #0e1015;
  background-color: var(--color-bg);
}

body {
  background-color: #0e1015;
  background-color: var(--color-bg);
  color: #f1f5f9;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-header);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.hidden {
  display: none !important;
}

/* Header */
.top-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 1.25rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.brand-wrap {
  display: none;
  align-items: center;
  gap: 0.7rem;
}

.brand-flame {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-header);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--color-bg);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  max-width: 100%;
}

.nav-tab {
  background: transparent;
  color: var(--color-text-secondary);
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.nav-tab:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab.active {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tab-badge {
  font-size: 0.68rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.tab-badge.live {
  background: rgba(52, 211, 153, 0.18);
  color: var(--color-success);
  border-color: rgba(52, 211, 153, 0.4);
}

.tab-badge.alert {
  background: rgba(248, 113, 113, 0.2);
  color: var(--color-danger);
  border-color: rgba(248, 113, 113, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

.ws-pill-compact {
  padding: 0.22rem 0.5rem;
  font-size: 0.7rem;
}

/* Live Socket Status Pill */
.ws-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--color-success);
}

.ws-pill.disconnected {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: var(--color-danger);
}

.ws-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Main Container & KPI Bar */
.main-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.top-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.kpi-card-fight {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-color: rgba(0, 157, 79, 0.55);
  background: rgba(0, 157, 79, 0.12);
}

.kpi-card-fight.clickable:hover {
  border-color: #009d4f;
  background: rgba(0, 157, 79, 0.18);
}

.kpi-fight-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 0;
}

.kpi-fight-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 157, 79, 0.22);
  border: 1px solid rgba(0, 157, 79, 0.55);
  color: #4ade80;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-card.clickable {
  cursor: pointer;
}

.kpi-card.clickable:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-elevated);
}

.kpi-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.kpi-value {
  font-family: var(--font-header);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Cards & Panels */
.card {
  background-color: #161922;
  background: var(--color-surface);
  border: 1px solid #262c3a;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
  border-color: rgba(147, 197, 253, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-primary-hover);
}

.btn-secondary {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-surface-hover);
}

.btn-success {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}

.btn-success:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.28);
}

.btn-warning {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.45);
}

.btn-sm {
  padding: 0.32rem 0.65rem;
  font-size: 0.76rem;
}

.btn-lg {
  padding: 0.68rem 1.25rem;
  font-size: 0.92rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

/* Row Actions & 3-Dot Kebab Overflow Menu */
.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.kebab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.kebab-btn:hover,
.kebab-btn.active {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.kebab-menu {
  position: fixed;
  min-width: 225px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  background: #161a23;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.78);
  z-index: 2500;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.kebab-menu.open {
  display: flex;
}

.kebab-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 0.3rem 0.75rem 0.18rem;
}

.kebab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.56rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.kebab-item:hover {
  background: var(--color-surface-hover);
}

.kebab-item.active-choice {
  color: var(--color-info);
  font-weight: 600;
}

.kebab-item.danger {
  color: var(--color-text-secondary);
}

.kebab-item.danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.kebab-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.22rem 0;
}

/* Forms & Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-bottom: 0.75rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.input, select.input {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-primary);
  padding: 0.52rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

.input:focus {
  border-color: var(--brand-primary);
}

/* Status & Metadata Text Labels (No Pill/Box Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: default;
  user-select: none;
}

.badge-free {
  background: transparent;
  color: var(--color-success);
  border: none;
}

.badge-busy {
  background: transparent;
  color: var(--color-warning);
  border: none;
}

.badge-conflict {
  background: transparent;
  color: var(--color-danger);
  border: none;
}

.badge-role-admin {
  background: transparent;
  color: #e2e8f0;
  border: none;
}

.badge-role-arrangor {
  background: transparent;
  color: #cbd5e1;
  border: none;
}

.badge-role-laerer {
  background: rgba(239, 68, 68, 0.16);
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.55);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.badge-role-spiller {
  background: transparent;
  color: var(--color-text-muted);
  border: none;
}

/* Avstemming Progress Bars */
.vote-option-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vote-option-card:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-elevated);
}

.vote-option-card.selected {
  border-color: var(--brand-primary);
  background: rgba(59, 130, 246, 0.08);
}

.vote-bar-track {
  width: 100%;
  height: 6px;
  background: var(--color-surface-elevated);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.vote-bar-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Live Match Arena & Scoreboard */
.live-match-banner {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.player-score-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.player-score-name {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 700;
}

.player-points-big {
  font-family: var(--font-header);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.player-sets-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-info);
  background: rgba(56, 189, 248, 0.14);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.score-btn-group {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
}

.scoreboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scoreboard-vs {
  font-family: var(--font-header);
  font-size: 1.1rem;
  color: var(--color-text-secondary);
}

.scoreboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-border);
  padding-top: 0.85rem;
}

.scoreboard-referee-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scoreboard-report-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.score-set-input {
  width: 62px;
  text-align: center;
}

/* Responsive Forms for Table & User Creation */
.table-create-form {
  display: grid;
  grid-template-columns: 150px 1fr 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.admin-create-user-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  align-items: end;
}

.profile-kpi-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stopwatch-display {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-success);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* Tables & Standings */
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  background: rgba(0, 0, 0, 0.2);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tr.qualifies-row td {
  background: rgba(52, 211, 153, 0.05);
}

/* Physical Table Card */
.venue-table-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.venue-table-card.active-scan {
  border-color: var(--brand-primary);
  background: var(--color-surface-elevated);
}

/* Auth Overlay */
.auth-lock-screen {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.96);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-lock-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  margin: auto;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.auth-intro-video-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #07090e;
  border: 1px solid var(--color-border-strong);
  aspect-ratio: 16 / 9;
  max-height: 230px;
  position: relative;
}

.auth-lock-screen.keyboard-open {
  padding-bottom: 42vh !important;
}

.auth-lock-screen.keyboard-open .auth-intro-video-wrap {
  height: 0 !important;
  max-height: 0 !important;
  aspect-ratio: auto !important;
  opacity: 0 !important;
  border: none !important;
  margin-top: -0.4rem !important;
  margin-bottom: -0.35rem !important;
  pointer-events: none !important;
}

.auth-lock-screen.keyboard-open #auth-school-hype-box,
.auth-lock-screen.keyboard-open #auth-pending-qr-banner {
  display: none !important;
}

.auth-intro-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.auth-intro-video::-webkit-media-controls,
.auth-intro-video::-webkit-media-controls-enclosure,
.auth-intro-video::-webkit-media-controls-panel,
.auth-intro-video::-webkit-media-controls-play-button,
.auth-intro-video::-webkit-media-controls-start-playback-button,
.auth-intro-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(4px);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 1.35rem;
  max-height: 90vh;
  overflow-y: auto;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
}

.toast-item {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-strong);
  border-left: 4px solid var(--brand-primary);
  color: var(--color-text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.83rem;
}

.toast-item.success {
  border-left-color: var(--color-success);
}
.toast-item.warning {
  border-left-color: var(--color-warning);
}
.toast-item.error {
  border-left-color: var(--color-danger);
}

/* Racket Skins, Achievements, Trophies & Student Directory */
.player-inline-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.12rem 0.4rem 0.12rem 0.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  font-weight: 600;
}

.player-inline-chip:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-border-strong);
  color: var(--color-info);
}

.player-inline-name {
  text-decoration: underline;
  text-decoration-color: rgba(148, 163, 184, 0.35);
  text-underline-offset: 2px;
}

.scoreboard-player-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.scoreboard-player-header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.profile-hero-racket {
  width: 68px;
  height: 68px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* World of Warcraft Item Quality Text Colors for Racket Names (No Badges) */
.skin-rarity-pill {
  display: inline;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0;
  border: none;
  background: transparent;
}

.rarity-starter,
.skin-card-title.rarity-starter {
  color: #9d9d9d;
  background: transparent;
  border: none;
}

.rarity-common,
.skin-card-title.rarity-common {
  color: #4ade80;
  background: transparent;
  border: none;
}

.rarity-rare,
.skin-card-title.rarity-rare {
  color: #38bdf8;
  background: transparent;
  border: none;
}

.rarity-epic,
.skin-card-title.rarity-epic {
  color: #c084fc;
  background: transparent;
  border: none;
}

.rarity-legendary,
.skin-card-title.rarity-legendary {
  color: #ff8000;
  background: transparent;
  border: none;
}

.rarity-mythic,
.skin-card-title.rarity-mythic {
  color: #f43f5e;
  background: transparent;
  border: none;
}

.skins-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.skins-filter-btn {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.skins-filter-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--brand-primary);
}

.skins-filter-btn.active {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: var(--brand-primary);
}

.skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.skin-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  transition: all 0.15s ease;
  min-width: 0;
}

.skin-card.unlocked {
  cursor: pointer;
}

.skin-card.unlocked:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-elevated);
}

.skin-card.equipped {
  border-color: var(--brand-primary);
  background: rgba(59, 130, 246, 0.06);
}

.skin-card.locked {
  opacity: 0.68;
}

.skin-card.locked .racket-skin-svg {
  filter: grayscale(0.65) brightness(0.75) !important;
}

.skin-preview-box {
  width: 100%;
  height: 76px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skin-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  flex: 1;
  min-width: 0;
}

.skin-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
}

.skin-card-title {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.25;
  color: var(--color-text-primary);
}

.skin-card-desc {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  flex: 1;
  margin: 0;
}

.skin-card-req-row {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 0.42rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.skin-req-label {
  flex: 1;
  min-width: 120px;
}

.skin-req-progress {
  white-space: nowrap;
  font-weight: 700;
}

.skin-card-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  width: 100%;
}

/* Collapsible Cards (Accordion Panels for Mobile & Desktop) */
.collapsible-card > .collapsible-card-header {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  margin-bottom: 0.9rem;
  flex-wrap: nowrap;
  align-items: center;
}

.collapsible-card.collapsed > .collapsible-card-header {
  margin-bottom: 0;
}

.collapsible-card.collapsed > .collapsible-card-body {
  display: none !important;
}

.collapsible-header-right {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.collapsible-chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.collapsible-card-header:hover .collapsible-chevron {
  color: var(--color-text-primary);
  border-color: var(--brand-primary);
}

.collapsible-card:not(.collapsed) > .collapsible-card-header .collapsible-chevron {
  transform: rotate(180deg);
  background: rgba(59, 130, 246, 0.14);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.45);
}

.trophies-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.65rem;
}

.trophy-showcase-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trophy-showcase-card.trophy-gold {
  border-color: rgba(250, 204, 21, 0.35);
  background: var(--color-bg);
}

.trophy-showcase-card.trophy-silver {
  border-color: rgba(226, 232, 240, 0.25);
  background: var(--color-bg);
}

.trophy-showcase-card.trophy-bronze {
  border-color: rgba(251, 146, 60, 0.3);
  background: var(--color-bg);
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.achievement-badge-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.achievement-badge-card.unlocked {
  border-color: var(--color-border-strong);
}

.achievement-badge-card.locked {
  opacity: 0.55;
}

.student-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.student-dir-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.student-dir-card:hover {
  border-color: var(--brand-primary);
  background: var(--color-surface-elevated);
}

@media (max-width: 1024px) {
  .table-create-form {
    grid-template-columns: 1fr 1fr;
  }
  .admin-create-user-form {
    grid-template-columns: 1fr 1fr;
  }
  .admin-create-user-form button[type="submit"] {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (<= 820px)
   ========================================================================== */
@media (max-width: 820px) {
  /* Header & Navigation Bar */
  .top-header {
    padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 0.75rem 0.55rem;
    gap: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .brand-wrap {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .brand-flame {
    width: 32px;
    height: 32px;
    font-size: 0.88rem;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
  }

  .desktop-header-actions {
    display: none !important;
  }

  .mobile-header-actions {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Full-width Segmented Tab Bar */
  .nav-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
    gap: 0.2rem;
    padding: 0.22rem;
    overflow-x: visible;
  }

  .nav-tab {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.15rem;
    padding: 0.42rem 0.2rem;
    font-size: 0.72rem;
    text-align: center;
    min-height: 44px;
  }

  .tab-badge {
    font-size: 0.6rem;
    padding: 0.04rem 0.35rem;
  }

  /* Main Container & KPI Strip */
  .main-container {
    padding: 0.75rem 0.75rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
    gap: 0.75rem;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .profile-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-card {
    padding: 0.6rem 0.7rem;
    gap: 0.12rem;
    min-width: 0;
  }

  .kpi-label {
    font-size: 0.64rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-value {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-sub {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Cards & Grids */
  .card {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .card-header {
    margin-bottom: 0.7rem;
    gap: 0.5rem;
  }

  .card-title {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .card-subtitle {
    font-size: 0.75rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Touch-friendly Inputs & Buttons (16px prevents iOS Safari auto-zoom) */
  .input,
  select.input,
  textarea {
    font-size: 16px !important;
    min-height: 42px;
    padding: 0.5rem 0.7rem;
  }

  .btn {
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .btn-sm {
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }

  .btn-lg {
    min-height: 46px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    width: 100%;
  }

  /* Forms */
  .table-create-form,
  .admin-create-user-form {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .table-create-form .btn,
  .admin-create-user-form .btn {
    width: 100%;
    min-height: 44px;
  }

  /* Live Match Banner & Thumb-Ergonomic Scoreboard */
  .live-match-banner {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .scoreboard-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0.75rem 0;
  }

  .player-score-box {
    padding: 0.75rem 0.5rem;
    gap: 0.35rem;
    min-width: 0;
  }

  .player-score-name {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .player-sets-pill {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .player-points-big {
    font-size: 2.2rem;
    margin: 0.15rem 0;
  }

  .score-btn-group {
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }

  .score-plus-btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.85rem;
  }

  .score-minus-btn {
    width: 100%;
    min-height: 34px;
  }

  .scoreboard-center {
    grid-column: 1 / -1;
    order: 3;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .scoreboard-vs {
    display: none;
  }

  .scoreboard-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .scoreboard-referee-row {
    width: 100%;
    justify-content: space-between;
  }

  .scoreboard-referee-row select.input {
    flex: 1;
    min-width: 160px;
  }

  .scoreboard-report-form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
  }

  .scoreboard-report-form > div {
    justify-content: space-between;
    width: 100%;
  }

  .scoreboard-report-form button[type="submit"] {
    width: 100%;
    min-height: 44px;
  }

  /* Tables & Standings */
  .data-table {
    font-size: 0.78rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.48rem 0.55rem;
    white-space: nowrap;
  }

  /* Auth Lock Screen */
  .auth-lock-screen {
    align-items: flex-start;
    padding: calc(0.65rem + env(safe-area-inset-top, 0px)) 0.75rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .auth-lock-card {
    margin: 0 auto;
    padding: 1.05rem;
    gap: 0.7rem;
  }

  /* Bottom-Sheet Modals on Mobile */
  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 1.15rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    max-height: 88vh;
  }

  .skins-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .skin-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .skin-preview-box {
    width: 68px;
    height: 68px;
    margin-top: 0.1rem;
  }

  .skin-card-actions .btn {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .mobile-hide-kpi-bar {
    display: none !important;
  }

  .data-table .player-inline-chip .skin-rarity-pill {
    display: none;
  }

  .badges-grid,
  .trophies-row,
  .student-directory-grid,
  .soundboard-grid {
    grid-template-columns: 1fr;
  }

  /* Full-width Toasts on Mobile */
  .toast-container {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

@media (max-width: 420px) {
  .brand-subtitle {
    max-width: 140px;
  }

  .nav-tab {
    font-size: 0.68rem;
    padding: 0.38rem 0.12rem;
  }

  .profile-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.38rem;
  }

  .profile-kpi-grid .kpi-card {
    padding: 0.45rem 0.4rem;
  }

  .profile-kpi-grid .kpi-value {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   BIG-SCREEN KIOSK MODE (/kiosk) - RESPONSIVE FOR 4K TVs TO MOBILE
   ========================================================================== */

.kiosk-html,
.kiosk-body {
  background-color: #0b1020;
  color: #f1f5f9;
  background-image: url("/kiosk-arcade-bg.jpg?v=1");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

.kiosk-root {
  width: 100%;
  min-height: 100vh;
  background: transparent;
}

.kiosk-shell {
  width: 100%;
  max-width: 100vw;
  padding: 1.5rem;
  padding: clamp(0.85rem, 1.6vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  gap: clamp(0.85rem, 1.3vw, 1.6rem);
  background: transparent;
}

.kiosk-body .card,
.kiosk-panel,
.kiosk-kpi-card {
  background-color: #121724;
  background: rgba(15, 20, 32, 0.94);
  border: 1px solid #3a4660;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}

.kiosk-unlocked-bar {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.5);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.kiosk-header {
  background: linear-gradient(135deg, rgba(24, 30, 44, 0.96), rgba(14, 18, 27, 0.96));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 1.4vw, 1.6rem) clamp(1rem, 1.8vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.kiosk-brand-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kiosk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.72rem, 0.85vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-success);
  text-transform: uppercase;
}

.kiosk-title {
  font-size: clamp(1.35rem, 2.2vw, 2.6rem);
  font-weight: 900;
  margin: 0.1rem 0 0 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kiosk-header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.kiosk-clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1.2rem, 1.8vw, 2.1rem);
  font-weight: 800;
  color: var(--color-text-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.kiosk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.4rem);
}

.kiosk-kpi-card {
  background: rgba(22, 27, 38, 0.92);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: clamp(0.85rem, 1.2vw, 1.4rem) clamp(1rem, 1.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.kiosk-kpi-label {
  font-size: clamp(0.68rem, 0.78vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

.kiosk-kpi-value {
  font-size: clamp(1.45rem, 2.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
}

.kiosk-kpi-sub {
  font-size: clamp(0.74rem, 0.82vw, 0.92rem);
  color: var(--color-text-muted);
}

.kiosk-main-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.95fr;
  gap: clamp(0.85rem, 1.3vw, 1.6rem);
  align-items: start;
}

.kiosk-col {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 1.3vw, 1.6rem);
  min-width: 0;
}

.kiosk-panel {
  padding: clamp(1rem, 1.4vw, 1.65rem);
  background: rgba(20, 24, 34, 0.94);
  border: 1px solid var(--color-border-strong);
}

.kiosk-live-match-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(52, 211, 153, 0.48);
  border-radius: var(--radius-md);
  padding: clamp(0.85rem, 1.2vw, 1.35rem);
}

.kiosk-live-match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.kiosk-live-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: rgba(9, 12, 18, 0.75);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.kiosk-live-player {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.kiosk-live-player-right {
  justify-content: flex-end;
  text-align: right;
}

.kiosk-player-name {
  font-size: clamp(0.95rem, 1.15vw, 1.35rem);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kiosk-live-score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.kiosk-sets-score {
  font-size: clamp(1.6rem, 2.3vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.kiosk-points-pill {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93c5fd;
  font-weight: 800;
  font-size: clamp(0.78rem, 0.9vw, 1rem);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.kiosk-table-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.kiosk-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.kiosk-standings-table th,
.kiosk-standings-table td {
  padding: clamp(0.55rem, 0.8vw, 0.85rem) clamp(0.6rem, 0.9vw, 1rem);
  font-size: clamp(0.84rem, 0.95vw, 1.08rem);
}

.kiosk-result-row {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: clamp(0.84rem, 0.92vw, 1.02rem);
}

.kiosk-result-score-pill {
  background: var(--color-surface-hover);
  border: 1px solid var(--color-border-strong);
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.kiosk-empty-box {
  background: var(--color-bg);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.kiosk-password-modal {
  max-width: 460px;
}

@media (max-width: 1440px) {
  .kiosk-main-grid {
    grid-template-columns: 1fr 1.2fr;
  }
  .kiosk-main-grid > .kiosk-col:nth-child(3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .kiosk-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kiosk-main-grid {
    grid-template-columns: 1fr;
  }
  .kiosk-main-grid > .kiosk-col:nth-child(3) {
    grid-template-columns: 1fr;
  }
  .kiosk-podium-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kiosk-kpi-grid {
    grid-template-columns: 1fr;
  }
  .kiosk-live-scoreboard {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .kiosk-live-player,
  .kiosk-live-player-right {
    justify-content: center;
    text-align: center;
  }
}

/* Highlighted border around the current player's row in scoreboards */
.data-table tbody tr.row-self td {
  background: rgba(59, 130, 246, 0.13);
  border-top: 2px solid var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
}

.data-table tbody tr.row-self td:first-child {
  border-left: 3px solid var(--brand-primary);
}

.data-table tbody tr.row-self td:last-child {
  border-right: 2px solid var(--brand-primary);
}

/* Optimized horizontal + vertical scrolling for 200+ players in Past Tournament Modal */
.past-tour-table-scroll {
  max-height: 44vh;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}

.past-tour-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-surface);
  box-shadow: 0 1px 0 var(--color-border-strong);
}

.past-tour-matches-scroll {
  max-height: 34vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.25rem;
}

/* Tournament format rules list */
.format-rules-list {
  margin: 0.35rem 0 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  line-height: 1.42;
}

.format-rules-list li::marker {
  color: var(--color-info);
}

/* ============================================================================
   ANIMATED HOLO GOLD & MYTHIC GLITCH FRAMES (FOR TOP LEADER / 5+ & 7+ STREAKS)
   ============================================================================ */

@keyframes futHoloShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.frame-tier-gold_holo {
  position: relative;
  overflow: hidden;
  border: 2px solid #fbbf24 !important;
  box-shadow:
    0 0 18px rgba(251, 191, 36, 0.34),
    inset 0 0 14px rgba(251, 191, 36, 0.16) !important;
}

.frame-tier-gold_holo::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(253, 224, 71, 0.18) 46%,
    rgba(56, 189, 248, 0.14) 50%,
    rgba(244, 114, 182, 0.14) 54%,
    transparent 65%
  );
  background-size: 240% 240%;
  animation: futHoloShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes futGlitchPulse {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(236, 72, 153, 0.38),
      0 0 8px rgba(56, 189, 248, 0.34),
      inset 0 0 16px rgba(168, 85, 247, 0.22);
    border-color: #f43f5e;
  }
  50% {
    box-shadow:
      0 0 26px rgba(56, 189, 248, 0.44),
      0 0 10px rgba(250, 204, 21, 0.35),
      inset 0 0 20px rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
  }
}

.frame-tier-glitch_mythic {
  position: relative;
  overflow: hidden;
  border: 2px solid #f43f5e !important;
  animation: futGlitchPulse 3.2s infinite ease-in-out;
}

.frame-tier-glitch_mythic::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    120deg,
    transparent 32%,
    rgba(244, 63, 94, 0.18) 45%,
    rgba(56, 189, 248, 0.2) 50%,
    rgba(168, 85, 247, 0.18) 55%,
    transparent 68%
  );
  background-size: 230% 230%;
  animation: futHoloShimmer 3.2s linear infinite;
  pointer-events: none;
}

.hype-player-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 165px;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid var(--color-border-strong);
}

/* ============================================================================
   ON FIRE (3+ STREAK) & BOUNTY (7+ STREAK) INDICATORS
   ============================================================================ */

.streak-pill-fire {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fb923c;
  vertical-align: middle;
}

.streak-pill-bounty {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  color: #f43f5e;
  vertical-align: middle;
}

/* ============================================================================
   8-BIT WALK-ON & VICTORY SOUNDBOARD GRID
   ============================================================================ */

.soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 0.65rem;
}

.sound-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  transition: border-color 0.15s ease;
}

.sound-card.equipped {
  border-color: var(--brand-primary);
  background: rgba(59, 130, 246, 0.08);
}

.sound-card.locked {
  opacity: 0.62;
}

/* ============================================================================
   INFO & DOCUMENTATION HIERARCHY VIEW
   ============================================================================ */

.info-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.info-block {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.info-block-title {
  font-family: var(--font-header);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.info-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.info-list li strong {
  color: var(--color-text-primary);
}

@media (max-width: 820px) {
  .info-section-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   REACTIVE KIOSK & ARENA HYPE EVENT POP-UP MODAL
   ============================================================================ */

@keyframes hypeModalPop {
  0% {
    opacity: 0;
    transform: scale(0.84) translateY(18px);
  }
  65% {
    opacity: 1;
    transform: scale(1.03) translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hype-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 9, 18, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.hype-modal-card {
  position: relative;
  max-width: 720px;
  width: 100%;
  border-radius: 22px;
  padding: 1.5rem 1.65rem;
  background: linear-gradient(155deg, #131829 0%, #0b0e18 100%);
  border: 2px solid #fbbf24;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.8), 0 0 42px rgba(251, 191, 36, 0.28);
  text-align: center;
  animation: hypeModalPop 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  overflow: hidden;
}

.hype-modal-card.hype-type-arch_rival_clash {
  border-color: #f43f5e;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.85), 0 0 48px rgba(244, 63, 94, 0.36);
}

.hype-modal-card.hype-type-bounty_claimed,
.hype-modal-card.hype-type-new_bounty {
  border-color: #fbbf24;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.85), 0 0 52px rgba(251, 191, 36, 0.42);
}

.hype-modal-card.hype-type-fire_extinguished {
  border-color: #38bdf8;
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.85), 0 0 48px rgba(56, 189, 248, 0.38);
}

.hype-vs-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin: 1.1rem 0;
  flex-wrap: wrap;
}

.hype-vs-badge {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.6);
  flex-shrink: 0;
}

.hype-meme-banner {
  margin: 0.85rem auto 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px dashed rgba(251, 191, 36, 0.45);
  font-size: 0.95rem;
  font-weight: 800;
  font-style: italic;
  color: #fde68a;
}

/* ============================================================================
   BIG PLAY MODE SELECTION CARDS ("Turnering" / "Fritt spill")
   ============================================================================ */

.play-mode-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.play-mode-big-card {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  padding: 2rem 1.5rem;
  background: var(--color-bg);
  border: 2px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-family: var(--font-header);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease;
}

.play-mode-big-card:hover {
  border-color: var(--brand-primary);
  background: var(--color-surface-elevated);
  transform: translateY(-2px);
}

.play-mode-big-card:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .play-mode-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .play-mode-big-card {
    min-height: 125px;
    padding: 1.5rem 1.25rem;
    font-size: 1.65rem;
  }
}

/* ============================================================================
   KIOSK LIVE KANTINE-TICKER (SLIM BANNER)
   ============================================================================ */

.kiosk-live-ticker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.kiosk-ticker-label {
  font-family: var(--font-header);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-info);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.kiosk-ticker-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.kiosk-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-primary);
  animation: kioskTickerMarquee 36s linear infinite;
}

.kiosk-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.kiosk-ticker-sep {
  color: var(--color-text-muted);
  opacity: 0.7;
}

@keyframes kioskTickerMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================================================
   PWA STANDALONE INSTALL MODAL & TRIGGER
   ============================================================================ */
@media all and (display-mode: standalone) {
  .pwa-install-trigger {
    display: none !important;
  }
}

html.pwa-standalone .pwa-install-trigger {
  display: none !important;
}

.qr-scanner-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 340px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qr-scanner-reticle {
  position: absolute;
  width: 62%;
  height: 62%;
  border: 2px solid #009d4f;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.pwa-coach-step {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.pwa-coach-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-ios-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 0.1rem 0.38rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #60a5fa;
  vertical-align: middle;
}

/* ==========================================================================
   KLASSE-GUILDS, LAGKAMP & GUILD VAULT (/ROLL 1-100)
   ========================================================================== */

.guild-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(9, 13, 22, 0.98));
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  overflow: hidden;
}

.guild-class-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-header);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.guild-vault-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.guild-vault-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fde68a);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.guild-vault-chest-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.11), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.guild-vault-chest-card.resolved {
  background: var(--color-bg);
  border-color: var(--color-border-strong);
}

.guild-roll-dice-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.82rem;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fef08a;
}

/* ==========================================================================
   BOSS FIGHT / RAID BOSS MODE (LÆRER & ARRANGØR UTFORDRING)
   ========================================================================== */

.streak-pill-boss {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.44rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.38), rgba(146, 64, 14, 0.38));
  color: #fde047;
  border: 1px solid rgba(245, 158, 11, 0.65);
  text-transform: uppercase;
}

@keyframes bossRaidPulseGlow {
  0%, 100% {
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.48), inset 0 0 20px rgba(245, 158, 11, 0.14);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 0 52px rgba(239, 68, 68, 0.82), inset 0 0 32px rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
  }
}

@keyframes bossSirenBlink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    background: #fde047;
    box-shadow: 0 0 12px #fde047;
  }
  50% {
    opacity: 0.35;
    transform: scale(0.82);
    background: #ef4444;
    box-shadow: 0 0 14px #ef4444;
  }
}

.kiosk-shell.kiosk-boss-raid-active {
  box-shadow: inset 0 0 65px rgba(220, 38, 38, 0.22);
}

.kiosk-boss-raid-banner {
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.kiosk-boss-raid-row {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.94) 0%, rgba(24, 9, 16, 0.97) 52%, rgba(120, 53, 15, 0.92) 100%);
  border: 2.5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  animation: bossRaidPulseGlow 2.4s infinite ease-in-out;
}

.kiosk-boss-raid-left {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.kiosk-boss-raid-alarm-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: rgba(220, 38, 38, 0.9);
  border: 1px solid #fde047;
  color: #ffffff;
  font-family: var(--font-header);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-sm);
}

.kiosk-boss-siren-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fde047;
  animation: bossSirenBlink 1s infinite ease-in-out;
}

.kiosk-boss-raid-matchup {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.kiosk-boss-fighter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(10, 12, 18, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.9rem;
}

.kiosk-boss-fighter.kiosk-boss-target {
  border-color: rgba(245, 158, 11, 0.75);
  background: rgba(69, 10, 10, 0.65);
}

.kiosk-boss-role-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kiosk-boss-role-tag.challenger-tag {
  color: #93c5fd;
}

.kiosk-boss-role-tag.boss-tag {
  color: #fde047;
}

.kiosk-boss-fighter-name {
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
}

.kiosk-boss-fighter-name.boss-name-glow {
  color: #fde047;
  text-shadow: 0 0 14px rgba(245, 158, 11, 0.55);
}

.kiosk-boss-vs-badge {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 900;
  color: #fde047;
  background: rgba(220, 38, 38, 0.85);
  border: 2px solid #fde047;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.65);
}

.kiosk-boss-raid-perks {
  font-size: 0.86rem;
  color: #fecaca;
  font-weight: 600;
}

.kiosk-boss-raid-scorebox {
  background: rgba(9, 12, 18, 0.9);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.35rem;
  text-align: center;
  min-width: 210px;
}

.kiosk-boss-score-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fde047;
}

.kiosk-boss-score-sets {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin: 0.15rem 0;
}

.kiosk-boss-score-sets span {
  opacity: 0.5;
}

.kiosk-boss-score-points {
  font-size: 0.85rem;
  color: #fca5a5;
}

.kiosk-boss-fight-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-header);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fde047;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.88), rgba(146, 64, 14, 0.88));
  border: 1.5px solid #fde047;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

.kiosk-live-match-card.kiosk-live-match-boss {
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, rgba(69, 10, 10, 0.55), rgba(17, 24, 39, 0.94));
  animation: bossRaidPulseGlow 2.8s infinite ease-in-out;
}
