/* Loole game menu
   Layout: one phone-width column (sticky coin bar, logo, 2-up pipe grid, bonus strip,
   4-up mini pipes) over a drifting dice-and-chip pattern, with a pipe tab bar pinned
   to the bottom. Widens to a 4-up grid on desktop.
   Single deliberate dark look, matching the logo's black ground. */
:root {
  --ink: #0F0A0B;          /* page ground */
  --panel: #1D1315;        /* cards */
  --panel-hi: #2B1B1E;
  --red: #E8232B;          /* Loole pipe red */
  --gold: #FFC629;         /* logo ring */
  --cream: #FFF4E2;        /* gloves, letters */
  --muted: #C2ADA7;
  --line: #000;            /* cartoon outline */

  /* Pipe shading: the highlight streak sits left of centre, like the mascot */
  --pipe-x: linear-gradient(90deg, #6E0A10 0%, #B3141C 9%, #E8232B 24%, #FF8086 33%, #F2373E 41%, #E8232B 62%, #B3141C 85%, #6E0A10 100%);
  --pipe-y: linear-gradient(180deg, #F2373E 0%, #FF8086 14%, #E8232B 32%, #B3141C 78%, #6E0A10 100%);
  --gold-y: linear-gradient(180deg, #FFE27A 0%, #FFF3C4 16%, #FFC629 36%, #D99A00 80%, #8F6200 100%);
  --dark-y: linear-gradient(180deg, #4A3236 0%, #5E4348 16%, #3A272A 40%, #241719 85%, #140C0E 100%);

  --font-display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-fa: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;

  --max: 520px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --tabbar-h: 68px;
  --outline-text: 0 2px 0 var(--line), 1.5px 0 0 var(--line), -1.5px 0 0 var(--line), 0 -1.5px 0 var(--line), 1.5px 2px 0 var(--line), -1.5px 2px 0 var(--line);

  color-scheme: dark;
}
@media (min-width: 860px) {
  :root { --max: 980px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 28px);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* paints the phone's status-bar band so content never scrolls under it */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--ink);
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 12px; }
h1, h2, p { margin: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); pointer-events: none; }
.bg__rot { position: absolute; inset: -35%; transform: rotate(-14deg); }
.bg__pattern {
  position: absolute;
  inset: -160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cg transform='translate(38 38) rotate(14)'%3E%3Crect x='-16' y='-16' width='32' height='32' rx='7' stroke='rgb(255,198,41)' stroke-opacity='.2' stroke-width='2.5'/%3E%3Cg fill='rgb(255,198,41)' fill-opacity='.2'%3E%3Ccircle cx='-7' cy='-7' r='2.6'/%3E%3Ccircle cx='7' cy='-7' r='2.6'/%3E%3Ccircle cx='0' cy='0' r='2.6'/%3E%3Ccircle cx='-7' cy='7' r='2.6'/%3E%3Ccircle cx='7' cy='7' r='2.6'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(120 44)' stroke='rgb(232,35,43)' stroke-opacity='.42'%3E%3Ccircle r='16' stroke-width='3'/%3E%3Ccircle r='10.5' stroke-width='4' stroke-dasharray='4.1 4.15'/%3E%3C/g%3E%3Cpath transform='translate(30 104)' d='M0 18L-2 4L6 10L12 0L18 10L26 4L24 18Z' stroke='rgb(255,244,226)' stroke-opacity='.12' stroke-width='2.5'/%3E%3Cg transform='translate(112 110)' stroke='rgb(255,198,41)' stroke-opacity='.24' stroke-width='4'%3E%3Cpath d='M0 14L8 0M12 18L26 8M14 30L30 28'/%3E%3C/g%3E%3Cg fill='rgb(255,244,226)' fill-opacity='.1' stroke='none'%3E%3Ccircle cx='84' cy='88' r='2'/%3E%3Ccircle cx='150' cy='150' r='1.6'/%3E%3Ccircle cx='70' cy='14' r='1.6'/%3E%3Ccircle cx='8' cy='76' r='1.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
  animation: drift 26s linear infinite;
  will-change: transform;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(232, 35, 43, .24), rgba(232, 35, 43, 0) 62%),
    radial-gradient(140% 100% at 50% 45%, rgba(15, 10, 11, 0) 40%, rgba(15, 10, 11, .85) 100%);
}
@keyframes drift { to { transform: translate3d(160px, -160px, 0); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: linear-gradient(var(--ink) 35%, rgba(15, 10, 11, 0));
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px 14px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 4px 3px 3px;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 0 2px var(--line);
  transition: transform .12s ease;
}
.balance:active { transform: translateY(3px); }
.balance__chip { width: 30px; height: 30px; flex: none; }
.balance__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  min-width: 4.2ch;
}
.balance__plus {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-y);
  border: 2.5px solid var(--line);
  color: var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
}
.balance.is-bumped { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }

/* round buttons are pipe openings seen from above */
.mouth {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  border: 3px solid var(--line);
  color: var(--cream);
  background:
    radial-gradient(circle closest-side, #120A0C 0 60%, var(--line) 61% 67%, rgba(0, 0, 0, 0) 68%),
    radial-gradient(circle at 34% 28%, #FF8086 0, var(--red) 42%, #8E0F16 100%);
  box-shadow: 0 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.mouth--sm { width: 44px; height: 44px; }
.mouth--sm svg { width: 17px; height: 17px; }
.mouth--sm:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }

/* ---------- layout ---------- */
.app {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 26px;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .01em;
  text-wrap: balance;
  text-shadow: var(--outline-text);
}
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
.section__meta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 0 4px;
  overflow-x: clip; /* the spinning rays' corners stay inside the column */
}
.hero__rays {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: min(88vw, 440px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 198, 41, .16) 0deg 9deg, rgba(255, 198, 41, 0) 9deg 18deg);
  -webkit-mask: radial-gradient(circle closest-side, #000 25%, rgba(0, 0, 0, 0) 100%);
  mask: radial-gradient(circle closest-side, #000 25%, rgba(0, 0, 0, 0) 100%);
  animation: spin 50s linear infinite;
}
.hero__logo {
  position: relative;
  width: clamp(200px, 62vw, 290px);
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .5));
  animation: logo-in .8s cubic-bezier(.34, 1.56, .64, 1) backwards, float 4.5s ease-in-out .8s infinite;
}
@media (min-width: 860px) {
  .hero__logo { width: 250px; }
}

/* ---------- pipe buttons ---------- */
.games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}
@media (min-width: 860px) {
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
}
.pipe {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  text-align: center;
  filter: drop-shadow(0 7px 0 rgba(0, 0, 0, .6));
  transition: transform .12s ease;
  animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.pipe:focus-visible { outline-offset: 6px; border-radius: 18px; }
/* the game rises out of the pipe; its bottom edge is tucked behind the rim */
.pipe__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 82%;
  aspect-ratio: 160 / 124; /* the bottom 14 units of each drawing sit behind the rim */
  margin-bottom: -12px;
  border: 3px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: var(--panel);
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.pipe__art svg { display: block; width: 100%; height: 100%; }
.pipe__rim {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 30px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: var(--pipe-x);
}
.pipe__rim::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 3px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 244, 226, .35);
}
.pipe__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 82%;
  padding: 10px 6px 13px;
  border: 3px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0, rgba(0, 0, 0, 0) 12px), var(--pipe-x);
}
.pipe__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
  color: var(--cream);
  text-shadow: var(--outline-text);
  overflow-wrap: anywhere;
}
.pipe__tag {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}
.pipe__tag.fa { font-family: var(--font-fa); font-weight: 800; font-size: .85rem; }

