:root {
  --theme-primary-name: "WLTS Premium Gold";
  --theme-primary-share: 45%;
  --theme-primary: #d4af37;

  --theme-secondary-name: "WLTS Black";
  --theme-secondary-share: 35%;
  --theme-secondary: #000000;

  --theme-neutral-name: "WLTS White";
  --theme-neutral-share: 12%;
  --theme-neutral: #ffffff;

  --theme-support-name: "WLTS Silver";
  --theme-support-share: 8%;
  --theme-support: #c0c0c0;

  --gold-premium: #d4af37;
  --gold-accent: #b8860b;
  --silver-premium: #c0c0c0;
  --page-bg-start: #050505;
  --page-bg-end: #000000;
  --page-grid: rgba(212, 175, 55, 0.12);
  --text-primary: #ffffff;
  --text-secondary: #d7d7d7;
  --text-inverse: #000000;
  --surface-primary: #050505;
  --surface-secondary: #101010;
  --surface-tertiary: #181818;
  --border-soft: rgba(212, 175, 55, 0.32);
  --border-strong: rgba(212, 175, 55, 0.62);
  --sidebar-bg: rgba(0, 0, 0, 0.96);
  --sidebar-border: rgba(212, 175, 55, 0.38);
  --menu-bg: rgba(255, 255, 255, 0.04);
  --menu-text: #ffffff;
  --menu-hover: rgba(212, 175, 55, 0.16);
  --menu-active-bg: #d4af37;
  --menu-active-border: #f0d675;
  --button-bg: #d4af37;
  --button-bg-hover: #f0d675;
  --button-text: #000000;
  --button-shadow: rgba(212, 175, 55, 0.28);
  --link-color: #d4af37;
  --link-hover: #ffffff;
  --link-underline: rgba(212, 175, 55, 0.52);
  --card-bg: #050505;
  --card-surface-top: #101010;
  --card-surface-bottom: #000000;
  --card-border: rgba(212, 175, 55, 0.42);
  --card-shadow: rgba(0, 0, 0, 0.7);
  --card-text: #ffffff;
  --card-text-heading: #d4af37;
  --card-text-muted: #e6e6e6;
  --hero-accent: #d4af37;
  --hero-shadow: rgba(212, 175, 55, 0.58);
  --hero-glow: rgba(184, 134, 11, 0.42);
  --table-top: #d4af37;
  --table-bottom: #8f6508;
  --ball-bg: #d4af37;
  --ball-text: #000000;
  --focus-ring: rgba(240, 214, 117, 0.72);
}

body {
  color: var(--text-primary);
  background:
    linear-gradient(115deg, transparent 0 17%, rgba(212, 175, 55, 0.07) 17.2% 18.4%, transparent 18.6% 100%),
    linear-gradient(145deg, rgba(192, 192, 192, 0.07) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 16% 12%, rgba(212, 175, 55, 0.18) 0%, transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(184, 134, 11, 0.16) 0%, transparent 32%),
    linear-gradient(145deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
  background-size: auto, 34px 34px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(112deg, transparent 0 68px, rgba(212, 175, 55, 0.08) 69px, transparent 71px),
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
  opacity: 0.48;
}

.coming-soon {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.16) 0%, transparent 58%);
}

.fog-logo::after {
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.14), rgba(0, 0, 0, 0.82) 70%);
}

.hero-text {
  color: var(--hero-accent);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.96), 0 0 18px var(--hero-shadow), 0 0 40px var(--hero-glow);
}

.hero-text::before {
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.34) 0%, rgba(184, 134, 11, 0.2) 42%, transparent 76%);
}

.ping-table::before {
  background: linear-gradient(180deg, var(--table-top) 0%, var(--table-bottom) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 -1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 24px rgba(0, 0, 0, 0.42);
}

#bouncing-ball {
  background-color: var(--ball-bg);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.78), 0 0 24px rgba(184, 134, 11, 0.44);
}

#bouncing-ball::after {
  color: var(--ball-text);
}

.app-shell {
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, #070707 0%, #000000 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.sidebar {
  border-right: 1px solid var(--sidebar-border);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 22%),
    linear-gradient(180deg, #070707 0%, #000000 100%);
  color: var(--menu-text);
}

.brand-logo {
  border: 0;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.18), 0 18px 34px rgba(0, 0, 0, 0.48);
  filter: contrast(1.08) brightness(1.05) saturate(1.08);
}

.brand-sub {
  color: var(--silver-premium);
}

.menu {
  gap: 10px;
}

.menu-toggle,
.menu-item,
.menu-subitem,
.theme-button,
button:not(.menu-toggle):not(.menu-item):not(.menu-subitem) {
  border: 1px solid rgba(212, 175, 55, 0.34);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.24) 100%);
  color: var(--menu-text);
  border-radius: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.menu-toggle,
