/* ============================================================
   Hiwaga Games — Shared Stylesheet
   https://hiwagagames.com
   ============================================================ */

:root {
  --ink: #1A1A1A;
  --ink-soft: #2A2A2A;
  --gold: #D4A017;
  --gold-dim: rgba(212, 160, 23, 0.55);

  /* Game-specific — use only inside game cards or game pages */
  --albularyo-green: #2D5016;
  --albularyo-brown: #8B5E3C;
  /* --manananggal-neon: TBD with art direction */
  --cream: #F5ECD7;
  --cream-dark: #E8DCC4;
  --paper: #FFFDF6;
  --muted: #6B6255;
  --muted-dark: #B8AD9A;
  --white-soft: #FAF6EA;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   DOT NAVIGATION
   ============================================================ */

.dot-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.dot-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.dot-nav-link {
  display: block;
  padding: 4px;
  text-decoration: none;
}

.dot-nav-link .dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-dim);
  background: transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.dot-nav-link:hover .dot {
  border-color: var(--gold);
  transform: scale(1.3);
}

.dot-nav-link.active .dot {
  background: var(--gold);
  border-color: var(--gold);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 160, 23, 0.12), transparent 28%),
    linear-gradient(180deg, #202020 0%, var(--ink) 70%);
  color: var(--cream);
  overflow: hidden;
}

/* Subtle grain texture — organic, matches ornate brand identity */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* Bottom accent bar removed — clean edge preferred */

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dim);
  text-decoration: none;
  animation: hint-bounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scroll-hint:hover {
  color: var(--gold);
}

.scroll-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 2rem;
}

.hero h1 {
  font-family: 'Gloock', serif;
  font-size: clamp(2.35rem, 6vw, 4.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.hero-intro {
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted-dark);
  font-weight: 300;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 0.8rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.cta-primary {
  background: var(--gold);
  color: var(--ink);
}

.cta-secondary {
  color: var(--gold);
  background: transparent;
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
}

.cta-secondary:hover {
  background: rgba(212, 160, 23, 0.08);
}


/* ============================================================
   COMMON SECTION STYLES
   ============================================================ */

section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Gloock', serif;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section-copy {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4A4A4A;
}


/* ============================================================
   GAMES
   ============================================================ */

.games {
  background: var(--cream);
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.75rem;
}

.game-card {
  border: 2px solid var(--gold);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(26, 26, 26, 0.06);
}

.game-art {
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 20% 20%, rgba(212, 160, 23, 0.12), transparent 28%),
    linear-gradient(135deg, var(--ink-soft), var(--ink));
  overflow: hidden;
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-art-albularyo img {
  object-position: center center;
}

.game-art-hati img {
  object-position: center center;
}

.game-body {
  padding: 1.6rem;
}

.game-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.game-body h3 {
  font-family: 'Gloock', serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.game-genre {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.game-body p {
  font-size: 0.98rem;
  line-height: 1.68;
  color: #4A4A4A;
  margin-bottom: 1.1rem;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.game-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  background: rgba(212, 160, 23, 0.06);
}


/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 160, 23, 0.08), transparent 28%),
    var(--ink);
  color: var(--cream);
}

.about .section-label {
  color: var(--gold);
}

.about .section-title {
  color: var(--cream);
}

.about-text {
  max-width: 720px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--muted-dark);
  font-weight: 300;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-detail {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-detail div {
  border-top: 1px solid rgba(212, 160, 23, 0.35);
  padding-top: 1rem;
}

.about-detail dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.about-detail dd {
  font-size: 0.98rem;
  color: var(--muted-dark);
}


/* ============================================================
   STUDIO
   ============================================================ */

.studio {
  background: var(--paper);
  padding: 7rem 2rem;
}

.studio-panel {
  border: 1px solid var(--cream-dark);
  padding: 3.5rem;
  background:
    linear-gradient(135deg, rgba(232, 220, 196, 0.35), rgba(255, 253, 246, 0.9));
}

.studio-panel p {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4A4A4A;
}

.studio-panel .section-title {
  color: var(--ink);
}

.studio-panel p + p {
  margin-top: 1rem;
}


/* ============================================================
   CONTACT
   ============================================================ */

.contact {
  background: var(--cream);
  padding: 7rem 2rem;
  text-align: center;
}

.contact .section-title {
  margin-bottom: 1rem;
}

.contact-copy {
  max-width: 560px;
  margin: 0 auto 1.25rem;
  color: #4A4A4A;
  font-size: 1.02rem;
  line-height: 1.7;
}

.contact-email {
  font-family: 'Gloock', serif;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cream-dark);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.social-links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--gold);
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--ink);
  color: #777;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

footer span {
  color: var(--gold);
}

.footer-links {
  margin-top: 0.55rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: #888;
}


/* ============================================================
   SUBPAGE — used by privacy.html and future inner pages
   ============================================================ */

.subpage-header {
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 160, 23, 0.12), transparent 28%),
    linear-gradient(180deg, #202020 0%, var(--ink) 70%);
  color: var(--cream);
  text-align: center;
  padding: 5rem 2rem 3.5rem;
  position: relative;
}

.subpage-header h1 {
  font-family: 'Gloock', serif;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.subpage-header .updated {
  font-size: 0.82rem;
  color: var(--muted-dark);
  margin-top: 0.5rem;
}

.subpage-body {
  padding: 3.5rem 2rem 5rem;
}

.subpage-body .container-narrow h2 {
  font-family: 'Gloock', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin: 2.25rem 0 0.75rem;
}

.subpage-body .container-narrow h2:first-child {
  margin-top: 0;
}

.subpage-body .container-narrow p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #4A4A4A;
  margin-bottom: 1rem;
}

.subpage-body .container-narrow a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-body .container-narrow a:hover {
  color: var(--ink);
}

.subpage-body .container-narrow ul {
  margin: 0 0 1rem 1.25rem;
  color: #4A4A4A;
  font-size: 1.02rem;
  line-height: 1.75;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 800px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .about-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dot-nav {
    display: none;
  }

  section {
    padding: 3.5rem 1.25rem;
  }

  .hero {
    padding: 2rem 1.25rem;
  }

  .hero-logo {
    width: 132px;
    height: 132px;
    margin-bottom: 1.6rem;
  }

  .hero-tagline {
    font-size: 0.86rem;
    letter-spacing: 0.16em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
  }

  .game-body {
    padding: 1.35rem;
  }

  .studio {
    padding: 5rem 1.25rem;
  }

  .studio-panel {
    padding: 2rem;
  }

  .contact {
    padding: 5rem 1.25rem;
  }

  .subpage-header {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .subpage-body {
    padding: 2.5rem 1.25rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
