﻿:root {
  --bg-900: #090d13;
  --bg-800: #121a25;
  --bg-700: #1a2535;
  --line: rgba(232, 187, 92, 0.34);
  --gold: #e8bb5c;
  --gold-strong: #ffd27d;
  --ice: #89bbff;
  --text: #f4ecde;
  --muted: #cfc3ae;
  --card: rgba(10, 15, 23, 0.82);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(254, 215, 140, 0.24), transparent 37%),
    radial-gradient(circle at 80% 15%, rgba(121, 170, 255, 0.16), transparent 32%),
    linear-gradient(170deg, #06090f 0%, #111927 45%, #0c1119 100%);
  overflow-x: hidden;
}

.sky-glow {
  position: fixed;
  inset: -22vh -10vw auto;
  height: 58vh;
  background: radial-gradient(circle at 50% 45%, rgba(255, 210, 130, 0.22), rgba(24, 34, 52, 0) 68%);
  pointer-events: none;
  filter: blur(28px);
  z-index: -2;
}

.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ember {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-strong), rgba(255, 204, 105, 0));
  animation: drift linear infinite;
}

@keyframes drift {
  0% {
    transform: translateY(0) scale(0.75);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-112vh) scale(1.45);
    opacity: 0;
  }
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 4vw;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 16, 0.74);
  border-bottom: 1px solid rgba(148, 177, 255, 0.24);
  z-index: 30;
}

.brand {
  font-family: "Cinzel", serif;
  font-size: 1.22rem;
  letter-spacing: 0.11em;
  color: var(--gold-strong);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.06rem;
  padding: 0.18rem 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--gold-strong);
  border-color: rgba(255, 204, 105, 0.55);
}

main {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 2.8rem 0 5rem;
}

.hero {
  text-align: center;
  padding: 4.5rem 0.8rem 3.4rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ice);
  font-size: 0.9rem;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cinzel", serif;
  line-height: 1.1;
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(2.75rem, 8vw, 5.8rem);
  color: var(--gold-strong);
  text-shadow: 0 0 30px rgba(255, 184, 63, 0.32);
}

.hero-text {
  max-width: 760px;
  margin: 1.2rem auto 0;
  font-size: clamp(1.22rem, 2.1vw, 1.53rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  border: 1px solid transparent;
  padding: 0.72rem 1.28rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.06rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, #7e541e, #e8bb5c 42%, #ffdd9b);
  color: #191105;
  box-shadow: 0 12px 22px rgba(255, 186, 72, 0.24);
}

.btn-ghost {
  border-color: rgba(132, 177, 255, 0.55);
  color: #dae8ff;
  background: rgba(38, 62, 102, 0.22);
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  flex-wrap: wrap;
}

.server-chip {
  display: inline-block;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 1rem;
  background: rgba(42, 31, 17, 0.25);
}

.panel,
.cta {
  margin-top: 1.35rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.92), rgba(8, 13, 21, 0.87));
  box-shadow: 0 17px 40px rgba(0, 0, 0, 0.35);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: var(--gold);
}

.panel p,
.cta p {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1.22rem;
}

.timeline,
.city-grid,
.systems-grid,
.race-grid,
.tiers,
.event-grid,
.status-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.timeline,
.systems-grid,
.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.race-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tiers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article,
.city-card,
.systems-grid article,
.race-grid article,
.tier-card,
.event-grid article,
.status-item {
  border: 1px solid rgba(127, 169, 255, 0.29);
  border-radius: 14px;
  padding: 0.92rem;
  background: var(--card);
}

.city-card,
.tier-card {
  border-color: rgba(232, 187, 92, 0.3);
}

.timeline h3,
.city-card h3,
.systems-grid h3,
.race-grid h3,
.tier-card h3,
.event-grid h3,
.status-item h3 {
  color: #f6cc7a;
  font-size: 1.12rem;
}

.status-item-wide {
  grid-column: span 2;
}

.status-value {
  margin-top: 0.4rem;
  margin-bottom: 0;
  color: #e4edff;
  font-size: 1.08rem;
  word-break: break-word;
}

.status-online {
  color: #8af0ac;
}

.status-offline {
  color: #ff9b9b;
}

.status-unknown {
  color: #f4d79f;
}

.auth-box {
  margin-top: 1rem;
  border: 1px solid rgba(132, 177, 255, 0.3);
  border-radius: 14px;
  background: rgba(13, 21, 33, 0.68);
  padding: 0.9rem;
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.auth-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 187, 92, 0.4);
}

.application-form {
  margin-top: 1rem;
  border: 1px solid rgba(232, 187, 92, 0.3);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(41, 31, 18, 0.2);
}

