/* ================================================================
   FORGERS ONLINE — Website Design System
   Color palette: Dark navy/black with gold (#FFFC00) accents
   Fonts: Press Start 2P (headings), Inter (body)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg-primary:   #080d1e;
  --bg-secondary: #0c1020;
  --bg-card:      rgba(16, 20, 36, 0.92);
  --gold:         #fffc00;
  --gold-dim:     #929100;
  --gold-glow:    rgba(255, 252, 0, 0.15);
  --text:         #ffffff;
  --text-body:    #e0e0e0;
  --text-muted:   #a6b1c2;
  --accent-red:   #ff5722;
  --accent-green: #2ecc71;
  --accent-blue:  #4fc3f7;
  --border-gold:  rgba(255, 252, 0, 0.45);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-pixel:   'Press Start 2P', monospace;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --max-width:    1200px;
  --nav-height:   70px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; text-shadow: 0 0 8px var(--gold-glow); }

img { max-width: 100%; height: auto; display: block; }

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(8, 13, 30, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav.scrolled {
  top: 0 !important;
  background: rgba(8, 13, 30, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav__logo {
  font-family: var(--font-pixel);
  font-size: clamp(10px, 1.6vw, 16px);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--gold-dim);
  letter-spacing: 2px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding: 4px 0;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim));
  transition: width 0.3s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-pixel) !important;
  font-size: 11px !important;
  color: var(--bg-primary) !important;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dim) 100%);
  padding: 10px 24px !important;
  border-radius: 6px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: var(--transition);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 252, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
  color: var(--bg-primary) !important;
  text-shadow: none !important;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ── Hero Section ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-bg.png') center/cover no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 13, 30, 0.3) 0%,
    rgba(8, 13, 30, 0.1) 40%,
    rgba(8, 13, 30, 0.5) 80%,
    rgba(8, 13, 30, 1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.hero__title {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 6vw, 72px);
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--gold-dim),
    0 0 40px rgba(255, 252, 0, 0.3);
  letter-spacing: clamp(4px, 1vw, 12px);
  margin-bottom: 40px;
  line-height: 1.3;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 3px 3px 0 var(--gold-dim), 0 0 30px rgba(255,252,0,0.2); }
  to   { text-shadow: 3px 3px 0 var(--gold-dim), 0 0 60px rgba(255,252,0,0.4); }
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 48px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero__play-btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: clamp(16px, 2.5vw, 24px);
  color: var(--bg-primary);
  background: linear-gradient(180deg, #fff 0%, #e8e8e8 50%, #ccc 100%);
  padding: 18px 60px;
  border: 3px solid #666;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 #aaa,
    0 4px 15px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 4px;
}

.hero__play-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 -2px 0 #aaa,
    0 8px 25px rgba(0,0,0,0.5),
    0 0 30px var(--gold-glow);
  color: var(--bg-primary);
  text-shadow: none;
}

.hero__play-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.3),
    0 1px 5px rgba(0,0,0,0.3);
}

.hero__socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 36px;
}

.hero__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 22px;
  transition: var(--transition);
}

.hero__socials a:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 0 20px var(--gold-glow);
  text-shadow: none;
}

/* ── Section Layout ────────────────────────────────────────────── */
.section {
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 48px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 3.5vw, 36px);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--gold-dim);
  text-align: center;
  letter-spacing: clamp(3px, 0.8vw, 8px);
  margin-bottom: clamp(30px, 5vw, 60px);
}

/* ── Gold Info Card ────────────────────────────────────────────── */
.info-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(255, 252, 0, 0.03);
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--gold);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 40px rgba(255, 252, 0, 0.05),
    0 0 30px var(--gold-glow);
}

.info-card p {
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--text);
  text-align: center;
  line-height: 1.8;
}

.info-card strong {
  color: #fff;
  font-weight: 700;
}

/* ── Classes Grid ──────────────────────────────────────────────── */
.classes-section {
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 48px);
  position: relative;
}

.classes-section__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, transparent 15%),
    url('../assets/images/hero-bg.png') center 60%/cover no-repeat,
    linear-gradient(180deg, transparent 85%, var(--bg-primary) 100%);
  opacity: 0.35;
  z-index: 0;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(12px, 2vw, 24px);
  max-width: var(--max-width);
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.class-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: default;
}

