/* Boss Flow web page. One dark dungeon look, the game's own: plum stone, cream, warm gold.
   No framework, no tracker, no cookie. Fonts and images are served from this folder. */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* Layout: a single centred column over the dungeon backdrop; cream text on plum stone. */
:root {
  --night: #17122a;      /* page ground: the dungeon's dark */
  --stone: #2a2142;      /* raised stone surfaces */
  --stone-edge: #45386a; /* stone joints and borders */
  --cream: #f6ead2;      /* text */
  --cream-dim: #cdbfa6;  /* secondary text */
  --gold: #f4b740;       /* links and markers, the one accent */
  --ink: #241a10;        /* text on gold */
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Fredoka", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --column: 40rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
}

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

a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--column);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---- Hero: the game's splash backdrop with the logo over it ---- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(23 18 42 / 0.15) 0%, rgb(23 18 42 / 0) 50%, rgb(23 18 42 / 0.8) 80%, var(--night) 100%);
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: 2rem 2.75rem;
  min-height: min(50rem, 172vw);
  justify-content: space-between;
}
.logo { width: min(15rem, 50vw); filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.55)); }
.hero-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.tagline {
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.4vw, 2rem);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.8);
  max-width: 22ch;
}

/* ---- Store badges: Apple's and Google's official files, unchanged. Google's PNG carries its own
   clear space (41 px of 250 on each side), so it is drawn larger and pulled in by that margin to make
   both badges the same visible height. ---- */
.stores { --badge-h: 3rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem; }
.badge { display: block; line-height: 0; border-radius: 9px; }
.badge img { width: auto; max-width: none; }
.badge-apple { height: var(--badge-h); }
.badge-google { height: calc(var(--badge-h) * 250 / 168); margin: calc(var(--badge-h) * -41 / 168); }
.badge:hover { filter: brightness(1.12); }
.free { font-size: 0.95rem; color: var(--cream-dim); }

/* ---- Sections ---- */
main section { padding-block: 2.5rem; }
main section + section { border-top: 2px solid var(--stone); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.lead { font-size: 1.25rem; font-weight: 500; }

/* Video slot: a picture that links out to YouTube. Nothing loads from YouTube until a visitor taps it. */
.video-link {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--stone-edge);
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: var(--stone);
}
.video-link img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.video-link .play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgb(23 18 42 / 0.45);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.35rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.video-link .play::before {
  content: "";
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23241a10'/%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.5);
}

/* The party: four heroes on their Journal cards */
.party {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.party li {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.party img {
  border-radius: 16px;
  border: 3px solid var(--stone-edge);
  aspect-ratio: 1;
  width: 100%;
}
.party p { font-size: 1rem; color: var(--cream-dim); }
.party strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--cream); }
@media (min-width: 40rem) { .party { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.inside { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.4rem; }
.inside li::marker { color: var(--gold); }

/* ---- Footer ---- */
footer {
  border-top: 2px solid var(--stone);
  background: #120e21;
  font-size: 1rem;
  color: var(--cream-dim);
}
footer .wrap { padding-block: 2rem 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.contact strong { color: var(--cream); font-weight: 600; }

/* ---- Account deletion page ---- */
.page-head { border-bottom: 2px solid var(--stone); background: #120e21; }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.page-head img { width: 5.5rem; }
.doc { padding-block: 0.5rem 2rem; display: flex; flex-direction: column; }
main.doc section { padding-block: 1.75rem; }
.doc h1 { font-size: clamp(1.9rem, 6vw, 2.5rem); }
.doc section { display: flex; flex-direction: column; gap: 0.75rem; }
.doc ol, .doc ul { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 0.45rem; }
.doc li::marker { color: var(--gold); font-weight: 600; }
.doc .note {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: var(--stone);
  border: 2px solid var(--stone-edge);
}
.kept { display: flex; flex-direction: column; gap: 0.9rem; margin: 0; }
.kept div { padding-left: 1rem; border-left: 3px solid var(--stone-edge); }
.kept dt { font-weight: 600; color: var(--cream); }
.kept dd { margin: 0.15rem 0 0; color: var(--cream-dim); }
.email { font-weight: 600; word-break: break-all; }
.small { font-size: 0.95rem; color: var(--cream-dim); }

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