@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0e1020;
  --panel: rgba(14, 16, 32, 0.78);
  --panel-strong: rgba(18, 22, 44, 0.94);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f6f7fb;
  --muted: rgba(246, 247, 251, 0.72);
  --primary: #ff8e53;
  --primary-strong: #ff6b2d;
  --accent: #67e8f9;
  --good: #6ee7b7;
  --warn: #fde68a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Fredoka", "Trebuchet MS", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 142, 83, 0.24), transparent 30%),
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.18), transparent 25%),
    linear-gradient(160deg, #090a13 0%, #12172b 45%, #0b1320 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.page--home {
  overflow: hidden;
}

body.is-playing {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

code {
  color: #f8c98f;
}

.bg-orb {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.bg-orb--one {
  width: 240px;
  height: 240px;
  top: -40px;
  left: -50px;
  background: radial-gradient(circle, rgba(255, 142, 83, 0.55), transparent 70%);
}

.bg-orb--two {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.36), transparent 68%);
}

.app-shell {
  position: relative;
  min-height: 100vh;
}

.intro-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(0, 1fr);
  gap: 0;
  min-height: 100vh;
  width: 100%;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 142, 83, 0.22), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(103, 232, 249, 0.14), transparent 22%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(160deg, rgba(8, 10, 18, 0.96) 0%, rgba(14, 18, 34, 0.96) 50%, rgba(7, 10, 18, 0.98) 100%);
}

.intro-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 20%, rgba(255, 214, 125, 0.14) 0 10px, transparent 11px),
    radial-gradient(circle at 76% 14%, rgba(255, 214, 125, 0.1) 0 8px, transparent 9px),
    radial-gradient(circle at 62% 74%, rgba(255, 214, 125, 0.08) 0 12px, transparent 13px),
    radial-gradient(circle at 22% 78%, rgba(255, 214, 125, 0.1) 0 9px, transparent 10px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 34%);
  opacity: 0.9;
  animation: cookie-drift 18s ease-in-out infinite;
  pointer-events: none;
}

.intro-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.08), transparent 12%),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.05), transparent 11%),
    radial-gradient(circle at 60% 82%, rgba(255, 255, 255, 0.06), transparent 14%);
  pointer-events: none;
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 30px);
}

.menu-stage {
  position: relative;
  width: min(100%, 980px);
  min-height: calc(100vh - 36px);
  display: grid;
  place-items: center;
}

.menu-stage__decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.menu-stage__content {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: grid;
  gap: 14px;
  justify-items: center;
}

.brand--center {
  text-align: center;
  margin-bottom: 4px;
}

.brand--center .eyebrow {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 132, 67, 0.98), rgba(201, 86, 22, 0.98));
  color: #fff7e7;
  box-shadow:
    0 10px 0 rgba(95, 38, 6, 0.55),
    0 16px 30px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.brand--center h1 {
  font-size: clamp(4.3rem, 11vw, 7.2rem);
  line-height: 0.84;
  color: #fff1d0;
  text-shadow:
    0 4px 0 #9b5200,
    0 8px 0 #7f4200,
    0 12px 0 #663500,
    0 16px 28px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.06em;
}

.brand--center h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 224, 125, 0.95), rgba(255, 224, 125, 0));
  filter: blur(2px);
}

.card--menu,
.card--rules {
  width: 100%;
  border-radius: 28px;
  border: 3px solid rgba(255, 215, 145, 0.62);
  background:
    linear-gradient(180deg, rgba(54, 31, 50, 0.98) 0%, rgba(38, 21, 37, 0.98) 100%);
  box-shadow:
    0 14px 0 rgba(75, 41, 21, 0.72),
    0 24px 40px rgba(0, 0, 0, 0.35);
}

.card--menu {
  padding: 22px 22px 24px;
}

.card--rules {
  padding: 16px 18px 18px;
}

.card__header--banner {
  position: relative;
  width: fit-content;
  min-width: 270px;
  margin: -48px auto 18px;
  padding: 12px 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f4c342 0%, #d08b16 100%);
  box-shadow:
    0 8px 0 rgba(99, 56, 0, 0.72),
    0 18px 30px rgba(0, 0, 0, 0.22);
  color: #5a2c00;
  text-transform: uppercase;
}

.card__header--banner::before,
.card__header--banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 32px;
  background: linear-gradient(180deg, #f4c342 0%, #c47d10 100%);
  transform: translateY(-50%) skewX(-18deg);
  border-radius: 6px;
}

.card__header--banner::before {
  left: -12px;
}

.card__header--banner::after {
  right: -12px;
}

.card__header--banner h2 {
  color: inherit;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
}

