:root {
  --bg: #0c1118;
  --bg-soft: #151d28;
  --card: rgba(19, 28, 39, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #edf4ff;
  --muted: #a7b5c9;
  --accent: #ff6b2c;
  --accent-soft: rgba(255, 107, 44, 0.16);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 44, 0.2), transparent 30%),
    linear-gradient(180deg, #0a0f15, #111926 55%, #0c1118);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

.top-nav,
.page {
  position: relative;
  z-index: 1;
}

.top-nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(12, 17, 26, 0.94), rgba(12, 17, 26, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.top-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.top-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.top-nav-brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  flex: 0 0 auto;
}

.top-nav-brand-text {
  display: inline-block;
}

.top-nav-center {
  display: flex;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.top-nav-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.top-nav-menu > [hidden] {
  display: none !important;
}

.top-nav-actions {
  display: flex;
  justify-content: flex-end;
}

.top-nav-more {
  position: relative;
  display: none;
}

.top-nav-more.is-visible {
  display: block;
}

.top-nav-more-toggle {
  gap: 8px;
}

.top-nav-more-icon {
  font-size: 1rem;
  line-height: 1;
}

.top-nav-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(12, 17, 26, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  z-index: 30;
}

.top-nav-more-menu[hidden] {
  display: none !important;
}

.top-nav-more-link {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f4f8ff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.top-nav-more-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 209, 102, 0.26);
}

.top-nav-link-primary,
.top-nav-link-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.top-nav-link-primary {
  background: linear-gradient(135deg, var(--accent), #ff7d57);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px rgba(255, 91, 46, 0.28);
}

.top-nav-link-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 30px rgba(255, 91, 46, 0.36);
}

.top-nav-link-secondary {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f4f8ff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.top-nav-link-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 209, 102, 0.42);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 209, 102, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.top-nav-link-secondary.is-current {
  background: rgba(255, 209, 102, 0.16);
  border-color: rgba(255, 209, 102, 0.42);
  color: #fff4c7;
}

.nav-social {
  min-width: 42px;
  min-height: 42px;
  padding: 10px;
  font-size: 0.86rem;
  letter-spacing: 0.015em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.nav-social.nav-social-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.34);
}

.nav-social.nav-social-telegram {
  background: linear-gradient(135deg, #27a7e7, #168ac7);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(39, 167, 231, 0.3);
}

.nav-social:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nav-social.nav-social-discord:hover {
  box-shadow: 0 16px 34px rgba(88, 101, 242, 0.42);
}

.nav-social.nav-social-telegram:hover {
  box-shadow: 0 16px 34px rgba(39, 167, 231, 0.38);
}

.nav-social.nav-social-tiktok {
  background: linear-gradient(135deg, #151515, #2b2b2b);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.nav-social.nav-social-tiktok:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
}

.nav-social.nav-social-youtube {
  background: linear-gradient(135deg, #ff2a23, #cc181e);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(204, 24, 30, 0.34);
}

.nav-social.nav-social-youtube:hover {
  box-shadow: 0 16px 34px rgba(204, 24, 30, 0.42);
}

.nav-social.nav-social-twitch {
  background: linear-gradient(135deg, #9146ff, #6f2cff);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(145, 70, 255, 0.34);
}

.nav-social.nav-social-twitch:hover {
  box-shadow: 0 16px 34px rgba(145, 70, 255, 0.42);
}

.social-icon {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 16, 24, 0.78);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 56px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--accent), #ff7d57);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 91, 46, 0.25);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  line-height: 1;
}

.lang-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 56px;
}

.hero {
  padding: 10px 0 8px;
}

.hero-card {
  --hero-track-photo: none;
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 91, 46, 0.12), rgba(255, 255, 255, 0.03)),
    var(--card);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, transparent 70%),
    linear-gradient(100deg, rgba(7, 11, 16, 0.25) 0%, rgba(7, 11, 16, 0.25) 34%, rgba(7, 11, 16, 0.25) 100%),
    var(--hero-track-photo);
  background-position: center, center, center;
  background-size: auto, cover, cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: 8px;
  align-items: stretch;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 0;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.4rem;
}

