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

:root {
  /* ==========================================
     WORLD-CLASS ROYAL OLYMPIC NEUMORPHISM (SOFT UI) 2026
     ========================================== */
  --neu-bg: #e6edf5;
  --neu-surface: #e6edf5;
  --neu-shadow-dark: #c2cfde;
  --neu-shadow-light: #ffffff;
  --neu-border: rgba(255, 255, 255, 0.75);
  --neu-border-inset: rgba(180, 195, 212, 0.55);
  
  --neu-shadow-raised: 9px 9px 20px var(--neu-shadow-dark), -9px -9px 20px var(--neu-shadow-light);
  --neu-shadow-raised-sm: 5px 5px 12px var(--neu-shadow-dark), -5px -5px 12px var(--neu-shadow-light);
  --neu-shadow-inset: inset 5px 5px 12px var(--neu-shadow-dark), inset -5px -5px 12px var(--neu-shadow-light);
  --neu-shadow-gold: 6px 6px 14px var(--neu-shadow-dark), -6px -6px 14px var(--neu-shadow-light), 0 4px 18px rgba(217, 119, 6, 0.35);
  --neu-shadow-emerald: 6px 6px 14px var(--neu-shadow-dark), -6px -6px 14px var(--neu-shadow-light), 0 4px 18px rgba(5, 150, 105, 0.35);
  
  --bg-main: var(--neu-bg);
  --bg-secondary: var(--neu-surface);
  --bg-card: var(--neu-surface);
  --bg-card-hover: var(--neu-surface);
  --bg-input: var(--neu-surface);
  
  --emerald-primary: #059669;
  --emerald-dark: #047857;
  --emerald-light: #10b981;
  
  --gold-primary: #b48303;
  --gold-light: #d97706;
  --gold-dark: #92400e;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 45%, #b48303 100%);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  --blue-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  
  --amber-accent: #d97706;
  --crimson-accent: #e11d48;
  --blue-accent: #0284c7;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --border-color: #cbd5e1;
  --border-light: #94a3b8;
  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: var(--neu-shadow-raised-sm);
  --shadow-md: var(--neu-shadow-raised);
  --shadow-gold: var(--neu-shadow-gold);
}

/* Midnight Obsidian Neumorphism Theme */
[data-theme="dark"] {
  --neu-bg: #111723;
  --neu-surface: #111723;
  --neu-shadow-dark: #090c13;
  --neu-shadow-light: #192233;
  --neu-border: rgba(255, 255, 255, 0.08);
  --neu-border-inset: rgba(0, 0, 0, 0.5);
  --bg-main: var(--neu-bg);
  --bg-secondary: var(--neu-surface);
  --bg-card: var(--neu-surface);
  --bg-input: var(--neu-surface);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #1e293b;
  --border-light: #334155;
}

/* Royal Emerald Neumorphism Theme */
[data-theme="emerald"] {
  --neu-bg: #e0f2eb;
  --neu-surface: #e0f2eb;
  --neu-shadow-dark: #b8d4c8;
  --neu-shadow-light: #ffffff;
  --neu-border: rgba(255, 255, 255, 0.85);
  --neu-border-inset: rgba(167, 243, 208, 0.65);
  --bg-main: var(--neu-bg);
  --bg-secondary: var(--neu-surface);
  --bg-card: var(--neu-surface);
  --text-primary: #064e3b;
  --text-secondary: #047857;
  --border-color: #a7f3d0;
}

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

::selection {
  background: rgba(217, 119, 6, 0.22);
  color: var(--text-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 45%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* Neo-Modern Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.text-emerald {
  color: var(--emerald-primary);
  font-weight: 700;
}

/* ==========================================
   NEUMORPHIC SOFT UI CARDS
========================================== */
.glass-card {
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow-raised);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-light);
  box-shadow: 14px 14px 28px var(--neu-shadow-dark), -14px -14px 28px var(--neu-shadow-light);
  transform: translateY(-3px);
}

