/* denise.click — sticker-sheet world. Thick plum outlines, candy pastels, one
   rounded typeface for the interface and a handwritten one for the notes. */

:root {
  --ink: #3B2A4A;
  --paper: #FFF9F2;
  --paper-2: #FFF1E2;
  --berry: #FF6B9A;
  --berry-deep: #E04C7C;
  --butter: #FFD66B;
  --mint: #9EE2B8;
  --lilac: #C9B6F2;
  --sky-blue: #BFD0FF;

  --sky-top: #BFD0FF;
  --sky-bottom: #FFE3EE;
  --hill-back: #B9ECC9;
  --hill-front: #7FD39E;
  --grass-stroke: #4FAE79;
  --leaves: #6FCB95;
  --soil: #B98A6B;
  --cloud: #FFFFFF;
  --sun: #FFD66B;

  --radius: 18px;
  --shadow: 0 6px 0 0 var(--ink);
  --font-ui: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-hand: "Gaegu", "Comic Sans MS", cursive;
  --dock-h: 176px;
}

.season-winter {
  --sky-top: #D9E6FF; --sky-bottom: #F4F0FF;
  --hill-back: #F1F5FF; --hill-front: #FFFFFF; --grass-stroke: #B8C6E8;
  --leaves: #DCEBFF; --soil: #D8CFE8; --sun: #FFF1C2;
}
.season-autumn {
  --sky-top: #FFD9B5; --sky-bottom: #FFF0E0;
  --hill-back: #E8C98C; --hill-front: #C9A45C; --grass-stroke: #9A7735;
  --leaves: #F08A4B; --soil: #9C6A4A; --sun: #FFB85C;
}
.season-spring {
  --sky-top: #CFE8FF; --sky-bottom: #FFF1F7;
  --hill-back: #C8F2D6; --hill-front: #8FE0AC; --grass-stroke: #56B57F;
  --leaves: #F7B6D2; --sun: #FFE48A;
}
.night.season-winter { --hill-back: #B9C4E8; --hill-front: #D6DEF5; --grass-stroke: #8A98C4; --leaves: #A9B8DC; --soil: #9A93B8; }
.night {
  --sky-top: #2A2A5E; --sky-bottom: #5C4A8E;
  --hill-back: #3E6B6A; --hill-front: #2F5C57; --grass-stroke: #234842;
  --leaves: #3C7A68; --soil: #5B4A4A; --cloud: #8A86B8; --sun: #FFF4C9;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--sky-bottom);
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--berry-deep); outline-offset: 3px; }

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sky-top);
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute; z-index: 5;
  top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 14px 0;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.site-name {
  margin: 0; font-size: 20px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 14px; box-shadow: 0 3px 0 0 var(--ink);
}
.site-name span { font-weight: 400; opacity: .7; }
.hearts {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 12px 4px 10px; font-weight: 600; font-size: 17px; box-shadow: 0 3px 0 0 var(--ink);
}
.hearts-icon { color: var(--berry); font-size: 20px; line-height: 1; }
.hearts.bump .hearts-icon { animation: heartbump .35s ease-out; }
@keyframes heartbump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 3px 0 0 var(--ink);
  font-weight: 700; font-size: 18px;
}
.icon-btn:active, .tab:active, .chip:active, .small-btn:active, .big-btn:active, .jar-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }

/* ---------- stage ---------- */
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; user-select: none; -webkit-user-select: none; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }
.scene * { transform-box: view-box; }

