/* galileogamestudio.com — hand-written, no framework. Generated pages: build.py */
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/lilita-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #0F1229;        /* brand navy, from the logo */
  --night-2: #1A1E3F;
  --gold: #FACC4C;         /* logo telescope */
  --gold-deep: #D99E33;
  --starlight: #FFF3C4;
  --moon: #C9CDE6;
  --wood: #5B4636;
  --wood-top: #8A6A4E;

  --bg: #F3F4F9;
  --surface: #FFFFFF;
  --ink: #0F1229;
  --ink-2: #474C6B;
  --line: #D9DCEA;
  --link: #2F3BA8;
  --bezel: #0F1229;

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1229;
    --surface: #181C3A;
    --ink: #EDEFF8;
    --ink-2: #AEB3CD;
    --line: #2C3159;
    --link: #FACC4C;
    --bezel: #000000;
    --footer-bg: #0A0C1F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */
.topbar { background: var(--night); color: #E6E8F5; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font: 1.35rem/1 var(--display); white-space: nowrap; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.topbar nav ul { list-style: none; display: flex; gap: 2px; }
.topbar nav a { display: block; padding: 10px 10px; color: #E6E8F5; text-decoration: none; font-weight: 800; font-size: .95rem; border-radius: 8px; }
.topbar nav a:hover { color: var(--gold); }
.topbar nav a[aria-current="page"] { color: var(--gold); }
@media (max-width: 400px) { .brand span { font-size: 1.15rem; } .topbar nav a { padding: 10px 7px; font-size: .9rem; } }

/* ---------- buttons, badges ---------- */
.button {
  display: inline-block; background: var(--gold); color: var(--night); text-decoration: none;
  font-weight: 900; padding: 13px 24px; border-radius: 999px; box-shadow: 0 3px 0 var(--gold-deep);
}
.button:hover { background: #FFD966; }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--gold-deep); }
.soon {
  display: inline-block; margin: 0; padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: .9rem; line-height: 1.3;
}
.store-badge { display: inline-block; }
.store-badge img { height: 40px; width: auto; }   /* Apple: unmodified, at least 40px tall on screen */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.tags li {
  font-size: .85rem; font-weight: 800; padding: 2px 11px; border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--accent, var(--ink-2)) 60%, var(--ink));
}

/* ---------- home hero: the night sky from the logo, the games perched on a fence ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--night); color: var(--moon);
  background-image: radial-gradient(120% 60% at 50% 100%, #2E2547 0%, rgba(15,18,41,0) 70%);
  padding: 40px 0 0;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky .mesa-far { fill: #0B0D20; }
.sky .mesa-near { fill: #07081A; }
.hero-in { position: relative; padding-bottom: 36px; }
.hero h1 {
  color: var(--starlight); font-size: clamp(2.7rem, 9.5vw, 5.6rem); line-height: .98;
  max-width: 11ch; margin: 0 0 20px; text-wrap: balance;
}
.hero .lede { font-size: clamp(1.08rem, 2.4vw, 1.3rem); max-width: 34em; color: var(--moon); margin-bottom: 28px; }
.spark {
  position: absolute; right: 8%; top: 0; width: clamp(48px, 9vw, 92px); height: auto;
  fill: #FFF0AE; filter: drop-shadow(0 0 14px rgba(255, 224, 140, .75));
}
@media (max-width: 719px) { .spark { right: 16px; top: -8px; } .hero h1 { max-width: 9ch; } }

.fence-wrap { position: relative; padding-top: 24px; }
.fence {
  --icon: clamp(40px, 10.6vw, 104px);
  list-style: none; position: relative; display: flex; justify-content: center; gap: clamp(6px, 2vw, 26px);
  padding-bottom: calc(var(--icon) * .55);
}
/* two rails behind the posts */
.fence::before, .fence::after {
  content: ""; position: absolute; left: -40px; right: -40px; height: clamp(5px, 1vw, 9px);
  background: var(--wood); border-top: 2px solid var(--wood-top); border-radius: 2px;
}
.fence::before { bottom: calc(var(--icon) * .36); }
.fence::after { bottom: calc(var(--icon) * .12); }
.fence li { position: relative; z-index: 1; }
.fence li::after {          /* the post each icon sits on */
  content: ""; position: absolute; left: 50%; top: calc(var(--icon) - 4px); transform: translateX(-50%);
  width: clamp(7px, 1.4vw, 14px); height: calc(var(--icon) * .55 + 4px);
  background: linear-gradient(90deg, var(--wood-top), var(--wood) 60%); border-radius: 2px 2px 0 0;
}
.fence a { display: block; border-radius: 23%; }
.fence img {
  width: var(--icon); height: var(--icon); border-radius: 23%;
  box-shadow: 0 6px 18px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .18s ease;
}
.fence a:hover img, .fence a:focus-visible img { transform: translateY(-6px) rotate(-3deg); }

/* the one load moment: the star blinks on, then the games hop onto their posts */
@media (prefers-reduced-motion: no-preference) {
  .spark { animation: twinkle 1.6s ease-out both; }
  .fence img { animation: hop .55s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.35s + var(--i) * .07s); }
}
@keyframes twinkle { 0% { opacity: 0; transform: scale(.3) rotate(-40deg); } 60% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes hop { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- lineup ---------- */
.section-head { padding: 64px 16px 28px; }
@media (min-width: 720px) { .section-head { padding: 80px 28px 32px; } }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3rem); margin-bottom: .2em; }
.section-head p { color: var(--ink-2); margin: 0; }

