:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #2a050b;
  --navy: #071a3d;
  --surface: rgba(12, 14, 22, 0.82);
  --surface-2: rgba(18, 21, 34, 0.9);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8ff;
  --muted: #a9afc5;
  --red: #ff1f35;
  --red-2: #e50914;
  --blue: #1f8cff;
  --green: #00d87a;
  --gold: #ffd166;
  --silver: #c8d3df;
  --bronze: #d28b5a;
  --radius: 8px;
  --card-radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 31, 53, 0.22), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(31, 140, 255, 0.16), transparent 30rem),
    linear-gradient(145deg, var(--bg) 0%, #090a11 45%, var(--bg-2) 100%);
  color: var(--text);
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

main {
  min-height: 100vh;
  overflow: visible;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 0 max(18px, calc((100vw - 1460px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-width: max-content;
  font-family: "Bebas Neue", Orbitron, Impact, sans-serif;
  font-size: 34px;
  line-height: 0.9;
}

.brand span,
.logo-title span {
  color: white;
}

.brand strong,
.logo-title strong {
  color: var(--red);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  color: #dce1f4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.nav a:hover,
.nav a.active,
.nav .admin-link {
  color: var(--red);
}

.nav a {
  position: relative;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav a.active {
  text-shadow: 0 0 18px rgba(255, 31, 53, 0.58);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  box-shadow: 0 0 18px rgba(255, 31, 53, 0.42);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.member-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-chip {
  min-width: 245px;
  max-width: none;
  padding: 10px 12px;
  border: 1px solid rgba(31, 140, 255, 0.35);
  border-radius: 999px;
  background: rgba(31, 140, 255, 0.1);
  color: #dbeaff;
  overflow: visible;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
  border-color: rgba(255, 31, 53, 0.58);
  background: linear-gradient(135deg, rgba(255, 31, 53, 0.18), rgba(31, 140, 255, 0.14));
  box-shadow: 0 0 24px rgba(255, 31, 53, 0.16);
  transform: translateY(-1px);
}

.member-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  border: 1px solid rgba(255, 31, 53, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(10, 11, 18, 0.96), rgba(42, 5, 11, 0.92)),
    rgba(7, 8, 13, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45), 0 0 36px rgba(255, 31, 53, 0.12);
  backdrop-filter: blur(14px);
  transform-origin: top right;
  animation: popoverIn 160ms ease both;
}

.member-popover strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
}

.member-popover > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.member-history {
  display: grid;
  gap: 8px;
}

.member-history-row {
  display: grid;
  grid-template-columns: 82px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.member-history-row time {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.member-history-row b {
  display: block;
  color: #a8ffd6;
  font-size: 13px;
}

.member-history-row b.negative {
  color: #ff9aa6;
}

.member-history-row b.pending {
  color: #ffd166;
}

.member-history-row small {
  display: block;
  margin-top: 3px;
  color: #e4e9ff;
  line-height: 1.35;
}

.member-history-empty {
  padding: 11px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes popoverIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 2px 0;
  flex: 0 0 2px;
  border-radius: 999px;
  background: white;
}

.section {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 84px 0;
  scroll-margin-top: 92px;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(760px, calc(100svh - 76px));
  text-align: center;
  isolation: isolate;
}

.hero-leaderboards {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 2;
  display: grid;
  width: min(245px, 22vw);
  gap: 12px;
  transform: translateY(-44%);
  text-align: left;
}

.hero-leaderboards article {
  min-height: 132px;
  padding: 16px;
  border: 1px solid rgba(255, 31, 53, 0.24);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(42, 5, 11, 0.86), rgba(7, 26, 61, 0.46));
  box-shadow: 0 0 34px rgba(255, 31, 53, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-leaderboards span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: Orbitron, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.hero-mini-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: #eef3ff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.hero-mini-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.hero-aura {
  position: absolute;
  z-index: -1;
  width: min(1000px, 78vw);
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 60% 45%, rgba(255, 31, 53, 0.55), transparent 62%),
    radial-gradient(ellipse at 28% 52%, rgba(31, 140, 255, 0.24), transparent 48%);
  filter: blur(22px);
  opacity: 0.82;
}

.kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-family: Orbitron, "Bebas Neue", Impact, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 2px;
}

.logo-title,
.section-head h2,
.campaign-panel h2,
.vision-copy h2,
.contact h2,
.modal h2,
.center-title,
.price-card strong,
.station-card h3,
.leader-card strong,
.mobile-game-card strong {
  font-family: "Bebas Neue", Orbitron, Impact, sans-serif;
  letter-spacing: 0;
}

.logo-title {
  display: flex;
  justify-content: center;
  align-items: baseline;
  margin: 0;
  font-size: clamp(82px, 14vw, 176px);
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0 0 70px rgba(255, 31, 53, 0.38);
}

.hero-text {
  width: min(830px, 100%);
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-actions,
.leader-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.welcome {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 216, 122, 0.28);
  border-radius: 999px;
  background: rgba(0, 216, 122, 0.09);
  color: #b8ffdd;
  font-weight: 800;
}

.inline-campaign-panel {
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 160px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.small {
  min-width: auto;
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

.btn.full {
  width: 100%;
}

.btn-red {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: 0 0 38px rgba(255, 31, 53, 0.34);
}

.btn-blue {
  border-color: rgba(31, 140, 255, 0.56);
  background: rgba(31, 140, 255, 0.16);
  color: #dbeaff;
}

.btn-dark {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.section-head {
  max-width: 990px;
}

.section-head.centered {
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2,
.campaign-panel h2,
.contact h2,
.center-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
}

.section-head p,
.campaign-panel p,
.vision-copy p,
.contact-copy p,
.modal p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.center-title {
  margin-bottom: 42px;
  text-align: center;
}

.experience-grid,
.price-grid,
.public-campaign-list,
.mobile-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.price-card,
.station-card,
.campaign-panel,
.contact-card,
.modal,
.reservation-form,
.leader-card,
.leader-note,
.mobile-game-card,
.vision-shell,
.vision-goals article {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)), var(--surface);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.feature-card,
.price-card {
  min-height: 220px;
  padding: 30px;
}

.feature-card h3 {
  margin: 0 0 18px;
  font-family: "Bebas Neue", Orbitron, Impact, sans-serif;
  font-size: 38px;
}

.feature-card p,
.price-card p,
.station-card span,
.campaign-panel p,
.contact-card span,
.contact-card a:not(.btn) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.price-card span {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 2px;
}

.price-card strong {
  display: block;
  margin: 18px 0 12px;
  font-size: 58px;
  line-height: 0.95;
}

.price-card.active {
  border-color: rgba(255, 31, 53, 0.42);
  box-shadow: 0 0 70px rgba(255, 31, 53, 0.16);
}

.station-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: min(1240px, 100%);
  margin: 56px auto 0;
}

.station-card {
  position: relative;
  min-height: 174px;
  padding: 24px;
  text-align: left;
}

.station-card h3 {
  margin: 0 34px 16px 0;
  font-size: 28px;
}

.station-card b {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 3px;
}

.station-card small {
  color: #768097;
  font-size: 14px;
}

.station-card::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 24px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px rgba(0, 216, 122, 0.72);
}

.station-card.busy b {
  color: var(--red);
}

.station-card.busy::after {
  background: var(--red);
  box-shadow: 0 0 22px rgba(255, 31, 53, 0.72);
}

.station-card.maintenance {
  opacity: 0.9;
  background: linear-gradient(145deg, rgba(23, 35, 59, 0.92), rgba(12, 14, 22, 0.82));
}

.station-card.maintenance b {
  color: #a7b5d3;
}

.station-card.maintenance::after {
  background: #8490ab;
  box-shadow: 0 0 22px rgba(132, 144, 171, 0.62);
}

.reservation-shell {
  width: min(820px, 100%);
  margin: 0 auto;
}

.reservation-form,
.modal form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(8, 10, 16, 0.96);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 96px;
  padding-top: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #8d94ad;
}

select option {
  background: #101524;
  color: #f7f8ff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 31, 53, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 31, 53, 0.14), 0 0 26px rgba(31, 140, 255, 0.1);
}

.notice {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.campaign-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 42px;
  box-shadow: 0 0 90px rgba(255, 31, 53, 0.15);
}

.public-campaign-list {
  margin-top: 20px;
}

.public-campaign-list article {
  display: grid;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.045);
}

.public-campaign-list strong {
  font-family: "Bebas Neue", Orbitron, Impact, sans-serif;
  font-size: 30px;
}

.public-campaign-list span {
  color: var(--muted);
  line-height: 1.55;
}

.public-campaign-list small {
  color: var(--red);
  font-weight: 900;
}

.campaign-cta {
  width: fit-content;
  min-width: 150px;
  margin-top: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 31, 53, 0.54);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(229, 9, 20, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.campaign-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(229, 9, 20, 0.32), 0 0 26px rgba(31, 140, 255, 0.12);
}

.campaign-cta:disabled {
  cursor: default;
  filter: saturate(0.7);
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.campaign-message {
  width: min(1060px, 100%);
  margin: 14px auto 0;
  text-align: center;
}

.mobile-games {
  position: relative;
}

.mobile-game-grid {
  width: min(1060px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-game-card {
  display: grid;
  min-height: 340px;
  gap: 22px;
  padding: 28px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mobile-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 31, 53, 0.14), rgba(31, 140, 255, 0.1));
  opacity: 0.72;
}

.mobile-game-card > * {
  position: relative;
}

.mobile-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 31, 53, 0.48);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32), 0 0 46px rgba(255, 31, 53, 0.16);
}

.mobile-game-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.98;
}