.subtitle {
  margin-top: 12px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-server-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.hero-server-grid-rules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-server-stack {
  display: grid;
  gap: 12px;
}

.hero-server-item {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(9, 14, 21, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-server-item .value {
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  font-weight: 600;
  margin-left: 0;
  text-align: center;
}

.hero-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.hero-token {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.hero-token-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-token-text {
  line-height: 1;
}

.hero-token-has-tooltip {
  cursor: help;
}

.hero-token-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 12;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(260px, 42vw);
  padding: 12px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(11, 17, 25, 0.97);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, 8px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.hero-token-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(255, 209, 102, 0.22);
  border-bottom: 1px solid rgba(255, 209, 102, 0.22);
  background: rgba(11, 17, 25, 0.97);
  transform: translateX(-50%) rotate(45deg);
}

.hero-token-tooltip-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hero-token-tooltip-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-token-tooltip-title {
  color: #fff5d1;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-token-tooltip-body {
  color: #d9e4f2;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 721px) {
  .hero-token-has-tooltip:hover,
  .hero-token-has-tooltip:focus-visible {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 209, 102, 0.32);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.05),
      0 0 0 4px rgba(255, 209, 102, 0.08),
      0 10px 22px rgba(0, 0, 0, 0.22);
  }

  .hero-token-has-tooltip:hover .hero-token-tooltip,
  .hero-token-has-tooltip:focus-visible .hero-token-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
  }
}

.hero-token-primary {
  background: rgba(255, 91, 46, 0.16);
  border-color: rgba(255, 138, 76, 0.26);
  color: #fff0ea;
}

.hero-token-warning {
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.26);
  color: #ffeab0;
}

.hero-token-muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 600;
}

.hero-server-item .label {
  margin-bottom: 0;
  font-size: 0.78rem;
  flex: 0 0 auto;
  text-align: center;
}

.hero-server-item-emphasis .value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-server-item-emphasis {
  display: block;
}

.hero-server-item-emphasis .label {
  margin-bottom: 6px;
  text-align: left;
}

.hero-server-item-emphasis .hero-copy-row {
  justify-content: space-between;
  margin-left: 0;
}

.hero-server-item-emphasis .value {
  margin-left: 0;
  text-align: left;
}

.hero-server-grid-rules .hero-server-item {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px;
}

.hero-server-grid-rules .hero-server-item .label {
  text-align: left;
  margin-bottom: 0;
}

.hero-server-grid-rules .hero-server-item .value {
  margin-left: 0;
  text-align: left;
  width: 100%;
}

.hero-server-grid-rules .hero-token-list {
  justify-content: flex-start;
  margin-left: 0;
}

.hero-copy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 0;
}

.hero-copy-value {
  user-select: all;
}

.hero-copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #dfe8f4;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hero-copy-btn:hover,
.hero-copy-btn:focus-visible {
  border-color: rgba(255, 209, 102, 0.36);
  background: rgba(255, 209, 102, 0.12);
  color: #fff4cf;
  outline: none;
}

.hero-copy-btn.is-copied {
  border-color: rgba(88, 214, 141, 0.4);
  background: rgba(88, 214, 141, 0.16);
  color: #d9ffe8;
}

.hero-copy-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.hero-copy-icon svg {
  width: 100%;
  height: 100%;
}

.hero-copy-icon-done {
  display: none;
}

.hero-copy-btn.is-copied .hero-copy-icon-copy {
  display: none;
}

.hero-copy-btn.is-copied .hero-copy-icon-done {
  display: inline-flex;
}

