:root {
  --bg-base: #02120a;
  --bg-alt: #042014;
  --panel: rgba(8, 38, 23, 0.75);
  --panel-strong: rgba(8, 32, 22, 0.92);
  --text-main: #e6f4ec;
  --text-soft: #afccb9;
  --accent: #59ff6f;
  --accent-2: #8dff4a;
  --accent-3: #16a34a;
  --danger: #ff6259;
  --ring: rgba(89, 255, 111, 0.32);
  --ring-strong: rgba(89, 255, 111, 0.58);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --hero-glow-color: #8dff4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: radial-gradient(circle at 12% 8%, #145d28 0%, var(--bg-base) 42%, #010b06 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.background-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

body.has-galaxy-bg .background-wrap {
  background:
    radial-gradient(circle at 20% 18%, rgba(120, 255, 138, 0.2), transparent 36%),
    radial-gradient(circle at 72% 24%, rgba(141, 255, 74, 0.22), transparent 36%),
    radial-gradient(circle at 50% 88%, rgba(26, 145, 73, 0.26), transparent 45%);
}

body.has-image-bg .background-wrap {
  background:
    linear-gradient(rgba(2, 14, 9, 0.68), rgba(1, 10, 7, 0.82)),
    var(--background-image) center / cover no-repeat;
  filter: saturate(1.05) blur(0);
}

.galaxy-layer {
  position: absolute;
  inset: -12%;
}

.galaxy-stars {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.75) 0 1.2px, transparent 1.2px),
    radial-gradient(circle at 28% 71%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 82% 25%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.35) 0 1.3px, transparent 1.3px),
    radial-gradient(circle at 72% 82%, rgba(255, 255, 255, 0.5) 0 1.2px, transparent 1.2px),
    radial-gradient(circle at 14% 86%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px);
  opacity: 0.5;
  transform: scale(1.15);
  animation: drift-stars 42s linear infinite;
}

.galaxy-nebula {
  background:
    radial-gradient(circle at 78% 48%, rgba(89, 255, 111, 0.25), transparent 38%),
    radial-gradient(circle at 40% 72%, rgba(54, 188, 98, 0.2), transparent 42%),
    radial-gradient(circle at 16% 66%, rgba(141, 255, 74, 0.18), transparent 36%);
  mix-blend-mode: screen;
  opacity: 0.68;
  animation: pulse-nebula 16s ease-in-out infinite alternate;
}

.galaxy-vignette {
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.62) 100%);
}

body.has-image-bg .galaxy-layer {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(6px);
  background: linear-gradient(rgba(3, 20, 13, 0.86), rgba(3, 20, 13, 0.35));
  border-bottom: 1px solid rgba(73, 239, 122, 0.15);
}

.main-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(73, 239, 122, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  color: var(--text-soft);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
  background: rgba(73, 239, 122, 0.1);
  box-shadow: 0 0 0 1px rgba(73, 239, 122, 0.32);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 88px 22px;
}

.section h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 15px;
}

.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(250px, 48vw);
  margin-bottom: 4px;
  animation: slow-bounce 4.8s ease-in-out infinite;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  width: min(250px, 50vw);
  height: min(250px, 50vw);
  background: radial-gradient(circle at center, var(--hero-glow-color) 0%, rgba(141, 255, 74, 0.5) 36%, rgba(141, 255, 74, 0.12) 66%, transparent 78%);
  filter: blur(14px) saturate(1.2);
  animation: aura-pulse 5.8s ease-in-out infinite;
}

.hero-logo-wrap::after {
  content: "";
  position: absolute;
  width: min(170px, 34vw);
  height: min(170px, 34vw);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(182, 255, 188, 0.55), rgba(182, 255, 188, 0.12) 62%, transparent 76%);
  filter: blur(5px);
  animation: aura-pulse 4.6s ease-in-out infinite reverse;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(230px, 42vw);
  filter:
    drop-shadow(0 0 20px rgba(141, 255, 74, 0.7))
    drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
}

