/* Doki Doki Second Draft website (index.html + install.html), 2026 remake.
   The game's own look: paper white, the club's magenta, Nunito for text, a rounded pop face for headings.
   One loud thing: "The year", a strip from April to April coloured by season. Everything else stays quiet. */

:root {
  --paper: #fffafc;
  --panel: #ffffff;
  --ink: #2e2335;
  --soft: #6b5870;
  --line: #eddde8;
  --tint: #fbeff6;
  --accent: #b8418c;
  --accent-deep: #8e2f6b;
  --on-accent: #ffffff;
  --sayori: #2f72b0;
  --natsuki: #c23a66;
  --yuri: #7a4fc0;
  --monika: #2e7d4f;
  --spring: #d9558f;
  --summer: #1f7fb8;
  --autumn: #b8601c;
  --winter: #4a66b8;
  --pop: "Mochiy Pop One", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Yomogi", "Nunito", cursive;
  --r: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1e1828;
    --panel: #272033;
    --ink: #f3ecf7;
    --soft: #c4b8d0;
    --line: #3f3552;
    --tint: #2e2640;
    --accent: #f08cc6;
    --accent-deep: #ffb3df;
    --on-accent: #1e1828;
    --sayori: #8ec5ff;
    --natsuki: #ff9ec4;
    --yuri: #c9aeff;
    --monika: #8fd9a8;
    --spring: #ff9cc4;
    --summer: #7cc6f2;
    --autumn: #f2a766;
    --winter: #a9bbf2;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--pop); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; max-width: 68ch; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; background: var(--tint); border-radius: 6px; padding: 1px 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.small { font-size: 14px; color: var(--soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--panel); padding: 8px 16px; border-radius: 8px; }
.section { padding: 84px 0; }
.lede { color: var(--soft); font-size: 19px; margin-bottom: 32px; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 8px 24px;
       background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--pop); font-size: 18px; margin-right: auto; }
.nav-logo img { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { position: relative; color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; transition: color .15s ease-out, background-color .15s ease-out; }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-cta { background: var(--accent); color: var(--on-accent); margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--accent-deep); color: var(--on-accent); }
.nav-toggle { display: none; font: inherit; font-size: 22px; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); padding: 4px 12px; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
               background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; font: 600 18px/1.2 var(--body); text-decoration: none; cursor: pointer;
       padding: 16px 24px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel); color: var(--ink); }
.btn { transition: color .15s ease-out, background-color .15s ease-out, border-color .15s ease-out; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.btn small { display: block; font-weight: 600; font-size: 14px; opacity: .9; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center;
        max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 40px; }
.hero-logo { width: 120px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(42px, 6vw, 70px); line-height: 1.05; margin-bottom: 16px; }
.hero h1 span { display: block; }
.hero-tag { font-family: var(--hand); font-size: clamp(22px, 2.4vw, 28px); color: var(--soft); margin: 0 0 16px; }
.hero-sub { font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-note { font-size: 15px; color: var(--soft); }
.hero-shot { position: relative; }
.hero-shot img { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .35); }
.hero-badge { position: absolute; left: -16px; bottom: -18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
              padding: 8px 16px; font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .3); }
.hero-badge b { color: var(--accent); font-family: var(--pop); font-weight: 400; font-size: 20px; margin-right: 8px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-shot { order: -1; }
  .hero-badge { left: 12px; }
}

/* ------------------------------------------------------------ the year (the one loud thing) */
.year { position: relative; }
.year-head { max-width: var(--wrap); margin: 0 auto 32px; padding: 0 24px; }
.season { --c: var(--spring); display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center;
          max-width: var(--wrap); margin: 0 auto; padding: 32px 24px; position: relative; }
.season::before { content: ""; position: absolute; left: 24px; top: 0; bottom: 0; width: 6px; border-radius: 6px; background: var(--c); }
.season.summer { --c: var(--summer); }
.season.autumn { --c: var(--autumn); }
.season.winter { --c: var(--winter); }
.season-label { padding-left: 24px; }
.season-label .months { display: block; font-family: var(--pop); font-size: 26px; color: var(--c); line-height: 1.1; }
.season-label .acts { display: block; font-size: 14px; font-weight: 600; color: var(--soft); margin-top: 8px; }
.season-text h3 { font-size: 24px; }
.season-text p { color: var(--ink); }
.season-text ul { margin: 0; padding: 0; list-style: none; color: var(--soft); font-size: 15px; }
.season-text li { padding: 4px 0 4px 16px; position: relative; }
.season-text li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.season figure { margin: 0; }
.season figure button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.season figure img { border-radius: 14px; border: 1px solid var(--line); }
.season figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
.season:nth-of-type(even) figure { order: -1; }
.season:nth-of-type(even) { grid-template-columns: 170px minmax(0, 1.1fr) minmax(0, 1fr); }
.season:nth-of-type(even) .season-label { order: -2; }
@media (max-width: 900px) {
  .season, .season:nth-of-type(even) { grid-template-columns: 1fr; gap: 16px; padding-left: 52px; }
  .season::before { left: 24px; }
  .season-label { padding-left: 0; }
  .season:nth-of-type(even) figure { order: 0; }
}

