/* Metawe Lenool Studios: dusk-in-the-forest pixel theme */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('../assets/fonts/PixelifySans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #0d1120;
  --night-2: #141a31;
  --indigo: #1f2a52;
  --blue: #2a489b;
  --dusk: #9b6fa1;
  --sunset: #f69b5d;
  --rose: #ec8fa9;
  --cream: #f3daac;
  --wood: #7a3a1c;
  --wood-hi: #a9592b;
  --wood-dark: #3a1a0c;
  --pine: #2f5d3a;
  --text: #e8e5f3;
  --muted: #a9afcf;
  --card: rgba(24, 31, 60, 0.82);
  --line: rgba(243, 218, 172, 0.16);
  --radius: 18px;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--night);
  /* faint starfield + dusk glow */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' shape-rendering='crispEdges'%3E%3Cg fill='%23f3daac'%3E%3Crect x='18' y='26' width='2' height='2' opacity='.55'/%3E%3Crect x='131' y='12' width='2' height='2' opacity='.35'/%3E%3Crect x='200' y='74' width='2' height='2' opacity='.5'/%3E%3Crect x='66' y='118' width='2' height='2' opacity='.3'/%3E%3Crect x='170' y='170' width='2' height='2' opacity='.45'/%3E%3Crect x='28' y='204' width='2' height='2' opacity='.35'/%3E%3Crect x='104' y='60' width='1' height='1' opacity='.6'/%3E%3Crect x='224' y='214' width='1' height='1' opacity='.5'/%3E%3C/g%3E%3Cg fill='%23f3daac' opacity='.7'%3E%3Crect x='150' y='118' width='2' height='6'/%3E%3Crect x='148' y='120' width='6' height='2'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1200px 600px at 80% -10%, rgba(155,111,161,.16), transparent 70%),
    linear-gradient(180deg, var(--night) 0, var(--night) 640px, var(--night-2) 1600px, #10162b 100%);
  background-repeat: repeat, no-repeat, no-repeat;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sunset); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

h1, h2, h3, .pixel { font-family: var(--pixel); font-weight: 700; letter-spacing: .02em; line-height: 1.15; color: var(--cream); text-wrap: balance; }
h1, h2, h3, .pixel, .btn, .eyebrow, .features b, .brand, .email { font-variant-ligatures: none; }
[id] { scroll-margin-top: 80px; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin: 0 0 .4em; }
h3 { font-size: 1.45rem; margin: 0 0 .35em; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 17, 32, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--pixel); font-weight: 700; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--wood-hi); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(243,218,172,.1); color: var(--cream); }
@media (max-width: 560px) {
  .brand > span { font-size: .95rem; line-height: 1.05; }
  .brand .long { display: block; font-size: .7rem; letter-spacing: .22em; color: var(--sunset); }
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a { padding: 8px 7px; font-size: .88rem; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
}
@media (max-width: 350px) { .nav a { padding: 8px 5px; font-size: .82rem; } .brand > span { font-size: .85rem; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero picture img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; object-position: 50% 45%; }
.hero picture img { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.hero-copy { text-align: center; padding: 8px 16px 0; }
.hero-copy h1 { font-size: clamp(1.7rem, 5.4vw, 2.9rem); margin: 0 0 .3em; }
.hero-copy p { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 560px; margin: 0 auto 22px; }
.hero-copy .btn-row { justify-content: center; }

section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-family: var(--pixel); color: var(--sunset); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

/* pine-tree divider like the logo's "- ▲ STUDIOS ▲ -" */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--cream); opacity: .75; margin: 0 auto; }
.divider::before, .divider::after { content: ''; width: min(120px, 22vw); height: 2px; background: currentColor; opacity: .6; }
.divider svg { width: 18px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 12px;
  font-family: var(--pixel); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .08s ease, box-shadow .08s ease, filter .15s;
}
.btn:active { transform: translateY(3px); }
.btn-wood {
  position: relative; color: var(--cream);
  background: linear-gradient(180deg, var(--wood-hi) 0%, var(--wood) 60%, #6a3016 100%);
  border: 3px solid var(--wood-dark);
  box-shadow: 0 4px 0 var(--wood-dark), inset 0 2px 0 rgba(255,220,170,.25);
  padding-inline: 30px;
}
.btn-wood::before, .btn-wood::after { /* nails */
  content: ''; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 2px;
  background: #2a1206; box-shadow: inset 1px 1px 0 rgba(255,255,255,.25);
}
.btn-wood::before { left: 9px; } .btn-wood::after { right: 9px; }
.btn-wood:hover { filter: brightness(1.08); color: #fff3d6; }
.btn-wood:active { box-shadow: 0 1px 0 var(--wood-dark), inset 0 2px 0 rgba(255,220,170,.25); }
.btn-ghost { color: var(--cream); background: rgba(243,218,172,.06); border: 2px solid rgba(243,218,172,.45); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: rgba(31,42,82,.7); color: var(--cream); border: 2px dashed rgba(243,218,172,.55); text-decoration: none; min-height: 48px;
}
.badge-soon svg { width: 26px; height: 26px; flex: none; }
.badge-soon small { display: block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; opacity: .8; line-height: 1.2; }
.badge-soon b { display: block; font-size: 1.05rem; line-height: 1.2; }

/* ---------- game card ---------- */
.game-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--card); border: 2px solid rgba(243,218,172,.22); border-radius: 20px; padding: clamp(20px, 3.5vw, 40px);
  box-shadow: inset 0 0 0 4px rgba(13,17,32,.55), inset 0 0 0 6px rgba(243,218,172,.08), 0 30px 60px -30px rgba(0,0,0,.7);
}
.game-card .feature { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.game-title { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.game-title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.6); }
.game-title h3 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); }
.game-title .sub { color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; padding: 0; list-style: none; }
.chips li { font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(243,218,172,.1); color: var(--cream); border: 1px solid var(--line); }
@media (max-width: 860px) { .game-card { grid-template-columns: 1fr; } }

