/* =========================================================
   Sticker Book theme – loaded after site.css when the theme is on.
   Chunky ink outlines, soft offset shadows, slightly tilted stickers,
   dotted paper. Same brand colours as the classic theme.
   ========================================================= */
html.theme-sticker {
  --ink: #20212B; --ink-2: #4A4C5C; --land: #FFF8EA; --paper: #FFFFFF; --line: #20212B;
  --glass: #FFFFFF; --lagoon-deep: #0E6F7C;
  --font-d: "Fredoka", "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-b: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bw: 3px; --sh: 4px 4px 0 var(--ink); --sh-lg: 6px 6px 0 var(--ink);
  --shadow: var(--sh);
  color-scheme: light;
}
.theme-sticker body, body.theme-sticker {
  background-color: #FFF8EA;
  background-image: radial-gradient(#E9DCC0 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  color: var(--ink); font-family: var(--font-b);
}
.theme-sticker h1, .theme-sticker h2, .theme-sticker h3 { font-family: var(--font-d); font-weight: 700; letter-spacing: 0; }
.theme-sticker a { color: var(--ink); }
.theme-sticker :focus-visible { outline: 3px solid #0E6F7C; outline-offset: 3px; }
.theme-sticker main { z-index: auto; }

/* ---------- shared pieces ---------- */
.st-page { max-width: 1320px; margin: 0 auto; padding: 18px max(20px, env(safe-area-inset-right)) 64px max(20px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 44px; }
.st-card { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--sh-lg); padding: 24px; }
.st-h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1; margin: 0; }
.st-h1-sm { font-size: clamp(1.9rem, 4vw, 3rem); }
.st-h1 mark, .st-sub-sticker span { background: #FFC24B; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 16px; padding: 0 .22em; display: inline-block; transform: rotate(-2deg); }
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.st-head h2, .st-section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.st-section { display: flex; flex-direction: column; gap: 22px; }
.st-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.st-link { font-weight: 700; text-decoration-thickness: 2px; }
.st-tag { display: inline-flex; align-self: flex-start; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; background: #7ACB8A; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 11px; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: var(--bw) solid var(--ink); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.st-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.st-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.st-btn-sun { background: #FFC24B; }
.st-btn-big { min-height: 60px; font-size: 1.2rem; padding: 0 28px; box-shadow: 5px 5px 0 var(--ink); }
.st-btn[aria-pressed="true"] { background: #FFE3EA; }
.st-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-chips > * { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .92rem; }
.st-chips a { text-decoration: none; }
.st-emoji { font-family: var(--emoji); font-size: clamp(56px, 7vw, 96px); display: grid; place-items: center; width: 100%; height: 100%; }

/* ---------- header ---------- */
.st-top { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 14px) max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left)); background: rgba(255, 248, 234, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 2px solid rgba(32, 33, 43, .08); }
.st-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 3px 16px 3px 6px; box-shadow: var(--sh); transform: rotate(-2deg); flex: none; }
.st-logo span { font-family: var(--font-d); font-weight: 700; font-size: 1.5rem; }
.st-nav { display: flex; gap: 10px; }
.st-nav a, .st-me { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.st-nav a[aria-current="page"] { background: #FFC24B; }
.st-me { background: #A99AF0; }
.st-av { font-family: var(--emoji); font-size: 1.3rem; }
.st-search { position: relative; margin-left: auto; flex: 0 1 360px; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 14px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); backdrop-filter: none; }
.st-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: 0; }
.st-search:focus-within, .st-bigsearch:focus-within { box-shadow: 3px 3px 0 var(--ink), 0 0 0 4px #7ACB8A; }
.theme-sticker .count { background: #FF8FA3; color: var(--ink); border: 2px solid var(--ink); }
.theme-sticker .suggest { border: var(--bw) solid var(--ink); border-radius: 20px; box-shadow: var(--sh-lg); }
.theme-sticker .suggest .s-ico { border: 2px solid var(--ink); }
.theme-sticker .suggest a[aria-selected="true"], .theme-sticker .suggest a:hover { background: #FFF1C9; }

/* ---------- home ---------- */
.st-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: stretch; }
.st-hero-main { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.st-bigsearch { position: relative; display: flex; align-items: center; gap: 12px; max-width: 640px; min-height: 66px; padding: 0 8px 0 20px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.st-bigsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 1.2rem; color: var(--ink); min-height: 50px; padding: 0; }
.st-bigsearch button { min-height: 50px; padding: 0 22px; border: var(--bw) solid var(--ink); border-radius: 15px; background: #7ACB8A; color: var(--ink); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.st-try { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.st-try a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 600; text-decoration: none; transform: rotate(var(--r, 0deg)); }
.st-continue { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; padding: 22px; }
.st-continue-art { display: grid; place-items: center; border: var(--bw) solid var(--ink); border-radius: 20px; background: var(--c); overflow: hidden; min-height: 180px; text-decoration: none; }
.st-continue-art img { width: 100%; height: 100%; object-fit: cover; }
.st-continue-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.st-continue-body h2 { font-size: 1.9rem; line-height: 1.05; margin: 0; }
.st-continue-body p { margin: 0; }
.st-continue-body .st-row { margin-top: auto; }
.st-beads { display: flex; gap: 6px; }
.st-beads span { flex: 1; height: 14px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); }
.st-beads .done { background: #7ACB8A; }
.st-beads .next { background: #FFC24B; }
.st-map { position: relative; min-height: 440px; border: var(--bw) solid var(--ink); border-radius: 32px; box-shadow: var(--sh-lg); overflow: hidden; transform: rotate(.8deg);
  background-color: #8FD3D8; background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .45) 0 2px, transparent 3px); background-size: 40px 40px; }
.st-map-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.st-island { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; transform: translate(0, 0); }
.st-land { width: 104px; height: 80px; border: var(--bw) solid var(--ink); border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%; background: var(--c); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; transition: transform .15s; }
.st-land span { width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--emoji); font-size: 1.4rem; }
.st-island:hover .st-land { transform: translateY(-4px) rotate(-3deg); }
.st-island b { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 12px; font-family: var(--font-d); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.st-map-label { position: absolute; left: 18px; top: 18px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 10px 14px; transform: rotate(-2deg); max-width: 250px; display: grid; gap: 2px; }
.st-map-label b { font-family: var(--font-d); font-size: 1.3rem; }
.st-map-label span { font-size: .9rem; }
.st-map-go { position: absolute; right: 18px; bottom: 18px; }
.st-stickers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.st-sticker { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; text-align: center; border: var(--bw) solid var(--ink); border-radius: 26px; background: var(--c); box-shadow: var(--sh); text-decoration: none; transform: rotate(var(--r, 0deg)); transition: transform .15s; }
.st-sticker:hover { transform: rotate(0deg) translateY(-4px); }
.st-sticker-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--ink); display: grid; place-items: center; font-family: var(--emoji); font-size: 1.8rem; }
.st-sticker b { font-family: var(--font-d); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.st-sticker small { font-weight: 700; font-size: .8rem; }
.st-journal { background: #FFE7A8; border: var(--bw) solid var(--ink); border-radius: 32px; box-shadow: var(--sh-lg); padding: 30px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; align-items: center; }
.st-journal-intro { display: flex; flex-direction: column; gap: 10px; }
.st-journal-intro h2 { font-size: 2.1rem; line-height: 1.05; margin: 0; }
.st-journal-intro p { margin: 0; }
.st-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.st-note { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 16px 18px; transform: rotate(var(--r, 0deg)); display: grid; gap: 6px; }
.st-note:nth-child(3n+2) { background: #DDF3EC; } .st-note:nth-child(3n) { background: #ECE8FF; }
.st-note b { font-weight: 600; line-height: 1.4; }
.st-note span { font-size: .88rem; }
.st-notes-empty .st-note { border-style: dashed; background: rgba(255, 255, 255, .6); }
.theme-sticker .st-about, .theme-sticker .about-strip { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--sh); margin: 0; }
.theme-sticker .about-strip p { color: var(--ink-2); }

/* ---------- search ---------- */
.st-search-top { display: flex; flex-direction: column; gap: 22px; }
.st-results { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 36px; align-items: start; }
.st-filters { padding: 22px; box-shadow: 5px 5px 0 var(--ink); position: sticky; top: 104px; }
.st-filters-body { display: flex; flex-direction: column; gap: 20px; }
.st-filter-toggle { display: none; }
.st-filters fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-filters legend { font-family: var(--font-d); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; padding: 0; }
.st-check { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 32px; cursor: pointer; }
.st-check input { width: 22px; height: 22px; accent-color: var(--ink); flex: none; }
.st-check em { margin-left: auto; font-style: normal; font-weight: 700; }
.st-sep { padding-top: 14px; border-top: 3px dashed #E9DCC0; }
.st-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.st-pills label { position: relative; cursor: pointer; }
.st-pills input { position: absolute; opacity: 0; }
.st-pills span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); font-weight: 700; font-size: .92rem; }
.st-pills input:checked + span { background: #FFC24B; }
.st-pills input:focus-visible + span { outline: 3px solid #0E6F7C; outline-offset: 2px; }
.st-sort { display: grid; gap: 6px; font-weight: 700; }
.st-sort select { min-height: 46px; border: var(--bw) solid var(--ink); border-radius: 14px; background: var(--paper); padding: 0 10px; font: inherit; font-weight: 600; color: var(--ink); }
.st-results-main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.st-subject-hits { display: flex; flex-wrap: wrap; gap: 14px; }
.st-subject-hits a { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 16px 0 8px; border: var(--bw) solid var(--ink); border-radius: 18px; background: var(--c); box-shadow: 3px 3px 0 var(--ink); text-decoration: none; transform: rotate(var(--r, 0deg)); }
.st-subject-hits a > span { width: 40px; height: 40px; border-radius: 12px; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--emoji); font-size: 1.2rem; }
.st-subject-hits b { font-family: var(--font-d); font-weight: 700; }
.st-subject-hits small { display: block; font-weight: 600; font-size: .78rem; }
.st-best { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); padding: 0; overflow: hidden; box-shadow: 7px 7px 0 var(--ink); }
.st-best-art { position: relative; display: grid; place-items: center; min-height: 260px; background: var(--c); border-right: var(--bw) solid var(--ink); text-decoration: none; }
.st-best-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-tag-float { position: absolute; left: 14px; top: 14px; background: var(--paper); transform: rotate(-3deg); }
.st-best-body { padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.st-best-body h2 { font-size: 2rem; line-height: 1.05; margin: 0; }
.st-best-body p { margin: 0; line-height: 1.5; }
.st-sub { font-family: var(--font-d); font-weight: 600; font-size: 1.15rem; }
.st-best-body .st-chips > * { background: #FFF8EA; }
.st-best-body .st-row { margin-top: auto; }
.st-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.st-tryagain { border: var(--bw) dashed var(--ink); border-radius: 24px; background: var(--paper); padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.st-tryagain b { font-family: var(--font-d); font-size: 1.2rem; }
.st-tryagain p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-tryagain a { padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: #FFF8EA; font-weight: 600; text-decoration: none; }

/* ---------- game page ---------- */
.st-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; font-weight: 700; }
.st-crumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; }
.st-crumbs a { display: inline-block; padding: 5px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); text-decoration: none; }
.st-crumbs [aria-current] { padding: 5px 4px; }
.st-game-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.st-game-art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 11; border: var(--bw) solid var(--ink); border-radius: 34px; box-shadow: 8px 8px 0 var(--ink); background: var(--c); overflow: hidden; transform: rotate(-1deg); text-decoration: none; }
.st-game-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-play { position: absolute; width: 104px; height: 104px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); display: grid; place-items: center; color: var(--ink); transition: transform .15s; }
.st-play svg { margin-left: 6px; }
.st-game-art:hover .st-play { transform: scale(1.06) rotate(-4deg); }
.st-game-info { display: flex; flex-direction: column; gap: 16px; }
.st-game-info h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; margin: 0; }
.st-sub-sticker { margin: 0; }
.st-sub-sticker span { background: #7ACB8A; font-family: var(--font-d); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.45rem); padding: 2px 12px; transform: rotate(-1.5deg); }
.st-lead { margin: 0; font-size: 1.15rem; line-height: 1.55; }
.st-trail-card { display: flex; flex-direction: column; gap: 22px; }
.st-trail-card .st-head h2 { font-size: 2rem; }
.st-trail { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
.st-trail::before { content: ""; position: absolute; left: 50px; right: 50px; top: 44px; border-top: 4px dashed var(--ink); }
.st-trail li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.st-planet { width: 86px; height: 86px; margin-top: 4px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--paper); box-shadow: var(--sh); display: grid; place-items: center; font-family: var(--font-d); font-weight: 700; font-size: 1.7rem; transform: rotate(var(--r, 0deg)); }
.st-trail .is-done .st-planet { background: #7ACB8A; }
.st-trail .is-next .st-planet { background: #FFC24B; width: 98px; height: 98px; margin-top: -2px; }
.st-trail .is-quiz .st-planet { background: #A99AF0; }
.st-trail b { font-family: var(--font-d); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.st-trail em { font-style: normal; font-weight: 700; font-size: .82rem; padding: 2px 10px; border-radius: 999px; background: #FFF8EA; }
.st-trail .is-done em { background: #DDF3EC; } .st-trail .is-next em { background: #FFE7A8; }
.st-game-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.st-game-main h2 { font-size: 2rem; margin: 30px 0 14px; }
.st-game-main h2:first-child { margin-top: 0; }
.st-learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.st-learn li { position: relative; padding: 14px 16px 14px 50px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; font-weight: 600; line-height: 1.4; }
.st-learn li::before { content: "✓"; position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: #7ACB8A; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.st-prose { font-size: 1.08rem; line-height: 1.6; max-width: 68ch; }
.st-faqs { display: grid; gap: 12px; }
.st-faqs details { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink); padding: 0 18px; }
.st-faqs summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none; }
.st-faqs summary::-webkit-details-marker { display: none; }
.st-faqs summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #FFC24B; display: grid; place-items: center; font-weight: 800; }
.st-faqs details[open] summary::after { content: "–"; }
.st-faqs p { margin: 0 0 16px; line-height: 1.55; }
.st-game-side { display: flex; flex-direction: column; gap: 24px; }
.st-journal-mini { background: #FFE7A8; display: grid; gap: 14px; }
.st-journal-mini h2, .st-grownups h2 { font-size: 1.5rem; margin: 0; }
.st-journal-mini p { margin: 0; font-weight: 600; }
.st-grownups { box-shadow: none; }
.st-grownups dl { margin: 12px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; }
.st-grownups dt { font-weight: 700; } .st-grownups dd { margin: 0; }
.st-grownups p { margin: 14px 0 0; }

body.theme-sticker[data-page="search"] .st-top .st-search { visibility: hidden; }
.st-game-art.no-img .st-play { right: 22px; bottom: 22px; width: 84px; height: 84px; }
.st-game-body.is-solo { grid-template-columns: 1fr; }
.st-game-body.is-solo .st-game-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- classic pieces, restyled ---------- */
.theme-sticker .stage { padding-top: 28px; padding-bottom: 36px; max-width: 1320px; }
.theme-sticker .land { background: transparent; margin-top: 0; padding-top: 0; }
.theme-sticker .land::before { display: none; }
.theme-sticker .land > * { max-width: 1320px; }
.theme-sticker .page-title { text-shadow: none; }
.theme-sticker .page-lead { color: var(--ink-2); }
.theme-sticker .card { border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.theme-sticker .card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.theme-sticker .card-art { border-bottom: var(--bw) solid var(--ink); background: var(--c); }
.theme-sticker .card-emoji { filter: none; }
.theme-sticker .card-art:not(.has-img) .card-emoji { width: 84px; height: 84px; border-radius: 50%; background: var(--paper); border: var(--bw) solid var(--ink); display: grid; place-items: center; font-size: 2.6rem; }
.theme-sticker .card-art.has-img .card-emoji { border: 2px solid var(--ink); box-shadow: none; }
.theme-sticker .card-title { font-size: 1.25rem; line-height: 1.1; }
.theme-sticker .card-sum { color: var(--ink-2); }
.theme-sticker .card-meta span { border: 2px solid var(--ink); background: #FFF8EA; font-weight: 700; }
.theme-sticker .card-fav { border: 2px solid var(--ink); background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.theme-sticker .card-prog { border: 2px solid var(--ink); box-shadow: none; transform: rotate(3deg); }
.theme-sticker .rail-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.theme-sticker .rail-track { padding: 8px 10px 20px 6px; }
.theme-sticker .rail-nav button { border: var(--bw) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.theme-sticker .see-all { font-weight: 700; color: var(--ink); }
.theme-sticker .grid { gap: 24px; }
.theme-sticker .btn { border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; }
.theme-sticker .btn-play { background: #FFC24B; box-shadow: 5px 5px 0 var(--ink); }
.theme-sticker .btn-play:active { box-shadow: 1px 1px 0 var(--ink); transform: translate(3px, 3px); }
.theme-sticker .btn-soft { background: var(--paper); }
.theme-sticker .chip, .theme-sticker .sort { border: 2px solid var(--ink); box-shadow: none; background: var(--paper); }
.theme-sticker .chip.on, .theme-sticker .sort a.on { background: #FFC24B; color: var(--ink); }
.theme-sticker .crumbs a { background: var(--paper); border: 2px solid var(--ink); font-weight: 700; }
.theme-sticker .cat-badge { border: var(--bw) solid var(--ink); box-shadow: 0 0 0 10px var(--c), 0 0 0 13px var(--ink), 6px 6px 0 13px var(--ink); }
.theme-sticker .subject-chips a, .theme-sticker .tabs, .theme-sticker .who button, .theme-sticker .me-stats li { background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); backdrop-filter: none; }
.theme-sticker .subject-chips a.on, .theme-sticker .who button.on, .theme-sticker .tabs button[aria-selected="true"] { background: #FFC24B; color: var(--ink); }
.theme-sticker .tabs button[aria-selected="true"] { box-shadow: none; }
.theme-sticker .world-card { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--sh); backdrop-filter: none; }
.theme-sticker .world-card:nth-child(odd) { transform: rotate(-.6deg); } .theme-sticker .world-card:nth-child(even) { transform: rotate(.6deg); }
.theme-sticker .world-emoji { border: var(--bw) solid var(--ink); box-shadow: none; background: var(--c); }
.theme-sticker .subjects a { border: 2px solid var(--ink); }
.theme-sticker .facts li, .theme-sticker .facts a { background: var(--paper); border: 2px solid var(--ink); backdrop-filter: none; font-weight: 700; }
.theme-sticker .learn li, .theme-sticker .faqs details, .theme-sticker .side-card, .theme-sticker .page-body, .theme-sticker .panel-card, .theme-sticker .prog, .theme-sticker .form-card, .theme-sticker .join-card { border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.theme-sticker .prog { border-top-width: 8px; border-top-color: var(--c); }
.theme-sticker .bar { border: 2px solid var(--ink); background: var(--paper); }
.theme-sticker .bar i { background: #7ACB8A; }
.theme-sticker .state { border: 2px solid var(--ink); }
.theme-sticker .me-av { border: var(--bw) solid var(--ink); box-shadow: 0 0 0 8px #A99AF0, 0 0 0 11px var(--ink); }
.theme-sticker .stack input:not([type=checkbox]):not([type=radio]), .theme-sticker .player-row input:not([type=radio]) { border: var(--bw) solid var(--ink); background: var(--paper); }
.theme-sticker .avatars span[aria-hidden] { border: 2px solid var(--ink); background: var(--paper); }
.theme-sticker .avatars input:checked + span { background: #FFC24B; border-color: var(--ink); }
.theme-sticker .form-err, .theme-sticker .form-ok { border: 2px solid var(--ink); }
.theme-sticker .empty h2 { font-size: 1.8rem; }

/* footer, tab bar, player, toast */
.theme-sticker .foot { background: transparent; border-top: 3px dashed #E9DCC0; }
.theme-sticker .foot nav a { font-weight: 700; }
.theme-sticker .pl-bar { background: #FFF8EA; border-bottom: var(--bw) solid var(--ink); color: var(--ink); }
.theme-sticker .pl-btn { background: var(--paper); color: var(--ink); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.theme-sticker .pl-btn:hover { background: #FFF1C9; }
.theme-sticker .pl-fav[aria-pressed="true"] { color: #E0355B; }
.theme-sticker .toast { background: var(--paper); color: var(--ink); border: var(--bw) solid var(--ink); box-shadow: var(--sh); }
.theme-sticker .preview-bar { background: #20212B; color: #FFF8EA; text-align: center; padding: 10px 16px; font-weight: 600; }
.theme-sticker .preview-bar a { color: #FFC24B; }

/* ---------- classic home layout, Sticker Book style ---------- */
.theme-sticker .stage-home { padding-top: 36px; padding-bottom: 20px; }
.theme-sticker .hero-pip { filter: none; }
.theme-sticker .hero-pip .pip { background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: var(--sh-lg); padding: 10px; transform: rotate(-4deg); }
.theme-sticker .hero-talk h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1; }
.theme-sticker .hero-talk > p { color: var(--ink-2); font-weight: 500; }
.theme-sticker .bigsearch { border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); }
.theme-sticker .bigsearch:focus-within { box-shadow: 5px 5px 0 var(--ink), 0 0 0 4px #7ACB8A; }
.theme-sticker .bigsearch button { background: #7ACB8A; color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 15px; font-weight: 700; }
.theme-sticker .try a { background: var(--paper); border: 2px solid var(--ink); backdrop-filter: none; font-weight: 600; }
.theme-sticker .try a:nth-child(odd) { transform: rotate(-2deg); } .theme-sticker .try a:nth-child(even) { transform: rotate(1.5deg); }
.theme-sticker .try span { color: var(--ink); font-weight: 700; }
.theme-sticker .portal-ring { background: var(--c); border: var(--bw) solid var(--ink); box-shadow: var(--sh); padding: 8px; }
.theme-sticker .portal-ring span { border: var(--bw) solid var(--ink); }
.theme-sticker .portal:nth-child(odd) .portal-ring { transform: rotate(-4deg); } .theme-sticker .portal:nth-child(even) .portal-ring { transform: rotate(3deg); }
.theme-sticker .portal:hover .portal-ring, .theme-sticker .portal:focus-visible .portal-ring { transform: translateY(-6px) rotate(-6deg); }
.theme-sticker .portal b { font-family: var(--font-d); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; margin-top: 12px; }
.theme-sticker .portal small { font-weight: 700; color: var(--ink); margin-top: 4px; }
.theme-sticker .stage-home + .land { padding-top: 20px; }

/* ---------- animated hero scene (both home layouts) ---------- */
html.theme-sticker, body.theme-sticker { overflow-x: clip; }
.st-scene-host { position: relative; }
.st-scene-host > .st-hero { position: relative; z-index: 1; }
.theme-sticker .stage-home { position: relative; }
.theme-sticker .stage-home > :not(.st-scene) { position: relative; z-index: 1; }
.st-scene { position: absolute; z-index: 0; pointer-events: none; left: 50%; width: 100vw; transform: translateX(-50%); overflow: hidden;
  background: linear-gradient(180deg, #CDEEF2 0%, #E2F5F0 58%, rgba(255, 248, 234, 0) 100%); }
.st-scene-host > .st-scene { top: -18px; bottom: -48px; }
.theme-sticker .stage-home > .st-scene { top: 0; bottom: -10px; }
.st-scene svg { display: block; width: 100%; height: 100%; overflow: visible; }
.st-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 120px !important; }
.st-sun { position: absolute; right: 5%; top: 7%; width: 92px; height: 92px; }
.st-sun-rays { transform-box: fill-box; transform-origin: center; animation: st-spin 60s linear infinite; }
.st-cloud { position: absolute; left: 0; width: 120px; height: 60px; animation: st-drift 90s linear infinite; }
.st-cloud.c1 { top: 9%; animation-delay: -25s; }
.st-cloud.c2 { top: 34%; width: 90px; height: 45px; animation-duration: 120s; animation-delay: -80s; }
.st-plane { position: absolute; left: 0; top: 20%; width: 62px; height: 40px; animation: st-plane 40s linear infinite; animation-delay: -12s; }
.st-dd { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); animation: st-float 7s ease-in-out infinite; animation-delay: var(--d); }
.dd-flame { transform-box: fill-box; transform-origin: top; animation: st-flicker .45s ease-in-out infinite alternate; }
.dd-smoke { transform-box: fill-box; transform-origin: center; animation: st-smoke 3s ease-out infinite; opacity: 0; }
.dd-smoke.s2 { animation-delay: 1.5s; }
.dd-flip { transform-box: fill-box; transform-origin: center; animation: st-flip 5s ease-in-out infinite; }
.dd-wings { transform-box: fill-box; transform-origin: center; animation: st-flap .7s ease-in-out infinite alternate; }
.dd-rays { animation: st-glow 2.4s ease-in-out infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-drift { from { transform: translateX(-20vw); } to { transform: translateX(110vw); } }
@keyframes st-plane { 0% { transform: translate(-12vw, 18px) rotate(-6deg); } 50% { transform: translate(50vw, -22px) rotate(5deg); } 100% { transform: translate(112vw, 12px) rotate(-6deg); } }
@keyframes st-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes st-flicker { from { transform: scaleY(.55); } to { transform: scaleY(1.1); } }
@keyframes st-smoke { 0% { opacity: 0; transform: translateY(6px) scale(.5); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px) scale(1.25); } }
@keyframes st-flip { 0%, 42% { transform: scaleX(1); } 50% { transform: scaleX(.08); } 58%, 100% { transform: scaleX(1); } }
@keyframes st-flap { from { transform: scaleX(1); } to { transform: scaleX(.55); } }
@keyframes st-glow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* the map comes alive: rolling waves, a sailing boat, a drifting cloud, bobbing islands */
.st-waves { position: absolute; top: 0; bottom: 0; left: 0; width: 200%; opacity: .55; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='44'%3E%3Cpath d='M0 22q15-9 30 0t30 0 30 0 30 0' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 120px 44px; animation: st-waves 16s linear infinite; }
@keyframes st-waves { to { transform: translateX(-50%); } }
.st-map .st-island { z-index: 2; animation: st-bob 5s ease-in-out infinite; }
.st-map .st-island:nth-of-type(2n) { animation-delay: -1.7s; } .st-map .st-island:nth-of-type(3n) { animation-delay: -3.1s; }
@keyframes st-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.st-boat { position: absolute; z-index: 1; width: 48px; height: 40px; margin: -20px 0 0 -24px; animation: st-sail 36s ease-in-out infinite alternate; pointer-events: none; }
.st-boat svg { width: 100%; height: 100%; display: block; animation: st-rock 3s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes st-sail { 0% { left: 14%; top: 82%; } 22% { left: 24%; top: 62%; } 45% { left: 44%; top: 50%; } 70% { left: 60%; top: 42%; } 100% { left: 76%; top: 28%; } }
@keyframes st-rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.st-map-cloud { position: absolute; z-index: 3; top: 4%; left: 0; width: 88px; height: 44px; animation: st-mapcloud 48s linear infinite; animation-delay: -18s; pointer-events: none; }
.st-map-cloud svg { width: 100%; height: 100%; display: block; }
@keyframes st-mapcloud { from { left: -20%; } to { left: 110%; } }
.st-map .st-map-label, .st-map .st-map-go { z-index: 4; }

/* paused when off screen or when the tab is hidden */
.is-paused, .is-paused * { animation-play-state: paused !important; }

@media (max-width: 760px) {
  .st-scene-host > .st-scene { top: -12px; bottom: -36px; }
  .st-hills { height: 70px !important; }
  .st-sun { width: 60px; height: 60px; right: 4%; top: 3%; }
  .dd-dino, .dd-notes, .dd-abc, .dd-maths, .dd-bulb, .dd-butterfly { display: none; }
  .st-dd { width: calc(var(--s) * .7); height: calc(var(--s) * .7); }
  .dd-planet { left: 2%; top: 30%; }
  .dd-volcano { left: 80%; top: 22%; }
  .st-cloud.c2 { display: none; }
  .st-boat { width: 38px; height: 32px; }
}

/* keep the heading and search clear: layout-specific doodle positions */
.st-scene-host .st-plane, .st-scene-host .dd-bulb, .st-scene-host .st-cloud.c2 { display: none; }
.st-scene-host .st-cloud.c1 { top: 0; }
.st-scene-host .st-sun { right: 1.2%; top: 1%; }
.st-scene-host .dd-planet { left: 0.2%; top: 20%; }
.st-scene-host .dd-coin { left: 0.8%; top: 58%; }
.st-scene-host .dd-maths { left: 96.4%; top: 60%; }
.st-scene-host .dd-abc { left: 96.6%; top: 22%; }
.st-scene-host .dd-notes { left: 96.3%; top: 40%; }
.st-scene-host .dd-rocket { left: 95.8%; top: 76%; }
.st-scene-host .dd-dino { left: 35%; top: auto; bottom: 4px; }
.st-scene-host .dd-butterfly { left: 17%; top: auto; bottom: 16px; }
.st-scene-host .dd-volcano { left: 58%; top: auto; bottom: -2px; width: 60px; height: 60px; }
.theme-sticker .stage-home > .st-scene .st-plane { top: 3%; }
.theme-sticker .stage-home > .st-scene .st-cloud.c1 { top: 2%; }
.theme-sticker .stage-home > .st-scene .st-cloud.c2 { top: 64%; }
.theme-sticker .stage-home > .st-scene .dd-notes { left: 66%; top: 58%; }
.theme-sticker .stage-home > .st-scene .dd-dino { left: 70%; top: 4%; }
@media (max-width: 760px) {
  .st-plane, .st-cloud, .dd-volcano, .dd-rocket { display: none; }
  .st-scene-host .st-sun, .st-scene-host .st-dd { display: none; }
  .theme-sticker .stage-home > .st-scene .dd-planet { left: 4%; top: 6%; }
  .theme-sticker .stage-home > .st-scene .dd-coin { left: 86%; top: 70%; }
  .theme-sticker .stage-home > .st-scene .st-sun { right: 6%; top: 3%; }
}

/* ---------- phones and tablets ---------- */
@media (max-width: 1100px) {
  .st-stickers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-hero, .st-game-hero, .st-game-body { grid-template-columns: 1fr; }
  .st-journal { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .st-page { gap: 32px; padding-top: 12px; }
  .st-top { gap: 10px; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: 10px; }
  .st-nav, .st-me { display: none; }
  .st-logo span { font-size: 1.2rem; }
  .st-logo .pip { width: 32px; height: 32px; }
  .st-search { flex: 1; min-height: 46px; padding: 0 10px; }
  .st-search input { font-size: 16px; }
  .st-h1 { font-size: 2.25rem; }
  .st-bigsearch { min-height: 58px; padding-left: 14px; }
  .st-bigsearch input { font-size: 16px; }
  .st-bigsearch button { padding: 0 16px; }
  .st-continue { grid-template-columns: 1fr; }
  .st-continue-art { min-height: 120px; }
  .st-map { min-height: 300px; transform: none; }
  .st-land { width: 76px; height: 58px; }
  .st-land span { width: 36px; height: 36px; font-size: 1.1rem; }
  .st-island b { font-size: .8rem; padding: 0 8px; }
  .st-island:nth-of-type(n+6) { display: none; }
  .st-map-label { max-width: 200px; padding: 8px 12px; }
  .st-map-label span { display: none; }
  .st-stickers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .st-sticker { min-height: 108px; border-radius: 20px; }
  .st-sticker-ico { width: 44px; height: 44px; font-size: 1.3rem; }
  .st-sticker b { font-size: .9rem; }
  .st-sticker small { display: none; }
  .st-notes { grid-template-columns: 1fr; }
  .st-journal { padding: 22px; }
  .st-results { grid-template-columns: 1fr; gap: 20px; }
  .st-filters { position: static; padding: 8px; }
  .st-filter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-family: var(--font-d); font-weight: 700; font-size: 1.15rem; color: var(--ink); cursor: pointer; }
  .st-filters .st-filters-body { display: none; padding: 8px 10px 14px; }
  .st-filters.open .st-filters-body { display: flex; }
  .st-filters.open .st-filter-toggle svg { transform: rotate(180deg); }
  .st-best { grid-template-columns: 1fr; }
  .st-best-art { min-height: 170px; border-right: 0; border-bottom: var(--bw) solid var(--ink); }
  .st-best-body { padding: 18px; }
  .st-best-body h2 { font-size: 1.5rem; }
  .st-game-hero { gap: 22px; }
  .st-game-art { border-radius: 24px; transform: none; }
  .st-play { width: 76px; height: 76px; }
  .st-trail { grid-template-columns: 1fr; gap: 10px; }
  .st-trail::before { left: 26px; right: auto; top: 20px; bottom: 20px; border-top: 0; border-left: 4px dashed var(--ink); }
  .st-trail li { flex-direction: row; text-align: left; gap: 12px; }
  .st-planet, .st-trail .is-next .st-planet { width: 56px; height: 56px; margin: 0; font-size: 1.2rem; flex: none; }
  .st-trail em { margin-left: auto; }
  .st-learn { grid-template-columns: 1fr; }
  .theme-sticker .tabbar { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: var(--sh); backdrop-filter: none; }
  .theme-sticker .tabbar a[aria-current="page"] { background: #FFC24B; }
}
@media (prefers-reduced-motion: reduce) {
  .st-sticker, .st-note, .st-map, .st-game-art, .st-planet, .st-logo, .st-h1 mark { transform: none !important; }
}