/* ------------------------------------------------------------ the club */
.club { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.member { --c: var(--accent); text-align: left; }
.member .pic { height: 300px; overflow: hidden; border-bottom: 4px solid var(--c); margin-bottom: 16px;
               background: linear-gradient(transparent 55%, color-mix(in srgb, var(--c) 14%, transparent)); border-radius: 14px 14px 0 0; }
.member .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.member h3 { color: var(--c); margin-bottom: 2px; }
.member .role { font-weight: 600; font-size: 15px; color: var(--soft); margin-bottom: 8px; }
.member p { font-size: 16px; }
.member q { display: block; font-family: var(--hand); font-size: 19px; color: var(--c); quotes: "“" "”"; margin-top: 8px; }
@media (max-width: 900px) { .club { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .club { grid-template-columns: 1fr; } .member .pic { height: 260px; } }

/* ------------------------------------------------------------ what's in it */
.inside { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-bottom: 32px; }
.facts div { padding: 16px 8px 16px 0; border-bottom: 1px solid var(--line); }
.facts b { display: block; font-family: var(--pop); font-weight: 400; font-size: 40px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 15px; color: var(--soft); font-weight: 600; }
.features { margin: 0; padding: 0; list-style: none; }
.features li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.features li b { display: block; }
.features li span { color: var(--soft); font-size: 16px; }
.inside-shots { display: grid; gap: 16px; }
.inside-shots figure { margin: 0; }
.inside-shots button { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.inside-shots img { border-radius: 14px; border: 1px solid var(--line); }
.inside-shots figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
.promise { margin-top: 24px; padding: 16px 20px; border-left: 5px solid var(--accent); background: var(--tint); border-radius: 0 12px 12px 0; }
.promise b { display: block; font-family: var(--pop); font-weight: 400; font-size: 19px; margin-bottom: 4px; }
@media (max-width: 900px) { .inside { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ watch */
.video-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab { font: 600 16px var(--body); padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.tab svg { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; margin-right: 8px; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.video img, .video video, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.video .play span { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video .play svg { width: 34px; height: 34px; fill: var(--on-accent); margin-left: 4px; }
.video-note { font-size: 15px; color: var(--soft); margin-top: 8px; }

/* ------------------------------------------------------------ get it */
.get { display: grid; gap: 16px; }
.get-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 24px;
           border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.get-row.main { border: 2px solid var(--accent); }
.get-row h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.get-row h3 svg { width: 24px; height: 24px; fill: var(--accent); }
.get-row p { margin: 0; color: var(--soft); font-size: 16px; }
.file-meta { font-size: 14px; color: var(--soft); margin: 8px 0 0; text-align: center; }
.need { margin-top: 24px; font-size: 17px; }
@media (max-width: 760px) { .get-row { grid-template-columns: 1fr; gap: 8px; } .get-row .btn { justify-content: center; } }

/* ------------------------------------------------------------ news + changelog */
.news-latest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 40px; }
.news-latest .date { font-weight: 600; color: var(--soft); margin-bottom: 8px; }
.changelog { display: grid; gap: 8px; }
.changelog details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; }
.changelog details[open] { padding-bottom: 16px; }
.changelog summary { cursor: pointer; padding: 16px 0; list-style: none; display: flex; gap: 16px; align-items: baseline; font-weight: 600; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::before { content: ""; width: 16px; height: 16px; flex: none; align-self: center; background: var(--soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform .15s ease-out; }
.changelog details[open] summary::before { transform: rotate(90deg); }
.changelog .ver { font-family: var(--pop); font-weight: 400; font-size: 18px; color: var(--ink); }
.changelog .when { color: var(--soft); font-size: 15px; }
.changelog h3 { font-size: 15px; font-family: var(--body); font-weight: 600; margin: 12px 0 4px; color: var(--soft); }
.changelog ul { margin: 0; padding-left: 20px; }
.changelog li { margin: 4px 0; }
@media (max-width: 760px) { .news-latest { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ discord + note */
.notes-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.discord-card, .dev-note { border-radius: 18px; padding: 24px 28px; }
.discord-card { background: var(--accent); color: var(--on-accent); }
.discord-card h3 { font-size: 26px; }
.discord-card p { opacity: .95; }
.discord-card .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.dev-note { border: 1px solid var(--line); background: var(--panel); font-family: var(--hand); font-size: 20px; line-height: 1.55; }
.dev-note .sig { color: var(--accent); }
@media (max-width: 760px) { .notes-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; color: var(--soft); }
.footer-logo { width: 70px; margin-bottom: 16px; }
.footer p { max-width: 90ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; }

/* ------------------------------------------------------------ lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15, 10, 20, .88); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1280px, 100%); }
.lightbox img { border-radius: 12px; max-height: 80vh; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 99px; width: 48px; height: 48px; font-size: 26px; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; }
.lb-next { right: 16px; top: 50%; }

/* ------------------------------------------------------------ install page */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: center; max-width: 920px; margin: 0 auto; padding: 48px 24px 24px; }
.page-head h1 { font-size: clamp(38px, 5vw, 56px); }
.page-head h1 .two { color: var(--accent); }
.page-head .sticky { padding: 16px 20px; border-left: 5px solid var(--accent); background: var(--tint); border-radius: 0 14px 14px 0; transform: none !important; font-size: 16px; }
.page-head .sticky b { display: block; font-family: var(--pop); font-weight: 400; font-size: 19px; margin-bottom: 4px; }
@media (max-width: 760px) { .page-head { grid-template-columns: 1fr; } }
.platform-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 24px 0; }
.platform-tabs .tab { font-size: 17px; padding: 8px 20px; }
.panel { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.panel[hidden] { display: none; }
.panel-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.panel-head p { color: var(--soft); margin: 0; }
@media (max-width: 640px) { .panel-head { grid-template-columns: 1fr; } }
.btn-red { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-red:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 0 0 32px 64px; }
.step::before { content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
                font-family: var(--pop); font-size: 20px; background: var(--accent); color: var(--on-accent); }
.step::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.tip { padding: 12px 16px; background: var(--tint); border-radius: 12px; font-size: 16px; margin: 8px 0; }
.shots-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; }
.phone-shot { margin: 0; }
.phone-shot img { border-radius: 12px; border: 1px solid var(--line); }
.phone-shot.tall img { max-height: 380px; width: auto; }
.phone-shot.wide img { max-width: 420px; width: 100%; }
.phone-shot figcaption { font-size: 14px; color: var(--soft); margin-top: 8px; }
.after .paper { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; padding: 24px 24px; margin: 8px 0 40px; }
.tape { display: none; }
.faq { max-width: 920px; margin: 0 auto; padding: 0 24px; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details[open] { padding-bottom: 12px; }
.faq ul { padding-left: 20px; }
#faq-title { text-align: center; }

/* ------------------------------------------------------------ signature: the game's own hand-drawn underline
   (mod_assets/ui/underline.png, the same stroke the game draws under its tabs). Section titles and the current page only. */
.uline { position: relative; display: inline-block; }
.uline::after, .nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -8px; height: 12px; background: var(--accent);
  -webkit-mask: url("assets/underline.png") center/100% 100% no-repeat; mask: url("assets/underline.png") center/100% 100% no-repeat; }
.nav-links a[aria-current="page"]::after { left: 8px; right: 8px; bottom: 0; height: 8px; }
.nav-links a[aria-current="page"].nav-cta::after { display: none; }
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.footer .small { font-size: 12px; line-height: 1.5; }

/* translator application form (translate.html) */
.apply { max-width: 680px; display: grid; gap: 24px; }
.apply .f { display: grid; gap: 8px; font-weight: 700; border: 0; padding: 0; margin: 0; }
.apply legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.apply fieldset label { display: flex; align-items: center; gap: 10px; font-weight: 400; padding: 4px 0; }
.apply input:not([type=radio]):not([type=checkbox]), .apply textarea {
  font: 400 17px/1.5 var(--body); color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.apply input:focus-visible, .apply textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.apply input[type=radio], .apply input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.apply .req { font-weight: 400; font-size: 14px; color: var(--soft); }
.apply .hint { font-weight: 400; color: var(--soft); }
.apply .sample { font-weight: 400; background: var(--tint); border-radius: 10px; padding: 12px 14px; line-height: 1.6; }
.apply .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply .btn { justify-self: start; }
.apply-note { min-height: 1.5em; color: var(--soft); }
.apply-note.bad { color: var(--natsuki); }
.apply label.f { display: block; }
.apply label.f > input, .apply label.f > textarea, .apply label.f > .hint, .apply label.f > .sample { display: block; margin-top: 8px; }
