.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--border);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0;
}

.header-left {
  flex: 0 0 auto;
  padding-left: 24px;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-radius: var(--radius-sm);
}

.brand-logo img {
  height: 32px;
  max-height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: var(--muted);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  transition: var(--transition);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  position: relative;
  height: 36px;
  white-space: nowrap;
  text-decoration: none;
  justify-content: center;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav-link:hover .nav-icon,
.nav-link.is-active .nav-icon {
  color: var(--text);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-gradient);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: 200ms ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Red Login Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #FF2D2D;
  color: white;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 200ms ease;
  border: none;
  cursor: pointer;
  height: 36px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #ff4545;
  box-shadow: 0 0 0 3px rgba(255,45,45,.15), 0 10px 24px rgba(255,45,45,.18);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0px);
  box-shadow: 0 0 0 3px rgba(255,45,45,.25), 0 5px 15px rgba(255,45,45,.25);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 45, 0.25);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
  transition: var(--transition);
}

.pill--muted {
  font-size: 12px;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.08);
}

.pill strong {
  color: var(--text);
}

.pill:hover {
  border-color: rgba(255, 45, 45, 0.45);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  background: var(--primary-gradient);
  color: #050505;
  transition: var(--transition);
  cursor: pointer;
}

.btn-strong {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.btn-start-playing {
  position: relative;
  box-shadow: 0 0 0 rgba(255, 45, 45, 0.0);
}

.btn-start-playing:hover {
  box-shadow: 0 0 18px rgba(255, 45, 45, 0.45), 0 6px 16px rgba(0, 0, 0, 0.32);
  filter: brightness(1.06);
}

.btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 45, 45, 0.3);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  height: 40px;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: var(--transition);
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: var(--text);
  border-color: rgba(255, 45, 45, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-gradient);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: 200ms ease;
}

.btn-ghost:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn:active {
  transform: translateY(1px);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.profile-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.theme-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.hero {
  padding: 96px 0 56px;
}


.heroRow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  justify-items: center;
  padding: 2rem 0;
}

.heroLogoCol {
  width: 100%;
  display: flex;
  justify-content: center;
}

.heroLogo {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 240px;
}

.heroCardCol {
  width: 100%;
  max-width: 640px;
}

@media (min-width: 768px) {
  .heroRow {
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 56px;
    justify-items: start;
  }

  .heroLogoCol {
    justify-content: center;
  }

  .heroLogo {
    max-width: 420px;
  }

  .heroCardCol {
    justify-self: start;
  }
}

@media (min-width: 1024px) {
  .heroRow {
    gap: 64px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .heroLogo {
    max-width: 320px;
  }
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 45, 45, 0.4);
  box-shadow: 0 0 24px rgba(255, 45, 45, 0.25);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 10px 0 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-brand {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
  padding: 12px 0 18px;
  flex: 1 1 380px;
}

.hero-featured {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0.2;
  mix-blend-mode: screen;
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.04) 40%);
  transform: translateX(-120%);
  animation: shimmer 1.8s ease-in-out infinite;
  z-index: 0;
}

.shimmer img {
  position: relative;
  z-index: 1;
}

@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.coin-burst::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 78%, rgba(255, 215, 0, 0.55) 0 10%, transparent 32%),
    radial-gradient(circle at 48% 85%, rgba(255, 170, 45, 0.45) 0 9%, transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(255, 230, 120, 0.55) 0 11%, transparent 32%),
    radial-gradient(circle at 32% 92%, rgba(255, 245, 180, 0.35) 0 8%, transparent 26%),
    radial-gradient(circle at 62% 94%, rgba(255, 200, 90, 0.38) 0 9%, transparent 28%);
  opacity: 0;
  animation: coinRise 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes coinRise {
  0% { transform: translateY(12px) scale(0.95); opacity: 0; }
  18% { opacity: 0.55; }
  45% { transform: translateY(-12px) scale(1.02); opacity: 0.42; }
  70% { transform: translateY(-22px) scale(1); opacity: 0.22; }
  100% { transform: translateY(-26px) scale(0.98); opacity: 0; }
}

.coin-burst::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 115, 70, 0.24), transparent 42%);
  filter: blur(10px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-card:hover .media-frame img {
  transform: scale(1.03);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  margin: 16px 0 12px;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-actions .btn,
.hero-actions .btn-secondary,
.hero-actions .btn-ghost {
  min-width: 160px;
}

.hero-emblem {
  width: 72px;
  height: auto;
  margin-bottom: 12px;
}

.featured-card {
  align-self: center;
  box-shadow: 0 18px 40px rgba(255, 45, 45, 0.25), 0 24px 40px rgba(0, 0, 0, 0.45);
}

.featured-badges {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.badge-hot {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 45, 45, 0.18);
  border: 1px solid rgba(255, 45, 45, 0.45);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 40px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.top-game {
  min-width: 240px;
  scroll-snap-align: start;
}

.top-game img {
  width: 100%;
  height: 140px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.top-game .media-frame {
  margin-bottom: 12px;
}

.ticker {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
}

.ticker div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.ticker div::before {
  content: "●";
  background: var(--primary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 10px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
  align-items: center;
}

.category-tab {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  height: auto;
  flex-shrink: 0;
}

.category-tab:hover {
  color: var(--text);
  border-color: rgba(255, 45, 45, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(255, 45, 45, 0.15);
}

.category-tab.is-active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.category-tab.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-gradient);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
}

.game-card:hover {
  box-shadow: 0 0 22px rgba(255, 45, 45, 0.25), 0 24px 40px rgba(0, 0, 0, 0.45);
}

.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-gradient);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 1;
}

.game-card:hover::after {
  opacity: 0.22;
}

.game-card:hover img {
  transform: scale(1.04);
}

.game-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.game-card img,
.game-info {
  position: relative;
  z-index: 2;
}

.game-info {
  padding: 14px;
}

.game-meta {
  font-size: 13px;
  color: var(--muted);
}

.badge-demo {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 45, 45, 0.5), rgba(176, 0, 0, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}

.game-cta {
  position: absolute;
  inset: auto 12px 12px auto;
  opacity: 0;
  transform: translateY(6px);
  transition: var(--transition);
  z-index: 2;
}

.game-card:hover .game-cta {
  opacity: 1;
  transform: translateY(0);
}

.play-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition);
  z-index: 2;
}