.form-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.application-form label {
  display: grid;
  gap: 0.34rem;
  color: #e2ebff;
  font-size: 1.1rem;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(132, 177, 255, 0.4);
  background: #101722;
  color: #f4ecde;
  padding: 0.55rem 0.68rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.application-form textarea {
  resize: vertical;
  min-height: 140px;
}

.status-pending {
  color: #f4d79f;
}

.status-approved {
  color: #8af0ac;
}

.status-rejected {
  color: #ff9b9b;
}

.status-revision {
  color: #89bbff;
}

.race-detail-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.race-detail {
  border: 1px solid rgba(232, 187, 92, 0.28);
  border-radius: 14px;
  background: rgba(14, 22, 34, 0.88);
  padding: 0.9rem;
}

.race-detail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(132, 177, 255, 0.25);
}

.race-detail h3 {
  margin-top: 0.65rem;
  color: #f6cc7a;
}

.race-detail p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.disease-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.disease-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.disease-table th,
.disease-table td {
  border: 1px solid rgba(132, 177, 255, 0.25);
  padding: 0.58rem 0.6rem;
  text-align: left;
  color: #e7edf7;
  background: rgba(13, 20, 30, 0.85);
}

.disease-table th {
  color: #f6cc7a;
  background: rgba(44, 32, 18, 0.55);
}

.catalog-controls {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.catalog-controls input,
.catalog-controls select {
  border-radius: 10px;
  border: 1px solid rgba(132, 177, 255, 0.4);
  background: #101722;
  color: #f4ecde;
  padding: 0.55rem 0.68rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
}

.catalog-controls input {
  min-width: 260px;
  flex: 1;
}

.craft-catalog {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.craft-category {
  border: 1px solid rgba(232, 187, 92, 0.26);
  border-radius: 14px;
  background: rgba(11, 17, 26, 0.9);
  padding: 0.9rem;
}

.craft-category h3 {
  color: #f6cc7a;
}

.craft-items-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.craft-item {
  border: 1px solid rgba(132, 177, 255, 0.3);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(20, 31, 47, 0.62);
}

.craft-item h4 {
  margin-top: 0;
  color: #dce9ff;
  font-size: 1rem;
}

.craft-tier-tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  font-size: 0.86rem;
  border: 1px solid rgba(232, 187, 92, 0.45);
  color: #f8d998;
}

.craft-recipe {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: #ffe4ad;
}

h4 {
  margin-top: 0.6rem;
  color: #d8e7ff;
  font-size: 1rem;
}

ul {
  margin: 0.45rem 0 0;
  padding-left: 1.12rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.notice {
  margin-top: 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px dashed rgba(255, 204, 105, 0.45);
  background: rgba(62, 41, 17, 0.28);
  color: #f3dfba;
}

.prices {
  margin-top: 1rem;
  border-top: 1px solid rgba(140, 172, 250, 0.25);
  padding-top: 0.8rem;
}

.prices h3 {
  color: #dce9ff;
  font-size: 1.07rem;
}

.prices p {
  margin-top: 0.4rem;
}

.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -60px;
  top: -75px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 168, 250, 0.42), transparent 68%);
}

.footer {
  text-align: center;
  color: #98a3b2;
  padding: 1.2rem 1rem 2rem;
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .race-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tiers,
  .timeline,
  .systems-grid,
  .event-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .status-item-wide {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
  }

  .nav {
    justify-content: center;
  }

  .race-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.4rem;
  }

  main {
    width: min(1180px, 94vw);
  }

  .panel,
  .cta {
    padding: 1.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .race-detail-grid {
    grid-template-columns: 1fr;
  }

  .craft-items-grid {
    grid-template-columns: 1fr;
  }
}


.status-helper { color: #89bbff; }
.status-admin { color: #f6cc7a; }
.status-developer { color: #ffb1a7; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 16, 0.78);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 60;
}

.modal-overlay.is-hidden {
  display: none;
}

.modal-card {
  width: min(560px, 96vw);
  border: 1px solid rgba(232, 187, 92, 0.45);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(14, 22, 34, 0.96), rgba(8, 13, 21, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  padding: 1rem;
}

.modal-card h3 {
  color: #f6cc7a;
  font-size: 1.35rem;
}

.modal-label {
  display: block;
  margin-top: 0.6rem;
  margin-bottom: 0.3rem;
  color: #dce9ff;
  font-size: 1.08rem;
}

.modal-card textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(132, 177, 255, 0.4);
  background: #101722;
  color: #f4ecde;
  padding: 0.55rem 0.68rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  resize: vertical;
}
