:root {
  --bg: #070b14;
  --panel: rgba(16, 23, 40, 0.9);
  --panel-border: rgba(212, 168, 67, 0.38);
  --panel-border-cyan: rgba(56, 189, 248, 0.35);
  --cyan: #00e5ff;
  --gold: #ffca28;
  --gold-deep: #b8862d;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --green: #4ade80;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 50% -10%, #162849 0%, var(--bg) 58%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

header.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 54px 24px 48px;
  background: #0b1324;
  border: 1.5px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 224, 130, 0.16);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/hero.jpg') center center / cover no-repeat;
  opacity: 0.48;
  filter: saturate(1.1);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(10, 15, 26, 0.25), rgba(7, 11, 20, 0.88) 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(10, 15, 26, 0.78);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--cyan);
  margin-bottom: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #fffbe6 0%, var(--gold) 55%, #e69d24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.75));
}

.subtitle {
  max-width: 720px;
  margin: 14px auto 28px;
  color: #e2e8f0;
  font-size: 1.06rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:hover:not(.disabled) {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #ffe082, var(--gold), #e09f1f);
  color: #090d16;
  border-color: rgba(255, 248, 220, 0.5);
  box-shadow: 0 12px 30px rgba(255, 202, 40, 0.34);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: var(--bg);
  box-shadow: 0 10px 26px rgba(0, 229, 255, 0.28);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.78);
  border-color: var(--panel-border);
  color: var(--text);
}

.btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.meta-strip {
  margin-top: 20px;
  font-size: 13px;
  color: #cbd5e1;
}

.section-title {
  margin: 46px 0 18px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--gold);
}

/* 4 Deities Showcase */
.deities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.deity-card {
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--panel-border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
}

.deity-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.deity-info {
  padding: 14px 16px 16px;
}

.deity-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.deity-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.deity-info p {
  font-size: 12.5px;
  color: var(--muted);
}

.deity-scarlet { border-color: rgba(239, 83, 80, 0.65); }
.deity-scarlet .deity-role { color: #f87171; }
.deity-caesar { border-color: rgba(255, 202, 40, 0.65); }
.deity-caesar .deity-role { color: #ffca28; }
.deity-oberon { border-color: rgba(41, 182, 246, 0.65); }
.deity-oberon .deity-role { color: #38bdf8; }
.deity-madcap { border-color: rgba(102, 187, 106, 0.65); }
.deity-madcap .deity-role { color: #4ade80; }

/* Download Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1.4px solid var(--panel-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 202, 40, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 202, 40, 0.4);
}

.pill.unavailable {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  border-color: rgba(148, 163, 184, 0.3);
}

.qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: rgba(10, 15, 26, 0.72);
  border: 1px dashed var(--panel-border-cyan);
  border-radius: 14px;
  padding: 12px;
}

.qr-box svg {
  border-radius: 10px;
}

.details {
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
}

.ios-banner {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.45);
  display: none;
}

.ios-banner.visible {
  display: block;
}

/* 5 Tower Evolution & 15 Epochs Gallery */
.epochs-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1.4px solid var(--panel-border);
  background: #0b1222;
  padding: 24px 20px;
}

.epochs-banner-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/epochs-banner.jpg') center center / cover no-repeat;
  opacity: 0.25;
}

.towers-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.tower-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(10, 15, 26, 0.78);
  border: 1px solid rgba(212, 168, 67, 0.32);
  border-radius: 14px;
  padding: 14px 10px;
}

.tower-tier img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.75));
}

.tower-tier span {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tower-tier strong {
  font-size: 13px;
  margin-top: 2px;
}

.epochs-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.epoch-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid rgba(212, 168, 67, 0.35);
  color: var(--text);
}

footer {
  margin-top: 48px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