.card__header--rules {
  margin: -38px auto 12px;
  background: linear-gradient(180deg, #7cc7ff 0%, #457bd6 100%);
  color: #eef6ff;
  box-shadow:
    0 8px 0 rgba(25, 62, 129, 0.72),
    0 18px 30px rgba(0, 0, 0, 0.18);
}

.card__header--rules::before,
.card__header--rules::after {
  background: linear-gradient(180deg, #7cc7ff 0%, #457bd6 100%);
}

.form--menu {
  gap: 14px;
}

.form--menu label {
  position: relative;
  padding-left: 54px;
  gap: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form--menu label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 230, 188, 0.26), rgba(0, 0, 0, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form--menu label::after {
  position: absolute;
  left: 0;
  top: 24px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: rgba(255, 243, 220, 0.9);
  font-size: 1rem;
}

.form--menu label:nth-of-type(1)::after {
  content: "👤";
}

.form--menu label:nth-of-type(2)::after {
  content: "☎";
}

.form--menu label:nth-of-type(3)::after {
  content: "✉";
}

.form--menu label:nth-of-type(4)::after {
  content: "★";
}

.form--menu input {
  border-radius: 999px;
  padding: 15px 18px 15px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.button--start {
  position: relative;
  margin-top: 8px;
  min-height: 68px;
  border-radius: 20px;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    0 10px 0 rgba(187, 92, 15, 0.65),
    0 20px 30px rgba(0, 0, 0, 0.2);
}

.button--start::before,
.button--start::after {
  content: "🐾";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
}

.button--start::before {
  left: 16px;
}

.button--start::after {
  right: 16px;
}

.rules--menu {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: #f6e9d0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rules--menu li {
  position: relative;
  padding-left: 26px;
}

.rules--menu li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0;
  color: #ffca67;
}

.cookie-float,
.cookie-chip {
  position: absolute;
  border-radius: 50%;
}

.cookie-float {
  width: 74px;
  height: 74px;
  background:
    radial-gradient(circle at 32% 30%, rgba(92, 52, 23, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 65% 28%, rgba(92, 52, 23, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 42% 62%, rgba(92, 52, 23, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 68% 65%, rgba(92, 52, 23, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 48%, #ffd78e 0 36%, #d17b27 62%, #6e3510 100%);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.18);
  opacity: 0.95;
  animation: cookie-drift 12s ease-in-out infinite;
}

.cookie-float--a {
  top: 10%;
  left: 8%;
  transform: rotate(-12deg);
}

.cookie-float--b {
  top: 18%;
  right: 12%;
  width: 62px;
  height: 62px;
  animation-duration: 14s;
}

.cookie-float--c {
  bottom: 16%;
  left: 10%;
  width: 94px;
  height: 94px;
  animation-duration: 15s;
}

.cookie-float--d {
  bottom: 20%;
  right: 16%;
  width: 56px;
  height: 56px;
  animation-duration: 11s;
}

.cookie-float--e {
  top: 44%;
  left: 4%;
  width: 46px;
  height: 46px;
  animation-duration: 9s;
}

.cookie-chip {
  width: 140px;
  height: 140px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 40% 40%, rgba(255, 208, 122, 0.38), transparent 32%),
    linear-gradient(145deg, rgba(255, 168, 71, 0.6), rgba(113, 60, 23, 0.45));
  filter: blur(10px);
  opacity: 0.35;
}

.cookie-chip--left {
  left: -18px;
  bottom: 12%;
}

.cookie-chip--right {
  right: -12px;
  top: 16%;
}

.cookie-spark {
  position: absolute;
  width: 12px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 216, 140, 0.95), rgba(255, 118, 43, 0));
  filter: blur(1px);
  opacity: 0.8;
  animation: spark-fall 4.2s ease-in-out infinite;
}

.cookie-spark--a {
  left: 15%;
  top: 14%;
  animation-duration: 4.7s;
}

.cookie-spark--b {
  right: 18%;
  top: 32%;
  animation-duration: 5.2s;
}

.cookie-spark--c {
  left: 46%;
  bottom: 18%;
  animation-duration: 4.9s;
}
.intro-main,
.intro-visual {
  position: relative;
  z-index: 1;
}

.intro-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 50px);
}

.intro-visual {
  min-height: 100vh;
  padding: clamp(24px, 4vw, 50px);
  display: grid;
  align-items: center;
  justify-items: center;
}

.intro-visual::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 42px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 142, 83, 0.32), transparent 18%),
    radial-gradient(circle at 82% 30%, rgba(103, 232, 249, 0.24), transparent 22%),
    radial-gradient(circle at 50% 65%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 120px rgba(0, 0, 0, 0.25);
}

.intro-visual__flare {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
}

.intro-visual__flare--one {
  width: 220px;
  height: 220px;
  top: 14%;
  left: 14%;
  background: radial-gradient(circle, rgba(255, 142, 83, 0.3), transparent 68%);
}

.intro-visual__flare--two {
  width: 260px;
  height: 260px;
  right: 12%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.22), transparent 70%);
}

.cat-card {
  position: absolute;
  margin: 0;
  padding: 12px;
  border-radius: 24px;
  background: rgba(14, 16, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transform-origin: center;
  animation: bob 6.5s ease-in-out infinite;
}

.cat-card img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
}

.cat-card--hero {
  width: min(76%, 430px);
  right: 10%;
  top: 12%;
  animation-delay: -1.4s;
}

.cat-card--accent {
  width: min(28%, 190px);
}

.cat-card--top {
  left: 8%;
  top: 14%;
  animation-delay: -0.8s;
}

.cat-card--bottom {
  right: 8%;
  bottom: 10%;
  animation-delay: -2.2s;
}

.cat-card--mini {
  width: min(18%, 130px);
  padding: 10px;
  transform: rotate(-8deg);
  opacity: 0.92;
}

.cat-card--mini-a {
  left: 18%;
  bottom: 16%;
}

.cat-card--mini-b {
  right: 18%;
  top: 24%;
  transform: rotate(10deg);
}

.paw-float {
  position: absolute;
  width: 68px;
  height: 68px;
  background-image: url("./assets/cats/patinha.webp");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.12;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
  animation: paw-float 10s ease-in-out infinite;
  z-index: 0;
}

.paw-float--one {
  top: 12%;
  left: 8%;
  animation-duration: 10.5s;
}

.paw-float--two {
  top: 24%;
  right: 10%;
  animation-duration: 12s;
  animation-delay: -2s;
}

.paw-float--three {
  bottom: 18%;
  left: 18%;
  animation-duration: 11.2s;
  animation-delay: -4s;
}

.paw-float--four {
  right: 18%;
  bottom: 24%;
  animation-duration: 9.5s;
  animation-delay: -1s;
}

.game-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  padding: clamp(10px, 1.6vw, 22px);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 126, 53, 0.2), transparent 18%),
    radial-gradient(circle at 82% 10%, rgba(104, 78, 255, 0.2), transparent 16%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(180deg, #16061e 0%, #2a0d31 24%, #2d0d3f 58%, #19091f 100%);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.game-screen.is-visible {
  display: flex;
}

.game-shell {
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 1vw, 14px);
  min-height: 0;
}

