@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  color: #f8fafc;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #050b13;
  font-family:
    Inter,
    Segoe UI,
    sans-serif;
  font-weight: 400;
  line-height: 1.5;
}
html {
  scroll-behavior: smooth;
}
body {
  background:
    radial-gradient(circle at top, #2563eb33, #0000 30%),
    linear-gradient(#050b13 0%, #0b1420 100%);
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}
button,
a {
  font: inherit;
}
#root {
  min-height: 100vh;
}
.page-shell {
  width: min(1280px, 100% - 28px);
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
}
.page-noise {
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(#ffffff14 0.5px, #0000 0.5px);
  background-size: 18px 18px;
  position: fixed;
  inset: 0;
}
.glass-panel {
  -webkit-backdrop-filter: blur(16px);
  background: #0a121e7a;
  border: 1px solid #94a3b82e;
  box-shadow:
    inset 0 1px #ffffff14,
    0 18px 70px #0f172a61;
}
.topbar {
  z-index: 20;
  border-radius: 22px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 18px 22px;
  display: flex;
  position: relative;
  overflow: visible;
}
.brand-wrap {
  align-items: center;
  gap: 12px;
  min-width: 180px;
  display: flex;
}
.brand-mark {
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-name {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #eff6ff;
  font-size: 1.15rem;
  font-weight: 800;
}
.nav {
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 30px;
  display: flex;
}
.mobile-menu-toggle {
  cursor: pointer;
  background: #0f172a80;
  border: 1px solid #94a3b838;
  border-radius: 12px;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
}
.mobile-menu-toggle span {
  background: #f8fbff;
  border-radius: 999px;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  display: block;
}
.nav-link {
  color: #dbeafeb8;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-button {
  font: inherit;
}
.nav-link:after {
  content: "";
  transform-origin: 50%;
  background: linear-gradient(90deg, #38bdf800, #60a5fa, #38bdf800);
  width: 100%;
  height: 1px;
  transition: transform 0.25s;
  position: absolute;
  bottom: -7px;
  left: 0;
  transform: scaleX(0);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover:after {
  transform: scaleX(1);
}
.nav-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  min-width: 220px;
  display: flex;
}
.shop-link {
  color: #e0f2fed1;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.shop-link:hover {
  color: #fff;
}
.discord-button,
.primary-btn,
.secondary-btn {
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s,
    border-color 0.25s;
  display: inline-flex;
}
.discord-button,
.primary-btn {
  color: #eff6ff;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 45%, #1d4ed8 100%);
  font-weight: 700;
  box-shadow: 0 16px 35px #2563eb6b;
}
.discord-button {
  padding: 0.82rem 1.25rem;
  font-size: 0.9rem;
}
.hero-shell {
  background: #0a121bcc;
  border: 1px solid #94a3b81f;
  border-radius: 32px;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 90px #020617b3;
}
.hero-backdrop {
  background-position: 50%;
  background-size: cover;
  justify-content: center;
  align-items: center;
  min-height: 760px;
  display: flex;
  position: relative;
  overflow: hidden;
}
.hero-sheen {
  background: linear-gradient(
    120deg,
    #7dd3fc29,
    #60a5fa0a 30%,
    #0f172a1f 60%,
    #0f172ab3
  );
  position: absolute;
  inset: 0;
}
.hero-glow {
  filter: blur(90px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  border-radius: 9999px;
  width: 520px;
  height: 520px;
  position: absolute;
}
.hero-glow-left {
  background: #38bdf83d;
  top: -80px;
  left: -140px;
}
.hero-glow-right {
  background: #2563eb33;
  bottom: -40px;
  right: -120px;
}
.hero-content {
  z-index: 1;
  text-align: center;
  width: min(820px, 100% - 32px);
  padding: 68px 16px 52px;
  animation: 0.9s ease-out both fadeUp;
  position: relative;
}
.eyebrow {
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #bfdbfeeb;
  margin: 0 0 18px;
  font-size: 0.76rem;
}
.hero-content h1 {
  letter-spacing: -0.08em;
  text-transform: uppercase;
  color: #f8fbff;
  text-shadow: 0 24px 60px #0e749040;
  margin: 0;
  font-size: clamp(4rem, 8vw, 8.2rem);
  line-height: 0.9;
}
.subtitle {
  color: #e0f2fed1;
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 1.08rem;
}
.hero-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  display: flex;
}
.primary-btn,
.secondary-btn {
  padding: 1rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 700;
}
.secondary-btn {
  color: #edf6ff;
  background: #0f172a59;
  border: 1px solid #94a3b847;
  box-shadow: inset 0 1px #ffffff14;
}
.discord-button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px #3b82f647;
}
.hero-metrics {
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 42px;
  display: flex;
}
.metric-card {
  border-radius: 18px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 160px;
  padding: 1rem 1.2rem;
  display: flex;
}
.metric-value {
  color: #f8fbff;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  font-weight: 800;
}
.metric-label {
  color: #bfdbfeb3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.info-band {
  grid-template-columns: 0.95fr 1.35fr;
  gap: 22px;
  margin-top: 28px;
  display: grid;
}
.info-card {
  border-radius: 26px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.server-card:before,
.reasons-card:before {
  content: "";
  background: linear-gradient(90deg, #38bdf800, #7dd3fccc, #38bdf800);
  width: 100%;
  height: 1px;
  position: absolute;
  inset: 0 auto auto 0;
}
.section-label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #bfdbfecc;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-row {
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  display: flex;
}
.status-dot {
  background: #22c55e;
  border-radius: 9999px;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 18px #22c55ee6;
}
.status-text {
  letter-spacing: -0.05em;
  color: #f8fbff;
  font-size: 2.1rem;
  font-weight: 800;
}
.server-grid {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 22px;
  margin-top: 28px;
  display: grid;
}
.server-grid div {
  background: #0f172a52;
  border: 1px solid #94a3b824;
  border-radius: 16px;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  display: flex;
}
.stat-label {
  color: #bfdbfeb3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.server-grid strong {
  color: #f8fbff;
  font-size: 1.4rem;
}
.event-slider {
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  display: flex;
  position: relative;
}
.event-arrow {
  z-index: 4;
  color: #fff;
  cursor: pointer;
  text-shadow:
    0 0 18px #7dd3fce6,
    0 0 30px #3b82f6b3;
  background: 0 0;
  border: none;
  border-radius: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 2.8rem;
  line-height: 1;
  transition:
    transform 0.25s,
    color 0.25s,
    text-shadow 0.25s;
  display: grid;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.event-arrow:first-of-type {
  left: -30px;
}
.event-arrow:last-of-type {
  right: -30px;
}
.event-arrow:hover {
  color: #fff;
  text-shadow:
    0 0 22px #7dd3fc,
    0 0 42px #3b82f6e6;
  transform: translateY(-50%) scale(1.12);
}
.event-arrow:active {
  transform: translateY(-50%) scale(1.06);
}
.event-card-shell {
  perspective: 1600px;
  cursor: pointer;
  border-radius: 24px;
  width: min(100%, 760px);
  height: 300px;
  position: relative;
  overflow: visible;
}
.event-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.event-card-shell.is-flipped .event-card-inner {
  transform: rotateY(180deg);
}
.event-face {
  backface-visibility: hidden;
  border: 1px solid #94a3b833;
  border-radius: 24px;
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-shadow: 0 22px 40px #02061747;
}
.event-front,
.event-back {
  background-position: 50%;
  background-size: cover;
  flex-direction: column;
  justify-content: flex-end;
  display: flex;
}
.event-front:before,
.event-back:before {
  content: "";
  background: linear-gradient(#0f172a0f, #0f172ad6);
  position: absolute;
  inset: 0;
}
.event-content,
.event-meta,
.event-location,
.event-back-header,
.event-description,
.event-detail-list,
.event-back-footer {
  z-index: 1;
  position: relative;
}
.event-content {
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 0;
  display: flex;
}
.event-badge {
  color: #ffffffc7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: 0 0;
  border: none;
  align-self: flex-start;
  padding: 0;
  font-size: 0.58rem;
  font-weight: 500;
}
.event-content h3,
.event-back-header h3 {
  letter-spacing: -0.05em;
  color: #f8fbff;
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}
.event-meta {
  color: #e0f2fedb;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 22px 0;
  font-size: 0.72rem;
  display: flex;
}
.event-location {
  text-align: right;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 16px 22px 22px;
  display: flex;
}
.location-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfdbfeb3;
  font-size: 0.68rem;
}
.event-location strong {
  color: #f8fbff;
  font-size: 0.94rem;
}
.event-back {
  background: linear-gradient(160deg, #0f172af5, #1e293bf0);
  padding: 22px;
  transform: rotateY(180deg);
}
.event-back-header {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}
.event-description {
  color: #e0f2fedb;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
}
.event-detail-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  display: flex;
}
.event-detail-list span {
  color: #e0f2fe;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #3b82f61f;
  border: 1px solid #7dd3fc2e;
  border-radius: 999px;
  align-items: center;
  padding: 0.42rem 0.8rem;
  font-size: 0.66rem;
  display: inline-flex;
}
.event-back-footer {
  color: #e0f2fecc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid #94a3b82e;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 14px;
  font-size: 0.72rem;
  display: flex;
}
.factions-section {
  border-radius: 28px;
  margin-top: 32px;
  padding: 28px 24px 26px;
  position: relative;
  overflow: hidden;
}
.section-header {
  margin-bottom: 18px;
}
.section-header .section-label {
  font-size: 0.8rem;
}
.factions-rail {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #0000 0%, #000 5% 95%, #0000 100%);
  mask-image: linear-gradient(90deg, #0000 0%, #000 5% 95%, #0000 100%);
}
.factions-track {
  will-change: transform;
  gap: 18px;
  width: max-content;
  padding: 6px 0;
  transition: none;
  display: flex;
}
.faction-card {
  background: #0f172ab8;
  border: 1px solid #94a3b82e;
  border-radius: 22px;
  flex-shrink: 0;
  width: 280px;
  height: 190px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px #02061761;
}
.faction-card img {
  object-fit: cover;
  filter: saturate(0.9) brightness(0.68);
  width: 100%;
  height: 100%;
  transform: scale(1.08);
}
.faction-overlay {
  background: linear-gradient(#0206171f, #020617d1);
  position: absolute;
  inset: 0;
}
.faction-content {
  z-index: 1;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 16px;
  display: flex;
  position: absolute;
  inset: auto 0 0;
}
.faction-name {
  letter-spacing: -0.04em;
  color: #f8fbff;
  font-size: 1.3rem;
  font-weight: 800;
}
.faction-members {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfdbfed1;
  font-size: 0.74rem;
}
.rulebook-page {
  border-radius: 28px;
  margin-top: 18px;
  padding: 28px 24px 30px;
}
.rulebook-header {
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  display: flex;
}
.rulebook-header h2 {
  letter-spacing: -0.05em;
  color: #f8fbff;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}
.rulebook-switch {
  background: #0f172a85;
  border: 1px solid #94a3b824;
  border-radius: 22px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin: 28px auto 26px;
  padding: 10px;
  display: grid;
  box-shadow:
    inset 0 1px #ffffff0a,
    0 20px 48px #0206171f;
}
.rulebook-tab {
  color: #e0f2feb8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  background: 0 0;
  border: none;
  border-radius: 14px;
  padding: 1.1rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 800;
  transition: all 0.2s;
}
.rulebook-tab.is-active {
  color: #f8fbff;
  background: linear-gradient(135deg, #38bdf82e, #2563eb33);
  box-shadow:
    inset 0 0 0 1px #7dd3fc40,
    0 10px 26px #2563eb2e;
}
.rulebook-content {
  gap: 20px;
  display: grid;
}
.rulebook-item {
  background: #0f172a61;
  border: 1px solid #94a3b81f;
  border-radius: 18px;
  padding: 18px 18px 16px;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.rulebook-item.is-expanded {
  background: #0a111c85;
  border-color: #7dd3fc1f;
  box-shadow: inset 0 0 0 1px #94a3b80a;
}
.rulebook-section-head {
  cursor: pointer;
  text-align: left;
  background: 0 0;
  border: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  display: flex;
}
.rulebook-icon {
  color: #a5d8ff;
  letter-spacing: 0.08em;
  background: #3b82f61a;
  border-radius: 10px;
  place-items: center;
  min-width: 48px;
  height: 32px;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-grid;
  box-shadow: inset 0 0 0 1px #7dd3fc1f;
}
.rulebook-item h3 {
  color: #f8fbff;
  letter-spacing: -0.04em;
  flex: 1;
  margin: 0;
  font-size: 1.3rem;
}
.rulebook-toggle {
  color: #dbeafe;
  flex-shrink: 0;
  place-items: center;
  width: 24px;
  height: 24px;
  transition: transform 0.25s;
  display: inline-grid;
}
.rulebook-toggle:before {
  content: "";
  border-bottom: 2px solid;
  border-right: 2px solid;
  width: 8px;
  height: 8px;
  transition: transform 0.25s;
  display: block;
  transform: rotate(45deg) translateY(-1px);
}
.rulebook-item.is-expanded .rulebook-toggle:before {
  transform: rotate(225deg) translateY(-1px);
}
.rulebook-list {
  color: #e0f2fec7;
  margin: 16px 0 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.8;
}
.rulebook-list li {
  margin-bottom: 0.45rem;
  padding-left: 0.15rem;
}
.rulebook-list li::marker {
  color: #7dd3fc;
}
.login-float-button {
  z-index: 30;
  color: #e0f2fee6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  background: #0a111c85;
  border: 1px solid #94a3b82e;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
  position: fixed;
  bottom: 26px;
  right: 28px;
  box-shadow: 0 12px 30px #02061742;
}
.login-float-button:hover {
  background: #0f172aad;
  border-color: #7dd3fc38;
  transform: translateY(-1px);
}
.dashboard-page {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 26px;
  margin-top: 28px;
  animation: 0.55s ease-out both fadeUp;
  display: grid;
}
.dashboard-sidebar {
  border-radius: 24px;
  flex-direction: column;
  align-self: start;
  gap: 8px;
  min-height: 540px;
  padding: 22px 14px;
  display: flex;
  position: sticky;
  top: 24px;
}
.dashboard-sidebar-head {
  flex-direction: column;
  gap: 7px;
  padding: 4px 10px 28px;
  display: flex;
}
.dashboard-sidebar-head strong {
  color: #f8fbff;
  font-size: 1.08rem;
}
.dashboard-kicker,
.admin-live-dot,
.admin-count {
  color: #7dd3fc;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 800;
}
.dashboard-nav-item {
  color: #e0f2fea3;
  text-align: left;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 12px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  display: flex;
}
.dashboard-nav-item span {
  color: #7dd3fc8a;
  font-size: 0.62rem;
}
.dashboard-nav-item:hover,
.dashboard-nav-item.is-active {
  color: #f8fbff;
  background: #38bdf81a;
  border-color: #7dd3fc29;
}
.dashboard-sidebar-footer {
  color: #bfdbfe94;
  border-top: 1px solid #94a3b81f;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 18px 10px 4px;
  font-size: 0.65rem;
  display: flex;
}
.dashboard-sidebar-footer .status-dot {
  width: 7px;
  height: 7px;
}
.dashboard-main {
  min-width: 0;
}
.dashboard-header,
.admin-section-heading,
.admin-group-title,
.file-name-row,
.file-actions,
.admin-card-topline {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}
.dashboard-header {
  padding: 12px 2px 30px;
}
.dashboard-header h1,
.admin-section-heading h2 {
  color: #f8fbff;
  letter-spacing: -0.05em;
  margin: 0;
}
.dashboard-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}
.dashboard-exit {
  color: #e0f2feb3;
  cursor: pointer;
  background: 0 0;
  border: none;
  font-size: 0.75rem;
}
.dashboard-exit span {
  color: #7dd3fc;
  margin-left: 5px;
  font-size: 1rem;
}
.dashboard-user-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  display: flex;
}
.dashboard-user {
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 800;
}
.dashboard-logout {
  color: #fca5a5bf;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 800;
}
.admin-section {
  background: #0a121e80;
  border: 1px solid #94a3b824;
  border-radius: 24px;
  margin-bottom: 24px;
  padding: 26px;
  box-shadow:
    inset 0 1px #ffffff0a,
    0 20px 60px #02061738;
}
.admin-section-heading {
  align-items: flex-end;
  margin-bottom: 26px;
}
.admin-section-heading h2 {
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}
.admin-heading-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  display: flex;
}
.admin-search {
  background: #0206175c;
  border: 1px solid #94a3b829;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  width: min(100%, 270px);
  padding: 8px 11px;
  display: flex;
}
.admin-search span {
  color: #7dd3fc;
  font-size: 1.15rem;
  line-height: 1;
}
.admin-search input {
  color: #f8fbff;
  width: 100%;
  min-width: 0;
  font: inherit;
  background: 0 0;
  border: none;
  outline: none;
  font-size: 0.72rem;
}
.admin-search input::placeholder {
  color: #bfdbfe73;
}
.admin-count {
  color: #bfdbfe94;
  white-space: nowrap;
}
.admin-rule-group + .admin-rule-group {
  margin-top: 28px;
}
.admin-group-title {
  color: #dbeafe;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 800;
}
.admin-group-title small {
  color: #bfdbfe75;
  font-size: 0.65rem;
  font-weight: 500;
}
.admin-rule-grid,
.file-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}
.admin-rule-card,
.file-card {
  background: #0f172a75;
  border: 1px solid #94a3b824;
  border-radius: 16px;
  min-width: 0;
  padding: 16px;
}
.admin-card-topline {
  margin-bottom: 16px;
}
.admin-live-dot {
  color: #86efac;
  font-size: 0.58rem;
}
.admin-rule-card label {
  color: #bfdbfe8f;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 12px;
  font-size: 0.62rem;
  font-weight: 800;
  display: block;
}
.admin-rule-card input,
.admin-rule-card textarea {
  color: #f8fbff;
  width: 100%;
  font: inherit;
  resize: vertical;
  background: #02061761;
  border: 1px solid #94a3b826;
  border-radius: 9px;
  outline: none;
  margin-top: 7px;
  padding: 10px 11px;
  font-size: 0.82rem;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    background 0.2s;
  display: block;
}
.admin-rule-card input:focus,
.admin-rule-card textarea:focus {
  background: #02061794;
  border-color: #7dd3fc80;
}
.upload-button {
  color: #e0f2fe;
  cursor: pointer;
  background: #38bdf81a;
  border: 1px solid #7dd3fc40;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 0.72rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
}
.upload-button span {
  color: #7dd3fc;
  font-size: 1.1rem;
}
.upload-button input {
  display: none;
}
.upload-dropzone {
  color: #e0f2fea3;
  background: #38bdf80a;
  border: 1px dashed #7dd3fc4d;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 100px;
  margin-bottom: 18px;
  padding: 18px;
  font-size: 0.72rem;
  display: flex;
}
.upload-dropzone strong {
  color: #e0f2fe;
  font-size: 0.8rem;
}
.upload-symbol {
  color: #7dd3fc;
  border: 1px solid #7dd3fc40;
  border-radius: 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 1.2rem;
  display: grid;
}
.file-notice {
  color: #86efac;
  margin: -4px 0 14px;
  font-size: 0.72rem;
}
.file-preview {
  background: #02061780;
  border-radius: 10px;
  place-items: center;
  height: 126px;
  display: grid;
  overflow: hidden;
}
.file-preview img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.file-type-icon {
  color: #7dd3fc;
  letter-spacing: 0.1em;
  border: 1px solid #7dd3fc52;
  border-radius: 8px;
  place-items: center;
  width: 58px;
  height: 66px;
  font-size: 0.65rem;
  font-weight: 900;
  display: grid;
}
.file-card-body {
  padding-top: 12px;
}
.file-name-row {
  align-items: flex-start;
}
.file-name-row strong {
  color: #f8fbff;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 0.8rem;
  overflow: hidden;
}
.file-name-row span {
  color: #bfdbfe7a;
  flex-shrink: 0;
  font-size: 0.62rem;
}
.file-actions {
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}
.file-actions a,
.file-actions button {
  color: #7dd3fc;
  cursor: pointer;
  background: 0 0;
  border: none;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}
.file-actions a:hover,
.file-actions button:hover {
  color: #e0f2fe;
}
.file-actions .rename-button {
  color: #e0f2fe9e;
}
.file-actions .delete-button {
  color: #fca5a5;
}
.file-actions .delete-button:hover {
  color: #fecaca;
}
.empty-files {
  color: #bfdbfe80;
  text-align: center;
  border: 1px dashed #94a3b82e;
  border-radius: 12px;
  grid-column: 1/-1;
  padding: 28px;
  font-size: 0.8rem;
}
.access-page {
  min-width: 0;
}
.access-heading {
  align-items: center;
}
.access-tabs {
  gap: 7px;
  margin-bottom: 22px;
  padding-bottom: 3px;
  display: flex;
  overflow-x: auto;
}
.access-tabs button {
  color: #e0f2fe99;
  cursor: pointer;
  background: #0f172a5c;
  border: 1px solid #94a3b824;
  border-radius: 9px;
  flex: none;
  padding: 10px 13px;
  font-size: 0.68rem;
  font-weight: 800;
}
.access-tabs button.is-active {
  color: #f8fbff;
  background: #38bdf821;
  border-color: #7dd3fc4d;
}
.access-mode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}
.access-mode-card {
  color: #dbeafe;
  text-align: left;
  cursor: pointer;
  background: #0f172a5c;
  border: 1px solid #94a3b824;
  border-radius: 14px;
  flex-direction: column;
  gap: 8px;
  min-height: 112px;
  padding: 15px;
  transition:
    border-color 0.2s,
    background 0.2s;
  display: flex;
}
.access-mode-card span {
  font-size: 0.9rem;
  font-weight: 800;
}
.access-mode-card small {
  color: #bfdbfe8c;
  font-size: 0.68rem;
  line-height: 1.45;
}
.access-mode-card.is-active {
  background: #38bdf81f;
  border-color: #7dd3fc7a;
  box-shadow: inset 0 0 0 1px #7dd3fc14;
}
.access-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  display: grid;
}
.access-form-grid label,
.access-form-card label {
  color: #bfdbfe94;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-direction: column;
  gap: 7px;
  font-size: 0.64rem;
  font-weight: 800;
  display: flex;
}
.access-wide {
  grid-column: 1/-1;
}
.access-form-grid input,
.access-form-grid textarea,
.access-form-card input,
.access-form-card textarea,
.access-form-card select {
  color: #f8fbff;
  width: 100%;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  background: #02061761;
  border: 1px solid #94a3b829;
  border-radius: 9px;
  outline: none;
  padding: 11px 12px;
  font-size: 0.8rem;
}
.access-form-grid input:focus,
.access-form-grid textarea:focus,
.access-form-card input:focus,
.access-form-card textarea:focus,
.access-form-card select:focus {
  border-color: #7dd3fc7a;
}
.access-api-note {
  color: #bfdbfe80;
  font-size: 0.68rem;
}
.access-api-note code {
  color: #7dd3fc;
}
.access-content {
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  display: grid;
}
.access-content:has(.question-form-card) {
  grid-template-columns: 1fr;
}
.access-form-card,
.access-list-card {
  background: #0f172a4d;
  border: 1px solid #94a3b824;
  border-radius: 15px;
  padding: 18px;
}
.access-form-card h3,
.access-list-card h3 {
  color: #f8fbff;
  margin: 0 0 16px;
  font-size: 1rem;
}
.access-form-card {
  align-content: start;
  gap: 13px;
  display: grid;
}
.answer-grid {
  gap: 10px;
  display: grid;
}
.question-form-card textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.55;
}
.answer-editor-heading {
  color: #bfdbfe94;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.64rem;
  font-weight: 800;
  display: flex;
}
.add-answer-button {
  color: #7dd3fc;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  background: 0 0;
  border: none;
  padding: 0;
  font-size: 0.66rem;
  font-weight: 800;
}
.answer-editor-row {
  grid-template-columns: minmax(0, 1fr) 26px;
  align-items: end;
  gap: 8px;
  display: grid;
}
.answer-editor-row > .delete-button {
  background: #f871710f;
  border: 1px solid #fca5a540;
  border-radius: 7px;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 1rem;
}
.access-form-card .save-rules-button {
  justify-self: start;
}
.access-list-card {
  min-width: 0;
}
.access-wide-card {
  grid-column: 1/-1;
}
.access-list-header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}
.access-list-header h3 {
  margin-bottom: 0;
}
.access-list-row {
  border-top: 1px solid #94a3b81c;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  display: flex;
}
.access-list-row > div {
  min-width: 0;
}
.access-row-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  display: flex;
}
.access-modal-backdrop {
  z-index: 110;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #020617b8;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.access-detail-modal {
  background: linear-gradient(#1e212afa, #12141bfa);
  border: 1px solid #94a3b82e;
  border-radius: 16px;
  width: min(100%, 560px);
  padding: 24px;
  animation: 0.2s ease-out both fadeUp;
  box-shadow: 0 28px 80px #02061799;
}
.access-detail-modal dl {
  grid-template-columns: minmax(110px, 0.35fr) 1fr;
  gap: 10px 18px;
  margin: 20px 0;
  display: grid;
}
.access-detail-modal dt {
  color: #bfdbfe8c;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.access-detail-modal dd {
  color: #f8fbff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.access-list-row strong,
.access-list-row small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}
.access-list-row strong {
  color: #f8fbff;
  font-size: 0.78rem;
}
.access-list-row small {
  color: #bfdbfe80;
  max-width: 100%;
  margin-top: 4px;
  font-size: 0.65rem;
}
.checkbox-label {
  align-items: center;
  flex-direction: row !important;
  gap: 8px !important;
  display: flex !important;
}
.checkbox-label input {
  accent-color: #38bdf8;
  width: auto;
}
.delete-button,
.rename-button {
  flex-shrink: 0;
}
.rename-modal-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #020617b8;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.rename-modal {
  background: linear-gradient(#1e212afa, #12141bfa);
  border-radius: 20px;
  width: min(100%, 470px);
  padding: 24px;
  animation: 0.2s ease-out both fadeUp;
  box-shadow: 0 28px 80px #02061799;
}
.rename-modal-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
  display: flex;
}
.rename-modal-header h2 {
  color: #f8fbff;
  letter-spacing: -0.05em;
  margin: 8px 0 0;
  font-size: 1.7rem;
}
.rename-modal-close {
  color: #e0f2feb8;
  cursor: pointer;
  background: #0f172a80;
  border: 1px solid #94a3b82e;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  font-size: 1.35rem;
  line-height: 1;
}
.rename-modal-field {
  color: #bfdbfe9e;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 800;
  display: block;
}
.rename-modal-field input {
  color: #f8fbff;
  width: 100%;
  font: inherit;
  background: #02061780;
  border: 1px solid #7dd3fc47;
  border-radius: 10px;
  outline: none;
  margin-top: 8px;
  padding: 13px 14px;
  font-size: 0.9rem;
  display: block;
}
.rename-modal-field input:focus {
  border-color: #7dd3fcb8;
  box-shadow: 0 0 0 3px #38bdf81a;
}
.rule-version-note {
  color: #bfdbfe8f;
  margin: 14px 0 0;
  font-size: 0.74rem;
  line-height: 1.55;
}
.rename-modal-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  display: flex;
}
.rename-cancel {
  color: #e0f2feb3;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #94a3b82e;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
}
.admin-rule-switch {
  background: #0206173d;
  border: 1px solid #94a3b81f;
  border-radius: 14px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  display: grid;
}
.admin-rule-switch button {
  color: #e0f2fe9e;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 9px;
  padding: 10px;
  font-size: 0.72rem;
  font-weight: 800;
}
.admin-rule-switch button.is-active {
  color: #f8fbff;
  background: #38bdf81f;
  border-color: #7dd3fc33;
}
.admin-rule-list {
  gap: 12px;
  display: grid;
}
.admin-rule-position {
  position: relative;
}
.drop-indicator {
  background: #7dd3fc;
  border-radius: 999px;
  height: 3px;
  margin: -7px 14px 4px;
  display: block;
  box-shadow: 0 0 14px #38bdf8f2;
}
.admin-rule-item {
  cursor: grab;
}
.admin-rule-item:active {
  cursor: grabbing;
}
.drag-handle {
  cursor: grab;
  color: #bfdbfe6b;
  letter-spacing: -0.25em;
  font-size: 1.2rem;
  line-height: 1;
  transform: rotate(90deg);
}
.drag-handle:active {
  cursor: grabbing;
}
.admin-inline-title {
  color: #f8fbff;
  min-width: 0;
  font: inherit;
  letter-spacing: -0.04em;
  background: 0 0;
  border: 1px solid #0000;
  border-radius: 6px;
  outline: none;
  flex: 1;
  padding: 2px 4px;
  font-size: 1.3rem;
  font-weight: 800;
}
.admin-inline-title:hover,
.admin-inline-title:focus {
  background: #0206174d;
  border-color: #7dd3fc47;
}
.admin-inline-section {
  color: #a5d8ff;
  width: 48px;
  min-width: 48px;
  height: 32px;
  font: inherit;
  letter-spacing: 0.08em;
  text-align: center;
  background: #3b82f61a;
  border: 1px solid #0000;
  border-radius: 10px;
  outline: none;
  place-items: center;
  padding: 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-grid;
  box-shadow: inset 0 0 0 1px #7dd3fc1f;
}
.admin-inline-section:hover,
.admin-inline-section:focus {
  background: #3b82f633;
  border-color: #7dd3fc6b;
}
.admin-rule-fields {
  border-top: 1px solid #94a3b81f;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.8fr);
  gap: 16px;
  margin: 18px 0 2px 70px;
  padding-top: 16px;
  display: grid;
}
.admin-rule-fields label {
  color: #bfdbfe8f;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 800;
}
.admin-rule-fields input,
.admin-rule-fields textarea {
  color: #f8fbff;
  width: 100%;
  font: inherit;
  resize: vertical;
  background: #02061761;
  border: 1px solid #94a3b826;
  border-radius: 9px;
  outline: none;
  margin-top: 7px;
  padding: 10px 11px;
  font-size: 0.82rem;
  line-height: 1.5;
  display: block;
}
.admin-rule-fields input:focus,
.admin-rule-fields textarea:focus {
  border-color: #7dd3fc80;
}
.admin-rule-footer {
  border-top: 1px solid #94a3b81f;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
}
.new-rule-button,
.save-rules-button {
  cursor: pointer;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
}
.new-rule-button {
  color: #dbeafe;
  background: #38bdf814;
  border: 1px solid #7dd3fc38;
}
.save-rules-button {
  color: #eff6ff;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border: none;
  min-width: 112px;
  box-shadow: 0 12px 24px #2563eb3d;
}
@media (width<=600px) {
  .admin-rule-fields {
    grid-template-columns: 1fr;
    margin-left: 0;
  }
  .rulebook-section-head .drag-handle {
    display: none;
  }
  .admin-inline-title {
    font-size: 1rem;
  }
}
.admin-rule-fields {
  margin: 18px 0 2px 70px;
  display: block;
}
.admin-search-match {
  background: #38bdf80d;
  border-left: 2px solid #7dd3fc8c;
  margin: 14px 0 0 70px;
  padding: 9px 11px;
}
.admin-search-match span {
  color: #7dd3fcad;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.58rem;
  font-weight: 800;
}
.admin-search-match p {
  color: #e0f2fe9e;
  margin: 4px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
}
.admin-search-match mark {
  color: #fef08a;
  background: #facc1538;
  border-radius: 3px;
}
.admin-description-editor > span {
  color: #bfdbfe8f;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 7px;
  font-size: 0.62rem;
  font-weight: 800;
  display: block;
}
.admin-inline-description {
  color: #e0f2fec7;
  white-space: pre-wrap;
  cursor: text;
  border: 1px solid #0000;
  border-radius: 6px;
  outline: none;
  min-height: 28px;
  padding: 2px 4px;
  font-size: 0.92rem;
  line-height: 1.8;
}
.admin-inline-description:hover,
.admin-inline-description:focus {
  background: #0206174d;
  border-color: #7dd3fc47;
}
@media (width<=600px) {
  .admin-rule-fields,
  .admin-search-match {
    margin-left: 0;
  }
  .admin-inline-description {
    font-size: 0.8rem;
    line-height: 1.7;
  }
}
@media (width<=980px) {
  .dashboard-page {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 0;
    display: grid;
    position: static;
  }
  .dashboard-sidebar-head {
    padding-bottom: 8px;
  }
  .dashboard-sidebar-footer {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .admin-rule-grid,
  .file-grid,
  .access-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .access-content {
    grid-template-columns: 1fr;
  }
}
@media (width<=600px) {
  .dashboard-page {
    gap: 14px;
    margin-top: 18px;
  }
  .dashboard-sidebar,
  .admin-section {
    border-radius: 18px;
    padding: 16px;
  }
  .dashboard-header,
  .admin-section-heading,
  .admin-group-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-header {
    padding: 10px 2px 22px;
  }
  .admin-section-heading {
    gap: 10px;
  }
  .admin-heading-tools,
  .admin-search {
    justify-content: flex-start;
    width: 100%;
  }
  .admin-group-title small {
    font-size: 0.58rem;
  }
  .admin-rule-grid,
  .file-grid,
  .access-mode-grid,
  .access-form-grid {
    grid-template-columns: 1fr;
  }
  .access-wide {
    grid-column: auto;
  }
  .access-list-header {
    flex-direction: column;
    align-items: stretch;
  }
  .access-list-header .admin-search {
    max-width: none;
  }
  .upload-button {
    justify-content: center;
    width: 100%;
  }
  .upload-dropzone {
    text-align: center;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.map-page {
  gap: 20px;
  margin-top: 22px;
  display: grid;
}
.map-header {
  border-radius: 24px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  display: flex;
}
.map-header h2 {
  color: #f8fbff;
  letter-spacing: -0.05em;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}
.map-status {
  color: #e0f2fed1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
}
.map-minimap-shell {
  border-radius: 28px;
  padding: 18px;
}
.map-controls {
  background: #0f172a85;
  border: 1px solid #94a3b824;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  display: flex;
}
.map-controls button {
  color: #f8fbff;
  cursor: pointer;
  background: #0f172ab8;
  border: 1px solid #94a3b829;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  font-weight: 700;
}
.map-controls .map-reset {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: auto;
  padding: 0 0.9rem;
  font-size: 0.72rem;
}
.map-controls input[type="range"] {
  accent-color: #60a5fa;
  width: min(100%, 320px);
}
.map-viewport {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  background: #020617b3;
  border: 1px solid #94a3b838;
  border-radius: 24px;
  width: min(100%, 980px);
  height: min(72vh, 760px);
  min-height: 560px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px #ffffff0a,
    0 24px 48px #02061752;
}
.map-viewport:active {
  cursor: grabbing;
}
.map-image-layer {
  transform-origin: 50%;
  will-change: transform;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.map-real-image {
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1) brightness(0.9);
  width: 100%;
  height: 100%;
  display: block;
}
.map-real-blip {
  z-index: 2;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 3px #0f172acc,
    0 0 16px #ffffff73;
}
.map-real-blip:before {
  content: "";
  border: 1px solid #ffffff38;
  border-radius: 50%;
  position: absolute;
  inset: -5px;
}
.login-page {
  place-items: center;
  min-height: 70vh;
  padding: 40px 20px;
  display: grid;
}
@media (width<=980px) {
  .page-shell {
    width: min(100% - 18px, 1280px);
    padding-top: 18px;
  }
  .topbar {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 16px 18px;
    position: relative;
  }
  .brand-wrap {
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    display: flex;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .nav {
    opacity: 0;
    pointer-events: none;
    z-index: 120;
    background: #0f172af5;
    border: 1px solid #94a3b82e;
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 12px;
    transition:
      opacity 0.2s,
      transform 0.2s;
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px #02061761;
  }
  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    text-align: left;
    background: #0f172a80;
    border-radius: 10px;
    width: 100%;
    padding: 0.8rem 0.9rem;
  }
  .nav-link:after {
    display: none;
  }
  .nav-actions {
    gap: 10px;
    width: auto;
    min-width: 0;
  }
  .hero-backdrop {
    min-height: 620px;
  }
  .hero-content h1 {
    font-size: clamp(3.4rem, 10vw, 6rem);
  }
  .info-band {
    grid-template-columns: 1fr;
  }
  .event-slider {
    gap: 12px;
  }
  .event-arrow:first-of-type {
    left: 8px;
  }
  .event-arrow:last-of-type {
    right: 8px;
  }
  .map-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-controls {
    flex-wrap: wrap;
  }
  .map-controls input[type="range"] {
    order: 3;
    width: 100%;
  }
}
@media (width<=700px) {
  .topbar {
    gap: 14px;
  }
  .nav-actions {
    justify-content: center;
    width: 100%;
  }
  .nav-link {
    font-size: 0.75rem;
  }
  .discord-button,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-metrics {
    gap: 10px;
  }
  .metric-card {
    flex: 1;
    min-width: 110px;
  }
  .server-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .event-card-shell {
    height: 260px;
  }
  .event-content h3,
  .event-back-header h3 {
    font-size: clamp(1.4rem, 6vw, 2.2rem);
  }
  .faction-card {
    width: 220px;
    height: 165px;
  }
  .rulebook-switch {
    grid-template-columns: 1fr;
  }
  .map-header h2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }
  .map-viewport {
    height: 440px;
    min-height: 360px;
  }
  .map-controls {
    gap: 8px;
  }
  .map-controls button {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}
@media (width<=520px) {
  .page-shell {
    width: min(100% - 12px, 1280px);
  }
  .topbar {
    padding: 14px 12px;
  }
  .brand-wrap {
    gap: 8px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 0.68rem;
  }
  .brand-name {
    letter-spacing: 0.1em;
    font-size: 0.9rem;
  }
  .nav {
    gap: 8px 12px;
  }
  .nav-link {
    font-size: 0.68rem;
  }
  .nav-actions {
    gap: 8px;
  }
  .shop-link,
  .discord-button {
    font-size: 0.72rem;
  }
  .hero-backdrop {
    min-height: 520px;
  }
  .hero-content {
    padding-top: 42px;
  }
  .eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.62rem;
  }
  .subtitle {
    font-size: 0.92rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    display: grid;
  }
  .metric-card {
    min-width: 0;
    padding: 0.75rem 0.4rem;
  }
  .metric-value {
    font-size: 1rem;
  }
  .metric-label {
    letter-spacing: 0.08em;
  }
  .info-card,
  .factions-section,
  .rulebook-page,
  .map-minimap-shell,
  .map-header {
    padding-left: 14px;
    padding-right: 14px;
  }
  .server-grid {
    grid-template-columns: 1fr 1fr;
  }
  .event-slider {
    margin-top: 12px;
  }
  .event-arrow {
    font-size: 2.1rem;
  }
  .event-arrow:first-of-type {
    left: 2px;
  }
  .event-arrow:last-of-type {
    right: 2px;
  }
  .event-card-shell {
    height: 240px;
  }
  .event-meta,
  .event-back-footer {
    gap: 8px;
    font-size: 0.56rem;
  }
  .rulebook-item {
    padding: 14px 12px;
  }
  .rulebook-item h3 {
    font-size: 1rem;
  }
  .rulebook-list {
    font-size: 0.8rem;
    line-height: 1.7;
  }
  .login-card {
    padding: 20px 16px 18px;
  }
  .login-back-button {
    top: 12px;
    left: 12px;
  }
  .map-header {
    text-align: center;
    align-items: center;
  }
  .map-status {
    letter-spacing: 0.08em;
  }
  .map-controls {
    padding: 8px 10px;
  }
  .map-controls .map-reset {
    width: 100%;
    padding: 0.7rem 0.8rem;
  }
  .map-viewport {
    height: 360px;
    min-height: 320px;
  }
  .login-float-button {
    padding: 0.56rem 0.8rem;
    font-size: 0.62rem;
    bottom: 14px;
    right: 14px;
  }
}
.login-card {
  background: linear-gradient(#1e212af5, #12141bf0);
  border: 1px solid #747f8d38;
  border-radius: 20px;
  width: min(100%, 430px);
  padding: 28px 24px 26px;
  position: relative;
  box-shadow:
    0 18px 46px #02061757,
    inset 0 1px #ffffff0a;
}
.login-back-button {
  color: #e0f2fec7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: #0f172a80;
  border: 1px solid #94a3b81f;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-size: 0.66rem;
  font-weight: 700;
  position: absolute;
  top: 18px;
  left: 18px;
}
.login-brand {
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  padding-top: 22px;
  display: flex;
}
.login-brand .brand-mark {
  width: auto;
  height: auto;
  box-shadow: none;
  color: #f8fbff;
  letter-spacing: -0.08em;
  background: 0 0;
  border: none;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
}
.login-header {
  text-align: center;
  margin-bottom: 22px;
}
.login-header .eyebrow {
  color: #b5b9ff;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 0.7rem;
}
.login-header h2 {
  color: #f8fbff;
  letter-spacing: -0.06em;
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
}
.discord-login-button {
  color: #f8fbff;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: linear-gradient(135deg, #5865f22e, #58a6ff1f);
  border: 1px solid #5865f26b;
  border-radius: 14px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 1rem 1.1rem;
  font-size: 0.96rem;
  font-weight: 800;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
}
.discord-login-button:hover {
  border-color: #8a99ff8f;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px #5865f22e;
}
.discord-badge {
  width: 20px;
  height: 20px;
  box-shadow: none;
  color: #fff;
  background: 0 0;
  border: none;
  border-radius: 0;
  place-items: center;
  display: inline-grid;
}
.discord-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}
.login-note {
  text-align: center;
  color: #e0f2fead;
  margin: 18px 0 0;
  font-size: 0.8rem;
  line-height: 1.7;
}
@keyframes scrollFactions {
  0% {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-50%);
  }
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (width<=760px) {
  .page-shell {
    width: min(100% - 18px, 1280px);
    padding-top: 16px;
  }
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 14px;
  }
  .brand-wrap,
  .nav-actions {
    min-width: unset;
  }
  .nav {
    flex-wrap: wrap;
    order: 3;
    gap: 14px 20px;
    width: 100%;
  }
  .hero-backdrop {
    min-height: 620px;
  }
  .hero-content {
    padding-top: 56px;
  }
  .subtitle {
    font-size: 1rem;
  }
  .metric-card {
    min-width: 120px;
  }
}
