/* White pages with black chrome: header, footer, menus, primary buttons and selection are black. */
:root {
  --ink: #0a0a0a; --ink-2: #262626; --sub: #525252; --muted: #737373;
  --line: #e5e5e5; --line-strong: #d4d4d4; --soft: #f4f4f4;
  --on-dark: #ffffff; --on-dark-muted: #a3a3a3; --dark-line: #2e2e2e;
  --danger: #b42318; --danger-soft: #fef3f2; --warn: #b54708;
  --font: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-num: "Space Grotesk", var(--font);
}

/* Base */
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
/* The footer sits at the bottom of short pages. */
#app { min-height: 100dvh; display: flex; flex-direction: column; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button svg { pointer-events: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .bottom-nav :focus-visible, .savebar :focus-visible, .steps-band :focus-visible, .notice-progress :focus-visible, .age-gate-head :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 40px 32px 0; }
.muted { color: var(--muted); font-size: 12px; }
.eyebrow { margin: 0 0 14px; font-family: var(--font-num); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }

/* Buttons */
.button { border: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.4; min-height: 46px; padding: 12px 20px; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--ink-2); }
.button-primary:disabled { background: var(--line-strong); color: var(--sub); }
.button-outline { border: 1.5px solid var(--ink); background: #fff; color: var(--ink); }
.button-outline:hover:not(:disabled) { background: var(--soft); }
.button-outline:disabled { opacity: .45; }
.text-button { background: transparent; border: 0; padding: 9px 0; color: var(--sub); font-size: 13px; white-space: nowrap; text-decoration: none; }
.text-button:hover:not(:disabled) { color: var(--ink); }
.text-button:disabled { opacity: .5; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.site-header-inner { max-width: 1200px; margin: auto; padding: 0 32px; min-height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand > svg { width: 28px; height: 28px; }
.brand > span { font-family: var(--font-num); font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.top-nav { display: flex; align-self: stretch; gap: 24px; font-size: 14px; }
.top-nav a { display: flex; align-items: center; color: var(--on-dark-muted); text-decoration: none; }
.top-nav a:hover { color: #fff; }
.top-nav a[aria-current=page] { color: #fff; font-weight: 700; box-shadow: inset 0 -2px 0 #fff; }
.site-header-end { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.site-header .text-button { color: var(--on-dark-muted); }
.site-header .text-button:hover { color: #fff; }
.quota-chip { display: inline-flex; align-items: baseline; gap: 3px; border: 1px solid #3a3a3a; border-radius: 999px; padding: 5px 12px; font-size: 12px; color: #d4d4d4; white-space: nowrap; }
.quota-chip strong { font-family: var(--font-num); font-size: 15px; color: #fff; }

/* Search */
.find { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; max-width: 720px; }
.find-field { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; height: 60px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.find-field:focus-within { box-shadow: 0 0 0 4px #0a0a0a1f; }
.find-field > span { color: var(--muted); font-family: var(--font-num); font-size: 20px; margin: 0 8px 0 18px; }
.find-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 17px; color: var(--ink); outline: none; }
.find-field input::placeholder { color: #8a8a8a; font-size: 15px; }
.find .button { min-height: 60px; padding: 0 28px; border-radius: 12px; font-size: 16px; }
.find-error { flex-basis: 100%; margin: 0; color: var(--danger); font-size: 12px; }
.find-compact { position: relative; flex: 1; flex-wrap: nowrap; gap: 6px; margin: 0; max-width: 320px; }
.find-compact .find-field { flex-basis: auto; height: 40px; border: 1px solid #333; border-radius: 10px; background: #1c1c1c; }
.find-compact .find-field:focus-within { box-shadow: none; border-color: #fff; }
.find-compact .find-field > span { font-size: 15px; margin-left: 12px; color: #8a8a8a; }
.find-compact .find-field input { font-size: 13px; color: #fff; }
.find-compact .find-field input::placeholder { color: #8a8a8a; font-size: 13px; }
.find-compact .button { min-height: 40px; padding: 0 12px; border-radius: 10px; }
.find-compact .button-primary { background: #fff; color: var(--ink); }
.find-compact .button-primary:hover:not(:disabled) { background: #e5e5e5; }
.find-compact .find-error { position: absolute; top: 46px; left: 0; z-index: 1; padding: 6px 10px; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px #0000002e; }

/* Footer */
.site-footer { margin-top: auto; background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid #262626; }
.site-footer-inner { max-width: 1200px; margin: auto; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 12px; }
.footer-brand { font-family: var(--font-num); font-size: 16px; font-weight: 700; color: #fff; }
.site-footer a { color: var(--on-dark-muted); font-size: 12px; text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: #fff; }
.footer-note { margin-left: auto; }

/* Phones get a fixed bottom menu instead of the header links. */
.bottom-nav { display: none; }

/* Notices */
.notice { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--soft); color: #404040; font-size: 13px; line-height: 1.8; }
.notice p { margin: 0; }
.notice > span { flex: 1; }
.notice .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--ink); }
.notice .text-button { padding: 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.notice-error { background: var(--danger-soft); color: var(--danger); }
.notice-progress { background: var(--ink); color: #fff; align-items: center; }
.notice-progress > span:nth-child(2) { flex: 1; }
.notice-progress .text-button { color: #fff; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink); animation: spin .8s linear infinite; flex-shrink: 0; }
.notice-progress .spinner { border-color: #525252; border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-line { margin-top: 24px; }

/* Ads */
.ad-frame { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 32px 0; }
.ad-frame-label { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.ad-frame iframe { border: 0; max-width: 100%; background: transparent; }

/* Home */
.page.home { padding-top: 80px; padding-bottom: 72px; }
.hero h1 { margin: 0; max-width: 820px; font-size: 52px; line-height: 1.22; font-weight: 900; letter-spacing: -.01em; }
.hero > p:not([class]) { margin: 20px 0 0; max-width: 620px; color: var(--sub); font-size: 16px; line-height: 1.9; }
/* Block layout keeps the text and its link flowing as one paragraph beside the icon. */
.hero .hero-note { position: relative; margin: 16px 0 0; padding-left: 24px; color: var(--sub); font-size: 13px; line-height: 1.7; }
.hero-note .icon { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; }
.hero-note a { color: var(--ink); font-weight: 700; }
.recent { padding-top: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 900; }
.section-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.account-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.account-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.account-card:hover { border-color: var(--ink); }
.account-card > .icon { width: 18px; height: 18px; color: #a3a3a3; }
.account-card-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-card-text strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card-text small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.account-card-text small + small { color: var(--sub); }
.avatar-md, .avatar-lg { flex-shrink: 0; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-num); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; overflow: hidden; }
.avatar-md { width: 48px; height: 48px; font-size: 18px; }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }
.avatar-md img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.avatar-md.is-blurred img, .avatar-lg.is-blurred img { filter: blur(8px); }
.steps-band { background: var(--ink); color: #fff; }
.steps-band-inner { max-width: 1200px; margin: auto; padding: 64px 32px; }
.steps-band h2 { margin: 0 0 28px; font-size: 22px; font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps > div { border: 1px solid var(--dark-line); border-radius: 16px; padding: 24px; }
.steps span { display: block; font-family: var(--font-num); font-size: 40px; font-weight: 700; line-height: 1; }
.steps strong { display: block; margin-top: 16px; font-size: 17px; }
.steps p { margin: 6px 0 0; color: var(--on-dark-muted); font-size: 13px; line-height: 1.8; }

/* Account */
.page.account { padding-bottom: 120px; }
.account-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.account-head-text { flex: 1 1 360px; min-width: 0; }
.account-head h1 { margin: 0; font-size: 30px; font-weight: 900; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-head .muted { margin: 4px 0 0; font-size: 13px; }
.account-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin: 14px 0 0; font-size: 13px; color: var(--sub); }
.account-stats strong { font-family: var(--font-num); font-size: 22px; color: var(--ink); padding: 0 3px; }
.account-stats .stat-pill { align-self: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.account-head > .button { min-height: 44px; padding: 0 18px; }
.empty-account { margin-top: 24px; padding: 32px; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.empty-account h2 { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.empty-account > p { margin: 0 0 20px; color: var(--sub); font-size: 13px; line-height: 1.8; }

/* Library */
.library { margin-top: 8px; }
.library-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 24px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { flex-shrink: 0; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 13px; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }
.chips-kind { gap: 4px; padding: 4px; border-radius: 10px; background: var(--soft); }
.chips-kind .chip { height: 34px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; color: #404040; }
.chips-kind .chip[aria-pressed=true] { background: var(--ink); color: #fff; }
.library-actions { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.library-actions .text-button[aria-pressed=true] { color: var(--ink); font-weight: 700; }
.library-actions .text-button:first-child { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.order { display: inline-flex; align-items: center; gap: 6px; color: var(--sub); font-size: 13px; }
.order .icon { width: 16px; height: 16px; }
.order select { height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 8px; background: #fff; color: var(--ink); font-size: 13px; }
/* Dense flow lets cards fill the row an inline ad would otherwise leave half empty. */
.vgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 28px 16px; }
.vgrid-ad { grid-column: 1 / -1; }
.vcard { position: relative; min-width: 0; }
.vcard-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--line); cursor: pointer; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.vcard-media:hover img { transform: scale(1.03); }
.vcard-media input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.vcard-media:has(input:focus-visible) { outline-color: var(--muted); }
.vcard-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-num); font-size: 13px; font-weight: 700; }
.vcard-check { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: #00000040; display: flex; align-items: center; justify-content: center; color: transparent; box-shadow: 0 1px 4px #00000040; }
.vcard-check .icon { width: 15px; height: 15px; stroke-width: 3; }
.vcard-duration { position: absolute; right: 8px; bottom: 8px; background: #0a0a0ad9; color: #fff; font-family: var(--font-num); font-size: 12px; padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.vcard.is-selected .vcard-media { outline-color: var(--ink); }
.vcard.is-selected .vcard-check { background: var(--ink); color: #fff; }
.vcard.is-gone .vcard-media { cursor: not-allowed; }
.vcard.is-gone img { filter: grayscale(1); opacity: .35; }
.vcard.is-gone .vcard-check { display: none; }
.vcard-flag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.vcard-meta { display: flex; flex-direction: column; gap: 3px; padding: 10px 0 0; min-width: 0; }
.vcard-label { font-size: 13px; font-weight: 500; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-label a { color: inherit; text-decoration: none; }
.vcard-label a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vcard-sub { color: var(--muted); font-size: 12px; }
.vcard-warn { color: var(--warn); font-size: 12px; }
/* Possibly sensitive media stays blurred until the viewer chooses to reveal it. */
.vcard.is-blurred .vcard-media img { filter: blur(18px); transform: scale(1.1); }
.vcard-reveal { position: absolute; left: 0; right: 0; top: 34%; margin: auto; width: max-content; max-width: 90%; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; border-radius: 10px; padding: 10px 14px; background: #0a0a0ad9; color: #fff; font-size: 12px; font-weight: 700; }
.vcard-reveal small { font-weight: 400; color: #d4d4d4; font-size: 11px; }
.library-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 40px 0; }
.library-more { display: flex; justify-content: center; margin-top: 40px; }
.library-more .button { min-height: 48px; padding: 0 32px; }

/* A floating black bar that appears only while something is selected. */
.savebar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(720px, calc(100% - 16px)); z-index: 15; background: var(--ink); color: #fff; border-radius: 16px; box-shadow: 0 12px 32px #00000047; }
.savebar-inner { padding: 12px 12px 12px 22px; display: flex; align-items: center; gap: 16px; }
.savebar-count { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; }
.savebar-count strong { font-family: var(--font-num); font-size: 24px; font-variant-numeric: tabular-nums; }
.savebar-count small { color: var(--on-dark-muted); font-size: 12px; }
.savebar .text-button { color: var(--on-dark-muted); padding: 10px 4px; }
.savebar .text-button:hover { color: #fff; }
.savebar .button { min-height: 46px; }
.savebar .button-primary { background: #fff; color: var(--ink); }
.savebar .button-primary:hover:not(:disabled) { background: #e5e5e5; }

/* Ranking */
.page.ranking { padding-top: 48px; padding-bottom: 120px; }
.ranking-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; }
.ranking-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.ranking-head h1 { margin: 0; font-size: 36px; font-weight: 900; line-height: 1.25; }
.ranking-head .muted { margin: 10px 0 0; color: var(--sub); font-size: 14px; line-height: 1.8; }
.segmented { display: flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; }
.segmented button { border: 0; border-radius: 9px; padding: 0 18px; min-height: 40px; font-size: 13px; background: transparent; color: #404040; }
.segmented button[aria-pressed=true] { background: var(--ink); color: #fff; font-weight: 700; }
.ranking-tabs { display: flex; gap: 28px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.ranking-tabs button { background: transparent; border: 0; margin-bottom: -1px; padding: 12px 2px; min-height: 44px; font-size: 15px; color: var(--muted); }
.ranking-tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--ink); }
.ranking-note { margin: 14px 0 0; }
.ranking-body { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 40px; margin-top: 20px; }
.ranking-main { flex: 999 1 560px; min-width: 0; }
.ranking-side { flex: 1 1 300px; max-width: 300px; margin: 0 auto; }
.ranking-side:empty { display: none; }
.ranking-side .ad-frame { margin: 0; }
.ranking-accounts { list-style: none; margin: 0; padding: 0; }
.ranking-accounts li { border-bottom: 1px solid #eee; }
.ranking-account { display: flex; align-items: center; gap: 16px; padding: 14px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ranking-account:hover { background: #f7f7f7; }
.ranking-account > .icon { width: 18px; height: 18px; color: #a3a3a3; }
.ranking-rank { flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 16px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ranking-rank.is-top { background: var(--ink); color: #fff; font-size: 17px; }
.ranking-account-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ranking-account-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ranking-account-name strong { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-account-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { flex-shrink: 0; border: 1px solid var(--ink); border-radius: 4px; padding: 0 5px; font-size: 10px; font-weight: 700; color: var(--ink); }
.ranking-media { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: 28px 16px; }
.ranking-media a { display: flex; flex-direction: column; gap: 3px; color: var(--ink); text-decoration: none; min-width: 0; }
.ranking-thumb { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 7px; border-radius: 12px; overflow: hidden; background: var(--line); }
.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ranking-media a.is-blurred img { filter: blur(18px); transform: scale(1.1); }
.ranking-badge { position: absolute; left: 8px; top: 8px; z-index: 1; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 15px; font-weight: 700; background: #fff; color: var(--ink); }
.ranking-badge.is-top { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff; }
.ranking-sensitive { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #0a0a0a99; color: #fff; font-size: 12px; font-weight: 700; }
.ranking-foot { margin-top: 40px; line-height: 1.8; }

/* Dialogs */
dialog { border: 0; padding: 0; }
.modal { width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 40px); overflow: auto; border-radius: 20px; padding: 36px 32px 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px #00000059; text-align: center; }
.modal::backdrop { background: #0a0a0ab8; }
.dialog-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; display: grid; place-items: center; color: var(--sub); }
.dialog-close:hover { background: var(--soft); }
.modal h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; line-height: 1.5; }
.modal > p { margin: 0 0 14px; color: #404040; font-family: var(--font-num); font-size: 14px; line-height: 1.8; }
.modal > .button { width: 100%; margin-top: 6px; min-height: 50px; border-radius: 12px; font-size: 15px; }
.modal > .text-button { display: block; margin: 6px auto 0; padding: 10px; color: #404040; text-decoration: underline; text-underline-offset: 4px; }
.modal-demo-note { display: flex; gap: 10px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--soft); color: #404040; font-size: 12px; line-height: 1.8; text-align: left; }
.modal-demo-note .icon { width: 16px; height: 16px; margin-top: 3px; }
.zip-status-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--ink); color: #fff; }
.zip-status-icon > .icon { width: 28px; height: 28px; stroke-width: 2; }
.zip-status-icon.error { background: var(--danger); }
.zip-excluded { margin: 0 0 14px; color: var(--sub); font-size: 13px; line-height: 1.8; }
.progress-track { height: 8px; background: #ececec; border-radius: 999px; overflow: hidden; }
.zip-job { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 16px; }
.zip-job .progress-track > div { height: 100%; background: var(--ink); border-radius: inherit; transition: width .25s; }
.zip-job small { color: var(--sub); font-family: var(--font-num); font-size: 12px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.zip-job small.is-error { color: var(--danger); }
.zip-job .spinner { display: inline-block; vertical-align: -3px; width: 12px; height: 12px; }
.zip-save-note { margin: 8px 0 0; color: var(--sub); font-size: 12px; line-height: 1.8; }
.help-modal { text-align: left; }
.help-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: var(--ink); color: #fff; }
.help-icon .icon { width: 24px; height: 24px; }
.help-modal h2 { font-size: 20px; }
.help-steps { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.help-steps li { display: flex; gap: 14px; }
.help-steps li > span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-num); font-size: 13px; font-weight: 700; }
.help-steps strong { font-size: 14px; font-weight: 700; }
.help-steps p { margin: 4px 0 0; color: var(--sub); font-size: 13px; line-height: 1.8; }
.help-note { padding: 16px; border-radius: 12px; background: var(--soft); color: #404040; font-size: 12px; line-height: 1.8; }
.help-note strong { font-size: 12px; font-weight: 700; color: var(--ink); }
.help-note p { margin: 6px 0 0; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 10px; background: var(--ink-2); color: #fff; font-size: 13px; box-shadow: 0 6px 25px #00000033; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Site-wide age check shown before any page content or ad loads. */
.age-gate { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; overflow: auto; background: #fff; }
.age-gate-head { flex-shrink: 0; min-height: 64px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; }
.age-gate-card { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 16px; text-align: center; }
.age-gate-mark { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 24px; font-weight: 700; }
.age-gate-card h1 { margin: 0; font-size: 34px; font-weight: 900; line-height: 1.3; }
.age-gate-card p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.8; }
.age-gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; max-width: 360px; }
.age-gate-actions .button { flex: 1 1 140px; min-height: 54px; border-radius: 12px; font-size: 16px; }
.age-gate-links { display: flex; justify-content: center; gap: 20px; }
.age-gate-links a { color: var(--sub); font-size: 12px; }

/* Legal pages */
.page.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { margin: 0 0 4px; font-size: 30px; font-weight: 900; }
.legal h2 { margin: 32px 0 8px; font-size: 17px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-2); font-size: 14px; line-height: 1.9; }
.legal a { color: var(--ink); font-weight: 700; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--soft); font-weight: 700; }
.legal-contact { margin-top: 24px !important; }

/* ZIP lab (/lab/zip) */
.page.lab { max-width: 760px; padding-top: 20px; padding-bottom: 60px; }
.lab-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.lab h1 { font-size: 22px; margin: 0 0 6px; }
.lab-card { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 16px; }
.lab-card h2 { font-size: 15px; margin: 0 0 12px; }
.lab-caps { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.lab-caps dt { color: var(--muted); }
.lab-caps dd { margin: 0; }
.lab-progress { margin: 16px 0 12px; }
.lab-progress .progress-track > div { height: 100%; background: var(--ink); border-radius: inherit; }
.lab-progress p { font-size: 12px; color: var(--sub); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lab-actions .button { min-height: 40px; padding: 8px 14px; }
.lab-log { white-space: pre-wrap; word-break: break-all; background: var(--soft); border-radius: 10px; padding: 12px; font-size: 11px; line-height: 1.7; max-height: 320px; overflow: auto; margin: 0 0 12px; }

@media (max-width: 1050px) {
  .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .page, .site-header-inner, .site-footer-inner, .steps-band-inner { padding-left: 16px; padding-right: 16px; }
  .site-header-inner { gap: 12px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 56px; }
  .top-nav, .site-header .text-button { display: none; }
  .find-compact { order: 3; flex-basis: 100%; max-width: none; }
  .page.home { padding-top: 40px; padding-bottom: 56px; }
  .hero h1 { font-size: 30px; }
  .hero > p:not([class]) { font-size: 14px; }
  .section-head h2 { font-size: 19px; }
  .find .button span:not(.sr-only) { display: none; }
  .find:not(.find-compact) .button { padding: 0 20px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps-band-inner { padding-top: 48px; padding-bottom: 48px; }
  .footer-note { margin-left: 0; }
  .avatar-lg { width: 64px; height: 64px; font-size: 24px; }
  .account-head h1 { font-size: 22px; }
  .account-head > .button { width: 100%; }
  .library-actions { width: 100%; margin-left: 0; justify-content: space-between; }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .ranking-head h1 { font-size: 26px; }
  .ranking-media { gap: 20px 10px; }
  .modal { padding: 28px 20px 20px; }
  .age-gate-card h1 { font-size: 28px; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; background: var(--ink); border-top: 1px solid #262626; padding: 6px 8px env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: transparent; color: #8a8a8a; text-decoration: none; font-size: 11px; }
  .bottom-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bottom-nav a[aria-current=page] { color: #fff; font-weight: 700; }
  .site-footer { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* The save bar floats right above the bottom menu. */
  .savebar { left: 8px; right: 8px; width: auto; transform: none; bottom: calc(72px + env(safe-area-inset-bottom)); border-radius: 14px; }
  .savebar-inner { padding-left: 16px; gap: 10px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 3s !important; transition: none !important; }
}