.business-router-link,
.business-standalone-link,
button[type="submit"],
.contact-form button,
.declaration-form button {
  background: linear-gradient(135deg, var(--gold-premium) 0%, #f0d675 45%, var(--gold-accent) 100%);
  border-color: rgba(240, 214, 117, 0.78);
  color: #000000;
  box-shadow: 0 16px 32px rgba(212, 175, 55, 0.28);
}

.menu-toggle:hover,
.menu-toggle:focus-visible,
.business-router-link:hover,
.business-router-link:focus-visible,
.business-standalone-link:hover,
.business-standalone-link:focus-visible,
button[type="submit"]:hover,
.contact-form button:hover,
.declaration-form button:hover {
  background: linear-gradient(135deg, #f7df83 0%, var(--gold-premium) 52%, #f0d675 100%);
  color: #000000;
  box-shadow: 0 20px 42px rgba(212, 175, 55, 0.42);
}

.menu-item:hover,
.menu-subitem:hover,
.theme-button:hover,
button:not(.menu-toggle):not(.menu-item):not(.menu-subitem):hover {
  transform: translateX(3px);
  background: rgba(212, 175, 55, 0.16);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.menu-item.is-active,
.menu-subitem.is-active,
.theme-option.is-active {
  background: linear-gradient(135deg, var(--gold-premium) 0%, #f0d675 50%, var(--gold-accent) 100%);
  border-color: #f0d675;
  color: #000000;
}

.menu-group-icon::before,
.menu-group-icon::after,
.menu-toggle-icon span {
  background: currentColor;
}

.menu-subitem {
  margin-left: 12px;
  width: calc(100% - 12px);
}

.menu-toggle:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.content {
  color: var(--text-primary);
}

.view,
.theme-card,
.business-router-card,
.business-stat-card,
.business-panel,
.business-placeholder-card,
.business-state,
.friend-card,
.friends-showcase,
.contact-panel,
.declaration-info-card,
.declaration-form,
.tournament-result-stat {
  border-color: var(--card-border);
  background:
    linear-gradient(128deg, rgba(212, 175, 55, 0.1) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, var(--card-surface-top) 0%, var(--card-surface-bottom) 100%) !important;
  color: var(--card-text);
  box-shadow: 0 22px 48px var(--card-shadow), 0 0 0 1px rgba(212, 175, 55, 0.06) inset;
}

.view h1,
.view h2,
.view h3,
.view h4,
.theme-card h2,
.theme-card h3,
.business-panel-heading h2,
.business-panel-heading h3,
.business-placeholder-card h2,
.friends-showcase h3,
.friend-card h4,
.tournament-result-hero h1,
.tournament-result-table-card h2 {
  color: var(--gold-premium);
  text-shadow: 0 0 16px rgba(212, 175, 55, 0.16);
}

.view p,
.view li,
.theme-card p,
.theme-card li,
.business-panel p,
.business-placeholder-card p,
.business-state span,
.contact-lead,
.contact-form label,
.declaration-form label {
  color: var(--card-text-muted);
}

.business-router-kicker,
.business-stat-label,
.friend-card-type,
.tournament-result-stat span,
.contact-form h3,
.declaration-form h3 {
  color: var(--gold-premium);
}

.business-stat-value,
.tournament-result-stat strong,
.business-leader-name,
.business-latest-result-score {
  color: #ffffff;
}

a {
  color: var(--link-color);
  text-decoration-color: var(--link-underline);
}

a:hover,
.view a:hover,
.theme-card a:hover {
  color: var(--link-hover);
  text-decoration-color: var(--gold-premium);
}

.view a,
.theme-card a {
  /*color: var(--gold-premium);*/
  color: var(--ball-text);
}

.business-table-wrap,
.tournament-result-table-wrap {
  border-color: rgba(212, 175, 55, 0.52);
  background: #000000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
}

.business-data-table,
.tournament-result-table,
.business-match-table {
  background: #000000;
  color: #ffffff;
}

.business-data-table th,
.business-match-table thead th,
.tournament-result-table th {
  background: linear-gradient(135deg, var(--gold-premium) 0%, #f0d675 48%, var(--gold-accent) 100%);
  border-bottom-color: rgba(212, 175, 55, 0.72);
  color: #000000;
}

.business-data-table td,
.business-match-table td,
.tournament-result-table td {
  border-bottom-color: rgba(212, 175, 55, 0.2);
  color: #ffffff;
}

.business-data-table tbody tr:nth-child(odd),
.business-match-table tbody tr.business-match-row.is-odd td {
  background: rgba(255, 255, 255, 0.035);
}

.business-data-table tbody tr:nth-child(even),
.business-match-table tbody tr.business-match-row.is-even td {
  background: rgba(212, 175, 55, 0.08);
}

.business-data-table tbody tr:hover,
.business-match-table tbody tr.business-match-row:hover td,
.tournament-result-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.18);
}

.tournament-result-table tbody tr.is-podium {
  background: rgba(212, 175, 55, 0.22);
}

.business-latest-result-box,
.business-team-avatar--fallback,
.tournament-result-meta span {
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
}

input,
textarea,
select,
.contact-form input,
.contact-form textarea,
.declaration-form input,
.declaration-form textarea,
.declaration-form select {
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  caret-color: var(--gold-premium);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold-premium);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
}

.contact-form-status,
.declaration-success-modal-panel {
  border-color: rgba(212, 175, 55, 0.42);
  background: #080808;
  color: #ffffff;
}

.contact-map-embed,
.contact-map-embed iframe {
  border-color: rgba(212, 175, 55, 0.42);
}

footer,
.footer,
.page-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.34);
  background: #000000;
  color: var(--silver-premium);
}

@media (max-width: 920px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-border);
  }
}

@media (max-width: 780px) {
  .business-router-link,
  .business-standalone-link {
    width: 100%;
  }

  .tournament-result-actions {
    flex-direction: column;
  }
}