.mobile-game-card p,
.vision-goals span,
.store-copy {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.game-icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 31, 53, 0.34);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 31, 53, 0.22), rgba(31, 140, 255, 0.16));
  box-shadow: 0 0 34px rgba(31, 140, 255, 0.14);
  overflow: hidden;
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-icon span {
  color: white;
  font-family: Orbitron, sans-serif;
  font-size: 26px;
  font-weight: 900;
}

.game-store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-store-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(31, 140, 255, 0.34);
  border-radius: 999px;
  background: rgba(31, 140, 255, 0.1);
  color: #dbeaff;
  font-size: 13px;
  font-weight: 900;
}

.vision-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 28px;
  padding: clamp(26px, 4vw, 48px);
  border-color: rgba(255, 31, 53, 0.22);
  background:
    linear-gradient(145deg, rgba(42, 5, 11, 0.58), rgba(7, 26, 61, 0.34)),
    rgba(9, 11, 19, 0.78);
}

.vision-copy h2 {
  max-width: 900px;
  margin: 0 0 26px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.98;
}

.vision-copy p {
  max-width: 880px;
  margin: 0 0 16px;
}

.vision-goals {
  display: grid;
  gap: 12px;
}

.vision-goals article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(31, 140, 255, 0.06));
}

.vision-goals strong {
  color: white;
  font-family: Orbitron, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

.store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.leader-tabs {
  margin: -22px 0 24px;
}

.leader-tabs button,
.segment button {
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 950;
}

.leader-tabs button.active,
.segment button.active {
  border-color: rgba(255, 31, 53, 0.52);
  background: linear-gradient(135deg, rgba(255, 31, 53, 0.75), rgba(31, 140, 255, 0.28));
}

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

.leader-card {
  min-height: 170px;
  padding: 20px;
  position: relative;
}

.leader-card.top {
  min-height: 210px;
  padding: 26px;
}

.leader-card.rank-1 {
  border-color: rgba(255, 209, 102, 0.55);
  box-shadow: 0 0 55px rgba(255, 209, 102, 0.18);
}

.leader-card.rank-2 {
  border-color: rgba(200, 211, 223, 0.55);
}

.leader-card.rank-3 {
  border-color: rgba(210, 139, 90, 0.55);
}

.leader-card em {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-style: normal;
  font-weight: 950;
}

.leader-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 32px;
}