.game-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 1.2vw, 18px);
}

.game-brand {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
}

.game-brand img {
  display: block;
  width: min(100%, 410px);
  height: auto;
  filter:
    drop-shadow(0 5px 0 rgba(83, 31, 0, 0.9))
    drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 32px rgba(255, 122, 50, 0.18));
}

.game-live {
  display: grid;
  justify-items: center;
  align-self: center;
  padding-top: 0;
}

.game-live__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 2px solid rgba(255, 164, 72, 0.55);
  background: linear-gradient(180deg, rgba(69, 18, 69, 0.88), rgba(33, 11, 38, 0.96));
  color: #ffca66;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.02) inset,
    0 8px 18px rgba(0, 0, 0, 0.25);
}

.game-live h2 {
  margin: 10px 0 0;
  max-width: 18ch;
  text-align: center;
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
  line-height: 1.08;
  color: #fff3dc;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.game-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.hud-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(73, 24, 73, 0.96), rgba(37, 13, 42, 0.96));
  border: 2px solid rgba(147, 63, 177, 0.5);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.03) inset,
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.hud-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #efe7ff 0%, #8ea8ff 100%);
  color: #2c2f6c;
  font-size: 1.35rem;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.hud-card__label {
  display: block;
  color: #f6d8ff;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.hud-card strong {
  font-size: clamp(2.1rem, 3vw, 3rem);
  color: #ffcf57;
  line-height: 1;
}

.game-board {
  min-height: 0;
  display: grid;
  padding-top: 0;
  margin-top: -4px;
}

.game-board__frame {
  min-height: 0;
  padding: 8px;
  border-radius: 42px;
  border: 4px solid #c77b16;
  background:
    linear-gradient(180deg, rgba(255, 187, 78, 0.14), rgba(197, 111, 8, 0.1)),
    linear-gradient(180deg, rgba(56, 18, 58, 0.98), rgba(28, 10, 33, 0.98));
  box-shadow:
    0 0 0 4px rgba(255, 221, 148, 0.1) inset,
    0 16px 30px rgba(0, 0, 0, 0.34);
}

.game-screen .stage {
  min-height: calc(100vh - 168px);
  border-radius: 34px;
  border: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 196, 98, 0.12), transparent 0 18%),
    radial-gradient(circle at 82% 24%, rgba(255, 196, 98, 0.08), transparent 0 16%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), transparent 0 34%),
    linear-gradient(180deg, rgba(50, 12, 70, 0.96), rgba(29, 9, 43, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 2px rgba(255, 210, 122, 0.08),
    0 0 60px rgba(0, 0, 0, 0.28);
}

.is-hidden {
  display: none !important;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.brand h1,
.stage-shell__header h2,
.card h2,
.overlay__card h2 {
  margin: 0;
  line-height: 1;
}

.brand h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.lede {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.card {
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card--tight {
  padding-bottom: 14px;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.form input::placeholder {
  color: rgba(246, 247, 251, 0.42);
}

.form input:focus {
  border-color: rgba(103, 232, 249, 0.7);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.button {
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #10131c;
  background: linear-gradient(135deg, #ffe07d 0%, var(--primary) 40%, var(--primary-strong) 100%);
  box-shadow: 0 12px 24px rgba(255, 120, 64, 0.25);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.rules {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 1.7rem;
}

.dashboard-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.dashboard-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-body {
  display: grid;
  gap: 16px;
}

.dashboard-body.is-collapsed {
  display: none;
}

.stage-wrap {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
}

.stage-shell {
  display: grid;
  gap: 16px;
  min-height: 0;
}

.stage-shell__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.stage-shell__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.hud {
  display: flex;
  gap: 12px;
}

.hud__item {
  min-width: 106px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud__item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.hud__item strong {
  font-size: 1.7rem;
}

.stage {
  position: relative;
  min-height: 640px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 15, 27, 0.92) 0%, rgba(13, 21, 38, 0.96) 54%, rgba(7, 10, 20, 0.98) 100%);
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.38);
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M11 5c-1.6 0-3 1.6-3 3.2 0 1.7 1.4 3.1 3 3.1s3-1.4 3-3.1C14 6.6 12.6 5 11 5zm10 0c-1.6 0-3 1.6-3 3.2 0 1.7 1.4 3.1 3 3.1s3-1.4 3-3.1C24 6.6 22.6 5 21 5zM6.7 11.3c-1.5 0-2.7 1.2-2.7 2.7 0 1.9 1.8 3.4 3.7 3.4 1.8 0 2.9-1.2 2.9-2.7 0-1.9-2.1-3.4-3.9-3.4zm18.6 0c-1.8 0-3.9 1.5-3.9 3.4 0 1.5 1.1 2.7 2.9 2.7 1.9 0 3.7-1.5 3.7-3.4 0-1.5-1.2-2.7-2.7-2.7zM16 12c-4.4 0-7.8 3.3-7.8 7 0 2.2 1.5 4.2 3.4 5.4 1.3.8 2.5 1.2 4.4 1.2s3.1-.4 4.4-1.2c1.9-1.2 3.4-3.2 3.4-5.4 0-3.7-3.4-7-7.8-7z' fill='%23ffe7c1'/></svg>") 15 15, pointer;
  touch-action: none;
  user-select: none;
}

.stage__grid,
.stage__glow,
.stage__floor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage__grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 60px, 72px 100%;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 92%);
}

.stage__glow {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 142, 83, 0.22), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(103, 232, 249, 0.15), transparent 18%),
    radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.08), transparent 20%);
}

.stage__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(9, 4, 14, 0.4) 100%);
}

.stage__floor {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 65%, rgba(255, 255, 255, 0.08) 100%);
  transform: translateZ(-1px);
}

.stage__spark,
.stage__paw {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.stage__spark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 98, 1), rgba(255, 196, 98, 0));
  box-shadow: 0 0 16px rgba(255, 169, 66, 0.9);
}

