/* Glomi website. One night-sky look everywhere (the game's own palette), mobile first.
   Layout: full-bleed sky bands, content in one centred column, light-river lines between bands. */
:root {
  --night: #120e33;
  --dusk: #231a5c;
  --violet: #4a2fb0;
  --cream: #fff4e4;
  --mist: rgba(255, 244, 228, 0.74);
  --faint: rgba(255, 244, 228, 0.14);
  --ink: #1a1420;
  --pink: #ff5fa8;
  --sun: #ffd34f;
  --sky: #5fd8ff;
  --river: #fff1d6;
  --display: "Josefin Sans", "Trebuchet MS", system-ui, sans-serif;
  --body: "Quicksand", "Nunito", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 6vw, 3.2rem);
  --col: 68rem;
  --radius: 22px;
  color-scheme: dark;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/JosefinSans.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("fonts/Quicksand.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(3.5rem, 9vw, 6.5rem); position: relative; }
.band--dusk { background: linear-gradient(180deg, var(--night), var(--dusk)); }
.band--violet { background: linear-gradient(180deg, var(--dusk), #2f2280 60%, var(--violet)); }

/* The light river: Glomi's checkpoint beam, used as the divider between bands. */
.river {
  height: 3px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--river) 12%, #fff 50%, var(--river) 88%, transparent);
  box-shadow: 0 0 18px 4px rgba(255, 241, 214, 0.45), 0 0 60px 10px rgba(255, 200, 150, 0.12);
}

.eyebrow {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: var(--step--1);
  color: var(--mist);
  margin: 0 0 0.9rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-3); margin-bottom: 1.2rem; }
h3 { font-size: var(--step-1); font-weight: 400; margin-bottom: 0.35rem; }
p { margin: 0; max-width: 62ch; }
.lead { font-size: var(--step-1); color: var(--mist); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--body); font-weight: 700; font-size: var(--step-0);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--paint { background: var(--cream); color: var(--ink); box-shadow: 0 0 0 0 rgba(255, 95, 168, 0); }
.btn--paint:hover { box-shadow: 0 6px 30px rgba(255, 244, 228, 0.25); }
.btn--ghost { border-color: rgba(255, 244, 228, 0.55); color: var(--cream); background: transparent; }
.btn--ghost:hover { background: rgba(255, 244, 228, 0.08); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Header */
.top {
  position: absolute; inset: 0 0 auto; z-index: 5;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top__home { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--display); letter-spacing: 0.2em; text-transform: uppercase; font-size: var(--step--1); }
.top__home img { width: 34px; height: 34px; border-radius: 10px; }
.top nav { display: flex; gap: 1.1rem; font-size: var(--step--1); font-weight: 600; }
.top nav a { text-decoration: none; color: var(--mist); }
.top nav a:hover { color: var(--cream); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--night) url("img/hero-tall.jpg") center 30% / cover no-repeat;
  padding-block: calc(env(safe-area-inset-top, 0px) + 6.5rem) 4.5rem;
  text-align: center;
}
@media (min-width: 760px) {
  .hero { background-image: url("img/hero-wide.jpg"); background-position: center 40%; padding-block: 8rem 6rem; }
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, var(--night)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.hero__logo { width: min(560px, 74vw); height: auto; filter: drop-shadow(0 0 40px rgba(255, 241, 214, 0.28)); }
.hero__tag { font-family: var(--display); font-weight: 300; text-transform: uppercase; letter-spacing: 0.3em; font-size: clamp(0.8rem, 2.6vw, 1.05rem); color: var(--cream); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45); }
.hero__note { font-size: var(--step--1); color: var(--mist); font-weight: 600; }
.hero .btn-row { justify-content: center; }

/* Intro + three ideas */
.intro { display: grid; gap: 2.5rem; }
.ideas { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ideas { grid-template-columns: repeat(3, 1fr); } }
.idea { padding: 1.4rem 1.3rem 1.5rem; border-top: 1px solid var(--faint); min-width: 0; }
.idea p { color: var(--mist); font-size: 1rem; }
.idea__mark { width: 40px; height: 40px; margin-bottom: 0.9rem; }

/* Screens strip: scrolls sideways on phones, a row on wide screens. */
.screens {
  display: grid; grid-auto-flow: column; grid-auto-columns: 58%;
  gap: 1rem; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x mandatory;
  margin-top: 2.6rem;
}
@media (min-width: 700px) { .screens { grid-auto-columns: minmax(0, 1fr); } }
.screens img { border-radius: 18px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; scroll-snap-align: start; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }

/* Worlds */
.worlds { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
@media (min-width: 900px) { .worlds { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.world { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; max-width: 100%; }
.world img { width: 100%; height: 100%; object-fit: cover; }
.world__text { position: absolute; inset: auto 0 0; padding: 2.4rem 0.9rem 0.9rem; background: linear-gradient(180deg, transparent, rgba(10, 8, 26, 0.85)); }
.world__n { font-family: var(--display); letter-spacing: 0.25em; font-size: 0.72rem; color: var(--mist); text-transform: uppercase; }
.world h3 { margin: 0.15rem 0 0.2rem; }
.world p { font-size: 0.86rem; color: var(--mist); line-height: 1.4; }
.world--hidden h3 { letter-spacing: 0.05em; }
.worlds > .world:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .worlds > .world:last-child { grid-column: auto; aspect-ratio: 3 / 4; } }

/* Fair play */
.promises { display: grid; gap: 0.2rem; margin-top: 1.6rem; padding: 0; list-style: none; max-width: 44rem; }
.promises li { display: flex; gap: 0.9rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--faint); }
.promises li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 12px var(--sun); transform: translateY(1px); }
.promises li:nth-child(2)::before { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.promises li:nth-child(3)::before { background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.promises li:nth-child(4)::before { background: #8ef06a; box-shadow: 0 0 12px #8ef06a; }

/* Playtest call */
.call { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 820px) { .call { grid-template-columns: 1.3fr 1fr; } }
.call__orb { justify-self: center; width: clamp(120px, 34vw, 260px); position: relative; }
.call__orb img { width: 100%; height: auto; }
.call__orb::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 241, 214, 0.45), transparent); }
.call__orb img { position: relative; animation: bob 4.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.call .btn-row { margin-top: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.chip { font-size: 0.82rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 244, 228, 0.35); color: var(--cream); }

/* Wallpapers */
.walls { display: grid; gap: 0.9rem; grid-auto-flow: column; grid-auto-columns: 40%; overflow-x: auto; padding-bottom: 0.6rem; scroll-snap-type: x mandatory; margin-top: 2rem; }
.walls > * { scroll-snap-align: start; }
@media (min-width: 700px) { .walls { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.wall { display: grid; gap: 0.5rem; text-decoration: none; min-width: 0; }
.wall img { border-radius: 16px; aspect-ratio: 9 / 20; object-fit: cover; width: 100%; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.wall a:hover img { transform: translateY(-4px); }
.wall { margin: 0; }
.wall figcaption { font-size: 0.86rem; font-weight: 600; color: var(--mist); }
.wall--moving figcaption::before { content: "\25B6\FE0E  "; color: var(--sun); }
.wall__get { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0; }
.wall__get a { font-size: 0.78rem; font-weight: 700; color: var(--cream, #fff4e4); text-decoration: none; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid rgba(255, 244, 228, 0.35); }
.wall__get a:hover { border-color: var(--sun); color: var(--sun); }
.small { font-size: var(--step--1); color: var(--mist); }

/* Contact */
.form { display: grid; gap: 1rem; margin-top: 1.6rem; max-width: 36rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.95rem; }
.form input, .form textarea {
  width: 100%; font: inherit; font-weight: 500; color: var(--cream);
  background: rgba(255, 244, 228, 0.06); border: 1px solid rgba(255, 244, 228, 0.28);
  border-radius: 14px; padding: 0.8rem 1rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; }
.form__status { min-height: 1.6em; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* FAQ */
.faq { display: grid; gap: 0; margin-top: 1.6rem; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--faint); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--mist); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin-top: 0.6rem; color: var(--mist); }

/* Footer */
.foot { padding-block: 3rem calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); color: var(--mist); }
.foot .wrap { display: grid; gap: 1.2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; }
.foot a { color: var(--mist); }

/* Playtest page */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0 0 0 0; display: grid; gap: 1.4rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 3px; background: linear-gradient(180deg, var(--river), rgba(255, 241, 214, 0.15)); box-shadow: 0 0 14px rgba(255, 241, 214, 0.4); border-radius: 2px; }
.step { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 1rem; counter-increment: step; }
.step::before {
  content: counter(step); width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 1.2rem;
  background: var(--cream); color: var(--ink); box-shadow: 0 0 0 6px var(--night), 0 0 26px rgba(255, 241, 214, 0.55);
  position: relative; z-index: 1;
}
.step__body { padding: 0.2rem 0 0.4rem; min-width: 0; display: grid; gap: 0.5rem; justify-items: start; }
.step__body p { color: var(--mist); }
.soon { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 0.15rem 0.7rem; }
.gift { display: grid; gap: 1.2rem; grid-template-columns: 96px 1fr; align-items: center; margin-top: 2.2rem; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: linear-gradient(120deg, rgba(255, 95, 168, 0.16), rgba(95, 216, 255, 0.12)); border: 1px solid rgba(255, 244, 228, 0.18); max-width: 44rem; }
.gift__orb { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(255, 211, 79, 0.65), rgba(255, 95, 168, 0.25) 70%, transparent); font-family: var(--display); font-size: 2.4rem; font-weight: 300; color: var(--cream); }
.gift p { color: var(--mist); }

/* Plain document page (privacy) */
.doc { padding-block: 7rem 4rem; }
.doc h1 { margin-bottom: 0.6rem; }
.doc h2 { font-size: var(--step-2); margin: 2.4rem 0 0.8rem; }
.doc p, .doc li { color: var(--mist); max-width: 66ch; }
.doc p + p { margin-top: 0.8rem; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.draft-note { margin-top: 1.4rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: rgba(255, 211, 79, 0.12); border: 1px solid rgba(255, 211, 79, 0.4); color: var(--cream) !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

[hidden] { display: none !important; }
