:root {
  --ink: #20171f;
  --muted: #695f68;
  --paper: #fff4d8;
  --cream: #fffdf8;
  --sun: #ffd23f;
  --tomato: #ff4f5e;
  --leaf: #00b976;
  --berry: #7c4dff;
  --sea: #00a9ce;
  --shadow: 0 22px 60px rgba(255, 79, 94, 0.13);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 63, 0.24), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(0, 185, 118, 0.16), transparent 26%),
    radial-gradient(circle at 12% 74%, rgba(255, 79, 94, 0.1), transparent 34%),
    radial-gradient(circle at 90% 100%, rgba(255, 210, 63, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 244, 216, 0.94) 20%, #fff8ea 48%, #f9fff6 74%, #fff0d8 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  touch-action: pan-y pinch-zoom;
}

.hero__products,
.duel,
.chip-grid,
.blind-game__stage {
  transform: translateZ(0);
}

.catalog,
.ranking-panel,
.blind-game,
.duel-spotlight,
.seo-copy,
.stats {
  content-visibility: auto;
  contain-intrinsic-size: auto 620px;
}

.chip-card,
.duel-card,
.blind-card,
.blind-option,
.taste-card,
.stats article,
.duel-champion {
  contain: layout paint style;
  backface-visibility: hidden;
}

.hero-pack,
.duel-card,
.duel-card__image,
.product-media img,
.chip-card,
.blind-option,
.game-float,
.burst,
.rating-burst {
  will-change: transform, opacity;
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

main,
header,
section,
nav,
aside,
footer,
article,
div {
  min-width: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

.hero {
  position: relative;
  z-index: 40;
  min-height: clamp(640px, 82vh, 820px);
  overflow: visible;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.78), transparent 18%),
    radial-gradient(circle at 80% 28%, rgba(0, 185, 118, 0.32), transparent 28%),
    radial-gradient(circle at 16% 72%, rgba(255, 79, 94, 0.42), transparent 34%),
    linear-gradient(135deg, #fff06d 0%, #ffb43d 42%, #ff5360 72%, #2c1744 100%);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(90deg, rgba(32, 23, 31, 0.84), rgba(255, 113, 67, 0.44) 48%, rgba(255, 247, 220, 0.18)),
    url("./assets/sipsi-hero.jpg");
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  transform: scale(1.03);
  animation: heroBreath 16s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, transparent 0 36%, rgba(255, 255, 255, 0.34) 44%, transparent 53%),
    radial-gradient(circle at 62% 60%, rgba(255, 255, 255, 0.2), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: lightSweep 8s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0;
}

.hero__lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.light {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.68;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.light--gold {
  right: 14%;
  top: 15%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 129, 0.68);
  animation: driftGold 10s ease-in-out infinite alternate;
}

.light--red {
  left: 9%;
  bottom: 14%;
  width: 220px;
  height: 220px;
  background: rgba(255, 79, 94, 0.52);
  animation: driftRed 12s ease-in-out infinite alternate;
}

.light--mint {
  right: 34%;
  bottom: 3%;
  width: 190px;
  height: 190px;
  background: rgba(0, 185, 118, 0.36);
  animation: driftMint 9s ease-in-out infinite alternate;
}

.light--beam {
  left: -12%;
  top: 20%;
  width: 70%;
  height: 170px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  filter: blur(18px);
  transform: rotate(-13deg);
  animation: beamSlide 11s ease-in-out infinite;
}

.hero__products {
  position: absolute;
  right: max(28px, calc((100vw - 1180px) / 2));
  top: clamp(130px, 19vh, 178px);
  z-index: 0;
  width: min(48vw, 620px);
  height: min(52vh, 500px);
  pointer-events: none;
}

.hero-pack {
  --pack-rotate: 0deg;
  --pack-swing: 2.8deg;
  position: absolute;
  display: block;
  object-fit: contain;
  transform: rotate(var(--pack-rotate));
  transform-origin: 50% 92%;
  filter:
    drop-shadow(0 28px 26px rgba(25, 14, 8, 0.42))
    drop-shadow(0 0 22px rgba(255, 211, 117, 0.18));
  animation:
    packFloat 5.8s ease-in-out infinite alternate,
    packSwing 4.9s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero-pack--taffel {
  right: 30%;
  bottom: 2%;
  z-index: 4;
  width: 31%;
  --pack-rotate: -9deg;
  --pack-swing: 3.4deg;
}

.hero-pack--estrella {
  right: 7%;
  bottom: 3%;
  z-index: 5;
  width: 34%;
  --pack-rotate: 8deg;
  --pack-swing: 2.6deg;
  animation-delay: -1.4s, -0.7s;
}

.hero-pack--oikia {
  left: 0;
  bottom: 4%;
  z-index: 3;
  width: 30%;
  --pack-rotate: 9deg;
  --pack-swing: 3deg;
  animation-delay: -2.2s, -1.9s;
}

.hero-pack--linkosuo {
  left: 21%;
  top: 5%;
  z-index: 2;
  width: 29%;
  --pack-rotate: -7deg;
  --pack-swing: 2.2deg;
  animation-delay: -3.1s, -2.6s;
}

.hero-pack--kettle {
  right: 1%;
  top: 5%;
  z-index: 2;
  width: 31%;
  border-radius: 16px;
  --pack-rotate: 7deg;
  --pack-swing: 2.4deg;
  animation-delay: -0.7s, -3.4s;
}

.topbar {
  position: relative;
  z-index: 60;
  isolation: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 9px max(16px, calc((100vw - 1180px) / 2));
  color: var(--ink);
  box-shadow: none;
}

.topbar::before {
  content: none;
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 0;
  background: none;
  pointer-events: none;
}

.brand-cluster,
.brand,
.topbar__actions,
.ranker-switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-cluster {
  position: relative;
  min-width: 0;
  margin-right: auto;
}

.brand {
  min-width: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.brand__logo {
  flex: 0 0 auto;
  display: block;
  width: clamp(92px, 10vw, 124px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(32, 23, 31, 0.1));
}

#brandName {
  font-family: "Baloo 2", Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
  padding-top: 2px;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranker-switch {
  position: relative;
  display: block;
}

.ranker-switch.is-hidden {
  display: none;
}

.ranker-switch summary,
.topbar__links a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.topbar__links {
  position: fixed;
  right: auto;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 10000;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(620px, calc(100vw - 32px));
  gap: 10px;
  border: 1px solid rgba(255, 210, 63, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 210, 63, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(32, 23, 31, 0.96), rgba(54, 33, 82, 0.94));
  padding: 8px;
  box-shadow:
    0 20px 52px rgba(32, 23, 31, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 32px rgba(255, 210, 63, 0.16);
  backdrop-filter: blur(18px);
  transform: translateX(-50%) translateZ(0);
}

.topbar__links::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 210, 63, 0.28), rgba(0, 185, 118, 0.12), rgba(255, 79, 94, 0.2));
  opacity: 0.55;
  filter: blur(10px);
  pointer-events: none;
}

.topbar__links a::after {
  content: "";
  position: absolute;
  inset: auto 18% -3px;
  z-index: -1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 210, 63, 0.56);
  filter: blur(8px);
  opacity: 0;
  transform: scaleX(0.55);
  transition: opacity 180ms ease, transform 180ms ease;
}

.topbar__links a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
  animation: navGlowPulse 2.8s ease-in-out infinite;
}

.ranker-switch summary,
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 9px 13px;
  text-decoration: none;
  color: rgba(255, 253, 248, 0.84);
  background: rgba(32, 23, 31, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: background 160ms ease, color 160ms ease;
}

.topbar__links a {
  display: grid;
  grid-template-rows: 30px auto;
  min-width: 0;
  min-height: 62px;
  place-items: center;
  gap: 4px;
  border-radius: 8px;
  padding: 8px 8px 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: rgba(255, 253, 248, 0.78);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.topbar__links a span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.topbar__actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  min-width: 0;
}

.battle-icon {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--tomato), var(--sun));
  color: var(--ink);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  box-shadow:
    0 16px 28px rgba(244, 93, 72, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  transform: rotate(-7deg);
}

.battle-icon::before,
.battle-icon::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 58%;
  height: 2px;
  border-radius: 999px;
  background: rgba(37, 27, 22, 0.2);
}

.battle-icon::before {
  transform: rotate(34deg);
}

.battle-icon::after {
  transform: rotate(-34deg);
}

.battle-icon--small {
  width: 22px;
  border-radius: 6px;
  font-size: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.battle-icon--tab {
  width: 30px;
  border-radius: 7px;
  font-size: 0.72rem;
  box-shadow: none;
}

.topbar__links a.is-active {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 34%),
    linear-gradient(135deg, var(--sun), #fff47b);
  color: var(--ink);
  box-shadow:
    0 14px 34px rgba(255, 210, 63, 0.28),
    0 0 0 2px rgba(255, 255, 255, 0.18) inset;
  transform: translateY(-7px);
}

.ranker-switch summary {
  position: relative;
  display: grid;
  min-width: 156px;
  cursor: pointer;
  gap: 1px;
  list-style: none;
  padding: 8px 36px 8px 13px;
  user-select: none;
}

.ranker-switch summary::-webkit-details-marker {
  display: none;
}

.ranker-switch summary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.ranker-switch[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.ranker-switch summary span {
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.ranker-switch summary strong {
  overflow: hidden;
  color: #fffdf8;
  font-size: 0.93rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranker-switch[open] summary,
.ranker-switch summary:hover,
.topbar__links a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ranker-switch__menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: grid;
  width: min(260px, calc(100vw - 32px));
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(37, 27, 22, 0.92);
  padding: 7px;
  box-shadow: 0 24px 56px rgba(22, 12, 8, 0.26);
  backdrop-filter: blur(18px);
}

.ranker-switch a {
  border-radius: 8px;
  padding: 10px 11px;
  text-decoration: none;
  color: rgba(255, 253, 248, 0.84);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ranker-switch a.is-active {
  background: rgba(255, 200, 87, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(255, 200, 87, 0.22);
}

.ranker-switch a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateX(2px);
}

.ranker-switch a.is-active:hover {
  background: var(--sun);
  color: var(--ink);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.75fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 6vh, 62px) 0 clamp(92px, 12vh, 120px);
  color: #fffdf7;
}

.hero__copy {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff8a8;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 660px;
  font-size: clamp(3.8rem, 8.5vw, 7.2rem);
  text-shadow:
    0 4px 0 rgba(32, 23, 31, 0.16),
    0 18px 38px rgba(32, 23, 31, 0.28);
}

.game-title {
  position: relative;
  isolation: isolate;
  width: max-content;
  max-width: 100%;
  color: #fffdf8;
  font-family: "Baloo 2", Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(4rem, 8.2vw, 7.85rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  white-space: nowrap;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(2px, 0.42vw, 5px) #20171f;
  paint-order: stroke fill;
  text-shadow:
    0 5px 0 #ff4f5e,
    0 10px 0 rgba(124, 77, 255, 0.42),
    0 22px 42px rgba(32, 23, 31, 0.32);
  transform: rotate(-1.2deg);
}

.game-title::before {
  content: "";
  position: absolute;
  inset: 50% -4% 2% -4%;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 210, 63, 0.92), rgba(255, 79, 94, 0.82));
  box-shadow:
    0 18px 38px rgba(255, 79, 94, 0.24),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  transform: skewX(-8deg) rotate(1deg);
}

.game-title::after {
  content: "";
  position: absolute;
  inset: -6% 68% 10% -8%;
  z-index: 1;
  border-radius: 8px;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  mix-blend-mode: screen;
  animation: titleShine 4.6s ease-in-out infinite;
  pointer-events: none;
}

.game-title__subtitle {
  display: inline-flex;
  width: max-content;
  max-width: min(520px, 100%);
  margin: clamp(14px, 2.5vw, 22px) 0 0;
  border: 2px solid rgba(32, 23, 31, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 166, 0.82));
  color: var(--ink);
  padding: 9px 15px;
  box-shadow:
    0 16px 34px rgba(32, 23, 31, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(1.02rem, 2.4vw, 1.38rem);
  font-weight: 900;
  line-height: 1.1;
  transform: rotate(0.7deg);
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

h3 {
  font-size: 1.42rem;
}

.hero__lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.ranking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-duel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 210, 63, 0.42), transparent 30%),
    radial-gradient(circle at 14% 12%, rgba(0, 169, 206, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(255, 245, 204, 0.94));
  color: var(--ink);
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow:
    0 28px 70px rgba(15, 9, 6, 0.34),
    0 0 0 1px rgba(255, 210, 63, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.86);
  animation: riseIn 620ms ease both;
}

.hero-duel.is-celebrating {
  animation:
    arenaWin 760ms ease both,
    riseIn 620ms ease both;
}

.hero-duel::before {
  content: "";
  position: absolute;
  inset: -35% -22% auto auto;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 94, 0.28), transparent 66%);
  pointer-events: none;
}

