/* Kidsultancy — one stylesheet. Colours only through the variables below.
   Positions and sizes of scene parts are set from JavaScript (CSSOM); this file gives the look. */

/* Fredoka SemiBold (SIL OFL 1.1, css/fonts/OFL.txt), cut down to the letters of "Koonsy Kidsultancy"
   and the digits; served from this folder, never from outside */
@font-face {
  font-family: "Koonsy";
  font-weight: 600;
  font-display: block;
  src: url("fonts/koonsy.woff2") format("woff2");
}

:root {
  /* approved art proof */
  --wall: #DFF3EE;
  --wall-low: #FBE6D4;
  --rug: #F9CFCB;
  --table: #FFF7EA;
  --lap: #8FD6BC;
  --lap-light: #CDEFE2;
  --floor: #F7DDAE;
  --sun: #F6C56B;
  --sun-dark: #E0A63F;
  --paper: #FFFDF7;
  --ink: #272C48;
  --ink-soft: #5A6080;
  --fur: #9BA6BF;
  --fur-dark: #7C88A6;
  --fur-light: #EEF1F7;
  --mask: #343A5E;
  --suit: #3E6FE0;
  --suit-dark: #2C53B4;
  --tie: #FF6B5E;
  --pink: #F8B4B4;
  --owl: #8C70CE;
  --owl-dark: #6E54AE;
  --cream: #FFF1D6;
  --leaf: #4DB58A;
  --line: #E3E0D4;
  --sky: #BDE6F2;
  /* colleagues */
  --bubble: #BFE6F5;
  --duck: #FFD95C;
  --duck-dark: #F5BC3A;
  --beak: #FF9F45;
  --beak-dark: #EE7F2D;
  --fox: #F78F4F;
  --fox-dark: #D9692F;
  --bear: #C99466;
  --bear-dark: #A97447;
  --rabbit: #F8B3C6;
  --rabbit-dark: #EE8CAA;
  --penguin: #52619B;
  --penguin-dark: #404D82;
  --elephant: #9DC3E2;
  --elephant-dark: #7EA7CB;
  --cat: #B8B2CC;
  --cat-dark: #958DB0;
  --giraffe: #F8CF7E;
  --giraffe-dark: #E39A55;
  /* screens */
  --grass: #BDE3B4;
  --slot: #E4E9F1;
  --night-wall: #3C436F;
  --night-floor: #2E3457;
  --night-sky: #20243F;
  --shade: rgba(39, 44, 72, .12);
  --veil: rgba(39, 44, 72, .6);
  --glass: rgba(255, 255, 255, .6);
  /* seasons (js/art/seasons.js) */
  --blossom: #F7B8D0;
  --blossom-dark: #E98AB0;
  --bark: #B98463;
  --autumn-orange: #F29A4A;
  --autumn-red: #E0664F;
  --autumn-sky: #CFE3EA;
  --cloud-grey: #E4E9EF;
  --winter-sky: #DCEBF5;
  --sky-deep: #7FB8E6;
  --snow: #FFFFFF;
  --snow-ground: #F1F6FA;
  --xmas-red: #E2504A;
  --xmas-green: #3E9C6E;
  --font-title: "Koonsy", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  position: fixed;
  inset: 0;
  color: var(--ink);
  font-family: var(--font);
  background: linear-gradient(var(--wall) 50%, var(--floor) 50%);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: none;
}
/* the strips under the notch and the home bar take the colour of the screen's top and bottom */
body[data-screen="menu"], body[data-screen="home"] { background: linear-gradient(var(--sky) 50%, var(--grass) 50%); }
body[data-screen="stickers"] { background: var(--wall-low); }
body[data-screen="sleep"] { background: linear-gradient(var(--night-wall) 50%, var(--night-floor) 50%); }
body[data-screen="parents"] { background: var(--paper); }

#app {
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  left: env(safe-area-inset-left, 0px);
}
#stage, .scene { position: absolute; inset: 0; }
.scene { overflow: hidden; }
svg { display: block; width: 100%; height: 100%; }
button { font: inherit; color: inherit; }

.room, .room-low, .room-floor, .decor, .spot, .spot-hole, .spot-animal, .spot-shelf, .spot-object,
.bubble, .board, .board-top, .tray, .piece, .menu-sky, .menu-ground, .building, .big-btn, .page,
.sleep-floor, .sleep-shelf, .confetti, .calm-star, .sticker-fly { position: absolute; }

/* ---------- mascot and chrome ---------- */
#mascot { position: absolute; z-index: 4; cursor: pointer; touch-action: none; }
#mascot.is-gliding { transition: left .65s cubic-bezier(.45, 0, .25, 1), top .65s cubic-bezier(.45, 0, .25, 1), width .65s, height .65s; }
/* things that are dragged (js/dragdrop.js) */
.drag-item { position: absolute; touch-action: none; cursor: grab; }
.drag-item.is-held { z-index: 6; cursor: grabbing; }
.drag-item.is-gliding { transition: left .32s ease-out, top .32s ease-out, width .32s ease-out, height .32s ease-out; }
.drag-item.is-locked { cursor: default; }

#fx { position: absolute; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; }

