/* Plum ink, emoji yellow, Atkinson Hyperlegible Next. The search field is the one loud thing. */

@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/atkinson-next-latin.818bfd3382.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Next";
  src: url("/assets/atkinson-next-latin-ext.8e8e50b0fe.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #2b1838;
  --ink-soft: #6a587a;
  --line: #ebe4f1;
  --tint: #f6f1fa;
  --signal: #ffc83d;
  --on-signal: #2b1838;
  --font: "Atkinson Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  --r-s: 10px;
  --r-l: 18px;
  --t-s: 0.875rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1224;
    --ink: #f2ecf7;
    --ink-soft: #b8a8c7;
    --line: #34263f;
    --tint: #261a31;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-m)/1.55 var(--font); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--t-xl); letter-spacing: -0.025em; }
h2 { font-size: var(--t-l); }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 80; padding: 0.6rem 1rem; border-radius: var(--r-s); background: var(--signal); color: var(--on-signal); font-weight: 700; }
.skip:focus { top: 1rem; }

/* Header. Its own layer above the page, so the search dropdown covers what's below
   (view-transition names make the page's big glyph a layer of its own). */
.top { position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: var(--paper); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; min-height: 4.25rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--t-l); font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.top .search { order: 3; flex: 1 1 100%; }
@media (min-width: 52rem) { .top .search { order: 0; flex: 0 1 26rem; } }
@media (max-width: 30rem) {
  .top-in { column-gap: 0.75rem; }
  .brand { gap: 0.45rem; font-size: 1.125rem; }
  .brand img { width: 26px; height: 26px; }
  .nav { gap: 0.9rem; font-size: 0.9375rem; }
}

/* Search */
.search { position: relative; }
.search input { width: 100%; appearance: none; border: 2px solid var(--ink); border-radius: 999px; padding: 0.55rem 1.1rem; background: var(--paper); color: var(--ink); font: inherit; }
.search input::placeholder { color: var(--ink-soft); opacity: 1; }
.search input:focus-visible { outline: none; box-shadow: 0 0 0 5px var(--signal); }
.search.big input { border-width: 3px; border-radius: var(--r-l); padding: 0.8rem 3.4rem 0.8rem 1.2rem; font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem); }
.search.big input:focus-visible { box-shadow: 0 0 0 7px var(--signal); }
.kbd-hint { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); border: 1.5px solid var(--ink-soft); border-radius: 6px; padding: 0.3rem 0.55rem; color: var(--ink-soft); font: 700 var(--t-s)/1 var(--font); pointer-events: none; }
.search.big input:focus + .kbd-hint, .search.big input:not(:placeholder-shown) + .kbd-hint { display: none; }
.drop { position: absolute; z-index: 40; top: calc(100% + 0.5rem); left: 0; right: 0; min-width: min(36rem, calc(100vw - 2rem)); max-height: min(70vh, 34rem); overflow: auto; padding: 0.5rem; border: 2px solid var(--ink); border-radius: var(--r-l); background: var(--paper); box-shadow: 0 18px 50px rgb(43 24 56 / 0.22); }

/* Hero: headline, search, then hint and skin tones on one row */
.hero { display: grid; gap: 0.75rem; padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; }
.hint { color: var(--ink-soft); }

/* Recently copied: one row of copy chips */
.recent-strip { display: flex; align-items: center; gap: 0.6rem; min-width: 0; min-height: 2.75rem; }
.strip:empty::after { content: "Emoji you copy show up here, one click to copy again."; align-self: center; color: var(--ink-soft); font-size: var(--t-s); }
.strip-label { flex: none; color: var(--ink-soft); font-size: var(--t-s); }
.strip { display: flex; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.chip { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: var(--r-s); background: none; color: inherit; font: 1.6rem/1 var(--emoji); cursor: pointer; }
.chip:hover { background: var(--tint); }
.chip[data-state="done"] { background: var(--signal); }

/* Category tabs, pinned while scrolling the chart */
.jump { position: sticky; top: 0; z-index: 30; margin-top: 1.5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.jump-in { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; padding-top: 0.45rem; padding-bottom: 0.45rem; }
.jump-in::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 999px; font-size: var(--t-s); font-weight: 700; text-decoration: none; white-space: nowrap; }
.jump a:hover { background: var(--tint); }
.jump .jg { font: 1.15rem/1 var(--emoji); }
.catalog .section-head h2 { scroll-margin-top: 4.5rem; }
.results:empty { display: none; }
.count { margin: 0.25rem 0 0.75rem; color: var(--ink-soft); font-size: var(--t-s); }
.empty { max-width: 60ch; padding: 1rem 0; }

/* Skin tone picker */
.tones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem; }
.tones-label { margin-right: 0.4rem; color: var(--ink-soft); font-size: var(--t-s); }
.tone { width: 2.6rem; height: 2.6rem; padding: 0; border: 2px solid transparent; border-radius: 999px; background: none; font: 1.35rem/1 var(--emoji); cursor: pointer; }
.tone:hover { background: var(--tint); }
.tone[aria-pressed="true"] { border-color: var(--ink); background: var(--tint); }

