/* Get Kaomoji: sticker album
   Ground = release liner, shell = logo blue, stickers = white die-cut,
   four sheet inks for wayfinding. Mobile first. */

@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-800-normal.woff2) format("woff2");
  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: "M PLUS Rounded 1c"; font-weight: 800; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 800; font-display: swap; src: url(../fonts/m-plus-rounded-1c-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 700; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-700-normal.woff2) format("woff2");
  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: "M PLUS Rounded 1c"; font-weight: 700; font-display: swap; src: url(../fonts/m-plus-rounded-1c-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 700; font-display: swap; src: url(../fonts/m-plus-rounded-1c-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
  --liner: #edf2f8;
  --liner-deep: #dfe7f1;
  --paper: #ffffff;
  --ink: #1b2a41;
  --ink-2: #4a5b73;
  --ink-3: #5c6c82;
  --rule: #d3dde9;
  --blue: #2779bf;
  --blue-deep: #1d5f99;
  --blue-press: #1a568b;
  --on-blue: #ffffff;
  --on-blue-2: #ffffff;

  --yellow: #ffc83d; --yellow-tint: #fff3cf; --yellow-ink: #6b4b00;
  --pink:   #ff6f9c; --pink-tint:   #ffe3ec; --pink-ink:   #8a1f45;
  --mint:   #2fbf9b; --mint-tint:   #d6f4ea; --mint-ink:   #0e5c49;
  --sky:    #4b9be0; --sky-tint:    #dcebfa; --sky-ink:    #184f80;

  --face: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", system-ui, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --kao: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Meiryo",
         "Segoe UI", "Segoe UI Symbol", "Noto Sans", "Noto Sans Symbols 2", "Noto Sans Kannada", "Noto Sans Thai", system-ui, sans-serif;

  --r-sticker: 14px;
  --r-tile: 18px;
  --r-sheet: 26px;
  --lift: 0 2px 2px -1px rgba(27,42,65,.10), 0 10px 18px -8px rgba(27,42,65,.40);
  --lift-hi: 0 2px 0 rgba(27,42,65,.05), 0 18px 28px -10px rgba(27,42,65,.38);
  --edge: 0 0 0 1px rgba(27,42,65,.07);
  --diecut: 0 0 0 4px #fff, 0 0 0 5px rgba(27,42,65,.13);

  --gutter: 16px;
  --max: 1180px;
  --bar: 56px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body {
  margin: 0; background: var(--liner); color: var(--ink);
  font: 16px/1.55 var(--ui);
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
a { color: var(--blue-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue-press); }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
html { scrollbar-color: #b6c4d6 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #b6c4d6; border-radius: 10px; border: 3px solid var(--liner); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- shell ---------- */
.bar { position: sticky; top: 0; z-index: 40; background: var(--blue); color: var(--on-blue); }
.bar-in { height: var(--bar); display: flex; align-items: center; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-blue); text-decoration: none; min-width: 0; margin-inline-end: auto; }
.brand:hover { color: var(--on-blue); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 3px 8px -2px rgba(0,0,0,.35); }
.brand b { font: 800 19px/1 var(--face); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; padding: 0 10px;
  border: 0; border-radius: 12px; background: transparent; color: var(--on-blue); cursor: pointer;
  font: 700 14px/1 var(--ui); position: relative; text-decoration: none;
}
.bar-btn:hover { background: var(--blue-deep); color: var(--on-blue); }
.bar-btn[aria-expanded="true"] { background: var(--blue-press); }
.bar-btn .lbl { display: none; }
.tray-count {
  position: absolute; top: 3px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--yellow); color: var(--ink); font: 800 11px/18px var(--ui); text-align: center;
  box-shadow: 0 0 0 2px var(--blue);
}
.tray-count[hidden] { display: none; }
.bar-btn.bump .icon { animation: bump .5s var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-8deg); } 100% { transform: scale(1); } }

.band { background: var(--blue); padding: 6px 0 18px; }
.band-home { padding: 14px 0 26px; }
.band-title { margin: 0 0 4px; color: var(--on-blue); font: 800 clamp(22px, 5.4vw, 34px)/1.15 var(--face); letter-spacing: -.015em; text-wrap: balance; }
.band-sub { margin: 0 0 14px; color: var(--on-blue-2); font-size: 15px; font-weight: 500; }