.hold-btn {
  position: absolute;
  top: 10px;
  z-index: 30;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  opacity: .5;
  cursor: pointer;
  touch-action: none;
  transition: opacity .15s, transform .15s;
}
#btn-exit { left: 10px; transform-origin: 0 0; }
#btn-parents { right: 10px; transform-origin: 100% 0; }
/* while held it grows out of its corner into the screen, so a thumb on it does not hide the ring */
.hold-btn.is-holding { opacity: 1; transform: scale(2.4); transition: opacity .15s, transform .35s cubic-bezier(.2, .8, .3, 1.2); }
.hold-btn.is-nudged { animation: hold-nudge .4s ease-in-out; }
@keyframes hold-nudge { 20%, 60% { transform: rotate(-12deg); } 40%, 80% { transform: rotate(12deg); } }
.hold-hint {
  position: absolute;
  z-index: 31;
  max-width: min(260px, 70vw);
  padding: 8px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.hold-hint.is-shown { opacity: 1; transform: none; }
.hold-btn:focus-visible { opacity: 1; outline: 3px solid var(--suit); outline-offset: 2px; }

.gate {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--veil);
}
.gate-sum {
  width: min(100%, 360px);
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: var(--paper);
  text-align: center;
}
.gate-question { margin: 0 0 16px; font-size: 46px; font-weight: 800; letter-spacing: .02em; }
.gate-answers { display: flex; justify-content: center; gap: 12px; }
.gate-answers button {
  flex: 1;
  min-height: 76px;
  border: 0;
  border-radius: 22px;
  background: var(--lap-light);
  font-size: 32px;
  font-weight: 800;
  cursor: pointer;
}
.gate-answers button:focus-visible { outline: 4px solid var(--suit); }

.big-btn {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 30%;
  background: var(--paper);
  box-shadow: 0 8px 0 var(--shade);
  cursor: pointer;
  touch-action: none;
}
.big-btn svg { width: 76%; height: 76%; pointer-events: none; }
.big-btn.round { border-radius: 50%; background: var(--suit); }
.big-btn.round svg { width: 60%; height: 60%; }
.big-btn:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--shade); }
.big-btn:focus-visible { outline: 4px solid var(--suit); outline-offset: 3px; }