.stage__spark--a {
  left: 14%;
  top: 18%;
}

.stage__spark--b {
  right: 20%;
  top: 22%;
}

.stage__spark--c {
  left: 62%;
  bottom: 18%;
}

.stage__paw {
  width: 92px;
  height: 92px;
  background-image: url("./assets/cats/patinha.webp");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
}

.stage__paw--a {
  left: 16%;
  top: 20%;
  transform: rotate(-18deg);
}

.stage__paw--b {
  right: 18%;
  top: 16%;
  transform: rotate(12deg);
}

.stage__prompt {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(500px, calc(100% - 40px));
  padding: 24px 28px;
  border-radius: 24px;
  text-align: center;
  background: rgba(8, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.stage__prompt p {
  margin: 0;
  line-height: 1.55;
}

.stage__prompt p + p {
  margin-top: 8px;
}

.spawn-layer,
.fx-layer {
  position: absolute;
  inset: 0;
}

.spawn-layer {
  pointer-events: auto;
}

.fx-layer {
  pointer-events: none;
}

.falling-item {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease;
}

.falling-item__core {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  font-size: 0;
  font-weight: 700;
}

.falling-item__label {
  display: none;
}

.falling-item--kibble .falling-item__core {
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.34), transparent 24%),
    radial-gradient(circle at 50% 50%, #ffca6a 0 36%, #d87e28 64%, #6d340f 100%);
  border: 2px solid rgba(255, 213, 122, 0.28);
  box-shadow:
    0 0 0 6px rgba(255, 191, 86, 0.1),
    0 0 28px rgba(255, 171, 68, 0.9),
    inset 0 4px 0 rgba(255, 255, 255, 0.14);
}

.falling-item--bonus .falling-item__core {
  background: linear-gradient(180deg, #f04b39 0%, #c51f2d 48%, #7f0f1d 100%);
  border-radius: 44% / 44%;
  border: 2px solid rgba(255, 140, 138, 0.42);
  box-shadow:
    0 0 0 5px rgba(255, 104, 92, 0.08),
    0 0 30px rgba(255, 82, 74, 0.92),
    inset 0 5px 0 rgba(255, 255, 255, 0.15);
}

.falling-item--bonus::before {
  content: "";
  position: absolute;
  inset: 17% 14% 33% 14%;
  border-radius: 999px;
  border: 8px solid #ff563f;
  box-shadow:
    0 0 0 2px #ffce66,
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

.falling-item--bonus::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a6 0 18%, #d69019 22% 100%);
  box-shadow:
    0 0 0 4px rgba(255, 180, 63, 0.16),
    0 0 18px rgba(255, 214, 128, 0.9);
}

.falling-item--obstacle .falling-item__core {
  background: linear-gradient(180deg, #5fd7ff 0%, #158ee8 48%, #0b63c9 100%);
  border-radius: 58% 42% 62% 38% / 44% 48% 52% 56%;
  transform: rotate(45deg) scale(0.92);
  border: 2px solid rgba(181, 244, 255, 0.36);
  box-shadow:
    0 0 0 6px rgba(98, 205, 255, 0.08),
    0 0 34px rgba(52, 170, 255, 0.95),
    inset 0 4px 0 rgba(255, 255, 255, 0.18);
}

.falling-item--obstacle .falling-item__core::before {
  content: "";
  position: absolute;
  inset: 16% 26% 28% 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(0.6px);
  transform: rotate(-45deg);
}

.falling-item--bonus .falling-item__core::before {
  content: "";
  position: absolute;
  inset: 12% 22% 56% 22%;
  border-radius: 999px;
  background: rgba(255, 217, 165, 0.5);
}

.falling-item--kibble .falling-item__core::before {
  content: "";
  position: absolute;
  inset: 18% 18% 18% 18%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.14) 0 10%, transparent 12%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0 8%, transparent 10%),
    radial-gradient(circle at 45% 62%, rgba(92, 52, 23, 0.48) 0 9%, transparent 11%),
    radial-gradient(circle at 68% 66%, rgba(92, 52, 23, 0.48) 0 8%, transparent 10%),
    radial-gradient(circle at 52% 50%, transparent 0 38%, rgba(0, 0, 0, 0.06) 42%, transparent 44%);
  opacity: 0.8;
}

.falling-item--hit {
  filter: saturate(1.2);
}

.particle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: 0.95;
  will-change: transform, opacity;
}

.score-pop {
  position: absolute;
  font-size: 1rem;
  font-weight: 700;
  color: var(--warn);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}

.result-card {
  display: none;
}

.table-wrap {
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.58);
  backdrop-filter: blur(12px);
  z-index: 40;
}

.overlay--hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay__card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: 28px;
  background: rgba(10, 13, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  text-align: center;
}

.overlay__card--countdown {
  width: min(280px, 100%);
}

.countdown-value {
  font-size: clamp(4rem, 16vw, 7rem);
  line-height: 1;
  margin-top: 12px;
  color: #ffe7b2;
  text-shadow: 0 12px 40px rgba(255, 142, 83, 0.45);
}

