/* NeuroFlip on the web.
 *
 * Same three typefaces the game itself loads (Fredoka for the logo, Baloo 2 for
 * headings, Nunito for text) and the palette read off its own screens, so the
 * site and the app look like one thing. Committed to the game's night board
 * rather than following the OS theme - a light version of this would be a
 * different product. */

:root {
  --night:      #0a0f1e;
  --night-2:    #111830;
  --panel:      #172038;
  --panel-2:    #1e2941;
  --line:       #2b3550;
  --card:       #f7f1e3;

  --ink:        #eef2f9;
  --ink-dim:    #a7b2cd;
  --ink-faint:  #737fa0;

  --gold:       #ffc53d;
  --gold-deep:  #e08a15;
  --good:       #3ddc84;
  --orchard:    #4ade80;
  --market:     #c084fc;
  --hive:       #ffb648;
  --danger:     #ff6b6b;

  --measure: 68ch;
  --page: 68rem;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Faint fruit-orchard glow, the same trick the menu screen uses behind its
   logo. Fixed so it does not scroll with the content. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(74, 222, 128, .10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(192, 132, 252, .10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255, 197, 61, .07), transparent 60%);
}

.wrap { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ type */

h1, h2, h3, .logo, .btn, .eyebrow, .stat-n {
  font-family: "Baloo 2", Nunito, system-ui, sans-serif;
}

.logo, h1 {
  font-family: Fredoka, "Baloo 2", system-ui, sans-serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h3 { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.3; }

p { margin: 0; max-width: var(--measure); }

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.dim { color: var(--ink-dim); }
.faint { color: var(--ink-faint); font-size: .9rem; }

/* --------------------------------------------------------------- chrome */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 30, .82);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  max-width: var(--page);
  margin: 0 auto;
  padding: .8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav .logo {
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-right: auto;
}

.nav .logo img { width: 30px; height: 30px; border-radius: 7px; }

.nav a.link {
  color: var(--ink-dim);
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: .95rem;
}
.nav a.link:hover, .nav a.link[aria-current="page"] { color: var(--gold); }

main { max-width: var(--page); margin: 0 auto; padding: 0 1.4rem; }

section { padding: 4rem 0; }
section + section { border-top: 1px solid var(--line); }

.section-head { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }

/* ----------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
  .hero-art { order: -1; }
}

.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }

.hero h1 .accent { color: var(--gold); }

.tagline { font-size: 1.2rem; color: var(--ink-dim); }

.hero-art img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 197, 61, .08);
}

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: #2b1c04; border-color: var(--gold-deep); }
.btn-primary:hover { filter: brightness(1.08); color: #2b1c04; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat { background: var(--night-2); padding: 1.1rem 1rem; text-align: center; }
.stat-n {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-l {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

/* -------------------------------------------------------------- gallery */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

figure { margin: 0; display: flex; flex-direction: column; gap: .6rem; }

figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--night-2);
}

figcaption { font-size: .84rem; color: var(--ink-faint); line-height: 1.45; }
figcaption b { color: var(--ink-dim); font-weight: 700; }

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.card h3 { color: var(--ink); }
.card p { font-size: .94rem; color: var(--ink-dim); }

.card-accent { border-top: 3px solid var(--gold); }

/* --------------------------------------------------------------- worlds */

.worlds { display: flex; flex-direction: column; gap: .5rem; }

.world {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .85rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tint, var(--gold));
  border-radius: 10px;
}

.world-n {
  font-family: "Baloo 2", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--tint, var(--gold));
  font-variant-numeric: tabular-nums;
}
.world-name { font-weight: 700; font-family: "Baloo 2", sans-serif; }
.world-in { font-size: .88rem; color: var(--ink-dim); }
.world-lv {
  font-size: .8rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .world { grid-template-columns: 2.4rem 1fr; }
  .world-lv { grid-column: 2; }
}

/* ------------------------------------------------------------ documents */

.doc { padding: 3rem 0 5rem; display: flex; flex-direction: column; gap: 2rem; }
.doc-head { display: flex; flex-direction: column; gap: .5rem; }
.doc h2 { margin-top: 1.5rem; }
.doc h3 { margin-top: .75rem; color: var(--gold); }
.doc p, .doc li { color: var(--ink-dim); }
.doc p + p { margin-top: .9rem; }

.doc ul { margin: .8rem 0 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.doc li { max-width: var(--measure); }
.doc li::marker { color: var(--gold); }

.doc strong { color: var(--ink); }

.callout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
}
.callout p { color: var(--ink-dim); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--panel); }
th {
  text-align: left;
  font-family: "Baloo 2", sans-serif;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-dim); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--ink); }

/* --------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  background: var(--night-2);
  margin-top: 3rem;
}

.foot-in {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-links { display: flex; flex-direction: column; gap: .45rem; }
.foot-links a { color: var(--ink-dim); text-decoration: none; font-size: .93rem; }
.foot-links a:hover { color: var(--gold); }
.foot-brand { display: flex; flex-direction: column; gap: .5rem; max-width: 22rem; }