.hero-announcement-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 193, 86, 0.14), rgba(255, 91, 46, 0.08)),
    rgba(19, 28, 39, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-announcement-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-announcement-eyebrow {
  margin-bottom: 8px;
  color: #ffcc5c;
}

.hero-announcement-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-announcement-inline-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero-announcement-inline-stat {
  display: flex;
  align-items: center;
  min-width: 0;
}

.hero-announcement-inline-stat-combined {
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.hero-announcement-inline-stat .value {
  margin-left: 0;
  text-align: center;
  width: 100%;
}

.hero-announcement-inline-stat-combined .value {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
}

.hero-announcement-inline-stat .hero-token-list {
  justify-content: center;
  margin-left: 0;
}

.hero-announcement-inline-stat-combined .hero-token-list {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.hero-announcement-inline-stat-combined .hero-token {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.74rem;
}

.hero-announcement-inline-divider {
  width: 1px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 209, 102, 0.28), rgba(255, 255, 255, 0.04));
}

.hero-announcement-stat-track {
  grid-column: 1 / -1;
}

.hero-announcement-weather {
  padding: 14px 15px;
  border: 1px solid rgba(255, 209, 102, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(9, 14, 21, 0.28);
}

.hero-announcement-weather .value {
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-announcement-card .value {
  font-size: 0.88rem;
}

.hero-announcement-weather,
.hero-announcement-meta .stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-announcement-weather .label,
.hero-announcement-meta .label {
  margin-bottom: 0;
  flex: 0 0 auto;
  text-align: center;
}

.hero-announcement-weather .value,
.hero-announcement-meta .value {
  margin-left: 0;
  text-align: center;
}

#hero-weather-card {
  cursor: default;
}

.hero-announcement-stat-plain {
  justify-content: center;
}

.hero-announcement-stat-plain .value {
  margin-left: 0;
  text-align: center;
}

.hero-announcement-stat-track {
  display: block;
}

.hero-announcement-stat-track .value {
  margin-left: 0;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.5);
}

.hero-vote-actions,
.schedule-event-vote-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-vote-btn,
.schedule-event-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.88), rgba(255, 145, 77, 0.88));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.hero-vote-btn:hover:not(:disabled),
.schedule-event-vote-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.hero-vote-btn:disabled,
.schedule-event-vote-btn:disabled {
  cursor: default;
  opacity: 0.84;
}

.hero-vote-btn.is-voted,
.schedule-event-vote-btn.is-voted {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.92), rgba(255, 157, 77, 0.92));
  color: #101418;
}

.hero-vote-icon,
.schedule-event-vote-icon {
  font-size: 1rem;
  line-height: 1;
}

.hero-vote-meta,
.schedule-event-vote-meta {
  font-size: 0.84rem;
  font-weight: 700;
  color: #d6e1ef;
}

.hero-vote-meta {
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.hero-vote-cancel,
.schedule-event-vote-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 107, 107, 0.34);
  border-radius: 999px;
  background: rgba(180, 35, 35, 0.92);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.hero-vote-cancel:hover:not(:disabled),
.schedule-event-vote-cancel:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.hero-vote-cancel:disabled,
.schedule-event-vote-cancel:disabled {
  cursor: default;
  opacity: 0.84;
}

.card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.card .eyebrow,
.section-head .eyebrow {
  display: none;
}

.section-subtitle,
.modal-subtitle,
.race-note {
  color: var(--muted);
}

.section-subtitle {
  margin-top: 8px;
  line-height: 1.55;
}

.modal-subtitle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.46);
  backdrop-filter: blur(8px);
  line-height: 1.4;
  color: #f4f8ff;
  font-weight: 800;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ffd7c6;
  font-size: 0.85rem;
  font-weight: 700;
}

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

.stat,
.list-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.label,
.item-meta,
.empty {
  color: var(--muted);
}