/* ==========================================
   STICKY NEUMORPHIC SOFT NAVBAR
========================================== */
.glass-nav {
  background: var(--neu-surface);
  border-bottom: 1px solid var(--neu-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 16px -4px var(--neu-shadow-dark);
  transition: all 0.3s ease;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  background: var(--gold-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: var(--neu-shadow-raised-sm), 0 0 15px rgba(217, 119, 6, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-icon {
  transform: rotate(10deg) scale(1.08);
}

.brand-text h3 {
  font-size: 1.28rem;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.45rem 0.3rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

/* ==========================================
   NEUMORPHIC SOFT UI BUTTONS (RAISED -> INSET PRESSED)
========================================== */
.btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 0.78rem 1.75rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  box-shadow: var(--neu-shadow-raised-sm);
  color: var(--text-primary);
  outline: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-light);
  box-shadow: 7px 7px 16px var(--neu-shadow-dark), -7px -7px 16px var(--neu-shadow-light);
}

/* Inset Soft Press State on Click or Touch */
.btn:active, .btn.neu-pressed {
  background: var(--neu-surface) !important;
  box-shadow: var(--neu-shadow-inset) !important;
  border-color: var(--neu-border-inset) !important;
  transform: translateY(2px) scale(0.98) !important;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  border: none;
  box-shadow: var(--neu-shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 18px var(--neu-shadow-dark), -8px -8px 18px var(--neu-shadow-light), 0 6px 22px rgba(217, 119, 6, 0.45);
  filter: brightness(1.05);
}

.btn-gold:active, .btn-gold.neu-pressed {
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.45), inset -4px -4px 10px rgba(255, 255, 255, 0.25) !important;
  filter: brightness(0.96);
  color: #ffffff !important;
}

.btn-emerald {
  background: var(--emerald-gradient);
  color: #ffffff;
  border: none;
  box-shadow: var(--neu-shadow-emerald);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 8px 8px 18px var(--neu-shadow-dark), -8px -8px 18px var(--neu-shadow-light), 0 6px 22px rgba(5, 150, 105, 0.45);
  filter: brightness(1.05);
}

.btn-emerald:active, .btn-emerald.neu-pressed {
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.45), inset -4px -4px 10px rgba(255, 255, 255, 0.25) !important;
  filter: brightness(0.96);
  color: #ffffff !important;
}

.btn-outline {
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  color: var(--text-primary);
  box-shadow: var(--neu-shadow-raised-sm);
}

.btn-outline:hover {
  background: var(--neu-surface);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 6px 6px 14px var(--neu-shadow-dark), -6px -6px 14px var(--neu-shadow-light);
}

.btn-outline:active, .btn-outline.neu-pressed {
  box-shadow: var(--neu-shadow-inset) !important;
  transform: translateY(2px) scale(0.98) !important;
}

.btn-sm {
  padding: 0.45rem 1.1rem;
  min-height: 38px;
  font-size: 0.86rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.05rem 2.5rem;
  font-size: 1.1rem;
  min-height: 56px;
}

/* ==========================================
   HERO SECTION & NEUMORPHIC COUNTDOWN BOX
========================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  padding: 0.55rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--neu-shadow-raised-sm);
}

.hero h1 {
  font-size: clamp(2.3rem, 5.8vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.12;
  text-shadow: 0 4px 30px rgba(217, 119, 6, 0.18);
}

.hero-subtitle {
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-weight: 500;
}

.countdown-box {
  display: inline-flex;
  gap: 1.4rem;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  padding: 1.45rem 2.8rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow-raised);
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 76px;
  background: var(--neu-surface);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-shadow-inset);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timer-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold-primary);
  line-height: 1;
}

.timer-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-top: 0.45rem;
}

.timer-separator {
  font-size: 2.2rem;
  color: var(--border-color);
  font-weight: 300;
  align-self: center;
  margin-top: -16px;
}

.belokanan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  box-shadow: var(--neu-shadow-raised-sm);
  letter-spacing: 0.3px;
}

.belokanan-badge strong {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* ==========================================
   SECTIONS, TABS & RESPONSIVE GRIDS
========================================== */
}

/* ==========================================
   SECTIONS, TABS & RESPONSIVE GRIDS
========================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  margin-bottom: 0.65rem;
  font-weight: 900;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
}

.tabs-container {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.tab-btn {
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  color: var(--text-secondary);
  padding: 0.75rem 1.6rem;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 46px;
  box-shadow: var(--neu-shadow-raised-sm);
}

.tab-btn:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--neu-shadow-raised);
}

.tab-btn.active {
  background: var(--gold-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 800;
  box-shadow: var(--neu-shadow-gold);
}

.tab-pane { display: none; }
.tab-pane.active {
  display: block;
  animation: neoFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes neoFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .navbar { flex-direction: column; align-items: stretch; text-align: center; }
  .brand { justify-content: center; }
  .nav-links { justify-content: center; gap: 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .countdown-box { gap: 0.6rem; padding: 1.1rem 1.35rem; }
  .timer-val { font-size: 1.9rem; }
  .timer-item { min-width: 58px; }
  .btn-lg { width: 100%; }
}

/* ==========================================
   NEUMORPHIC FORMS, CONTROLS (INSET PRESSED) & WIZARD
========================================== */
.form-group {
  margin-bottom: 1.4rem;
  text-align: left;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.48rem;
  color: var(--text-primary);
}

/* Form Controls Sink Into the Background (Inset Soft Shadow) */
.form-control {
  width: 100%;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border-inset);
  border-radius: var(--radius-md);
  padding: 0.88rem 1.2rem;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  min-height: 50px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--neu-shadow-inset);
}

