@font-face { font-family: "Nunito"; src: url("/fonts/nunito-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }

/* Same palette as the game's UI kit (systems/ui.rpy, art/tools/ui_kit.py) and branding (art/tools/branding.py):
   plum glass panels, hot pink accent, lavender muted text, name colours per girl. */
:root {
  --bg: #0e0c14;
  --bg-2: #181620;
  --card: #282436;
  --line: #3d3449;
  --text: #f3eef8;
  --muted: #b8afc5;
  --accent: #ff5fa8;
  --accent-2: #ff9ec7;
  --peach: #ffc4a0;
  --elena: #c9a26b;
  --maya: #ff9ec7;
  --radius: 16px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; margin-top: 1.2em; color: var(--muted); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 56px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--muted); margin-bottom: .7em; }

/* buttons: filled pink like the game's choice highlight, ghost like its pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .75em 1.4em; border-radius: 999px; font-weight: 800; color: #2a0d1d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px -10px rgba(255, 95, 168, .5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(255, 95, 168, .65); }
.btn-big { font-size: 1.1rem; padding: .9em 1.8em; }
.btn-small { padding: .45em 1.1em; font-size: .9rem; }
.btn-ghost { background: rgba(14, 12, 20, .55); color: var(--text); border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.btn-ghost:hover { background: #5c284a; border-color: rgba(255, 120, 185, .8); box-shadow: none; }
.chip {
  display: inline-block; padding: .35em .9em; border-radius: 999px; font-weight: 700; font-size: .92rem;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: var(--text);
}
.chip:hover { background: #5c284a; border-color: rgba(255, 120, 185, .8); text-decoration: none; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 24px; background: rgba(14, 12, 20, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); font-weight: 700; }
.nav nav a[aria-current="page"], .nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-brand img { width: 110px; height: auto; }

/* hero: the main menu art, a plum fade from the left under the text (like the game's own banners) */
.hero {
  position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end;
  background: var(--hero) 70% 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 12, 20, .78) 0%, rgba(14, 12, 20, .45) 38%, rgba(14, 12, 20, 0) 62%),
    linear-gradient(180deg, rgba(14, 12, 20, 0) 45%, rgba(14, 12, 20, .55) 80%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 1; padding-bottom: 56px; width: 100%; min-width: 0; }
.hero-title { margin: 0; line-height: 1; }
.hero-mark { width: min(420px, 78vw); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .55)); }
.hero-kind { margin: .8em 0 .2em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--peach); }
.hero-tag { font-size: clamp(1.15rem, 2.4vw, 1.45rem); max-width: 30em; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 1em; }
.hero-meta { color: #d6cfe0; font-size: .95rem; margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }

/* story */
.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.story > * { min-width: 0; }
.story-text p { color: #ddd6e6; }
.chars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.char { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.char-art { height: 320px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #4a3350, var(--bg-2) 80%); }
.char-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 4%; transform: scale(1.35); transform-origin: 50% 8%; }
.char figcaption { padding: 14px 16px 16px; }
.char h3 { margin-bottom: .3em; }
.char-elena h3 { color: var(--elena); }
.char-maya h3 { color: var(--maya); }
.char p { font-size: .93rem; color: var(--muted); margin: 0; }

/* features: a quiet list, not six more boxes */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.features li { padding: 20px 0; border-top: 1px solid var(--line); }
.features h3 { color: var(--text); }
.features h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.features p { margin: 0; color: var(--muted); font-size: .96rem; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.03); }
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 24px;
  background: rgba(14, 12, 20, .94);
}
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1600px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { text-align: center; color: var(--muted); margin-top: 12px; }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .1); color: var(--text); border: 0; border-radius: 999px;
  width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer;
}
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

/* download + releases */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; margin-bottom: 18px; }
.dl-grid > * { min-width: 0; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dl .btn-big { width: 100%; }
.dl > .muted { margin-top: .8em; }
.dl-alt { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 0; }
.dl-plat { min-width: 150px; display: flex; flex-direction: column; line-height: 1.3; }
.dl-plat .muted { font-size: .85rem; }
.dl-mirrors { display: flex; flex-wrap: wrap; gap: 8px; }
.release { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 80px; }
.release-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.release-head h3 { margin: 0; font-size: 1.4rem; }
.release-head time { color: var(--muted); font-size: .92rem; }
.release-sub { color: var(--peach); font-weight: 700; margin: .4em 0 .8em; }
.badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: .15em .65em; border-radius: 999px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #2a0d1d; }
.changes, .release ul { margin: 0; padding-left: 1.2em; color: #ddd6e6; }
.changes li { margin: .25em 0; }
.changes li::marker, .release ul li::marker { color: var(--accent); }
.release .dl { margin-top: 20px; background: var(--bg-2); }
.releases { max-width: 860px; }
.more { font-weight: 800; }

/* support band (homepage) */
.band {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: radial-gradient(ellipse at 100% 0%, rgba(255, 95, 168, .22), transparent 60%), linear-gradient(135deg, #2a1a30, var(--bg-2));
  border: 1px solid rgba(255, 120, 185, .35); border-radius: 22px; padding: 40px;
}
.band-text p { color: #ddd6e6; }
.band-text p:last-child { margin-bottom: 0; }
.band-cta { display: flex; flex-direction: column; gap: 12px; }
.band-cta .btn { width: 100%; }
.band-cta p { margin: 4px 0 0; text-align: center; }
.band-slim { padding: 28px 32px; margin: 48px 0; }
.band-slim h2 { font-size: 1.4rem; }

/* support page */
.support-page h2 { margin-top: 1.6em; }
.plats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.plat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plat h3 { font-size: 1.4rem; margin-bottom: .3em; }
.plat .btn { margin-top: auto; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tier-free { background: transparent; border-style: dashed; }
.tier-price { margin: 0 0 .4em; font-size: 1.5rem; font-weight: 800; color: var(--accent-2); }
.tier h3 { color: var(--text); }
.tier ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }
.tier li { margin: .3em 0; }
.tier li::marker { color: var(--accent); }
.note-plain { max-width: 760px; margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.note-plain p { color: #ddd6e6; }

/* footer */
.foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: 40px 0 48px; font-size: .92rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; font-weight: 700; }
.foot p { margin: .3em 0; }

@media (max-width: 900px) {
  .story, .dl-grid, .band { grid-template-columns: minmax(0, 1fr); }
  .features, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding-block: 40px; }
  .wrap { padding-inline: 16px; }
  .nav { padding: 10px 16px; gap: 8px; }
  .nav-brand img { width: 96px; }
  .nav nav { gap: 14px; font-size: 15px; }
  .nav nav a[href="/"] { display: none; }
  .hero { min-height: 78vh; background-position: 72% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 12, 20, .1) 20%, rgba(14, 12, 20, .7) 62%, var(--bg) 100%); }
  .hero-in { padding-bottom: 32px; }
  .hero-mark { width: min(280px, 100%); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .features, .shots, .tiers, .plats { grid-template-columns: minmax(0, 1fr); }
  .char-art { height: 240px; }
  .band { padding: 24px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot img { transition: none; }
}