@media (hover: hover) {
  .pipe:hover .pipe__art { transform: translateY(-5px); }
  .mini:hover .mini__art { transform: translateY(-4px); }
}
/* press: the pipe dips and the game sinks back inside */
.pipe:active { transform: translateY(3px); }
.pipe:active .pipe__art { transform: translateY(10px); }

.pill {
  position: absolute;
  top: 7px;
  right: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--line);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pill--live { background: var(--red); color: var(--cream); }
.pill--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cream);
  animation: blink 1.1s steps(2, jump-none) infinite;
}

/* ---------- game art motion ---------- */
.plinko-ball { transform: translate(110px, 98px); animation: plinko 3.4s infinite; }
.plinko-hit { animation: bin-hit 3.4s infinite; }
@keyframes plinko {
  0%   { transform: translate(80px, -8px); opacity: 0; animation-timing-function: ease-in; }
  6%   { opacity: 1; }
  14%  { transform: translate(80px, 12px); animation-timing-function: ease-out; }
  26%  { transform: translate(70px, 28px); animation-timing-function: ease-out; }
  38%  { transform: translate(80px, 44px); animation-timing-function: ease-out; }
  50%  { transform: translate(90px, 60px); animation-timing-function: ease-out; }
  62%  { transform: translate(100px, 76px); animation-timing-function: ease-in; }
  74%  { transform: translate(110px, 98px); opacity: 1; }
  90%  { transform: translate(110px, 98px); opacity: 1; }
  100% { transform: translate(110px, 98px); opacity: 0; }
}
@keyframes bin-hit {
  0%, 73%, 100% { fill: #FF6A2B; }
  76%, 90% { fill: #FFF4E2; }
}

.crash-line { stroke: var(--red); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.crash-tip { fill: var(--gold); stroke: var(--line); stroke-width: 1.5; }
.crash-mult {
  font-family: var(--font-display);
  font-size: 23px;
  fill: var(--cream);
  stroke: var(--line);
  stroke-width: 4px;
  paint-order: stroke;
  font-variant-numeric: tabular-nums;
}
.crash-status { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: .14em; fill: var(--red); }
.is-crashed .crash-line { stroke: #6B5357; }
.is-crashed .crash-mult { fill: var(--red); }
.is-crashed .crash-tip { fill: var(--red); }

.ck-d circle { fill: #1F1416; stroke: #000; stroke-width: 1.3; }
.ck-l circle { fill: #FFF4E2; stroke: #000; stroke-width: 1.3; }
.nard-die { transform-box: fill-box; transform-origin: center; animation: tumble 2.8s ease-in-out infinite; }
.nard-die--b { animation-delay: -.35s; }

.bridge-die { animation: bob 2.5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.lava { animation: lava 3s linear infinite; }
.pawn { transform: translate(80px, 56px); animation: hop 6s infinite; }
@keyframes hop {
  0%   { transform: translate(16px, 67px); opacity: 0; }
  4%   { transform: translate(16px, 67px); opacity: 1; animation-timing-function: ease-out; }
  9%   { transform: translate(29px, 46px); animation-timing-function: ease-in; }
  14%  { transform: translate(42px, 56px); animation-timing-function: ease-out; }
  21%  { transform: translate(51.5px, 42px); animation-timing-function: ease-in; }
  28%  { transform: translate(61px, 56px); animation-timing-function: ease-out; }
  35%  { transform: translate(70.5px, 42px); animation-timing-function: ease-in; }
  42%  { transform: translate(80px, 56px); animation-timing-function: ease-out; }
  49%  { transform: translate(89.5px, 42px); animation-timing-function: ease-in; }
  56%  { transform: translate(99px, 56px); animation-timing-function: ease-out; }
  63%  { transform: translate(108.5px, 42px); animation-timing-function: ease-in; }
  70%  { transform: translate(118px, 56px); animation-timing-function: ease-out; }
  77%  { transform: translate(131px, 46px); animation-timing-function: ease-in; }
  84%  { transform: translate(144px, 67px); opacity: 1; }
  95%  { transform: translate(144px, 67px); opacity: 1; }
  100% { transform: translate(144px, 67px); opacity: 0; }
}

.spark { transform-box: fill-box; transform-origin: center; animation: spark .7s ease-in-out infinite alternate; }
.wheel-spin { transform-origin: 24px 26px; animation: spin 7s linear infinite; }
.coin { transform-box: fill-box; transform-origin: center; animation: flip 2.8s ease-in-out infinite; }
.hilo-front { animation: deal 3.2s ease-in-out infinite; }
.hilo-num { font-family: var(--font-display); font-size: 17px; fill: var(--red); }

/* ---------- bonus strip ---------- */
.bonus {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  padding-left: 12px;
  padding-right: 22px;
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 0 0 2px var(--gold), 0 6px 0 2px var(--line);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.bonus::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 30%;
  background: linear-gradient(100deg, rgba(255, 244, 226, 0), rgba(255, 244, 226, .09), rgba(255, 244, 226, 0));
  animation: shine 5s ease-in-out infinite;
  pointer-events: none;
}
.bonus.is-flash { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
.bonus__chip { width: 52px; height: 52px; animation: float 3.6s ease-in-out infinite; }
.bonus__title { font-size: 1.3rem; }
.bonus__text { margin-top: 2px; font-size: .85rem; color: var(--muted); }

/* horizontal pipe: the body is the button, the flange at the right is the pipe end */
.pipe-btn {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: 96px;
  height: 44px;
  padding: 0 16px 0 14px;
  border: 3px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: var(--gold-y);
  color: var(--line);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pipe-btn::after {
  content: "";
  position: absolute;
  top: -7px;
  bottom: -7px;
  right: -12px;
  width: 15px;
  border: 3px solid var(--line);
  border-radius: 6px;
  background: inherit;
  box-shadow: 0 4px 0 var(--line);
}
.pipe-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.pipe-btn:disabled { background: var(--dark-y); color: var(--cream); cursor: default; font-size: 1rem; }

/* ---------- mini pipes ---------- */
.more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 10px;
}
@media (min-width: 860px) {
  .more { gap: 16px 22px; }
  .mini { max-width: 170px; justify-self: center; }
  .mini__art { width: 60px; height: 60px; margin-bottom: -16px; }
}
.mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .6));
  transition: transform .12s ease;
  animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 200ms);
}
.mini__art {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-bottom: -14px;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.mini__art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mini__rim {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 22px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--pipe-x);
}
.mini__rim::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 2px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 244, 226, .35);
}
.mini__body {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 80%;
  min-height: 42px;
  padding: 6px 2px 8px;
  border: 3px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0, rgba(0, 0, 0, 0) 9px), var(--pipe-x);
}
.mini__name {
  font-family: var(--font-display);
  font-size: .92rem;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 2px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line), 0 -1px 0 var(--line);
}
.mini:active { transform: translateY(3px); }
.mini:active .mini__art { transform: translateY(9px); }