.label {
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.value,
.item-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.stack {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.item-meta {
  margin-top: 6px;
  font-size: 0.92rem;
}

.item-side {
  white-space: nowrap;
  color: #ffd7c6;
  font-weight: 700;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 21, 30, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.table-card-compact {
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 15px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

tbody tr:not(.is-interactive-row):hover {
  transform: none;
}

.races-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.schedule-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.schedule-table tbody tr:hover {
  background: rgba(255, 91, 46, 0.07);
  transform: translateY(-1px);
}

.schedule-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.schedule-event-card {
  --schedule-track-photo: none;
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(118deg, rgba(7, 11, 16, 0.2) 0%, rgba(7, 11, 16, 0.2) 38%, rgba(7, 11, 16, 0.2) 100%),
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 30%),
    var(--schedule-track-photo),
    rgba(10, 16, 24, 0.96);
  background-position: center, top right, center, center;
  background-size: cover, auto, cover, cover;
  background-repeat: no-repeat;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.schedule-event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.28);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.3);
}

.schedule-event-card-inner {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-self: flex-end;
  max-width: calc(100% - 28px);
  margin: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.schedule-event-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd9bb;
  letter-spacing: 0.02em;
}

.schedule-event-track {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.schedule-event-weather {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #dce8f7;
}

.schedule-event-weather img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

.schedule-event-vote {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.schedule-table td:first-child {
  white-space: nowrap;
}

.races-table tbody tr:hover {
  background: rgba(255, 91, 46, 0.07);
  transform: translateY(-1px);
}

.race-track-cell,
.driver-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.race-track-name,
.race-winner,
.driver-name {
  font-weight: 800;
}

.race-note {
  font-size: 13px;
  line-height: 1.35;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.driver-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.95), rgba(255, 209, 102, 0.95));
  color: #101418;
  font-size: 14px;
  font-weight: 900;
}

.positions-delta {
  font-weight: 800;
}

.delta-positive {
  color: #39d98a;
}

.delta-negative {
  color: #ef4444;
}

.delta-neutral {
  color: var(--text);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 16, 0.78);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-top: 140px;
}

.modal-card {
  --modal-track-photo: none;
  position: relative;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 20, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-card-slot {
  max-height: none;
  overflow: visible;
  background:
    linear-gradient(112deg, rgba(7, 11, 16, 0.2) 0%, rgba(7, 11, 16, 0.2) 36%, rgba(7, 11, 16, 0.2) 100%),
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 30%),
    var(--modal-track-photo),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 20, 0.98));
  background-position: center, top right, center, center;
  background-size: cover, auto, cover, cover;
  background-repeat: no-repeat;
}

.modal-card-race {
  width: min(1080px, 100%);
  background:
    linear-gradient(112deg, rgba(7, 11, 16, 0.34) 0%, rgba(7, 11, 16, 0.34) 36%, rgba(7, 11, 16, 0.34) 100%),
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 30%),
    var(--modal-track-photo),
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 20, 0.98));
  background-position: center, top right, center, center;
  background-size: cover, auto, cover, cover;
  background-repeat: no-repeat;
}

.modal-header {
  margin-bottom: 20px;
  padding-right: 42px;
}

.modal-title {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.03);
}

.race-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.race-summary-card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgb(0 0 0 / 50%);
}

.race-summary-label {
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.race-summary-value {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}

.schedule-modal-details {
  display: block;
}

.schedule-modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.schedule-modal-hero-pane {
  min-height: 0;
  order: 1;
}

.schedule-modal-vote {
  grid-column: 1 / -1;
  order: 2;
}

#schedule-modal .schedule-modal-vote .hero-vote {
  margin-top: 0;
}

#schedule-modal .hero-server-card,
#schedule-modal .hero-announcement-card {
  backdrop-filter: blur(10px);
}

#schedule-modal .hero-server-card {
  justify-content: flex-start;
  gap: 10px;
  padding: 14px;
}

#schedule-modal .hero-announcement-card {
  justify-content: flex-start;
  gap: 10px;
  padding: 14px;
}

#schedule-modal .hero-announcement-meta {
  grid-template-columns: 1fr;
}

#schedule-modal .hero-announcement-head {
  display: none;
}

#schedule-modal .hero-server-item,
#schedule-modal .hero-announcement-weather,
#schedule-modal .hero-announcement-meta .stat {
  background: rgba(9, 14, 21, 0.56);
}

#schedule-modal .hero-server-grid {
  gap: 10px 12px;
}

#schedule-modal .hero-server-grid-rules {
  gap: 10px;
}

#schedule-modal .hero-server-item {
  padding: 12px 13px;
}

#schedule-modal .hero-token-list {
  gap: 6px;
}

#schedule-modal .hero-token {
  min-height: 26px;
  padding: 5px 8px;
  font-size: 0.74rem;
}