.leader-card span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.leader-note {
  width: min(780px, 100%);
  margin: 18px auto 0;
  padding: 18px 20px;
  border-color: rgba(255, 209, 102, 0.38);
  color: #ffe7b1;
  text-align: center;
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.contact-copy h2 {
  margin-bottom: 26px;
}

.contact-card {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.contact-card a:not(.btn),
.contact-card span {
  color: #dde4f5;
  font-size: 18px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(ellipse at center, rgba(255, 31, 53, 0.18), rgba(4, 5, 10, 0.9) 56%),
    rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  padding: 42px 34px 34px;
}

.welcome-modal {
  background: rgba(2, 3, 8, 0.68);
  backdrop-filter: blur(8px);
}

.welcome-dialog {
  width: min(540px, calc(100vw - 32px));
  padding: 34px;
  text-align: center;
  animation: welcomeIn 220ms ease both;
}

.welcome-dialog h2 {
  margin-bottom: 14px;
}

.welcome-dialog p {
  margin: 0 0 24px;
}

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

.modal h2 {
  margin: 0 0 24px;
  font-size: 44px;
  line-height: 0.95;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  font-size: 30px;
}

.segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.support-link {
  width: max-content;
  border: 0;
  background: transparent;
  color: #9cccff;
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

@media (max-width: 1220px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
    z-index: 80;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav a.active::after {
    right: auto;
    bottom: 6px;
    width: 70px;
  }

  .auth-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-bottom: 12px;
  }

  .member-popover {
    left: 0;
    right: auto;
    transform-origin: top left;
  }

  .station-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leaderboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-leaderboards {
    position: static;
    width: min(620px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    transform: none;
  }
}

@media (max-width: 900px) {
  .section {
    width: min(100% - 32px, 760px);
    padding: 78px 0;
  }

  .experience-grid,
  .price-grid,
  .public-campaign-list,
  .mobile-game-grid,
  .campaign-panel,
  .contact,
  .form-grid,
  .vision-shell {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 580px) {
  .topbar {
    min-height: 66px;
    padding: 0 14px;
  }

  .brand {
    font-size: 27px;
  }

  .section {
    width: min(100% - 22px, 460px);
    padding: 62px 0;
  }

  .hero {
    min-height: calc(100svh - 66px);
  }

  .logo-title {
    display: block;
    font-size: 76px;
  }

  .hero-actions,
  .auth-actions {
    display: grid;
    width: 100%;
  }

  .member-menu {
    width: 100%;
  }

  .user-chip {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .member-popover {
    width: 100%;
  }

  .member-history-row {
    grid-template-columns: 74px auto;
  }

  .btn {
    width: 100%;
    min-height: 54px;
  }

  .station-grid,
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-card,
  .price-card,
  .station-card,
  .campaign-panel,
  .mobile-game-card,
  .vision-shell,
  .contact-card,
  .modal,
  .reservation-form {
    padding: 22px;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }

  .game-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .segment {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
}
