/* AlephFenix Games. Night violet, gold and ember (the phoenix logo), parchment for reading. No external fonts or requests. */
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-700.woff) format("woff"); }   /* only the letters of the brand name; SIL OFL, see /fonts/OFL-SpaceGrotesk.txt */
:root {
  --bg: #170A22;
  --bg-2: #22112F;
  --line: #4a2d52;
  --ink: #F3E8D0;
  --muted: #C5B79C;
  --gold: #F9D591;
  --amber: #F79F32;
  --ember: #F95F30;
  --paper: #F4E7C8;
  --paper-ink: #2B1B14;
  --paper-line: #D2BE93;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--ink); font: 18px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: #1a0d24; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 8px; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--gold); text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

/* header and footer */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px max(16px, env(safe-area-inset-left)) 14px; max-width: 1080px; width: 100%; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.15rem "Space Grotesk", var(--sans); letter-spacing: .01em; }
.brand img { border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--amber); }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-left)) 56px; }
.foot { border-top: 1px solid var(--line); padding: 22px max(16px, env(safe-area-inset-left)) 28px; font-size: .95rem; color: var(--muted); }
.foot-row { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.langs, .foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.langs a, .foot-links a { color: var(--muted); }
.langs a[aria-current="true"] { color: var(--gold); font-weight: 700; text-decoration: none; }
.foot-copy { max-width: 1080px; margin: 14px auto 0; }

/* home */
.hero { text-align: center; padding: 8px 0 28px; }
.logo-wrap { position: relative; width: min(100%, 720px); aspect-ratio: 1270 / 600; margin: 0 auto 8px; }
.logo { width: 100%; height: auto; }
.logo-intro { position: absolute; inset: 0; }
.intro-pending .logo-static { visibility: hidden; animation: af-reveal 0s 5s forwards; }   /* safety: if the script never runs, the logo shows after 5 s */
@keyframes af-reveal { to { visibility: visible; } }
.intro-skip { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: rgba(23, 10, 34, .8); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 600 .85rem var(--sans); cursor: pointer; }
.intro-skip:hover { border-color: var(--amber); color: #fff; }
.tagline { font: 700 clamp(1.3rem, 4vw, 1.8rem) var(--serif); color: var(--gold); margin: 6px 0 8px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 0 auto 1em; }
.game-card { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-width: 820px; margin: 12px auto 0; }
.gc-img img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.gc-text h2 { margin-bottom: .3em; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--amber); margin: 0 0 .4em; font-weight: 700; }
.pill { display: inline-block; background: rgba(247, 159, 50, .15); color: var(--gold); border: 1px solid var(--amber); border-radius: 999px; padding: 3px 14px; font-size: .9rem; font-weight: 700; }
.btn { display: inline-block; background: var(--amber); color: #1a0d24; font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 12px; }
.btn:hover { background: var(--gold); color: #1a0d24; }
.contact { text-align: center; margin-top: 36px; color: var(--muted); }

/* game page */
.game-hero { text-align: center; padding: 16px 0 8px; }
.game-hero .lead { margin-bottom: 0; }
.block { max-width: 760px; margin: 0 auto 28px; }
.block ul { padding-left: 1.2em; margin: 0 0 1em; }
.block li { margin: .35em 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; max-width: 1000px; margin: 0 auto; }
.cols .block { max-width: none; }
.h-gap { margin-top: 1.2em; }
.shots-block { max-width: 1000px; }
.shots { list-style: none; display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 14px; margin: 0; scroll-snap-type: x proximity; }
.shots li { flex: 0 0 min(240px, 62vw); scroll-snap-align: start; margin: 0; }
.shots img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.note { color: var(--muted); font-size: .9rem; margin-top: 0; }
.promise { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 8px; }
.made { text-align: center; color: var(--muted); margin-top: 24px; }

/* privacy and 404: parchment for reading */
.paper { background: var(--paper); color: var(--paper-ink); border: 1px solid var(--paper-line); border-radius: 16px; padding: clamp(20px, 5vw, 44px); max-width: 780px; margin: 12px auto 0; box-shadow: 0 14px 40px rgba(0, 0, 0, .4); }
.paper h1, .paper h2 { color: #4a2a14; }
.paper h2 { margin-top: 1.4em; }
.paper a { color: #8a3b10; }
.paper a:hover { color: #000; }
.paper .btn { color: #1a0d24; }
.effective { color: #6b5a44; font-size: .95rem; }
.short { background: #efdcae; border-left: 5px solid var(--amber); padding: 12px 16px; border-radius: 6px; }

/* home: the game comes first, the logo is smaller */
.home .hero { padding: 0 0 12px; }
.home .logo-wrap { width: min(100%, 420px); }
.home .tagline { margin: 2px 0 0; }
.home .game-card { margin-top: 8px; }
.home .studio { text-align: center; margin-top: 28px; }
.gc-play { margin: 0 0 1em; }
.play-soon { display: inline-flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; justify-content: center; }
.play-img { height: auto; display: block; }
.soon-label { background: rgba(247, 159, 50, .15); color: var(--gold); border: 1px solid var(--amber); border-radius: 999px; padding: 3px 14px; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.banner { margin: 0 auto 14px; max-width: 1000px; }
.banner img { width: 100%; height: auto; aspect-ratio: 1400 / 468; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }

.game-hero .gc-play { margin: 1em 0 0; }

/* game page: gallery, one screenshot per step. Image left, text right; stacked on phones. Same image size everywhere. */
.game-hero .lead { max-width: 36em; }
.gallery { max-width: 900px; margin: 8px auto 12px; }
.gal-item { display: grid; grid-template-columns: 180px 1fr; gap: 36px; align-items: center; margin: 0 0 40px; }
.gal-img { margin: 0; width: 180px; }
.gal-img img { width: 180px; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); background: var(--bg-2); }
.gal-text h2 { font-size: clamp(1.3rem, 3.6vw, 1.8rem); margin: 0 0 .4em; padding-bottom: .3em; border-bottom: 2px solid var(--amber); }
.gal-text p { color: var(--ink); font-size: 1.05rem; margin: 0; max-width: 34em; }
.note-c { text-align: center; }
.play-block { text-align: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 8px; }

@media (max-width: 720px) {
  .gal-item { grid-template-columns: 112px 1fr; gap: 14px; align-items: start; margin-bottom: 28px; }
  .gal-img, .gal-img img { width: 112px; }
  .gal-text h2 { font-size: 1.12rem; line-height: 1.25; padding-bottom: .25em; margin-bottom: .35em; }
  .gal-text p { font-size: .95rem; line-height: 1.5; max-width: none; }
  .soon-label { font-size: .8rem; }
  .home .studio { margin-top: 20px; }
  .home .logo-wrap { width: min(100%, 300px); }
  .home .gc-text { order: -1; }
  .home .gc-img { max-width: 170px; }
  body { font-size: 17px; }
  .game-card { grid-template-columns: 1fr; text-align: center; }
  .gc-img { max-width: 200px; margin: 0 auto; }
  .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* round 3: the Rocko/Town banner is the home visual; screenshots can be enlarged (CSS :target lightbox, works without JS) */
.home .game-card { display: block; max-width: 980px; padding: 14px 14px 22px; text-align: center; overflow: hidden; }
.gc-banner { display: block; }
.gc-banner img { width: 100%; height: auto; aspect-ratio: 1400 / 467; border-radius: 14px; border: 1px solid var(--line); }
.home .gc-text { padding: 18px 10px 0; }
.home .gc-text h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.gc-headline { font: 700 clamp(1.15rem, 3.4vw, 1.5rem) var(--serif); color: var(--gold); margin: 0 0 .5em; }
.gc-blurb { color: var(--ink); max-width: 38em; margin: 0 auto 1.1em; }
.gc-play { display: flex; justify-content: center; }
.btn-big { font-size: 1.15rem; padding: 14px 30px; border-radius: 14px; box-shadow: 0 6px 18px rgba(247, 159, 50, .25); }
.banner figcaption { text-align: center; font: italic 1.05rem var(--serif); color: var(--muted); padding: 8px 12px 0; }
.gallery .banner { margin: 8px auto 36px; }
.zoom { display: block; cursor: zoom-in; border-radius: 14px; }
.zoom::after { content: "\1F50D"; position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 15px; background: rgba(23, 10, 34, .78); border: 1px solid var(--line); border-radius: 50%; }
.gal-img { position: relative; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(10, 4, 16, .94); align-items: center; justify-content: center; padding: 16px; }
.lightbox:target { display: flex; }
.lb-bg { position: absolute; inset: 0; cursor: zoom-out; }
.lightbox img { position: relative; max-width: min(92vw, 560px); max-height: 88vh; width: auto; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lb-close { position: absolute; top: 12px; right: 14px; z-index: 2; background: var(--amber); color: #1a0d24; font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 12px; }
.lb-close:hover { background: var(--gold); color: #1a0d24; }
@media (max-width: 720px) {
  .home .game-card { padding: 10px 10px 20px; }
  .gallery .banner { margin-bottom: 28px; }
  .zoom::after { width: 26px; height: 26px; line-height: 26px; font-size: 13px; right: 5px; bottom: 5px; }
}
