/* Candy Crush Perfume: candy-game store styles */

:root {
  --pink: #F48FB1;
  --pink-deep: #E0588D;
  --pink-dark: #B83E6E;
  --pink-soft: #FFE3EE;
  --gold: #E8A55C;
  --gold-deep: #C98A3E;
  --gold-dark: #9E6522;
  --gold-soft: #FFEBD2;
  --cream: #FFF6EE;
  --choc: #4A2C22;
  --choc-soft: #7A5546;
  --sky: #8FD3FF;
  --sky-deep: #3C8DD8;
  --sky-dark: #2463A6;
  --mint: #9BE3C3;
  --wa: #25D366;
  --wa-dark: #128C4A;
  --card: #fff;
  --radius: 24px;
  --shadow: 0 6px 0 rgba(74, 44, 34, .08), 0 18px 34px rgba(74, 44, 34, .12);
  --font: 'Fredoka', system-ui, -apple-system, sans-serif;
  --script: 'Great Vibes', cursive;
  --gutter: 16px;
  --dir: 1;
}

:root[dir="rtl"] { --dir: -1; }
:root[lang="ar"] { --font: 'Baloo Bhaijaan 2', 'Fredoka', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--choc);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(244, 143, 177, .16) 3px, transparent 4px),
    radial-gradient(circle at 60px 50px, rgba(232, 165, 92, .14) 3px, transparent 4px);
  background-size: 80px 80px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }

.wrap { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--choc-soft); }
.small { font-size: .85rem; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--choc); color: #fff; padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------- Jelly buttons ---------- */
.btn {
  --b1: #FFA9CA; --b2: var(--pink-deep); --b3: var(--pink-dark); --glow: rgba(224, 88, 141, .35);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .01em;
  color: #fff; text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
  background: linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), 0 5px 0 var(--b3), 0 12px 20px var(--glow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: ''; position: absolute; inset-inline: 16%; top: 5px; height: 34%;
  border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .65), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14), 0 1px 0 var(--b3), 0 4px 10px var(--glow); }