.hero-logo-wrap:hover .hero-logo,
.hero-logo-wrap:focus-within .hero-logo {
  transform: scale(1.08) rotate(-4deg);
  filter:
    drop-shadow(0 0 28px rgba(161, 255, 102, 0.92))
    drop-shadow(0 24px 36px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #8dff4a 0%, #6fff88 36%, #c9ff8a 68%, #38d56d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px rgba(111, 255, 136, 0.2);
}

.hero-subtitle {
  margin: 0;
  color: #b9f2c7;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.83rem;
  font-weight: 700;
}

.hero-description {
  margin: 0;
  max-width: 680px;
  color: var(--text-soft);
  font-size: clamp(1.03rem, 2vw, 1.25rem);
}

.ip-card {
  width: min(560px, 100%);
  margin-top: 8px;
  padding: 14px 15px;
  background: linear-gradient(140deg, rgba(8, 36, 21, 0.92), rgba(5, 25, 14, 0.96));
  border: 1px solid rgba(73, 239, 122, 0.28);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(73, 239, 122, 0.06), var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.glint-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glint-card::before {
  content: "";
  position: absolute;
  top: -52%;
  left: -118%;
  width: 62%;
  height: 210%;
  background: linear-gradient(
    104deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.06) 35%,
    rgba(255, 255, 255, 0.56) 49%,
    rgba(255, 255, 255, 0.1) 64%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  filter: blur(0.6px);
  will-change: transform, opacity;
  transform: translateX(-260%) skewX(-24deg);
  animation: glint-sweep 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.glint-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 240, 180, 0.14) 50%,
    rgba(255, 255, 255, 0) 65%
  );
  opacity: 0;
  will-change: transform, opacity;
  transform: translateX(-190%) skewX(-18deg);
  animation: glint-soft 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.ip-copy-block {
  text-align: left;
  position: relative;
  z-index: 1;
}

.ip-label {
  margin: 0;
  color: #80a88f;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

.ip-value {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.9rem);
  line-height: 1.1;
  font-family: var(--font-display);
  color: var(--accent);
}

.copy-btn {
  position: relative;
  z-index: 1;
}

.hero-stats {
  margin-top: 8px;
  display: inline-flex;
  gap: 16px;
  color: #93b5a0;
  font-size: 0.92rem;
}

.hero-actions,
.empire-actions,
.footer-actions,
.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.28s ease, background 0.28s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 18px rgba(73, 239, 122, 0.18);
  color: #f0fff6;
  background: linear-gradient(130deg, rgba(9, 48, 29, 0.95), rgba(8, 35, 22, 0.95));
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(73, 239, 122, 0.45), 0 0 32px rgba(73, 239, 122, 0.38);
  animation: button-breathe 1.15s ease-in-out infinite alternate;
}

