:root {
  color-scheme: light dark;
  --bg: #fcfaf5; --surface: #ffffff; --shade: #f6f2e9; --line: #efe9dc;
  --ink: #26231d; --muted: #767061; --gold: #8f6e1e; --coin: #f5c64f;
  --shadow: 0 6px 18px rgb(84 72 50 / .10), 0 2px 5px rgb(84 72 50 / .06);
  --shadow-lg: 0 14px 34px rgb(84 72 50 / .13), 0 4px 10px rgb(84 72 50 / .07);
  --float: drop-shadow(0 10px 14px rgb(84 72 50 / .25));
  --font: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", "Noto Sans Arabic", sans-serif;
  --display: "Baloo 2", -apple-system, system-ui, sans-serif;
  --emoji-font: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1916; --surface: #24221e; --shade: #2c2924; --line: #37332c;
    --ink: #f1ece2; --muted: #a9a293; --gold: #e0b95a;
    --shadow: 0 6px 18px rgb(0 0 0 / .3), 0 2px 5px rgb(0 0 0 / .2);
    --shadow-lg: 0 14px 34px rgb(0 0 0 / .4), 0 4px 10px rgb(0 0 0 / .25);
    --float: drop-shadow(0 10px 14px rgb(0 0 0 / .45));
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); accent-color: var(--ink); caret-color: var(--gold); }
::selection { background: var(--coin); color: #26231d; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ja"] body { line-height: 1.8; }
main { flex: 1; width: 100%; padding-block: 8px 56px; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { width: min(1024px, 100% - 40px); margin-inline: auto; }
@media (min-width: 640px) { .wrap { width: min(1024px, 100% - 56px); } }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 8px; }
.glyph, .glyph-img, .combo, .pickers, .picker, .tile-emoji, .stage-emoji, .mini-grid, .cat-samples, .cat-icon, .promo-sum, .head-icon, .nf-emoji, .mix-a, .mix-b { font-family: var(--emoji-font); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* header */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-block: 20px; }
.logo { display: inline-flex; direction: ltr; align-items: baseline; text-decoration: none; font: 600 1.3rem/1 var(--display); letter-spacing: -0.01em; transition: opacity .15s; }
.logo:hover { opacity: .8; }
.coin { position: relative; display: inline-block; width: .72em; height: .72em; margin: 0 .03em; top: .05em; perspective: 240px; }
.coin-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.35, .4, 1); }
.coin.show .coin-inner { transform: rotateY(180deg); }
.coin-side { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-front { background: var(--coin); box-shadow: inset -2px -3px 0 rgb(84 72 50 / .18); }
.coin-back { transform: rotateY(180deg); }
.coin-back img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; display: block; }
.nav { display: flex; gap: 24px; margin-inline-end: auto; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.menu, .lang { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.menu summary:hover, .menu summary[aria-current], .menu[open] summary { color: var(--ink); }
.menu ul { position: absolute; inset-inline-start: -12px; top: calc(100% + 10px); margin: 0; padding: 8px; list-style: none; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); min-width: 230px; z-index: 30; }
.menu a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; font-size: .92rem; color: var(--ink); }
.menu a span { font-family: var(--emoji-font); font-size: 1.15rem; }
.menu a:hover { background: var(--bg); }
.menu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.menu-all a { color: var(--muted); font-weight: 600; }
.lang summary { list-style: none; cursor: pointer; user-select: none; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 16px; transition: box-shadow .15s; }
.lang summary:hover { box-shadow: var(--shadow-lg); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); min-width: 160px; z-index: 30; }
.lang a { display: block; padding: 7px 12px; border-radius: 10px; text-decoration: none; font-size: .9rem; }
.lang a:hover { background: var(--bg); }
.lang a[aria-current] { font-weight: 700; }

/* search */
.search { display: flex; align-items: center; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s; }
.search:focus-within { box-shadow: var(--shadow-lg); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: .95rem; padding: 16px 22px; outline: none; }
.search input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.search button { border: 0; background: transparent; color: var(--muted); padding: 0 20px; align-self: stretch; cursor: pointer; display: grid; place-items: center; transition: color .15s; }
.search button:hover { color: var(--ink); }
.search button svg { width: 20px; height: 20px; }
.hero-search { max-width: 576px; margin: 36px auto 0; }