.game {
  background: var(--surface);
  background: color-mix(in srgb, var(--accent) 9%, var(--bg));
  border-top: 4px solid var(--accent);
  padding: 36px 0 40px;
}
.game-in { display: grid; gap: 28px; }
@media (min-width: 880px) {
  .game { padding: 48px 0; }
  .game-in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
}
.game-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.game-icon { width: 76px; height: 76px; border-radius: 23%; flex: none; box-shadow: 0 4px 12px rgba(15,18,41,.18); }
.game h3 { font: 2rem/1.05 var(--display); margin: 0 0 4px; }
.game h3 a { color: var(--ink); text-decoration: none; }
.game h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.subtitle { color: var(--ink-2); font-weight: 800; margin: 0; }
.pitch { max-width: 36em; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.more { font-weight: 800; }

.phones { list-style: none; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.phones li { flex: none; width: min(40vw, 168px); scroll-snap-align: start; }
.phones img, .shots img {
  width: 100%; aspect-ratio: 430 / 932; object-fit: cover;
  border: 4px solid var(--bezel); border-radius: 20px; background: var(--bezel);
}
@media (min-width: 880px) { .phones { overflow: visible; } .phones li { width: 158px; } .phones li:nth-child(2) { transform: translateY(-18px); } }

/* ---------- studio, contact ---------- */
.studio { padding: 72px 0 24px; }
.studio-in { display: grid; gap: 24px; align-items: center; }
.studio img { width: 160px; border-radius: 28px; }
@media (min-width: 720px) { .studio-in { grid-template-columns: 220px minmax(0, 40em); gap: 48px; } .studio img { width: 220px; } }
.studio h2, .contact h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.contact { padding: 40px 0 80px; }
.contact-in p { max-width: 40em; }

/* ---------- game page ---------- */
.game-hero { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border-bottom: 4px solid var(--accent); padding: 32px 0 36px; }
.game-hero-in { display: grid; gap: 20px; }
.game-hero-icon { width: 112px; height: 112px; border-radius: 23%; box-shadow: 0 8px 24px rgba(15,18,41,.25); }
.game-hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin-bottom: .1em; }
.game-hero .subtitle { font-size: 1.15rem; margin-bottom: 14px; }
@media (min-width: 720px) {
  .game-hero { padding: 56px 0; }
  .game-hero-in { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
  .game-hero-icon { width: 200px; height: 200px; }
}
.gallery { padding: 36px 0 12px; }
.shots {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(58vw, 230px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px;
}
.shots li { scroll-snap-align: start; }
@media (min-width: 1100px) { .shots { grid-auto-columns: 1fr; grid-auto-flow: column; overflow: visible; } }
.details { padding: 28px 0 40px; }
.details-in { display: grid; gap: 28px; }
@media (min-width: 820px) { .details-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }
.details h2, .others h2 { font-size: 1.8rem; }
.features { list-style: none; }
.features li { position: relative; padding-left: 1.7em; margin-bottom: .55em; }
.features li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: .95em; height: .95em; background: var(--gold-deep);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.help-box { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 14px; padding: 22px 24px; }
.help-box ul { list-style: none; }
.help-box li { padding: 6px 0; font-weight: 700; overflow-wrap: anywhere; }
.others { padding: 24px 0 72px; }
.other-games { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 12px; }
.other-games a { display: grid; justify-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .92rem; text-align: center; }
.other-games img { width: 72px; height: 72px; border-radius: 23%; }
.other-games a:hover span { text-decoration: underline; }

/* ---------- policy pages ---------- */
.policy-bar { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border-bottom: 1px solid var(--line); }
.policy-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.crumb { font: 1.3rem/1.2 var(--display); color: var(--ink); text-decoration: none; }
a.crumb:hover { text-decoration: underline; }
.policy-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.policy-bar ul a { display: block; padding: 6px 13px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .92rem; color: var(--ink); border: 1.5px solid var(--line); }
.policy-bar ul a:hover { border-color: var(--ink-2); }
.policy-bar ul a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.prose { max-width: calc(68ch + 56px); padding-top: 40px; padding-bottom: 72px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .4em; }
.prose h2 { font: 800 1.2rem/1.3 var(--body); margin: 2em 0 .5em; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose b { font-weight: 800; }
.prose a { overflow-wrap: anywhere; }
.date { color: var(--ink-2); font-size: .95rem; }

/* ---------- support index, 404 ---------- */
.page-head { padding: 48px 0 20px; }
.page-head h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.page-head p { max-width: 40em; }
.support-list { list-style: none; display: grid; gap: 12px; padding-bottom: 72px; }
@media (min-width: 820px) { .support-list { grid-template-columns: 1fr 1fr; } }
.support-list > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.support-list img, .icon-blank { width: 56px; height: 56px; border-radius: 23%; }
.icon-blank { display: block; background: var(--line); }
.support-list h2 { font: 800 1.1rem/1.3 var(--body); margin: 0 0 4px; }
.support-list h2 a { color: var(--ink); }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; font-size: .95rem; }
.notfound { padding: 80px 0 120px; }
.notfound .button { margin-right: 16px; }
.text-link { font-weight: 800; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--footer-bg, var(--night)); color: var(--moon); padding: 48px 0 28px; font-size: .95rem; }
.footer a { color: var(--gold); }
.footer-in { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-in { grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 48px; height: 48px; border-radius: 12px; }
.footer-brand strong { color: #FFFFFF; font-weight: 800; }
.footer h2 { font: 800 1rem/1.3 var(--body); color: #FFFFFF; margin-bottom: 8px; }
.footer ul { list-style: none; }
.footer li { padding: 3px 0; }
.footer-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid #262B52; font-size: .85rem; color: #9298BD; }
.footer-legal p { margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