.sky-top { stop-color: var(--sky-top); }
.sky-bottom { stop-color: var(--sky-bottom); }
.pat { fill: var(--pat, #fff); }

.stars { fill: #FFF4C9; opacity: 0; transition: opacity .6s; }
.night .stars { opacity: 1; animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }
.sun-body { fill: var(--sun); stroke: var(--ink); stroke-width: 3; }
.moon { display: none; }
.moon-bite { fill: var(--sky-top); }
.night .sun { display: none; }
.night .moon { display: block; }

.cloud ellipse { fill: var(--cloud); stroke: var(--ink); stroke-width: 3; }
.cloud ellipse:not(:first-child) { stroke: none; }
.cloud ellipse:first-child { stroke: none; }
.cloud { filter: drop-shadow(0 3px 0 rgba(59,42,74,.25)); }
.cloud-a { animation: drift 46s linear infinite; }
.cloud-b { animation: drift 60s linear infinite reverse; }
.cloud-c { animation: drift 54s linear infinite; }
@keyframes drift { from { translate: 0 0; } 50% { translate: 24px 2px; } to { translate: 0 0; } }

.hill { stroke: var(--ink); stroke-width: 3; }
.hill-back { fill: var(--hill-back); }
.hill-front { fill: var(--hill-front); stroke: none; }
.hill-stroke { stroke: var(--ink); stroke-width: 3; }
.grass-tufts path { fill: none; stroke: var(--grass-stroke); stroke-width: 3; stroke-linecap: round; }

.cottage .wall { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.cottage .roof { fill: var(--berry); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.cottage .chimney { fill: var(--ink); }
.cottage .door { fill: var(--butter); stroke: var(--ink); stroke-width: 3; }
.cottage .window { fill: #E8F3FF; stroke: var(--ink); stroke-width: 3; }
.night .cottage .window { fill: #FFE8A8; }
.cottage .window-cross { stroke: var(--ink); stroke-width: 2; }
.cottage .window-box { stroke: var(--soil); stroke-width: 5; stroke-linecap: round; }
.cottage .smoke circle { fill: var(--cloud); opacity: .8; animation: puff 4s ease-in-out infinite; }
.cottage .smoke circle:nth-child(2) { animation-delay: -1.3s; }
.cottage .smoke circle:nth-child(3) { animation-delay: -2.6s; }
@keyframes puff { 0% { translate: 0 0; opacity: .8; } 100% { translate: 6px -14px; opacity: 0; } }
.lamp-glow { fill: var(--butter); opacity: 0; }
.lamp-bulb { fill: var(--ink); }
.night .lamp-glow { opacity: .8; }
.night .lamp-bulb { fill: #FFF1C2; }

.tree .trunk { fill: var(--soil); stroke: var(--ink); stroke-width: 3; }
.tree .leaves { fill: var(--leaves); stroke: var(--ink); stroke-width: 3; }
.tree .fruit { fill: var(--berry); }
.season-autumn .tree .fruit, .season-winter .tree .fruit { display: none; }
.tree-shadow { fill: none; stroke: var(--grass-stroke); stroke-width: 3; opacity: .5; }

.flowerbed .soil { fill: var(--soil); stroke: var(--ink); stroke-width: 3; }
.flower { transform-origin: 0 0; transform-box: fill-box; }
.flower .stem { stroke: var(--grass-stroke); stroke-width: 4; stroke-linecap: round; }
.flower circle { stroke: var(--ink); stroke-width: 3; }
.flower-pink { fill: #FF9FBF; }
.flower-yellow { fill: var(--butter); }
.flower-lilac { fill: var(--lilac); }
.flower-eye { fill: var(--ink); stroke: none !important; }
.flower.bloom { animation: bloom 1.2s cubic-bezier(.34,1.56,.64,1); animation-delay: calc(var(--i) * .12s); }
@keyframes bloom { 0% { transform: scale(1); } 50% { transform: scale(1.18) rotate(-4deg); } 100% { transform: scale(1); } }
.season-winter .flower { display: none; }

.bush ellipse { fill: var(--leaves); stroke: var(--ink); stroke-width: 3; }
.season-winter .bush ellipse { fill: var(--hill-back); }

/* decor by season */
.decor { display: none; }
.season-birthday .decor-birthday { display: inline; }
.season-everyday .decor-everyday { display: inline; }
.season-winter .decor-winter { display: inline; }
.season-autumn .decor-autumn { display: inline; }
.season-spring .decor-spring { display: inline; }

.bunting-string { fill: none; stroke: var(--ink); stroke-width: 3; }
.pennant { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.pennant-text { font-family: var(--font-ui); font-weight: 700; font-size: 15px; fill: var(--ink); text-anchor: middle; }
.balloon .string { fill: none; stroke: var(--ink); stroke-width: 2; }
.balloon ellipse { stroke: var(--ink); stroke-width: 3; }
.balloon-pink { fill: var(--berry); }
.balloon-yellow { fill: var(--butter); }
.balloon-lilac { fill: var(--lilac); }
.balloon .knot { fill: var(--ink); }
.balloon .shine { fill: #fff; opacity: .7; stroke: none !important; }
.balloon { animation: bob 3.4s ease-in-out infinite; }
.balloon-b { animation-delay: -1.1s; }
.balloon-c { animation-delay: -2.2s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 3px -10px; } }

.table-leg { fill: var(--soil); stroke: var(--ink); stroke-width: 3; }
.table-top { fill: var(--paper-2); stroke: var(--ink); stroke-width: 3; }
.cake-pink { fill: #FF9FBF; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.frosting { fill: var(--paper); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.candle { fill: var(--lilac); stroke: var(--ink); stroke-width: 2; }
.flame { fill: var(--butter); stroke: #F08A4B; stroke-width: 2; transform-origin: 0 -14px; transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.flame:nth-of-type(2) { animation-delay: -.2s; }
@keyframes flicker { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.9, 1.15) rotate(4deg); } }
.smoke-puff { fill: none; stroke: #9a9a9a; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.blown .flame { display: none; }
.blown .smoke-puff { animation: smokeup 1.8s ease-out forwards; }
@keyframes smokeup { 0% { opacity: .9; translate: 0 0; } 100% { opacity: 0; translate: 2px -18px; } }
.teapot .pot, .teapot .pot-lid { fill: var(--sky-blue); stroke: var(--ink); stroke-width: 3; }
.teapot .spout { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.teapot .steam path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; opacity: .8; animation: smokeup 2.4s ease-out infinite; }

.gift { cursor: pointer; }
.gift.found { display: none; }
.gift-box { fill: var(--berry); stroke: var(--ink); stroke-width: 2.5; }
.gift-box-b { fill: var(--butter); }
.gift-box-c { fill: var(--lilac); }
.gift-ribbon { fill: none; stroke: var(--paper); stroke-width: 2.5; }
.gift-ribbon-bow { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.gift:hover .gift-box, .gift:focus-visible .gift-box { filter: brightness(1.1); }

/* weather particles */
.weather .flake { fill: #fff; stroke: none; opacity: .9; animation: fall linear infinite; }
.weather .leaf { fill: var(--leaves); stroke: var(--ink); stroke-width: 1.5; animation: fall linear infinite; }
.weather .petal { fill: #F7B6D2; stroke: none; opacity: .9; animation: fall linear infinite; }
@keyframes fall { 0% { transform: translate(var(--x), -40px) rotate(0deg); } 100% { transform: translate(calc(var(--x) + 60px), 520px) rotate(300deg); } }

/* ---------- Denise ---------- */
.denise { overflow: visible; cursor: pointer; }
.denise .ink { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.figure { transform-origin: 120px 270px; }
.figure > * { transform-origin: 120px 270px; }

.eye-open, .eye-closed, .eye-happy, .mouth-smile, .mouth-open, .mouth-o, .mouth-flat { display: none; }
.denise .eye-open, .denise .mouth-smile { display: inline; }
.denise.blink .eye-open { display: none; } .denise.blink .eye-closed { display: inline; }
.ex-happy .eye-open { display: none !important; } .ex-happy .eye-happy { display: inline; } .ex-happy .mouth-smile { display: none; } .ex-happy .mouth-open { display: inline; }
.ex-closed .eye-open { display: none !important; } .ex-closed .eye-closed { display: inline; } .ex-closed .mouth-smile { display: none; } .ex-closed .mouth-flat { display: inline; }
.ex-o .mouth-smile { display: none; } .ex-o .mouth-o { display: inline; }
.ex-yum .eye-open { display: none !important; } .ex-yum .eye-happy { display: inline; } .ex-yum .mouth-smile { display: none; } .ex-yum .mouth-open { display: inline; }

.arm-l { transform-origin: 88px 170px; }
.arm-r { transform-origin: 152px 170px; }
.head-group { transform-origin: 120px 160px; }

/* idle */
.figure { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.01, .99); } }

/* poses */
.pose-wave .arm-r { animation: wave .45s ease-in-out 5 alternate; }
@keyframes wave { from { transform: rotate(-150deg); } to { transform: rotate(-190deg); } }

.pose-dance .figure { animation: dancebody .42s ease-in-out infinite alternate; }
.pose-dance .arm-l { animation: armup-l .42s ease-in-out infinite alternate; }
.pose-dance .arm-r { animation: armup-r .42s ease-in-out infinite alternate-reverse; }
@keyframes dancebody { from { transform: translateY(0) rotate(-5deg); } to { transform: translateY(-14px) rotate(5deg); } }
@keyframes armup-l { from { transform: rotate(120deg); } to { transform: rotate(160deg); } }
@keyframes armup-r { from { transform: rotate(-120deg); } to { transform: rotate(-160deg); } }

.pose-spin .figure { animation: spin 1s ease-in-out 2; }
@keyframes spin { 0% { transform: scaleX(1); } 25% { transform: scaleX(0); } 50% { transform: scaleX(-1); } 75% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

.pose-hug .figure { animation: hugpulse 1.1s ease-in-out 2; }
.pose-hug .arm-l { animation: hug-l 1.1s ease-in-out 2; }
.pose-hug .arm-r { animation: hug-r 1.1s ease-in-out 2; }
@keyframes hugpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes hug-l { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(60deg); } }
@keyframes hug-r { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-60deg); } }

.pose-water .arm-r { animation: pour 1.5s ease-in-out 2; }
.pose-water .figure { animation: lean 1.5s ease-in-out 2; }
@keyframes pour { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-80deg); } }
@keyframes lean { 0%, 100% { transform: scaleX(-1) rotate(0); } 50% { transform: scaleX(-1) rotate(6deg); } }

.pose-read .arm-l { animation: hold-l 3.4s ease-in-out 1; }
.pose-read .arm-r { animation: hold-r 3.4s ease-in-out 1; }
.pose-read .head-group { animation: nod 1.7s ease-in-out 2; }
@keyframes hold-l { 0%, 100% { transform: rotate(0); } 15%, 85% { transform: rotate(70deg); } }
@keyframes hold-r { 0%, 100% { transform: rotate(0); } 15%, 85% { transform: rotate(-70deg); } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(5deg); } }

.pose-sip .arm-r { animation: sip 1.5s ease-in-out 2; }
@keyframes sip { 0%, 100% { transform: rotate(0); } 40%, 70% { transform: rotate(-125deg); } }

.pose-eat .arm-r { animation: eat .75s ease-in-out 4; }
@keyframes eat { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-125deg); } }

.pose-nap .figure { animation: naplean 4s ease-in-out 1; }
@keyframes naplean { 0%, 100% { transform: rotate(0); } 20%, 80% { transform: rotate(8deg) translateY(4px); } }

.pose-blow .head-group { animation: blowlean 2.6s ease-in-out 1; }
@keyframes blowlean { 0%, 100% { transform: rotate(0) translateX(0); } 40%, 70% { transform: rotate(-4deg) translateX(10px); } }

.pose-throw .arm-r { animation: throw 1.2s ease-in-out 2; }
@keyframes throw { 0% { transform: rotate(0); } 40% { transform: rotate(-200deg); } 70% { transform: rotate(-40deg); } 100% { transform: rotate(0); } }

.pose-giggle .figure { animation: giggle .5s ease-in-out 2; }
@keyframes giggle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.pose-jump .figure { animation: jump .6s cubic-bezier(.3,1.4,.6,1) 1; }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }
.pose-shy .head-group { animation: shy 1.4s ease-in-out 1; }
@keyframes shy { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(10deg); } }

/* ---------- fx layers ---------- */
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx .heart, .fx .zz, .fx .drop, .fx .spark, .fx .plus {
  position: absolute; transform: translate(-50%, -50%); will-change: transform, opacity;
  font-weight: 700; pointer-events: none;
}
.fx .heart { color: var(--berry); font-size: 26px; animation: floatup 1.3s ease-out forwards; }
.fx .plus { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 1px 8px; font-size: 14px; animation: floatup 1.1s ease-out forwards; }
.fx .zz { color: var(--ink); font-size: 22px; font-family: var(--font-hand); animation: floatup 2s ease-out forwards; }
.fx .drop { width: 8px; height: 10px; background: #7FB7FF; border: 2px solid var(--ink); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: dropfall .7s ease-in forwards; }
.fx .spark { color: var(--butter); font-size: 20px; animation: sparkle .9s ease-out forwards; }
@keyframes floatup { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.6); } 20% { transform: translate(-50%, -70%) scale(1.1); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -220%) scale(1); } }
@keyframes dropfall { 0% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), 60px); } }
@keyframes sparkle { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.3) rotate(0); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(1.2) rotate(90deg); } }