#schedule-modal .hero-announcement-inline-meta {
  gap: 10px;
}

#schedule-modal .modal-subtitle {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding-top: 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  backdrop-filter: none;
  color: inherit;
}

.schedule-modal-subtitle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.schedule-modal-subtitle-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(8, 12, 18, 0.46);
  backdrop-filter: blur(8px);
}

.schedule-modal-subtitle-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.15;
}

.schedule-modal-subtitle-value {
  color: #f4f8ff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.schedule-modal-subtitle-card:nth-child(1) .schedule-modal-subtitle-value,
.schedule-modal-subtitle-card:nth-child(2) .schedule-modal-subtitle-value {
  font-size: calc(0.9rem + 4px);
  line-height: 1.2;
}

.schedule-modal-subtitle-card:nth-child(3) .schedule-modal-subtitle-value {
  display: inline-block;
  line-height: 1.45;
}

#schedule-modal .hero-announcement-inline-stat-combined {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

#schedule-modal .hero-announcement-inline-stat-combined .hero-token-list {
  gap: 4px;
}

#schedule-modal .hero-announcement-inline-stat-combined .value {
  width: 100%;
}

#schedule-modal .hero-announcement-inline-divider {
  display: none;
}

#schedule-modal .hero-announcement-inline-stat-combined .hero-token {
  min-height: 24px;
  padding: 4px 7px;
  font-size: 0.68rem;
}

#schedule-modal .hero-announcement-stat-track .value {
  font-size: 1rem;
}

#schedule-modal .hero-announcement-weather {
  padding: 10px 12px;
}

#schedule-modal .hero-announcement-weather .hero-token-list {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
}

#schedule-modal .hero-announcement-weather .hero-token {
  min-height: 24px;
  padding: 4px 6px;
  font-size: 0.68rem;
}

#schedule-modal .hero-announcement-weather .hero-token-icon {
  width: 18px;
  height: 18px;
}

.modal-card-weather {
  width: min(560px, 100%);
  background:
    linear-gradient(180deg, rgba(255, 193, 86, 0.14), rgba(255, 91, 46, 0.08)),
    rgba(12, 18, 27, 0.96);
}

.weather-modal-details {
  display: grid;
  gap: 12px;
}

.weather-detail-card {
  padding: 21px;
  border: 1px solid rgba(255, 209, 102, 0.12);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.56);
}

.weather-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.weather-detail-icon {
  width: 39px;
  height: 39px;
  object-fit: contain;
  flex: 0 0 auto;
}

