* { box-sizing: border-box; }
.stickers-page {
  --ink: #0b2344;
  --muted: #475b76;
  --line: #dbe5f1;
  --blue: #1455bf;
  --green: #076640;
  margin: 0;
  color: var(--ink);
  background: #f5f8fc;
  font-family: Inter, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.stickers-main button { font: inherit; }
.stickers-main [hidden] { display: none !important; }
.stickers-main :focus-visible, .stickers-footer a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.stickers-main ::selection { background: #cfe3ff; color: var(--ink); }
.stickers-masthead { background: #071a38; color: white; padding: 1.3rem max(22px, calc((100% - 1240px) / 2)); }
.stickers-masthead a { color: inherit; text-decoration: none; font-size: 21px; font-weight: 760; white-space: nowrap; }
.stickers-main { max-width: 1288px; padding: 34px 24px 52px; margin-inline: auto; }
.stickers-intro { margin-bottom: 35px; }
.stickers-crumb { display: flex; align-items: center; gap: 9px; font-size: .87rem; color: var(--muted); }
.stickers-crumb a { color: var(--blue); text-underline-offset: .2em; }
.stickers-intro h1 { font-size: clamp(2rem, 5.25vw, 4.15rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin: 12px 0 12px; text-wrap: balance; }
.stickers-intro p { color: var(--muted); font-size: clamp(.94rem, 1.8vw, 1.06rem); max-width: 48rem; margin: 0; }
.stickers-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 298px); gap: clamp(19px, 3.4vw, 44px); align-items: start; }
.stickers-gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.stickers-gallery-head h2, .tray-heading h2 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.stickers-gallery-head span, .tray-heading p { color: var(--muted); font-size: .87rem; font-variant-numeric: tabular-nums; }
.stickers-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.stickers-filters button, .sticker-clear { min-height: 44px; cursor: pointer; }
.stickers-filters button { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; font-weight: 650; padding: 6px 15px; }
.stickers-filters button:hover { background: #eff5ff; }
.stickers-filters button[aria-pressed=true] { border-color: #b9d2fc; color: #0b479f; background: #e6effe; }
.stickers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.stickers-grid li { min-width: 0; }
.sticker-tile { display: grid; grid-template-rows: auto 1fr; width: 100%; height: 100%; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; color: var(--ink); cursor: pointer; text-align: start; }
.sticker-art { display: grid; place-items: center; position: relative; aspect-ratio: 1; background: #eaf1fb; }
.stickers-grid li:nth-child(4n+2) .sticker-art { background: #f1eef9; }
.stickers-grid li:nth-child(4n+3) .sticker-art { background: #edf3ee; }
.stickers-grid li:nth-child(4n) .sticker-art { background: #f8eee3; }
.sticker-art img { height: 82%; width: 82%; object-fit: contain; pointer-events: none; }
.sticker-tile:hover { border-color: #82aaf2; }
.sticker-tile[aria-pressed=true] { border-color: #1455bf; outline: 1px solid #1455bf; }
.sticker-tile[aria-pressed=true]:focus-visible { outline-width: 3px; }
.sticker-mark { display: grid; place-items: center; position: absolute; right: 7px; top: 7px; width: 27px; height: 27px; border-radius: 50%; color: #244569; background: #fff; border: 1px solid #d9e4f2; }
.sticker-mark svg { width: 16px; height: 16px; }
.sticker-mark .mark-tick, .sticker-tile[aria-pressed=true] .mark-plus { display: none; }
.sticker-tile[aria-pressed=true] .mark-tick { display: block; }
.sticker-tile[aria-pressed=true] .sticker-mark { background: #1455bf; border-color: #1455bf; color: #fff; }
.sticker-name { padding: 8px 8px 9px; min-height: 2.3em; font-size: .83rem; font-weight: 640; line-height: 1.22; }
.sticker-tray { position: sticky; top: 22px; padding: 18px; border-radius: 15px; border: 1px solid var(--line); background: white; }
.tray-main { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tray-heading p { margin: 4px 0 0; }
.sticker-clear { border: 0; padding: 5px; color: var(--blue); background: transparent; text-decoration: underline; text-underline-offset: .2em; font-size: .85rem !important; }
.tray-items { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0; padding: 0; }
.tray-items button { border: 1px solid var(--line); background: #f1f6fd; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9px; padding: 4px; cursor: pointer; }
.tray-items button:hover { border-color: var(--blue); }
.tray-items img { width: 100%; height: 100%; object-fit: contain; }
.sticker-send { background: var(--green); color: white; border: 0; border-radius: 9px; width: 100%; min-height: 48px; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 11px; font-weight: 750 !important; cursor: pointer; }
.sticker-send:hover:not(:disabled) { background: #055334; }
.sticker-send:disabled { background: #e9eff5; color: #475b76; cursor: default; }
.sticker-send svg { flex: none; width: 22px; height: 22px; }
.sticker-status { margin: 12px 0 0; color: var(--muted); font-size: .86rem; }
.sticker-status[data-error=true] { color: #9a241b; }
.stickers-empty { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: white; color: var(--muted); }
.stickers-footer { max-width: 1288px; display: flex; gap: .6em; padding: 0 24px 25px; margin-inline: auto; color: var(--muted); font-size: .86rem; }
.stickers-footer a { color: inherit; text-underline-offset: .2em; }
.sticker-tile-sound { display: block; cursor: default; }
.sticker-tile-sound audio { display: block; width: calc(100% - 12px); min-width: 0; height: 38px; margin: 3px 6px; }
.sticker-download { display: flex; align-items: center; min-height: 36px; padding: 3px 8px; color: var(--blue); font-size: .8rem; }

@media (max-width: 780px) {
  .stickers-main { padding: 22px 16px 22px; }
  .stickers-intro { margin-bottom: 24px; }
  .stickers-layout { display: block; }
  .stickers-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 9px; }
  .sticker-tray { bottom: 8px; top: auto; z-index: 3; margin-top: 18px; padding: 10px 13px; box-shadow: 0 6px 22px #0b234425; }
  .sticker-tray.has-selection { position: fixed; bottom: max(8px, env(safe-area-inset-bottom)); inset-inline: 10px; }
  .stickers-page:has(.sticker-tray.has-selection) { padding-bottom: calc(175px + env(safe-area-inset-bottom)); }
  .sticker-send { margin-top: 7px; }
  .tray-items { margin-top: 5px; }
  .tray-heading h2 { font-size: 1rem; }
  .tray-heading p { margin-top: 1px; font-size: .81rem; }
  .stickers-footer { padding-inline: 16px; }
}
@media (max-width: 400px) {
  .stickers-filters { gap: 6px; }
  .stickers-filters button { padding-inline: 9px; font-size: .83rem; }
}
