@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f0e8;
  --bg-soft: rgba(255, 251, 245, 0.76);
  --surface: rgba(255, 252, 248, 0.82);
  --surface-strong: #fffaf3;
  --ink: #1d1d1a;
  --muted: #6e685f;
  --line: rgba(33, 27, 19, 0.08);
  --brand: #cf6a31;
  --brand-dark: #8d4720;
  --emerald: #2f7a58;
  --emerald-soft: rgba(47, 122, 88, 0.14);
  --gold: #b58927;
  --gold-soft: rgba(181, 137, 39, 0.14);
  --blue: #355f8f;
  --shadow: 0 18px 46px rgba(68, 49, 25, 0.11);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(207, 106, 49, 0.14), transparent 24rem),
    radial-gradient(circle at top right, rgba(70, 129, 106, 0.10), transparent 22rem),
    linear-gradient(180deg, #f6f2ea 0%, #efe7da 100%);
}

.grid-glow {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(71, 56, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 56, 42, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  filter: blur(78px);
  opacity: 0.34;
  pointer-events: none;
}

.bg-orb-a { top: -8rem; right: -6rem; background: #e8a476; }
.bg-orb-b { left: -9rem; bottom: -7rem; background: #8ac2b6; }

.shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: 1.1rem 0 1.5rem;
}

.hero-copy,
.hero-showcase,
.feature-strip article,
.panel,
.stat-card,
.template-card,
.server-card,
.soon-card,
.hero-game-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy,
.hero-showcase,
.panel,
.stat-card,
.server-card,
.template-card,
.soon-card {
  background: var(--surface);
}

.hero-copy {
  border-radius: 2rem;
  padding: 1.8rem;
}

.hero-showcase {
  display: grid;
  gap: 1rem;
  border-radius: 2rem;
  padding: 1rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 800;
}

.hero h1,
.panel h2,
.server-card h3,
.empty-state h3 {
  margin: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 4.5vw, 4.9rem);
}

.intro {
  max-width: 42rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-pills span,
.mini-tag,
.coming-soon > span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-game-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 1rem;
  border-radius: 1.5rem;
  padding: 0.9rem;
  background: rgba(255, 251, 245, 0.72);
}

.hero-game-card img,
.template-card img,
.soon-card img,
.server-art img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-game-card img {
  height: 100%;
  min-height: 112px;
  border-radius: 1rem;
}

.hero-game-card strong,
.stat-card strong,
.template-card strong,
.soon-card strong {
  display: block;
}

.hero-game-card p,
.stat-card p,
.panel p,
.server-card p,
.template-card p,
.soon-card span {
  margin: 0.22rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.accent-emerald { box-shadow: inset 0 0 0 1px rgba(47, 122, 88, 0.10), var(--shadow); }
.accent-gold { box-shadow: inset 0 0 0 1px rgba(181, 137, 39, 0.12), var(--shadow); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature-strip article {
  border-radius: 1.4rem;
  padding: 1.1rem 1.15rem;
  background: var(--bg-soft);
}

.feature-strip strong {
  display: block;
  margin-bottom: 0.3rem;
}

.panel {
  margin-top: 1.2rem;
  border-radius: 1.6rem;
  padding: 1.35rem;
}

.login-panel {
  max-width: 560px;
  display: grid;
  gap: 1rem;
}

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

.auth-card {
  display: grid;
  gap: 0.85rem;
  border-radius: 1.5rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.ghost-card {
  background: rgba(255, 248, 242, 0.72);
}

.auth-card h3 {
  margin: 0;
}

.toolbar,
.status-grid,
.template-gallery,
.server-list,
.coming-soon-list,
.metrics,
.actions,
.server-facts {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.toolbar {
  align-items: center;
  justify-content: space-between;
}

.toolbar-copy strong {
  display: block;
  font-size: 1.25rem;
}

.toolbar-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

button,
.linklike {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.18rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--brand), #e18343);
  box-shadow: 0 10px 24px rgba(207, 106, 49, 0.24);
}

button.ghost,
.ghost.linklike {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: none;
}

button.danger {
  color: #8f2b1f;
  border-color: rgba(143, 43, 31, 0.2);
  background: rgba(255, 241, 238, 0.9);
}

button.small { padding: 0.5rem 0.82rem; }

input,
select {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  padding: 0.92rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
}

label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.95rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 1.2rem;
}

.stat-card {
  border-radius: 1.35rem;
  padding: 1.15rem;
}

.stat-label {
  display: inline-block;
  margin-bottom: 0.6rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stat-card strong {
  font-size: 1.28rem;
  margin-bottom: 0.24rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.template-card {
  overflow: hidden;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

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

.template-card img {
  height: 170px;
}

.template-card-body {
  padding: 1rem;
}

.template-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.template-meta span {
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.coming-soon {
  margin-top: 1rem;
}

.coming-soon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 0.8rem;
}

.soon-card {
  align-items: center;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.9rem;
  border-radius: 1.3rem;
  padding: 0.85rem;
}

.soon-card img {
  height: 88px;
  border-radius: 0.95rem;
}

.create-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  align-items: end;
}

.server-list {
  display: grid;
}

.server-card {
  border-radius: 1.55rem;
  padding: 1rem;
}

.server-art {
  margin-bottom: 1rem;
}

.server-art img {
  height: 168px;
  border-radius: 1.15rem;
}

.server-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  flex-wrap: wrap;
}

.metrics,
.server-facts {
  align-items: center;
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.metrics span,
.server-facts span {
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  font-size: 0.86rem;
}

.actions {
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.46rem 0.82rem;
  font-size: 0.84rem;
  font-weight: 800;
}

.badge-running,
.badge-connected,
.badge-starting {
  color: var(--emerald);
  background: var(--emerald-soft);
}

.badge-offline,
.badge-stopped,
.badge-installing {
  color: var(--brand-dark);
  background: rgba(207, 106, 49, 0.14);
}

.badge-unknown {
  color: var(--blue);
  background: rgba(53, 95, 143, 0.12);
}

.error-text {
  color: #a11b11;
  min-height: 1.2rem;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 1.4rem;
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.46);
}

.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero,
  .feature-strip,
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 740px) {
  .shell {
    padding-inline: 0.9rem;
  }

  .hero-copy,
  .hero-showcase,
  .panel {
    padding: 1rem;
  }

  .toolbar {
    align-items: start;
  }

  .hero-game-card,
  .soon-card {
    grid-template-columns: 1fr;
  }

  .create-form,
  .template-gallery,
  .coming-soon-list,
  .status-grid {
    grid-template-columns: 1fr;
  }
}