.weather-detail-value {
  color: #fff5d1;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}

.weather-detail-value-plain {
  color: #f2f5fb;
}

.weather-detail-title {
  margin-bottom: 6px;
  color: #f3f7fe;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.weather-detail-body {
  color: #d7e0ed;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.table-card-modal {
  border-radius: 18px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1420px) {
  html {
    scroll-padding-top: 132px;
  }

  .top-nav-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "menu menu";
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
  }

  .top-nav-socials {
    display: none;
  }

  .top-nav-brand {
    grid-area: brand;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .top-nav-center {
    grid-area: menu;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .top-nav-menu {
    display: flex;
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: visible;
    padding: 2px 0 0;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    flex: 0 0 auto;
    padding: 9px 15px;
    font-size: 0.8rem;
  }

  .nav-social {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1420px) and (min-width: 721px) {
  .top-nav-inner {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "brand socials menu actions";
    align-items: center;
    padding: 10px 16px;
  }

  .top-nav-socials {
    grid-area: socials;
    display: flex;
  }

  .top-nav-center {
    grid-area: menu;
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: visible;
  }

  .top-nav-menu {
    width: auto;
    overflow: visible;
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 132px;
  }

  .top-nav-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand socials actions"
      "menu menu menu";
    align-items: center;
    gap: 10px;
    padding: 10px 14px 12px;
  }

  .top-nav-brand {
    grid-area: brand;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .top-nav-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .top-nav-center {
    grid-area: menu;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .top-nav-menu {
    display: flex;
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 0;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .nav-social {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    font-size: 0.84rem;
  }

}

@media (max-width: 840px) and (min-width: 721px) {
  .hero {
    padding-top: 18px;
  }

  .hero-card {
    padding: 8px;
    border-radius: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-announcement-card {
    order: -1;
    padding: 9px;
    gap: 9px;
  }

  .hero-server-grid {
    grid-template-columns: 1fr;
  }

  .hero-server-grid-rules {
    grid-template-columns: 1fr;
  }

  #hero-vote {
    order: -1;
  }

  .hero-server-grid-major {
    order: 1;
  }

  .hero-server-grid-minor {
    order: 2;
  }

  .hero-server-stack {
    order: 3;
  }

  .hero-server-card {
    gap: 10px;
    padding: 8px;
  }

  .hero-server-item,
  .hero-announcement-meta .stat,
  .hero-announcement-weather {
    padding: 7px 8px;
  }

  .hero-server-item .label,
  .hero-announcement-weather .label,
  .hero-announcement-meta .label {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .hero-server-item .value,
  .hero-announcement-weather .value,
  .hero-announcement-meta .value {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    margin-left: 0;
  }

  .hero-server-item-emphasis .value {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .hero-server-item-emphasis {
    display: block;
  }

  .hero-server-item-emphasis .label {
    margin-bottom: 6px;
    text-align: left;
  }

  .hero-server-item-emphasis .hero-copy-row {
    justify-content: space-between;
    margin-left: 0;
  }

  .hero-server-item-emphasis .value {
    margin-left: 0;
    text-align: left;
  }

  .hero-server-item.has-token-value,
  .hero-announcement-weather.has-token-value {
    display: block;
  }

  .hero-server-item.has-token-value .label,
  .hero-announcement-weather.has-token-value .label {
    margin-bottom: 6px;
  }

  .hero-server-item.has-token-value .value,
  .hero-announcement-weather.has-token-value .value {
    margin-left: 0;
    text-align: center;
  }

  .hero-server-grid-rules .hero-server-item {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-server-grid-rules .hero-server-item .label {
    text-align: left;
  }

  .hero-server-grid-rules .hero-server-item .value {
    margin-left: 0;
    text-align: left;
  }

  .hero-token-list {
    gap: 6px;
  }

  .hero-token {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.74rem;
  }

  .hero-token-icon {
    width: 20px;
    height: 20px;
  }

  .hero-token-tooltip {
    display: none;
  }

  #hero-weather-card {
    cursor: pointer;
  }

  .hero-announcement-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-announcement-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-announcement-inline-stat-combined {
    gap: 3px;
  }

  .hero-announcement-inline-divider {
    opacity: 0.65;
    width: 1px;
  }

  .hero-announcement-inline-stat-combined .hero-token-list {
    gap: 2px;
  }

  .hero-announcement-inline-stat-combined .hero-token {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 0.68rem;
    line-height: 1.05;
  }

  .hero-announcement-stat-plain {
    min-width: 0;
  }

  .hero-announcement-stat-track {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 136px;
  }

  .page {
    width: min(100% - 20px, 1200px);
  }

  .top-nav-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand socials actions"
      "menu menu menu";
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .top-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    grid-area: brand;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-brand-text {
    display: none;
  }

  .top-nav-brand-logo {
    width: 38px;
    height: 38px;
  }

  .top-nav-socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
    min-width: 0;
  }

  .top-nav-center {
    grid-area: menu;
    display: block;
    width: 100%;
    min-width: 0;
  }

  .top-nav-actions {
    grid-area: actions;
    order: initial;
  }

  .top-nav-menu {
    width: 100%;
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: 0;
  }

  .top-nav-link-primary,
  .top-nav-link-secondary {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: 0.8rem;
  }

  .nav-social {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.84rem;
  }

  .lang-btn {
    min-width: 45px;
    min-height: 34px;
    padding: 0 7px;
  }

  .lang-flag {
    width: 24px;
    height: 17px;
  }

  .nav-social {
    min-width: 36px;
    min-height: 36px;
    padding: 7px;
    font-size: 0.72rem;
  }

  .social-icon {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card {
    padding: 8px;
    border-radius: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-announcement-card {
    order: -1;
    padding: 9px;
    gap: 9px;
  }

  .hero-server-grid {
    grid-template-columns: 1fr;
  }

  .hero-server-grid-rules {
    grid-template-columns: 1fr;
  }

  #hero-vote {
    order: -1;
  }

  .hero-server-grid-major {
    order: 1;
  }

  .hero-server-stack {
    order: 2;
  }

  .hero-server-item,
  .hero-announcement-weather,
  .hero-announcement-meta .stat {
    align-items: baseline;
    gap: 10px;
  }

  .hero-announcement-head {
    gap: 7px;
  }

  .hero-announcement-inline-meta {
    gap: 6px;
  }

  .hero-announcement-meta {
    gap: 7px;
  }

  .hero-announcement-meta .stat,
  .hero-announcement-weather {
    padding: 7px 8px;
  }

  .hero-server-item .label,
  .hero-announcement-weather .label,
  .hero-announcement-meta .label {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .hero-server-item .value,
  .hero-announcement-weather .value,
  .hero-announcement-meta .value {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    margin-left: 0;
  }

  .hero-server-item-emphasis .value {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
  }

  .hero-server-item-emphasis {
    display: block;
  }

  .hero-server-item-emphasis .label {
    margin-bottom: 6px;
    text-align: left;
  }

  .hero-server-item-emphasis .hero-copy-row {
    justify-content: space-between;
    margin-left: 0;
  }

  .hero-server-item-emphasis .value {
    margin-left: 0;
    text-align: left;
  }

  .hero-server-item.has-token-value,
  .hero-announcement-weather.has-token-value {
    display: block;
  }

  .hero-server-item.has-token-value .label,
  .hero-announcement-weather.has-token-value .label {
    margin-bottom: 6px;
  }

  .hero-server-item.has-token-value .value,
  .hero-announcement-weather.has-token-value .value {
    margin-left: 0;
    text-align: center;
  }

  .hero-server-grid-rules .hero-server-item {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-server-grid-rules .hero-server-item .label {
    text-align: left;
  }

  .hero-server-grid-rules .hero-server-item .value {
    margin-left: 0;
    text-align: left;
  }

  .hero-token-list {
    gap: 6px;
  }

  .hero-token {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.74rem;
  }

  .hero-token-icon {
    width: 20px;
    height: 20px;
  }

  .hero-token-tooltip {
    display: none;
  }

  #hero-weather-card {
    cursor: pointer;
  }

  .weather-modal-details {
    gap: 8px;
  }

  #weather-modal .modal-header {
    display: none;
  }

  .weather-detail-card {
    padding: 12px;
    border-radius: 16px;
  }

  .weather-detail-head {
    margin-bottom: 8px;
  }

  .weather-detail-icon {
    width: 26px;
    height: 26px;
  }

  .weather-detail-value {
    font-size: 0.94rem;
  }

  .weather-detail-title {
    font-size: 0.86rem;
  }

  .weather-detail-body {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .hero-announcement-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-announcement-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-announcement-inline-stat-combined {
    gap: 3px;
  }

  .hero-announcement-inline-divider {
    opacity: 0.65;
    width: 1px;
  }

  .hero-announcement-inline-stat-combined .hero-token-list {
    gap: 2px;
  }

  .hero-announcement-inline-stat-combined .hero-token {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 0.68rem;
    line-height: 1.05;
  }


  .hero-announcement-stat-plain {
    min-width: 0;
  }

  .hero-announcement-stat-track {
    grid-column: 1 / -1;
  }

  .schedule-cards-grid {
    grid-template-columns: 1fr;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .race-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-modal-details {
    display: block;
  }

  .schedule-modal-hero {
    grid-template-columns: 1fr;
  }

  .schedule-modal-subtitle-grid {
    grid-template-columns: 1fr;
  }

  .schedule-modal-vote {
    order: -1;
  }

  #schedule-modal.is-open {
    padding-top: 118px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
  }

  #schedule-modal .modal-card-slot {
    max-height: calc(100dvh - 128px);
    overflow: auto;
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

  .list-item,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