.hero-duel .eyebrow {
  color: var(--tomato);
}

.duel-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.duel-kicker .eyebrow {
  margin: 0;
}

.hero-duel h2 {
  max-width: 430px;
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
}

.hero-duel > p:not(.eyebrow) {
  max-width: 440px;
  margin: 12px 0 16px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.game-pulse {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 14px;
  border: 1px solid rgba(255, 138, 45, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.82), rgba(255, 239, 167, 0.72)),
    radial-gradient(circle at 0% 0%, rgba(255, 79, 94, 0.16), transparent 42%);
  box-shadow:
    0 12px 26px rgba(255, 127, 36, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 10px;
}

.game-pulse__badge {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #20171f, #4d2350);
  color: #fff8d8;
  box-shadow: 0 10px 22px rgba(32, 23, 31, 0.18), 0 0 18px rgba(255, 210, 63, 0.18);
  padding: 7px 11px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 1000;
  line-height: 1;
  animation: pulseBadgeBeat 2.4s ease-in-out infinite;
}

.game-pulse__text {
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.game-pulse__meter {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(68, 43, 25, 0.12);
}

.game-pulse__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ff4f5e, #ffd23f, #00b976);
  box-shadow: 0 0 18px rgba(255, 210, 63, 0.32);
  transition: width 420ms cubic-bezier(0.16, 0.9, 0.28, 1);
}

.game-share {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 9px;
  margin: 0 0 16px;
}

.game-share--compact {
  margin: 18px 0 0;
}

.game-share--footer {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 210, 63, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 210, 63, 0.18), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(124, 77, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(32, 23, 31, 0.94), rgba(52, 32, 78, 0.9));
  padding: 12px;
  box-shadow:
    0 18px 42px rgba(32, 23, 31, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 32px rgba(255, 210, 63, 0.1);
  color: #fffdf8;
}

.game-share--footer::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background:
    conic-gradient(from 120deg, transparent, rgba(255, 79, 94, 0.24), transparent, rgba(0, 185, 118, 0.18), transparent, rgba(255, 210, 63, 0.24), transparent);
  opacity: 0.42;
  animation: shareArenaSpin 10s linear infinite;
}

.share-hype {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 2px 9px;
}

.share-hype span {
  color: #ffd23f;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.share-hype strong {
  color: rgba(255, 253, 248, 0.74);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-share--section {
  grid-column: 1 / -1;
}

.share-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  color: rgba(255, 253, 248, 0.9);
  box-shadow:
    0 9px 20px rgba(32, 23, 31, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 7px 12px 7px 8px;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.share-pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 210, 63, 0.42), rgba(255, 79, 94, 0.08), rgba(0, 185, 118, 0.28));
  opacity: 0;
  transition: opacity 160ms ease;
}

.share-pill::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-18deg);
  transition: transform 420ms ease;
}