.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
}

.class-card__sprite {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.class-card__name {
  font-family: var(--font-pixel);
  font-size: clamp(8px, 1.2vw, 11px);
  color: var(--gold);
  text-shadow: 1px 1px 0 var(--gold-dim);
  letter-spacing: 2px;
  text-align: center;
}

/* ── CTA Banner ────────────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px);
  background: linear-gradient(
    135deg,
    rgba(255, 252, 0, 0.05) 0%,
    rgba(146, 145, 0, 0.03) 100%
  );
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.cta-banner__title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 2.5vw, 24px);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--gold-dim);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.cta-banner__text {
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: clamp(10px, 1.4vw, 14px);
  padding: 14px 36px;
  border-radius: 6px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 2px solid;
}

.btn--gold {
  color: var(--bg-primary);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dim) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(255, 252, 0, 0.35);
  color: var(--bg-primary);
  text-shadow: none;
}

.btn--outline {
  color: var(--gold);
  background: transparent;
  border-color: var(--border-gold);
}

.btn--outline:hover {
  background: rgba(255, 252, 0, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--gold);
  text-shadow: none;
}

/* ── Social Links Section ──────────────────────────────────────── */
.socials-section {
  text-align: center;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
}

.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 48px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 28px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px var(--gold-glow);
  text-shadow: none;
}

/* ── Footer ────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-pixel);
  letter-spacing: 1px;
}

/* ── Scroll Animations ─────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   GUIDE PAGE STYLES
   ================================================================ */

.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 30px) clamp(16px, 3vw, 40px) 80px;
}

/* ── Sidebar TOC ───────────────────────────────────────────────── */
.guide-toc {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
}

.guide-toc h3 {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gold);
}

.guide-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-toc a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: 6px;
  border-left: 3px solid transparent;
  transition: var(--transition);
  line-height: 1.4;
}

.guide-toc a:hover {
  color: var(--gold);
  background: rgba(255, 252, 0, 0.04);
  text-shadow: none;
}

.guide-toc a.active {
  color: var(--gold);
  background: rgba(255, 252, 0, 0.06);
  border-left-color: var(--gold);
  font-weight: 600;
}

/* ── Guide Content ─────────────────────────────────────────────── */
.guide-content {
  min-width: 0;
}

.guide-content h1 {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 3vw, 28px);
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--gold-dim);
  letter-spacing: 3px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.guide-content h2 {
  font-family: var(--font-pixel);
  font-size: clamp(12px, 2vw, 18px);
  color: var(--gold);
  text-shadow: 1px 1px 0 var(--gold-dim);
  letter-spacing: 2px;
  margin-top: 60px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-gold);
  scroll-margin-top: calc(var(--nav-height) + 20px);
}