.result-message {
  margin: 10px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.result-summary div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.result-summary strong {
  font-size: 1.7rem;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 1080px) {
  body.page--home {
    overflow: auto;
  }

  .intro-panel {
    display: flex;
    min-height: auto;
  }

  .menu-stage {
    min-height: auto;
    padding: 14px 0;
  }

  .menu-stage__content {
    width: min(100%, 560px);
  }

  .menu-stage__decor {
    min-height: auto;
  }

  .app-shell {
    min-height: 100vh;
  }

  .stage {
    min-height: 520px;
  }

  .game-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .game-brand img {
    width: min(100%, 360px);
  }

  .game-metrics {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .menu-stage {
    width: min(100%, 100%);
  }

  .menu-stage__content {
    width: 100%;
  }

  .brand--center h1 {
    font-size: clamp(3.5rem, 16vw, 5.6rem);
  }

  .card--menu,
  .card--rules {
    border-width: 2px;
    border-radius: 24px;
  }

  .card__header--banner {
    min-width: 220px;
    margin-top: -40px;
  }

  .form--menu {
    gap: 12px;
  }

  .form--menu label {
    padding-left: 48px;
  }

  .form--menu label::before,
  .form--menu label::after {
    width: 34px;
    height: 34px;
    top: 22px;
  }

  .button--start {
    min-height: 62px;
    font-size: 1rem;
  }

  .cookie-float {
    opacity: 0.8;
  }

  .cookie-float--a {
    width: 60px;
    height: 60px;
  }

  .cookie-float--b {
    width: 50px;
    height: 50px;
  }

  .cookie-float--c {
    width: 72px;
    height: 72px;
  }

  .cookie-float--d {
    width: 42px;
    height: 42px;
  }

  .cookie-float--e {
    width: 36px;
    height: 36px;
  }

  .cookie-chip {
    display: none;
  }

  .game-screen {
    padding: 12px;
  }

  .game-brand img {
    width: min(100%, 300px);
  }

  .game-live {
    padding-top: 2px;
  }

  .game-live h2 {
    max-width: 14ch;
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .game-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 420px;
  }

  .hud-card {
    padding: 12px 14px;
  }

  .hud-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .game-board__frame {
    padding: 8px;
    border-radius: 30px;
  }

  .game-screen .stage {
    min-height: calc(100vh - 320px);
    border-radius: 26px;
  }

  .game-shell__header {
    flex-direction: column;
    align-items: stretch;
  }

  .hud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-summary {
    grid-template-columns: 1fr;
  }
}

@keyframes paw-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1.08);
  }
  50% {
    transform: translate3d(24px, -10px, 0) rotate(-4deg) scale(1.12);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(1.08);
  }
}

@keyframes paw-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }
  50% {
    transform: translate3d(0, -14px, 0) rotate(6deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-1deg);
  }
}

@keyframes cookie-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-10deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(8deg);
  }
}

@keyframes spark-fall {
  0%,
  100% {
    opacity: 0.15;
    transform: translate3d(0, 0, 0) rotate(-16deg);
  }
  50% {
    opacity: 0.95;
    transform: translate3d(0, 14px, 0) rotate(-16deg);
  }
}

@keyframes cookie-pop {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -12px, 0) scale(1.04);
  }
}

body.is-playing .game-screen {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 154, 64, 0.12), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(126, 88, 255, 0.22), transparent 20%),
    radial-gradient(circle at 88% 18%, rgba(255, 175, 73, 0.15), transparent 18%),
    linear-gradient(180deg, #1c0833 0%, #11031f 56%, #14041f 100%);
}

body.is-playing .game-shell {
  gap: 1rem;
  padding: 1rem 1.25rem 1.15rem;
}

body.is-playing .game-topbar {
  grid-template-columns: minmax(280px, 1.05fr) minmax(250px, 0.95fr) auto;
  align-items: end;
  gap: 1rem;
}

body.is-playing .game-brand {
  align-items: flex-start;
  justify-self: start;
}

body.is-playing .game-brand img {
  width: min(30vw, 420px);
  max-width: 420px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

body.is-playing .game-live {
  margin: 0 auto;
  width: min(100%, 520px);
  min-height: 118px;
  padding: 1rem 1.5rem 1.2rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(76, 27, 103, 0.78), rgba(36, 11, 54, 0.88));
  border: 1px solid rgba(255, 164, 94, 0.34);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.is-playing .game-live__pill {
  margin-bottom: 0.35rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

body.is-playing .game-live h2 {
  font-size: clamp(1.75rem, 2.1vw, 3rem);
  line-height: 1.02;
}

body.is-playing .game-metrics {
  gap: 0.9rem;
}

body.is-playing .hud-card {
  min-width: 176px;
  min-height: 112px;
  padding: 1rem 1rem 0.95rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(91, 31, 116, 0.82), rgba(46, 13, 69, 0.9));
  border: 1px solid rgba(197, 101, 237, 0.25);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.is-playing .hud-card strong {
  font-size: clamp(2.4rem, 3vw, 4.2rem);
  line-height: 0.9;
  color: #ffcf5c;
  text-shadow:
    0 0 12px rgba(255, 186, 77, 0.4),
    0 4px 0 rgba(90, 35, 0, 0.25);
}

body.is-playing .game-board {
  padding-top: 0.15rem;
}

body.is-playing .game-board__frame {
  position: relative;
  border-radius: 34px;
  padding: 0.4rem;
  background:
    linear-gradient(180deg, rgba(255, 184, 82, 0.95), rgba(160, 88, 18, 0.88));
  box-shadow:
    0 0 0 1px rgba(255, 247, 222, 0.12),
    0 24px 50px rgba(0, 0, 0, 0.34);
}

body.is-playing .game-screen .stage {
  min-height: calc(100vh - 184px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.04), transparent 44%),
    radial-gradient(circle at 22% 18%, rgba(255, 167, 67, 0.11), transparent 18%),
    radial-gradient(circle at 82% 74%, rgba(81, 140, 255, 0.11), transparent 20%),
    linear-gradient(180deg, #331257 0%, #2a0f48 28%, #220b3c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 233, 193, 0.08),
    inset 0 0 90px rgba(0, 0, 0, 0.4);
}

body.is-playing .stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(0, 0, 0, 0.15) 100%),
    linear-gradient(transparent, rgba(0, 0, 0, 0.12));
  pointer-events: none;
  z-index: 0;
}

body.is-playing .stage__vignette {
  background:
    radial-gradient(circle at 50% 45%, transparent 0 43%, rgba(8, 2, 16, 0.48) 100%),
    linear-gradient(180deg, rgba(255, 181, 84, 0.05), transparent 22%, transparent 78%, rgba(255, 181, 84, 0.06));
}