.share-pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 30px rgba(32, 23, 31, 0.22),
    0 0 24px rgba(255, 210, 63, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.share-pill:hover::before {
  opacity: 1;
}

.share-pill:hover::after {
  transform: translateX(390%) skewX(-18deg);
}

.share-pill--main {
  grid-column: span 2;
  border-color: rgba(255, 210, 63, 0.32);
  background:
    linear-gradient(135deg, #fff47b, #ffd23f 42%, #ff4f5e);
  color: #221317;
  box-shadow:
    0 14px 28px rgba(255, 79, 94, 0.22),
    0 0 26px rgba(255, 210, 63, 0.24);
}

.game-share--footer .share-pill {
  min-height: 36px;
  padding: 7px 9px 7px 7px;
  font-size: 0.76rem;
}

.game-share--footer .share-pill--main {
  background: linear-gradient(135deg, #fff47b, #ffd23f 45%, #ff4f5e);
}

.game-share--footer .share-icon {
  width: 24px;
}

.share-icon {
  display: inline-grid;
  width: 26px;
  aspect-ratio: 1;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #231713;
  color: #fffdf8;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 1000;
}

.share-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-icon--battle {
  background: linear-gradient(135deg, #ff385c, #ffc233);
  color: #fff;
}

.share-icon--native {
  background: linear-gradient(135deg, #ff385c, #ffc233);
  color: #fff;
}

.share-icon--blind {
  background: linear-gradient(135deg, #6f62ff, #24c6dc);
  color: #fff;
}

.share-icon--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(37, 211, 102, 0.18);
}

.share-icon--whatsapp svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

.share-icon--facebook {
  background: #1877f2;
  font-size: 1rem;
}

.share-icon--x {
  background: #050505;
  color: #fff;
}

.share-icon--threads {
  background: #111;
  color: #fff;
}

.share-icon--telegram {
  background: #2aabee;
  color: #fff;
}

.share-icon--tiktok {
  background:
    linear-gradient(135deg, #25f4ee 0 38%, #010101 39% 62%, #fe2c55 63%);
  color: #fff;
  text-shadow: 1px 0 #fe2c55, -1px 0 #25f4ee;
}

.share-icon--instagram {
  background:
    radial-gradient(circle at 30% 110%, #feda75 0 26%, #fa7e1e 27% 42%, #d62976 43% 62%, #962fbf 63% 78%, #4f5bd5 79%);
  color: #fff;
}

.share-icon--copy {
  background: #2b211b;
}

.hero-duel .duel {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 9px;
}

.hero-duel .duel-card {
  min-height: 214px;
  padding: 12px;
  box-shadow: 0 18px 38px rgba(67, 39, 15, 0.16);
}

.hero-duel .duel-card__image {
  height: 104px;
}

.hero-duel .duel-card img {
  max-width: 104px;
  max-height: 108px;
}

.hero-duel .duel-card strong {
  font-size: 1.05rem;
}

.hero-duel .duel-card small {
  font-size: 0.86rem;
}

.hero-duel .duel-versus {
  width: 38px;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 13px 19px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::after,
.icon-button::after {
  content: "";
  position: absolute;
  inset: -42% auto -42% -70%;
  z-index: -1;
  width: 58%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-18deg);
  transition: left 520ms ease;
}

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

.button:hover::after,
.icon-button:hover::after {
  left: 120%;
}

.button--primary {
  background: linear-gradient(135deg, #ff6a52, #f2385a);
  color: #fff;
  box-shadow:
    0 14px 34px rgba(244, 93, 72, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    inset 0 1px rgba(255, 255, 255, 0.28);
}

.button--primary:hover {
  box-shadow:
    0 18px 42px rgba(244, 93, 72, 0.46),
    0 0 28px rgba(255, 200, 87, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    inset 0 1px rgba(255, 255, 255, 0.34);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.button--plain {
  background: #f1e3cf;
  color: var(--ink);
}

.button--google {
  border: 1px solid rgba(56, 36, 22, 0.16);
  background: #fff;
  color: #2b211b;
  box-shadow: 0 10px 24px rgba(66, 133, 244, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  max-width: 100%;
}

.button--google::before {
  content: "";
  display: inline-block;
  width: 22px;
  aspect-ratio: 1;
  margin-right: 8px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.1 6 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5Z'/%3E%3Cpath fill='%23FF3D00' d='m6.3 14.7 6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.1 6 29.3 4 24 4 16.3 4 9.7 8.3 6.3 14.7Z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.2 0 9.9-2 13.4-5.2l-6.2-5.2C29.2 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.8l-6.5 5C9.6 39.6 16.2 44 24 44Z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.4-2.3 4.3-4.1 5.6l6.2 5.2C36.9 39.3 44 34 44 24c0-1.3-.1-2.4-.4-3.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.button--google.is-connected {
  border-color: rgba(0, 185, 118, 0.34);
  background:
    linear-gradient(135deg, rgba(246, 255, 237, 0.98), #fff);
  box-shadow:
    0 12px 26px rgba(0, 185, 118, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.topbar-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  line-height: 1;
  white-space: nowrap;
}

.topbar-auth__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(32, 23, 31, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  padding: 7px 10px;
  color: rgba(43, 33, 27, 0.72);
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.topbar-auth__state::before {
  content: "";
  width: 8px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: #b9a994;
  box-shadow: 0 0 0 3px rgba(185, 169, 148, 0.16);
}

.topbar-auth__state[data-state="connected"] {
  border-color: rgba(0, 185, 118, 0.22);
  color: #1f6d4a;
  background: rgba(246, 255, 237, 0.72);
}

.topbar-auth__state[data-state="connected"]::before {
  background: #00b976;
  box-shadow: 0 0 0 3px rgba(0, 185, 118, 0.16), 0 0 14px rgba(0, 185, 118, 0.24);
}

.topbar-auth__logout {
  min-height: 34px;
  border: 1px solid rgba(32, 23, 31, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 7px 10px;
  color: rgba(43, 33, 27, 0.74);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease;
}

.topbar-auth__logout:hover {
  background: rgba(255, 255, 255, 0.84);
  transform: translateY(-1px);
}

.ranking-login {
  width: max-content;
  margin-top: 14px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 80px;
  align-items: start;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.stats article,
.duel-spotlight,
.blind-game,
.play-zone,
.catalog,
.ranking-panel__inner,
.sources {
  border: 1px solid rgba(255, 79, 94, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 226, 0.92));
  box-shadow: var(--shadow);
  animation: riseIn 620ms ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

.stats article {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  align-content: center;
  border-radius: 8px;
  padding: clamp(12px, 2vw, 22px);
  overflow: hidden;
}

.stats__heading {
  min-width: 0;
  border: 1px solid rgba(255, 79, 94, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 210, 63, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 248, 226, 0.92));
  box-shadow: var(--shadow);
  padding: clamp(14px, 2vw, 22px);
  animation: riseIn 620ms ease both;
}

.stats__heading .eyebrow {
  margin-bottom: 6px;
}

.stats__heading h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 0.95;
}

.stats__heading p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.42;
}

.stats article::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -32%;
  z-index: -1;
  width: 46%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  opacity: 0;
  transform: skewX(-14deg);
  animation: statCardSweep 6.2s ease-in-out infinite;
  animation-delay: calc(var(--reveal-delay, 0ms) + 900ms);
}

.stats article:nth-child(1) {
  --reveal-delay: 60ms;
}

.stats article:nth-child(3) {
  --reveal-delay: 120ms;
}

.stats article:nth-child(4) {
  --reveal-delay: 180ms;
}

.stats strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  animation: statNumberPop 5.6s ease-in-out infinite;
  animation-delay: calc(var(--reveal-delay, 0ms) + 500ms);
}

.stats span {
  min-width: 0;
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.app-tabs {
  position: sticky;
  top: 10px;
  z-index: 16;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(255, 79, 94, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  padding: 8px;
  box-shadow: 0 18px 45px rgba(255, 79, 94, 0.12);
  backdrop-filter: blur(18px);
}

.app-tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.app-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, 0.68) 48%, transparent 62%),
    linear-gradient(135deg, rgba(255, 210, 63, 0.24), rgba(0, 185, 118, 0.12), rgba(255, 79, 94, 0.12));
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity 160ms ease, transform 260ms ease;
}

.app-tab:hover,
.app-tab.is-active {
  background: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(255, 79, 94, 0.14), 0 12px 30px rgba(255, 79, 94, 0.12);
  transform: translateY(-1px);
}

.app-tab:hover::before,
.app-tab.is-active::before {
  opacity: 1;
  transform: translateX(0);
}

.app-tab__icon {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #20171f, #3b2557);
  color: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 14px 24px rgba(124, 77, 255, 0.16);
}

.app-tab.is-active .app-tab__icon {
  background: linear-gradient(135deg, var(--tomato), var(--sun));
  color: var(--ink);
}

.app-tab.is-active .battle-icon--tab {
  background: var(--ink);
  color: #fffdf8;
}

.app-tab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-tab span:last-child {
  min-width: 0;
}

.app-tab strong,
.app-tab small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-tab strong {
  font-size: clamp(0.86rem, 1.5vw, 1rem);
  font-weight: 950;
}

.app-tab small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

#home,
#top,
#sokkomaku,
#kansan-suosikki,
#sipsit {
  scroll-margin-top: 92px;
}

body[data-active-tab="blind"] .hero__content,
body[data-active-tab="favorite"] .hero__content {
  display: none;
}

body[data-active-tab="blind"] .hero,
body[data-active-tab="favorite"] .hero,
body[data-active-tab="play"] .hero,
body[data-active-tab="shelf"] .hero {
  min-height: auto;
  background: transparent;
}

body[data-active-tab="blind"] .hero::before,
body[data-active-tab="favorite"] .hero::before,
body[data-active-tab="play"] .hero::before,
body[data-active-tab="shelf"] .hero::before {
  display: none;
}

body[data-active-tab="blind"] .hero__image,
body[data-active-tab="favorite"] .hero__image,
body[data-active-tab="play"] .hero__image,
body[data-active-tab="shelf"] .hero__image {
  display: none;
  background-image: none;
}

body[data-active-tab="blind"] .hero::after,
body[data-active-tab="favorite"] .hero::after,
body[data-active-tab="play"] .hero::after,
body[data-active-tab="shelf"] .hero::after {
  display: none;
}

body[data-active-tab="blind"] .hero__lights,
body[data-active-tab="favorite"] .hero__lights,
body[data-active-tab="play"] .hero__lights,
body[data-active-tab="shelf"] .hero__lights {
  display: none;
}

body[data-active-tab="shelf"] .hero__content {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  padding-top: clamp(16px, 3vh, 30px);
  padding-bottom: clamp(20px, 4vh, 38px);
}

body[data-active-tab="shelf"] .hero__copy {
  align-self: start;
}

body[data-active-tab="shelf"] .hero .eyebrow {
  margin-bottom: 6px;
  color: #dd2440;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

body[data-active-tab="shelf"] .game-title {
  font-size: clamp(2.85rem, 7vw, 6.1rem);
  line-height: 0.84;
}

body[data-active-tab="shelf"] .game-title__subtitle {
  margin-top: clamp(8px, 1.4vw, 14px);
  padding: 7px 13px;
}

body[data-active-tab="shelf"] .hero-duel {
  display: none;
}

body[data-active-tab="play"] .hero__content {
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 0.9fr);
  justify-content: center;
}

body[data-active-tab="blind"] .stats,
body[data-active-tab="blind"] .duel-spotlight,
body[data-active-tab="blind"] .catalog,
body[data-active-tab="blind"] .ranking-panel,
body[data-active-tab="blind"] .seo-copy,
body[data-active-tab="favorite"] .stats,
body[data-active-tab="favorite"] .blind-game,
body[data-active-tab="favorite"] .catalog,
body[data-active-tab="favorite"] .ranking-panel,
body[data-active-tab="favorite"] .seo-copy,
body[data-active-tab="shelf"] .blind-game,
body[data-active-tab="shelf"] .duel-spotlight,
body[data-active-tab="play"] .stats,
body[data-active-tab="play"] .blind-game,
body[data-active-tab="play"] .catalog,
body[data-active-tab="play"] .ranking-panel,
body[data-active-tab="play"] .seo-copy {
  display: none;
}

body[data-active-tab="shelf"] .catalog {
  order: 3;
}

body[data-active-tab="shelf"] .ranking-panel {
  order: 2;
}

body[data-active-tab="shelf"] .stats {
  order: 1;
}

body[data-active-tab="shelf"] .site-footer,
body[data-active-tab="play"] .site-footer,
body[data-active-tab="blind"] .site-footer,
body[data-active-tab="favorite"] .site-footer {
  order: 20;
}

body[data-active-tab="blind"] main,
body[data-active-tab="favorite"] main,
body[data-active-tab="shelf"] main {
  margin-top: 12px;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 220;
  pointer-events: none;
  opacity: 0;
}

body::before {
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.92) 43%, rgba(255, 210, 63, 0.62) 48%, transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(255, 79, 94, 0.34), transparent 34%);
  mix-blend-mode: screen;
  transform: translateX(-112%) skewX(-12deg);
}

body::after {
  left: 50%;
  top: 50%;
  width: clamp(82px, 16vw, 150px);
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #20171f, #3b2557);
  box-shadow:
    0 0 0 4px rgba(255, 210, 63, 0.82),
    0 22px 58px rgba(32, 23, 31, 0.34),
    inset 0 0 0 2px rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%) scale(0.74) rotate(-12deg);
}

body.transition-shelf::after,
body[data-transition-tab="shelf"]::after {
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.62), transparent 28%),
    linear-gradient(135deg, var(--sun), #ff8c42);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.52),
    0 22px 58px rgba(255, 154, 63, 0.28),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

body.transition-blind::after,
body[data-transition-tab="blind"]::after {
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #3b2557, #7c4dff);
  box-shadow:
    0 0 0 4px rgba(255, 210, 63, 0.46),
    0 22px 58px rgba(77, 45, 145, 0.34),
    inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

body.tab-transitioning::before {
  animation: tabLightSlash 920ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

body.tab-transitioning::after {
  content: "★";
  display: grid;
  place-items: center;
  color: #fffdf8;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(2rem, 6vw, 4.3rem);
  font-weight: 950;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 rgba(255, 79, 94, 0.72),
    0 0 22px rgba(255, 210, 63, 0.62);
  animation: tabVsSmash 860ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

body.tab-transitioning.transition-play::after {
  content: "VS";
}

body.tab-transitioning.transition-shelf::after {
  content: "★";
}

body.tab-transitioning.transition-blind::after {
  content: "?";
}

body.tab-transitioning.transition-shelf::after,
body.tab-transitioning[data-transition-tab="shelf"]::after {
  color: #20171f;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.72),
    0 0 22px rgba(255, 210, 63, 0.72);
}

body.tab-transitioning.transition-blind::after,
body.tab-transitioning[data-transition-tab="blind"]::after {
  text-shadow:
    0 3px 0 rgba(32, 23, 31, 0.54),
    0 0 24px rgba(255, 210, 63, 0.56);
}

body.tab-transitioning[data-active-tab="blind"] .blind-game,
body.tab-transitioning[data-active-tab="shelf"] .catalog,
body.tab-transitioning[data-active-tab="favorite"] .duel-spotlight {
  animation:
    tabArenaIn 720ms cubic-bezier(0.16, 0.9, 0.22, 1) both,
    surfaceGlow 4.4s ease-in-out infinite alternate;
}

body.tab-transitioning[data-active-tab="play"] .hero__copy {
  animation: tabTitleDrop 700ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

body.tab-transitioning[data-active-tab="play"] .hero-duel {
  animation:
    tabArenaIn 720ms cubic-bezier(0.16, 0.9, 0.22, 1) both,
    riseIn 620ms ease both;
}

.blind-game {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  gap: 22px;
  align-items: stretch;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 77, 255, 0.18), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(255, 210, 63, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(246, 255, 237, 0.94)),
    #fffdf8;
}

.blind-game::before {
  content: "";
  position: absolute;
  inset: -20% -8%;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.26) 46%, transparent 58% 100%);
  opacity: 0.62;
  transform: translateX(-58%) skewX(-10deg);
  animation: blindScan 7.8s ease-in-out infinite;
  pointer-events: none;
}

.blind-game__copy {
  position: relative;
  min-width: 0;
}

.blind-game__stage {
  position: relative;
}

.blind-game__copy p:not(.eyebrow) {
  max-width: 46ch;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.48;
}

.blind-game__stage {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.blind-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(56, 36, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  padding: clamp(14px, 2vw, 18px);
  box-shadow: 0 16px 34px rgba(67, 39, 15, 0.1);
}

.blind-clue {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.blind-clue__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blind-clue__chips span,
.blind-score {
  border-radius: 999px;
  background: #20171f;
  color: #fffdf8;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.blind-clue strong {
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.blind-clue p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.42;
}

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

.blind-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 92px;
  min-width: 0;
  border: 1px solid rgba(255, 79, 94, 0.14);
  border-radius: 8px;
  background: #fff7e8;
  color: var(--ink);
  cursor: pointer;
  padding: 14px;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.blind-option:hover {
  transform: translateY(-2px);
  background: #fffdf8;
  box-shadow: 0 14px 28px rgba(255, 79, 94, 0.12);
}

.blind-option.is-correct {
  border-color: rgba(0, 185, 118, 0.44);
  background: rgba(0, 185, 118, 0.16);
}

.blind-option.is-wrong {
  border-color: rgba(255, 79, 94, 0.36);
  background: rgba(255, 79, 94, 0.12);
}

.blind-option:disabled {
  cursor: default;
}

.blind-option__image {
  display: grid;
  height: 70px;
  margin-bottom: 8px;
  place-items: center;
}

.blind-option__image img {
  max-width: 62px;
  max-height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(67, 39, 15, 0.14));
}

.blind-option__text {
  display: grid;
  min-width: 0;
  gap: 3px;
  align-self: center;
}

.blind-option small,
.blind-result small {
  color: var(--muted);
  font-weight: 850;
}

.blind-option strong {
  margin-top: 2px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.blind-result {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  background: #fff0d8;
  padding: 12px;
}

.blind-result img {
  max-width: 64px;
  max-height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(67, 39, 15, 0.18));
}

.blind-result strong {
  display: block;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.12rem;
  line-height: 1.08;
}

.blind-result p {
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.blind-score {
  justify-self: start;
  background: linear-gradient(135deg, var(--tomato), var(--sun));
  color: var(--ink);
}

.duel-spotlight {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: center;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 88% 0%, rgba(0, 185, 118, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(255, 240, 183, 0.92)),
    #fff8e2;
}

.duel-spotlight::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -150px;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 94, 0.24), transparent 68%);
  pointer-events: none;
}

.duel-spotlight__copy,
.duel-spotlight__stage {
  position: relative;
}

.duel-spotlight__copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.duel-spotlight__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.duel-empty,
.duel-champion,
.duel-podium li {
  border: 1px solid rgba(56, 36, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 16px 34px rgba(67, 39, 15, 0.1);
}

.duel-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 190px;
  place-content: center;
  padding: 22px;
  text-align: center;
}

.duel-empty strong {
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.5rem;
}

.duel-empty span {
  color: var(--muted);
  font-weight: 800;
}

.duel-champion {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.duel-champion__image {
  display: grid;
  min-height: 178px;
  place-items: center;
  border-radius: 8px;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.34), rgba(255, 255, 255, 0.72) 60%);
}

.duel-champion__image img {
  max-width: 120px;
  max-height: 172px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(67, 39, 15, 0.22));
}

.duel-crown {
  display: inline-grid;
  width: max-content;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.duel-champion h3 {
  margin-top: 10px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.duel-champion p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 900;
}

.duel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 15px;
}

.duel-metrics span {
  display: grid;
  border-radius: 8px;
  background: #f0e4d2;
  padding: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.duel-metrics strong {
  color: var(--tomato);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.32rem;
}

.duel-podium {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.duel-podium li {
  display: grid;
  grid-template-columns: 30px 46px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
}

.duel-podium li > span:first-child {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--sun);
  font-weight: 900;
}

.duel-podium img {
  max-width: 46px;
  max-height: 54px;
  object-fit: contain;
}

.duel-podium .bag {
  width: 38px;
  height: 50px;
  transform: rotate(-5deg);
}

.duel-champion__image .bag {
  width: 112px;
  height: 145px;
}

.duel-podium strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-podium small {
  grid-column: 3;
  color: var(--muted);
  font-weight: 800;
}

.play-zone {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: center;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
  position: relative;
}

.play-zone::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -8%;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.34), transparent 68%);
  pointer-events: none;
}

.play-zone__copy {
  position: relative;
}

.play-zone__copy p:last-child {
  max-width: 430px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.duel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.duel-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  min-height: 250px;
  border: 1px solid rgba(255, 210, 63, 0.34);
  border-radius: 8px;
  --duel-neon-a: rgba(255, 210, 63, 0.72);
  --duel-neon-b: rgba(255, 79, 94, 0.64);
  --duel-neon-c: rgba(0, 185, 118, 0.38);
  background:
    linear-gradient(#fffdf9, #fffdf9) padding-box,
    linear-gradient(135deg, var(--duel-neon-a), var(--duel-neon-b), var(--duel-neon-c)) border-box;
  color: var(--ink);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 16px 34px rgba(255, 79, 94, 0.11),
    0 0 28px rgba(255, 210, 63, 0.1);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.duel-card:nth-child(3) {
  --duel-neon-a: rgba(0, 169, 206, 0.62);
  --duel-neon-b: rgba(124, 77, 255, 0.62);
  --duel-neon-c: rgba(255, 210, 63, 0.5);
}

.duel-card > * {
  position: relative;
  z-index: 2;
}

.duel-card::before {
  content: "";
  position: absolute;
  inset: -32%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, var(--duel-neon-a), transparent 25%),
    radial-gradient(circle at 78% 18%, var(--duel-neon-b), transparent 24%),
    radial-gradient(circle at 52% 82%, var(--duel-neon-c), transparent 30%),
    conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.34), transparent 34%, rgba(255, 210, 63, 0.22), transparent 68%);
  filter: blur(18px) saturate(1.08);
  opacity: 0.58;
  transform: translate3d(-3%, 2%, 0) rotate(0deg) scale(1.02);
  animation: duelMistDrift 8.5s ease-in-out infinite alternate;
}

.duel-card::after,
.duel-champion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--glow-x, 20%) var(--glow-y, 0%), rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.34) 47%, transparent 56%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 30% 72%, rgba(255, 255, 255, 0.18));
  opacity: 0.18;
  transition: opacity 180ms ease;
}