.bubble {
  position: absolute; z-index: 3; max-width: 220px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 16px;
  padding: 8px 12px; font-size: 16px; font-weight: 500; line-height: 1.2;
  transform: translate(-50%, -100%) scale(.6); opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -13px;
  width: 16px; height: 16px; background: var(--paper); border: 3px solid var(--ink); border-top: none; border-left: none;
  transform: translateX(-50%) rotate(45deg);
}
.bubble.show { transform: translate(-50%, -100%) scale(1); opacity: 1; }

.toast {
  position: absolute; z-index: 4; left: 50%; bottom: 14px; max-width: min(92%, 420px);
  background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 0 var(--ink);
  padding: 10px 16px; font-size: 16px; line-height: 1.25; text-align: center;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.season-title {
  position: absolute; z-index: 2; left: 50%; top: calc(62px + env(safe-area-inset-top));
  transform: translateX(-50%); font-family: var(--font-hand); font-weight: 700; font-size: 26px;
  color: var(--ink); white-space: nowrap; pointer-events: none; opacity: .85;
  text-shadow: 0 2px 0 rgba(255,255,255,.6);
}
.season-birthday .season-title { display: none; }
.night .season-title { color: var(--paper); text-shadow: 0 2px 0 rgba(0,0,0,.3); }

/* ---------- dock ---------- */
.dock {
  position: relative; z-index: 6;
  background: var(--paper);
  border-top: 3px solid var(--ink);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  min-height: var(--dock-h);
}
.tabs { display: flex; gap: 8px; }
.tab {
  flex: 1; padding: 9px 6px; border-radius: 999px; border: 3px solid var(--ink);
  background: var(--paper-2); font-weight: 600; font-size: 15px; box-shadow: 0 3px 0 0 var(--ink);
  transition: background .15s;
}
.tab.is-active { background: var(--butter); }
.tray { display: flex; flex-direction: column; gap: 8px; min-height: 96px; }
.tray[hidden] { display: none; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  border: none; background: transparent; padding: 4px 10px; border-radius: 999px;
  font-weight: 500; font-size: 14px; color: var(--ink); opacity: .65; white-space: nowrap;
}
.subtab.is-active { opacity: 1; background: var(--lilac); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 2px 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  border: 3px solid var(--ink); border-radius: 14px; background: #fff;
  padding: 8px 12px; font-weight: 500; font-size: 15px; white-space: nowrap;
  box-shadow: 0 3px 0 0 var(--ink);
}
.chip .swatch { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.chip .emoji { font-size: 18px; line-height: 1; }
.chip.is-active { background: var(--mint); }
.chip.is-locked { opacity: .55; }
.chip.is-locked .lock { font-size: 13px; opacity: .9; }
.chip.is-busy { opacity: .5; }

.tray-notes { align-items: center; justify-content: center; gap: 10px; }
.jar-btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 3px solid var(--ink); border-radius: 16px; background: #E8F3FF;
  padding: 8px 18px 8px 12px; font-weight: 600; font-size: 16px; box-shadow: 0 3px 0 0 var(--ink);
}
.notes-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.small-btn {
  border: 3px solid var(--ink); border-radius: 999px; background: var(--paper-2);
  padding: 6px 14px; font-weight: 500; font-size: 14px; box-shadow: 0 3px 0 0 var(--ink);
}
.big-btn {
  border: 3px solid var(--ink); border-radius: 999px; background: var(--berry); color: #fff;
  padding: 12px 28px; font-weight: 700; font-size: 18px; box-shadow: 0 4px 0 0 var(--ink);
  text-shadow: 0 1px 0 rgba(0,0,0,.15);
}

/* ---------- overlays ---------- */
.overlay, .note-overlay {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: rgba(59,42,74,.45); padding: 20px;
}
.overlay[hidden], .note-overlay[hidden] { display: none; }
.card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 0 var(--ink);
  padding: 26px 24px 18px; max-width: 380px; width: 100%; text-align: center;
  animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
.card h2 { margin: 0 0 8px; font-size: 30px; font-weight: 700; line-height: 1.1; }
.card p { margin: 0 0 18px; font-size: 17px; line-height: 1.35; }
.card .fine { margin: 14px 0 0; font-size: 13px; opacity: .6; }
.note {
  background: #FFF8C2; border: 3px solid var(--ink); border-radius: 6px 22px 6px 22px; box-shadow: 0 6px 0 0 var(--ink);
  padding: 28px 26px 18px; max-width: 360px; width: 100%; text-align: center; rotate: -2deg;
  animation: pop .35s cubic-bezier(.34,1.56,.64,1);
}
.note p { margin: 0 0 18px; font-family: var(--font-hand); font-size: 26px; line-height: 1.2; font-weight: 700; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .site-name { font-size: 22px; }
  .dock { padding-left: max(12px, calc(50% - 360px)); padding-right: max(12px, calc(50% - 360px)); }
  .chip { font-size: 16px; }
}
@media (max-height: 520px) {
  :root { --dock-h: 140px; }
  .season-title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-a, .cloud-b, .cloud-c, .balloon, .figure, .stars, .flame, .cottage .smoke circle, .teapot .steam path, .weather * { animation: none !important; }
  .bubble, .toast, .tab { transition: none; }
}