.btn--gold { --b1: #FFD08F; --b2: var(--gold-deep); --b3: var(--gold-dark); --glow: rgba(201, 138, 62, .35); }
.btn--wa { --b1: #5EEA95; --b2: var(--wa); --b3: var(--wa-dark); --glow: rgba(37, 211, 102, .3); }
.btn--wa svg { width: 1.3em; height: 1.3em; }
.btn--ghost {
  --b1: #fff; --b2: #FFF1F6; --b3: #F1C3D4; --glow: rgba(74, 44, 34, .1);
  color: var(--pink-deep); text-shadow: none;
}
.btn--small { padding: .55em 1.1em; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid transparent;
  border-image: repeating-linear-gradient(90deg, var(--pink) 0 18px, #fff 18px 30px, var(--gold) 30px 48px, #fff 48px 60px) 3;
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand img { width: auto; height: 58px; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a {
  text-decoration: none; font-weight: 600; padding: .5em .9em; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--pink-soft); color: var(--pink-deep); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav + .header-actions { margin-inline-start: 8px; }

.lang-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--gold); background: var(--gold-soft); color: var(--gold-dark); font-weight: 700;
}
.lang-btn:hover { background: #FFE0B8; }

.jar-btn {
  position: relative; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  border: 0; background: var(--pink-soft); display: grid; place-items: center;
  transition: transform .2s;
}
.jar-btn svg { width: 32px; height: 32px; }
.jar-btn:hover { transform: rotate(-6deg) scale(1.05); }
.jar-btn.bump { animation: bump .5s ease; }
.badge {
  position: absolute; top: -4px; inset-inline-end: -4px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--pink-deep); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.badge[data-zero] { background: #CDB9AF; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 3px; margin: 4px 0; border-radius: 3px; background: var(--choc); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes bump { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(5deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.sprinkles {
  position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    linear-gradient(35deg, transparent 46%, var(--pink) 46% 54%, transparent 54%),
    linear-gradient(-30deg, transparent 46%, var(--gold) 46% 54%, transparent 54%),
    linear-gradient(80deg, transparent 46%, var(--sky) 46% 54%, transparent 54%),
    linear-gradient(10deg, transparent 46%, var(--mint) 46% 54%, transparent 54%);
  background-size: 22px 22px;
  background-position: 8% 18%, 92% 12%, 14% 86%, 86% 78%;
  background-repeat: no-repeat;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-block; font-weight: 600; color: var(--pink-deep); background: #fff;
  padding: .35em .9em; border-radius: 999px; box-shadow: 0 3px 0 var(--pink-soft);
}
.hero-title { margin-top: 18px; font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 700; letter-spacing: -.01em; }
.hero-title span { display: block; }
.hero-title-accent {
  color: var(--pink-deep);
  text-shadow: 0 4px 0 #fff, 0 7px 0 var(--pink-soft);
}
.hero-sub { margin-top: 18px; font-size: 1.15rem; color: var(--choc-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.badges li {
  font-weight: 600; font-size: .95rem; padding: .4em 1em; border-radius: 999px; background: #fff;
  border: 2px dashed var(--gold); color: var(--gold-dark);
}

.hero-art { position: relative; aspect-ratio: 1 / .9; min-height: 300px; }
.hero-glow {
  position: absolute; inset: 6% 8% 14%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 30%, var(--pink-soft) 55%, transparent 70%);
}
.hero-bottles { position: absolute; inset-inline: 6%; bottom: 20%; display: flex; justify-content: center; align-items: flex-end; gap: 2%; z-index: 2; }
.hero-bottles .hb { width: 30%; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(74, 44, 34, .18)); }
.hero-bottles .hb:nth-child(2) { width: 38%; animation-delay: -1.1s; }
.hero-bottles .hb:nth-child(3) { animation-delay: -2.1s; }
.pedestal {
  position: absolute; inset-inline: 10%; bottom: 10%; height: 13%; z-index: 1;
  border-radius: 50% / 40%;
  background: repeating-linear-gradient(90deg, var(--pink) 0 24px, #fff 24px 48px);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .08), 0 10px 0 var(--pink-deep), 0 22px 28px rgba(74, 44, 34, .2);
}
.candy { position: absolute; width: 46px; height: 46px; border-radius: 50%; z-index: 3; animation: float 5s ease-in-out infinite; }
.candy::before, .candy::after { content: ''; position: absolute; top: 50%; width: 16px; height: 22px; transform: translateY(-50%); background: inherit; }
.candy::before { right: 100%; clip-path: polygon(100% 50%, 0 0, 0 100%); margin-right: -2px; }
.candy::after { left: 100%; clip-path: polygon(0 50%, 100% 0, 100% 100%); margin-left: -2px; }
.candy--1 { background: repeating-linear-gradient(45deg, var(--pink) 0 6px, #fff 6px 12px); top: 6%; left: 6%; }
.candy--2 { background: radial-gradient(circle at 35% 35%, #FFE6B8, var(--gold)); top: 12%; right: 8%; animation-delay: -1.5s; width: 38px; height: 38px; }
.candy--3 { background: radial-gradient(circle at 35% 35%, #D6F0FF, var(--sky-deep)); bottom: 32%; left: 0; animation-delay: -3s; width: 34px; height: 34px; }
.candy--4 { background: repeating-linear-gradient(-45deg, var(--mint) 0 6px, #fff 6px 12px); bottom: 36%; right: 2%; animation-delay: -2.2s; width: 40px; height: 40px; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(14deg); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { margin-top: 12px; font-size: 1.1rem; color: var(--choc-soft); }
.section-title {
  font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700;
  color: var(--choc);
  text-shadow: 0 3px 0 #fff, 0 6px 0 var(--pink-soft);
}
.section-head--light .section-title { color: #fff; text-shadow: 0 3px 0 var(--sky-dark), 0 8px 18px rgba(0, 0, 0, .15); }
.section-head--light p { color: #EAF6FF; }

/* ---------- Level map ---------- */
.map-section { background: linear-gradient(180deg, transparent, #FFEFF5 20%, #FFEFF5 80%, transparent); }
.map {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(155, 227, 195, .45) 0 60px, transparent 61px),
    radial-gradient(circle at 88% 70%, rgba(143, 211, 255, .4) 0 80px, transparent 81px),
    radial-gradient(circle at 60% 10%, rgba(232, 165, 92, .25) 0 50px, transparent 51px),
    linear-gradient(160deg, #FFF9F3, #FFE9F1);
  border-radius: 36px;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
  padding: 40px 24px 24px;
  overflow: hidden;
}
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.map-levels {
  --cols: 4;
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); row-gap: 40px;
}
.map-levels li { display: flex; justify-content: center; transform: translateY(var(--dy, 0)); }
.level-node {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: center;
}
.level-orb {
  position: relative; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--tint, var(--pink-soft)) 70%);
  border: 6px solid #fff;
  box-shadow: 0 6px 0 var(--pink), 0 14px 20px rgba(74, 44, 34, .18);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.level-orb .bottle-svg { width: 48px; height: auto; margin-top: -4px; }
.level-node:hover .level-orb, .level-node:focus-visible .level-orb { transform: scale(1.1) rotate(-4deg); }
.level-num {
  position: absolute; top: -12px; inset-inline-start: -8px;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #FFD08F, var(--gold-deep));
  border: 3px solid #fff; box-shadow: 0 3px 0 var(--gold-dark);
}
.level-stars { position: absolute; bottom: -12px; display: flex; gap: 1px; font-size: 16px; color: var(--gold); text-shadow: 0 2px 0 #fff, 0 0 3px #fff; }
.level-name {
  font-weight: 700; font-size: 1rem; background: #fff; padding: .2em .8em; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(74, 44, 34, .08); margin-top: 6px;
}
.level-node--locked { cursor: default; }
.level-node--locked .level-orb { background: radial-gradient(circle at 35% 30%, #fff, #E6DCD6 70%); box-shadow: 0 6px 0 #C8B8AE, 0 14px 20px rgba(74, 44, 34, .12); }
.level-node--locked .level-num { background: #BFAEA4; box-shadow: 0 3px 0 #9E8B80; }
.level-node--locked .level-name { color: var(--choc-soft); }
.lock { width: 38px; height: 38px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: 30px; padding: 14px 14px 20px;
  box-shadow: var(--shadow); border: 4px solid #fff;
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s;
}
.card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 8px 0 rgba(74, 44, 34, .08), 0 26px 40px rgba(74, 44, 34, .16); }
.card-media {
  position: relative; border: 0; padding: 18px 0 10px; cursor: pointer; border-radius: 22px;
  background:
    radial-gradient(circle at 50% 60%, #fff 0 22%, transparent 60%),
    radial-gradient(circle at 50% 50%, var(--tint) 0, var(--tint-2) 100%);
  display: grid; place-items: center; overflow: hidden;
}
.card-media::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .18) 0 12px, transparent 12px 24px);
}
.card-media .bottle-svg { position: relative; width: 120px; height: auto; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover .card-media .bottle-svg { transform: translateY(-6px) rotate(-5deg) scale(1.05); }
.ribbon {
  position: absolute; top: 12px; inset-inline-start: 12px;
  font-size: .78rem; font-weight: 700; color: #fff; background: var(--pink-deep);
  padding: .2em .8em; border-radius: 999px; box-shadow: 0 3px 0 var(--pink-dark);
}
.card-body { padding: 16px 6px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-family { font-size: .85rem; font-weight: 600; color: var(--gold-dark); }
.card-name { font-size: 1.45rem; font-weight: 700; }
.card-tag { color: var(--choc-soft); font-size: .98rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.stars .off { color: #E9DDD5; }
.card-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-size: 1.5rem; font-weight: 700; color: var(--pink-deep); }
.price small { font-size: .8rem; color: var(--choc-soft); font-weight: 500; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Game ---------- */
.game-section {
  background: linear-gradient(180deg, #7CC7F6 0%, #4FA6EA 60%, #3C8DD8 100%);
  overflow: hidden;
  border-radius: 48px 48px 0 0;
  margin-top: 24px;
}
.game-section + .section { background: linear-gradient(180deg, #3C8DD8 0, var(--cream) 140px); }
.clouds {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background:
    radial-gradient(ellipse 90px 34px at 10% 12%, #fff 98%, transparent),
    radial-gradient(ellipse 60px 26px at 15% 9%, #fff 98%, transparent),
    radial-gradient(ellipse 110px 38px at 88% 20%, #fff 98%, transparent),
    radial-gradient(ellipse 70px 28px at 82% 16%, #fff 98%, transparent);
}
.game { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hud { display: flex; gap: 12px; width: min(100%, 520px); }
.hud-pill {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 14px; border-radius: 22px;
  background: linear-gradient(180deg, #fff, #FFF1F6);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .06), 0 5px 0 var(--sky-dark);
}
.hud-pill--wide { flex: 2.2; }
.hud-label { font-size: .85rem; font-weight: 600; color: var(--choc-soft); }
.hud-value { font-size: 1.8rem; font-weight: 700; color: var(--pink-deep); line-height: 1; }
.hud-value.pulse { animation: bump .4s ease; }
.progress { width: 100%; height: 12px; border-radius: 999px; background: #F1E3EA; overflow: hidden; margin-top: 6px; }
.progress-fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 8px, #FFB4CF 8px 16px);
  transition: width .4s ease;
}

.board-frame {
  width: min(100%, 520px);
  padding: 12px; border-radius: 30px;
  background: repeating-linear-gradient(45deg, var(--pink) 0 14px, #fff 14px 28px);
  box-shadow: 0 8px 0 var(--pink-dark), 0 24px 40px rgba(0, 0, 0, .22);
}
.board {
  position: relative; aspect-ratio: 1; width: 100%; border-radius: 20px; overflow: hidden;
  background:
    repeating-conic-gradient(rgba(255, 255, 255, .2) 0 25%, rgba(255, 255, 255, .07) 0 50%) 0 0 / 25% 25%,
    linear-gradient(160deg, #2E6FB8, #1F4F8F);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.piece {
  position: absolute; top: 0; left: 0; width: 12.5%; height: 12.5%;
  padding: 0; border: 0; background: none; cursor: grab;
  display: grid; place-items: center;
  transform: translate(calc(var(--c) * 100%), calc(var(--r) * 100%));
  transition: transform .28s cubic-bezier(.35, 1.3, .55, 1);
  -webkit-tap-highlight-color: transparent;
}
.piece.no-anim { transition: none; }
.piece .bottle-svg { width: 58%; height: auto; pointer-events: none; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); transition: transform .2s; }
.piece:hover .bottle-svg { transform: scale(1.08); }
.piece:focus-visible { outline: 3px solid #fff; outline-offset: -3px; border-radius: 12px; }
.piece.selected .bottle-svg { animation: selected .7s ease-in-out infinite; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px #FFE07A); }
.piece.pop .bottle-svg { animation: pop .26s ease-in forwards; }
.piece.nope .bottle-svg { animation: nope .3s ease; }
.piece.born .bottle-svg { animation: born .45s cubic-bezier(.3, 1.6, .5, 1); }
.piece.is-row::after, .piece.is-col::after {
  content: ''; position: absolute; inset: 22% 18%; border-radius: 10px; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .85) 0 3px, transparent 3px 8px);
  mix-blend-mode: overlay; animation: shimmer 1.2s linear infinite;
}
.piece.is-col::after { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 3px, transparent 3px 8px); }
.piece.is-row .bottle-svg, .piece.is-col .bottle-svg { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 3px 2px rgba(0, 0, 0, .25)); }
.piece.is-bomb .bottle-svg { width: 80%; animation: spin-glow 2.4s ease-in-out infinite; }

@keyframes selected { 0%, 100% { transform: scale(1.12) rotate(-6deg); } 50% { transform: scale(1.18) rotate(6deg); } }
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .9; } 100% { transform: scale(0); opacity: 0; } }
@keyframes nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-12%); } 75% { transform: translateX(12%); } }
@keyframes born { 0% { transform: scale(.3); } 100% { transform: scale(1); } }
@keyframes shimmer { 0% { opacity: .5; } 50% { opacity: 1; } 100% { opacity: .5; } }
@keyframes spin-glow { 0%, 100% { transform: rotate(-8deg) scale(1); filter: drop-shadow(0 0 4px #fff); } 50% { transform: rotate(8deg) scale(1.08); filter: drop-shadow(0 0 12px #FFD1E3); } }

.beam { position: absolute; pointer-events: none; z-index: 5; background: linear-gradient(90deg, transparent, #fff, transparent); animation: beam .4s ease-out forwards; }
.beam--row { left: 0; width: 100%; height: 12.5%; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95), transparent); }
.beam--col { top: 0; height: 100%; width: 12.5%; }
@keyframes beam { 0% { opacity: 0; transform: scale(1, .2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1, 1); } }

.float-score {
  position: absolute; z-index: 6; pointer-events: none; transform: translate(-50%, -50%);
  font-weight: 700; font-size: clamp(1rem, 3.5vw, 1.5rem); color: #fff;
  text-shadow: 0 2px 0 var(--pink-deep), 0 0 8px rgba(224, 88, 141, .8);
  animation: rise .9s ease-out forwards;
}
.combo-text {
  position: absolute; inset-inline: 0; top: 42%; z-index: 7; text-align: center; pointer-events: none;
  font-weight: 700; font-size: clamp(1.6rem, 7vw, 2.6rem); color: #fff;
  text-shadow: 0 3px 0 var(--pink-deep), 0 6px 0 var(--pink-dark), 0 10px 20px rgba(0, 0, 0, .3);
  animation: combo 1s ease-out forwards;
}
@keyframes rise { 0% { opacity: 0; margin-top: 0; } 20% { opacity: 1; } 100% { opacity: 0; margin-top: -40px; } }
@keyframes combo { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); } 25% { opacity: 1; transform: scale(1.1) rotate(2deg); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.05) translateY(-20px); } }

.game-tip { color: #F0F8FF; text-align: center; max-width: 520px; font-size: .98rem; }

/* ---------- Gifts ---------- */
.script-kicker { font-family: var(--script); font-size: 2.2rem !important; color: var(--pink-deep) !important; line-height: 1; }
:root[lang="ar"] .script-kicker { font-family: var(--font); font-size: 1.5rem !important; font-weight: 700; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-bottom: 32px; }
.review {
  position: relative; background: #fff; border-radius: 26px; padding: 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.review::after {
  content: ''; position: absolute; bottom: -12px; inset-inline-start: 36px; width: 24px; height: 24px;
  background: #fff; transform: rotate(45deg); border-radius: 4px;
}
.review-who { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; padding: 3px; flex: none;
  background: conic-gradient(var(--gold), var(--pink-deep), #B06BE0, var(--gold));
}
.avatar span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--pink-soft); border: 3px solid #fff; color: var(--pink-deep); font-size: 1.1rem;
}
.review p { color: var(--choc-soft); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border-radius: 28px; padding: 30px 24px 24px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--choc-soft); }
.step-num {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 700; color: #fff; border: 4px solid #fff;
  background: radial-gradient(circle at 35% 30%, #FFB4CF, var(--pink-deep));
  box-shadow: 0 5px 0 var(--pink-dark);
}
.step-num--gold { background: radial-gradient(circle at 35% 30%, #FFD9A3, var(--gold-deep)); box-shadow: 0 5px 0 var(--gold-dark); }
.step-num--sky { background: radial-gradient(circle at 35% 30%, #BDE6FF, var(--sky-deep)); box-shadow: 0 5px 0 var(--sky-dark); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 40px; background: var(--choc); color: #F8E8DF; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-inner .footer-logo { width: auto; height: 140px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.footer-links a { color: #FFC7DA; font-weight: 600; }
.site-footer .muted { color: #C9AFA4; }

/* ---------- Dialogs ---------- */
dialog { color: var(--choc); }
dialog::backdrop { background: rgba(74, 44, 34, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--pink-soft); color: var(--pink-deep); font-weight: 700; font-size: 1.1rem;
}
.icon-btn:hover { background: #FFD1E1; }

.modal {
  width: min(860px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 32px; background: transparent; overflow: visible;
}
.modal[open] { animation: modal-in .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes modal-in { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }
.modal-inner { max-height: calc(100dvh - 32px); overflow: auto; border-radius: 32px; }

/* Crime file */
.file {
  position: relative; background: #FFF8EF; border: 4px solid #fff; border-radius: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.file-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-radius: 28px 28px 0 0;
  background: repeating-linear-gradient(-45deg, var(--choc) 0 16px, #5A372B 16px 32px);
  color: #fff;
}
.file-title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #FFC7DA; text-shadow: 0 3px 0 var(--pink-dark); }
:root[lang="ar"] .file-title { letter-spacing: 0; }
.file-sub { font-size: .9rem; color: #F3D9CC; letter-spacing: .12em; text-transform: uppercase; }
.file-no { font-family: ui-monospace, Menlo, var(--font), monospace; font-size: .85rem; border: 2px solid #FFC7DA; color: #FFC7DA; padding: .3em .7em; border-radius: 10px; white-space: nowrap; }
.file-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 24px; }
.mugshot {
  position: relative; border-radius: 24px; padding: 24px 12px 12px;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(74, 44, 34, .12) 27px 29px),
    radial-gradient(circle at 50% 50%, var(--tint) 0, var(--tint-2) 100%);
  display: grid; place-items: center;
}
.mugshot .bottle-svg { width: min(200px, 70%); height: auto; animation: bob 3.5s ease-in-out infinite; }
.stamp {
  position: absolute; bottom: 18px; inset-inline-end: 12px; transform: rotate(-12deg);
  border: 3px solid var(--pink-deep); color: var(--pink-deep); font-weight: 700; padding: .2em .6em; border-radius: 10px;
  background: rgba(255, 255, 255, .7); text-transform: uppercase; font-size: .85rem;
}
.file-info { display: flex; flex-direction: column; gap: 12px; }
.file-name { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; color: var(--pink-deep); }
.file-by { font-family: var(--script); font-size: 1.6rem; color: var(--gold-dark); line-height: 1; }
:root[lang="ar"] .file-by { font-family: var(--font); font-size: 1.1rem; }
.file-alias { font-weight: 600; }
.file-alias span { color: var(--choc-soft); font-weight: 500; }
.file-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--choc-soft); }
.charges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.charges li { background: #fff; border-radius: 14px; padding: 8px 12px; font-weight: 600; font-size: .95rem; border-inline-start: 5px solid var(--pink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; font-size: .9rem; padding: .25em .8em; border-radius: 999px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.buy-row > .btn:not(.play-btn) { flex: 1; }
.buy-row .play-btn { flex-basis: 100%; }
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--pink-soft); }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.3rem; font-weight: 700; color: var(--pink-deep); cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--pink-soft); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.file .icon-btn.close-x { position: absolute; top: 14px; inset-inline-end: 14px; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); z-index: 2; }
.file-head { padding-inline-end: 66px; }

/* Result */
.modal--result { width: min(420px, calc(100% - 2 * var(--gutter))); }
.result {
  text-align: center; padding: 34px 26px 28px; background: linear-gradient(180deg, #fff, #FFF0F6);
  border: 5px solid #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.result h2 { font-size: 2.2rem; color: var(--pink-deep); text-shadow: 0 3px 0 var(--pink-soft); }
.result-stars { display: flex; gap: 8px; font-size: 3rem; line-height: 1; }
.result-stars span { color: #EADFD8; transform: scale(.8); }
.result-stars span.on { color: var(--gold); text-shadow: 0 4px 0 var(--gold-dark); animation: star-in .5s cubic-bezier(.3, 1.8, .5, 1) both; }
.result-stars span.on:nth-child(2) { animation-delay: .15s; }
.result-stars span.on:nth-child(3) { animation-delay: .3s; }
@keyframes star-in { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1); } }
.code-ticket {
  font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .12em;
  padding: .4em 1em; border-radius: 16px; border: 3px dashed var(--pink-deep); color: var(--pink-deep); background: #fff;
}
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ---------- Drawer ---------- */
.drawer {
  margin: 0; padding: 0; border: 0;
  width: min(420px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%;
  inset-block: 0; inset-inline-start: auto; inset-inline-end: 0;
  background: var(--cream);
  box-shadow: 0 0 40px rgba(0, 0, 0, .2);
}
.drawer[open] { animation: drawer-in .35s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes drawer-in { from { transform: translateX(calc(100% * var(--dir))); } to { transform: none; } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 20px;
  background: repeating-linear-gradient(-45deg, var(--pink) 0 14px, #FFA6C6 14px 28px); color: #fff;
}
.drawer-head h2 { font-size: 1.6rem; text-shadow: 0 2px 0 var(--pink-dark); }
.drawer-head .icon-btn { background: #fff; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 20px; }
.jar-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.jar-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: #fff; padding: 10px; border-radius: 18px; box-shadow: 0 3px 0 rgba(74, 44, 34, .06); }
.jar-thumb { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); }
.jar-thumb .bottle-svg { width: 34px; height: auto; }
.jar-name { font-weight: 700; }
.jar-price { color: var(--choc-soft); font-size: .9rem; }
.jar-line .qty button { width: 32px; height: 32px; font-size: 1.1rem; }
.jar-remove { background: none; border: 0; color: var(--choc-soft); font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 2px; }
.jar-empty { text-align: center; color: var(--choc-soft); padding: 40px 10px; font-size: 1.05rem; }
.drawer-foot { padding: 16px 20px 20px; background: #fff; border-top: 3px dashed var(--pink-soft); display: flex; flex-direction: column; gap: 10px; }
.drawer-foot input {
  width: 100%; padding: .7em 1em; border-radius: 14px; border: 2px solid #F0E0D8; background: var(--cream);
}
.drawer-foot input:focus { outline: none; border-color: var(--pink); background: #fff; }
.drawer-foot input[aria-invalid="true"] { border-color: #E5484D; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; text-transform: uppercase; }
.totals { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; font-weight: 600; }
.totals-discount { color: #1F9D55; }
.totals-total { font-size: 1.25rem; font-weight: 700; color: var(--pink-deep); }

/* ---------- Toast & confetti ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; z-index: 90;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--choc); color: #fff; font-weight: 600; padding: .8em 1.4em; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: absolute; top: 100%; inset-inline: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: #fff; box-shadow: 0 16px 24px rgba(74, 44, 34, .12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; }
  .header-actions { margin-inline-start: auto; }
  .menu-btn { display: block; }
}

@media (max-width: 820px) {
  .hero { padding: 32px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-art { order: -1; max-width: 420px; width: 100%; margin-inline: auto; min-height: 0; }
  .map-levels { --cols: 2; row-gap: 34px; }
  .map { padding: 36px 8px 20px; }
  .steps { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: 1fr; padding: 18px; }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .brand img { height: 48px; }
  .header-inner { gap: 10px; min-height: 64px; }
  .level-orb { width: 88px; height: 88px; }
  .level-orb .bottle-svg { width: 40px; }
  .charges { grid-template-columns: 1fr; }
  .file-head { flex-wrap: wrap; padding-block: 16px; padding-inline: 16px 62px; }
  .hud-value { font-size: 1.5rem; }
  .board-frame { padding: 8px; border-radius: 24px; }
  .game-section { border-radius: 32px 32px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Owner photos & sold out ---------- */
.product-photo { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; }
.card-media--photo { padding: 0; }
.card-media--photo .ribbon { z-index: 1; }
.card:hover .card-media .product-photo { transform: scale(1.03); }
.card-media .product-photo { transition: transform .35s ease; }
.mugshot--photo { padding: 0; overflow: hidden; }
.mugshot--photo .product-photo { border-radius: 24px; aspect-ratio: 1; }
.orb-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.jar-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.sold-tag {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%) rotate(-6deg); white-space: nowrap;
  background: var(--choc); color: #fff; font-size: .72rem; font-weight: 700; padding: .15em .6em; border-radius: 8px;
}
.btn:disabled { --b1: #E4D8D2; --b2: #CDBDB4; --b3: #A99790; --glow: transparent; cursor: not-allowed; filter: none; transform: none; }
.card-media--photo::before { display: none; }
.card-media { aspect-ratio: 4 / 3; }
.card-media .bottle-svg { width: auto; height: 84%; }
.card-media--photo .product-photo { aspect-ratio: auto; width: 100%; height: 100%; border-radius: 0; }

/* ---------- Shop toolbar: sections + search ---------- */
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: .55em 1.1em; border-radius: 999px; cursor: pointer;
  border: 2px solid #fff; background: #fff; font-weight: 700; color: var(--choc);
  box-shadow: 0 4px 0 rgba(74, 44, 34, .08);
  transition: transform .15s, background .2s;
}
.tab:hover { transform: translateY(-2px); }
.tab-count { font-size: .78rem; background: var(--pink-soft); color: var(--pink-deep); padding: .05em .55em; border-radius: 999px; }
.tab[aria-pressed="true"] { background: linear-gradient(180deg, #FFA9CA, var(--pink-deep)); color: #fff; box-shadow: 0 4px 0 var(--pink-dark); }
.tab[aria-pressed="true"] .tab-count { background: rgba(255, 255, 255, .3); color: #fff; }
.tab--lux { border-color: var(--gold); }
.tab--lux[aria-pressed="true"] { background: linear-gradient(180deg, #FFD08F, var(--gold-deep)); box-shadow: 0 4px 0 var(--gold-dark); }
.tab--lux .tab-count { background: var(--gold-soft); color: var(--gold-dark); }
.search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 300px; min-width: 200px;
  background: #fff; border-radius: 999px; padding: 0 16px; border: 2px solid #F3E2DA; color: var(--choc-soft);
}
.search:focus-within { border-color: var(--pink); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { border: 0; background: none; padding: .7em 0; width: 100%; outline: none; }
.shop-empty { text-align: center; color: var(--choc-soft); padding: 40px 0; font-size: 1.1rem; }
.shop-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }

/* ---------- Size picker ---------- */
.sizes { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.size {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: .45em .4em; border-radius: 14px; cursor: pointer;
  border: 2px solid #F0E0D8; background: #fff; color: var(--choc-soft); font-weight: 600; font-size: .85rem; line-height: 1.2;
  transition: border-color .2s, background .2s, transform .15s;
}
.size strong { font-size: 1.15rem; color: var(--choc); }
.size:hover { transform: translateY(-1px); }
.size[aria-pressed="true"] { border-color: var(--pink-deep); background: var(--pink-soft); color: var(--pink-deep); }
.size[aria-pressed="true"] strong { color: var(--pink-deep); }
.file-info .sizes { max-width: 320px; }

/* ---------- Sections on cards ---------- */
.ribbon--male { background: var(--sky-deep); box-shadow: 0 3px 0 var(--sky-dark); }
.ribbon--female { background: var(--pink-deep); }
.ribbon--unisex { background: #7C5CC4; box-shadow: 0 3px 0 #5B3F9E; }
.ribbon--musk { background: #B0896B; box-shadow: 0 3px 0 #7F5F48; }
.ribbon--luxury { background: linear-gradient(180deg, #F5C76B, var(--gold-deep)); box-shadow: 0 3px 0 var(--gold-dark); }
.card--luxury { border-color: #F5D9A8; background: linear-gradient(180deg, #fff, #FFF8EC); }
.card--luxury .card-name { color: var(--gold-dark); }
.chip--luxury { background: linear-gradient(180deg, #F5C76B, var(--gold-deep)); color: #fff; }

/* ---------- Gifts: two cards ---------- */
.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gift-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  background: #fff; border-radius: 34px; padding: 30px 26px; box-shadow: var(--shadow);
  border: 4px dashed var(--pink);
}
.gift-card--custom { border-color: var(--gold); background: linear-gradient(180deg, #fff, #FFF8EC); }
.gift-card h3 { font-size: 1.7rem; }
.gift-card p { color: var(--choc-soft); font-size: 1.05rem; flex: 1; }
.gift-art svg { width: 100%; max-width: 260px; margin-inline: auto; animation: bob 4s ease-in-out infinite; }
.gift-card--custom .gift-art svg { animation-delay: -2s; }
.section-head .script-kicker { margin-bottom: 4px; }
@media (max-width: 760px) { .gifts { grid-template-columns: 1fr; } }

/* ---------- Game levels ---------- */
.level-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 520px); }
.level-btn {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 18px; text-align: start;
  border: 3px solid #fff; background: rgba(255, 255, 255, .85); color: var(--choc);
  box-shadow: 0 4px 0 var(--sky-dark); transition: transform .15s;
}
.level-btn-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 35% 30%, #FFB4CF, var(--pink-deep)); font-size: .95rem;
}
.level-btn-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.level-btn-text strong { font-size: .82rem; white-space: nowrap; }
.level-btn-text span { font-size: .78rem; color: var(--pink-deep); font-weight: 700; white-space: nowrap; }
.level-btn.is-now { background: #fff; border-color: var(--pink-deep); box-shadow: 0 4px 0 var(--pink-dark), 0 0 0 4px rgba(255, 255, 255, .35); }
.level-btn.is-won .level-btn-n { background: radial-gradient(circle at 35% 30%, #8EF0B5, #1F9D55); }
.level-btn.is-final .level-btn-n { background: radial-gradient(circle at 35% 30%, #FFE29A, var(--gold-deep)); }
.level-btn.is-final .level-btn-text span { color: var(--gold-dark); }
.level-btn.is-locked { opacity: .6; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.level-btn.is-locked .level-btn-n { background: #CDBDB4; }
@media (max-width: 480px) {
  .level-pick { grid-template-columns: repeat(2, 1fr); }
}
.piece .bottle-svg { width: 64%; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .3)); }

/* ---------- Timed run: overlay, countdown, timer ---------- */
.board-frame { position: relative; }
.game-overlay {
  position: absolute; inset: 12px; z-index: 10; border-radius: 20px;
  display: grid; place-items: center; padding: 14px; overflow: auto;
  background: rgba(31, 79, 143, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.go-panel {
  width: min(100%, 380px); background: linear-gradient(180deg, #fff, #FFF0F6); border-radius: 26px; border: 4px solid #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25); padding: 22px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: modal-in .35s cubic-bezier(.3, 1.5, .5, 1);
}
.go-panel h3 { font-size: 1.6rem; color: var(--pink-deep); text-shadow: 0 3px 0 var(--pink-soft); }
.go-panel p { color: var(--choc-soft); }
.go-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; text-align: start; font-size: .92rem; }
.go-rules li { background: #fff; border-radius: 12px; padding: 6px 10px; }
.go-field { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: start; font-weight: 700; font-size: .9rem; }
.go-field input { width: 100%; padding: .7em 1em; border-radius: 14px; border: 2px solid #F0E0D8; background: #fff; font-size: 1.05rem; text-align: left; }
.go-field input:focus { outline: none; border-color: var(--pink); }
.go-hint { font-size: .8rem; }
.go-error { color: #C62A2F; font-weight: 700; font-size: .9rem; }
.go-last { font-size: .85rem; background: var(--gold-soft); color: var(--gold-dark) !important; border-radius: 10px; padding: 4px 10px; }
.go-phone { font-weight: 700; color: var(--choc) !important; }
.go-link { font-size: .9rem; }
.go-code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-weight: 700; color: var(--choc-soft); }
.go-code .code-ticket { font-size: 1.2rem; padding: .25em .7em; }
.go-count {
  font-size: clamp(4rem, 22vw, 8rem); font-weight: 700; color: #fff; line-height: 1;
  text-shadow: 0 6px 0 var(--pink-deep), 0 12px 24px rgba(0, 0, 0, .3);
  animation: count-pop .8s ease-out;
}
.go-count--go { font-size: clamp(3rem, 16vw, 6rem); }
@keyframes count-pop { 0% { transform: scale(2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .9; } }
.hud-time { font-variant-numeric: tabular-nums; }
.hud-time.is-low { color: #E5484D; animation: bump .5s ease infinite; }
/* Phones: the start/result panel replaces the board instead of covering it, so nothing is cut off. */
@media (max-width: 600px) {
  .board-frame:has(> .game-overlay:not([hidden])) > .board { display: none; }
  .board-frame > .game-overlay { position: relative; inset: auto; min-height: 320px; background: linear-gradient(160deg, #2E6FB8, #1F4F8F); }
  .go-panel { padding: 18px 14px; }
  .go-rules { font-size: .85rem; }
}

/* ---------- Hero bottles: hover/tap to open and spray ---------- */
.hero-bottles .hb { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-bottles .hb:hover, .hero-bottles .hb.is-spraying { animation-play-state: paused; }
.hero-bottles .hb .bottle-svg { overflow: visible; }
.hb .bottle-cap { transform-box: fill-box; transform-origin: 50% 90%; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.hb--left .bottle-cap { --cap-x: 22px; --cap-r: 32deg; }
.hb--up .bottle-cap { --cap-x: -26px; --cap-r: -34deg; }
.hb--right .bottle-cap { --cap-x: -22px; --cap-r: -32deg; }
.hb:hover .bottle-cap, .hb.is-spraying .bottle-cap { transform: translate(var(--cap-x), -30px) rotate(var(--cap-r)); }
.hb .bottle-nozzle { transform-box: fill-box; transform-origin: 50% 100%; }
.hb:hover .bottle-nozzle, .hb.is-spraying .bottle-nozzle { animation: press .55s ease-in-out .35s infinite; }
@keyframes press { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(3px); } }

/* Nozzle sits at ~50% across, ~23% down the bottle art. */
.mist { position: absolute; left: 50%; top: 23%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.mist i {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 40% 35%, #fff 0 18%, var(--mist) 45%, color-mix(in srgb, var(--mist-deep) 70%, transparent) 68%, transparent 72%);
  filter: drop-shadow(0 0 2px rgba(74, 44, 34, .25));
}
.hb:hover .mist i, .hb.is-spraying .mist i { animation: spray 1.1s ease-out infinite; animation-delay: calc(.35s + var(--d)); }
@keyframes spray {
  0% { opacity: 0; transform: translate(0, 0) scale(.3); }
  15% { opacity: .95; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(var(--s)); }
}

/* ---------- Loading screen ---------- */
body.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 20px 20px, rgba(244, 143, 177, .18) 3px, transparent 4px),
    radial-gradient(circle at 60px 50px, rgba(232, 165, 92, .16) 3px, transparent 4px);
  background-size: 80px 80px;
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
  /* Safety net: never block the page for more than 8 seconds, even if a script fails. */
  animation: loader-safety 0s 6s forwards;
}
.loader.is-done { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
@keyframes loader-safety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.loader-logo { position: relative; width: min(62vw, 300px); aspect-ratio: 639 / 720; }
.ll { position: absolute; inset: 0; width: 100%; height: 100%; }
.ll-candy { animation: ll-drop .55s cubic-bezier(.3, 1.6, .5, 1) .05s both; }
.ll-crush { animation: ll-rise .55s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
.ll-snake { animation: ll-slither 1.25s cubic-bezier(.45, 0, .3, 1) .5s both, ll-sway 2.4s ease-in-out 1.75s infinite; transform-origin: 50% 50%; }
.loader-logo { animation: ll-pulse 1.6s ease-in-out 1.75s infinite; }

@keyframes ll-drop { from { opacity: 0; transform: translateY(-60px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ll-rise { from { opacity: 0; transform: translateY(60px) scale(.85); } to { opacity: 1; transform: none; } }
/* The snake draws itself from head to tail. */
@keyframes ll-slither {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-12px); }
  20% { opacity: 1; }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes ll-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-2deg) translateX(-2px); } 75% { transform: rotate(2deg) translateX(2px); } }
@keyframes ll-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.loader-dots { display: flex; gap: 10px; }
.loader-dots i { width: 12px; height: 12px; border-radius: 50%; animation: ll-dot .9s ease-in-out infinite; }
.loader-dots i:nth-child(1) { background: #E8233F; }
.loader-dots i:nth-child(2) { background: #FFC72C; animation-delay: .15s; }
.loader-dots i:nth-child(3) { background: #1E6FE0; animation-delay: .3s; }
@keyframes ll-dot { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }

/* ---------- Footer credit ---------- */
.credit {
  width: min(100%, 520px); margin-top: 18px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.credit span { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #E8D3C8; }
:root[lang="ar"] .credit span { letter-spacing: 0; font-size: 1rem; }
.credit-link { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; border-radius: 16px; padding: 4px 10px; transition: transform .25s ease, opacity .25s; }
.credit-link:hover { transform: scale(1.04); opacity: .85; }
.credit img { width: min(280px, 72vw); height: auto; }
.credit .credit-handle { font-size: .9rem; letter-spacing: .04em; text-transform: none; color: #FFC7DA; }

/* ---------- Phone polish ---------- */
@media (max-width: 600px) {
  /* Comfortable tap targets for small links. */
  .card .link-btn { padding: 10px 12px; margin: -4px auto; }
  .footer-links a { display: inline-block; padding: 10px 6px; }

  /* Section tabs: one row you swipe sideways instead of three rows. */
  .shop-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
  .shop-bar > * { min-width: 0; }
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .search { flex: 1 1 auto; min-width: 0; }

  /* Product file: smaller picture, buy button pinned to the bottom of the popup. */
  .mugshot { padding: 12px; }
  .mugshot .bottle-svg { width: 110px; }
  .mugshot--photo .product-photo { aspect-ratio: 4 / 3; }
  .file .buy-row {
    position: sticky; bottom: 0; z-index: 2; margin: 6px -18px -18px; padding: 12px 18px;
    background: #FFF8EF; border-top: 2px dashed var(--pink-soft); gap: 10px;
  }
  .file .buy-row .play-btn { padding-block: .6em; }

  /* Game HUD: keep "Level 1 · 5% off" on one line. */
  .hud-label { font-size: .74rem; white-space: nowrap; }
}

/* ---------- Musk droppers: hover (computer) or tap (phone) to open and drip ---------- */
.bottle-svg--dropper { overflow: visible; }
/* Sized by width (the frame is 4:3) and set a little lower, so the lifted dropper stays inside the frame. */
.card-media .bottle-svg--dropper { width: 35%; height: auto; margin-top: 9%; }
.bottle-svg--dropper .bottle-cap,
.bottle-svg--dropper .bottle-pipette { transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.bottle-svg--dropper .drip { opacity: 0; transform-box: fill-box; transform-origin: 50% 0; }

.bottle-svg--dropper.is-dropping .bottle-cap,
.bottle-svg--dropper.is-dropping .bottle-pipette { transform: translateY(-30px); }
.bottle-svg--dropper.is-dropping .drip { animation: drip 1.35s ease-in .4s infinite; }
.bottle-svg--dropper.is-dropping .drip--2 { animation-delay: .85s; }
.bottle-svg--dropper.is-dropping .drip--3 { animation-delay: 1.3s; }

@media (hover: hover) {
  .card-media:hover .bottle-svg--dropper .bottle-cap,
  .card-media:hover .bottle-svg--dropper .bottle-pipette,
  .mugshot:hover .bottle-svg--dropper .bottle-cap,
  .mugshot:hover .bottle-svg--dropper .bottle-pipette { transform: translateY(-30px); }
  .card-media:hover .bottle-svg--dropper .drip,
  .mugshot:hover .bottle-svg--dropper .drip { animation: drip 1.35s ease-in .4s infinite; }
  .card-media:hover .bottle-svg--dropper .drip--2,
  .mugshot:hover .bottle-svg--dropper .drip--2 { animation-delay: .85s; }
  .card-media:hover .bottle-svg--dropper .drip--3,
  .mugshot:hover .bottle-svg--dropper .drip--3 { animation-delay: 1.3s; }
}
/* The dropper does its own animation, so skip the card's usual tilt (also on touch screens). */
.card:hover .card-media .bottle-svg--dropper { transform: none; }

@keyframes drip {
  0% { opacity: 0; transform: translateY(0) scale(.3); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  85% { opacity: .9; }
  100% { opacity: 0; transform: translateY(12px) scale(.85); }
}

/* ---------- Game page (game.html) & jar play button ---------- */
.jar-play { margin-bottom: 4px; }
.back-link {
  display: inline-flex; align-items: center; gap: .3em; text-decoration: none; font-weight: 600;
  padding: .5em .9em; border-radius: 999px; transition: background .2s, color .2s;
}
.back-link:hover { background: var(--pink-soft); color: var(--pink-deep); }
[dir="rtl"] .back-arrow { display: inline-block; transform: scaleX(-1); }
.game-page .header-actions { margin-inline-start: auto; }
.game-page .game-section { margin-top: 0; border-radius: 0; min-height: calc(100vh - 72px); }
.game-locked {
  position: relative; max-width: 460px; margin: 8px auto 0; padding: 32px 24px; text-align: center;
  background: #fff; border-radius: 28px; box-shadow: 0 18px 40px rgba(20, 50, 100, .25);
}
.game-locked-icon { display: block; font-size: 2.6rem; margin-bottom: 6px; }
.game-locked h3 { margin: 0 0 8px; font-size: 1.5rem; color: var(--pink-deep); }
.game-locked p { margin: 0 0 20px; color: var(--choc-soft); }
@media (max-width: 480px) {
  .back-link { padding: .5em .4em; font-size: .92rem; }
  .game-page .header-actions { gap: 6px; }
}

/* ---------- Bundle boxes ---------- */
.bundles { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.bundle-card {
  flex: 0 1 380px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: linear-gradient(180deg, #fff, #FFF0F6); border-radius: 34px; padding: 26px 24px; box-shadow: var(--shadow);
  border: 4px dashed var(--pink);
}
.bundle-card h3 { font-size: 1.7rem; color: var(--pink-deep); }
.bundle-note { color: var(--choc-soft); margin: 0; }
.bundle-art { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: 2px; min-height: 96px; max-width: 100%; }
.bundle-bottle { display: block; flex: none; animation: bob 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.bundle-bottle--lg { width: 56px; }
.bundle-bottle--md { width: 40px; }
.bundle-bottle--xs { width: 18px; }
.bundle-bottle .bottle-svg { display: block; width: 100%; height: auto; }
@media (max-width: 480px) { .bundle-bottle--lg { width: 46px; } .bundle-bottle--md { width: 33px; } .bundle-bottle--xs { width: 15px; } }
.bundle-contents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bundle-contents li { background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; font-size: .95rem; padding: .3em .9em; border-radius: 999px; }
.bundle-price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 10px; }
.bundle-price strong { font-size: 2.2rem; color: var(--pink-deep); line-height: 1; }
.bundle-price s { color: var(--choc-soft); font-size: 1.1rem; }

/* Builder */
.modal--bundle { width: min(620px, calc(100% - 2 * var(--gutter))); }
.bundle-builder { margin: 0; }
.bundle-file { display: flex; flex-direction: column; }
.bm-body { padding: 16px 20px 6px; display: flex; flex-direction: column; gap: 12px; }
.bm-intro { margin: 0; font-size: .95rem; color: var(--choc-soft); }
.bm-slots { display: flex; flex-direction: column; gap: 12px; }
.bm-slot {
  background: #fff; border-radius: 22px; padding: 12px 14px 14px; border: 2px solid transparent;
  box-shadow: 0 3px 0 rgba(74, 44, 34, .06); display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s;
}
.bm-slot.is-active { border-color: var(--pink); }
.bm-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bm-slot-head h3 { font-size: 1.05rem; }
.bm-count { min-width: 40px; text-align: center; font-weight: 700; font-size: .9rem; padding: .15em .7em; border-radius: 999px; background: var(--pink-soft); color: var(--pink-deep); }
.bm-slot.is-full .bm-count { background: #DDF7E8; color: #1F7A45; }

/* Spots: empty boxes that fill with the chosen perfume */
.bm-spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 92px)); gap: 10px; }
.bm-spot {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; padding: 6px 4px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px dashed #EAD9CF; background: #FFFAF6; color: #C9B3A6; font: inherit; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.bm-spot:hover { border-color: var(--pink); }
.bm-spot.is-next { border-color: var(--pink); background: #FFF3F8; color: var(--pink-deep); animation: spot-pulse 1.6s ease-in-out infinite; }
@keyframes spot-pulse { 50% { transform: scale(.96); } }
.bm-spot-plus { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.bm-spot-size { font-size: .7rem; font-weight: 700; }
.bm-spot.is-filled {
  cursor: default; border: 0; justify-content: flex-start;
  background: radial-gradient(circle at 50% 42%, #fff 0 20%, var(--tint) 75%);
  animation: spot-in .35s cubic-bezier(.3, 1.6, .5, 1);
}
@keyframes spot-in { from { transform: scale(.6); opacity: 0; } }
.bm-spot-art { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.bm-spot-art .bottle-svg { height: 100%; width: auto; max-width: 70%; }
.bm-spot-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.bm-spot-name {
  width: 100%; font-size: .7rem; font-weight: 600; color: var(--choc); text-align: center; line-height: 1.15;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bm-x {
  position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%; padding: 0;
  border: 0; background: #fff; color: var(--pink-deep); font-size: .7rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 2px 6px rgba(74, 44, 34, .25);
}

/* Picker */
.bm-picker { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 2px dashed var(--pink-soft); }
.bm-search {
  display: flex; align-items: center; gap: 8px; align-self: flex-start; width: min(100%, 260px);
  background: var(--cream); border: 2px solid #F1E4DC; border-radius: 999px; padding: 0 12px; height: 38px;
  color: var(--choc-soft); transition: border-color .2s;
}
.bm-search:focus-within { border-color: var(--pink); background: #fff; }
.bm-search svg { width: 16px; height: 16px; flex: none; }
.bm-search input { border: 0; background: none; outline: none; width: 100%; font: inherit; font-size: .92rem; color: var(--choc); padding: 0; }
.bm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 250px; overflow-y: auto; padding: 2px 2px 4px; }
.bm-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px; border-radius: 14px;
  border: 2px solid transparent; background: #FFFAF6; font: inherit; color: var(--choc); cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
}
.bm-opt:hover { border-color: var(--pink); background: #fff; transform: translateY(-2px); }
.bm-opt:active { transform: scale(.95); }
.bm-opt-art { width: 100%; height: 58px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 25%, var(--tint) 80%); }
.bm-opt-art .bottle-svg { height: 48px; width: auto; }
.bm-opt-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.bm-opt-name { font-size: .72rem; font-weight: 600; line-height: 1.15; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bm-more, .bm-none { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; font-size: .85rem; color: var(--choc-soft); }

.bm-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px 16px; background: #FFF8EF; border-top: 3px dashed var(--pink-soft); border-radius: 0 0 28px 28px;
}
.bm-left { font-weight: 700; color: var(--choc-soft); }
.bm-foot .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 480px) {
  .bm-foot .btn { width: 100%; }
  .bm-body { padding: 14px 12px 6px; }
  .bm-spots { grid-template-columns: repeat(auto-fill, minmax(62px, 74px)); gap: 8px; }
  .bm-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); max-height: 220px; }
}

/* Jar */
.jar-thumb--bundle { background: var(--gold-soft); font-size: 1.8rem; }
.jar-picks { list-style: none; margin: 4px 0; padding: 0; font-size: .85rem; color: var(--choc-soft); }
.totals-note { margin: 0; font-size: .85rem; color: var(--choc-soft); }

/* Game sound on / off (between the timer and the score) */
.sfx-btn {
  flex: none; align-self: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 0; background: linear-gradient(180deg, #fff, #FFF1F6); font-size: 1.3rem;
  box-shadow: 0 4px 0 rgba(36, 99, 166, .35), 0 10px 18px rgba(0, 0, 0, .12);
  transition: transform .15s;
}
.sfx-btn:hover { transform: scale(1.06); }
.sfx-btn:active { transform: scale(.94); }
.sfx-btn[aria-pressed="false"] { opacity: .75; }
@media (max-width: 480px) { .sfx-btn { width: 40px; height: 40px; font-size: 1.1rem; } .hud { gap: 8px; } }