body.is-playing .stage__spark {
  filter: blur(0.2px) drop-shadow(0 0 10px rgba(255, 177, 75, 0.45));
}

body.is-playing .falling-item {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

body.is-playing .falling-item--kibble .falling-item__core {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 246, 211, 0.95), rgba(255, 246, 211, 0.14) 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #a96b22 0%, #8e5419 58%, #5c320d 100%);
  box-shadow:
    0 0 0 2px rgba(255, 201, 93, 0.12),
    0 0 28px rgba(255, 170, 72, 0.45),
    inset 0 4px 8px rgba(255, 232, 168, 0.22);
}

body.is-playing .falling-item--bonus .falling-item__core {
  background:
    linear-gradient(180deg, #f04a34 0%, #c51d21 54%, #8f0e16 100%);
  border-radius: 22px;
  box-shadow:
    0 0 0 2px rgba(255, 201, 140, 0.08),
    0 0 24px rgba(255, 81, 74, 0.45);
}

body.is-playing .falling-item--bonus::before {
  content: "";
  position: absolute;
  inset: 17% 14% 33% 14%;
  border-radius: 999px;
  border: 8px solid #ff563f;
  box-shadow:
    0 0 0 2px #ffce66,
    inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

body.is-playing .falling-item--bonus::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a6 0 18%, #d69019 22% 100%);
  box-shadow:
    0 0 0 4px rgba(255, 180, 63, 0.16),
    0 0 18px rgba(255, 214, 128, 0.9);
}

body.is-playing .falling-item--obstacle .falling-item__core {
  background:
    radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.12) 18%, transparent 19%),
    linear-gradient(180deg, #5fd7ff 0%, #158ee8 48%, #0b63c9 100%);
  border-radius: 58% 42% 62% 38% / 44% 48% 52% 56%;
  transform: rotate(45deg) scale(0.92);
  border: 2px solid rgba(181, 244, 255, 0.36);
  box-shadow:
    0 0 0 6px rgba(98, 205, 255, 0.08),
    0 0 34px rgba(52, 170, 255, 0.95),
    inset 0 4px 0 rgba(255, 255, 255, 0.18);
}

body.is-playing .falling-item--obstacle .falling-item__core::before {
  content: "";
  position: absolute;
  inset: 16% 26% 28% 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  filter: blur(0.6px);
  transform: rotate(-45deg);
}

body.is-playing .falling-item--kibble .falling-item__core::before {
  content: "";
  position: absolute;
  inset: 18% 18% 18% 18%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.14) 0 10%, transparent 12%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0 8%, transparent 10%),
    radial-gradient(circle at 45% 62%, rgba(92, 52, 23, 0.48) 0 9%, transparent 11%),
    radial-gradient(circle at 68% 66%, rgba(92, 52, 23, 0.48) 0 8%, transparent 10%),
    radial-gradient(circle at 52% 50%, transparent 0 38%, rgba(0, 0, 0, 0.06) 42%, transparent 44%);
  opacity: 0.8;
}

body.is-playing .stage__paw {
  background-image: none;
  opacity: 0.16;
  filter: blur(0.1px);
}

body.is-playing .stage__paw::before {
  content: "";
  position: absolute;
  inset: 20% 24% 18% 24%;
  border-radius: 48% 48% 44% 44% / 56% 56% 38% 38%;
  background:
    radial-gradient(circle at 24% 18%, rgba(109, 38, 122, 0.82) 0 14%, transparent 15%),
    radial-gradient(circle at 42% 10%, rgba(109, 38, 122, 0.82) 0 14%, transparent 15%),
    radial-gradient(circle at 62% 12%, rgba(109, 38, 122, 0.82) 0 14%, transparent 15%),
    radial-gradient(circle at 80% 24%, rgba(109, 38, 122, 0.82) 0 14%, transparent 15%),
    radial-gradient(ellipse at center, rgba(109, 38, 122, 0.86) 0 42%, transparent 43%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 22px rgba(255, 164, 94, 0.08);
}

body.is-playing .game-screen {
  background:
    radial-gradient(circle at 6% 42%, rgba(255, 152, 60, 0.26), transparent 14%),
    radial-gradient(circle at 96% 50%, rgba(255, 152, 60, 0.24), transparent 14%),
    radial-gradient(circle at 50% 0%, rgba(153, 82, 255, 0.15), transparent 34%),
    linear-gradient(180deg, #1a0534 0%, #18042e 55%, #190426 100%);
}

body.is-playing .game-shell {
  position: relative;
  gap: 0.22rem;
  padding: 0.45rem 0.8rem 0.82rem;
}

body.is-playing .game-topbar {
  grid-template-columns: minmax(240px, 0.9fr) minmax(440px, 1.16fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: 0.3rem;
}

body.is-playing .game-brand img {
  width: min(100%, 270px);
  filter:
    drop-shadow(0 7px 0 rgba(88, 33, 0, 0.88))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.42));
}

body.is-playing .game-live {
  position: relative;
  align-self: start;
  width: 100%;
  min-height: 70px;
  padding: 0.46rem 0.92rem 0.5rem;
  margin-top: 14px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(85, 27, 114, 0.94), rgba(49, 14, 75, 0.94));
  border: 2px solid rgba(146, 74, 193, 0.36);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.22);
}

body.is-playing .game-live__pill {
  position: absolute;
  left: 50%;
  top: -13px;
  min-width: 216px;
  justify-content: center;
  transform: translateX(-50%);
  padding: 5px 16px;
  border: 2px solid rgba(155, 84, 200, 0.45);
  background: linear-gradient(180deg, #3c173d 0%, #2a1030 100%);
  color: #ffc54d;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

body.is-playing .game-live h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(1.2rem, 1.45vw, 1.8rem);
  line-height: 1.02;
  color: #fff7e9;
  text-shadow: 0 3px 0 rgba(53, 14, 67, 0.5);
}

body.is-playing .game-metrics {
  align-self: start;
  grid-template-columns: repeat(2, minmax(124px, 1fr));
  gap: 0.34rem;
  margin-top: 3px;
}

body.is-playing .hud-card {
  position: relative;
  min-width: 126px;
  min-height: 72px;
  gap: 0.48rem;
  padding: 0.48rem 0.62rem 0.46rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(80, 24, 110, 0.96), rgba(52, 14, 80, 0.96));
  border: 2px solid rgba(147, 71, 194, 0.34);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.25);
}

