@font-face {
  font-family: 'Nunito';
  src: url('../assets/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ink: #4a2c17;
  --ink-soft: #7a5233;
  --cream: #fff6e6;
  --wall-1: #f7e2bf;
  --wall-2: #eac79a;
  --wood: #e2b47a;
  --wood-dark: #b98048;
  --wood-edge: #8f5a2b;
  --cell: 72px;
  --tray: #4b4650;
  --tray-edge: #2c2830;
  --hot: #ff7a1a;
  --accent: #ff8a3d;
  --green: #3fae4f;
  --red: #e8434b;
  --gold: #ffc531;
  --shopH: 150px;
  --kitchenH: 110px;
  --sideW: 260px;
  --kitchenW: 180px;
  font-family: 'Nunito', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--wall-2);
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

#boot {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink-soft);
  background: radial-gradient(circle at 50% 40%, var(--wall-1), var(--wall-2));
  z-index: 50;
}
.boot-bun {
  width: 64px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd58a, #e39a3c 60%, #b0661d);
  animation: breathe 1.2s ease-in-out infinite;
}

#app { position: fixed; inset: 0; }

/* ------------------------------------------------------------------ layout */

.game {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 54px var(--shopH) minmax(0, 1fr) var(--kitchenH);
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'top' 'shop' 'table' 'kitchen';
  background:
    linear-gradient(180deg, rgba(255, 238, 210, 0.15), rgba(255, 236, 205, 0.45) 45%, rgba(240, 205, 160, 0.55)),
    var(--wall-2) url('../assets/bg-tall.webp') center top / cover no-repeat;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.game.wide {
  background:
    linear-gradient(180deg, rgba(255, 238, 210, 0.1), rgba(255, 236, 205, 0.4)),
    var(--wall-2) url('../assets/bg-wide.webp') center / cover no-repeat;
  grid-template-rows: 54px minmax(0, 1fr);
  grid-template-columns: var(--sideW) minmax(0, 1fr) var(--kitchenW);
  grid-template-areas: 'top top top' 'shop table kitchen';
}

/* ------------------------------------------------------------------ top bar */

.top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 0;
  z-index: 3;
}
.rbtn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--wood-dark), 0 5px 10px rgba(80, 40, 10, 0.18);
  padding: 9px;
  cursor: pointer;
}
.rbtn svg { width: 100%; height: 100%; display: block; }
.rbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-dark); }

.goal {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--cream);
  border-radius: 16px;
  padding: 3px 12px 4px;
  box-shadow: 0 3px 0 var(--wood-dark), 0 5px 10px rgba(80, 40, 10, 0.15);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 'l p' 't t';
  align-items: center;
  line-height: 1.1;
}
.goal-l { grid-area: l; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.goal-t { grid-area: t; font-size: 17px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goal-p { grid-area: p; display: flex; gap: 4px; margin-left: 8px; }
.goal-p i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e8d3b3;
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.15);
}
.goal-p i.on { background: var(--green); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2); }
.goal-p i.pop { animation: pop 0.4s; }