.guide-content h3 {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

.guide-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.guide-content ul, .guide-content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.guide-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.guide-content strong {
  color: #fff;
}

.guide-content em {
  color: var(--text-muted);
  font-style: italic;
}

/* ── Guide Tables ──────────────────────────────────────────────── */
.guide-table-wrap {
  overflow-x: auto;
  margin: 20px 0 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.guide-table th {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 16px;
  text-align: left;
  background: rgba(255, 252, 0, 0.04);
  border-bottom: 2px solid var(--border-gold);
  position: sticky;
  top: 0;
}

.guide-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.guide-table tr:hover td {
  background: rgba(255, 252, 0, 0.03);
}

.guide-table .highlight { color: var(--gold); font-weight: 600; }
.guide-table .stat-hp { color: var(--accent-green); font-weight: 600; }
.guide-table .stat-atk { color: var(--accent-red); font-weight: 600; }
.guide-table .stat-def { color: var(--accent-blue); font-weight: 600; }
.guide-table .gold { color: #d4af37; font-weight: 600; }

/* ── Guide Info Boxes ──────────────────────────────────────────── */
.guide-info {
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0;
  border-left: 4px solid;
}

.guide-info--tip {
  background: rgba(46, 204, 113, 0.06);
  border-color: var(--accent-green);
}

.guide-info--warning {
  background: rgba(255, 87, 34, 0.06);
  border-color: var(--accent-red);
}

.guide-info--note {
  background: rgba(79, 195, 247, 0.06);
  border-color: var(--accent-blue);
}

.guide-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Guide World Map ───────────────────────────────────────────── */
.guide-map {
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.guide-map img {
  width: 100%;
  display: block;
}

/* ── Guide Search ──────────────────────────────────────────────── */
.guide-search {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.guide-search input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.guide-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.guide-search input::placeholder {
  color: var(--text-muted);
}

/* ── Guide Lore Block ──────────────────────────────────────────── */
.lore-chapter {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 16px;
  transition: var(--transition);
}

.lore-chapter:hover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lore-chapter h4 {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.lore-chapter p {
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.7;
}

/* ── Recipe Card ───────────────────────────────────────────────── */
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.recipe-card:hover {
  border-color: var(--border-gold);
}

.recipe-card__name {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.recipe-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.recipe-card__ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recipe-card__ingredient {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 12px;
  color: var(--text-body);
}

.recipe-card__cost {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* ── Mobile Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: rgba(8, 13, 30, 0.98);
    backdrop-filter: blur(20px);
    padding: 100px 32px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-subtle);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .classes-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .hero__title {
    letter-spacing: 3px;
  }

  .guide-table {
    font-size: 12px;
  }

  .guide-table th, .guide-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .classes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .class-card {
    padding: 12px 8px;
  }

  .class-card__sprite {
    width: 56px;
    height: 56px;
  }
}

/* ── Sideview Battler Sprites ───────────────────────────────────── */
.sv-sprite {
  width: 64px;
  height: 64px;
  background-size: 576px 384px; /* RMMZ SV sheets are 9x6 frames of 64x64 */
  background-repeat: no-repeat;
  background-position: 0px 0px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

.class-card:hover .sv-sprite {
  transform: scale(1.4);
  animation: sv-idle 0.6s steps(1) infinite;
}

@keyframes sv-idle {
  0%   { background-position: 0px 0px; }
  33.3% { background-position: -64px 0px; }
  66.6% { background-position: -128px 0px; }
  100% { background-position: 0px 0px; }
}

/* Individual Class Sprites */
.sv-sprite--fighter { background-image: url('../assets/images/sv_actors/Fighter.png'); }
.sv-sprite--monk { background-image: url('../assets/images/sv_actors/Monk.png'); }
.sv-sprite--mage { background-image: url('../assets/images/sv_actors/Mage.png'); }
.sv-sprite--paladin { background-image: url('../assets/images/sv_actors/Paladin.png'); }
.sv-sprite--acolyte { background-image: url('../assets/images/sv_actors/Acolyte.png'); }
.sv-sprite--gunslinger { background-image: url('../assets/images/sv_actors/Gunslinger.png'); }
.sv-sprite--spellsword { background-image: url('../assets/images/sv_actors/Spellsword.png'); }
.sv-sprite--trickster { background-image: url('../assets/images/sv_actors/Trickster.png'); }

/* ── Tooltips ───────────────────────────────────────────────────── */
.class-card {
  position: relative;
}

.class-card__tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 260px;
  padding: 14px;
  background: rgba(8, 13, 30, 0.98);
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--gold-glow);
  color: var(--text-body);
  font-size: 12px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.class-card__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--gold);
}

.class-card:hover .class-card__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Web Shop Grid & Cards ──────────────────────────────────────── */
.shop-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 48px);
  text-align: center;
}

.shop-input-wrap {
  max-width: 500px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.shop-input-wrap label {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1px;
}

.shop-input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.shop-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 15px var(--gold-glow);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.shop-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.shop-card:hover {
  border-color: rgba(255, 252, 0, 0.25);
  transform: translateY(-4px);
}

.shop-card.selected {
  border-color: var(--gold);
  box-shadow: 0 10px 30px var(--gold-glow);
  transform: translateY(-4px);
}

.shop-card__gems {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 12px;
}

.shop-card__price {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.shop-card__bonus {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
  width: 100%;
}

/* ── Timeline / Roadmap ─────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 31px;
  width: 4px;
  background: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 60px;
}

.timeline-dot {
  position: absolute;
  left: 21px;
  top: 6px;
  width: 24px;
  height: 24px;
  background: var(--bg-primary);
  border: 4px solid var(--border-gold);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  text-align: left;
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-gold);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.timeline-date {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}




