/* animon.wiki — dusk-sky anime look: glossy panels, cyan Cell glow, pink-to-gold accents */
:root {
  --bg: #0c0a26; --bg2: #110e33; --surface: #19154a; --surface2: #231d63; --line: #3a3186; --shade: rgba(4, 3, 20, .55);
  --text: #f6f3ff; --muted: #b9b3e0; --cyan: #45e4ff; --pink: #ff5aa5; --yellow: #ffc93c; --violet: #b08bff; --red: #ff3d55; --ok: #5df2a0;
  --link: var(--cyan);
  --grad: linear-gradient(100deg, #ffd35c 0%, #ff6aa9 45%, #b46bff 100%);
  --btn: linear-gradient(100deg, #ff3d55, #ff5aa5);
  --display: 'Lilita One', 'M PLUS Rounded 1c', 'Nunito', system-ui, sans-serif;
  --head: 'Nunito', 'M PLUS Rounded 1c', system-ui, sans-serif;
  --body: 'Nunito', 'M PLUS Rounded 1c', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 16px; --glow: 0 10px 30px -12px var(--shade);
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f5f1ff; --bg2: #ebe4ff; --surface: #ffffff; --surface2: #f1ebff; --line: #d3c8f6; --shade: rgba(70, 40, 160, .25);
  --text: #1c1446; --muted: #5a5287; --cyan: #007fae; --pink: #d61f72; --yellow: #a86400; --violet: #6a3fe0; --red: #d6243c; --ok: #0d8a43;
  color-scheme: light;
}
:lang(ja) { --head: 'M PLUS Rounded 1c', 'Nunito', system-ui, sans-serif; --body: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', 'Yu Gothic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 600 17px/1.7 var(--body); overflow-x: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--pink) 16%, transparent), transparent 60%), radial-gradient(900px 500px at 0% 20%, color-mix(in srgb, var(--cyan) 9%, transparent), transparent 60%), var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--pink); color: #fff; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 2.6rem 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1.1rem; }
small, .small { font-size: .82rem; }
.muted { color: var(--muted); }
code, kbd { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.pxi { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { font: 800 .8rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin: 0 0 1rem; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { width: min(1400px, 100% - 32px); }
.top-in { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 400 1.5rem/1 'Lilita One', var(--head); letter-spacing: .03em; color: var(--text); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand b { font-weight: 400; -webkit-text-fill-color: var(--cyan); }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.nav a { color: var(--muted); text-decoration: none; font: 800 .92rem/1 var(--head); padding: 10px 9px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface2); }
.nav a[aria-current] { color: #fff; background: var(--btn); }
.tools { display: flex; gap: 8px; align-items: center; margin-left: auto; flex: none; }
.search-btn span { display: none; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; font: 800 .88rem/1 var(--head); cursor: pointer; list-style: none; }
.tool::-webkit-details-marker { display: none; }
.tool:hover { border-color: var(--cyan); color: var(--cyan); }
.tool kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: .72rem; }
.burger { display: none; }
.lang { position: relative; }
.lang-menu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--glow); display: grid; min-width: 160px; padding: 6px; z-index: 5; }
.lang-menu a { padding: 8px 12px; color: var(--text); text-decoration: none; font-weight: 700; border-radius: 9px; }
.lang-menu a:hover { background: var(--surface2); color: var(--cyan); }
.lang-menu a[aria-current] { color: var(--pink); }

/* buttons, chips, cards */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; background: var(--btn); color: #fff; border: 0; font: 900 1.05rem/1 var(--head); letter-spacing: .02em; text-decoration: none; cursor: pointer; clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); transition: transform .15s, filter .15s; }
.btn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .28) 1.2px, transparent 1.4px) 0 0 / 7px 7px; mask-image: linear-gradient(90deg, transparent 45%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000); pointer-events: none; }
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn.ghost::after { display: none; }
.foot .btn.ghost, .seal .btn.ghost { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; font: 800 .78rem/1.3 var(--head); background: var(--surface2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; }
.chip.ok { color: var(--ok); border-color: var(--ok); }
.chip.soon { color: var(--violet); border-color: var(--violet); white-space: normal; text-align: left; }
.card { background: linear-gradient(160deg, var(--surface2), var(--surface)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--glow); padding: 22px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card.link { display: block; color: var(--text); text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.card.link .pxi { color: var(--cyan); margin-bottom: 14px; display: block; padding: 9px; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.card.link:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--cyan) 60%, transparent); }
.card.link:hover h3 { color: var(--cyan); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 1.2rem 0 1.6rem; }
.trio .card { --c: var(--violet); position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.trio .card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.trio .type-fist { --c: var(--pink); } .trio .type-blade { --c: var(--cyan); }
.trio .pxi { color: var(--c); }
.trio .eyebrow { display: block; margin: 12px 0 6px; color: var(--muted); font-size: .7rem; letter-spacing: .08em; }
.trio h3 { color: var(--c); font: 400 1.7rem/1.1 var(--display); }

/* hero: dusk sky */
.hero { position: relative; overflow: hidden; padding: 60px 0 34px; color: #fff; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 28% 9%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 44% 24%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 91% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 6% 42%, #fff 50%, transparent 51%),
    radial-gradient(520px 150px at 18% 100%, rgba(255, 150, 190, .5), transparent 70%), radial-gradient(620px 170px at 70% 104%, rgba(255, 176, 110, .6), transparent 70%),
    linear-gradient(180deg, #100a3c 0%, #2c1672 34%, #7a2f9e 64%, #e25a94 90%, #ff9a6e 100%);
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 40, .72) 0%, rgba(10, 8, 40, .35) 55%, transparent 80%); pointer-events: none; }
.hero::before { content: ''; position: absolute; right: 7%; top: 34px; width: 74px; height: 74px; border-radius: 50%; background: #fff8dc; box-shadow: 0 0 0 14px rgba(255, 248, 220, .14), 0 0 60px rgba(255, 248, 220, .5); }
.hero > * { position: relative; z-index: 1; }
.hero-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: #8ff1ff; }
.hero h1 { font: 400 clamp(3.2rem, 9vw, 6rem)/.95 'Lilita One', var(--head); letter-spacing: .01em; background: linear-gradient(180deg, #fff 0%, #ffe9a8 40%, #ff7fb6 75%, #c58bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 0 #2a0f5c) drop-shadow(0 10px 22px rgba(255, 90, 165, .45)); padding-bottom: .08em; }
.lead { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--muted); max-width: 62ch; margin-top: 1.1rem; }
.lead strong { color: var(--text); }
.hero .lead { color: #e6defa; } .hero .lead strong { color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 2rem; }
.hero-art { justify-self: center; display: grid; justify-items: center; gap: 6px; text-decoration: none; color: #fff; }
.cell { width: min(230px, 46vw); height: auto; display: block; animation: float 5s ease-in-out infinite alternate; filter: drop-shadow(0 18px 30px rgba(20, 220, 255, .45)); }
.cell .pulse { animation: pulse 2.4s ease-in-out infinite alternate; }
@keyframes float { to { transform: translateY(-14px) rotate(-3deg); } }
@keyframes pulse { to { opacity: .55; } }
.hero-art .count { margin: 0; background: rgba(12, 9, 44, .72); border-color: rgba(143, 241, 255, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 360px; }
.hero-art .count .muted { color: #cfc8ee; } .hero-art .count a { color: #8ff1ff; }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px 0 6px; background: rgba(12, 9, 44, .72); border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stat { padding: 18px 22px; border-right: 1px solid rgba(255, 255, 255, .16); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 'Lilita One', var(--head); color: #ffd35c; font-variant-numeric: tabular-nums; }
.stat span { color: #cfc8ee; font-size: .86rem; font-weight: 700; }
.livebadge { position: absolute; right: 14px; top: -11px; padding: 3px 10px; background: #1a1450; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #cfc8ee; font: 800 .68rem/1.4 var(--head); text-transform: uppercase; letter-spacing: .1em; }
.livebadge.on { color: #5df2a0; border-color: #5df2a0; }
.sec { padding: 12px 0 28px; }
.sec > h2, .split h2, .prose h2 { display: flex; align-items: center; gap: 12px; }
.sec > h2::before, .split h2::before { content: ''; width: 18px; height: 22px; flex: none; background: var(--btn); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; }
.split p { max-width: 68ch; }
.more { font: 800 1rem var(--head); }

/* facts */
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font: 800 .72rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 800; }

/* codes card */
.seal { position: relative; background: linear-gradient(160deg, var(--surface2), var(--surface)); border: 1px solid color-mix(in srgb, var(--yellow) 60%, var(--line)); border-radius: var(--r); box-shadow: var(--glow); padding: 20px 22px; margin: 0 0 1.6rem; }
.seal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; }
.seal-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 10px; }
.seal-code { font: 400 clamp(2rem, 6vw, 2.8rem)/1 'Lilita One', var(--head); letter-spacing: .04em; color: var(--yellow); user-select: all; }
.seal-how { margin: 0; color: var(--muted); font-size: .92rem; }

/* countdown */
.count { display: flex; align-items: center; gap: 18px; background: linear-gradient(160deg, var(--surface2), var(--surface)); border: 1px solid color-mix(in srgb, var(--cyan) 55%, var(--line)); border-radius: var(--r); box-shadow: var(--glow); padding: 16px 20px; margin: 0 0 1.6rem; }
.count > b { font: 400 clamp(2.8rem, 8vw, 4rem)/1 'Lilita One', var(--head); color: #ffd35c; font-variant-numeric: tabular-nums; min-width: 1.3em; text-align: center; }
.count.open > b { font-size: 1.4rem; color: var(--ok); }
.count strong { display: block; font: 800 1rem/1.3 var(--head); }
.count p { margin: 4px 0 0; line-height: 1.45; }

/* article */
.article { padding: 28px 0 40px; }
.crumbs { display: flex; gap: 10px; font: 700 .88rem var(--head); color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.ahead { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.ahead > .pxi { color: #fff; margin-top: 4px; padding: 13px; border-radius: 18px; background: var(--btn); box-shadow: 0 12px 26px -10px var(--pink); }
.ahead .lead { max-width: 70ch; }
.meta { margin: 0; }
.cols { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; padding-top: 30px; font-size: .92rem; }
.toc h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 700; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--pink); border-left-color: var(--pink); }
.prose { max-width: 780px; min-width: 0; }
.prose h2 { position: relative; }
.prose h2 > a { position: absolute; left: -1.1em; color: var(--line); text-decoration: none; opacity: 0; }
.prose h2:hover > a { opacity: 1; color: var(--pink); }
.prose h3 { margin: 1.4rem 0 .7rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--pink); font-weight: 900; }
.prose strong { color: var(--text); font-weight: 900; }
.note { border-left: 4px solid var(--violet); background: var(--surface); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 1.2rem; font-size: .95rem; color: var(--muted); }
.tablewrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font: 800 .74rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface2); white-space: nowrap; }
tbody th { font: 800 1rem var(--head); white-space: nowrap; }
tbody tr:hover { background: color-mix(in srgb, var(--surface2) 60%, transparent); }
td { color: var(--muted); } td.num, th.num { text-align: right; white-space: nowrap; }
td.num { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.rbx { font: 900 1.05rem var(--head); color: var(--yellow); } .rbx small { margin-left: 3px; color: var(--muted); font-size: .7rem; font-weight: 800; }
table.boosts tr.grp th { text-align: left; background: var(--surface2); padding-top: 14px; }
table.boosts tr.grp b { display: block; font: 900 1.05rem var(--head); color: var(--pink); }
table.boosts tr.grp span { display: block; font-weight: 600; font-size: .88rem; color: var(--muted); white-space: normal; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filters button { background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 800 .85rem var(--head); cursor: pointer; }
.filters button.on { background: var(--btn); border-color: transparent; color: #fff; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 0; }
.tags li { display: inline-flex; align-items: baseline; gap: 10px; margin: 0; padding: 7px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .92rem; }
.timeline { list-style: none; margin: 0 0 1.4rem; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 24px; margin: 0; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--pink); }
.timeline li:first-child::before { background: var(--cyan); box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--cyan); }
.timeline time { font: 800 .8rem var(--head); color: var(--cyan); letter-spacing: .06em; text-transform: uppercase; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: .96rem; }

/* video cards */
.videos { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.videos li { margin: 0; }
.videos a { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .18s, border-color .18s; }
.videos a:hover { transform: translateY(-4px); border-color: var(--pink); }
.videos .thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface2); }
.videos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.videos .thumb::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(12, 9, 44, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 26px no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.videos b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 12px 14px 2px; font: 800 .95rem/1.35 var(--head); }
.videos small { display: block; padding: 0 14px 14px; color: var(--muted); font-weight: 700; }

.faq { margin-top: 30px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 14px; }
.faq details[open] { border-color: color-mix(in srgb, var(--pink) 50%, var(--line)); }
.faq summary { cursor: pointer; padding: 16px 20px; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; font: 900 1.3rem/1 var(--head); color: var(--pink); width: 14px; }
.faq details[open] summary::before { content: '−'; }
.faq summary h2 { font-size: 1.12rem; margin: 0; }
.faq details p { padding: 0 20px 18px 46px; margin: 0; color: var(--muted); }
.sources { margin: 3rem 0 0; padding: 18px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); font-size: .9rem; color: var(--muted); }
.sources h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; color: var(--muted); }
.sources p:last-child { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 2.4rem 0 0; }
.pager a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: var(--text); font: 800 1.05rem var(--head); }
.pager a:hover { color: var(--cyan); border-color: var(--cyan); }
.pager small { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 4px; }
.pager .r { text-align: right; }

/* calculator */
.calc { margin: 0 0 1.4rem; }
.calc h3 { color: var(--cyan); margin-bottom: 16px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.calc label { display: grid; gap: 6px; font: 800 .82rem var(--head); color: var(--muted); }
.calc select, .calc input[type='number'] { width: 100%; height: 46px; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px; font: 700 1rem var(--body); }
.calc select:focus, .calc input:focus { border-color: var(--cyan); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 30%, transparent); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.calc-out div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.calc-out span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.calc-out b { font: 400 1.8rem/1.25 'Lilita One', var(--head); color: var(--yellow); font-variant-numeric: tabular-nums; }
.calc .small { margin: 0; }

/* footer */
.foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--bg2); padding: 44px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot h2 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.foot nav a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; font-weight: 700; font-size: .95rem; }
.foot nav a:hover, .foot nav a[aria-current] { color: var(--cyan); }
.foot nav h2:not(:first-child) { margin-top: 20px; }
.foot .muted { margin: 14px 0 20px; }
.disclaimer { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); max-width: 90ch; }

/* search palette */
.palette { width: min(620px, 100% - 24px); margin-top: 12vh; padding: 0; border: 1px solid var(--cyan); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); overflow: hidden; }
.palette::backdrop { background: rgba(8, 6, 30, .7); backdrop-filter: blur(4px); }
.palette input { width: 100%; height: 58px; padding: 0 20px; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line); font: 700 1.1rem var(--body); outline: 0; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none; }
.palette li a.sel, .palette li a:hover { background: var(--surface2); }
.palette li b { display: block; font: 800 1rem var(--head); }
.palette li small { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.palette li em { font-style: normal; color: var(--pink); font: 800 .7rem var(--head); text-transform: uppercase; letter-spacing: .1em; }
.palette p { margin: 0; padding: 10px 20px; }
.palette .hint { border-top: 1px solid var(--line); }
.nf { text-align: center; } .nf h1 { font: 400 7rem/1 'Lilita One', var(--head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } .nf .lead { margin-inline: auto; } .nf .grid { margin-top: 30px; text-align: left; }

@media (max-width: 1320px) {
  .burger { display: inline-flex; }
  .search-btn kbd { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 14px; font-size: 1.05rem; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding-top: 34px; } .hero::before { display: none; }
  .hero-in, .split, .cols, .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-art { justify-self: stretch; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .cell { width: 96px; } .hero-art .count { max-width: none; padding: 12px 14px; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .16); } .stat:nth-child(even) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .toc { position: static; padding-top: 22px; } .toc ol { columns: 2; border: 0; } .toc a { border: 0; padding-left: 0; margin: 0; }
  .ahead > .pxi { display: none; }
  .trio { grid-template-columns: 1fr; }
  .calc-grid, .calc-out { grid-template-columns: 1fr; }
  .prose h2 > a { display: none; }
}
@media (max-width: 640px) {
  table.shop thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  table.shop, table.shop tbody { display: block; }
  table.shop tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.shop tr:last-child { border-bottom: 0; }
  table.shop tr[hidden] { display: none; }
  table.shop th, table.shop td { padding: 0; border: 0; white-space: normal; }
  table.shop td:not(.num), table.shop td.num + td.num { grid-column: 1 / -1; text-align: left; }
  table.shop td.num + td.num { font-size: .85rem; color: var(--muted); }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts div:nth-child(odd) { border-right: 0; } .facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); } .brand { font-size: 1.25rem; } .tools { gap: 6px; } .tool { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .top, .foot, .toc, .pager, .palette { display: none; } body { background: #fff; color: #000; } }