.form-control:focus {
  border-color: var(--gold-primary);
  background: var(--neu-surface);
  box-shadow: var(--neu-shadow-inset), 0 0 0 3px rgba(217, 119, 6, 0.22);
}

select.form-control { cursor: pointer; }

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.75rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--neu-shadow-dark);
  box-shadow: var(--neu-shadow-inset);
  z-index: 1;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neu-surface);
  border: 2px solid var(--neu-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 0.48rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--neu-shadow-raised-sm);
}

.wizard-step.active .step-circle {
  background: var(--gold-gradient);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: var(--neu-shadow-gold);
  transform: scale(1.1);
}

.wizard-step.completed .step-circle {
  background: var(--emerald-primary);
  border-color: var(--emerald-primary);
  color: #ffffff;
  box-shadow: var(--neu-shadow-emerald);
}

.step-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.2s ease;
}

.wizard-step.active .step-title {
  color: var(--gold-primary);
  font-weight: 700;
}

/* ==========================================
   NEUMORPHIC SOFT TABLES
========================================== */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--neu-border);
  background: var(--neu-surface);
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--neu-shadow-raised);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 680px;
}

th {
  background: var(--neu-surface);
  padding: 1.05rem 1.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.85px;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.94rem;
  color: var(--text-primary);
}

tr:hover td {
  background: rgba(217, 119, 6, 0.05);
}

/* ==========================================
   BADGES, PILLS & NEUMORPHIC ID CARDS
========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--neu-surface);
  box-shadow: var(--neu-shadow-raised-sm);
  border: 1px solid var(--neu-border);
}

.badge-gold {
  color: var(--gold-primary);
  border-color: rgba(217, 119, 6, 0.4);
}

.badge-emerald {
  color: var(--emerald-primary);
  border-color: rgba(5, 150, 105, 0.4);
}

.badge-crimson {
  color: var(--crimson-accent);
  border-color: rgba(225, 29, 72, 0.4);
}

.badge-amber {
  color: var(--amber-accent);
  border-color: rgba(217, 119, 6, 0.4);
}

/* 3D Holographic Participant ID Card */
.id-card, #digital-id-card {
  width: 100%;
  max-width: 440px;
  background: var(--neu-surface);
  border: 2px solid var(--neu-border);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: var(--neu-shadow-raised);
  margin: 0 auto;
  position: relative;
  transition: box-shadow 0.3s ease;
}

