:root {
  --bg-deep: #080b10;
  --bg-mid: #0d1318;
  --panel: rgba(18, 24, 32, 0.88);
  --panel-border: rgba(148, 178, 168, 0.16);
  --card: #151c24;
  --card-hover: #1b2530;
  --text: #eef3f1;
  --muted: #9aa8b3;
  --accent: #86d4b0;
  --accent-strong: #5ee4a0;
  --gold: #e8c547;
  --gold-soft: #f3d97a;
  --danger-muted: #a8b4bc;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(94, 228, 160, 0.1), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(232, 197, 71, 0.07), transparent 50%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 100%);
  color: var(--text);
  text-align: center;
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
}

.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 12px 4px rgba(232, 197, 71, 0.55);
  animation: drift 14s ease-in-out infinite;
  opacity: 0.7;
}

.f1 { top: 18%; left: 12%; animation-duration: 16s; }
.f2 { top: 42%; left: 78%; animation-duration: 12s; animation-delay: -3s; }
.f3 { top: 70%; left: 22%; animation-duration: 18s; animation-delay: -6s; }
.f4 { top: 28%; left: 58%; animation-duration: 13s; animation-delay: -2s; }
.f5 { top: 82%; left: 84%; animation-duration: 15s; animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translate(0, 0); opacity: 0.35; }
  50% { transform: translate(24px, -30px); opacity: 0.9; }
}

.main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero {
  margin-bottom: 36px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(125, 206, 160, 0.08);
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.panel {
  margin-bottom: 28px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.panel-head {
  margin-bottom: 20px;
}

.panel-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  margin: 0 0 4px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.scoreboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 16px 12px 14px;
  min-height: 118px;
  flex: 1 1 132px;
  max-width: 148px;
}

.stat-icon {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.stat-label,
.stat-value {
  margin: 0;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-value {
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.shop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.type {
  background: var(--card);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 230px;
  max-width: 260px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.type:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(125, 206, 160, 0.35);
}

.type.featured {
  border-color: rgba(232, 197, 71, 0.35);
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.08), 0 12px 28px rgba(232, 197, 71, 0.08);
}

.type-icon {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.type h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.type-desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 2.7em;
}

.type-meta {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

button {
  font-family: inherit;
  background: linear-gradient(180deg, #f3d97a 0%, var(--gold) 100%);
  color: #1a1403;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  margin-top: 4px;
  width: 100%;
  max-width: 220px;
}

button:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(232, 197, 71, 0.28);
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.type span {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

button:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #2a3540;
  color: var(--danger-muted);
  filter: none;
  box-shadow: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  text-align: left;
}

button.ghost {
  width: auto;
  max-width: none;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--panel-border);
  padding: 8px 14px;
  font-weight: 500;
}

button.ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(125, 206, 160, 0.4);
  background: rgba(125, 206, 160, 0.08);
  box-shadow: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .firefly,
  .type,
  button {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 28px 16px 48px;
  }

  .panel {
    padding: 18px 14px;
  }

  .site-footer {
    justify-content: center;
  }

  .site-footer p {
    text-align: center;
  }
}