.duel-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    0 22px 42px rgba(255, 79, 94, 0.18),
    0 0 0 2px rgba(255, 210, 63, 0.2),
    0 0 30px var(--duel-neon-b),
    0 0 54px rgba(255, 210, 63, 0.18);
}

.duel-card:hover::before {
  opacity: 0.76;
  animation-duration: 4.8s;
}

.duel-card.is-picked {
  border-color: rgba(0, 185, 118, 0.42);
  box-shadow:
    0 26px 54px rgba(0, 185, 118, 0.18),
    0 0 0 3px rgba(255, 210, 63, 0.28),
    0 0 48px rgba(0, 185, 118, 0.22);
  animation: duelPickImpact 480ms cubic-bezier(0.16, 0.9, 0.28, 1) both;
}

.duel-card.is-defeated {
  opacity: 0.72;
  animation: duelDefeated 520ms cubic-bezier(0.16, 0.9, 0.28, 1) both;
}

.duel-card.is-picked .duel-card__image {
  animation:
    duelPackWiggle 1.6s ease-in-out infinite,
    pickedPackPop 480ms cubic-bezier(0.16, 0.9, 0.28, 1) both;
}

.duel-card:hover::after,
.duel-champion:hover::after {
  opacity: 1;
  animation: surfaceGlow 1500ms ease infinite alternate;
}

.duel-card:nth-child(3):hover {
  transform: translateY(-4px) rotate(1deg);
}

.duel-card__image {
  display: grid;
  height: 122px;
  place-items: center;
  margin-bottom: 8px;
  transform-origin: 50% 90%;
  animation: duelPackWiggle 4.2s ease-in-out infinite;
}

.duel-card:nth-child(3) .duel-card__image {
  animation-name: duelPackWiggleAlt;
  animation-delay: -1.15s;
}

.duel-card:hover .duel-card__image {
  animation-duration: 2.3s;
}

.duel-card img {
  max-width: 120px;
  max-height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(67, 39, 15, 0.18));
}

.duel-card__brand {
  color: #dd2440;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.duel-card strong {
  margin-top: 3px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.12rem;
  line-height: 1.05;
}

.duel-card small {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.duel-versus {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #20171f, #3b2557);
  color: #fff;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-weight: 800;
  box-shadow:
    0 12px 24px rgba(124, 77, 255, 0.18),
    0 0 0 3px rgba(255, 210, 63, 0.18);
}

.duel-versus.is-hit {
  animation: versusHit 620ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

.duel-result {
  margin-top: 12px;
  animation: resultSlideUp 360ms cubic-bezier(0.16, 0.9, 0.28, 1) both;
}

.duel-result:empty {
  display: none;
}

.duel-result__header,
.duel-result__row {
  border: 1px solid rgba(56, 36, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 14px 28px rgba(67, 39, 15, 0.1);
}

.duel-result__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 12px;
}

.duel-result__header span {
  grid-column: 1 / -1;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.duel-result__header strong {
  overflow: hidden;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.24rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-result__header small {
  color: var(--muted);
  font-weight: 900;
}

.duel-result__bars {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.duel-result__row {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
}

.duel-result__row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
}

.duel-result__row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.duel-result__track {
  height: 10px;
  border-radius: 999px;
  background: #eadcc8;
  overflow: hidden;
}

.duel-result__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--sun), var(--tomato));
  transition: width 260ms ease;
}

.catalog,
.privacy,
.sources {
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-lead {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 850;
  line-height: 1.45;
}

.catalog-details summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  cursor: default;
  list-style: none;
}

.catalog-details summary::-webkit-details-marker {
  display: none;
}

.catalog-details summary::after {
  display: none;
}

.catalog-details summary .section-heading {
  margin-bottom: 0;
}

.catalog-details__body {
  margin-top: 22px;
}

.filter-trigger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, #20171f, #3b2557);
  color: #fffdf8;
  cursor: pointer;
  padding: 8px 14px 8px 8px;
  box-shadow:
    0 16px 34px rgba(32, 23, 31, 0.18),
    0 0 0 2px rgba(255, 210, 63, 0.2) inset;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-weight: 950;
}

.topbar-filter {
  margin-top: 0;
  min-height: 44px;
  padding: 7px 14px 7px 7px;
  box-shadow:
    0 14px 30px rgba(32, 23, 31, 0.18),
    0 0 0 2px rgba(255, 210, 63, 0.24) inset;
}

.topbar-filter .filter-trigger__icon {
  width: 32px;
}

body:not([data-active-tab="shelf"]) .topbar-filter,
.topbar-filter[hidden] {
  display: none !important;
}

.filter-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-120%) skewX(-14deg);
  animation: buttonSheen 4.6s ease-in-out infinite;
}

.filter-trigger__icon {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun), #fff47b);
  color: var(--ink);
}

.filter-trigger svg,
.catalog-filter-panel svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.catalog-filter-shell {
  position: fixed;
  inset: 0;
  z-index: 210;
  pointer-events: none;
}

.catalog-filter-shell[aria-hidden="true"] {
  visibility: hidden;
}

.catalog-filter-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 23, 31, 0.36);
  opacity: 0;
  transition: opacity 180ms ease;
  backdrop-filter: blur(4px);
}

.catalog-filter-panel {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(390px, calc(100vw - 28px));
  align-content: start;
  gap: 18px;
  border: 1px solid rgba(255, 210, 63, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 210, 63, 0.28), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 241, 215, 0.96));
  box-shadow:
    0 28px 70px rgba(32, 23, 31, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.76);
  padding: 18px;
  overflow: auto;
  transform: translateX(calc(100% + 28px));
  transition: transform 240ms cubic-bezier(0.16, 0.9, 0.22, 1);
}

.catalog-filter-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.catalog-filter-panel__header h3 {
  font-size: clamp(1.55rem, 5vw, 2.2rem);
}

.catalog-filter-shell[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.catalog-filter-shell[aria-hidden="false"] .catalog-filter-shell__backdrop {
  opacity: 1;
}

.catalog-filter-shell[aria-hidden="false"] .catalog-filter-panel {
  transform: translateX(0);
}

body.filters-open {
  overflow: hidden;
}

.catalog-filter-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 2px;
}

.filter-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 0 15px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.filter-action--ghost {
  border: 1px solid rgba(56, 36, 22, 0.14);
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.76);
}

.filter-action--primary {
  background:
    linear-gradient(135deg, var(--sun), #fff47b);
  color: var(--ink);
  box-shadow:
    0 14px 30px rgba(255, 210, 63, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.filter-action--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  transform: translateX(-120%) skewX(-14deg);
  animation: buttonSheen 4.8s ease-in-out infinite;
}

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

.controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, 180px) minmax(130px, 180px) minmax(140px, 180px);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dccab0;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  padding: 0 13px;
}

.icon-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.icon-button--reset {
  background: linear-gradient(135deg, var(--ink), #4a2a1d);
}

.flavor-pills,
.diet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.diet-pills {
  margin-top: -12px;
  margin-bottom: 20px;
}

.pill {
  border: 1px solid #dfc9ac;
  border-radius: 999px;
  background: #fffaf1;
  color: var(--ink);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}

.pill[aria-pressed="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: #fff;
}

.pill--diet {
  border-color: rgba(0, 185, 118, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 185, 118, 0.16), transparent 42%),
    #fffdf8;
  color: #285942;
}

.pill--diet[aria-pressed="true"] {
  background: linear-gradient(135deg, #00b976, #2ec4b6);
  border-color: #00b976;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 185, 118, 0.18);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.chip-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-height: 292px;
  border: 1px solid rgba(255, 79, 94, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fffdf8, #fff6e8);
  padding: 15px;
  cursor: grab;
  animation: cardIn 560ms ease both;
  animation-delay: calc((var(--card-index, 0) % 8) * 42ms);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.chip-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--card-glow-x, 18%) var(--card-glow-y, 0%), rgba(255, 210, 63, 0.24), transparent 32%),
    linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.44) 46%, transparent 56% 100%);
  background-size: 100% 100%, 230% 100%;
  background-position: center, -160% 0;
  opacity: 0;
  transition: opacity 180ms ease, background-position 520ms ease;
}

.chip-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  box-shadow:
    0 0 0 0 rgba(255, 210, 63, 0.28),
    0 0 18px rgba(255, 210, 63, 0.34);
  opacity: 0.38;
  animation: cardSignalBlink 4.4s ease-in-out infinite;
  animation-delay: calc((var(--card-index, 0) % 6) * 220ms);
}

.chip-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 79, 94, 0.24);
  box-shadow:
    0 18px 30px rgba(255, 79, 94, 0.12),
    0 0 0 2px rgba(255, 210, 63, 0.14);
}

.chip-card:hover::before {
  opacity: 1;
  background-position: center, 160% 0;
}

.chip-card.is-rated-pop {
  animation: cardScorePop 700ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

.chip-card.is-rated-pop::before {
  opacity: 1;
  background-position: center, 160% 0;
}

.chip-card:active {
  cursor: grabbing;
}

.chip-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-media {
  display: grid;
  width: 112px;
  height: 118px;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.95), rgba(255, 250, 238, 0.52) 44%, rgba(255, 208, 91, 0.26) 45%, rgba(255, 208, 91, 0.08));
  overflow: hidden;
}

.product-media.has-image {
  background: linear-gradient(145deg, #fffdf8, #fff1d7);
}

.product-media img {
  display: block;
  max-width: 104px;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(66, 38, 17, 0.2));
  animation: productFloat 4.8s ease-in-out infinite alternate;
}

.product-media .bag {
  transform: rotate(var(--tilt, -5deg)) scale(0.9);
}

.old-bag {
  display: none;
}

.bag {
  position: relative;
  width: 76px;
  height: 96px;
  border-radius: 9px 9px 14px 14px;
  background: var(--bag-color, var(--sun));
  box-shadow: inset -9px 0 rgba(0, 0, 0, 0.12), 0 14px 24px rgba(0, 0, 0, 0.12);
  transform: rotate(var(--tilt, -5deg));
  overflow: hidden;
}

.bag::before,
.bag::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.bag::before {
  top: 12px;
}

.bag::after {
  bottom: 12px;
}