#digital-id-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(217,119,6,0.25) 30%, rgba(5,150,105,0.2) 70%, rgba(255,255,255,0.6) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: overlay;
}

#digital-id-card:hover::before {
  opacity: 1;
}

.id-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.1rem;
  margin-bottom: 1.45rem;
}

/* ==========================================
   ARCHERY SCORING TERMINAL & NEUMORPHIC STOPWATCH
========================================== */
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
  margin-top: 0.9rem;
}

@media (max-width: 600px) {
  .scoring-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Keypad Score Buttons: Raised Neumorphism -> Inset when clicked */
.score-btn {
  min-height: 56px;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--neu-shadow-raised-sm);
}

.score-btn:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 14px var(--neu-shadow-dark), -6px -6px 14px var(--neu-shadow-light);
}

.score-btn:active, .score-btn.neu-pressed {
  background: var(--neu-surface) !important;
  box-shadow: var(--neu-shadow-inset) !important;
  border-color: var(--neu-border-inset) !important;
  transform: scale(0.96) !important;
}

.score-btn.btn-x, .score-btn.btn-10 {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: var(--neu-shadow-gold);
}

.score-btn.btn-m {
  color: var(--crimson-accent);
  border-color: rgba(225, 29, 72, 0.4);
}

/* Stopwatch Display Sunk Softly Into the Surface */
.stopwatch-display {
  font-family: 'Outfit', monospace;
  font-size: clamp(2.6rem, 6.8vw, 4.2rem);
  font-weight: 900;
  color: var(--emerald-primary);
  text-align: center;
  background: var(--neu-surface);
  border: 1px solid var(--neu-border-inset);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin: 0.9rem 0 1.6rem;
  letter-spacing: 3px;
  box-shadow: var(--neu-shadow-inset);
}

/* ==========================================
   BRACKETS, TOASTS & SHOOTING IMPACT
========================================== */
.bracket-wrapper {
  display: flex;
  gap: 2.35rem;
  overflow-x: auto;
  padding: 1.85rem 0;
  min-height: 440px;
  -webkit-overflow-scrolling: touch;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  min-width: 265px;
}

.match-card {
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  margin: 0.9rem 0;
  box-shadow: var(--neu-shadow-raised-sm);
}

.match-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin: 0.28rem 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.match-player.winner {
  background: rgba(217, 119, 6, 0.12);
  color: var(--gold-primary);
  font-weight: 800;
  border-left: 4px solid var(--gold-primary);
}

.match-score {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  background: var(--neu-surface);
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--neu-border-inset);
  box-shadow: var(--neu-shadow-inset);
  color: var(--text-primary);
}

.neo-footer {
  background: var(--neu-surface);
  border-top: 1px solid var(--neu-border);
  padding: 3.25rem 0 2.25rem;
  margin-top: 4.5rem;
  text-align: center;
  color: var(--text-secondary);
}

.toast-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 90vw;
}

.toast {
  background: var(--neu-surface);
  border: 1px solid var(--neu-border);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.45rem;
  color: var(--text-primary);
  box-shadow: var(--neu-shadow-raised);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: 0.95rem;
  font-weight: 700;
}

.toast.success { border-left-color: var(--emerald-primary); }
.toast.error { border-left-color: var(--crimson-accent); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.impact-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  font-size: 1.6rem;
  animation: sparkBurst3D 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes sparkBurst3D {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  50% { transform: translate(-50%, -100%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%, -160%) scale(0.2); opacity: 0; }
}

.digit-flip-3d {
  display: inline-block;
  animation: fadeInDigit 0.3s ease-out;
}

@keyframes fadeInDigit {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   FORMAL PRINT & PDF ENGINE STYLES
========================================== */
@media print {
  body {
    background: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  
  .glass-nav, .hero, .countdown-box, .tabs-container, .btn, .toast-container {
    display: none !important;
  }

  #formal-print-area {
    display: block !important;
    position: relative !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  
  .print-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  
  .print-table th, .print-table td {
    border: 1px solid #000000 !important;
    padding: 6px 8px !important;
    color: #000000 !important;
  }
}