.btn.primary {
  background: linear-gradient(120deg, #8dff4a, #72f95d 52%, #49d95e);
  color: #06210f;
  box-shadow: 0 0 0 1px rgba(141, 255, 74, 0.42), 0 0 22px rgba(114, 249, 93, 0.34);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 0 0 1px rgba(173, 255, 114, 0.74), 0 0 34px rgba(114, 249, 93, 0.56);
}

.btn.secondary {
  background: linear-gradient(130deg, #1d7a44, #2ea75a);
  box-shadow: 0 0 0 1px rgba(101, 232, 129, 0.36), 0 0 20px rgba(46, 167, 90, 0.34);
}

.about,
.players,
.empire,
.tracker,
.legal {
  position: relative;
}

.about-wrap,
.players-panel,
.empire-panel,
.tracker-panel,
.legal-panel {
  margin-top: 22px;
  background: linear-gradient(145deg, rgba(4, 25, 15, 0.82), rgba(4, 19, 13, 0.95));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(73, 239, 122, 0.18);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}

.about-wrap,
.players-panel,
.empire-panel,
.tracker-panel,
.legal-panel,
.server-card,
.server-list-card,
.summary-pill,
.about-points li {
  transition: transform 0.26s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-wrap:hover,
.players-panel:hover,
.empire-panel:hover,
.tracker-panel:hover,
.legal-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 239, 122, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.about-copy {
  color: var(--text-soft);
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.01rem, 1.6vw, 1.2rem);
}

.about-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-points li {
  background: rgba(10, 41, 26, 0.76);
  border: 1px solid rgba(73, 239, 122, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  color: #c9e4d3;
}

.section-kicker {
  margin: 0 0 6px;
  color: #afff75;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
}

.players-total {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  color: var(--accent);
  line-height: 1;
}

.players-subtitle {
  margin: 2px 0 0;
  color: #8aa995;
}

.pull-error {
  margin: 10px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.pull-error-inline {
  color: var(--danger);
  font-weight: 700;
}

.pull-error-text {
  color: #ff8a83;
}

.server-cards {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.server-card {
  background: rgba(8, 35, 22, 0.9);
  border: 1px solid rgba(73, 239, 122, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
}

.server-card:hover,
.server-list-card:hover,
.summary-pill:hover,
.about-points li:hover {
  transform: translateY(-4px);
  border-color: rgba(73, 239, 122, 0.38);
}

.server-card h3 {
  margin: 0;
  font-size: 1rem;
}

.server-metadata {
  margin-top: 8px;
  color: #8eb09b;
  font-size: 0.92rem;
}

.server-online {
  margin-top: 8px;
  font-size: 2rem;
  font-family: var(--font-display);
  line-height: 1;
}

.server-online.error,
.server-list-online.error {
  color: var(--danger);
  font-size: 1.32rem;
  font-family: var(--font-body);
  font-weight: 800;
}

.server-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(73, 239, 122, 0.82);
}

.server-live-dot.offline {
  background: #f3b14f;
  box-shadow: 0 0 12px rgba(247, 167, 51, 0.75);
}

.server-live-dot.error {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 98, 89, 0.78);
}

.tracker-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9dd7af;
  font-weight: 600;
}

.tracker-link:hover,
.tracker-link:focus-visible {
  color: #c5f5d2;
}

.empire-title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.empire-description {
  margin: 8px auto 20px;
  max-width: 700px;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid rgba(73, 239, 122, 0.2);
  margin-top: 30px;
  background: rgba(2, 11, 7, 0.7);
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 26px 22px 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 12px;
}

.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-copy {
  margin: 0;
  text-align: center;
  color: #86a491;
}

.footer-actions {
  justify-content: flex-end;
}

.footer-socials {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(73, 239, 122, 0.24);
  background: linear-gradient(130deg, rgba(10, 42, 26, 0.88), rgba(8, 28, 19, 0.9));
  color: #c6ead4;
  box-shadow: 0 0 16px rgba(73, 239, 122, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.footer-social:hover,
.footer-social:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(73, 239, 122, 0.46);
  box-shadow: 0 0 24px rgba(73, 239, 122, 0.27);
}

.social-badge {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, #8dff4a, #38d56d);
  color: #0c1a10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.social-label {
  font-size: 0.88rem;
  font-weight: 700;
}

.footer-legal-links {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #89ac98;
  font-size: 0.94rem;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: #c6ecd5;
}

.copy-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(7, 31, 19, 0.94);
  border: 1px solid rgba(73, 239, 122, 0.4);
  color: #dbf6e6;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.tracker-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.tracker-subtitle {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.tracker-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-pill {
  background: rgba(10, 36, 23, 0.86);
  border: 1px solid rgba(73, 239, 122, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 180px;
}

.summary-pill .label {
  display: block;
  font-size: 0.73rem;
  color: #89a998;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.summary-pill .value {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-top: 6px;
}

.range-buttons {
  margin: 16px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tracker-events-row {
  margin: 2px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #91b29f;
  font-size: 0.82rem;
}

.tracker-events-row strong {
  color: #d9efdf;
  font-weight: 700;
}

.range-btn {
  border: 1px solid rgba(73, 239, 122, 0.2);
  background: rgba(9, 35, 22, 0.84);
  color: #8fb49f;
  border-radius: 9px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
}

.range-btn.active,
.range-btn:hover,
.range-btn:focus-visible {
  background: rgba(73, 239, 122, 0.2);
  color: #d7ffde;
  box-shadow: 0 0 0 1px rgba(73, 239, 122, 0.5);
}

.chart-wrap {
  background: rgba(7, 29, 19, 0.82);
  border: 1px solid rgba(73, 239, 122, 0.14);
  border-radius: 14px;
  padding: 12px;
}

.chart-wrap canvas {
  width: 100%;
  height: 320px;
  display: block;
  cursor: crosshair;
}

.server-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.server-list-card {
  background: rgba(8, 33, 22, 0.95);
  border: 1px solid rgba(73, 239, 122, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.server-list-card h3 {
  margin: 0;
  font-size: 1rem;
}

.server-list-meta {
  margin-top: 6px;
  color: #88ab98;
  font-size: 0.9rem;
}

.server-list-values {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.server-list-online {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.server-stat-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.server-stat {
  background: rgba(10, 39, 25, 0.9);
  border: 1px solid rgba(73, 239, 122, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.server-stat-label {
  font-size: 0.68rem;
  color: #87a896;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.server-stat-value {
  color: #d6efdf;
  font-size: 0.95rem;
  font-weight: 700;
}

.server-stat-value.error {
  color: var(--danger);
}

.legal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.legal-intro,
.legal-updated {
  color: var(--text-soft);
}

.legal-section + .legal-section {
  margin-top: 16px;
}

.legal-section h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.legal-section p {
  margin: 0;
  color: #c0ddca;
}

.legal-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #c0ddca;
}

.legal-list li + li {
  margin-top: 6px;
}

.ticket-form {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(89, 255, 111, 0.2);
}

.auth-form {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(89, 255, 111, 0.2);
}

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ticket-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #d5eddc;
  font-weight: 600;
}

.ticket-field input,
.ticket-field select,
.ticket-field textarea {
  border: 1px solid rgba(89, 255, 111, 0.24);
  background: rgba(6, 29, 18, 0.92);
  color: #e6f4ec;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.ticket-field input:focus,
.ticket-field select:focus,
.ticket-field textarea:focus {
  outline: none;
  border-color: rgba(89, 255, 111, 0.7);
  box-shadow: 0 0 0 3px rgba(89, 255, 111, 0.16);
}

.ticket-field textarea {
  resize: vertical;
  min-height: 140px;
}

.ticket-honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}

.ticket-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ticket-status {
  margin: 0;
  color: #c0ddca;
  font-weight: 600;
}

.ticket-status.error {
  color: #ff8a83;
}

.hidden {
  display: none !important;
}

.anim-enter,
.anim-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.985);
  filter: blur(5px);
  will-change: opacity, transform, filter;
}

.anim-enter.is-visible,
.anim-reveal.is-visible {
  animation: fade-pop-in 0.74s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--anim-delay, 0ms);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .anim-enter,
  .anim-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@keyframes drift-stars {
  0% {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  100% {
    transform: translate3d(-28px, -16px, 0) scale(1.15);
  }
}

@keyframes fade-pop-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.985);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes pulse-nebula {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.42;
  }
  100% {
    transform: scale(1.07) rotate(-3deg);
    opacity: 0.82;
  }
}

@keyframes slow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes glint-sweep {
  0% {
    transform: translateX(-260%) skewX(-24deg);
    opacity: 0;
  }
  14% {
    transform: translateX(-260%) skewX(-24deg);
    opacity: 0;
  }
  22% {
    opacity: 0.22;
  }
  36% {
    transform: translateX(360%) skewX(-24deg);
    opacity: 0.92;
  }
  44% {
    transform: translateX(360%) skewX(-24deg);
    opacity: 0;
  }
  60% {
    transform: translateX(360%) skewX(-24deg);
    opacity: 0;
  }
  68% {
    opacity: 0.2;
  }
  82% {
    transform: translateX(-260%) skewX(-24deg);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-260%) skewX(-24deg);
    opacity: 0;
  }
}

@keyframes glint-soft {
  0%,
  16% {
    transform: translateX(-190%) skewX(-18deg);
    opacity: 0;
  }
  26% {
    opacity: 0.48;
  }
  38% {
    transform: translateX(300%) skewX(-18deg);
    opacity: 0.16;
  }
  48%,
  62% {
    transform: translateX(300%) skewX(-18deg);
    opacity: 0;
  }
  72% {
    opacity: 0.42;
  }
  84% {
    transform: translateX(-190%) skewX(-18deg);
    opacity: 0.16;
  }
  100% {
    transform: translateX(-190%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes button-breathe {
  0% {
    filter: brightness(1);
  }
  100% {
    filter: brightness(1.07);
  }
}

@keyframes aura-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .about-points {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-actions {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .main-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .ip-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .ip-value {
    font-size: 1.42rem;
  }

  .hero-actions,
  .empire-actions,
  .footer-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .chart-wrap canvas {
    height: 250px;
  }

  .server-stat-grid {
    grid-template-columns: 1fr;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }
}
