/* Wild Brush: Shaafi's Island — phone-first layout.
   The canvas fills the whole screen; controls and panels float on top. */

:root {
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --ink: #2b2140;
  --violet: #7c5cff;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  position: fixed; inset: 0; margin: 0; width: 100%; height: 100%;
  overflow: hidden; overscroll-behavior: none;
  background: #150f24;
  font-family: var(--font);
  color: var(--ink);
  -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%;
}
#wrap {
  position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100dvh;
  overflow: hidden;
}
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#safe-probe {
  position: fixed; visibility: hidden; pointer-events: none; left: 0; top: 0; width: 0; height: 0;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
}
.hidden { display: none !important; }
button { font-family: var(--font); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
kbd {
  display: inline-block; min-width: 24px; padding: 2px 7px; margin: 0 2px;
  border-radius: 7px; background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px;
  font: bold 13px var(--font); text-align: center; color: var(--ink);
}

/* ------------------------------------------------ Buttons */
.bigbtn {
  font: bold 20px var(--font); color: #fff; cursor: pointer;
  min-height: 56px; padding: 12px 26px; border: none; border-radius: 18px;
  background: linear-gradient(180deg, #7c5cff, #5b3fd9);
  box-shadow: 0 5px 0 #3a2699; transition: transform .08s, box-shadow .08s;
}
.bigbtn.wide { display: block; width: 100%; }
.bigbtn:active { transform: translateY(3px); box-shadow: 0 2px 0 #3a2699; }
.bigbtn:disabled { opacity: .5; cursor: default; transform: none; }
@media (hover: hover) { .bigbtn:not(:disabled):hover { filter: brightness(1.08); } }

/* Top-right round buttons */
#topbar {
  position: absolute; z-index: 5;
  top: calc(var(--sat) + 8px); right: calc(var(--sar) + 8px);
  display: flex; gap: 8px;
}
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85);
  background: rgba(43,33,64,.78); color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.round-btn:active { transform: translateY(2px) scale(.94); box-shadow: 0 1px 0 rgba(0,0,0,.25); }

/* ------------------------------------------------ Touch controls */
#controls {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  height: calc(var(--sab) + 230px);
  pointer-events: none;
}
#stick-zone {
  position: absolute; left: 0; bottom: 0; top: -40px; width: 58%;
  pointer-events: auto; touch-action: none;
}
#stick-base {
  position: absolute; width: 136px; height: 136px; margin: -68px 0 0 -68px;
  left: calc(var(--sal) + 92px); top: calc(100% - var(--sab) - 92px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,.28));
  border: 3px solid rgba(255,255,255,.65);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: opacity .15s;
  opacity: .8;
}
#stick-base::before, #stick-base::after {
  /* little arrow ticks so the base reads as "move" */
  content: ''; position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px;
  border-radius: 50%; border: 2px dashed rgba(255,255,255,.35);
}
#stick-base::after { width: 0; height: 0; margin: 0; border: none; }
#stick-knob {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e4dcff 60%, #b9a8ff);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
}
#stick-base.active { opacity: 1; transition: none; }
#stick-base.active #stick-knob { background: radial-gradient(circle at 35% 30%, #fff, #fff3c0 60%, #ffd23b); }