/* Emoji grids */
.glyphs { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: 0; margin-top: 0.4rem; }
.glyphs a { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-s); font: 1.7rem/1 var(--emoji); text-decoration: none; }
.glyphs a:hover { background: var(--tint); }
@media (min-width: 48rem) {
  .glyphs { grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr)); }
  .glyphs a { font-size: 2rem; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.25rem, 1fr)); gap: 0.15rem 0.35rem; margin: 0; padding: 0; list-style: none; }
.tiles li { position: relative; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; height: 100%; padding: 0.7rem 0.45rem 0.6rem; border-radius: var(--r-l); text-align: center; text-decoration: none; }
.tile:hover { background: var(--tint); }
/* The tile opens the emoji's page; this pill copies it. */
.tile-copy { position: absolute; top: 0.3rem; right: 0.3rem; padding: 0.28rem 0.55rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.75rem; font-weight: 800; line-height: 1; cursor: pointer; opacity: 0; }
.tiles li:hover .tile-copy, .tiles li:focus-within .tile-copy, .tile-copy[data-state="done"] { opacity: 1; }
.tile-copy[data-state="done"] { border-color: var(--signal); background: var(--signal); color: var(--on-signal); }
@media (hover: none) {
  .tile-copy { opacity: 1; }
  .tile { padding-top: 1.7rem; }
}
.newest .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(5.9rem, 1fr); overflow-x: auto; }
.tile .g { font: 2.6rem/1 var(--emoji); }
/* Names take at most two lines, so rows line up; the link still carries the whole name. */
.tile .n { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.3; }
.tiles.compact .tile .g, .drop .tile .g { font-size: 2.1rem; }
.fallback { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; }
/* Emoji from the newest Emoji version show their artwork from the first frame,
   because most devices can't draw them yet and would show a box until the check
   runs. The check then keeps the picture, or shows the device's own emoji. */
[data-pre]:not([data-checked]):not(:has(.g)), [data-pre]:not([data-checked]) .g {
  min-width: 1em;
  overflow: hidden;
  text-indent: -999em;
  background: var(--art) center / 1em 1em no-repeat;
}
/* An emoji inside a sentence keeps one emoji's room, drawn or pictured. */
.ig { display: inline-block; min-width: 1em; height: 1em; line-height: 1; vertical-align: -0.125em; text-align: center; }
/* "Your device" stays empty until the check says what this device draws. */
.look .native[data-pending]:not([data-checked]) { visibility: hidden; }
.drop .tiles { grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr)); }

.glyphs a:focus-visible, .tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; background: var(--signal); }
.tile:focus-visible .n { color: var(--on-signal); }

/* Sections */
.catalog, .block { margin-top: 2rem; }
.newest { margin-top: 1.5rem; }
.newest .section-head { margin-bottom: 0.4rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.catalog { margin-top: 0.5rem; }
.catalog .section-head { margin-top: 1.5rem; }
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { text-decoration: underline; }
.count-n { color: var(--ink-soft); font-size: var(--t-s); font-weight: 700; font-variant-numeric: tabular-nums; }
.more { font-weight: 700; }
.more-line { margin-top: 1.5rem; }
.page-title { margin-top: 1.25rem; }
.lede { max-width: 62ch; font-size: var(--t-l); line-height: 1.45; }
.page-title + .lede { margin-top: 0.85rem; }
.lede + .tones, .page-title + .lede + .tones { margin-top: 1.25rem; }
.subs { max-width: 70ch; margin-top: 0.4rem; color: var(--ink-soft); font-size: var(--t-s); }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.5rem 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: var(--t-s); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; }

