/* Home Row Defense pages: the game's look (navy glass panels, goo-green toy buttons, Fredoka). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #10132a;
  --panel: rgba(27, 32, 64, 0.94);
  --panel-2: #252d58;
  --rim: #5e6cb4;
  --text: #f6f1e3;
  --muted: #aab2d2;
  --goo: #8fe34f;
  --goo-dark: #3e8a1c;
  --orange: #ffa53d;
  --orange-dark: #b8601a;
  --gold: #ffc94d;
  --purple: #b07cff;
  --danger: #ff5d6c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 18px/1.55 "Fredoka", system-ui, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--goo); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.logo { font-weight: 700; font-size: 22px; color: var(--text); text-decoration: none; letter-spacing: .3px; }
.logo b { color: var(--goo); }

/* toy buttons with a darker lip */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 700 20px/1 "Fredoka", system-ui, sans-serif; color: var(--ink);
  background: var(--goo); border-radius: 16px; padding: 14px 26px 12px;
  box-shadow: 0 6px 0 var(--goo-dark), 0 10px 18px rgba(0,0,0,.35);
  transition: transform .08s, box-shadow .08s, background .15s;
}
.btn:hover { background: #a3ef68; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--goo-dark), 0 4px 10px rgba(0,0,0,.35); }
.btn.warm { background: var(--orange); box-shadow: 0 6px 0 var(--orange-dark), 0 10px 18px rgba(0,0,0,.35); }
.btn.warm:hover { background: #ffb85f; }
.btn.small { font-size: 16px; padding: 10px 18px 9px; border-radius: 13px; }
.btn.ghost { background: #323c78; color: var(--text); box-shadow: 0 6px 0 #1b2149, 0 10px 18px rgba(0,0,0,.35); }
.btn[disabled] { opacity: .55; cursor: default; }

.panel {
  background: var(--panel); border: 2px solid rgba(75, 88, 152, .8); border-top: 3px solid var(--rim);
  border-radius: 22px; box-shadow: 0 14px 28px rgba(0,0,0,.38);
}

/* hero */
.hero { position: relative; border-radius: 26px; overflow: hidden; margin-top: 8px; }
.hero img { width: 100%; height: 520px; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,19,42,.92) 0%, rgba(16,19,42,.6) 45%, rgba(16,19,42,0) 75%); }
.hero .copy { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px; max-width: 600px; }
.hero h1 { font-size: 52px; line-height: 1.05; margin: 0 0 14px; }
.hero h1 span { color: var(--goo); }
.hero p { font-size: 20px; color: #dfe3f5; margin: 0 0 26px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { font-size: 15px; color: var(--muted); }

h2 { font-size: 34px; margin: 64px 0 18px; line-height: 1.15; }
h3 { font-size: 21px; margin: 0 0 6px; }
.lead { color: var(--muted); max-width: 720px; margin: -6px 0 26px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card { padding: 22px; }
.card p { margin: 0; color: #d6daee; font-size: 17px; }
.dot { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; font-weight: 700; color: var(--ink); }

.shots { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.shots figure { margin: 0; overflow: hidden; }
.shots figcaption { padding: 12px 18px 16px; color: var(--muted); font-size: 16px; }

.areas { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.area { position: relative; overflow: hidden; border-radius: 16px; }
.area img { width: 100%; aspect-ratio: 480 / 274; object-fit: cover; }
.area div { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 8px; background: linear-gradient(transparent, rgba(16,19,42,.92)); }
.area b { display: block; font-size: 17px; }
.area span { font-size: 14px; color: var(--goo); }

.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; margin-bottom: 10px; }

/* landing sections */
.pitch { max-width: 760px; margin: 0 auto; text-align: center; }
.pitch h2 { margin-top: 72px; }
.pitch p { font-size: 20px; color: #d6daee; margin: 0 0 14px; }
.pitch em { color: var(--goo); font-style: normal; font-weight: 600; }
.show { margin-top: 40px; }
.show > img { width: 100%; overflow: hidden; }
.points { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.points h3 { color: var(--gold); }
.points p { margin: 0; color: #d6daee; font-size: 17px; }
.split { display: grid; gap: 36px; grid-template-columns: 1fr 1.2fr; align-items: center; margin-top: 72px; }
.split h2 { margin-top: 0; }
.split p { color: #d6daee; margin: 0 0 12px; }
.split img { width: 100%; }
.story { margin-top: 72px; padding: 34px 36px; }
.story h2 { margin: 0 0 12px; }
.story p { margin: 0; color: #d6daee; font-size: 19px; max-width: 820px; }
.faq { max-width: 820px; }
.faq h2 { margin-top: 72px; }
.faq details { border-bottom: 1px solid rgba(94,108,180,.45); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--goo); font-weight: 700; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.cta-end h2 { margin: 0 0 8px; }

.cta-end { text-align: center; padding: 40px 22px; margin: 64px 0 0; }
.cta-end p { color: var(--muted); margin: 0 0 22px; }

footer { color: var(--muted); font-size: 15px; padding: 40px 0 48px; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* sign-in */
.center { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 24px 0 60px; }
.box { width: min(460px, 100%); padding: 30px; }
.box h1 { font-size: 32px; margin: 0 0 6px; }
.box p { color: var(--muted); margin: 0 0 20px; }
label { display: block; font-size: 16px; color: var(--muted); margin-bottom: 6px; }
input[type=email] {
  width: 100%; font: 400 19px "Fredoka", system-ui, sans-serif; color: var(--text);
  background: rgba(16,19,42,.9); border: 2px solid rgba(75,88,152,.9); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
}
input[type=email]:focus { outline: none; border-color: var(--goo); }
.box .btn { width: 100%; }
.msg { margin-top: 16px; font-size: 16px; min-height: 1.5em; }
.msg.ok { color: var(--goo); }
.msg.err { color: var(--danger); }

/* who's playing */
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.kids-main { padding: 28px 0 60px; }
.kids-main h1 { font-size: 40px; margin: 0 0 6px; }
.kids { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 26px; }
.kid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px 20px; text-decoration: none; color: var(--text); text-align: center; transition: transform .12s; }
a.kid:hover, .add-kid:hover { transform: translateY(-4px); }
.kid b { font-size: 22px; }
.kid span { font-size: 15px; color: var(--muted); }
.kid .btn { margin-top: 8px; }
.face { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 700; color: var(--ink); box-shadow: inset 0 -8px 0 rgba(0,0,0,.18); margin-bottom: 6px; }
.add-kid { font: inherit; cursor: pointer; background: transparent; border: 3px dashed rgba(94,108,180,.8); border-radius: 22px; }
.face.plus { background: #323c78; color: var(--goo); box-shadow: none; }
.add { margin: 0 0 20px; }
.add h2 { margin: 0 0 6px; font-size: 28px; }
input[type=text] {
  width: 100%; font: 400 19px "Fredoka", system-ui, sans-serif; color: var(--text);
  background: rgba(16,19,42,.9); border: 2px solid rgba(75,88,152,.9); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
}
input[type=text]:focus { outline: none; border-color: var(--goo); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 3px var(--ink) inset; }
.add .row { display: flex; gap: 12px; }
.add .row .btn { width: auto; flex: 1; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .shots, .points, .split { grid-template-columns: 1fr; }
  .split { gap: 20px; margin-top: 52px; }
  .pitch h2, .faq h2 { margin-top: 52px; }
  .pitch p { font-size: 18px; }
  .story { margin-top: 52px; padding: 24px 20px; }
  .areas { grid-template-columns: 1fr 1fr; }
  .hero img { height: 560px; }
  .hero::after { background: linear-gradient(0deg, rgba(16,19,42,.95) 0%, rgba(16,19,42,.75) 55%, rgba(16,19,42,.2) 100%); }
  .hero .copy { justify-content: flex-end; padding: 24px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 18px; }
  h2 { font-size: 28px; margin-top: 48px; }
}