#btns {
  position: absolute; pointer-events: none;
  right: calc(var(--sar) + 14px); bottom: calc(var(--sab) + 22px);
  width: 196px; height: 196px;
}
.act-btn {
  position: absolute; pointer-events: auto; touch-action: none; cursor: pointer;
  border-radius: 50%; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 3px solid var(--ink); color: var(--ink);
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 0 rgba(43,33,64,.7);
  transition: transform .06s, box-shadow .06s, background .15s;
}
.act-btn .ico { font-size: 28px; line-height: 1; }
.act-btn .lbl { font-size: 14px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.act-btn.big {
  right: 0; bottom: 0; width: 104px; height: 104px;
  background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23b 55%, #ffb000);
}
.act-btn.big .ico { font-size: 36px; }
.act-btn.big .lbl { font-size: 17px; }
#btn-brush { right: 118px; bottom: 4px; width: 72px; height: 72px; }
#btn-run { right: 16px; bottom: 120px; width: 72px; height: 72px; }
.act-btn.pressed { transform: translateY(4px) scale(.93); box-shadow: 0 1px 0 rgba(43,33,64,.7); filter: brightness(.93); }
.act-btn.on { background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23b 60%, #ff9a1f); box-shadow: 0 0 0 5px rgba(255,210,59,.55), 0 5px 0 rgba(43,33,64,.7); }
.act-btn.ping { animation: ping 1.2s ease-in-out infinite; }

body.ui-busy #controls, body.no-play #controls, body.kb #controls { visibility: hidden; }
body.no-play #topbar { visibility: hidden; }

/* ------------------------------------------------ Overlays (title, help, puzzle, win) */
.overlay {
  position: absolute; inset: 0; z-index: 20; display: flex;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  touch-action: pan-y;
  padding: calc(var(--sat) + 12px) calc(var(--sar) + 12px) calc(var(--sab) + 12px) calc(var(--sal) + 12px);
  background: rgba(20, 12, 35, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.overlay > * { margin: auto; }   /* centers, but never cuts off the top when it scrolls */

/* ------------------------------------------------ Title + win */
.title-card {
  width: 100%; max-width: 560px; padding: 26px 22px 20px; text-align: center;
  background: rgba(255,255,255,0.96); border-radius: 28px;
  box-shadow: 0 10px 0 rgba(0,0,0,0.15), 0 20px 50px rgba(0,0,0,0.35);
  animation: pop .5s ease-out;
}
.logo { display: flex; flex-direction: column; gap: 4px; }
.logo .l1 {
  font-size: clamp(42px, 14vw, 64px); font-weight: 900; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(90deg, #ff4d5e, #ff9a1f, #ffd23b, #3ed36b, #3fa2ff, #b46bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(43,33,64,0.25));
}
.logo .l2 { font-size: clamp(22px, 6.5vw, 28px); font-weight: 800; color: var(--ink); }
.paint-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.paint-row i { width: 22px; height: 22px; border-radius: 50%; display: block; animation: bounce 1.4s ease-in-out infinite; }
.paint-row i:nth-child(2) { animation-delay: .1s } .paint-row i:nth-child(3) { animation-delay: .2s }
.paint-row i:nth-child(4) { animation-delay: .3s } .paint-row i:nth-child(5) { animation-delay: .4s }
.paint-row i:nth-child(6) { animation-delay: .5s }
.blurb { font-size: 18px; line-height: 1.45; margin: 10px 4px 18px; }
.bigbtn.start { font-size: 24px; min-height: 64px; background: linear-gradient(180deg, #ff9a1f, #ff6a3d); box-shadow: 0 6px 0 #c24317; }
.bigbtn.start:active { box-shadow: 0 2px 0 #c24317; }
.mini-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; font-size: 15px; line-height: 1.3; }
.mini-controls span { background: #f3efff; border-radius: 14px; padding: 10px 6px; }
.mini-controls b { display: block; font-size: 17px; }
.rotate-tip { display: none; margin: 14px 0 0; font-size: 15px; font-weight: 800; color: #c24317; }
.kb-line { margin: 12px 0 0; font-size: 13px; opacity: .6; }
.credit { margin: 12px 0 0; font-size: 12px; opacity: .6; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 20px; }
.stats div { background: #f3efff; border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; }
.stats span { font-size: 26px; } .stats b { font-size: 26px; } .stats small { font-size: 13px; opacity: .75; }
.win-card .logo .l1 { font-size: clamp(40px, 13vw, 58px); }
.win-card .logo .l2 { font-size: clamp(18px, 5.5vw, 22px); }

/* ------------------------------------------------ Toast */
#toast {
  position: absolute; z-index: 8; left: 50%; top: calc(var(--sat) + 150px);
  transform: translate(-50%, -16px);
  width: max-content; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 20px; font-size: 19px; font-weight: 800; line-height: 1.3; text-align: center;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------ Dialog (bottom sheet) */
#dialog {
  position: absolute; z-index: 10;
  left: calc(var(--sal) + 10px); right: calc(var(--sar) + 10px); bottom: calc(var(--sab) + 10px);
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 16px; background: #fffdf5; border: 4px solid var(--ink); border-radius: 24px;
  box-shadow: 0 8px 0 rgba(0,0,0,0.25); cursor: pointer; animation: rise .2s ease-out;
  touch-action: manipulation;
}
.dlg-row { display: flex; gap: 12px; align-items: flex-start; }
#dlg-face { font-size: 42px; line-height: 1; width: 62px; height: 62px; display: flex; align-items: center; justify-content: center; background: #f0e9ff; border-radius: 18px; flex: none; }
.dlg-body { flex: 1; min-width: 0; }
#dlg-name { display: inline-block; font-weight: 900; font-size: 16px; color: #fff; background: var(--violet); padding: 3px 12px; border-radius: 10px; margin-bottom: 6px; }
#dlg-text { font-size: 21px; line-height: 1.4; font-weight: 600; min-height: 3.6em; max-height: 38vh; overflow-y: auto; }
#dlg-next { width: 100%; font-size: 21px; }

/* ------------------------------------------------ Puzzle */
#pz-card {
  width: 100%; max-width: 720px;
  background: #fffdf5; border: 4px solid var(--ink); border-radius: 26px;
  padding: 14px 16px 16px; box-shadow: 0 10px 0 rgba(0,0,0,0.25);
  animation: pop .25s ease-out; position: relative;
}
#pz-card.shake { animation: shake .4s; }
#pz-card.flash { box-shadow: 0 0 0 6px #3ed36b, 0 10px 0 rgba(0,0,0,0.25); }
.pz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pz-icon { font-size: 30px; }
.pz-title { font-size: 21px; font-weight: 900; flex: 1; min-width: 0; }
.pz-close {
  flex: none; min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 14px; cursor: pointer;
  border: 3px solid var(--ink); background: #fff; color: var(--ink); font: bold 16px var(--font);
  box-shadow: 0 3px 0 var(--ink);
}
.pz-close:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.steps { display: flex; gap: 6px; }
.sdot { width: 14px; height: 14px; border-radius: 50%; background: #e3dde8; }
.sdot.now { background: #ffd23b; box-shadow: 0 0 0 3px #fff3c0; }
.sdot.done { background: #3ed36b; }
.prompt { font-size: 22px; line-height: 1.4; font-weight: 700; margin: 6px 0 12px; }
.passage-title { font-size: 22px; font-weight: 900; color: var(--violet); margin: 4px 0 8px; }
.passage { background: #fff; border: 3px dashed #d6ccf5; border-radius: 18px; padding: 10px 16px; margin-bottom: 14px; }
.passage p { font-size: 22px; line-height: 1.5; margin: 6px 0; }
.sticky-go {
  position: sticky; bottom: 0; margin: 0 -16px -16px; padding: 14px 16px max(16px, var(--sab));
  background: linear-gradient(rgba(255,253,245,0), #fffdf5 30%); border-radius: 0 0 22px 22px;
}
.tip { font-size: 15px; opacity: .65; margin-top: 8px; text-align: center; }
.mini-passage { background: #f6f2ff; border-radius: 14px; padding: 0 14px; margin-bottom: 8px; font-size: 18px; line-height: 1.5; }
.mini-passage summary { cursor: pointer; font-weight: 800; color: var(--violet); min-height: 48px; display: flex; align-items: center; }
.mini-passage div { padding-bottom: 10px; }
.show { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 4px 0 14px; flex-wrap: wrap; }
.big-emoji { font-size: 76px; line-height: 1; }
.big-word { font-size: 46px; font-weight: 900; letter-spacing: 6px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; padding: 4px 18px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 10px; cursor: pointer; justify-content: center;
  font: bold 22px var(--font); color: var(--ink); line-height: 1.25;
  min-height: 64px; padding: 12px 16px;
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.choice:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); background: #fff9df; }
@media (hover: hover) { .choice:hover:not(:disabled) { background: #fff9df; } }
.choice .key { font-size: 13px; background: var(--ink); color: #fff; border-radius: 7px; padding: 2px 7px; }
.choices.emoji { grid-template-columns: repeat(3, 1fr); }
.choices.emoji .ctext { font-size: 52px; line-height: 1.1; }
.choice.right { background: #c9f7d5; border-color: #1f9e4a; box-shadow: 0 5px 0 #1f9e4a; }
.choice.wrong { background: #eee; opacity: .45; text-decoration: line-through; cursor: default; }
.hint { min-height: 0; margin-top: 12px; font-size: 19px; line-height: 1.4; text-align: center; display: none; }
.hint.show { display: block; background: #fff3c0; border-radius: 14px; padding: 10px 14px; }
.hint.good { background: #c9f7d5; }
.esc { text-align: right; font-size: 12px; opacity: .45; margin-top: 6px; }

/* math */
.math-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.vert { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 6px 18px 12px; }
.vert .row { display: flex; }
.vert .cell { width: 56px; height: 58px; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; }
.vert .cell.tens { color: #3a7bd5; } .vert .cell.ones { color: #e8590c; }
.vert .cell.op { color: var(--violet); }
.vert .labels .cell { height: 22px; font-size: 14px; font-weight: 800; opacity: .6; }
.vert .slots { display: flex; }
.vert .bar { height: 5px; background: var(--ink); border-radius: 3px; margin: 2px 0 8px; }
.vert .cell.slot { border-radius: 12px; background: #f3efff; margin: 0 3px; width: 50px; }
.vert .cell.slot.filled { background: #fff3c0; }
.vert .cell.slot.cursor { box-shadow: inset 0 0 0 3px var(--violet); animation: blink 1s infinite; }
.horiz { display: flex; align-items: center; gap: 12px; font-size: 52px; font-weight: 900; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 6px 18px; }
.horiz .op { color: var(--violet); }
.horiz .cell.slot { display: inline-flex; min-width: 76px; height: 66px; align-items: center; justify-content: center; background: #f3efff; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--violet); }
.horiz .cell.slot.filled { background: #fff3c0; box-shadow: none; }
.dots-row { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 300px; margin: 12px auto 0; }
.hwrap { display: flex; flex-direction: column; align-items: center; }
.d { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.d.a { background: #ff4d5e; } .d.b { background: #3fa2ff; }
.d.x { background: #e3dde8; position: relative; }
.d.x::after { content: '✕'; position: absolute; inset: 0; font-size: 11px; line-height: 14px; text-align: center; color: #999; font-style: normal; }
.dots-row .gap { width: 12px; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 300px; }
.nk {
  min-height: 60px; font: bold 28px var(--font); border: 3px solid var(--ink); border-radius: 16px;
  background: #fff; box-shadow: 0 4px 0 var(--ink); cursor: pointer; color: var(--ink);
}
.nk:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); background: #fff3c0; }
.nk.ok { background: #3ed36b; color: #fff; }
.nk.ok:active { background: #2fb85a; }
.nk.del { background: #ffe3e3; }

/* ------------------------------------------------ Help */
#help .panel {
  width: 100%; max-width: 640px; background: #fffdf5; border: 4px solid var(--ink); border-radius: 26px;
  padding: 18px 18px 18px; box-shadow: 0 10px 0 rgba(0,0,0,0.25);
}
#help h2 { margin: 0 0 10px; font-size: 26px; text-align: center; }
#help h3 { margin: 16px 0 8px; font-size: 19px; color: var(--violet); }
#help ul { list-style: none; padding: 0; margin: 0; font-size: 17px; line-height: 1.45; }
.touch-help li { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.th-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 900; }
.th-ico.th-big { background: #ffd23b; }
#help .powers li { margin-bottom: 8px; }
#help .keys li { margin-bottom: 8px; font-size: 15px; }
.pdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
#help .goal { font-weight: 800; background: #fff3c0; border-radius: 14px; padding: 10px 14px; margin: 0; font-size: 18px; line-height: 1.35; }
#help .tip { font-size: 16px; opacity: .8; margin: 16px 0; }
.kb-help { margin: 0 0 16px; background: #f6f2ff; border-radius: 14px; padding: 0 14px; }
.kb-help summary { min-height: 48px; display: flex; align-items: center; font-weight: 800; cursor: pointer; }
.kb-help ul { padding-bottom: 10px !important; }
#help-close { position: sticky; bottom: max(8px, var(--sab)); box-shadow: 0 5px 0 #3a2699, 0 8px 24px rgba(0,0,0,.25); }

/* ------------------------------------------------ Phone tweaks */
@media (pointer: coarse) {
  .choice .key, .esc, .kb-line { display: none; }
}
@media (pointer: coarse) and (orientation: landscape) {
  .rotate-tip { display: block; }
}
@media (max-width: 600px) {
  .choices { grid-template-columns: 1fr; }
  .choices.emoji { grid-template-columns: repeat(3, 1fr); }
  .math-wrap { flex-direction: column; gap: 16px; }
  .numpad { max-width: 340px; }
  .vert .cell { width: 48px; height: 50px; font-size: 40px; }
  .vert .cell.slot { width: 44px; }
  .horiz { font-size: 40px; gap: 8px; padding: 6px 14px; }
  .horiz .cell.slot { min-width: 64px; height: 56px; }
  .big-emoji { font-size: 64px; }
  .big-word { font-size: 38px; letter-spacing: 4px; }
  .prompt, .passage p { font-size: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mini-controls { font-size: 14px; }
}
@media (max-width: 360px) {
  .act-btn.big { width: 92px; height: 92px; }
  #btn-brush { right: 104px; width: 64px; height: 64px; }
  #btn-run { bottom: 106px; width: 64px; height: 64px; }
  #stick-base { width: 120px; height: 120px; margin: -60px 0 0 -60px; left: calc(var(--sal) + 80px); top: calc(100% - var(--sab) - 84px); }
  .numpad .nk { min-height: 56px; }
}
/* Small phones (iPhone SE and similar): keep the whole number pad on screen */
@media (max-height: 740px) and (orientation: portrait) {
  #pz-card { padding: 10px 14px 14px; }
  .pz-head { margin-bottom: 4px; }
  .prompt { font-size: 18px; margin: 4px 0 8px; }
  .math-wrap { gap: 10px; }
  .vert { padding: 4px 14px 8px; }
  .vert .cell { height: 42px; font-size: 34px; }
  .vert .labels .cell { height: 18px; font-size: 12px; }
  .vert .bar { margin: 2px 0 6px; }
  .horiz { font-size: 34px; }
  .horiz .cell.slot { height: 48px; min-width: 56px; }
  .dots-row { margin-top: 8px; }
  .numpad { gap: 8px; }
  .nk { min-height: 52px; font-size: 26px; }
  .big-emoji { font-size: 56px; }
  .choice { min-height: 56px; }
}
/* Short screens (phones held sideways) */
@media (max-height: 500px) {
  #controls { height: calc(var(--sab) + 190px); }
  #stick-base { top: calc(100% - var(--sab) - 80px); left: calc(var(--sal) + 96px); }
  #btns { bottom: calc(var(--sab) + 12px); right: calc(var(--sar) + 18px); }
  #toast { top: calc(var(--sat) + 70px); }
  #dlg-face { width: 48px; height: 48px; font-size: 32px; }
  #dlg-text { font-size: 19px; min-height: 2.8em; max-height: 30vh; }
  #dlg-next { min-height: 48px; padding: 8px; }
  #dialog { max-width: 680px; }
  .math-wrap { flex-direction: row; }
}

/* ------------------------------------------------ Animations */
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes bounce { 50% { transform: translateY(-8px); } }
@keyframes ping { 0%,100% { box-shadow: 0 5px 0 rgba(43,33,64,.7), 0 0 0 0 rgba(255,210,59,.7); } 50% { box-shadow: 0 5px 0 rgba(43,33,64,.7), 0 0 0 12px rgba(255,210,59,0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