/* Emoji page */
.spec { display: grid; gap: 1.5rem; align-items: center; margin-top: 1.25rem; }
@media (min-width: 52rem) { .spec { grid-template-columns: 16rem 1fr; gap: 2.5rem; } }
.cell { position: relative; display: grid; place-items: center; width: 100%; max-width: 16rem; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: var(--r-l); }
.cell .big { font: clamp(6.5rem, 26vw, 9rem)/1 var(--emoji); }
.facts h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.cell-cp { position: absolute; left: 0; right: 0; bottom: 0.8rem; color: var(--ink-soft); font-size: var(--t-s); font-variant-numeric: tabular-nums; letter-spacing: 0.03em; text-align: center; }
.facts { display: grid; gap: 1.1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.btn { padding: 0.95rem 1.6rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; line-height: 1; cursor: pointer; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn[data-state="done"] { border-color: var(--signal); background: var(--signal); color: var(--on-signal); }
.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--tint); }
[hidden] { display: none !important; }
/* Secondary links under an emoji's buttons: Download PDF */
.aside-links { color: var(--ink-soft); font-size: var(--t-s); }
.aside-links a { color: var(--ink); font-weight: 700; }
/* The spec strip: an emoji's facts in one ruled row, like a line of a chart */
.spec-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr)); gap: 0.9rem 1.75rem; margin: 1.75rem 0 0; padding: 1rem 0 1.1rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.spec-strip div { min-width: 0; }
.spec-strip dt { color: var(--ink-soft); font-size: var(--t-s); }
.spec-strip dd { margin: 0.15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.spec-strip .wide { grid-column: 1 / -1; }
.spec-strip .wide dd { font-weight: 400; }
.spec-strip code { font-family: var(--mono); font-size: 0.92em; }

.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 1rem; max-width: 46rem; margin-top: 1rem; }
.look { display: grid; justify-items: center; gap: 0.5rem; margin: 0; }
.look img, .look .native { width: 6rem; height: 6rem; }
.look .native { display: grid; place-items: center; font: 4.9rem/1 var(--emoji); }
.look figcaption { color: var(--ink-soft); font-size: var(--t-s); }
.device-status { min-height: 3.1em; max-width: 62ch; margin-top: 0.9rem; color: var(--ink-soft); }
.device-status a { color: var(--ink); }
.device-status.no { color: var(--ink); }