/* ---------- effects ---------- */
.confetti { border-radius: 3px; background: var(--tie); will-change: transform; }
.confetti.round { border-radius: 50%; }
.confetti.c1 { background: var(--suit); }
.confetti.c2 { background: var(--sun); }
.confetti.c3 { background: var(--leaf); }
.confetti.c4 { background: var(--owl); }
.confetti.c5 { background: var(--pink); }
.calm-star {
  left: 50%;
  top: 16%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  background: var(--sun);
  clip-path: polygon(50% 2%, 62% 36%, 98% 36%, 69% 58%, 80% 93%, 50% 72%, 20% 93%, 31% 58%, 2% 36%, 38% 36%);
}
.sticker-fly { will-change: transform; }
.bubble { z-index: 3; border: 2px solid #fff; border-radius: 50%; background: var(--glass); pointer-events: none; }

@keyframes wobble {
  20% { transform: rotate(-5deg) scale(1.04); }
  45% { transform: rotate(4deg) scale(1.04); }
  70% { transform: rotate(-2deg); }
}
@keyframes nudge {
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
}
@keyframes squish {
  35% { transform: scale(1.07, .92); }
  70% { transform: scale(.97, 1.04); }
}
@keyframes hop {
  30% { transform: translateY(-20px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

/* ---------- the office room of both games ---------- */
.room { inset: 0; background: var(--wall); }
.room-low { background: var(--wall-low); }
.room-low::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -19px;
  height: 20px;
  background: radial-gradient(circle at 20px 20px, var(--wall-low) 19.5px, transparent 20px) 0 0 / 40px 20px repeat-x;
}
.room-floor { background: var(--floor); border-radius: 26px 26px 0 0; }
.decor { pointer-events: none; }

/* ---------- year 1: peekaboo ---------- */
.spot { --base: .1; --clip: .13; z-index: 1; cursor: pointer; touch-action: none; }
.spot[data-object="laptop"] { --base: .12; --clip: .16; }
.spot[data-object="mug"] { --base: .27; --clip: .31; }
.spot[data-object="plant"] { --base: .34; --clip: .6; }
.spot[data-object="cabinet"] { --base: .04; --clip: .07; }
.spot[data-object="flipchart"] { --base: .03; --clip: .06; }
.spot[data-object="bin"] { --base: .26; --clip: .3; }
.spot[data-object="briefcase"] { --base: .28; --clip: .32; }
.spot[data-object="printer"] { --base: .33; --clip: .38; }
/* the animal waits below the edge of this window and rises into it; the object is drawn in front */
.spot-hole { left: 0; right: 0; top: 0; height: calc((.63 + var(--clip)) / 1.63 * 100%); overflow: hidden; }
.spot-animal {
  left: 19%;
  top: 0;
  width: 62%;
  aspect-ratio: 140 / 150;
  margin-top: calc((var(--base) - .034) * 100%);
  transform: translateY(var(--drop, 400px));
  transition: transform .34s cubic-bezier(.3, 1.35, .5, 1);
}
.spot[data-out="true"] .spot-animal { transform: none; }
.spot-object { left: 0; right: 0; bottom: 0; aspect-ratio: 1; transform-origin: 50% 100%; }
.spot[data-out="true"] .spot-object { animation: squish .36s ease-out; }
.spot-shelf { left: 6%; right: 6%; bottom: -3%; height: 8%; border-radius: 50%; background: var(--shade); }

/* ---------- year 2: shapes ---------- */
.board { z-index: 1; }
.board-top { z-index: 3; pointer-events: none; }
.tray { border-radius: 30px; background: var(--glass); }
.piece { z-index: 2; display: grid; place-items: center; cursor: grab; touch-action: none; }
.piece svg { flex: none; overflow: visible; pointer-events: none; }
.piece[data-placed="true"] { z-index: 1; cursor: default; pointer-events: none; }
.piece.is-held { z-index: 6; cursor: grabbing; }
.piece.is-held svg { transform: scale(1.05); }
.piece.is-gliding { transition: left .32s ease-out, top .32s ease-out, width .32s ease-out, height .32s ease-out; }
.piece.is-gliding svg { transition: width .32s ease-out, height .32s ease-out; }
.trend { stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.y2.is-up .trend { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease-out .1s; }
.y2.is-up .board, .y2.is-up .board-top, .y2.is-up .piece { animation: hop .8s ease-in-out; }

/* ---------- menu: the office building ---------- */
.menu { background: var(--sky); }
.menu-sky { inset: 0; pointer-events: none; }
.menu-sun { position: absolute; right: 22%; top: 3%; width: clamp(54px, 13vmin, 120px); aspect-ratio: 1; pointer-events: auto; cursor: pointer; touch-action: none; animation: sun-hint 8s ease-in-out 3s infinite; }
/* the sun is a button (the next season): a bigger place to tap, and now and then a little wiggle */
.menu-sun::before { content: ""; position: absolute; inset: -18px; }
.menu-sun.is-wiggling { animation: hold-nudge .4s ease-in-out; }
@keyframes sun-hint { 0%, 86%, 100% { transform: none; } 89% { transform: rotate(-12deg) scale(1.08); } 93% { transform: rotate(10deg) scale(1.08); } 96% { transform: none; } }
.menu-cloud { position: absolute; width: clamp(70px, 20vmin, 170px); aspect-ratio: 2; }
.menu-cloud.c1 { left: 5%; top: 9%; }
.menu-cloud.c2 { right: 3%; top: 24%; transform: scale(.72); }
.menu-ground { background: var(--grass); border-radius: 30px 30px 0 0; }
.building { display: flex; flex-direction: column; background: var(--paper); box-shadow: 10px 0 0 var(--shade); }
.roof {
  position: absolute;
  left: -8px;
  right: -8px;
  top: calc(-1 * var(--roof-h, 24px));
  height: var(--roof-h, 24px);
  border-radius: 16px 16px 4px 4px;
  background: var(--tie);
}
.shaft { position: absolute; left: 0; top: 0; bottom: 0; width: var(--lift-w, 60px); background: var(--lap-light); }
.shaft::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; border-radius: 3px; background: var(--lap); }
.floor { position: relative; flex: none; margin-left: var(--lift-w, 60px); cursor: pointer; touch-action: none; }
.building.has-wings { display: grid; grid-template-columns: 1fr var(--lift-w, 60px) 1fr; }
.building.has-wings .shaft { left: 50%; margin-left: calc(var(--lift-w, 60px) / -2); }
.building.has-wings .floor { margin-left: 0; }
.floor-room {
  position: absolute;
  inset: 7px 9px 0 9px;
  overflow: hidden;
  border-radius: 18px 18px 6px 6px;
  background: var(--cream);
}
.floor-window { position: absolute; left: 50%; bottom: -4%; height: 92%; aspect-ratio: 140 / 150; transform: translateX(-50%); }
.floor-lamp { position: absolute; right: 14%; top: 0; width: 26px; height: 15px; border-radius: 0 0 14px 14px; background: var(--sun); }
.floor-lamp::after { content: ""; position: absolute; left: -90%; top: 100%; width: 280%; height: 46px; border-radius: 50%; background: radial-gradient(closest-side, var(--glass), transparent); }
/* the year of the floor, big, on the left of the room */
.floor-num {
  position: absolute;
  left: 5%;
  top: 50%;
  height: 56%;
  max-height: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--suit);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--num-size, 32px);
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.floor[data-built="false"] .floor-num { background: var(--fur-dark); }
.building.has-wings .floor-num { left: 3%; height: 42%; }
.floor[data-built="false"] { cursor: default; }
.floor[data-state="soon"] .floor-room { background: var(--fur); }
.floor[data-state="soon"] .floor-window { opacity: .5; }
.floor[data-built="false"] .floor-lamp { background: var(--fur-dark); }
.floor[data-built="false"] .floor-lamp::after { display: none; }
/* locked: the colleague is there, but the light is off and a key-card lock hangs by the door */
.floor[data-state="locked"] .floor-room { background: var(--shade); }
.floor[data-state="locked"] .floor-window { opacity: .72; }
.floor-lock { position: absolute; right: 7%; top: 50%; height: 58%; max-height: 64px; aspect-ratio: 1; transform: translateY(-50%); }
.floor-lock svg { display: block; width: 100%; height: 100%; }
.floor-fence {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  border-top: 5px solid var(--paper);
  background: repeating-linear-gradient(-45deg, var(--sun) 0 12px, var(--paper) 12px 24px);
}
.floor.is-wobbling .floor-room { animation: nudge .45s ease-in-out; }
.floor.is-chosen .floor-room { box-shadow: inset 0 0 0 5px var(--sun); }
.floor:focus-visible { outline: 4px solid var(--suit); outline-offset: -4px; }

/* one small light per game of the floor, on a sill along the bottom of the room */
.floor-panes {
  position: absolute;
  left: 50%;
  bottom: 5%;
  display: flex;
  gap: 3px;
  padding: 3px 5px;
  border-radius: 7px;
  background: var(--paper);
  box-shadow: 0 2px 0 var(--shade);
  transform: translateX(-50%);
  pointer-events: none;
}
.pane { display: block; width: 8px; height: 10px; border-radius: 2px; background: var(--sun); }
.pane[data-pane="locked"] { background: var(--fur); }
.pane[data-pane="soon"] { background: var(--fur-light); box-shadow: inset 0 0 0 1.5px var(--fur); }
.building.has-wings .pane { width: 6px; height: 8px; }

/* ---------- corridor: the doors of one floor ---------- */
.corridor { background: var(--wall); }
body[data-screen="floor"] { background: var(--wall); }
.corridor-floor, .corridor-num, .door { position: absolute; }
.corridor-floor { background: var(--floor); box-shadow: inset 0 6px 0 var(--shade); }
.corridor-num {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--suit);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.door {
  border: 6px solid var(--paper);
  border-bottom: 0;
  border-radius: 16px 16px 4px 4px;
  background: var(--suit);
  box-shadow: 6px 0 0 var(--shade);
  cursor: pointer;
  touch-action: none;
}
.door:focus-visible { outline: 4px solid var(--sun-dark); outline-offset: 3px; }
.door-sign {
  position: absolute;
  left: 50%;
  top: 6%;
  min-width: 2.4em;
  padding: .08em .3em;
  border-radius: .35em;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: var(--sign-size, 18px);
  line-height: 1.1;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.door-pane {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 30%;
  aspect-ratio: 1;
  max-height: 58%;
  margin: 0 auto;
  border-radius: 12%;
  background: var(--paper);
  pointer-events: none;
}
.door-pane svg { width: 84%; height: 84%; margin: 8%; }
.door-knob { position: absolute; right: 8%; bottom: 14%; width: 10%; aspect-ratio: 1; border-radius: 50%; background: var(--sun); pointer-events: none; }
/* locked: the game is in sight, but the light is off and the key-card lock hangs on the door */
.door[data-state="locked"] { background: var(--fur); }
.door[data-state="locked"] .door-pane { opacity: .72; }
.door-lock { position: absolute; right: 4%; bottom: 3%; width: 34%; max-width: 54px; aspect-ratio: 1; pointer-events: none; }
.door-lock svg { width: 100%; height: 100%; }
/* still being built: an empty window behind the construction fence */
.door[data-state="soon"] { background: var(--fur-light); cursor: default; }
.door[data-state="soon"] .door-sign { color: var(--fur-dark); }
.door[data-state="soon"] .door-pane { background: var(--fur-light); box-shadow: inset 0 0 0 3px var(--fur); }
.door-fence {
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 26%;
  border-top: 4px solid var(--paper);
  background: repeating-linear-gradient(-45deg, var(--sun) 0 10px, var(--paper) 10px 20px);
  pointer-events: none;
}
/* left out of the turns by the parents: the door stays shut with a "do not disturb" hanger */
.door[data-state="off"] .door-pane { opacity: .55; }
.door-hanger { position: absolute; right: 4%; top: 46%; width: 24%; max-width: 40px; aspect-ratio: 40 / 64; transform: rotate(6deg); pointer-events: none; }
.door-hanger svg { width: 100%; height: 100%; }
.door.is-wobbling { animation: nudge .45s ease-in-out; }
.door.is-chosen { border-color: var(--sun); }
#btn-start.is-wobbling { animation: nudge .45s ease-in-out; }
#btn-start[data-state="locked"] { background: var(--fur); box-shadow: 0 8px 0 var(--shade); }
#btn-start { box-shadow: 0 8px 0 var(--suit-dark); }

/* ---------- home: Koonsy and his name ---------- */
.home { background: var(--sky); }
.home-title { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.home-name { margin: 0; font-family: var(--font-title); font-weight: 600; font-size: 1em; line-height: 1; letter-spacing: .02em; text-shadow: 0 .06em 0 var(--paper), 0 .1em 0 var(--shade); }
.home-name span { display: inline-block; }
.home-l0 { color: var(--suit); }
.home-l1 { color: var(--tie); }
.home-l2 { color: var(--sun-dark); }
.home-l3 { color: var(--leaf); }
.home-l4 { color: var(--owl); }
.home-l5 { color: var(--fox); }
.home-name span:nth-child(odd) { transform: rotate(-4deg); }
.home-name span:nth-child(even) { transform: rotate(4deg) translateY(.04em); }
.home-sub { margin: .12em 0 0; font-family: var(--font-title); font-weight: 600; font-size: .34em; line-height: 1.1; color: var(--ink); }
.big-btn.home-play { box-shadow: 0 8px 0 var(--suit-dark); }
.big-btn.home-play:active { box-shadow: 0 4px 0 var(--suit-dark); }
.home-play svg { width: 62%; height: 62%; }

/* ---------- sticker book ---------- */
.stickers { background: var(--wall-low); }
.page {
  display: flex;
  flex-direction: column;
  padding: 3% 5% 5%;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 8px 0 var(--shade);
}
.page-tab { flex: none; align-self: center; height: 13%; aspect-ratio: 200 / 240; margin-bottom: 2%; pointer-events: none; }
.page-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 3%; }
.sticker-slot { min-width: 0; min-height: 0; cursor: pointer; touch-action: none; }
.sticker-slot.is-wobbling { animation: wobble .5s ease-in-out; }

/* ---------- end of the working day ---------- */
.sleep { background: var(--night-wall); }
.sleep-floor { background: var(--night-floor); border-radius: 26px 26px 0 0; }
.sleep-shelf { border-radius: 8px; background: var(--penguin-dark); }
.sleep .decor, body[data-screen="sleep"] #mascot { filter: brightness(.78) saturate(.85); }
body[data-screen="sleep"] #mascot { cursor: default; }

/* ---------- parents ---------- */
.parents { display: flex; flex-direction: column; background: var(--paper); font-size: 17px; line-height: 1.5; }
.p-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 10px 14px 10px 82px;
  border-bottom: 3px solid var(--line);
}
.p-head h1 { flex: 1; min-width: 0; margin: 0; font-size: clamp(20px, 5vw, 30px); line-height: 1.15; overflow-wrap: anywhere; }
.p-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px max(16px, calc(50% - 360px)) 48px;
  touch-action: pan-y;
  -webkit-user-select: text;
  user-select: text;
}
.p-tabs {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 10px max(16px, calc(50% - 360px));
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 3px solid var(--line);
  touch-action: pan-x;
}
.p-tabs::-webkit-scrollbar { display: none; }
.p-tab {
  flex: none;
  min-height: 44px;
  padding: 6px 16px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.p-tab[aria-selected="true"] { border-color: var(--suit); background: var(--suit); color: var(--paper); }
.p-tab:focus-visible { outline: 3px solid var(--suit); outline-offset: 2px; }
.p-panel { padding-top: 6px; }
.p-card { margin: 12px 0; padding: 14px 16px; border: 2px solid var(--line); border-radius: 18px; background: #fff; }
.p-card > :last-child { margin-bottom: 0; }
.p-body h2 { margin: 0 0 8px; font-size: 21px; }
.p-body h3 { margin: 14px 0 6px; font-size: 17px; }
.p-body .p-card > h3 { margin: 0 0 8px; font-size: 19px; }
.p-card > h3:first-child { margin-top: 0; }
.p-card > h3 label { font: inherit; }
.p-body h3 small { margin-left: 8px; color: var(--ink-soft); font-weight: 600; }
.p-body p { margin: 0 0 8px; }
.p-lead { font-size: 19px; }
.p-note { color: var(--ink-soft); font-size: 15px; }
.p-early { padding: 10px 14px; border-radius: 14px; background: var(--lap-light); font-size: 15px; font-weight: 700; }
.noscript { position: absolute; inset: 0; margin: 0; padding: 24px; background: var(--paper); font-size: 19px; }
.p-row { display: flex; flex-wrap: wrap; gap: 8px; }
.p-btn, .p-chip {
  min-height: 46px;
  padding: 8px 18px;
  border: 3px solid var(--line);
  border-radius: 23px;
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.p-btn.primary { flex: none; max-width: 52%; padding: 6px 14px; text-wrap: balance; border-color: var(--suit); background: var(--suit); color: var(--paper); }
.p-btn.danger { border-color: var(--tie); background: var(--tie); color: var(--ink); }
.p-chip[aria-pressed="true"], .p-radio:has(input:checked) { border-color: var(--suit); background: var(--lap-light); }
.p-radio { display: inline-flex; align-items: center; gap: 8px; }
.p-check { display: flex; align-items: center; gap: 12px; min-height: 46px; cursor: pointer; }
.p-check input, .p-radio input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--suit); }
.p-field { margin: 8px 0; padding: 0; border: 0; }
.p-field legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.p-confirm { font-weight: 700; }
.p-btn:focus-visible, .p-chip:focus-visible, .p-radio:focus-within, .p-check:focus-within { outline: 3px solid var(--suit); outline-offset: 2px; }
.p-floors, .p-stickers { margin: 0; padding: 0; list-style: none; }
.p-floor { padding: 4px 0; border-top: 2px solid var(--line); }
.p-floor:first-child { border-top: 0; }
.p-floor-head { display: grid; grid-template-columns: 40px 1fr auto 18px; column-gap: 12px; align-items: center; min-height: 52px; cursor: pointer; list-style: none; }
.p-floor-head::-webkit-details-marker { display: none; }
.p-floor-head::after { content: ""; width: 10px; height: 10px; border-right: 3px solid var(--ink-soft); border-bottom: 3px solid var(--ink-soft); transform: rotate(-45deg); }
.p-floor details[open] > .p-floor-head::after { transform: rotate(45deg); }
.p-floor-head:focus-visible { outline: 3px solid var(--suit); outline-offset: 2px; }
.p-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--sun); }
.p-job { font-weight: 800; }
.p-age { color: var(--ink-soft); font-size: 15px; text-align: right; }
.p-games { margin: 0 0 8px; padding: 0 0 0 clamp(0px, 4vw, 52px); list-style: none; }
.p-game { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.p-game-name { color: var(--ink); }
.p-check.p-game-name { min-height: 40px; }
.p-code-name { display: inline-block; min-width: 2em; }
.p-skills { font-size: 14px; }
.p-game-act { gap: 8px; }
.p-game-act .p-chip, .p-game-act .p-btn { min-height: 44px; padding: 4px 12px; font-size: 15px; }
.p-opens { margin: 4px 0 8px; }
.p-game small { margin-left: 4px; padding: 1px 8px; border-radius: 10px; background: var(--line); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.p-game[data-state="free"] small, .p-game[data-state="open"] small { background: var(--lap-light); }
.p-game[data-turn="false"] small { background: var(--line); }
.p-floor:not([data-state="open"]) .p-num { background: var(--line); }
.p-label { display: block; margin: 10px 0 6px; font-weight: 700; }
.p-code { flex-wrap: nowrap; }
.p-input { flex: 1; min-width: 0; min-height: 46px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; }
.p-input:focus-visible { outline: 3px solid var(--suit); outline-offset: 2px; }
.p-select { display: block; width: 100%; max-width: 22em; min-height: 46px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; }
.p-select:focus-visible { outline: 3px solid var(--suit); outline-offset: 2px; }
.p-body h2 label { font: inherit; }
.p-have, .p-code-good { font-weight: 700; }
.p-code-bad { color: var(--ink); font-weight: 700; }
a.p-btn { display: inline-flex; align-items: center; text-decoration: none; }
.p-stickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px 8px; margin-bottom: 14px; }
.p-sticker { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; line-height: 1.25; text-align: center; }
.p-sticker svg { width: 64px; height: 64px; }
.p-sticker[data-earned="false"] span { color: var(--ink-soft); }

/* ---------- seasons (js/art/seasons.js): decor only, never in the way of a tap ---------- */
.season-fall, .season-ground, .season-shades, .season-prop, .season-roof, .season-wreath { position: absolute; pointer-events: none; }
.season-fall, .season-ground, .season-shades { inset: 0; }
.season-fall { overflow: hidden; }
.flake { position: absolute; top: 0; height: 100%; width: var(--size, 12px); transform: translateY(var(--rest, 50%)); animation: season-fall var(--dur, 10s) linear var(--delay, 0s) infinite; }
.flake svg { position: absolute; left: 0; top: calc(-1 * var(--size, 12px)); width: var(--size, 12px); height: var(--size, 12px); }
.season-fall[data-fall="leaf"] .flake svg, .season-fall[data-fall="petal"] .flake svg { animation: season-sway 2.6s ease-in-out infinite alternate; }
@keyframes season-fall {
  from { transform: translate(0, 0); }
  50% { transform: translate(var(--drift, 0), 50%); }
  to { transform: translate(0, calc(100% + var(--size, 12px))); }
}
@keyframes season-sway { from { transform: rotate(-35deg); } to { transform: rotate(35deg); } }
/* outside the office window: a few petals, leaves or flakes drift down */
.w-fall { opacity: 0; animation: w-fall 6.5s linear infinite; }
.w-f1 { animation-delay: -1.1s; } .w-f2 { animation-delay: -2.2s; } .w-f3 { animation-delay: -3.3s; }
.w-f4 { animation-delay: -4.4s; } .w-f5 { animation-delay: -5.5s; }
@keyframes w-fall {
  from { transform: translate(0, 0); opacity: 0; }
  15%, 80% { opacity: 1; }
  to { transform: translate(6px, 70px); opacity: 0; }
}
.s-spin { transform-origin: 53px 36px; animation: s-spin 1.4s linear infinite; }
/* the calm games of year 0: no fan spinning, nothing falling past the window */
#stage[data-calm="true"] .s-spin, #stage[data-calm="true"] .w-fall, #stage[data-calm="true"] .flake, #stage[data-calm="true"] .flake svg { animation: none; }
#stage[data-calm="true"] .w-fall { opacity: 1; }
@keyframes s-spin { to { transform: rotate(360deg); } }
/* winter outside: pale sky, snow on the grass and on the roof; lights and a wreath in December */
:is(.menu, .home):is([data-season="winter"], [data-season="christmas"]) { --sky: var(--winter-sky); }
[data-season="winter"] > .menu-ground, [data-season="christmas"] > .menu-ground { background: var(--snow-ground); }
body[data-screen="menu"]:is([data-season="winter"], [data-season="christmas"]),
body[data-screen="home"]:is([data-season="winter"], [data-season="christmas"]) { background: linear-gradient(var(--winter-sky) 50%, var(--snow-ground) 50%); }
[data-season="autumn"] > .menu-sky .menu-cloud ellipse { fill: var(--cloud-grey); }
/* the grass tells the season too: fresh in spring, dry and yellow in summer, faded in autumn */
:is(.menu, .home)[data-season="spring"] { --grass: #AEE3A0; }
:is(.menu, .home)[data-season="summer"] { --sky: #A8DDF4; --grass: #DDE3A0; }
:is(.menu, .home)[data-season="autumn"] { --sky: #CBE2EA; --grass: #D3D7A2; }
body:is([data-screen="menu"], [data-screen="home"])[data-season="spring"] { background: linear-gradient(var(--sky) 50%, #AEE3A0 50%); }
body:is([data-screen="menu"], [data-screen="home"])[data-season="summer"] { background: linear-gradient(#A8DDF4 50%, #DDE3A0 50%); }
body:is([data-screen="menu"], [data-screen="home"])[data-season="autumn"] { background: linear-gradient(#CBE2EA 50%, #D3D7A2 50%); }
.season-roof {
  left: -13px;
  right: -13px;
  top: calc(-1 * var(--roof-h, 24px) - 6px);
  height: calc(var(--roof-h, 24px) * .55 + 6px);
  border-radius: 22px 22px 14px 14px;
  background: var(--snow);
}
[data-season="christmas"] .season-roof::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: calc(100% - 5px);
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, var(--xmas-green) 4px, transparent 4.5px) 0 0 / 36px 12px repeat-x,
    radial-gradient(circle at 18px 6px, var(--sun) 4px, transparent 4.5px) 0 0 / 36px 12px repeat-x,
    radial-gradient(circle at 30px 6px, var(--sky-deep) 4px, transparent 4.5px) 0 0 / 36px 12px repeat-x;
}
.season-wreath { right: 12%; top: calc(-1.85 * var(--roof-h, 24px)); width: calc(1.7 * var(--roof-h, 24px)); aspect-ratio: 1; }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #mascot.is-gliding, .piece.is-gliding, .piece.is-gliding svg, .drag-item.is-gliding, .spot-animal, .hold-btn { transition: none; }
  .y2.is-up .board, .y2.is-up .board-top, .y2.is-up .piece, .spot[data-out="true"] .spot-object { animation: none; }
  .y2.is-up .trend { transition: none; }
  .flake, .flake svg, .w-fall, .s-spin, .menu-sun { animation: none; }
  .w-fall { opacity: 1; }
  /* a touch still gets a calm wobble */
  .sticker-slot.is-wobbling, .floor.is-wobbling .floor-room, .door.is-wobbling, #btn-start.is-wobbling { animation-duration: .9s; }
}

/* ---------- characters: Koonsy the mascot (js/art/mascot.js) and the colleagues (js/art/animals.js) ----------
   Poses are switched with the data-pose attribute on the svg; nothing here moves the svg itself. */
/* ---------- Koonsy ---------- */
.koonsy {
  overflow: visible;
  /* colours only he wears: the nappy of year 0, the gold and the waistcoat of year 5 */
  --k-nappy: #FFFFFF;
  --k-nappy-band: #DDE8F6;
  --k-nappy-tab: #A9D8F0;
  --k-gold: #F6C56B;
  --k-vest: #FFF1D6;
}
.koonsy .k-all { transform-origin: 100px 228px; animation: k-breathe 3.2s ease-in-out infinite; }
.koonsy .k-head { transform-origin: 100px 140px; transition: transform .25s ease; }
.koonsy .k-eye { transform-origin: 100px 91px; animation: k-blink 4.6s infinite; }
.koonsy .k-pupil {
  transform: translate(calc(var(--look-x, 0) * 5px), calc(var(--look-y, 0) * 4px));
  transition: transform .14s ease-out;
}
/* mask-coloured ring that trims pupils and highlights when they slide past the eye white;
   fully transparent while the gaze is centred, so the resting drawing equals the approved proof */
.koonsy .k-socket {
  opacity: calc((var(--look-x, 0) * var(--look-x, 0) + var(--look-y, 0) * var(--look-y, 0)) * 40);
}
.koonsy .k-arm { transition: transform .28s cubic-bezier(.3,1.5,.5,1), opacity .15s; }
.koonsy .k-arm-l { transform-origin: 68px 160px; }
.koonsy .k-arm-r { transform-origin: 132px 160px; }
/* --k-fore: how far the arm is foreshortened when it swings in front of the chest (clap) */
.koonsy.y0 .k-arm { --k-fore: .78; }
.koonsy.y1 .k-arm { --k-fore: .5; }
.koonsy.y2 .k-arm { --k-fore: .62; }
.koonsy.y3 .k-arm { --k-fore: .6; }
.koonsy.y4 .k-arm { --k-fore: .58; }
.koonsy.y5 .k-arm { --k-fore: .56; }
/* year 3: the briefcase stands at his side and his left paw rests on its handle, a little away from
   the body. When that paw is busy (clap, cheer, peek, carry) he lets go; the briefcase stays on the
   floor, also when he jumps. */
.koonsy.y3 .k-arm-l { transform: rotate(12deg); }
.koonsy .k-case { transform-origin: 100px 228px; }
.koonsy[data-pose="cheer"] .k-case { animation: k-stay .45s ease-in-out 2; }
.koonsy .k-tail { transform-origin: 124px 204px; animation: k-tail 2.6s ease-in-out infinite; }
.koonsy .k-peek { transform: translateY(70px); opacity: 0; transition: transform .22s ease-out, opacity .12s; }
.koonsy .k-carry { transform: translateY(44px); opacity: 0; transition: transform .24s cubic-bezier(.3,1.5,.5,1), opacity .1s; }
.koonsy .k-open, .koonsy .k-closed, .koonsy .k-bubble { opacity: 0; }
.koonsy .k-bubble { transform-origin: 107px 113px; }

.koonsy[data-pose="wave"] .k-arm-r { transform: rotate(-138deg); animation: k-wave .5s ease-in-out .28s 3; }
.koonsy[data-pose="wave"] .k-head { transform: rotate(5deg); }

.koonsy[data-pose="cheer"] .k-arm-r { transform: rotate(-142deg); }
.koonsy[data-pose="cheer"] .k-arm-l { transform: rotate(142deg); }
.koonsy[data-pose="cheer"] .k-all { animation: k-jump .45s ease-in-out 2; }
.koonsy[data-pose="cheer"] .k-open { opacity: 1; }
.koonsy[data-pose="cheer"] .k-smile { opacity: 0; }

.koonsy[data-pose="peek"] .k-peek { transform: none; opacity: 1; }
.koonsy[data-pose="peek"] .k-arm { opacity: 0; }

.koonsy[data-pose="giggle"] .k-all { animation: k-wiggle .16s ease-in-out 5; }
.koonsy[data-pose="giggle"] .k-open { opacity: 1; }
.koonsy[data-pose="giggle"] .k-smile { opacity: 0; }

/* clap: both sleeves swing in front of the chest and meet, again and again */
.koonsy[data-pose="clap"] .k-arm-l { transform: rotate(-75deg) scaleY(var(--k-fore)); animation: k-clap-l .34s ease-in-out .28s infinite; }
.koonsy[data-pose="clap"] .k-arm-r { transform: rotate(75deg) scaleY(var(--k-fore)); animation: k-clap-r .34s ease-in-out .28s infinite; }
.koonsy[data-pose="clap"] .k-open { opacity: 1; }
.koonsy[data-pose="clap"] .k-smile { opacity: 0; }

/* look: attentive head tilt; the gaze itself comes from --look-x / --look-y */
.koonsy[data-pose="look"] .k-head { transform: rotate(-6deg); }
.koonsy[data-pose="look"] .k-tail { animation-duration: 5.2s; }

/* carry: hands above the head, body held still so the carried thing does not slide */
.koonsy[data-pose="carry"] .k-carry { transform: none; opacity: 1; }
.koonsy[data-pose="carry"] .k-arm { opacity: 0; }
.koonsy[data-pose="carry"] .k-head { transform: translateY(6px); }
.koonsy[data-pose="carry"] .k-all { animation: none; }

/* sleep: closed eyes, dropped head, deep breathing, a little bubble */
.koonsy[data-pose="sleep"] .k-all { animation: k-breathe-deep 4.4s ease-in-out infinite; }
.koonsy[data-pose="sleep"] .k-head { transform: translateY(7px) rotate(9deg); transition-duration: .6s; }
.koonsy[data-pose="sleep"] .k-eye { opacity: 0; animation: none; }
.koonsy[data-pose="sleep"] .k-closed { opacity: 1; }
.koonsy[data-pose="sleep"] .k-tail { animation: none; }
.koonsy[data-pose="sleep"] .k-bubble { opacity: 1; animation: k-bubble 4.4s ease-in-out infinite; }

@keyframes k-breathe { 50% { transform: scale(1.015, .985); } }
@keyframes k-breathe-deep { 50% { transform: scale(1.025, .972); } }
@keyframes k-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes k-tail { 50% { transform: rotate(9deg); } }
@keyframes k-wave { 50% { transform: rotate(-112deg); } }
@keyframes k-jump { 50% { transform: translateY(-16px) scale(.98, 1.03); } }
/* exactly undoes k-jump (and k-calm) for something inside .k-all that stays on the floor */
@keyframes k-stay { 50% { transform: scale(1.0204, .9709) translateY(16px); } }
@keyframes k-calm-stay { 30% { transform: rotate(2.5deg); } 70% { transform: rotate(-2.5deg); } }
@keyframes k-calm { 30% { transform: rotate(-2.5deg); } 70% { transform: rotate(2.5deg); } }
@keyframes k-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes k-clap-l { 50% { transform: rotate(-48deg) scaleY(var(--k-fore)); } }
@keyframes k-clap-r { 50% { transform: rotate(48deg) scaleY(var(--k-fore)); } }
@keyframes k-bubble { 0%, 100% { transform: scale(.45); } 50% { transform: scale(1.15); } }

/* ---------- colleagues ---------- */
.animal { overflow: visible; }
.animal .a-all { transform-origin: 70px 150px; }
.animal .a-head { transform-origin: 70px 106px; transition: transform .4s ease; }
.animal .a-eye { transform-origin: 70px 60px; animation: a-blink 4.9s infinite; }
.animal .a-closed, .animal .a-open { opacity: 0; }

.animal.a-owl .a-eye { transform-origin: 70px 62px; animation-duration: 5.3s; }
.animal.a-duck .a-eye { transform-origin: 70px 56px; animation-duration: 4.1s; }
.animal.a-fox .a-eye { transform-origin: 70px 60px; animation-duration: 4.7s; }
.animal.a-bear .a-eye { transform-origin: 70px 58px; animation-duration: 5.9s; }
.animal.a-rabbit .a-eye { transform-origin: 70px 84px; animation-duration: 3.7s; }
.animal.a-penguin .a-eye { transform-origin: 70px 63px; animation-duration: 4.4s; }
.animal.a-elephant .a-eye { transform-origin: 70px 56px; animation-duration: 5.1s; }
.animal.a-cat .a-eye { transform-origin: 70px 60px; animation-duration: 3.9s; }
.animal.a-giraffe .a-eye { transform-origin: 70px 56px; animation-duration: 4.6s; }
.animal.a-rabbit .a-head { transform-origin: 70px 124px; }

.animal.a-owl .a-wing-l { transform-origin: 16px 72px; }
.animal.a-owl .a-wing-r { transform-origin: 124px 72px; }
.animal.a-duck .a-wing-l { transform-origin: 28px 110px; }
.animal.a-duck .a-wing-r { transform-origin: 112px 110px; }
.animal.a-penguin .a-wing-l { transform-origin: 17px 86px; }
.animal.a-penguin .a-wing-r { transform-origin: 123px 86px; }
.animal.a-elephant .a-wing-l { transform-origin: 40px 50px; }
.animal.a-elephant .a-wing-r { transform-origin: 100px 50px; }

/* happy: open mouth, a few little bounces, head wiggle, wings flap */
.animal[data-pose="happy"] .a-open { opacity: 1; }
.animal[data-pose="happy"] .a-smile { opacity: 0; }
.animal[data-pose="happy"] .a-all { animation: a-bounce .5s ease-in-out 3; }
.animal[data-pose="happy"] .a-head { animation: a-wiggle .5s ease-in-out 3; }
.animal[data-pose="happy"] .a-wing-l { animation: a-flap-l .25s ease-in-out 6; }
.animal[data-pose="happy"] .a-wing-r { animation: a-flap-r .25s ease-in-out 6; }

/* sleep: closed-eye arcs, no blink, slow breathing */
.animal[data-pose="sleep"] .a-eye { opacity: 0; animation: none; }
.animal[data-pose="sleep"] .a-closed { opacity: 1; }
.animal[data-pose="sleep"] .a-all { animation: a-breathe 4.2s ease-in-out infinite; }
.animal[data-pose="sleep"] .a-head { transform: rotate(5deg); }

@keyframes a-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes a-bounce { 30% { transform: scale(1.04, .95); } 65% { transform: scale(.97, 1.04); } }
@keyframes a-wiggle { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes a-flap-l { 50% { transform: rotate(11deg); } }
@keyframes a-flap-r { 50% { transform: rotate(-11deg); } }
@keyframes a-breathe { 50% { transform: scale(1.02, .975); } }

@media (prefers-reduced-motion: reduce) {
  .koonsy *, .animal * { animation: none !important; transition: none !important; }
  /* a touch still gets one calm wobble instead of the lively pose animations */
  .koonsy[data-pose="giggle"] .k-all, .koonsy[data-pose="wave"] .k-all, .koonsy[data-pose="peek"] .k-all,
  .koonsy[data-pose="clap"] .k-all, .koonsy[data-pose="cheer"] .k-all { animation: k-calm .9s ease-in-out 1 !important; }
  .koonsy[data-pose="peek"] .k-case, .koonsy[data-pose="clap"] .k-case,
  .koonsy[data-pose="cheer"] .k-case { animation: k-calm-stay .9s ease-in-out 1 !important; }
  .animal[data-pose="happy"] .a-all { animation: k-calm .9s ease-in-out 1 !important; }
}