/* search */
.search { position: relative; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; inset-inline-start: 15px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 52px; padding: 0 16px 0 46px; padding-inline-start: 46px; padding-inline-end: 16px;
  border: 0; border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 500 16px/1 var(--ui); box-shadow: 0 6px 18px -10px rgba(10,30,60,.55);
  -webkit-appearance: none; appearance: none; outline: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { box-shadow: 0 0 0 3px var(--yellow), 0 6px 18px -10px rgba(10,30,60,.55); }
.results {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 30;
  max-height: min(70vh, 640px); overflow: auto; padding: 6px 14px 10px;
  background: var(--paper); border-radius: 18px; box-shadow: var(--edge), 0 24px 48px -18px rgba(10,30,60,.45);
}
.results[hidden] { display: none; }
.res { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.res:last-child { border-bottom: 0; }
.res-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.res-head a { font: 800 15px/1.3 var(--face); color: var(--ink); text-decoration: none; }
.res-head a:hover { color: var(--blue-deep); text-decoration: underline; }
.res-head .more { font: 600 13px/1.3 var(--ui); color: var(--blue-deep); white-space: nowrap; }
.res-empty { padding: 14px 0; color: var(--ink-2); }

/* ---------- stickers ---------- */
.sheet {
  --tint: var(--sky-tint); --tab: var(--sky);
  background: var(--tint); border-radius: var(--r-sheet); padding: 18px 16px;
  outline: 2px dashed color-mix(in srgb, var(--tab) 45%, transparent); outline-offset: -8px;
}
.ink-yellow { --tint: var(--yellow-tint); --tab: var(--yellow); --tab-ink: var(--yellow-ink); }
.ink-pink   { --tint: var(--pink-tint);   --tab: var(--pink);   --tab-ink: var(--pink-ink); }
.ink-mint   { --tint: var(--mint-tint);   --tab: var(--mint);   --tab-ink: var(--mint-ink); }
.ink-blue   { --tint: var(--sky-tint);    --tab: var(--sky);    --tab-ink: var(--sky-ink); }

.slot { position: relative; display: flex; }
.slot > .sticker { flex: 1; width: 100%; }
.stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr)); gap: 16px; padding: 4px; }
.stickers.big { grid-template-columns: 1fr; }
.sticker {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 72px; padding: 14px 12px; margin: 0;
  background: color-mix(in srgb, var(--tint, #dcebfa) 70%, #fff); border: 0; border-radius: var(--r-sticker);
  box-shadow: var(--diecut), var(--lift);
  cursor: pointer; text-align: center; color: var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.sticker .k { font: 400 19px/1.35 var(--kao); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.stickers.big .sticker .k { white-space: pre-wrap; word-break: break-word; font-size: 16px; text-align: start; }
.sticker .k.fit { white-space: normal; word-break: break-all; }
@media (hover: hover) {
  .sticker:hover { transform: translateY(-2px) rotate(-.6deg); box-shadow: var(--diecut), var(--lift-hi); }
}
.sticker:active { transform: scale(.97); }

/* the peel: corner lifts, sticker rises and tilts, a stamp confirms */
.sticker::after {
  content: ""; position: absolute; top: -3px; inset-inline-end: -3px; width: 0; height: 0;
  border-radius: 0 var(--r-sticker) 0 10px; background: var(--liner-deep);
  box-shadow: -3px 3px 6px -2px rgba(27,42,65,.25);
  transition: width .35s var(--ease-out), height .35s var(--ease-out);
}
.sticker.peel { transform: translateY(-6px) rotate(-2.5deg); box-shadow: var(--diecut), var(--lift-hi); }
.sticker.peel::after { width: 22px; height: 22px; }
.stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-sticker); background: var(--tab, var(--sky));
  color: var(--ink); font: 800 15px/1 var(--face);
  opacity: 0; transform: scale(.92); transition: opacity .18s ease, transform .35s var(--ease-out); pointer-events: none;
}
.sticker.peel .stamp { opacity: 1; transform: scale(1); }
.star {
  position: absolute; top: 4px; inset-inline-end: 4px; z-index: 2; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: #7b8ba1; cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.star .icon { width: 18px; height: 18px; }
.star:hover { color: var(--ink-2); }
.star.on { color: #f0a500; opacity: 1; }
.star.on .icon { fill: currentColor; }
.slot:hover .star, .slot:focus-within .star, .star:focus-visible { opacity: 1; }
@media (hover: none) { .star { opacity: 1; } }

.flyer {
  position: fixed; z-index: 60; pointer-events: none; padding: 6px 10px; border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 400 15px/1.2 var(--kao); white-space: nowrap;
  box-shadow: var(--lift-hi); transition: transform .6s cubic-bezier(.5,0,.75,0), opacity .6s ease;
}

/* ---------- page parts ---------- */
main { padding: 22px 0 56px; }
.page-head { margin: 4px 0 16px; }
.page-head h1 { margin: 0; font: 800 clamp(24px, 6vw, 38px)/1.15 var(--face); letter-spacing: -.02em; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px;
  background: var(--paper); color: var(--ink); text-decoration: none; font: 600 13px/1 var(--ui);
  box-shadow: var(--edge);
}
a.chip:hover { background: var(--ink); color: #fff; }
.count { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.count::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tab, var(--sky)); box-shadow: 0 0 0 2px var(--paper); }
.intro { margin: 0 0 18px; color: var(--ink-2); }
.intro > p { max-width: 68ch; margin: 0 0 .8em; }
.intro > pre { max-width: 100%; overflow: auto; padding: 14px; border-radius: 14px; background: var(--paper); color: var(--ink); font: 14px/1.25 var(--kao); }
.intro hr { border: 0; height: 1px; background: var(--rule); margin: 20px 0; }
.hint { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.hint .icon { width: 18px; height: 18px; color: var(--tab-ink, var(--blue)); }
.prose { max-width: 68ch; color: var(--ink-2); margin: 22px 0; }
.prose pre { overflow: auto; padding: 14px; border-radius: 14px; background: var(--paper); color: var(--ink); font: 14px/1.3 var(--kao); }
.ad { margin: 18px 0; display: flex; justify-content: center; }
.ad:empty { min-height: 0; margin: 0; }
section + section { margin-top: 34px; }
h2.sec { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; font: 800 clamp(20px, 4.6vw, 26px)/1.2 var(--face); letter-spacing: -.015em; }
h2.sec .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tab); box-shadow: 0 0 0 3px var(--paper); flex: none; }
h3.sub { margin: 22px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 800 17px/1.25 var(--face); }
h3.sub:first-child { margin-top: 0; }
h3.sub .k { font: 400 15px/1.2 var(--kao); color: var(--ink-2); direction: ltr; unicode-bidi: isolate; }

/* collection tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 45%), 1fr)); gap: 16px; padding: 4px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; min-height: 116px; padding: 14px;
  background: color-mix(in srgb, var(--tint, #dcebfa) 70%, #fff); border-radius: var(--r-tile); text-decoration: none; color: var(--ink);
  box-shadow: var(--diecut), var(--lift);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.tile:hover { color: var(--ink); transform: translateY(-2px) rotate(-.5deg); box-shadow: var(--diecut), var(--lift-hi); }
.tile .face {
  display: flex; align-items: center; justify-content: safe center; text-align: center; min-height: 48px; padding: 4px 2px;
  font: 400 19px/1.3 var(--kao); white-space: nowrap; overflow: hidden; overflow-wrap: normal; word-break: keep-all; line-break: strict; direction: ltr; unicode-bidi: isolate;
}
.tile .name { font: 800 15px/1.25 var(--face); overflow-wrap: anywhere; }
.tile .n { margin-top: auto; color: var(--ink-3); font: 600 12.5px/1 var(--ui); font-variant-numeric: tabular-nums; }
.tiles.feature .tile { min-height: 0; }
.related { margin-top: 40px; }

/* pagination */
.pager { display: flex; justify-content: center; gap: 8px; margin: 28px 0 0; flex-wrap: wrap; }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--edge);
}
.pager .cur { background: var(--ink); color: #fff; }
.pager a:hover { background: var(--blue); color: #fff; }

/* terms */
.term-list { display: flex; flex-wrap: wrap; gap: 8px; }
.term-list .chip { height: 36px; font-size: 14px; }
.term-list .chip em { margin-inline-start: 8px; font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.term-list a.chip:hover em { color: #c9d6e6; }

/* ---------- panels: browse drawer, tray, languages ---------- */
.panel {
  position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end;
  background: rgba(20,34,56,.42); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
}
.panel.open { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.panel-box {
  width: min(440px, 100%); height: 100%; overflow: auto; background: var(--liner);
  transform: translateX(24px); transition: transform .3s var(--ease-out); display: flex; flex-direction: column;
}
[dir="rtl"] .panel { justify-content: flex-start; }
[dir="rtl"] .panel-box { transform: translateX(-24px); }
.panel.open .panel-box { transform: none; }
.panel-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; min-height: var(--bar); padding-block: 8px; padding-inline: 18px 8px;
  background: var(--blue); color: var(--on-blue);
}
.panel-head h2 { margin: 0 auto 0 0; font: 800 18px/1 var(--face); }
[dir="rtl"] .panel-head h2 { margin: 0 0 0 auto; }
.panel-body { padding: 16px 18px 40px; }
.zone + .zone { margin-top: 18px; }
.zone > h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font: 800 16px/1.2 var(--face); }
.zone > h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tab); }
.zone details { background: var(--paper); border-radius: 14px; box-shadow: var(--edge); }
.zone details + details { margin-top: 6px; }
.zone summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.zone summary::-webkit-details-marker { display: none; }
.zone summary .k { margin-inline-start: auto; padding: 2px 0; color: var(--ink-3); font: 400 14px/1.45 var(--kao); direction: ltr; unicode-bidi: isolate; white-space: nowrap; overflow: hidden; max-width: 45%; text-overflow: ellipsis; }
.zone summary .icon { width: 16px; height: 16px; color: var(--ink-3); transition: transform .2s ease; }
.zone details[open] summary .icon { transform: rotate(90deg); }
[dir="rtl"] .zone summary .icon { transform: scaleX(-1); }
[dir="rtl"] .zone details[open] summary .icon { transform: rotate(90deg); }
.zone ul { list-style: none; margin: 0; padding: 0 6px 8px; }
.zone li a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.zone li a:hover { background: var(--tint); }
.zone li a[aria-current="page"] { background: var(--tint); font-weight: 700; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.tray-tabs { display: flex; gap: 6px; padding: 14px 18px 0; }
.tray-tabs button {
  height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: var(--edge);
  cursor: pointer; font-weight: 700; color: var(--ink-2);
}
.tray-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tray-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tray-list .sticker { min-height: 60px; }
.tray-empty { color: var(--ink-2); }
.tray-clear { margin-top: 16px; border: 0; background: none; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 6px 0; }

.langs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.langs a { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: var(--edge); }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; }
.langs a span { color: var(--ink-3); font: 600 12px/1 var(--ui); text-transform: uppercase; }
.langs a[aria-current="true"] span { color: #c9d6e6; }

/* toast */
.toast {
  position: fixed; left: 50%; top: calc(var(--bar) + 10px); z-index: 70; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 14px; background: var(--ink); color: #fff; font: 700 14px/1 var(--ui);
  box-shadow: 0 14px 30px -12px rgba(10,20,40,.6);
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-out), opacity .2s ease;
}
.toast .icon { width: 18px; height: 18px; color: var(--mint); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .k { font: 400 14px/1.35 var(--kao); color: #c9d6e6; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }

/* footer */
.foot { background: var(--paper); padding: 28px 0 40px; color: var(--ink-2); font-size: 14px; }
.foot-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.foot-top img { width: 36px; height: 36px; border-radius: 50%; }
.foot-top b { color: var(--ink); font: 800 17px/1.2 var(--face); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 14px; padding: 0; list-style: none; }
.foot-langs a { color: var(--ink-2); }
.foot small { color: var(--ink-3); }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 24px; --bar: 62px; }
  .bar-btn .lbl { display: inline; }
  .tray-count { position: static; margin-inline-start: 2px; box-shadow: none; }
  .band { padding: 10px 0 26px; }
  .band-home { padding: 26px 0 40px; }
  .sheet { padding: 20px; }
  .stickers { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .sticker { min-height: 84px; }
  .sticker .k { font-size: 21px; }
  .stickers.big { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
  main { padding-top: 30px; }
}
@media (min-width: 1100px) {
  .search { max-width: 760px; }
  .stickers { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .sticker.peel { transform: none; }
}

/* home tray row */
#home-tray[hidden] { display: none; }

.tile .face span { white-space: nowrap; }

/* PWA install */
.chip-install { gap: 6px; border: 0; cursor: pointer; background: var(--blue); color: #fff; height: 36px; padding: 0 14px; }
.chip-install .icon { width: 18px; height: 18px; }
.chip-install:hover { background: var(--blue-deep); }
.chip-install[hidden] { display: none; }

/* ---------- popularity ---------- */
.sheet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; }
.sheet-bar .hint { margin: 0; }
.sort { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--liner-deep); }
.sort button {
  display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
  font: 700 14px/1 var(--face); cursor: pointer; transition: background .15s ease, color .15s ease;
}
.sort button .icon { width: 15px; height: 15px; }
.sort button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(27,42,65,.14); }
.sort button.on .icon { color: #e8590c; }
.sort button:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.flame {
  position: absolute; top: -7px; inset-inline-start: -7px; z-index: 2; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #e8590c;
  box-shadow: 0 0 0 1px rgba(27,42,65,.12), 0 2px 4px rgba(27,42,65,.16); pointer-events: none;
}
.flame .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stickers.orig .flame { display: none; }
h2.sec .sec-icon { width: 20px; height: 20px; color: #e8590c; fill: currentColor; stroke: none; flex: none; }
@media (max-width: 640px) { #popular .slot:nth-child(n+9) { display: none; } }