body.is-playing .hud-card__icon {
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0%, #e7ebff 35%, #a8b9ff 100%);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.35),
    0 10px 20px rgba(24, 31, 88, 0.22);
}

body.is-playing .hud-card__icon::before,
body.is-playing .hud-card__icon::after {
  content: "";
  position: absolute;
}

body.is-playing .hud-card--time .hud-card__icon::before {
  content: "🕒";
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  line-height: 1;
}

body.is-playing .hud-card--time .hud-card__icon::after {
  content: none;
}

body.is-playing .hud-card--score .hud-card__icon::before {
  content: "★";
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  line-height: 1;
  color: #ffb21d;
  text-shadow:
    0 0 8px rgba(255, 190, 71, 0.45),
    0 3px 0 rgba(140, 58, 0, 0.24);
}

body.is-playing .hud-card--score .hud-card__icon {
  background: transparent;
  box-shadow: none;
}

body.is-playing .hud-card__label {
  font-size: 0.86rem;
  color: #fff0fb;
  letter-spacing: 0.06em;
}

body.is-playing .hud-card strong {
  font-size: clamp(1.75rem, 1.95vw, 2.5rem);
  color: #ffbf3f;
  text-shadow:
    0 3px 0 rgba(124, 50, 0, 0.28),
    0 0 18px rgba(255, 182, 60, 0.24);
}

body.is-playing .game-board {
  position: relative;
  padding-top: 0;
  margin-top: -22px;
}

body.is-playing .game-board__frame {
  padding: 4px;
  border-radius: 38px;
  border: 0;
  background:
    linear-gradient(180deg, #d58b2b 0%, #9e5316 44%, #6e2f10 100%);
  box-shadow:
    0 0 0 2px rgba(255, 208, 126, 0.18),
    0 28px 58px rgba(0, 0, 0, 0.34);
}

body.is-playing .game-board__frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 34px;
  border: 2px solid rgba(255, 195, 94, 0.3);
  pointer-events: none;
}

body.is-playing .game-board__frame::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: -16px;
  height: 18px;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(180deg, #7a3d18 0%, #48210f 100%);
  box-shadow: inset 0 3px 0 rgba(255, 187, 104, 0.18);
  z-index: 0;
}

body.is-playing .game-screen .stage {
  min-height: calc(100vh - 156px);
  border-radius: 32px;
  z-index: 2;
  background:
    radial-gradient(circle at 24% 25%, rgba(255, 173, 83, 0.08), transparent 22%),
    radial-gradient(circle at 82% 22%, rgba(78, 164, 255, 0.12), transparent 22%),
    linear-gradient(180deg, #34105b 0%, #2c0d4d 42%, #22083f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 246, 229, 0.05),
    inset 0 0 120px rgba(0, 0, 0, 0.36);
}

body.is-playing .stage__grid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 78px, 138px 100%;
  opacity: 0.4;
}

body.is-playing .stage__glow {
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 136, 45, 0.1), transparent 19%),
    radial-gradient(circle at 66% 10%, rgba(255, 92, 92, 0.08), transparent 18%),
    radial-gradient(circle at 82% 18%, rgba(40, 147, 255, 0.12), transparent 18%);
}

body.is-playing .stage__vignette {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 48%, rgba(11, 4, 24, 0.5) 100%);
}

body.is-playing .stage__preview {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.24s ease;
}

body.is-playing .stage--live .stage__preview {
  opacity: 0;
}

body.is-playing .stage__preview-item {
  position: absolute;
  display: block;
  height: auto;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.34));
  animation: float-preview 5.4s ease-in-out infinite;
}

body.is-playing .stage__preview-item--cookie-a {
  left: 11.4%;
  top: 3.6%;
  width: 114px;
  transform: rotate(-18deg);
}

body.is-playing .stage__preview-item--collar-a {
  left: 39%;
  top: 11.2%;
  width: 182px;
  animation-delay: -1.2s;
}

body.is-playing .stage__preview-item--water-a {
  left: 61.6%;
  top: 8.8%;
  width: 112px;
  animation-delay: -0.8s;
}

body.is-playing .stage__preview-item--cookie-b {
  right: 9.2%;
  top: 9.2%;
  width: 110px;
  transform: rotate(14deg);
}

body.is-playing .stage__preview-item--water-b {
  left: 5.5%;
  top: 45%;
  width: 114px;
  animation-delay: -1.6s;
}

body.is-playing .stage__preview-item--cookie-c {
  left: 21.2%;
  top: 28.2%;
  width: 124px;
  transform: rotate(7deg);
  animation-delay: -2s;
}

body.is-playing .stage__preview-item--collar-b {
  right: 17%;
  top: 32%;
  width: 194px;
  animation-delay: -0.6s;
}

body.is-playing .stage__preview-item--cookie-d {
  left: 52.2%;
  top: 51%;
  width: 118px;
  transform: rotate(12deg);
}

body.is-playing .stage__preview-item--cookie-e {
  left: 20.6%;
  bottom: 15%;
  width: 122px;
  transform: rotate(-15deg);
  animation-delay: -1.4s;
}

body.is-playing .stage__preview-item--collar-c {
  left: 42.6%;
  bottom: -1.8%;
  width: 176px;
  animation-delay: -2.2s;
}

body.is-playing .stage__preview-item--water-c {
  right: 9.6%;
  bottom: 14.6%;
  width: 116px;
  animation-delay: -1s;
}