/* hero & page heads */
.hero { padding: 48px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.03em; text-wrap: balance; }
.hero .lede { margin-inline: auto; }
.lede { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; max-width: 60ch; }
.page-head { padding: 40px 0 16px; text-align: center; }
.page-head .lede { margin-inline: auto; }
.page-head .search { margin: 24px auto 0; max-width: 576px; }
.head-icon { font-size: 3.5rem; line-height: 1.1; margin-bottom: 10px; filter: var(--float); }
.crumbs { display: flex; gap: 8px; padding-top: 16px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* chips / buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips.center { margin-top: 24px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: var(--shade); text-decoration: none; font-size: .82rem; font-weight: 600; transition: background .15s; }
a.chip:hover { background: color-mix(in srgb, var(--coin) 40%, var(--shade)); }
.chip.static { cursor: default; }
.chip.level { background: #e3f0d3; color: #3f5a24; }
@media (prefers-color-scheme: dark) { .chip.level { background: #2f3a24; color: #c9e2ad; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow); color: inherit; font: inherit; font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; min-height: 42px; transition: box-shadow .15s, opacity .15s; }
.btn:hover { box-shadow: var(--shadow-lg); }
.btn.solid { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn.solid:hover { opacity: .9; }
.btn[hidden] { display: none; }

/* sections */
.section { margin-top: 56px; }
.section h2 { margin-bottom: 18px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin: 64px 0 20px; }
.section-head a { margin-inline-start: auto; color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; }
.section-head a:hover { color: var(--ink); }
html[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }

/* tiles */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; margin-top: 20px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 2px 8px; text-decoration: none; }
.tile-emoji { height: 72px; display: grid; place-items: center; filter: var(--float); transition: transform .15s; }
.tile:hover .tile-emoji { transform: translateY(-4px) scale(1.05); }
.tile-name { font-size: .75rem; font-weight: 500; line-height: 1.25; text-align: center; color: var(--muted); text-wrap: balance; overflow-wrap: anywhere; transition: color .15s; }
.tile:hover .tile-name { color: var(--ink); }
.glyph { line-height: 1; display: inline-block; }
.glyph.sm { font-size: 1.15rem; vertical-align: -.1em; } .glyph.md { font-size: clamp(3rem, 9vw, 3.5rem); } .glyph.lg { font-size: 4rem; } .glyph.xl { font-size: clamp(5.5rem, 20vw, 8rem); }
.glyph-img { width: 1.2em; height: 1.2em; object-fit: contain; }
.glyph-img.sm { width: 1.15rem; height: 1.15rem; vertical-align: -.2em; } .glyph-img.md { width: clamp(3rem, 9vw, 3.5rem); height: clamp(3rem, 9vw, 3.5rem); } .glyph-img.xl { width: clamp(5.5rem, 20vw, 8rem); height: clamp(5.5rem, 20vw, 8rem); }
.more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 24px 0; }
.more .btn { padding-inline: 40px; }
.empty { text-align: center; padding: 64px 0; color: var(--muted); }
.empty-emoji { font-size: 3.5rem; font-family: var(--emoji-font); filter: var(--float); }
.empty h2 { color: var(--ink); margin: 8px 0; }
.results[hidden] { display: none; }

/* mixer promo */
.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; margin: 64px 0 8px; padding: 32px 40px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.promo-sum { display: flex; align-items: center; gap: 10px; font-size: 1.9rem; }
.promo-sum span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); }
.promo-sum .result { box-shadow: var(--shadow-lg); }
.promo-sum b { color: var(--muted); font-size: 1.2rem; font-weight: 400; }
.promo-copy h2 { font-size: 1.3rem; } .promo-copy p { color: var(--muted); margin: 4px 0 14px; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.cat-card { display: block; padding: 32px 16px 28px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; text-align: center; transition: box-shadow .15s, transform .15s; }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cat-icon { font-size: 3.4rem; line-height: 1.1; display: block; filter: var(--float); }
.cat-card h2 { font-size: 1.2rem; margin: 16px 0 4px; letter-spacing: 0; text-wrap: balance; } .cat-card p { color: var(--muted); font-size: .85rem; margin: 0 0 10px; }
.cat-samples { display: flex; justify-content: center; gap: 2px; font-size: 1.1rem; }

/* emoji detail */
.emoji-page { max-width: 864px; margin-inline: auto; }
.stage { display: grid; grid-template-columns: auto 1fr; gap: 20px 36px; align-items: center; margin: 32px 0 0; padding: 0 0 36px; }
.stage-emoji { display: grid; place-items: center; filter: var(--float); }
.stage-text h1 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pron { color: var(--muted); margin: 6px 0 0; }
.stage .chips { margin-top: 14px; }
.stage-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .stage { grid-template-columns: auto 1fr auto; } .stage-actions { grid-column: auto; flex-direction: column; align-self: start; margin-top: 8px; } .stage-actions .btn { min-width: 108px; } }
@media (max-width: 560px) { .stage { grid-template-columns: 1fr; justify-items: start; gap: 16px; } .jump { mask-image: linear-gradient(to right, #000 85%, transparent); } html[dir="rtl"] .jump { mask-image: linear-gradient(to left, #000 85%, transparent); } }
.jump { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 95%, transparent); display: flex; gap: 24px; overflow-x: auto; padding: 14px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.jump a { white-space: nowrap; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--ink); }
.cols { display: grid; gap: 32px; margin-top: 12px; }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; } }
.block { margin-top: 56px; scroll-margin-top: 72px; } .block:first-child { margin-top: 28px; } .block h2 { margin-bottom: 18px; }
.defs { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.defs li { display: flex; gap: 14px; }
.num { flex: none; min-width: 1.2em; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.eyebrow { display: flex; flex-wrap: wrap; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
html[lang="ar"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="ar"] .rail-title, html[lang="ja"] .rail-title { letter-spacing: 0; }
.eyebrow b { color: var(--gold); font-weight: 700; }
.eyebrow > * + *::before { content: "·"; margin-inline: 8px; }
.def-text { font-size: 1.08rem; max-width: 62ch; margin-bottom: .5em; }
.note { color: var(--muted); font-size: .95rem; max-width: 62ch; } .italic { font-style: italic; }
.examples { display: grid; justify-items: start; gap: 10px; margin: 16px 0; max-width: 36rem; }
.bubble { appearance: none; text-align: start; font: inherit; color: inherit; cursor: copy; background: var(--surface); border: 0; box-shadow: var(--shadow); padding: 10px 16px; border-radius: 16px 16px 16px 6px; display: block; transition: box-shadow .15s; }
html[dir="rtl"] .bubble { border-radius: 16px 16px 6px 16px; }
.bubble:hover { box-shadow: var(--shadow-lg); }
.bubble small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.bubble.done { outline: 2px solid var(--coin); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); } .card p:last-child { margin-bottom: 0; }
.card > .eyebrow { margin-bottom: 10px; }
.strong { font-weight: 700; }
.combo-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.combo { font-size: 1.7rem; letter-spacing: .12em; text-decoration: none; }
.mini { margin-inline-start: auto; appearance: none; border: 0; background: var(--shade); color: var(--ink); font: inherit; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; cursor: pointer; }
.mini:hover { background: color-mix(in srgb, var(--coin) 40%, var(--shade)); }
.pull { font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.01em; max-width: 52ch; margin-bottom: 1.2em; }
.gen { display: grid; gap: 6px 14px; grid-template-columns: auto 1fr; margin-top: 24px; } .gen dt { font-weight: 700; text-transform: capitalize; } .gen dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; } .timeline li { display: flex; gap: 18px; } .timeline p { margin: 0 0 2px; }
.year { flex: none; min-width: 3.5em; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.faq { margin-bottom: 22px; } .faq h3 { font-size: 1.05rem; margin-bottom: 6px; } .faq p { max-width: 62ch; }
.rail { display: grid; gap: 20px; align-content: start; }
.rail-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.langs li { display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; }
.langs .code { text-transform: uppercase; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.langs a { text-decoration: none; overflow-wrap: anywhere; }
.langs a:hover { color: var(--gold); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: .9rem; } .facts dt { color: var(--muted); } .facts dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.mini-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-grid a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); font-size: 1.5rem; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.mini-grid a:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* share dialog */
.share-dialog { border: 0; padding: 24px; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); width: min(360px, calc(100% - 32px)); }
.share-dialog::backdrop { background: rgb(38 35 29 / .4); }
.share-dialog[open] { animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.share-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.share-head h3 { font: 600 1.15rem var(--display); }
.share-close { appearance: none; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; display: grid; }
.share-close:hover { color: var(--ink); }
.share-close svg { width: 22px; height: 22px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-grid a, .share-grid button { appearance: none; border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: inherit; text-decoration: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 16px; }
.share-grid a:hover, .share-grid button:hover { background: var(--bg); }
.share-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-icon svg { width: 22px; height: 22px; }
.share-icon.wa { background: #25d366; } .share-icon.x { background: #000; } .share-icon.link { background: var(--muted); }
.share-grid button.done .share-icon.link { background: #2f9e44; }

/* prose */
.prose { max-width: 700px; margin: 0 auto; padding-top: 40px; }
.prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); } .prose .lede { margin: 10px 0 28px; max-width: none; }
.prose h2 { font-size: 1.2rem; margin: 32px 0 8px; } .prose ul { padding-inline-start: 1.3em; } .prose li { margin-bottom: 6px; }
.prose a { color: var(--gold); }
.mailcard { padding: 24px; margin: 20px 0 8px; text-align: center; }

/* mixer */
.mixer { text-align: center; padding-top: 28px; }
.mixer h1 { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.stage-mix { position: relative; display: grid; place-items: center; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); height: min(60vw, 300px); margin-top: 8px; }
@media (min-width: 900px) { .stage-mix { height: 500px; } }
.stage-mix img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: var(--float); }
.mix-ring { position: absolute; top: 50%; left: 50%; width: 140px; height: 140px; margin: -70px 0 0 -70px; border: 3px solid var(--coin); border-radius: 50%; pointer-events: none; opacity: 0; }
.mix-ring[hidden] { display: none; }
.mix-idle { width: 96px; height: 96px; border: 2px dashed var(--line); border-radius: 50%; }
.mix-a, .mix-b { position: absolute; font-size: 4rem; top: 50%; margin-top: -2.2rem; will-change: transform; filter: var(--float); }
.mix-a { inset-inline-start: calc(50% - 5.5rem); }
.mix-b { inset-inline-end: calc(50% - 5.5rem); }
.pickers { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 8px; }
.picker { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: var(--shadow); font-size: 2.4rem; cursor: pointer; color: var(--muted); transition: box-shadow .15s; }
.picker:hover { box-shadow: var(--shadow-lg); } .picker[aria-expanded="true"] { outline: 3px solid var(--coin); }
.plus { font-size: 1.4rem; color: var(--muted); }
.popover { max-width: 560px; margin: 18px auto 0; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: min(52vh, 460px); overflow: hidden; }
.popover[hidden] { display: none; }
.popover input { margin: 14px 14px 4px; padding: 10px 16px; border-radius: 12px; border: 0; background: var(--bg); color: inherit; font: inherit; outline: none; }
.pop-status { font-size: .8rem; color: var(--muted); margin: 6px 0; }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); padding: 0 10px 14px; overflow-y: auto; overscroll-behavior: contain; font-family: var(--emoji-font); }
.pop-grid button { appearance: none; border: 0; background: transparent; font-size: 1.7rem; aspect-ratio: 1; border-radius: 12px; cursor: pointer; }
.pop-grid button:hover { background: var(--bg); } .pop-grid button[aria-pressed="true"] { background: color-mix(in srgb, var(--coin) 40%, var(--shade)); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.credit { color: var(--muted); font-size: .8rem; margin-top: 28px; }

/* 404 */
.notfound { padding: 64px 0; text-align: center; } .nf-emoji { font-size: 4.5rem; line-height: 1.1; filter: var(--float); } .notfound .hero-search { margin-bottom: 24px; }

/* footer, toast */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 48px; font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 2fr; } .copy { grid-column: 1 / -1; } }
.foot-brand p { color: var(--muted); max-width: 34ch; margin-top: 10px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.foot-cols h3 { font-size: .85rem; margin-bottom: 10px; } .foot-cols a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; } .foot-cols a:hover { color: var(--ink); }
.copy { color: var(--muted); font-size: .8rem; margin: 0; }
.toast { position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: max-content; max-width: 90vw; background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 640px) { .bar { gap: 12px 16px; padding-block: 14px; } .lang { order: 4; margin-inline-start: auto; } .nav { order: 5; flex: 1 1 100%; margin: 0; gap: 20px; } .nav a, .menu summary { font-size: .92rem; } .logo { font-size: 1.15rem; } .lang summary { padding: 7px 12px; } }