.bag__stripe {
  position: absolute;
  inset: 33px 9px auto;
  height: 19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.bag__chip {
  position: absolute;
  left: 24px;
  bottom: 31px;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 55% 45% 52% 48%;
  background: #f5c35d;
  box-shadow: inset -4px -3px rgba(145, 91, 18, 0.12);
}

.chip-card__brand {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chip-card__meta {
  min-height: 42px;
  margin: 9px 0 12px;
  color: var(--muted);
  line-height: 1.45;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  background: #f0e4d2;
  color: #5b4535;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.rating {
  display: grid;
  grid-template-columns: repeat(5, 32px);
  gap: 4px;
  align-self: end;
}

.rating__label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.star {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #f0e4d2;
  color: #7b6552;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.star.is-on {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(255, 200, 87, 0.24);
  animation: starButtonSettle 420ms cubic-bezier(0.16, 0.9, 0.28, 1);
}

.star:hover {
  transform: translateY(-2px) scale(1.04);
}

.community-score {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(56, 36, 22, 0.1);
  padding-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.review-open {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(56, 36, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 241, 215, 0.9)),
    #fff6e8;
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
  line-height: 1.05;
  min-width: 0;
  padding: 9px 10px;
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.review-open span {
  min-width: 0;
  margin-right: auto;
  overflow-wrap: anywhere;
}

.review-open strong {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf4;
  font-size: 0.86rem;
  line-height: 1;
}

.review-open small {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.review-open:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 71, 48, 0.24);
  box-shadow: 0 10px 20px rgba(69, 43, 22, 0.1), inset 0 1px rgba(255, 255, 255, 0.84);
}

.chip-card__body h3,
.product-media {
  cursor: pointer;
}

.score-label {
  color: var(--tomato);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.star-meter {
  position: relative;
  display: inline-block;
  width: max-content;
  color: #e7d7bf;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 2.05rem;
  line-height: 0.9;
  letter-spacing: 0;
}

.star-meter__base,
.star-meter__fill {
  display: block;
  white-space: nowrap;
}

.star-meter__fill {
  position: absolute;
  inset: 0 auto auto 0;
  width: 0;
  overflow: hidden;
  color: var(--sun);
  text-shadow: 0 2px 0 rgba(86, 52, 18, 0.12);
  animation: starGlow 2.2s ease-in-out infinite alternate;
}

.vote-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  align-self: start;
}

.ranking-panel__inner {
  min-width: 0;
  max-height: none;
  overflow: visible;
  border-radius: 8px;
  padding: 24px;
}

.ranking-panel__inner > * {
  min-width: 0;
}

.ranking-intro {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.taste-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 185, 118, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 210, 63, 0.28), rgba(255, 79, 94, 0.14)),
    #fff8ec;
  padding: 14px;
}

.taste-card::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: -1;
  background:
    conic-gradient(from 90deg, transparent, rgba(255, 210, 63, 0.28), transparent, rgba(0, 185, 118, 0.16), transparent);
  opacity: 0.56;
  animation: tasteAuraSpin 12s linear infinite;
}

.taste-card::after {
  content: "";
  position: absolute;
  inset: auto 12% 10px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(10px);
  animation: tasteFloorGlow 3.6s ease-in-out infinite alternate;
  pointer-events: none;
}

.taste-card.is-level-pulse {
  animation: levelPulse 820ms cubic-bezier(0.16, 0.9, 0.22, 1) both;
}

.taste-rank-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.taste-badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  border: 1px solid rgba(37, 27, 22, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, #20171f, #5c31aa);
  color: #fff8ec;
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(124, 77, 255, 0.18);
  overflow-wrap: anywhere;
}

.taste-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(32, 23, 31, 0.12);
  overflow: hidden;
}

.taste-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--sun), var(--tomato));
  background-size: 180% 100%;
  animation: meterFlow 2.8s ease-in-out infinite;
  transition: width 260ms ease;
}

.taste-level {
  margin: 0;
  color: #9a4a21;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.taste-title {
  margin: 0;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.taste-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.taste-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin-top: 2px;
}

.taste-spec {
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(37, 27, 22, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 210, 63, 0.26), transparent 34%),
    rgba(255, 255, 255, 0.62);
  padding: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
}

.taste-spec::before {
  content: "";
  position: absolute;
  inset: auto -20% -18px 18%;
  z-index: -1;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 79, 94, 0.16);
  filter: blur(12px);
  opacity: 0.9;
}

.taste-spec span {
  color: var(--tomato);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.taste-spec strong {
  min-width: 0;
  color: var(--ink);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.taste-spec small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.taste-spec__meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 23, 31, 0.1);
}

.taste-spec__meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tomato), var(--sun), var(--leaf));
  box-shadow: 0 0 16px rgba(255, 200, 87, 0.34);
}

.taste-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  margin-top: 2px;
}

.taste-path span {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 2px;
  border: 1px solid rgba(37, 27, 22, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 7px 2px 6px;
  color: rgba(37, 27, 22, 0.44);
}

.taste-path span.is-unlocked {
  border-color: rgba(244, 93, 72, 0.28);
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.5), rgba(244, 93, 72, 0.18));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.48);
}

.taste-path strong {
  font-size: 0.86rem;
  line-height: 1;
}

.ranking-list {
  display: grid;
  gap: 10px;
  min-height: 180px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-list--hidden {
  display: none;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #e1cdb1;
  border-radius: 8px;
  background: #fff8ec;
  padding: 10px;
}

.ranking-item[draggable="true"] {
  cursor: grab;
}

.ranking-number {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--sun);
  font-weight: 900;
}

.ranking-item h3 {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: anywhere;
}

.ranking-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.ranking-controls {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.move-rank,
.remove-rank {
  display: grid;
  min-width: 38px;
  min-height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f1e3cf;
  cursor: pointer;
  padding: 0 8px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
}

.remove-rank {
  min-width: 32px;
  padding: 0;
}

.move-rank:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.ranking-note {
  color: var(--muted);
  line-height: 1.45;
}

.seo-copy {
  grid-column: 1 / -1;
  border: 1px solid rgba(56, 36, 22, 0.11);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
}

.seo-copy__details summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.seo-copy__details summary::-webkit-details-marker {
  display: none;
}

.seo-copy__details summary::after {
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--tomato);
  border-bottom: 2px solid var(--tomato);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.seo-copy__details[open] summary::after {
  transform: rotate(225deg);
}

.seo-copy h2 {
  max-width: 780px;
  margin: 0;
}

.seo-copy__details summary span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f0e4d2;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.seo-copy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(56, 36, 22, 0.1);
}

.seo-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.6;
}

.sources {
  grid-column: 1 / -1;
}

.site-footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: center;
  justify-items: stretch;
  border-top: 1px solid rgba(255, 210, 63, 0.24);
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 210, 63, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.42), rgba(255, 240, 216, 0.72));
  padding: 22px 16px 10px;
  text-align: left;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-footer__logo {
  width: 58px;
  height: auto;
  margin-right: 2px;
  filter: drop-shadow(0 8px 14px rgba(32, 23, 31, 0.16));
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.site-footer a,
.site-footer button,
.privacy-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.site-footer a:hover,
.site-footer button:hover,
.privacy-back:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer p {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 200, 87, 0.25), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(244, 93, 72, 0.18), transparent 30%),
    var(--paper);
}

.privacy-main {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.privacy-standalone {
  margin-top: 18px;
}

.privacy {
  grid-column: 1 / -1;
  border: 1px solid rgba(56, 36, 22, 0.11);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

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

.privacy-grid article {
  border: 1px solid rgba(56, 36, 22, 0.1);
  border-radius: 8px;
  background: #fff8ec;
  padding: 16px;
}

.privacy-grid h3 {
  font-size: 1.22rem;
}

.privacy-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.sources p {
  max-width: 850px;
  color: var(--muted);
  line-height: 1.65;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.source-links a {
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 11px 13px;
  font-weight: 800;
  text-decoration: none;
}

.empty {
  border: 1px dashed #d7bd98;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 700;
}

.dragging {
  opacity: 0.48;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 210;
  max-width: min(460px, calc(100% - 32px));
  border-radius: 999px;
  background: rgba(37, 27, 22, 0.92);
  color: #fff;
  padding: 13px 18px;
  box-shadow: 0 18px 40px rgba(37, 27, 22, 0.24);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rank-pop {
  position: fixed;
  top: max(86px, env(safe-area-inset-top, 0px) + 70px);
  right: max(16px, calc((100vw - 1180px) / 2));
  z-index: 215;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  width: min(430px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(135deg, rgba(255, 210, 63, 0.96), rgba(255, 79, 94, 0.88) 58%, rgba(124, 77, 255, 0.9));
  box-shadow:
    0 24px 62px rgba(255, 79, 94, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.34) inset;
  padding: 14px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(18px, -12px, 0) scale(0.94) rotate(1.8deg);
}

.rank-pop.is-visible {
  animation: rankPopIn 620ms cubic-bezier(0.16, 0.9, 0.22, 1) forwards;
}

.rank-pop.is-leaving {
  animation: rankPopOut 460ms ease forwards;
}

.rank-pop__shine {
  position: absolute;
  inset: -45% -35%;
  z-index: -1;
  background:
    conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.46), transparent, rgba(0, 185, 118, 0.18), transparent);
  opacity: 0.82;
  animation: rankShineSpin 4.8s linear infinite;
}

.rank-pop__badge {
  display: grid;
  width: 70px;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: rgba(32, 23, 31, 0.94);
  color: #fffdf8;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  box-shadow:
    0 14px 28px rgba(32, 23, 31, 0.28),
    0 0 22px rgba(255, 255, 255, 0.18) inset;
}

.rank-pop__body {
  min-width: 0;
  color: #20171f;
}

.rank-pop__body span {
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.rank-pop__body strong {
  display: block;
  margin-top: 3px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(1.2rem, 4.6vw, 1.72rem);
  font-weight: 950;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.rank-pop__body p {
  margin: 6px 0 0;
  color: rgba(32, 23, 31, 0.74);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
}

.rank-pop__meter {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 23, 31, 0.18);
}

.rank-pop__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fffdf8, #00b976, #fff06d);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.42);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 220;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(37, 27, 22, 0.94);
  color: #fffdf8;
  box-shadow: 0 20px 52px rgba(37, 27, 22, 0.32);
  padding: 16px;
  backdrop-filter: blur(18px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.18rem;
}

.cookie-banner p {
  margin: 5px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-weight: 800;
  line-height: 1.42;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.cookie-banner .button {
  min-height: 44px;
}

body.modal-open {
  overflow: hidden;
}

.profile-modal,
.product-modal,
.research-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: grid;
  place-items: center;
  background: rgba(37, 27, 22, 0.48);
  padding: 18px;
  backdrop-filter: blur(12px);
}

.profile-modal[hidden],
.product-modal[hidden],
.research-modal[hidden] {
  display: none;
}

.profile-modal__panel,
.product-modal__panel,
.research-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(56, 36, 22, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 26px 70px rgba(37, 27, 22, 0.28);
  padding: clamp(18px, 3vw, 28px);
}

.product-modal__panel {
  width: min(840px, 100%);
}

.research-modal__panel {
  width: min(680px, 100%);
}

.profile-modal__close,
.product-modal__close,
.research-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f1e3cf;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.profile-modal__lead,
.product-modal__lead,
.research-modal__lead {
  max-width: 620px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.research-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 14px 0 18px;
  border: 1px solid rgba(91, 57, 26, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 200, 87, 0.24), transparent 42%),
    #fff8ec;
  box-shadow: 0 16px 34px rgba(82, 46, 20, 0.1);
  padding: 12px;
}

.research-product__image {
  display: grid;
  min-width: 0;
  height: 92px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.research-product__image img {
  max-width: 68px;
  max-height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(67, 39, 15, 0.18));
}

.research-product__image .bag {
  width: 60px;
  height: 78px;
}

.research-product span,
.research-product small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.research-product span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.research-product strong {
  display: block;
  margin: 2px 0;
  color: var(--ink);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.google-benefits {
  display: grid;
  gap: 10px;
  margin: 16px 0 4px;
  border: 1px solid rgba(66, 133, 244, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 0%, rgba(66, 133, 244, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 228, 0.9));
  box-shadow: 0 14px 30px rgba(67, 39, 15, 0.08);
  padding: 13px;
}

.google-benefits strong {
  color: var(--ink);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.04rem;
  line-height: 1.1;
}

.google-benefits div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.google-benefits span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(56, 36, 22, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.12;
}

.product-modal__hero {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-right: 32px;
}

.product-modal__image {
  display: grid;
  min-height: 154px;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.9), rgba(255, 241, 215, 0.72) 48%, rgba(255, 200, 87, 0.22));
}

.product-modal__image img {
  display: block;
  max-width: 118px;
  max-height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgba(66, 38, 17, 0.22));
}

.review-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-radius: 8px;
  background: #fff6e8;
  padding: 14px;
}

