/*! osu.net */
:root {
  --bg: #16121c;
  --bg-alt: #1b1623;
  --card: #231c2d;
  --card-2: #2b2337;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);
  --text: #f5f1f8;
  --muted: #c6bfd0;
  --dim: #b3abc0;
  --pink: #ff66aa;
  --pink-2: #ff8fc2;
  --pink-soft: rgba(255, 102, 170, .14);
  --violet: #9d7dcc;
  --grad: linear-gradient(135deg, #ff66aa 0%, #c06fe0 100%);
  --radius: 16px;
  --header: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pink-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink-2); outline-offset: 2px; border-radius: 6px; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--pink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
.wrap-player { max-width: 1320px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 18, 28, .92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px);
}
.header-in { display: flex; align-items: center; gap: 14px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.brand-name span { color: var(--pink); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--text); background: var(--pink-soft); }
.nav .nav-play { color: #fff; background: var(--grad); margin-right: 6px; padding: 8px 14px 8px 11px; }
.nav .nav-play:hover { color: #fff; background: var(--grad); filter: brightness(1.08); }
.nav .nav-play .i { width: 16px; height: 16px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: auto; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1100px) {
  .js .menu-btn { display: inline-flex; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header); margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px 16px;
    background: #1a1521; border-bottom: 1px solid var(--line-2); box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    max-height: calc(100vh - var(--header)); overflow-y: auto;
  }
  .js .nav.open { display: flex; }
  html.menu-open { overflow: hidden; }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 49; background: rgba(8, 6, 12, .72); animation: fade-in .15s ease-out; }
  .js .nav a { padding: 12px 14px; font-size: 17px; }
  .js .nav .nav-play { margin: 0 0 6px; justify-content: center; }
  html:not(.js) .header-in { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .nav { flex-wrap: wrap; order: 3; width: 100%; margin: 0; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .site-header { position: relative; }
  html { scroll-padding-top: 0; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(255, 102, 170, .7);
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .65; cursor: default; }
.btn .i { width: 18px; height: 18px; }
.btn-lg { padding: 15px 30px; font-size: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.btn-ghost:hover { border-color: rgba(255, 102, 170, .7); }
.more { margin: 22px 0 0; }
.more-link { display: inline-flex; align-items: center; gap: 8px; color: var(--pink-2); font-weight: 750; text-decoration: none; }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.more-link .i { width: 18px; height: 18px; transition: transform .2s; }
.more-link:hover .i { transform: translateX(3px); }

/* Ads: no gap when Ezoic leaves a placeholder empty */
.ad { max-width: 1180px; margin: 28px auto; padding: 0 20px; text-align: center; }
.ad:has(> div:empty) { margin: 0 auto; padding: 0; }
.prose .ad { padding: 0; max-width: none; }

/* Home: hero and player */
.home-hero { padding: 22px 0 14px; text-align: center; background: radial-gradient(ellipse 900px 320px at 50% -40px, rgba(255, 102, 170, .18), transparent 70%); }
.home-hero h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; font-weight: 850; letter-spacing: -.025em; }
.home-hero .hl { color: var(--pink); }
.intro { max-width: 92ch; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 1.6vw, 17px); }
.disclaimer { max-width: 110ch; margin: 6px auto 0; color: var(--dim); font-size: 13.5px; }

.player-sec { padding: 8px 0 28px; }
.player {
  position: relative; overflow: hidden; background: #111; border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(255, 102, 170, .4), 0 20px 50px rgba(0, 0, 0, .5);
}
.player-frame { position: relative; width: 100%; height: min(700px, calc(100vh - 110px)); min-height: 480px; background: #111; }
@supports (height: 100svh) { .player-frame { height: min(700px, calc(100svh - 110px)); } }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #111; }
.touch-note { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; overflow: hidden; }
.touch-note[hidden] { display: none; }
.touch-note picture { position: absolute; inset: 0; }
.touch-note .touch-bg { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(1px); }
.touch-card { position: relative; max-width: 420px; padding: 24px 22px; text-align: center; background: rgba(22, 18, 28, .9); border: 1px solid var(--line-2); border-radius: 18px; }
.touch-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--pink-soft); color: var(--pink-2); }
.touch-icon .i { width: 28px; height: 28px; }
.touch-card h2 { margin: 12px 0 8px; font-size: 22px; line-height: 1.25; }
.touch-card p { margin: 0 0 18px; color: var(--muted); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #1d1726; border-top: 1px solid var(--line); }
.player-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.fs-btn .i-exit, .fs-btn .l-exit, .is-fs .fs-btn .i-enter, .is-fs .fs-btn .l-enter { display: none; }
.is-fs .fs-btn .i-exit { display: block; }
.is-fs .fs-btn .l-exit { display: inline; }
/* Fullscreen: the frame takes the whole screen. Native fullscreen has no bar (Esc exits); the CSS fallback keeps
   only the exit button in a strip below the frame. */
.player.is-fs { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; border: 0; border-radius: 0; display: flex; flex-direction: column; box-shadow: none; }
.player.is-fs .player-frame { flex: 1; height: auto; min-height: 0; }
.player.is-fs .player-hint { display: none; }
.player.is-fs .player-bar { flex: none; justify-content: flex-end; padding: 6px 10px; }
.player.fs-native .player-bar { display: none; }
.player:fullscreen { width: 100%; height: 100%; }
html.no-scroll, html.no-scroll body { overflow: hidden; }

@media (max-width: 700px) {
  .home-hero { padding: 22px 0 14px; }
  .home-hero h1 { font-size: 27px; }
  .intro { font-size: 15.5px; }
  .player-sec .wrap-player { padding: 0; }
  .player { border-radius: 0; border-left: 0; border-right: 0; }
  .player-frame { height: min(560px, calc(100svh - 150px)); min-height: 420px; }
  .player-bar { flex-wrap: wrap; padding: 10px 16px; }
  .player-hint { flex: 1 1 200px; font-size: 13.5px; }
}

/* Home sections */
.sec { padding: clamp(40px, 6vw, 68px) 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-title { margin: 0 0 8px; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.2; font-weight: 820; letter-spacing: -.02em; }
.sec-sub { max-width: 70ch; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.sec h3 { line-height: 1.3; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.step { overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; border-bottom: 1px solid var(--line); }
.step-body { padding: 16px 16px 18px; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 850; font-size: 15px; }
.step h3 { margin: 10px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(255, 102, 170, .5); transform: translateY(-2px); }
.f-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-2); }
.f-icon .i { width: 24px; height: 24px; }
.feature h3 { margin: 14px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-item { min-width: 0; }
.gallery figure { margin: 0; height: 100%; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.g-link { display: block; overflow: hidden; background: #111; }
.g-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.g-link:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.g-dots { display: none; }
.g-dots button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.g-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: width .2s, background-color .2s; }
.g-dots button.on::before { width: 18px; background: var(--pink); }

.cards { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards li { min-width: 0; }
.card-link { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: rgba(255, 102, 170, .55); transform: translateY(-2px); }
.card-kicker { color: var(--pink-2); font-size: 13px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.card-link strong { font-size: 18px; line-height: 1.3; }
.card-text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.card-go { position: absolute; left: 22px; bottom: 16px; color: var(--pink-2); }

.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq-item[open] { border-color: rgba(255, 102, 170, .4); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.faq-item summary .i { color: var(--pink-2); transition: transform .2s; }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; }
.faq-a p { margin: 0; color: var(--muted); }

.about-text p { margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); }

@media (max-width: 1060px) {
  .steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .step { grid-column: span 2; }
  .step:nth-child(4), .step:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 860px) {
  .features, .cards, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step, .step:nth-child(4) { grid-column: auto; }
  .step:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .steps, .features, .cards { grid-template-columns: 1fr; }
  .step:nth-child(5) { grid-column: auto; }
  .gallery { display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .g-item { flex: 0 0 84%; scroll-snap-align: center; }
  .g-dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
}
@keyframes fade-in { from { opacity: 0; } }

/* Article pages */
.page-hero { padding: 30px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 900px 300px at 15% -60px, rgba(255, 102, 170, .17), transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-hero h1 { margin: 12px 0 12px; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.12; font-weight: 850; letter-spacing: -.025em; }
.lead { max-width: 62ch; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 19.5px); line-height: 1.6; }

.prose { padding: 8px 0 6px; color: #e0dbe6; font-size: 18px; line-height: 1.75; }
.prose > * { max-width: 72ch; }
.prose > .table-wrap, .prose > .ad { max-width: none; }
.prose h2 { margin: 44px 0 12px; color: var(--text); font-size: clamp(24px, 2.8vw, 30px); line-height: 1.25; font-weight: 800; letter-spacing: -.015em; }
.prose h3 { margin: 30px 0 8px; color: var(--text); font-size: 20px; line-height: 1.35; font-weight: 750; }
.prose h2 + h3 { margin-top: 18px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin: 7px 0; padding-left: .2em; }
.prose li::marker { color: var(--pink); font-weight: 700; }
.prose a { color: var(--pink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: #ffb3d6; }
.prose strong { color: var(--text); }
.prose kbd {
  display: inline-block; min-width: 1.7em; padding: .05em .45em; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px;
  background: var(--card-2); color: var(--text); font: 600 .85em/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; text-align: center; white-space: nowrap;
}
.table-wrap { overflow-x: auto; margin: 20px 0 24px; border: 1px solid var(--line-2); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th { background: #2a2235; color: var(--text); font-weight: 750; text-align: left; white-space: nowrap; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .note { margin: 22px 0; padding: 14px 18px; border: 1px solid rgba(255, 102, 170, .3); border-left: 4px solid var(--pink); border-radius: 12px; background: rgba(255, 102, 170, .08); font-size: 17px; }
.prose .note p:last-child, .prose .note ul:last-child { margin-bottom: 0; }
.legal { font-size: 17px; }
.legal h2 { font-size: 24px; }
#ezoic-privacy-policy-embed { display: block; }

.cta { margin: 40px 0 34px; padding: 30px 24px; text-align: center; border-radius: 20px; border: 1px solid rgba(255, 102, 170, .35); background: linear-gradient(135deg, rgba(255, 102, 170, .18), rgba(157, 125, 204, .16)); }
.cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; }
.cta p { max-width: 56ch; margin: 0 auto 20px; color: var(--muted); }
.related { margin: 0 0 30px; }
.related h2 { margin: 0 0 12px; font-size: 22px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.related-list a:hover { border-color: rgba(255, 102, 170, .55); }
.related-list .i { color: var(--pink-2); }
.back { margin: 26px 0 34px; }
.back a { display: inline-flex; align-items: center; gap: 8px; color: var(--pink-2); font-weight: 700; text-decoration: none; }
.back a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .page-hero { padding: 22px 0 20px; }
  .page-hero h1 { font-size: 29px; }
  .prose { font-size: 17px; line-height: 1.7; }
  .prose h2 { margin-top: 36px; font-size: 23px; }
  .prose h3 { font-size: 18.5px; }
  .prose table { font-size: 15px; }
  .prose th, .prose td { padding: 9px 10px; }
  .prose th { white-space: normal; }
  .related-list { grid-template-columns: 1fr; }
  .cta { padding: 24px 16px; }
}

/* Contact (the form itself is driven by /api/feedback/form.js) */
.contact-card { margin: 28px 0 0; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.contact-card h2 { margin: 0 0 6px; font-size: 24px; }
.contact-card > p { margin: 0 0 18px; color: var(--muted); }
[data-feedback-form] .fb-row { display: flex; gap: 16px; flex-wrap: wrap; }
[data-feedback-form] .fb-row > .fb-field { flex: 1; min-width: 220px; }
[data-feedback-form] .fb-field { margin-bottom: 18px; }
[data-feedback-form] label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
[data-feedback-form] .fb-muted { font-weight: 400; color: var(--dim); font-size: 13.5px; }
[data-feedback-form] input, [data-feedback-form] textarea {
  display: block; width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #19141f; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; outline: 0; transition: border-color .15s, box-shadow .15s;
}
[data-feedback-form] input:focus, [data-feedback-form] textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 102, 170, .25); }
[data-feedback-form] textarea { min-height: 158px; resize: vertical; }
[data-feedback-form] input[type=file] { padding: 9px 12px; }
[data-feedback-form] .fb-btn {
  width: 100%; padding: 13px 18px; border: 0; border-radius: 999px; background: var(--pink); color: #fff;
  font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; transition: filter .15s;
}
[data-feedback-form] .fb-btn:hover { filter: brightness(1.08); }
[data-feedback-form] .fb-btn:disabled { opacity: .65; cursor: default; }
[data-feedback-form] [data-feedback-status] { margin: 16px 0 0; min-height: 1.2em; text-align: center; font-size: 15px; }
[data-feedback-form][data-state=error] [data-feedback-status] { color: #ff8a8a; }
[data-feedback-form][data-state=sent] [data-feedback-status] { color: #5ee0a0; }
[data-feedback-form] altcha-widget { --altcha-max-width: 100%; --altcha-color-base: #19141f; --altcha-color-text: var(--text); --altcha-color-border: rgba(255, 255, 255, .15); display: block; margin-bottom: 18px; }
.contact-mail { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.contact-mail .i { margin-top: 3px; color: var(--pink-2); }
@media (max-width: 600px) {
  .contact-card { padding: 20px 16px; }
}

/* 404 */
.nf { padding: 56px 0 30px; text-align: center; }
.nf-code { margin: 0; font-size: clamp(72px, 14vw, 120px); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: var(--pink); }
.nf h1 { margin: 10px 0 12px; font-size: clamp(28px, 4vw, 40px); }
.nf .lead { margin: 0 auto 24px; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 26px 0 0; padding: 0; }

/* Footer */
.site-footer { margin-top: 24px; padding: 36px 0 30px; border-top: 1px solid var(--line); background: #110e16; color: var(--dim); font-size: 14.5px; }
.page-home .site-footer { margin-top: 0; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot-brand { flex: 1 1 260px; }
.foot-brand p { margin: 8px 0 0; max-width: 40ch; }
.foot-nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 20px; max-width: 460px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); text-decoration: underline; }
.foot-note { max-width: 90ch; margin: 24px 0 6px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.55; }
.foot-copy { margin: 0; }

/* Lightbox */
.lightbox { max-width: min(1280px, 96vw); max-height: 96vh; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #111; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox figure { margin: 0; }
.lightbox img { width: auto; max-width: 100%; max-height: calc(96vh - 56px); border-radius: 14px 14px 0 0; }
.lightbox figcaption { padding: 12px 16px; color: var(--muted); font-size: 15px; }
.lb-close { position: absolute; top: -14px; right: -14px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: #241d2d; cursor: pointer; }
@media (max-width: 700px) { .lb-close { top: 8px; right: 8px; } }

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