/* ==========================================================================
   DUY STUDIO — Vietnamese Indie Game Portal (Mobile-First, Zero-Framework)
   Warm Editorial Cream + Deep Maritime Navy + Crimson Heritage Accents
   ========================================================================== */
:root {
  --bg: #f6efe0;
  --bg-alt: #ede1c9;
  --card: #fffaf0;
  --ink: #241911;
  --ink-soft: #5c4736;
  --navy: #142b3c;
  --navy-deep: #0d1d29;
  --crimson: #b9382c;
  --crimson-dark: #8e261d;
  --gold: #d49b38;
  --bronze: #8b5e34;
  --border: rgba(139, 94, 52, 0.28);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 11px; font-weight: 800; font-size: 14px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-primary {
  background: var(--crimson); color: #fffaf0; border-color: var(--crimson-dark);
  box-shadow: 0 4px 14px rgba(185, 56, 44, 0.35);
}
.btn-primary:hover { background: #cc4134; }
.btn-outline {
  background: rgba(255, 250, 240, 0.12); color: #fffaf0;
  border-color: rgba(253, 224, 71, 0.65);
}
.btn-outline:hover { background: rgba(255, 250, 240, 0.22); }
.btn-outline-dark {
  background: transparent; color: var(--ink); border-color: var(--bronze);
}
.btn-outline-dark:hover { background: rgba(139, 94, 52, 0.1); }
.btn-ghost {
  background: rgba(139, 94, 52, 0.1); color: var(--ink); border-color: transparent;
}
.btn-ghost:hover { background: rgba(139, 94, 52, 0.18); }

/* Header Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 224, 0.96);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(20, 43, 60, 0.08);
}
.nav-inner {
  min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  color: #fef08a; font-family: "Times New Roman", Cambria, serif;
  font-weight: 900; font-size: 17px; letter-spacing: 0.04em;
  border: 2px solid var(--gold);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: "Times New Roman", Cambria, serif;
  font-size: 18px; letter-spacing: 0.05em; color: var(--navy);
}
.brand-text small { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.nav-links a:not(.btn):hover { color: var(--crimson); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fffaf0;
  background: var(--navy-deep); padding: 54px 0 56px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, rgba(13, 29, 41, 0.93) 0%, rgba(16, 34, 48, 0.80) 56%, rgba(18, 30, 40, 0.72) 100%),
    url("assets/hero_nha_rong.jpg") center/cover no-repeat;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 34px; align-items: center;
}
.pill {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: rgba(185, 56, 44, 0.9); border: 1.5px solid #fde047;
  color: #fffaf0; font-size: 11.5px; font-weight: 900; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: "Times New Roman", Cambria, serif;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.hero h1 span { color: #fde047; }
.lead { font-size: 16px; line-height: 1.65; color: #f3ead6; max-width: 600px; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding-top: 18px; border-top: 1px solid rgba(255, 250, 240, 0.18);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 15px; color: #fde047; }
.hero-stats span { font-size: 12px; color: #dbe4ec; }

.hero-poster {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease;
}
.hero-poster:hover { transform: translateY(-4px); }
.hero-poster img { width: 100%; height: auto; }
.poster-play {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: rgba(185, 56, 44, 0.95); color: #fffaf0;
  border: 2px solid #fde047; padding: 8px 18px; border-radius: 999px;
  font-weight: 900; font-size: 13px; letter-spacing: 0.05em; white-space: nowrap;
}

/* Sections */
.section { padding: 54px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.eyebrow {
  display: block; font-size: 11.5px; font-weight: 900; letter-spacing: 0.12em;
  color: var(--crimson); margin-bottom: 4px;
}
.sec-head h2 {
  font-family: "Times New Roman", Cambria, serif;
  font-size: clamp(24px, 3.2vw, 34px); color: var(--navy); line-height: 1.2;
}
.sec-sub { color: var(--ink-soft); font-size: 14.5px; max-width: 440px; }

/* Games Grid */
.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.game-card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 10px 28px rgba(36, 25, 17, 0.08);
}
.game-card.featured { border-color: var(--bronze); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: 0.06em;
}
.card-badge.live { background: #15803d; color: #fffaf0; border: 1.5px solid #86efac; }
.upcoming-art {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 35%, #244760 0%, #142b3c 65%, #0d1d29 100%);
  color: #fffaf0;
}
.upcoming-badge {
  padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 900;
  background: rgba(212, 155, 56, 0.22); border: 1.5px solid var(--gold); color: #fde047;
  margin-bottom: 12px;
}
.upcoming-title {
  font-family: "Times New Roman", Cambria, serif; font-size: 23px; font-weight: 700;
  margin-bottom: 6px;
}
.upcoming-note { font-size: 13px; color: #cbd5e1; }

.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.card-tags span {
  font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  background: rgba(139, 94, 52, 0.12); color: var(--bronze);
}
.card-body h3 {
  font-family: "Times New Roman", Cambria, serif;
  font-size: 22px; color: var(--navy); margin-bottom: 8px;
}
.card-body p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot {
  background: var(--card); border: 2px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 8px 20px rgba(36, 25, 17, 0.07);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { padding: 11px 14px; font-size: 13.5px; color: var(--ink-soft); }
.shot figcaption strong { color: var(--crimson-dark); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: var(--card); border: 2px solid var(--border); border-radius: 14px;
  padding: 20px; text-align: left;
}
.pillar-ico { font-size: 28px; margin-bottom: 8px; }
.pillar h3 { font-family: "Times New Roman", Cambria, serif; font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--ink-soft); }

/* Editorial Docs (about.html & privacy.html) */
.doc-page { padding: 34px 0 56px; }
.doc-card {
  background: var(--card); border: 2px solid var(--bronze); border-radius: 18px;
  padding: 30px 32px; max-width: 840px; margin: 0 auto;
  box-shadow: 0 12px 32px rgba(20, 43, 60, 0.1);
}
.doc-card h1 {
  font-family: "Times New Roman", Cambria, serif;
  font-size: clamp(26px, 3.6vw, 34px); color: var(--crimson-dark); margin: 8px 0 14px;
}
.doc-card h2 {
  font-family: "Times New Roman", Cambria, serif;
  font-size: 21px; color: var(--navy); margin: 22px 0 8px;
  border-bottom: 1.5px dashed var(--bronze); padding-bottom: 4px;
}
.doc-card p, .doc-card li { font-size: 15px; color: var(--ink); margin-bottom: 10px; line-height: 1.72; }
.doc-card ul { padding-left: 22px; margin-bottom: 12px; }

/* Footer */
.footer {
  background: var(--navy-deep); color: #e2e8f0; padding: 28px 0;
  border-top: 3px solid var(--gold);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer small { color: #94a3b8; font-size: 12.5px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.footer-links a:hover { color: #fde047; }

/* Responsive Mobile & Tablet */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-poster { max-width: 480px; margin: 0 auto; }
  .games-grid, .gallery-grid, .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 32px 0 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 36px 0; }
  .doc-card { padding: 20px 18px; }
}