.score {
  flex: 0 0 auto;
  background: var(--cream);
  border-radius: 16px;
  padding: 2px 10px 3px;
  box-shadow: 0 3px 0 var(--wood-dark), 0 5px 10px rgba(80, 40, 10, 0.15);
  text-align: center;
  line-height: 1;
}
.stars3 { display: flex; gap: 1px; justify-content: center; }
.stars3 i { width: 15px; height: 15px; color: var(--gold); transition: color 0.3s, transform 0.3s; filter: drop-shadow(0 1px 0 #c98a00); }
.stars3 i.off { color: #dcc9ad; filter: none; transform: scale(0.85); }
.stars3 svg { width: 100%; height: 100%; }
.moves b { font-size: 20px; font-weight: 900; }
.moves span { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-left: 3px; }
.moves.low b { color: var(--red); }

/* ------------------------------------------------------------------ customers */

.shop {
  grid-area: shop;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4px 10px 0;
  min-height: 0;
}
.shop::after {
  /* the counter */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, #c98d50, #a86d36);
  border-top: 4px solid #e0aa6b;
  box-shadow: 0 4px 8px rgba(70, 30, 0, 0.25);
  z-index: 0;
}
.custs {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4%;
  height: 100%;
}
.cust {
  position: relative;
  flex: 0 1 46%;
  max-width: 220px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  animation: enter 0.45s cubic-bezier(.2, 1.4, .4, 1);
}
.cust .who {
  height: 58%;
  max-height: 120px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px rgba(60, 30, 0, 0.25));
  transform-origin: 50% 100%;
}
.cust .bubble {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 4px 8px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 3px 0 #e2cfb2, 0 4px 10px rgba(60, 30, 0, 0.15);
  z-index: 2;
}
.cust .bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.need { position: relative; width: clamp(34px, calc(var(--shopH) * 0.3), 52px); aspect-ratio: 1; }
.need img { width: 100%; height: 100%; object-fit: contain; }
.need i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  padding: 2px;
  display: none;
  box-shadow: 0 0 0 2px #fff;
}
.need i svg { width: 100%; height: 100%; display: block; }
.need.got img { opacity: 0.45; }
.need.got i { display: block; }
.need.pop { animation: pop 0.4s; }
.cust.ready .who { animation: hop 0.9s ease-in-out infinite; }
.cust.ready .bubble { box-shadow: 0 3px 0 #e2cfb2, 0 0 0 3px var(--green), 0 4px 12px rgba(60, 160, 60, 0.4); }
.cust.can .bubble { box-shadow: 0 3px 0 #e2cfb2, 0 0 0 4px var(--green), 0 0 18px rgba(80, 200, 80, 0.8); }
.cust.over .bubble { transform: translateX(-50%) scale(1.1); }
.cust.happy .who { animation: happy 0.5s; }
.cust.done { animation: leave 0.5s ease-in forwards; }
.waiting {
  position: absolute;
  right: 8px;
  bottom: 4px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  color: #fff3df;
}

.wide .shop { padding: 8px 6px 12px 10px; justify-content: center; }
.wide .shop::after { display: none; }
.wide .custs { flex-direction: column; gap: 10px; justify-content: center; }
.wide .cust {
  flex: 0 1 auto;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(180deg, #d79c5d, #b37a40);
  border-radius: 18px;
  padding: 6px;
  box-shadow: 0 4px 0 var(--wood-edge);
}
.wide .cust .who { height: auto; width: 34%; max-height: none; }
.wide .cust .bubble { position: relative; top: auto; left: auto; transform: none; margin-left: 10px; flex-wrap: wrap; }
.wide .cust .bubble::after { left: -7px; top: 50%; bottom: auto; margin: -8px 0 0; border: 8px solid transparent; border-right-color: #fff; border-left: 0; }
.wide .cust.over .bubble { transform: scale(1.08); }
.wide .need { width: clamp(32px, 4.2vw, 54px); }
.wide .waiting { position: static; text-align: center; color: var(--ink-soft); margin-top: 6px; }

/* ------------------------------------------------------------------ table */

.table {
  grid-area: table;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 0;
  padding: 4px 0 4px;
}
.wide .table { justify-content: center; }
.tip {
  flex: 0 0 auto;
  min-height: 32px;
  max-width: 94%;
  padding: 5px 14px;
  border-radius: 16px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 3px 0 #e0c9a6, 0 6px 14px rgba(70, 35, 0, 0.2);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  z-index: 4;
}
.tip.show { opacity: 1; transform: none; }

.bwrap { position: relative; }
.bwrap.with-hole { padding: 0 24px; }
.board {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7dcaa, #ecc68a);
  box-shadow: 0 7px 0 #c48f55, 0 14px 26px rgba(80, 40, 0, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(170, 110, 50, 0.25);
}
.cell {
  position: relative;
  width: var(--cell);
  height: var(--cell);
  border-radius: calc(var(--cell) * 0.18);
  background: #f6dfb2 url('../assets/board/cell.webp') center / cover;
  box-shadow: inset 0 -3px 0 rgba(150, 90, 30, 0.15);
  transition: box-shadow 0.15s, transform 0.15s;
}
.cell.tray { background: #4b4650 url('../assets/board/tray.webp') center / cover; box-shadow: none; }
.cell::before {
  /* the heat glow on the tray */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(circle at 50% 70%, rgba(255, 170, 60, 0.9), rgba(255, 90, 20, 0.55) 55%, rgba(120, 20, 0, 0.2));
  mix-blend-mode: screen;
}
.board.warm .cell.tray::before { opacity: 0.35; }
.board.hot .cell.tray::before { opacity: 0.85; animation: glow 0.8s ease-in-out infinite; }
.board.hot .cell.tray { box-shadow: 0 0 14px rgba(255, 120, 30, 0.6); }
.board.hot .cell.tray .it { animation: jitter 0.25s linear infinite; }
.board.flare .cell.tray::before { opacity: 1; background: radial-gradient(circle, #fff3b0, #ff9a2a 55%, #d2400c); }
.board.flare .cell.tray { box-shadow: 0 0 30px #ff8a1a; }
.cell.sel { box-shadow: inset 0 0 0 4px var(--accent), 0 0 12px rgba(255, 140, 60, 0.6); }
.cell.can { box-shadow: inset 0 0 0 4px var(--green), 0 0 14px rgba(70, 190, 80, 0.75); }
.cell.can .it { animation: wiggle 0.7s ease-in-out infinite; }
.cell.over { transform: scale(1.08); }
.cell.lifted .it { opacity: 0.3; }
.cell.mrow::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(135deg, rgba(120, 100, 140, 0.08) 0 6px, transparent 6px 12px);
  pointer-events: none;
}
.cell.mtarget { box-shadow: inset 0 0 0 3px #9b86b5; }
.cell.mdanger { box-shadow: inset 0 0 0 4px var(--red), 0 0 14px rgba(232, 67, 75, 0.6); animation: glow 0.8s ease-in-out infinite; }

.it {
  position: absolute;
  inset: 6%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: breathe 3.2s ease-in-out infinite;
  pointer-events: none;
}
.it img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(80, 40, 10, 0.3)); }
.it[data-c='b1'], .it[data-c='b2'] { inset: 12%; }
.it[data-c='b3'], .it[data-c='b3+'], .it[data-c='berry'], .it[data-c='coal'] { inset: 9%; }
.it[data-c='b5'], .it[data-c='b5+'], .it[data-c='cat'] { inset: 3%; }
.it.pop { animation: pop 0.35s cubic-bezier(.2, 1.6, .4, 1), breathe 3.2s 0.35s ease-in-out infinite; }
.it.coal img { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4)); }

/* the mouse hole at the side of its row */
.hole {
  position: absolute;
  left: -10px;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  display: none;
  z-index: 2;
}
.hole.right { left: auto; right: -10px; }
.hole-arch {
  position: absolute;
  inset: 8px 4px 0;
  border-radius: 20px 20px 4px 4px;
  background: radial-gradient(circle at 50% 80%, #1c1210, #3a2418);
  box-shadow: 0 0 0 3px #b98048;
}
.mouse-img { position: absolute; left: 5px; top: 4px; width: 40px; height: 44px; object-fit: contain; transition: transform 0.3s; transform: translateY(6px) scale(0.8); }
.hole.peek .mouse-img, .hole.m1 .mouse-img { transform: translateY(0) scale(1); }
.hole.scared .mouse-img { transform: translateY(12px) scale(0.6); opacity: 0.6; }
.hole .cnt {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: #fff;
  color: #6a5a80;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  line-height: 22px;
  box-shadow: 0 2px 0 #cbbfd8;
}
.hole.m1 .cnt { background: var(--red); color: #fff; box-shadow: 0 2px 0 #9a1d24; animation: pulse 0.8s infinite; }
.hole.scared .cnt { opacity: 0.4; }

/* ------------------------------------------------------------------ kitchen: oven and heat */

.kitchen {
  grid-area: kitchen;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 10px 6px;
  min-height: 0;
  background: linear-gradient(180deg, transparent, rgba(120, 70, 30, 0.12));
}
.oven {
  position: relative;
  height: calc(var(--kitchenH) - 8px);
  aspect-ratio: 1.4;
  justify-self: center;
  transition: transform 0.15s;
  cursor: pointer;
}
.oven-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(80, 30, 0, 0.3)); }
.mouth {
  position: absolute;
  left: 47.4%;
  top: 56%;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mouth img { width: 100%; height: 100%; object-fit: contain; animation: bob 1.6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.9)); }
.oven.can { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(80, 200, 80, 0.9)); }
.oven.over { transform: scale(1.12); }
.oven.hot .oven-img, .oven.flare .oven-img { filter: drop-shadow(0 0 16px rgba(255, 120, 20, 0.95)); }
.oven.gulp, .oven.puff { animation: gulp 0.35s; }
.next-cap {
  justify-self: start;
  align-self: center;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
}
.next-cap::before { content: '← '; }
.heat {
  justify-self: end;
  align-self: center;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 4px;
  margin-right: 8px;
  padding: 6px 10px;
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 3px 0 var(--wood-dark), 0 5px 10px rgba(80, 40, 10, 0.15);
}
.heat .flame { width: 24px; height: 24px; color: #ff9a3d; }
.heat .flame svg { width: 100%; height: 100%; display: block; }
.heat b { font-size: 24px; font-weight: 900; }
.heat-cap { grid-column: 1 / 3; font-size: 12px; font-weight: 800; color: var(--ink-soft); text-align: center; max-width: 110px; line-height: 1.1; }
.heat.h2 .flame { color: #ff6a1a; }
.heat.h1 { background: #ffe1cc; animation: pulse 0.8s infinite; }
.heat.h1 .flame { color: var(--red); }
.heat.h1 b, .heat.h1 .heat-cap { color: #c2280f; }

.wide .kitchen {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  justify-items: center;
  padding: 8px 10px 16px 0;
  background: none;
}
.wide .oven { height: auto; width: 100%; max-width: 230px; }
.wide .heat { justify-self: center; margin: 0 0 8px; grid-row: 1; align-self: end; }
.wide .next-cap { justify-self: center; margin: 4px 0 0; }
.wide .next-cap::before { content: '↑ '; }

/* ------------------------------------------------------------------ moving things */

.ghost, .flyer {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  pointer-events: none;
}
.ghost .it, .flyer .it { animation: none; inset: 0; }
.ghost .it img { filter: drop-shadow(0 10px 8px rgba(60, 30, 0, 0.35)); }
.runner img { width: 100%; height: 100%; object-fit: contain; }
.runner.flip img { transform: scaleX(-1); }
.runner .loot { position: absolute; inset: 20% -20% -10% 20%; animation: none; }
.spark { position: fixed; z-index: 31; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; }
.puff {
  position: fixed;
  z-index: 31;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 110, 105, 0.9), rgba(120, 110, 105, 0));
  pointer-events: none;
}
.heart { position: fixed; z-index: 32; width: 22px; height: 22px; color: var(--gold); pointer-events: none; filter: drop-shadow(0 1px 0 #c98a00); }
.heart svg { width: 100%; height: 100%; }
.game.shake { animation: shake 0.35s; }

.hand {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  margin: -6px 0 0 -14px;
  z-index: 40;
  display: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}
.hand svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ windows */

.modal {
  position: absolute;
  inset: 0;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(60, 30, 10, 0.45);
  padding: 16px;
}
.modal.open { display: flex; animation: fade 0.2s; }
.card {
  width: min(420px, 100%);
  max-height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
  background: var(--cream);
  border-radius: 26px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 6px 0 var(--wood-dark), 0 20px 40px rgba(40, 20, 0, 0.4);
  animation: enter 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.m-title { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.m-sub { font-size: 16px; font-weight: 700; color: var(--ink-soft); min-height: 4px; margin-bottom: 10px; }
.m-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0 12px; }
.m-stars i { width: 64px; height: 64px; color: #e2d0b4; }
.m-stars i:nth-child(2) { transform: translateY(-12px); }
.m-stars i.on { color: var(--gold); filter: drop-shadow(0 3px 0 #c98a00); animation: starIn 0.5s cubic-bezier(.2, 1.6, .4, 1) both; }
.m-stars svg { width: 100%; height: 100%; }
.m-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.m-btns.row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.m-btns.row .btn { flex: 1 1 40%; font-size: 15px; padding: 10px 8px; }
.btn {
  border: 0;
  border-radius: 18px;
  padding: 13px 16px;
  font: inherit;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
  background: #fde9c8;
  box-shadow: 0 4px 0 #d9b98a;
  cursor: pointer;
}
.btn small { display: block; font-size: 12px; font-weight: 700; opacity: 0.75; }
.btn.primary { background: linear-gradient(180deg, #7fd36b, var(--green)); color: #fff; box-shadow: 0 4px 0 #2a7a36; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #d9b98a; }
.lvgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0 12px; }
.lv {
  border: 0;
  border-radius: 14px;
  padding: 6px 0 4px;
  background: #fde9c8;
  box-shadow: 0 3px 0 #d9b98a;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.lv b { display: block; font-size: 18px; font-weight: 900; height: 22px; }
.lv b svg { width: 18px; height: 18px; }
.lv span { display: flex; justify-content: center; }
.lv span i { width: 12px; height: 12px; color: #dcc9ad; }
.lv span i.on { color: var(--gold); }
.lv span svg { width: 100%; height: 100%; }
.lv.cur { box-shadow: 0 0 0 3px var(--accent), 0 3px 0 #d9b98a; }
.lv.locked { opacity: 0.5; cursor: default; }
.rules { text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.rule { display: flex; gap: 10px; align-items: center; }
.rule-pics { flex: 0 0 82px; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.rule-pics img { width: 38px; height: 38px; object-fit: contain; }
.rule p { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }

/* ------------------------------------------------------------------ keyframes */

@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.035, 0.97) translateY(2%); } }
@keyframes pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes jitter { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, 1px); } 75% { transform: translate(1.5px, -1px); } }
@keyframes glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8%) scale(1.03, 0.97); } }
@keyframes happy { 0% { transform: scale(1); } 40% { transform: scale(1.15) rotate(-5deg); } 100% { transform: scale(1); } }
@keyframes enter { from { opacity: 0; transform: translateY(30px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes leave { to { opacity: 0; transform: translateY(-20px) scale(0.85); } }
@keyframes gulp { 0% { transform: scale(1); } 40% { transform: scale(1.1, 0.92); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% { transform: translate(0); } 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -2px); } 60% { transform: translate(-3px, 1px); } 80% { transform: translate(3px, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes starIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .it, .mouth img, .cust.ready .who { animation: none; }
}
