/* Arcadvocado: one stylesheet for the studio page and every game page. */
:root {
  --night: #140f22;
  --night-2: #1d1631;
  --panel: #241b3b;
  --line: #3b2d5c;
  --avocado: #8ee04a;
  --avocado-deep: #3f8a2a;
  --magenta: #ff4fb8;
  --magenta-deep: #a8237a;
  --cyan: #4fe3e8;
  --gold: #ffd25a;
  --text: #efe9ff;
  --text-soft: #b7abd6;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font-family: "Nunito", system-ui, sans-serif; font-size: 18px; line-height: 1.6; overflow-x: hidden;
}
h1, h2, h3, .brand, .btn, .tag { font-family: "Pixelify Sans", "Nunito", sans-serif; line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Nav ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(20, 15, 34, 0.88); backdrop-filter: blur(6px); border-bottom: 2px solid var(--line); }
nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--avocado); }
.brand img { width: 26px; height: auto; }
.brand span b { color: var(--magenta); font-weight: 700; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav ul a { text-decoration: none; font-weight: 700; color: var(--text-soft); padding: 6px 12px; border-radius: 6px; }
nav ul a:hover, nav ul a[aria-current="page"] { color: var(--text); background: var(--panel); }

/* ---------- Buttons and tags ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.15rem; padding: 12px 24px;
  border-radius: 6px; transition: transform .12s, box-shadow .12s; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--avocado); color: #12210b; box-shadow: 0 5px 0 var(--avocado-deep); }
.btn-green:hover { box-shadow: 0 7px 0 var(--avocado-deep); }
.btn-pink { background: var(--magenta); color: #2a0820; box-shadow: 0 5px 0 var(--magenta-deep); }
.btn-pink:hover { box-shadow: 0 7px 0 var(--magenta-deep); }
.btn-line { color: var(--text); border: 2px solid var(--line); }
.btn-line:hover { border-color: var(--cyan); }
.btns { display: flex; gap: 14px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-weight: 600; font-size: .9rem; padding: 3px 12px; border-radius: 4px;
  background: var(--panel); border: 2px solid var(--line); color: var(--cyan); margin-bottom: 12px;
}
.tag.dev { color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.alt { background: var(--night-2); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 8px; }
.section-title p { margin: 0 auto; color: var(--text-soft); max-width: 640px; }

/* ---------- Studio hero ---------- */
.studio-hero {
  text-align: center; padding: 56px 0 64px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(142, 224, 74, 0.16), transparent 60%),
    radial-gradient(ellipse at 20% 90%, rgba(255, 79, 184, 0.14), transparent 55%),
    var(--night);
}
.studio-hero { position: relative; overflow: hidden; }
.studio-stage { margin: 0 0 10px; display: flex; justify-content: center; }
.studio-stage canvas { display: block; cursor: pointer; max-width: 100%; }
#studio-flash { position: absolute; inset: 0; background: #f8faff; opacity: 0; pointer-events: none; z-index: 2; }
.studio-hero .lead { font-size: 1.3rem; max-width: 620px; margin: 0 auto 28px; color: var(--text-soft); }
.studio-hero .btns { justify-content: center; }

/* ---------- Game cards (home) ---------- */
.game-card {
  display: grid; grid-template-columns: 1.2fr 1fr; background: var(--panel); border: 2px solid var(--line);
  border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 36px;
}
.game-card .art { display: flex; align-items: center; background: #1a1530; }
.game-card .art img { width: 100%; height: auto; }
.game-card .info { padding: 30px 30px 34px; }
.game-card h3 { font-size: 2rem; margin: 0 0 4px; }
.game-card .sub { color: var(--cyan); font-weight: 700; margin: 0 0 12px; }
.game-card p { margin: 0 0 18px; }
.game-card .info .btns { margin-top: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bubble { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 24px; }
.bubble h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--avocado); }
.bubble p { margin: 0; color: var(--text-soft); }

/* ---------- Game page hero ---------- */
.game-hero { position: relative; background: #000; }
.game-hero .backdrop { width: 100%; aspect-ratio: 1920 / 620; min-height: 260px; object-fit: cover; opacity: .9; }
.game-hero .over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; background: linear-gradient(180deg, transparent 40%, rgba(20, 15, 34, .85));
}
.game-hero .title-logo { width: min(760px, 92vw); }
.game-intro { text-align: center; padding: 36px 0 60px; }
.game-intro .lead { font-size: 1.3rem; max-width: 720px; margin: 0 auto 26px; color: var(--text-soft); }
.game-intro .btns { justify-content: center; }

/* ---------- Feature rows ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature { background: var(--panel); border: 2px solid var(--line); border-radius: 10px; padding: 24px; }
.feature h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--avocado); }
.feature p { margin: 0; color: var(--text-soft); }
.facts { list-style: none; padding: 0; margin: 36px auto 0; max-width: 760px; display: grid; gap: 10px; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 6px; top: .55em; width: 10px; height: 10px; background: var(--cyan); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery figure { margin: 0; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; overflow: hidden; }
.gallery figcaption { padding: 8px 14px 10px; color: var(--text-soft); font-size: .95rem; }

/* ---------- In development (Skywreckers) ---------- */
.sky-hero { position: relative; background: #000; }
.sky-hero .backdrop { width: 100%; aspect-ratio: 16 / 9; max-height: 620px; object-fit: cover; object-position: 50% 60%; }
.sky-hero .over {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 15, 34, .92));
}
.sky-hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin: 0; color: #fff3d8; text-shadow: 4px 4px 0 #b3203c, 8px 8px 0 #2a1022; letter-spacing: 2px; }
.sky-hero .tagline { margin: 6px 0 0; font-size: 1.25rem; color: #ffd9b0; font-weight: 700; }
.story { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 860px; margin: 0 auto 48px; }
.story h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 0 0 12px; }
.story p { color: var(--text-soft); margin: 0 0 12px; }
.portrait { margin: 0; padding: 18px; background: #e0784c; border: 2px solid var(--line); border-radius: 10px; }
.portrait img { width: 172px; }
.cast-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 28px 40px;
  background: linear-gradient(180deg, #6e2c4c, #e0784c 70%); border: 2px solid var(--line); border-radius: 10px; padding: 32px 20px 20px;
}
.cast-strip figure { margin: 0; text-align: center; }
.cast-strip img { margin: 0 auto 8px; max-width: 100%; }
.cast-strip figcaption { color: #fbe6b4; font-size: .95rem; font-weight: 700; text-shadow: 2px 2px 0 #1e0f24; }

/* ---------- CTA and footer ---------- */
.cta { text-align: center; }
.cta .btns { justify-content: center; }
footer { text-align: center; padding: 36px 20px; color: var(--text-soft); border-top: 2px solid var(--line); font-size: .95rem; }
footer a { color: var(--avocado); text-decoration: none; }
footer img { width: 40px; margin: 0 auto 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 820px) {
  .game-card { grid-template-columns: 1fr; }
  .about-grid, .features, .gallery { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .portrait { justify-self: center; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  nav { justify-content: center; }
  .game-card .info { padding: 24px 20px; }
  section { padding: 52px 0; }
}
