/* The look is the game's menus (larves-block-party: godot/src/Menu/MenuTheme.cs): cream ink on
   dark wood plates, brass kicker lines, Baloo 2 over Nunito. */
:root {
  --bg: #1c140c;                        /* make_assets.py BG matches this */
  --cream: #f3e9d8;                     /* MenuTheme.Cream */
  --cream-soft: rgba(243, 233, 216, 0.8);
  --brass: #c9a15c;                     /* MenuTheme.Brass */
  --focus: #ffd479;                     /* MenuTheme.FocusInk */
  --plate: rgba(12, 9, 5, 0.68);        /* MenuTheme.PlateBg */
  --plate-edge: rgba(201, 161, 92, 0.32);
  /* The logo's blocks. */
  --red: #f82126;
  --cyan: #03ccdf;
  --yellow: #fdc102;
  --display: "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--body);
}

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

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.12; }
p { margin: 0; }

a { color: inherit; text-decoration-color: rgba(201, 161, 92, 0.7); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brass); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* --- Plates: the menus' dark rounded panels --------------------------------------------- */
.plate {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 24px 28px;
}
.plate h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); margin-bottom: 8px; }
.plate h3 { font-size: 1.45rem; margin-bottom: 6px; }

/* The small brass caps line over a title, as on the game's info cards. */
.kicker {
  margin-bottom: 4px;
  color: var(--brass);
  font: 800 0.78rem/1.4 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- Hero ---------------------------------------------------------------------------------- */
.hero {
  background:
    linear-gradient(to bottom, rgba(28, 20, 12, 0.15), rgba(28, 20, 12, 0.55) 55%, var(--bg)),
    url("assets/backdrop.webp") center / cover no-repeat;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 16px clamp(48px, 7vw, 88px);
  text-align: center;
}
.logo {
  width: min(640px, 100%);
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}
.tagline {
  margin-top: 12px;
  font: 800 clamp(1.55rem, 4vw, 2.4rem)/1.15 var(--display);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}
.lede {
  max-width: 34ch;
  margin-top: 10px;
  color: var(--cream-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
/* The beta's status. It invites no one in: the owner isn't handing out more keys yet. */
.status {
  margin-top: 28px;
  padding: 14px 28px 16px;
  backdrop-filter: blur(6px);
}
.status .kicker { margin-bottom: 2px; }
.status p:last-child { font-weight: 700; text-wrap: balance; }

/* --- Story --------------------------------------------------------------------------------- */
.story, .modes { max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.scene img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}
.welcome {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
}
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 20px;
  margin-top: 20px;
}
/* The picture sits at the card's right with the copy wrapping it, as on the game's info cards. */
.lore img {
  float: right;
  width: 116px;
  margin: 4px 0 10px 18px;
  border: 1px solid var(--plate-edge);
  border-radius: 12px;
}

/* --- Modes --------------------------------------------------------------------------------- */
.modes { padding-top: clamp(56px, 8vw, 96px); }
.section-title { margin-bottom: 24px; font-size: clamp(1.7rem, 4vw, 2.3rem); text-align: center; }
/* Three across or one per row: two across would leave Math Party alone on a row. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
/* A block tile before each mode's kicker, in the logo's colours. */
.card .kicker::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  vertical-align: -2px;
  border-radius: 4px;
  background: var(--block);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}
.card.classic { --block: var(--red); }
.card.word { --block: var(--cyan); }
.card.math { --block: var(--yellow); }
.note { margin-top: 22px; color: var(--cream-soft); text-align: center; }

/* --- Footer -------------------------------------------------------------------------------- */
footer {
  margin-top: clamp(64px, 9vw, 112px);
  padding: 32px 16px 48px;
  border-top: 1px solid rgba(201, 161, 92, 0.18);
  color: var(--cream-soft);
  font-size: 0.88rem;
  text-align: center;
}

/* --- Phones -------------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .plate { padding: 20px; }
  /* index.html serves the 4:3 cut here; this keeps the space right before it loads. */
  .scene img { aspect-ratio: 4 / 3; object-fit: cover; }
  .welcome { margin-top: 16px; }
  .pair { margin-top: 16px; gap: 16px; }
  .cards { gap: 16px; }
  .lore img { width: 96px; }
}