.table-scroll { overflow-x: auto; }
.langs { width: 100%; max-width: 62rem; margin-top: 1rem; border-collapse: collapse; font-size: var(--t-s); }
.langs th, .langs td { padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.langs thead th { color: var(--ink-soft); font-weight: 700; }
.langs tbody th { font-weight: 700; white-space: nowrap; }
.langs td:last-child { color: var(--ink-soft); }

.codes { display: grid; max-width: 46rem; margin: 1rem 0 0; }
.codes div { display: grid; grid-template-columns: 11rem 1fr auto; gap: 0.5rem 1rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.codes dt { color: var(--ink-soft); font-size: var(--t-s); }
.codes dd { display: contents; }
.codes code { font: 500 0.95rem/1.4 var(--mono); overflow-wrap: anywhere; }
.copy-code { padding: 0.45rem 0.85rem; border: 1.5px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font-size: var(--t-s); font-weight: 800; line-height: 1; cursor: pointer; }
.copy-code:hover { background: var(--tint); }
.copy-code[data-state="done"] { border-color: var(--signal); background: var(--signal); color: var(--on-signal); }
@media (max-width: 36rem) {
  .codes div { grid-template-columns: 1fr auto; }
  .codes dt { grid-column: 1 / -1; }
}

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.pager a.next { margin-left: auto; text-align: end; }
.pager a:hover .pn { text-decoration: underline; }
.pager .pg { font: 2rem/1 var(--emoji); }
.pager .pl { display: block; color: var(--ink-soft); font-size: var(--t-s); }
.pager .pn { display: block; font-weight: 700; }

.section-note { max-width: 62ch; margin-top: 0.4rem; color: var(--ink-soft); }
.section-note + .tiles { margin-top: 0.75rem; }
.prose-p { max-width: 68ch; margin-top: 0.75rem; font-size: var(--t-l); line-height: 1.5; }

.parts { display: grid; gap: 0.35rem; max-width: 46rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: part; }
.parts li { display: grid; grid-template-columns: 2.5rem 1fr auto; gap: 0.75rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.parts .pg { font: 1.6rem/1 var(--emoji); text-align: center; }
.parts .pg-char { color: var(--ink-soft); font-family: var(--font); }
.parts .pc { color: var(--ink-soft); font-size: var(--t-s); font-variant-numeric: tabular-nums; }

.howto { display: grid; gap: 0.6rem; max-width: 62ch; margin: 1rem 0 0; }
.howto div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.howto dt { font-weight: 700; }
.howto dd { margin: 0; }
@media (max-width: 36rem) { .howto div { grid-template-columns: 1fr; gap: 0.1rem; } }

.faq { display: grid; gap: 0.4rem; max-width: 66ch; margin-top: 1rem; }
.faq h3 { margin-top: 0.9rem; font-size: var(--t-m); font-weight: 800; letter-spacing: 0; }
.faq h3:first-child { margin-top: 0; }

.more-langs { max-width: 62rem; margin-top: 1rem; }
.more-langs summary { cursor: pointer; font-weight: 700; }
.more-langs .langs { margin-top: 0.5rem; }

/* Text pages */
.prose { display: grid; gap: 1rem; max-width: 68ch; }
.prose h2 { margin-top: 1.25rem; }
.prose ul { display: grid; gap: 0.35rem; margin: 0; padding-left: 1.25rem; }
.prose pre { margin: 0; padding: 1rem; overflow-x: auto; border-radius: var(--r-s); background: var(--tint); font: 0.85rem/1.5 var(--mono); }
.prose code { font-family: var(--mono); font-size: 0.92em; }

.versions { width: 100%; margin-top: 1rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.versions th, .versions td { padding: 0.35rem 1.75rem 0.35rem 0; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; white-space: nowrap; }
.versions thead th { color: var(--ink-soft); font-size: var(--t-s); font-weight: 700; }
.versions tbody th { font-weight: 700; }
/* The examples column takes what's left and clips on narrow screens. */
.versions td.ex { width: 100%; max-width: 0; padding-right: 0; }
.glyphs.inline { display: flex; overflow: hidden; margin: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.glyphs.inline a { flex: none; width: 2.6rem; font-size: 1.6rem; }
@media (max-width: 36rem) { .versions th, .versions td { padding-right: 0.9rem; } }

/* New emoji: one chart row each. Cell, what it means, copy buttons. */
.new-list { margin-top: 2rem; }
.section-head.split { justify-content: space-between; align-items: center; }
.chart-rows { margin: 0.75rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.chart-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.5rem 1.75rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.spec-cell { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: var(--r-l); text-decoration: none; }
.spec-cell:hover { background: var(--tint); }
.spec-cell:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; background: var(--signal); }
.spec-cell .g { margin-bottom: 1rem; font: 3.75rem/1 var(--emoji); }
.spec-cell .cell-cp { bottom: 0.45rem; font-size: 0.6875rem; letter-spacing: 0; }
.row-text h3 { font-size: var(--t-l); }
.row-text h3 a { text-decoration: none; }
.row-text h3 a:hover { text-decoration: underline; }
.row-text p { max-width: 68ch; margin-top: 0.3rem; }
.row-actions { display: grid; gap: 0.5rem; justify-items: stretch; }
.pill { padding: 0.55rem 1.05rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: var(--t-s); font-weight: 800; line-height: 1; white-space: nowrap; cursor: pointer; }
.pill:hover { background: var(--tint); }
.pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--paper); color: var(--ink); }
.pill[data-state="done"] { border-color: var(--signal); background: var(--signal); color: var(--on-signal); }
@media (max-width: 40rem) {
  .chart-row { grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; align-items: start; }
  .spec-cell .g { font-size: 2.75rem; margin-bottom: 0.85rem; }
  .row-actions { grid-column: 2; display: flex; flex-wrap: wrap; }
}

/* Getting new emoji, device by device. The visitor's own is marked. */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.platform { display: grid; align-content: start; gap: 0.45rem; padding: 1.1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-l); }
.platform h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: var(--t-m); }
.platform p { font-size: var(--t-s); line-height: 1.5; }
.platform .update { color: var(--ink-soft); }
.platform .update strong { color: var(--ink); }
.platform.is-yours { border: 2px solid var(--ink); }
.yours { padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--signal); color: var(--on-signal); font-size: 0.75rem; font-weight: 800; }

