@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --cream:      #FBF7F0;
  --cream-alt:  #FFF8EF;
  --cream-deep: #F5ECD8;
  --border:     #EDD9B8;
  --ink:        #5C3010;
  --ink-soft:   #8B6040;
  --ink-mute:   #B8916A;
  --terra:      #D4622A;
  --terra-dark: #A84C2F;
  --terra-lt:   #FFF0D6;
  --green:      #2D9E75;
  --green-lt:   #EEF7F1;
  --white:      #FFFFFF;
  --r:          14px;
  --px:         48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* NAV */
.nav-wrap { position: sticky; top: 0; z-index: 100; }
.nav {
  background: var(--cream); border-bottom: 1.5px solid var(--border);
  padding: 0 var(--px); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav-brand-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.nav-links { display: flex; gap: 4px; }
.nav-a { font-size: 13px; color: var(--ink-soft); padding: 7px 16px; border-radius: 30px; transition: background .18s, color .18s; }
.nav-a:hover { background: var(--cream-deep); color: var(--ink); }
.nav-a.on { background: var(--terra); color: #fff; font-weight: 500; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; flex-direction: column;
  background: var(--cream); border-bottom: 1.5px solid var(--border);
  padding: 12px 20px 16px; gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-a { padding: 10px 16px; border-radius: 10px; font-size: 14px; }

/* BANNER */
.banner {
  padding: 56px var(--px) 48px;
  background: linear-gradient(135deg, #FFF3E0 0%, var(--cream) 100%);
  border-bottom: 1.5px solid var(--border);
}
.banner-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--terra); margin-bottom: 10px;
}
.banner-eyebrow::before { content: ''; display: block; width: 18px; height: 1.5px; background: var(--terra); }
.banner-title { font-size: 36px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.banner-count { font-size: 14px; color: var(--ink-mute); }

/* GAME DESCRIPTION */
.game-sec {
  padding: 56px var(--px) 0;
  display: flex;
  justify-content: center;
}
.game-card {
  width: 100%;
  max-width: 780px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.game-card-header {
  background: var(--terra-lt);
  border-bottom: 1.5px solid var(--border);
  padding: 24px 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.game-card-icon {
  width: 42px; height: 42px;
  background: var(--terra);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.game-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.game-card-sub {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .03em;
}
.game-card-body {
  padding: 32px 36px;
}
.game-paragraph {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 16px;
}
.game-paragraph:last-child { margin-bottom: 0; }

/* GALLERY */
.gallery-sec { padding: 48px var(--px) 64px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.g-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.g-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(92,48,16,.08); }
.g-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.g-body { padding: 16px 18px; }
.g-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.empty {
  grid-column: 1 / -1; text-align: center;
  padding: 80px 24px;
  border: 1.5px dashed var(--border); border-radius: var(--r);
}
.empty-icon { font-size: 48px; margin-bottom: 14px; }
.empty-msg { font-size: 15px; color: var(--ink-mute); }

/* LIGHTBOX */
.lb-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(30,15,5,.82);
  align-items: center; justify-content: center;
}
.lb-overlay.open { display: flex; }
.lb-box {
  position: relative; max-width: 820px; width: 90%;
  background: var(--white); border-radius: 18px; overflow: hidden;
}
.lb-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,.9); border: 1.5px solid var(--border);
  border-radius: 50%; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; color: var(--ink);
  z-index: 2;
}
#lb-img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--cream-deep); }
.lb-caption { padding: 16px 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.65; }

/* FOOTER */
.footer {
  background: var(--ink); padding: 36px var(--px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-name { font-size: 16px; font-weight: 600; color: #FFF3E0; letter-spacing: .04em; }
.footer p { font-size: 12px; color: var(--ink-mute); }

@media (max-width: 768px) {
  :root { --px: 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .banner { padding: 40px 20px 32px; }
  .banner-title { font-size: 28px; }
  .game-sec { padding: 32px 20px 0; }
  .game-card-header { padding: 20px 24px; }
  .game-card-body { padding: 24px 24px; }
  .gallery-sec { padding: 32px 20px 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer { padding: 28px 20px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .g-img { height: 200px; }
  .lb-box { width: 95%; }
  .game-card-header { padding: 16px 18px; }
  .game-card-body { padding: 20px 18px; }
}