body.is-playing .stage__spark {
  z-index: 2;
}

body.is-playing .stage__paw {
  z-index: 1;
  width: 116px;
  height: 116px;
  opacity: 0.14;
}

body.is-playing .stage__paw--a {
  left: 2%;
  top: 25%;
}

body.is-playing .stage__paw--b {
  right: 3%;
  top: 16%;
}

body.is-playing .stage__prompt {
  opacity: 0;
  pointer-events: none;
}

body.is-previewing .stage__prompt {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.is-playing .spawn-layer,
body.is-playing .fx-layer {
  z-index: 3;
}

body.is-playing .falling-item {
  background: none;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

body.is-playing .falling-item__core,
body.is-playing .falling-item--kibble .falling-item__core,
body.is-playing .falling-item--bonus .falling-item__core,
body.is-playing .falling-item--obstacle .falling-item__core {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

body.is-playing .falling-item--bonus::before,
body.is-playing .falling-item--bonus::after,
body.is-playing .falling-item--bonus .falling-item__core::before,
body.is-playing .falling-item--obstacle .falling-item__core::before,
body.is-playing .falling-item--kibble .falling-item__core::before {
  content: none;
}

body.is-playing .falling-item__sprite {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

body.is-playing .falling-item--kibble .falling-item__sprite {
  filter:
    drop-shadow(0 0 18px rgba(255, 177, 65, 0.42))
    drop-shadow(16px 12px 12px rgba(255, 136, 34, 0.22));
}

body.is-playing .falling-item--bonus .falling-item__sprite {
  filter:
    drop-shadow(0 0 18px rgba(255, 88, 88, 0.36))
    drop-shadow(0 12px 16px rgba(255, 111, 74, 0.22));
}

body.is-playing .falling-item--obstacle .falling-item__sprite {
  filter:
    drop-shadow(0 0 18px rgba(62, 150, 255, 0.45))
    drop-shadow(0 10px 16px rgba(52, 170, 255, 0.22));
}

body.is-playing .score-pop {
  font-size: 1.2rem;
  color: #ffd15e;
  text-shadow:
    0 2px 0 rgba(100, 48, 0, 0.4),
    0 0 18px rgba(255, 187, 60, 0.3);
}

body.is-playing .game-board::before,
body.is-playing .game-board::after {
  content: "";
  position: absolute;
  bottom: -40px;
  width: 120px;
  height: 120px;
  background-image: url("./assets/cats/racao-transparente.png");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 4;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

body.is-playing .game-board::before {
  left: -24px;
  transform: rotate(-18deg);
}

body.is-playing .game-board::after {
  right: -20px;
  transform: rotate(22deg) scaleX(-1);
}

@keyframes float-preview {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 1260px) {
  body.is-playing .game-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body.is-playing .game-live {
    width: min(100%, 720px);
  }

  body.is-playing .game-metrics {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 860px) {
  body.is-playing .game-shell {
    padding-inline: 0.9rem;
  }

  body.is-playing .game-brand img {
    width: min(100%, 300px);
  }

  body.is-playing .game-live {
    min-height: 104px;
    padding: 1.45rem 1rem 1rem;
    border-radius: 24px;
  }

  body.is-playing .game-live__pill {
    min-width: 220px;
    top: -14px;
    padding-inline: 16px;
    font-size: 0.8rem;
  }

  body.is-playing .game-live h2 {
    font-size: clamp(1.45rem, 5vw, 2.15rem);
    text-align: center;
  }

  body.is-playing .game-metrics {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }

  body.is-playing .hud-card {
    min-width: 0;
    min-height: 104px;
  }

  body.is-playing .game-screen .stage {
    min-height: calc(100vh - 286px);
  }

  body.is-playing .stage__preview-item--cookie-a,
  body.is-playing .stage__preview-item--cookie-b,
  body.is-playing .stage__preview-item--cookie-c,
  body.is-playing .stage__preview-item--cookie-d,
  body.is-playing .stage__preview-item--cookie-e {
    width: 84px;
  }

  body.is-playing .stage__preview-item--collar-a,
  body.is-playing .stage__preview-item--collar-b,
  body.is-playing .stage__preview-item--collar-c {
    width: 142px;
  }

  body.is-playing .stage__preview-item--water-a,
  body.is-playing .stage__preview-item--water-b,
  body.is-playing .stage__preview-item--water-c {
    width: 82px;
  }
}

@media (max-width: 640px) {
  body.is-playing .game-screen {
    padding: 10px;
  }

  body.is-playing .game-shell {
    gap: 0.75rem;
    padding: 0.55rem 0.2rem 1.4rem;
  }

  body.is-playing .game-brand img {
    width: min(100%, 240px);
  }

  body.is-playing .game-live {
    width: 100%;
    padding: 1.2rem 0.85rem 0.8rem;
  }

  body.is-playing .game-live__pill {
    min-width: 190px;
    font-size: 0.72rem;
  }

  body.is-playing .game-live h2 {
    font-size: clamp(1.2rem, 6vw, 1.6rem);
  }

  body.is-playing .game-metrics {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  body.is-playing .hud-card {
    min-height: 88px;
    padding: 0.85rem;
  }

  body.is-playing .hud-card__icon {
    width: 46px;
    height: 46px;
  }

  body.is-playing .hud-card strong {
    font-size: 2.5rem;
  }

  body.is-playing .game-board__frame {
    border-radius: 26px;
  }

  body.is-playing .game-board__frame::before {
    border-radius: 22px;
  }

  body.is-playing .game-screen .stage {
    min-height: calc(100vh - 300px);
    border-radius: 22px;
  }

  body.is-playing .game-board::before,
  body.is-playing .game-board::after {
    width: 82px;
    height: 82px;
    bottom: -24px;
  }

  body.is-playing .stage__paw {
    width: 88px;
    height: 88px;
  }
}