.review-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.review-form textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid rgba(56, 36, 22, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 12px;
  font: inherit;
  font-weight: 800;
  line-height: 1.45;
}

.review-form textarea:focus {
  outline: 3px solid rgba(255, 200, 87, 0.42);
  border-color: rgba(177, 71, 48, 0.32);
}

.review-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.review-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.review-item,
.review-empty {
  border: 1px solid rgba(56, 36, 22, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  padding: 13px;
}

.review-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.review-item p,
.review-empty span {
  margin: 8px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.48;
  font-weight: 800;
}

.review-empty {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-weight: 900;
}

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

.profile-field {
  min-width: 0;
}

.profile-field span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: none;
}

.research-form {
  grid-template-columns: 1fr;
}

.research-form label {
  min-width: 0;
}

.research-game {
  display: grid;
  gap: 14px;
}

.research-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 205, 84, 0.18), rgba(255, 255, 255, 0.86)),
    #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(91, 57, 26, 0.1);
  margin: 0;
  padding: 13px;
}

.research-choice legend {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.research-choice label {
  cursor: pointer;
}

.research-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.research-choice span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(91, 57, 26, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(82, 46, 20, 0.08);
  padding: 8px 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 1000;
  line-height: 1.12;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.research-choice input:checked + span {
  border-color: rgba(103, 62, 16, 0.45);
  background:
    linear-gradient(135deg, #ffe071, #ff9d35 58%, #ff6f3c);
  box-shadow: 0 12px 24px rgba(255, 127, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.research-choice input:focus-visible + span {
  outline: 3px solid rgba(255, 159, 28, 0.38);
  outline-offset: 2px;
}

.profile-consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-radius: 8px;
  background: #fff6e8;
  padding: 12px;
}

.profile-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.profile-status,
.research-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.4;
}

.profile-status[data-tone="error"],
.research-status[data-tone="error"] {
  color: #b43124;
}

.profile-status[data-tone="ok"],
.research-status[data-tone="ok"] {
  color: #247a52;
}

.profile-actions,
.research-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-actions .button--google {
  order: -1;
}

.burst {
  position: fixed;
  z-index: 205;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.game-float {
  position: fixed;
  z-index: 206;
  pointer-events: none;
  max-width: min(220px, 72vw);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 210, 63, 0.9));
  color: var(--ink);
  padding: 7px 12px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow:
    0 16px 34px rgba(255, 79, 94, 0.22),
    0 0 0 2px rgba(255, 255, 255, 0.48) inset;
  transform: translate(-50%, -50%);
  animation: gameFloatUp 960ms cubic-bezier(0.16, 0.9, 0.22, 1) forwards;
}

.game-float--duel {
  background: linear-gradient(135deg, var(--sun), #fff47b 54%, #fffdf8);
}

.game-float--blind {
  background: linear-gradient(135deg, #7c4dff, #ffd23f);
  color: #fffdf8;
  text-shadow: 0 1px 0 rgba(32, 23, 31, 0.24);
}

.game-float--star {
  background: linear-gradient(135deg, #fffdf8, var(--sun));
}

.burst span {
  position: absolute;
  width: 11px;
  aspect-ratio: 1;
  border-radius: 42% 58% 54% 46%;
  background: var(--sun);
  box-shadow: 0 0 12px currentColor;
  animation: popDot 820ms cubic-bezier(0.16, 0.9, 0.28, 1) forwards;
}

.burst span:nth-child(2) {
  --angle: 60deg;
  background: var(--tomato);
  animation-delay: 20ms;
}

.burst span:nth-child(3) {
  --angle: 120deg;
  background: var(--leaf);
  animation-delay: 40ms;
}

.burst span:nth-child(4) {
  --angle: 180deg;
  background: var(--sea);
  animation-delay: 60ms;
}

.burst span:nth-child(5) {
  --angle: 240deg;
  background: var(--berry);
  animation-delay: 80ms;
}

.burst span:nth-child(6) {
  --angle: 300deg;
  background: #fff;
  animation-delay: 100ms;
}

.burst span:nth-child(7) {
  --angle: 30deg;
  width: 7px;
  background: var(--sun);
  animation-delay: 30ms;
}

.burst span:nth-child(8) {
  --angle: 90deg;
  width: 8px;
  background: #fff;
  animation-delay: 50ms;
}

.burst span:nth-child(9) {
  --angle: 150deg;
  width: 7px;
  background: var(--tomato);
  animation-delay: 70ms;
}

.burst span:nth-child(10) {
  --angle: 210deg;
  width: 8px;
  background: var(--leaf);
  animation-delay: 90ms;
}

.burst span:nth-child(11) {
  --angle: 270deg;
  width: 7px;
  background: var(--sea);
  animation-delay: 110ms;
}

.burst span:nth-child(12) {
  --angle: 330deg;
  width: 8px;
  background: var(--berry);
  animation-delay: 130ms;
}

.burst--blind span {
  border-radius: 50%;
  background: #7c4dff;
}

.burst--blind span:nth-child(2n) {
  background: var(--sun);
}

.burst--blind span:nth-child(3n) {
  background: #fff;
}

.burst--shelf span,
.burst--spark span {
  border-radius: 50%;
}

.burst--shelf span:nth-child(2n),
.burst--spark span:nth-child(2n) {
  background: var(--leaf);
}

.burst__label {
  position: absolute;
  left: 50%;
  top: -16px;
  display: block;
  width: max-content;
  max-width: min(220px, 80vw);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun), #fff47b);
  color: var(--ink);
  padding: 7px 11px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow:
    0 14px 30px rgba(255, 79, 94, 0.22),
    0 0 0 2px rgba(255, 255, 255, 0.34) inset;
  text-align: center;
  transform: translateX(-50%);
  animation: comboPop 940ms ease-out forwards;
}

.rating-burst {
  position: fixed;
  z-index: 205;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rating-burst span {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 45% 55% 52% 48%;
  background: var(--sun);
  box-shadow: 0 0 14px rgba(255, 210, 63, 0.58);
  animation: ratingPop 720ms cubic-bezier(0.16, 0.9, 0.28, 1) forwards;
}

.rating-burst span:nth-child(1) {
  --angle: -92deg;
}

.rating-burst span:nth-child(2) {
  --angle: -32deg;
  background: var(--tomato);
}

.rating-burst span:nth-child(3) {
  --angle: 28deg;
  background: #fff;
}

.rating-burst span:nth-child(4) {
  --angle: 86deg;
  background: var(--leaf);
}

.rating-burst span:nth-child(5) {
  --angle: 148deg;
  background: var(--sea);
}

.rating-burst strong {
  position: absolute;
  left: 50%;
  top: -42px;
  display: block;
  width: max-content;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sun), #fff47b);
  color: var(--ink);
  padding: 5px 9px;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 79, 94, 0.2);
  transform: translateX(-50%);
  animation: ratingLabel 720ms ease-out forwards;
}

@keyframes heroBreath {
  from {
    transform: scale(1.03);
    opacity: 0.19;
  }

  to {
    transform: scale(1.08);
    opacity: 0.28;
  }
}

@keyframes titleShine {
  0%,
  44% {
    translate: -26% 0;
    opacity: 0;
  }

  55% {
    opacity: 0.7;
  }

  70%,
  100% {
    translate: 260% 0;
    opacity: 0;
  }
}

@keyframes navGlowPulse {
  0%,
  100% {
    opacity: 0.56;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.08);
  }
}

@keyframes statCardSweep {
  0%,
  44%,
  100% {
    opacity: 0;
    transform: translateX(0) skewX(-14deg);
  }

  54% {
    opacity: 0.7;
  }

  68% {
    opacity: 0;
    transform: translateX(330%) skewX(-14deg);
  }
}

@keyframes statNumberPop {
  0%,
  72%,
  100% {
    transform: translateY(0) scale(1);
  }

  78% {
    transform: translateY(-2px) scale(1.045);
  }

  84% {
    transform: translateY(0) scale(0.99);
  }
}

@keyframes pulseBadgeBeat {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(32, 23, 31, 0.18), 0 0 18px rgba(255, 210, 63, 0.18);
  }

  50% {
    transform: scale(1.035);
    box-shadow: 0 12px 26px rgba(32, 23, 31, 0.2), 0 0 28px rgba(255, 210, 63, 0.34);
  }
}

@keyframes lightSweep {
  0%,
  100% {
    transform: translateX(-10%) skewX(-8deg);
    opacity: 0.36;
  }

  48% {
    transform: translateX(18%) skewX(-8deg);
    opacity: 0.82;
  }
}

@keyframes tabLightSlash {
  0% {
    opacity: 0;
    transform: translateX(-112%) skewX(-12deg);
  }

  18% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translateX(112%) skewX(-12deg);
  }
}

@keyframes tabVsSmash {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45) rotate(-18deg);
  }

  38% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(4deg);
  }

  68% {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.98) rotate(-3deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.22) rotate(8deg);
  }
}

