:root {
  --ink: #251b16;
  --muted: #74645c;
  --paper: #fff8ed;
  --cream: #fffdf8;
  --sun: #ffc857;
  --tomato: #f45d48;
  --leaf: #2d9c72;
  --berry: #8e4bd0;
  --sea: #178ca4;
  --shadow: 0 22px 60px rgba(67, 39, 15, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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;
  min-height: clamp(640px, 82vh, 820px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 200, 87, 0.42), transparent 27%),
    radial-gradient(circle at 16% 80%, rgba(244, 93, 72, 0.28), transparent 30%),
    linear-gradient(135deg, #18100d 0%, #3b1d14 48%, #7c2d1e 100%);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image:
    linear-gradient(90deg, rgba(18, 11, 8, 0.94), rgba(25, 14, 10, 0.68) 47%, rgba(21, 12, 9, 0.26)),
    url("./assets/sipsi-hero.png");
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  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, 248, 220, 0.13) 44%, transparent 53%),
    radial-gradient(circle at 62% 60%, rgba(255, 255, 255, 0.16), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: lightSweep 8s ease-in-out infinite;
}

.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, 200, 87, 0.56);
  animation: driftGold 10s ease-in-out infinite alternate;
}

.light--red {
  left: 9%;
  bottom: 14%;
  width: 220px;
  height: 220px;
  background: rgba(244, 93, 72, 0.42);
  animation: driftRed 12s ease-in-out infinite alternate;
}

.light--mint {
  right: 34%;
  bottom: 3%;
  width: 190px;
  height: 190px;
  background: rgba(45, 156, 114, 0.28);
  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, translate, filter;
}

.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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  color: #fffdf7;
}

.brand-cluster,
.brand,
.topbar__links,
.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: 6px 12px 6px 6px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
  font-weight: 800;
  text-decoration: none;
}

#brandName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--sun);
  color: var(--ink);
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-size: 1.5rem;
  transform: rotate(-7deg);
}

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

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

.ranker-switch summary,
.topbar__links a {
  border-radius: 999px;
  padding: 9px 13px;
  text-decoration: none;
  color: rgba(255, 253, 248, 0.84);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: background 160ms ease, color 160ms ease;
}

.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 {
  min-width: 0;
}

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

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

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 12px 38px rgba(0, 0, 0, 0.32);
}

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, 200, 87, 0.3), transparent 30%),
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(255, 238, 211, 0.9));
  color: var(--ink);
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow:
    0 28px 70px rgba(15, 9, 6, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.8);
  animation: 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(244, 93, 72, 0.24), transparent 66%);
  pointer-events: none;
}

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

.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;
}

.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;
}

.button--google::before {
  content: "G";
  display: inline-grid;
  width: 22px;
  aspect-ratio: 1;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.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: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article,
.duel-spotlight,
.play-zone,
.catalog,
.ranking-panel__inner,
.sources {
  border: 1px solid rgba(56, 36, 22, 0.11);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
  animation: riseIn 620ms ease both;
  animation-delay: var(--reveal-delay, 0ms);
}

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

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

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

.stats article:nth-child(3) {
  --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;
}

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

.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:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 238, 196, 0.94)),
    #fff8ed;
}

.duel-spotlight::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -150px;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 93, 72, 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 span {
  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 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(56, 36, 22, 0.1);
  border-radius: 8px;
  background: linear-gradient(145deg, #fffdf9, #fff0d8);
  color: var(--ink);
  padding: 14px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 34px rgba(67, 39, 15, 0.11);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.duel-card::after,
.chip-card::after,
.duel-champion::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at var(--glow-x, 20%) var(--glow-y, 0%), rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.22) 48%, transparent 54%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.duel-card:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 22px 42px rgba(67, 39, 15, 0.17);
}

.duel-card:hover::after,
.chip-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: var(--tomato);
  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: var(--ink);
  color: #fff;
  font-family: Fredoka, "Nunito Sans", sans-serif;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(37, 27, 22, 0.18);
}

.duel-result {
  margin-top: 12px;
}

.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;
}

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

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

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

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

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

.catalog-details__action {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 93, 72, 0.18);
  border-radius: 999px;
  background: #fff0df;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.catalog-details[open] .catalog-details__action {
  color: var(--tomato);
}

.catalog-details__action::before {
  content: "Avaa ";
}

.catalog-details[open] .catalog-details__action::before {
  content: "Sulje ";
}

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

.controls {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(130px, 180px) minmax(130px, 180px) minmax(140px, 180px) 44px;
  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 {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.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;
}

.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(56, 36, 22, 0.1);
  border-radius: 8px;
  background: #fffaf4;
  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:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(69, 43, 22, 0.12);
}

.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);
}

.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: space-between;
  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;
  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: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: sticky;
  top: 18px;
  min-width: 0;
}

.ranking-panel__inner {
  min-width: 0;
  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 {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 200, 87, 0.24), rgba(244, 93, 72, 0.14)),
    #fff8ec;
  padding: 14px;
}

.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, #251b16, #71401e);
  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(37, 27, 22, 0.16);
  overflow-wrap: anywhere;
}

.taste-meter {
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 27, 22, 0.12);
  overflow: hidden;
}

.taste-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--sun), var(--tomato));
  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-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(56, 36, 22, 0.12);
  padding: 22px 0 0;
  text-align: left;
}

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

.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: 20;
  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);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 31;
  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 {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  background: rgba(37, 27, 22, 0.48);
  padding: 18px;
  backdrop-filter: blur(12px);
}

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

.profile-modal__panel,
.product-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%);
}

.profile-modal__close,
.product-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 {
  max-width: 620px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.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 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.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 {
  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"] {
  color: #b43124;
}

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

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

.burst {
  position: fixed;
  left: 50%;
  top: 52%;
  z-index: 19;
  pointer-events: none;
}

.burst span {
  position: absolute;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun);
  animation: popDot 760ms ease-out 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;
}

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

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

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

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

@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 packFloat {
  from {
    translate: 0 0;
    filter:
      drop-shadow(0 28px 26px rgba(25, 14, 8, 0.42))
      drop-shadow(0 0 16px rgba(255, 211, 117, 0.12));
  }

  to {
    translate: 0 -12px;
    filter:
      drop-shadow(0 34px 30px rgba(25, 14, 8, 0.36))
      drop-shadow(0 0 28px rgba(255, 211, 117, 0.24));
  }
}

@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 popDot {
  from {
    opacity: 1;
    transform: rotate(var(--angle, 0deg)) translateX(0) scale(1);
  }

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

@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 (max-width: 980px) {
  .hero {
    min-height: auto;
  }

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

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

  .ranking-panel {
    order: 4;
  }

  .catalog {
    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;
  }

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

  .ranking-panel {
    position: static;
  }
}

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

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-cluster {
    width: 100%;
    gap: 8px;
  }

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

  .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__links {
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(37, 27, 22, 0.9);
    padding: 7px;
    box-shadow: 0 18px 45px rgba(37, 27, 22, 0.24);
    backdrop-filter: blur(18px);
  }

  .topbar__links a {
    display: grid;
    min-height: 42px;
    place-items: center;
    padding: 7px 5px;
    text-align: center;
  }

  .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.png");
    background-position: 58% center;
  }

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

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

  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;
  }

  .hero-duel .duel {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 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 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;
  }

  .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__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__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,
  .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;
  }

  .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;
  }
}

@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;
  }
}
