/* Deep Bloom — the game's own site. The sea runs from sunlit shallows at the
   top to the deep at the bottom, like the game; one accent, the coral of the
   game's buttons. Fredoka for headings and Nunito for text, as in the game. */

:root {
  --sea-top: #0b4a5e;
  --sea-mid: #07324a;
  --sea-deep: #031a2a;
  --ink: #f7efe1;
  --ink-soft: #c9d8dc;
  --ink-faint: #8fb0b8;
  --sand: #f3d9a4;
  --coral: #ff7d54;
  --coral-deep: #e45f37;
  --line: rgba(247, 239, 225, 0.14);
  --card: rgba(4, 30, 44, 0.62);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sea-top) 0%, var(--sea-mid) 38%, var(--sea-deep) 100%) fixed;
  background-color: var(--sea-deep);
  font: 400 18px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sand); text-underline-offset: 3px; }
a:hover { color: #fff; }

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* --- Top bar ---------------------------------------------------------- */

.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  padding: 18px 0;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.bar a:hover { color: var(--sand); }
.bar .home { display: flex; align-items: center; gap: 10px; font-family: "Fredoka", sans-serif; font-size: 1.15rem; }
.bar .home img { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); object-fit: cover; }
.bar nav { display: flex; gap: 22px; }

/* --- Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero > img.backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.04);
  animation: drift 26s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(3, 26, 42, 0.05), rgba(3, 26, 42, 0.55) 70%),
    linear-gradient(180deg, rgba(3, 26, 42, 0.35) 0%, rgba(3, 26, 42, 0) 30%, rgba(7, 50, 74, 0.6) 78%, var(--sea-top) 100%);
}
.hero .logo { width: min(560px, 82vw); margin: 0 auto 8px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45)); }
.hero h1 { text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); max-width: 34em; margin: 0 auto 28px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
.hero .inner { padding: 120px 16px 90px; }

@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.09) translate(-1.2%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero > img.backdrop { animation: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--coral);
  color: #2a0f06;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(228, 95, 55, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.store small { display: block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.store svg { width: 22px; height: 22px; }
.store.soon { cursor: default; }

.ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(247, 239, 225, 0.45);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.ghost:hover { border-color: var(--ink); color: #fff; }

/* --- Sections --------------------------------------------------------- */

section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }

.intro { text-align: center; max-width: 40em; margin: 0 auto clamp(36px, 5vw, 64px); }
.intro p { color: var(--ink-soft); font-size: 1.12rem; }

/* How it plays: art and words, side to side, turning each row. */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(48px, 7vw, 96px);
}
.row:last-child { margin-bottom: 0; }
.row:nth-child(even) .art { order: 2; }
.row .art { position: relative; display: grid; place-items: center; min-height: 320px; }
.row .art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 217, 164, 0.24), rgba(243, 217, 164, 0) 68%);
}
.row .art img { position: relative; max-height: 360px; width: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
.row .art .pair { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 4%; }
.row .art .pair img { max-height: 300px; max-width: 48%; }
.row .words p { color: var(--ink-soft); font-size: 1.1rem; }
.step { display: inline-block; font-family: "Fredoka", sans-serif; color: var(--sand); font-size: 1rem; margin-bottom: 6px; }

/* A picture across the whole page, with a line on it. */
.band { position: relative; padding: 0; }
.band img { width: 100%; height: min(70vh, 640px); object-fit: cover; }
.band figcaption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(var(--max), 100% - 32px);
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* The cast: portraits along the sand. */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
.person { text-align: center; }
.person .face {
  height: 220px;
  display: grid;
  place-items: end center;
  margin-bottom: 12px;
  background: radial-gradient(ellipse 60% 20% at 50% 96%, rgba(243, 217, 164, 0.32), rgba(243, 217, 164, 0) 70%);
}
.person .face img { max-height: 210px; width: auto; }
.person h3 { margin-bottom: 4px; }
.person p { color: var(--ink-soft); font-size: 1rem; margin: 0 auto; max-width: 22em; }

/* The harbour at night. */
.night { overflow: hidden; isolation: isolate; }
.night > img.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.night::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--sea-mid) 0%, rgba(3, 26, 42, 0.72) 22%, rgba(3, 26, 42, 0.72) 78%, var(--sea-mid) 100%);
}
.ruins { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 3vw, 32px); align-items: end; }
.ruins figure { margin: 0; text-align: center; }
.ruins img { margin: 0 auto 10px; max-height: 300px; width: auto; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5)); }
.ruins figcaption { font-family: "Fredoka", sans-serif; color: var(--sand); }

/* Treasures on velvet. */
.velvet {
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 125, 84, 0.12), rgba(255, 125, 84, 0) 60%),
    linear-gradient(180deg, #2b1830, #1b1024);
  border: 1px solid rgba(243, 217, 164, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 60px rgba(0, 0, 0, 0.35);
}
.trove { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; margin-top: 28px; }
.trove img { margin: 0 auto; max-height: 130px; width: auto; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }

/* Deeper still. */
.deep { text-align: center; overflow: hidden; isolation: isolate; }
.deep > img.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.85; }
.deep::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sea-deep) 0%, rgba(3, 26, 42, 0.35) 35%, rgba(3, 26, 42, 0.55) 70%, var(--sea-deep) 100%); }
.deep .intro { margin-bottom: 0; }

/* The plain facts, in a line. */
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; padding: 0; margin: 0; list-style: none; }
.facts li { font-family: "Fredoka", sans-serif; font-size: 1.2rem; padding: 0 22px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }

/* --- Text pages (privacy, support) ------------------------------------- */

.page { padding: 120px 0 80px; }
.page .wrap { max-width: 780px; }
.page .meta { color: var(--ink-faint); font-size: 0.95rem; margin-bottom: 28px; }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.45em; }
.page strong { color: var(--ink); }
.summary {
  border-radius: var(--radius);
  padding: 22px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.summary p:last-child { margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.qa h2 { margin-top: 0; font-size: 1.25rem; }

/* --- Footer ----------------------------------------------------------- */

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-faint); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-soft); }

/* --- Phones ----------------------------------------------------------- */

@media (max-width: 760px) {
  body { font-size: 17px; }
  .bar nav { gap: 14px; }
  .bar nav a.extra { display: none; }
  .row { grid-template-columns: 1fr; }
  .row:nth-child(even) .art { order: 0; }
  .row .art { min-height: 0; }
  .row .art img { max-height: 260px; }
  .cast { grid-template-columns: repeat(2, 1fr); }
  .person .face { height: 170px; }
  .person .face img { max-height: 160px; }
  .ruins img { max-height: 170px; }
  .trove { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .facts li { padding: 0 14px; font-size: 1.05rem; }
  .band img { height: 52vh; }
}