.more-soon { text-align: center; margin-top: 28px; color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.about img { width: 100%; max-width: 260px; margin-inline: auto; border-radius: 50%; box-shadow: 0 0 0 4px var(--wood-dark), 0 0 0 7px var(--wood-hi), 0 24px 50px -20px rgba(0,0,0,.8); }
.about ul { padding-left: 1.2em; margin: 0 0 1em; }
.about li { margin-bottom: .35em; }
.about li::marker { color: var(--sunset); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; text-align: center; } .about ul { text-align: left; display: inline-block; } .about .btn-row { justify-content: center; } }

/* ---------- contact ---------- */
.contact-card { text-align: center; max-width: 640px; margin: 0 auto; background: var(--card); border: 2px solid rgba(243,218,172,.22); border-radius: 20px; padding: clamp(28px, 5vw, 48px) 20px;
  box-shadow: inset 0 0 0 4px rgba(13,17,32,.55), inset 0 0 0 6px rgba(243,218,172,.08); }
.contact-card .btn-row { justify-content: center; }
.email { font-family: var(--pixel); font-size: clamp(1.1rem, 3.6vw, 1.4rem); color: var(--cream); word-break: break-all; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62vw); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  margin-inline: -16px; padding: 6px 16px 28px; scroll-padding-inline: 16px; }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin-inline: 0; padding: 6px 0 18px; } }
.shots img { border-radius: 18px; scroll-snap-align: start; box-shadow: 0 14px 30px -14px rgba(0,0,0,.8); background: var(--indigo); aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; margin: 0; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.features b { display: block; font-family: var(--pixel); color: var(--cream); font-size: 1.2rem; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: .98rem; }

/* game page hero */
.game-hero { padding-top: clamp(28px, 5vw, 56px); }
.game-hero .feature { max-width: 1024px; margin-inline: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.game-hero .feature img { width: 100%; }
.game-hero .intro, .game-hero .btn-row { max-width: 1024px; margin-inline: auto; }
.game-hero .intro { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 28px; }
.game-hero .intro img { width: 96px; height: 96px; border-radius: 24px; }
.game-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0; }
.game-hero .lead { color: var(--muted); margin: 6px 0 0; font-size: 1.1rem; }
@media (max-width: 520px) { .game-hero .intro { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- prose (privacy) ---------- */
.prose { max-width: calc(68ch + 96px); margin: 0 auto; background: var(--card); border: 2px solid rgba(243,218,172,.22); border-radius: 20px; padding: clamp(24px, 5vw, 48px); }
@media (max-width: 560px) { .prose { padding: 22px 16px; border-radius: 16px; } }
.prose h2 { font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 1.4em; padding: 12px 14px; border-radius: 12px; background: rgba(243,218,172,.06); font-size: .95rem; }
.toc a { text-decoration: none; }
.prose h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); margin: 0 0 .2em; }
.prose h2 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.prose .muted { color: var(--muted); margin-top: 0; }
.prose a { word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }

.center-page { min-height: calc(100svh - 64px - 120px); display: grid; place-items: center; text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--night); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