/* The full chart: downloads, then every emoji with its name and code points. */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.5rem; }
.downloads { display: grid; gap: 0.6rem; justify-items: start; }
.downloads .subs { margin: 0; }
.chart-group { content-visibility: auto; contain-intrinsic-size: auto 2600px; }
.chart-group .section-head { margin-top: 2rem; }
.chart-group h2 { scroll-margin-top: 4.5rem; }
.chart-sub { margin-top: 1.25rem; color: var(--ink-soft); font-size: var(--t-s); font-weight: 800; }
.chart-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); column-gap: 1.25rem; margin: 0.35rem 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.cc { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.65rem; align-items: center; min-height: 3.4rem; padding: 0.35rem 0.4rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.cc:hover { background: var(--tint); }
.cc:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; background: var(--signal); }
.cc .g { grid-row: span 2; font: 1.9rem/1 var(--emoji); text-align: center; }
.cc .cn { align-self: end; font-size: var(--t-s); font-weight: 700; line-height: 1.25; }
.cc .cp { align-self: start; color: var(--ink-soft); font-size: 0.75rem; font-variant-numeric: tabular-nums; }

/* Footer: brand and links on one row, licenses beneath */
.foot { margin-top: 3.5rem; padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: var(--t-s); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; }
.foot-brand .brand { color: var(--ink); font-size: var(--t-m); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--ink); font-weight: 700; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; font-size: 0.8125rem; }
@media (max-width: 48rem) { .foot-in { grid-template-columns: 1fr; } }

/* Copy confirmation */
#toast { position: fixed; z-index: 70; left: 50%; bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; max-width: calc(100vw - 2rem); padding: 0.65rem 1.25rem 0.65rem 0.85rem; border-radius: 999px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px rgb(43 24 56 / 0.3); font-weight: 700; transform: translateX(-50%); }
#toast[hidden] { display: none; }
#toast .tg { font: 1.6rem/1 var(--emoji); }
#toast a { color: var(--signal); }
#toast .tt { display: flex; flex-wrap: wrap; column-gap: 0.5rem; }
#toast .toast-note { flex-basis: 100%; color: var(--line); font-size: 0.8125rem; font-weight: 400; line-height: 1.35; }
#toast:has(.toast-note) { max-width: min(30rem, calc(100vw - 2rem)); border-radius: 1.25rem; }
#toast code { font-family: var(--mono); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  #toast { animation: toast-in 0.18s ease-out; }
  @keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, 0.6rem); }
    to { opacity: 1; transform: translateX(-50%); }
  }
}

/* "Your device" when it can't draw the emoji: a labeled empty slot, not a box */
.look .native.is-missing { border: 2px dashed var(--line); border-radius: var(--r-l); padding: 0.5rem; color: var(--ink-soft); font: 700 0.75rem/1.3 var(--font); text-align: center; }

/* Smooth navigation. Cross-document view transitions: the header holds still,
   pages cross-fade, and the emoji you clicked flies into the next page's cell. */
.top { view-transition-name: site-header; }
.cell .big { view-transition-name: emoji-glyph; }
.cell .big.vt-off { view-transition-name: none; }
.vt-glyph { view-transition-name: emoji-glyph; }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: ease-out; }
  ::view-transition-group(emoji-glyph) { animation-duration: 280ms; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  .tile, .glyphs a, .chip, .tone, .jump a, .btn, .tile-copy { transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease; }
}

/* Long pages: skip rendering off-screen groups and sections until they scroll near. */
.catalog .group { content-visibility: auto; contain-intrinsic-size: auto 720px; }
.block { content-visibility: auto; contain-intrinsic-size: auto 420px; }