/* ---------- tab bar: one long pipe ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  border-top: 3px solid var(--line);
  background: var(--pipe-y);
}
.tabbar__inner {
  max-width: 560px;
  margin: 0 auto;
  height: var(--tabbar-h);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--cream);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
  transition: transform .12s ease;
}
.tab svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.tab:active { transform: translateY(2px); }
.tab.is-active { color: var(--gold); }
.tab--center { justify-content: flex-end; padding-bottom: 7px; }
.mouth--lg {
  width: 66px;
  height: 66px;
  margin-top: -34px;
  margin-bottom: 1px;
  box-shadow: 0 0 0 3px var(--gold), 0 5px 0 3px var(--line);
}
.tab__chip { width: 30px; height: 30px; animation: peek 2.6s ease-in-out infinite; }

/* ---------- toast + floating reward ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 22px);
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--line);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 0 var(--line);
  transform: translateX(-50%);
}
.toast.is-in { animation: toast-in .35s cubic-bezier(.34, 1.56, .64, 1); }
.float-text {
  position: fixed;
  z-index: 50;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--gold);
  text-shadow: var(--outline-text);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: float-up 1.1s ease-out forwards;
}

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-6px) rotate(-1deg); } }
@keyframes logo-in { from { transform: scale(.75) rotate(-5deg); } }
@keyframes pop { from { transform: translateY(14px) scale(.92); } }
@keyframes bump { 40% { transform: scale(1.08); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes tumble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg) translateY(-3px); } 82% { transform: rotate(10deg); } }
@keyframes bob { 50% { transform: translateY(2.5px); } }
@keyframes lava { to { transform: translateX(-25px); } }
@keyframes spark { to { transform: scale(1.35) rotate(25deg); } }
@keyframes flip { 0%, 35% { transform: scaleX(1) translateY(0); } 50% { transform: scaleX(.06) translateY(-4px); } 65%, 100% { transform: scaleX(1) translateY(0); } }
@keyframes deal { 0%, 55%, 100% { transform: translate(0, 0); } 70% { transform: translate(2px, -4px); } }
@keyframes peek { 50% { transform: translateY(-3px) rotate(8deg); } }
@keyframes shine { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(560%); } }
@keyframes toast-in { from { transform: translate(-50%, 16px) scale(.9); } }
@keyframes float-up { to { transform: translate(-50%, -260%); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pipe:active .pipe__art, .mini:active .mini__art { transform: none; }
}