@keyframes tabArenaIn {
  0% {
    opacity: 0;
    filter: saturate(1.24) brightness(1.12);
    transform: translateY(18px) scale(0.985) rotate(-0.45deg);
  }

  58% {
    opacity: 1;
    transform: translateY(-3px) scale(1.006) rotate(0.18deg);
  }

  100% {
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes tabTitleDrop {
  0% {
    opacity: 0;
    transform: translateY(-18px) scale(0.98) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes driftGold {
  from {
    transform: translate3d(-16px, 10px, 0) scale(0.92);
    opacity: 0.45;
  }

  to {
    transform: translate3d(28px, -22px, 0) scale(1.12);
    opacity: 0.74;
  }
}

@keyframes driftRed {
  from {
    transform: translate3d(18px, -8px, 0) scale(0.98);
  }

  to {
    transform: translate3d(-22px, 24px, 0) scale(1.18);
  }
}

@keyframes driftMint {
  from {
    transform: translate3d(-12px, 18px, 0);
    opacity: 0.22;
  }

  to {
    transform: translate3d(20px, -16px, 0);
    opacity: 0.48;
  }
}

@keyframes beamSlide {
  0% {
    translate: -35% 0;
    opacity: 0;
  }

  22%,
  62% {
    opacity: 0.72;
  }

  100% {
    translate: 110% 0;
    opacity: 0;
  }
}

@keyframes buttonSheen {
  0%,
  54%,
  100% {
    transform: translateX(-120%) skewX(-14deg);
    opacity: 0;
  }

  66% {
    opacity: 0.88;
  }

  82% {
    transform: translateX(120%) skewX(-14deg);
    opacity: 0;
  }
}

@keyframes blindScan {
  0%,
  52%,
  100% {
    opacity: 0;
    transform: translateX(-58%) skewX(-10deg);
  }

  62% {
    opacity: 0.62;
  }

  82% {
    opacity: 0;
    transform: translateX(58%) skewX(-10deg);
  }
}

@keyframes packFloat {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -12px;
  }
}

@keyframes packSwing {
  0%,
  100% {
    transform: rotate(calc(var(--pack-rotate) - var(--pack-swing))) scale(1);
  }

  45% {
    transform: rotate(calc(var(--pack-rotate) + var(--pack-swing))) scale(1.025);
  }

  62% {
    transform: rotate(calc(var(--pack-rotate) + var(--pack-swing) * 0.45)) scale(1.015);
  }
}

@keyframes duelPickImpact {
  0% {
    transform: translateY(0) scale(1) rotate(0);
    box-shadow: 0 16px 34px rgba(255, 79, 94, 0.11);
  }

  42% {
    transform: translateY(-7px) scale(1.035) rotate(-0.7deg);
    box-shadow:
      0 26px 54px rgba(0, 185, 118, 0.2),
      0 0 0 4px rgba(255, 210, 63, 0.28);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
    box-shadow: 0 16px 34px rgba(255, 79, 94, 0.11);
  }
}

@keyframes duelDefeated {
  0% {
    transform: translateY(0) scale(1) rotate(0);
  }

  48% {
    transform: translateY(10px) scale(0.96) rotate(1.8deg);
  }

  100% {
    transform: translateY(6px) scale(0.985) rotate(0.6deg);
  }
}

@keyframes duelMistDrift {
  0% {
    transform: translate3d(-3%, 2%, 0) rotate(0deg) scale(1.02);
    background-position: 0% 50%;
  }

  48% {
    transform: translate3d(2%, -2%, 0) rotate(9deg) scale(1.07);
  }

  100% {
    transform: translate3d(4%, 3%, 0) rotate(-7deg) scale(1.04);
    background-position: 100% 50%;
  }
}

@keyframes versusHit {
  0% {
    transform: scale(1) rotate(0);
    box-shadow:
      0 12px 24px rgba(124, 77, 255, 0.18),
      0 0 0 3px rgba(255, 210, 63, 0.18);
  }

  38% {
    transform: scale(1.22) rotate(-8deg);
    box-shadow:
      0 18px 34px rgba(255, 79, 94, 0.3),
      0 0 0 7px rgba(255, 210, 63, 0.28),
      0 0 32px rgba(255, 210, 63, 0.42);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes pickedPackPop {
  0% {
    transform: translateY(0) scale(1) rotate(0);
  }

  45% {
    transform: translateY(-8px) scale(1.08) rotate(3deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes gameFloatUp {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.78) rotate(-2deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -12px) scale(1.08) rotate(1deg);
  }

  74% {
    opacity: 1;
    transform: translate(-50%, -44px) scale(1) rotate(0);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -58px) scale(0.9) rotate(1deg);
  }
}

@keyframes popDot {
  from {
    opacity: 1;
    transform: rotate(var(--angle, 0deg)) translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: rotate(var(--angle, 0deg)) translateX(142px) scale(0.18) rotate(120deg);
  }
}

@keyframes cardScorePop {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 18px 30px rgba(255, 79, 94, 0.12),
      0 0 0 2px rgba(255, 210, 63, 0.14);
  }

  42% {
    transform: translateY(-8px) scale(1.018) rotate(-0.5deg);
    box-shadow:
      0 28px 58px rgba(255, 79, 94, 0.18),
      0 0 0 4px rgba(255, 210, 63, 0.24),
      0 0 34px rgba(255, 210, 63, 0.18);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes levelPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: none;
  }

  38% {
    transform: scale(1.012);
    box-shadow:
      0 18px 40px rgba(255, 210, 63, 0.22),
      0 0 0 3px rgba(255, 210, 63, 0.18);
  }
}

@keyframes resultSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes comboPop {
  0% {
    opacity: 0;
    transform: translate(-50%, 14px) scale(0.82) rotate(-3deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.08) rotate(2deg);
  }

  68% {
    opacity: 1;
    transform: translate(-50%, -28px) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -42px) scale(0.92) rotate(1deg);
  }
}

@keyframes tasteAuraSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes shareArenaSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes tasteFloorGlow {
  from {
    opacity: 0.28;
    transform: scaleX(0.7);
  }

  to {
    opacity: 0.7;
    transform: scaleX(1.04);
  }
}

@keyframes meterFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes cardSignalBlink {
  0%,
  70%,
  100% {
    opacity: 0.28;
    transform: scale(1);
    box-shadow:
      0 0 0 0 rgba(255, 210, 63, 0),
      0 0 18px rgba(255, 210, 63, 0.22);
  }

  78% {
    opacity: 0.72;
    transform: scale(1.18);
    box-shadow:
      0 0 0 8px rgba(255, 210, 63, 0.08),
      0 0 24px rgba(255, 210, 63, 0.38);
  }
}

@keyframes starButtonSettle {
  0% {
    transform: scale(0.86) rotate(-8deg);
  }

  52% {
    transform: scale(1.18) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes arenaWin {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 28px 70px rgba(15, 9, 6, 0.34),
      0 0 0 1px rgba(255, 210, 63, 0.22),
      inset 0 1px rgba(255, 255, 255, 0.86);
  }

  32% {
    transform: translateY(-2px) scale(1.012);
    box-shadow:
      0 34px 80px rgba(255, 79, 94, 0.28),
      0 0 0 4px rgba(255, 210, 63, 0.26),
      0 0 42px rgba(0, 185, 118, 0.18),
      inset 0 1px rgba(255, 255, 255, 0.92);
  }
}

@keyframes ratingPop {
  0% {
    opacity: 0;
    transform: rotate(var(--angle, 0deg)) translateX(0) scale(0.6);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(var(--angle, 0deg)) translateX(54px) scale(0.12) rotate(80deg);
  }
}

@keyframes ratingLabel {
  0% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.84);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -4px) scale(1.08);
  }

  72% {
    opacity: 1;
    transform: translate(-50%, -12px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -22px) scale(0.9);
  }
}

@keyframes rankPopIn {
  0% {
    opacity: 0;
    transform: translate3d(22px, -16px, 0) scale(0.9) rotate(2.2deg);
  }

  56% {
    opacity: 1;
    transform: translate3d(-4px, 3px, 0) scale(1.035) rotate(-1.2deg);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
}

@keyframes rankPopOut {
  to {
    opacity: 0;
    transform: translate3d(18px, -10px, 0) scale(0.96) rotate(1.4deg);
  }
}

@keyframes rankShineSpin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes productFloat {
  from {
    translate: 0 0;
    rotate: -0.7deg;
  }

  to {
    translate: 0 -5px;
    rotate: 0.7deg;
  }
}

@keyframes duelPackWiggle {
  0%,
  100% {
    transform: translateY(0) rotate(-1.4deg);
  }

  35% {
    transform: translateY(-4px) rotate(1.8deg);
  }

  68% {
    transform: translateY(1px) rotate(-0.6deg);
  }
}

@keyframes duelPackWiggleAlt {
  0%,
  100% {
    transform: translateY(0) rotate(1.4deg);
  }

  42% {
    transform: translateY(-5px) rotate(-1.8deg);
  }

  72% {
    transform: translateY(1px) rotate(0.6deg);
  }
}

@keyframes surfaceGlow {
  from {
    --glow-x: 15%;
    --glow-y: 0%;
  }

  to {
    --glow-x: 85%;
    --glow-y: 20%;
  }
}

@keyframes starGlow {
  from {
    filter: drop-shadow(0 0 0 rgba(255, 200, 87, 0));
  }

  to {
    filter: drop-shadow(0 0 8px rgba(255, 200, 87, 0.34));
  }
}

@media (min-width: 981px) and (max-width: 1700px) {
  .hero__content {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
    gap: clamp(22px, 3vw, 38px);
  }

  .game-title {
    font-size: clamp(4.4rem, 7vw, 6.35rem);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    grid-template-columns: 1fr;
    padding-bottom: 52px;
  }

  body[data-active-tab="play"] .hero__content {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  body[data-active-tab="play"] .hero__copy,
  body[data-active-tab="play"] .hero-duel {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  main {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats__heading {
    grid-column: 1 / -1;
  }

  .catalog {
    order: 4;
  }

  .ranking-panel {
    order: 5;
  }

  .sources {
    order: 6;
  }

  .privacy {
    order: 7;
  }

  .site-footer {
    order: 8;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer div,
  .site-footer nav {
    justify-content: center;
  }

  .site-footer p {
    justify-self: center;
  }

  .blind-game,
  .duel-spotlight,
  .duel-spotlight__stage {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .rank-pop {
    top: max(74px, env(safe-area-inset-top, 0px) + 58px);
    right: 10px;
    left: 10px;
    grid-template-columns: 58px minmax(0, 1fr);
    width: auto;
    padding: 11px;
  }

  .rank-pop__badge {
    width: 58px;
    font-size: 0.72rem;
  }

  .rank-pop__body p {
    font-size: 0.82rem;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
    padding: 7px 11px;
  }

  .brand-cluster {
    flex: 1 1 min(0, calc(100% - 112px));
    width: auto;
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__logo {
    width: clamp(82px, 25vw, 104px);
    max-height: 56px;
  }

  .ranker-switch {
    flex: 0 0 min(42vw, 180px);
  }

  .ranker-switch summary {
    min-width: 0;
    width: 100%;
  }

  .ranker-switch__menu {
    right: 0;
    left: auto;
  }

  .ranker-switch a {
    text-align: center;
  }

  .topbar-profile {
    flex: 0 0 48px;
    width: 48px;
    min-height: 48px;
    margin-left: auto;
    overflow: hidden;
    padding: 0;
    border-radius: 999px;
  }

  .topbar__actions {
    gap: 8px;
    margin-left: auto;
  }

  .topbar-auth__state {
    width: 12px;
    min-width: 12px;
    min-height: 12px;
    overflow: hidden;
    border-width: 0;
    padding: 0;
    color: transparent;
    background: transparent;
    backdrop-filter: none;
  }

  .topbar-auth__state::before {
    width: 10px;
  }

  .topbar-auth__logout {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .topbar-filter {
    flex: 0 0 48px;
    width: 48px;
    min-height: 48px;
    overflow: hidden;
    padding: 0;
    border-radius: 999px;
  }

  .topbar-filter .filter-trigger__icon {
    width: 48px;
    background: linear-gradient(135deg, var(--sun), #fff47b);
  }

  .topbar-filter > span:not(.filter-trigger__icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .topbar-profile::before {
    width: 24px;
    margin: 0;
  }

  .topbar-profile__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .topbar__links {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 10000;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: auto;
    max-width: calc(100vw - 24px);
    gap: 8px;
    border: 1px solid rgba(255, 210, 63, 0.32);
    border-radius: 8px;
    background:
      radial-gradient(circle at 50% -20%, rgba(255, 210, 63, 0.24), transparent 38%),
      linear-gradient(135deg, rgba(32, 23, 31, 0.96), rgba(54, 33, 82, 0.94));
    padding: 8px;
    box-shadow:
      0 20px 52px rgba(32, 23, 31, 0.34),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset,
      0 0 32px rgba(255, 210, 63, 0.16);
    backdrop-filter: blur(18px);
    transform: translateZ(0);
  }

  .topbar__links::before {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: -1;
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(255, 210, 63, 0.28), rgba(0, 185, 118, 0.12), rgba(255, 79, 94, 0.2));
    opacity: 0.55;
    filter: blur(10px);
    pointer-events: none;
  }

  .topbar__links a {
    display: grid;
    grid-template-rows: 28px auto;
    min-width: 0;
    gap: 4px;
    min-height: 56px;
    place-items: center;
    border-radius: 8px;
    padding: 7px 5px 6px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    text-align: center;
    color: rgba(255, 253, 248, 0.78);
    font-size: 0.66rem;
    font-weight: 950;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  }

  .topbar__links a::after {
    inset: auto 18% 4px;
    height: 4px;
    filter: blur(5px);
  }

  .topbar__links a.is-active {
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.7), transparent 34%),
      linear-gradient(135deg, var(--sun), #fff47b);
    color: var(--ink);
    box-shadow:
      0 12px 28px rgba(255, 210, 63, 0.28),
      0 0 0 2px rgba(255, 255, 255, 0.18) inset;
    transform: translateY(-7px);
  }

  .topbar__links a.is-active::before {
    content: "";
    position: absolute;
    top: -5px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: #fffdf8;
    box-shadow:
      0 0 16px rgba(255, 255, 255, 0.78),
      0 0 24px rgba(255, 210, 63, 0.5);
  }

  .topbar__links svg {
    width: 21px;
    height: 21px;
    border-radius: 8px;
    padding: 4px;
    background: rgba(255, 253, 248, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .topbar__links a.is-active svg {
    background: var(--ink);
    color: #fffdf8;
    box-shadow:
      0 8px 18px rgba(32, 23, 31, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .topbar__links .battle-icon--small {
    width: 29px;
    border-radius: 8px;
    font-size: 0.68rem;
    box-shadow:
      0 8px 18px rgba(255, 79, 94, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  }

  .topbar__links a.is-active .battle-icon--small {
    background: var(--ink);
    color: #fffdf8;
    transform: rotate(-7deg) scale(1.04);
  }

  .hero {
    min-height: auto;
  }

  .hero__image {
    background-image:
      linear-gradient(180deg, rgba(24, 15, 10, 0.92), rgba(24, 15, 10, 0.48)),
      url("./assets/sipsi-hero.jpg");
    background-position: 58% center;
  }

  .hero__content {
    padding-top: 34px;
    padding-bottom: 30px;
  }

  body[data-active-tab="play"] .hero__content {
    gap: 18px;
    overflow: hidden;
  }

  body[data-active-tab="play"] .hero-duel {
    overflow: hidden;
  }

  h1 {
    font-size: clamp(2.42rem, 12.8vw, 4.1rem);
  }

  .game-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.86rem, 13.5vw, 4.1rem);
    line-height: 0.86;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-text-stroke-width: 2px;
    text-shadow:
      0 3px 0 #ff4f5e,
      0 7px 0 rgba(124, 77, 255, 0.32),
      0 16px 28px rgba(32, 23, 31, 0.3);
  }

  .game-title::before {
    right: 0;
    left: 0;
  }

  .game-title__subtitle {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    font-size: clamp(0.96rem, 4.6vw, 1.15rem);
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero__lead {
    margin-top: 12px;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .hero-duel {
    padding: 14px;
  }

  .hero-duel h2 {
    font-size: clamp(1.7rem, 9vw, 2.55rem);
  }

  .hero-duel > p:not(.eyebrow) {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  .game-pulse {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .game-pulse__badge {
    width: max-content;
    max-width: 100%;
  }

  .game-share--footer {
    justify-content: stretch;
  }

  .game-share--footer .share-pill {
    flex: 1 1 134px;
  }

  .hero-duel .duel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-duel .duel-versus {
    justify-self: center;
    width: 36px;
    margin: -3px 0;
  }

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

  .stats__heading {
    padding: 12px;
    text-align: left;
  }

  .stats__heading h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .stats__heading p:not(.eyebrow) {
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .stats article {
    display: grid;
    align-content: center;
    min-height: 74px;
    padding: 9px 6px;
    text-align: center;
  }

  .stats strong {
    font-size: clamp(1.04rem, 6.4vw, 1.62rem);
  }

  .stats span {
    font-size: 0.68rem;
    line-height: 1.18;
  }

  .app-tabs {
    top: 8px;
    gap: 6px;
    padding: 6px;
  }

  .app-tab {
    grid-template-columns: 1fr;
    gap: 5px;
    justify-items: center;
    padding: 7px 5px;
    text-align: center;
  }

  .app-tab__icon {
    width: 38px;
  }

  .app-tab svg {
    width: 20px;
    height: 20px;
  }

  .app-tab strong {
    font-size: 0.72rem;
  }

  .app-tab small {
    display: none;
  }

  .duel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .duel-versus {
    justify-self: center;
    width: 38px;
    margin: -4px 0;
  }

  .duel-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 124px;
    align-items: center;
    padding: 10px;
  }

  .duel-card::before {
    inset: -22%;
    filter: blur(13px) saturate(1.02);
    opacity: 0.48;
    animation-duration: 10s;
  }

  .duel-card__image {
    grid-row: 1 / 4;
    height: 102px;
    margin: 0 6px 0 0;
  }

  .duel-card img {
    max-width: 76px;
    max-height: 98px;
  }

  .hero-duel .duel-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 124px;
    align-items: center;
    padding: 10px;
  }

  .hero-duel .duel-card__image {
    grid-row: 1 / 4;
    height: 102px;
    margin: 0 6px 0 0;
  }

  .hero-duel .duel-card img {
    max-width: 76px;
    max-height: 98px;
  }

  .hero-duel .duel-card strong {
    font-size: 1rem;
  }

  .hero-duel .duel-card small {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .duel-result__header {
    grid-template-columns: 1fr;
  }

  .duel-result__header strong,
  .duel-result__row strong,
  .duel-podium strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .duel-result__row > div:first-child {
    display: grid;
    gap: 2px;
  }

  .duel-champion {
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px;
  }

  .duel-champion__image {
    min-height: 98px;
  }

  .duel-champion__image img {
    max-width: 70px;
    max-height: 92px;
  }

  .duel-champion h3 {
    font-size: 1.22rem;
  }

  .duel-crown {
    font-size: 0.72rem;
    padding: 5px 8px;
  }

  .duel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
  }

  .duel-metrics span {
    padding: 6px;
    font-size: 0.68rem;
  }

  .duel-metrics strong {
    font-size: 1rem;
  }

  .duel-podium {
    gap: 6px;
  }

  .duel-podium li {
    padding: 7px;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 8px;
    background: #fff6e8;
    padding: 12px;
  }

  .icon-button {
    width: 100%;
    aspect-ratio: auto;
    min-height: 44px;
  }

  .chip-grid {
    grid-template-columns: 1fr;
  }

  .chip-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: auto;
    gap: 10px;
    padding: 12px;
  }

  .chip-card__top {
    grid-row: 1 / 4;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .product-media {
    width: 100%;
    height: 106px;
  }

  .product-media img {
    max-width: 86px;
    max-height: 98px;
  }

  .chip-card__body {
    min-width: 0;
  }

  .chip-card__body h3 {
    font-size: 1.08rem;
  }

  .chip-card__meta {
    min-height: 0;
    margin: 7px 0 10px;
    font-size: 0.88rem;
  }

  .rating {
    grid-template-columns: repeat(5, 30px);
    align-self: start;
  }

  .star {
    width: 30px;
  }

  .star-meter {
    font-size: 1.65rem;
  }

  .community-score {
    grid-column: 1 / -1;
  }

  .review-open {
    grid-column: 1 / -1;
  }

  .ranking-panel__inner {
    padding: 18px;
  }

  .ranking-intro {
    font-size: 0.9rem;
  }

  .ranking-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .ranking-number {
    width: 30px;
  }

  .ranking-actions .button {
    flex: 1 1 130px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  main,
  .topbar,
  .hero__content {
    width: min(100% - 22px, 1180px);
  }

  main {
    gap: 18px;
    margin-top: 20px;
  }

  .play-zone,
  .duel-spotlight,
  .catalog,
  .ranking-panel__inner,
  .privacy,
  .sources {
    padding: 16px;
  }

  .privacy-grid,
  .seo-copy__grid,
  .profile-form,
  .research-form,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .button {
    flex: 1 1 140px;
    text-align: center;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions .button {
    flex: 1 1 160px;
  }

  .seo-copy__details summary {
    align-items: flex-start;
  }

  .seo-copy__details summary span {
    display: none;
  }

  .product-modal__panel {
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .product-modal__hero {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding-right: 28px;
  }

  .product-modal__image {
    min-height: 104px;
  }

  .product-modal__image img {
    max-width: 76px;
    max-height: 94px;
  }

  .review-form__actions {
    justify-content: stretch;
  }

  .review-form__actions .button {
    width: 100%;
  }

  .hero-duel .duel {
    grid-template-columns: 1fr;
  }

  .blind-options {
    grid-template-columns: 1fr;
  }

  .blind-option {
    min-height: 76px;
    padding: 12px;
  }

  .blind-option__image {
    height: 58px;
  }

  .blind-result {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .blind-result .button {
    grid-column: 1 / -1;
  }

  .hero-duel .duel-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .chip-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .product-media {
    height: 100px;
  }

  .product-media img {
    max-width: 78px;
    max-height: 92px;
  }

  .star {
    width: 28px;
    font-size: 0.94rem;
  }

  .community-score {
    align-items: start;
  }

  .review-open {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 0.92rem;
  }

  .review-open strong {
    min-width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .chip-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .product-media {
    height: 92px;
  }

  .product-media img {
    max-width: 72px;
    max-height: 86px;
  }

  .rating {
    grid-template-columns: repeat(5, 26px);
    gap: 3px;
  }

  .star {
    width: 26px;
  }

  .star-meter {
    font-size: 1.48rem;
  }
}

body[data-active-tab="shelf"] .catalog {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-column: 1 / -1;
  order: 1;
  border: 1px solid rgba(255, 79, 94, 0.14);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 63, 0.28), transparent 34%),
    radial-gradient(circle at 92% 8%, rgba(0, 185, 118, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(255, 241, 215, 0.94));
  box-shadow:
    0 24px 60px rgba(67, 39, 15, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.72);
}

body[data-active-tab="shelf"] .stats {
  order: 2;
}

body[data-active-tab="shelf"] .ranking-panel {
  order: 3;
}

body[data-active-tab="shelf"] .catalog::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.5) 48%, transparent 56% 100%);
  background-size: 240% 100%;
  animation: beamSlide 7.5s ease-in-out infinite;
  opacity: 0.72;
  pointer-events: none;
}

body[data-active-tab="shelf"] .catalog-details summary {
  display: none;
}

body[data-active-tab="shelf"] .catalog .section-heading {
  max-width: 940px;
  margin-bottom: clamp(18px, 3vw, 28px);
}

body[data-active-tab="shelf"] .catalog .section-heading h2 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6.4vw, 5.7rem);
  line-height: 0.9;
  text-wrap: balance;
}

body[data-active-tab="shelf"] .catalog .section-lead {
  max-width: 760px;
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
}

body[data-active-tab="shelf"] .controls,
body[data-active-tab="shelf"] .flavor-pills,
body[data-active-tab="shelf"] .diet-pills {
  display: grid;
}

body[data-active-tab="shelf"] .catalog-filter-panel .controls {
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
}

body[data-active-tab="shelf"] .catalog-filter-panel .flavor-pills,
body[data-active-tab="shelf"] .catalog-filter-panel .diet-pills {
  display: flex;
  margin: 0;
}

body[data-active-tab="shelf"] .catalog-details__body {
  margin-top: 0;
}

body[data-active-tab="shelf"] .chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

body[data-active-tab="shelf"] .chip-card {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  gap: 13px;
  border-color: rgba(255, 79, 94, 0.14);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 210, 63, 0.24), transparent 38%),
    linear-gradient(180deg, #fffefa, #fff2dd);
  padding: clamp(14px, 2vw, 18px);
  box-shadow:
    0 18px 38px rgba(67, 39, 15, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.72);
}

body[data-active-tab="shelf"] .chip-card__top {
  display: block;
}

body[data-active-tab="shelf"] .product-media {
  position: relative;
  width: 100%;
  height: clamp(178px, 18vw, 235px);
  border: 1px solid rgba(255, 210, 63, 0.18);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.96), rgba(255, 248, 234, 0.66) 42%, rgba(255, 210, 63, 0.2) 68%, rgba(255, 79, 94, 0.08));
}

body[data-active-tab="shelf"] .product-media img {
  position: absolute;
  inset: 10px;
  box-sizing: border-box;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  max-width: none;
  max-height: none;
  padding: 0;
  object-fit: contain;
}

body[data-active-tab="shelf"] .product-media .bag {
  transform: rotate(var(--tilt, -5deg)) scale(1.08);
}

body[data-active-tab="shelf"] .chip-card__body {
  min-width: 0;
}

body[data-active-tab="shelf"] .chip-card__body h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

body[data-active-tab="shelf"] .chip-card__meta {
  min-height: 0;
  margin: 9px 0 12px;
  font-weight: 750;
}

body[data-active-tab="shelf"] .tags {
  margin-top: auto;
}

body[data-active-tab="shelf"] .rating {
  grid-template-columns: repeat(5, minmax(30px, 1fr));
  width: 100%;
}

body[data-active-tab="shelf"] .star {
  width: 100%;
  min-height: 36px;
}

body[data-active-tab="shelf"] .community-score {
  margin-top: auto;
}

body[data-active-tab="shelf"] .review-open {
  margin-top: 0;
}

@media (max-width: 720px) {
  body[data-active-tab="shelf"] .hero__content {
    padding-top: 12px;
    padding-bottom: 16px;
  }

  body[data-active-tab="shelf"] .hero__copy {
    width: auto;
    padding: 0;
  }

  body[data-active-tab="shelf"] .hero .eyebrow {
    margin-bottom: 5px;
    font-size: 0.78rem;
    line-height: 1.1;
  }

  body[data-active-tab="shelf"] .game-title {
    font-size: clamp(2.1rem, 10.2vw, 3.25rem);
    line-height: 0.86;
    text-shadow:
      0 2px 0 #ff4f5e,
      0 5px 0 rgba(124, 77, 255, 0.26),
      0 12px 22px rgba(32, 23, 31, 0.26);
  }

  body[data-active-tab="shelf"] .game-title__subtitle {
    width: auto;
    max-width: 100%;
    margin-top: 8px;
    justify-content: flex-start;
    padding: 6px 11px;
    font-size: clamp(0.84rem, 3.8vw, 1rem);
  }

  body[data-active-tab="shelf"] main {
    margin-top: 10px;
  }

  body[data-active-tab="shelf"] .catalog .section-heading h2 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  body[data-active-tab="shelf"] .chip-grid {
    grid-template-columns: 1fr;
  }

  body[data-active-tab="shelf"] .chip-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