.game-card:hover .play-icon {
  opacity: 1;
  transform: scale(1);
}

.play-icon svg {
  width: 16px;
  height: 16px;
  color: #050505;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 60px;
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer .legal {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid rgba(255, 45, 45, 0.6);
  outline-offset: 2px;
}

.socials svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  color: var(--muted);
}

.trust-badge strong {
  color: var(--text);
}

.age-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.fade-in {
  animation: fadeUp 220ms ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 60%;
  border-radius: 999px;
  background: var(--primary-gradient);
}

.modal-open {
  overflow: hidden;
}

.tournaments-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.tournaments-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.tournaments-panel {
  position: relative;
  width: min(900px, 92vw);
  max-height: 82vh;
  overflow: auto;
  background: rgba(10, 12, 15, 0.96);
  border: 1px solid rgba(255, 45, 45, 0.35);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 45, 45, 0.12);
}

.tournaments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.tournaments-title {
  margin: 0;
  font-size: 22px;
}

.tournaments-sub {
  color: var(--muted);
  font-size: 13px;
}

.tournaments-close {
  border: 1px solid rgba(255, 45, 45, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.tournaments-close:hover {
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.3);
  transform: translateY(-1px);
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tournament-weekend {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.tournament-weekend-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.tournament-date {
  display: grid;
  gap: 10px;
}

.tournament-weekend .tournament-date + .tournament-date {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tournament-date-title {
  font-weight: 600;
  font-size: 15px;
}

.tournament-list {
  display: grid;
  gap: 10px;
}

.tournament-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.35);
}

.tournament-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 45, 0.45);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(255, 45, 45, 0.12);
}

.tournament-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.tournament-meta {
  display: grid;
  gap: 4px;
  font-size: 14px;
}

.tournament-name {
  font-weight: 600;
}

.tournament-sub {
  font-size: 12px;
  color: var(--muted);
}

.tournament-actions {
  display: flex;
  align-items: center;
}

.tournament-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 45, 0.45);
  background: #FF2D2D;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  min-width: 92px;
  width: 92px;
  gap: 6px;
}

.tournament-join:hover:not(:disabled) {
  box-shadow: 0 0 12px rgba(255, 45, 45, 0.35);
  transform: translateY(-1px);
}

.tournament-join:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.25);
}

.tournament-join:disabled,
.tournament-join.is-registered {
  background: transparent;
  border: 1.5px solid rgba(255, 45, 45, 0.55);
  color: rgba(255, 45, 45, 0.85);
  cursor: default;
  box-shadow: none;
}

.tournament-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.toast {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 45, 45, 0.35);
  background: rgba(10, 12, 15, 0.96);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 200ms ease both;
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 45, 45, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.toast-content {
  display: grid;
  gap: 2px;
}

.toast-title {
  font-weight: 600;
  font-size: 13px;
}

.toast-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.toast-hide {
  animation: toastOut 200ms ease both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}

.tournament-time {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100%;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-nav {
  display: grid;
  gap: 10px;
}

.drawer-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.drawer-nav button {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0 80px;
}

.login-card {
  width: min(420px, 92vw);
  background: rgba(10, 12, 15, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-card {
  position: fixed;
  inset: 20% auto auto 50%;
  transform: translateX(-50%);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: var(--primary-gradient);
  opacity: 0.18;
  z-index: -1;
}

.login-card h1 {
  margin: 8px 0 6px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  margin-top: 6px;
}

.input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.15);
}

.form-row {
  margin-bottom: 16px;
}

.form-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .brand-logo img {
    height: 60px;
  }

  .hero-emblem {
    width: 96px;
  }

  .hero-logo {
    width: min(420px, 90%);
  }
}

@media (max-width: 1024px) {
  .nav-center {
    display: none;
  }

  .topbar {
    justify-content: space-between;
  }

  .header-left {
    padding-left: 16px;
  }

  .header-right {
    padding-right: 16px;
    gap: 12px;
  }

  .header-right .btn-primary {
    display: none;
  }
}

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

@media (min-width: 1025px) {
  #mobileMenuBtn {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }

  .hero-actions {
    width: 100%;
  }

  .brand-logo img {
    height: 48px;
  }

  .hero-logo {
    width: min(280px, 90%);
  }

  .tournaments-panel {
    padding: 20px;
  }

  .tournament-weekend {
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }

  .tournament-weekend .tournament-date + .tournament-date {
    padding-top: 0;
    border-top: none;
  }

  .tournament-date {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 24, 0.7);
  }

  .tournament-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .tournament-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .tournament-actions {
    width: 100%;
  }

  .tournament-join {
    width: 100%;
    justify-content: center;
  }
}
