@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --night: #15142b;
  --navy: #1f1d3d;
  --panel: #27254a;
  --bronze: #c9a25e;
  --gold: #f3c969;
  --text: #ece6f5;
  --soft: #b7b0cc;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 900px at top, #2c2857, var(--night)) no-repeat var(--night);
  color: var(--text);
  font: 17px/1.6 "Fredoka", system-ui, sans-serif;
}

a { color: var(--gold); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0;
  font-weight: 600; letter-spacing: 0.02em;
}
header.top img { width: 28px; height: 28px; }
header.top a { color: var(--text); text-decoration: none; }

.hero { text-align: center; padding: 24px 0 8px; }
.hero .art {
  width: 100%; max-width: 608px; height: auto;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}
.hero h1 {
  margin: 18px 0 4px;
  font-size: clamp(42px, 9vw, 68px); font-weight: 700; line-height: 1.05;
  color: var(--gold);
  text-shadow: 0 3px 0 #7a5a24, 0 8px 24px rgba(0, 0, 0, 0.5);
}
.hero .tagline { margin: 0 auto; max-width: 560px; font-size: 20px; color: var(--soft); }

.badge {
  display: inline-block; margin: 22px 0 8px; padding: 12px 22px;
  border: 2px solid var(--bronze); border-radius: 14px;
  background: var(--panel); color: var(--text); font-weight: 600;
}

section { padding: 36px 0; }
h2 { font-size: 26px; font-weight: 600; color: var(--gold); margin: 0 0 12px; }

.about p { max-width: 640px; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; height: auto; display: block;
  border: 3px solid var(--bronze); border-radius: 18px;
  background: var(--navy);
}
.shots figcaption { text-align: center; color: var(--soft); font-size: 15px; margin-top: 6px; }

.card {
  background: var(--panel); border: 1px solid #3a3766; border-radius: 16px;
  padding: 20px 24px;
}

footer {
  padding: 28px 0 40px; color: var(--soft); font-size: 15px;
  border-top: 1px solid #34315c; margin-top: 24px;
}
footer a { color: var(--soft); }

/* the studio home: a card per game */
.intro { text-align: center; padding: 28px 0 4px; }
.intro h1 {
  margin: 0; font-size: clamp(34px, 7vw, 52px); font-weight: 700; color: var(--gold);
  text-shadow: 0 3px 0 #7a5a24, 0 8px 24px rgba(0, 0, 0, 0.5);
}
.intro p { margin: 6px 0 0; font-size: 19px; color: var(--soft); }

.games { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .games { grid-template-columns: 1fr; } }
.game {
  display: block; overflow: hidden; color: var(--text); text-decoration: none;
  background: var(--panel); border: 2px solid #3a3766; border-radius: 18px;
}
a.game:hover { border-color: var(--bronze); }
.game > img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.game .body { padding: 16px 20px 20px; }
.game h2 { margin: 8px 0 6px; }
.game h2 small { font-size: 15px; font-weight: 400; color: var(--soft); }
.game p { margin: 0 0 10px; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.status.soon { background: #3d3415; color: var(--gold); border: 1px solid var(--bronze); }
.status.dev { background: #2b3040; color: #b9c6e0; border: 1px solid #56607a; }
.more { color: var(--gold); font-weight: 600; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thumbs img { width: 100%; height: auto; border-radius: 10px; display: block; }

/* the privacy policy */
.policy { max-width: 720px; }
.policy h1 { font-size: 34px; color: var(--gold); margin: 12px 0 0; }
.policy h2 { font-size: 21px; margin-top: 30px; }
.policy .updated { color: var(--soft); margin-top: 4px; }
.policy li { margin: 4px 0; }

/* the Moon Gate page: the reel first */
.reel-hero {
  display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 36px; align-items: center;
  padding: 20px 0 8px;
}
@media (max-width: 760px) {
  .reel-hero { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .reel-hero .reel-side { display: contents; }
  .reel-side h1, .reel-side .tagline { order: -1; }
  .reel-side .store-row { justify-self: center; margin: 2px 0 0; }
}
.reel-frame {
  width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; max-height: 82vh;
  border: 3px solid var(--bronze); border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-side h1 {
  margin: 0; font-size: clamp(42px, 9vw, 72px); font-weight: 700; line-height: 1.05; color: var(--gold);
  text-shadow: 0 3px 0 #7a5a24, 0 8px 24px rgba(0, 0, 0, 0.5);
}
.reel-side .tagline { margin: 8px 0 0; font-size: 21px; color: var(--soft); }
.store-row { display: flex; align-items: center; gap: 12px; margin: 22px 0 8px; }
.store-row .badge { margin: 0; }
.app-icon { width: 52px; height: 52px; border-radius: 24%; display: block; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45); }
@media (max-width: 760px) {
  .reel-side h1 { font-size: min(40px, 9.6vw); white-space: nowrap; }
  .reel-side .tagline { font-size: 17px; margin-top: 2px; }
}
.contact { color: var(--soft); text-align: center; }

/* phones: the reel shrinks so the title, the reel and the badge fit one screen with the browser bars showing */
@media (max-width: 760px) {
  .reel-hero { padding-top: 14px; gap: 10px; }
  .reel-frame { max-height: none; width: min(100%, calc((100vh - 230px) * 9 / 16)); }
}
@supports (height: 100svh) {
  @media (max-width: 760px) { .reel-frame { width: min(100%, calc((100svh - 230px) * 9 / 16)); } }
}

.about-line { padding: 8px 0 20px; max-width: 640px; }
.about-line h2 { font-size: 21px; margin-bottom: 6px; }
.about-line p { margin: 0; color: var(--soft); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
