/* ==========================================================================
   IMILASHA — official site styles
   Mobile-first · RTL-safe (logical properties) · prefers-reduced-motion aware
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  /* palette: Maldives — crystal-clear lagoon light, white sand, sunny gold, coral crab */
  --cream:        #F1FBFC;   /* crystal water light */
  --cream-deep:   #DEF3F6;
  --card:         #FFFEFB;
  --pink:         #FAC6CD;
  --pink-soft:    #FDE7EA;
  --gold:         #F2A93B;   /* sunshine */
  --gold-soft:    #FBDCA6;
  --berry:        #F0503C;   /* coral crab — primary accent */
  --berry-dark:   #D63A28;
  --ink:          #41352A;   /* warm cocoa text */
  --ink-soft:     #75604F;
  --teal:         #0FB5C9;   /* crystal-clear lagoon water */
  --teal-soft:    #A9EDF5;

  --font-display: "Comfortaa", "Nunito", "Hiragino Maru Gothic ProN", "Yu Gothic UI",
                  "Noto Sans Arabic", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body:    "Nunito", "Segoe UI", "Noto Sans", "Hiragino Sans",
                  "Noto Sans Arabic", "Noto Sans Devanagari", system-ui, sans-serif;

  --radius-s: 14px;
  --radius-m: 22px;
  --radius-l: 34px;

  --shadow-soft:  0 10px 34px -12px rgba(120, 70, 40, .22);
  --shadow-lift:  0 18px 50px -16px rgba(120, 70, 40, .32);
  --glow-pink:    0 0 0 6px rgba(248, 200, 210, .35);

  --container: 1120px;
  --header-h: 64px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

/* [hidden] must always win: several overlays set display:flex/grid, which
   would otherwise override the browser's default and leave them on screen. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 85% -5%, rgba(94, 224, 240, .45), transparent 60%),
    radial-gradient(900px 550px at -10% 22%, rgba(252, 228, 233, .6), transparent 60%),
    radial-gradient(1100px 700px at 50% 115%, rgba(64, 214, 232, .38), transparent 55%),
    var(--cream);
  overflow-x: hidden;
  /* subtle premium grain */
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; display: block; }

a { color: var(--berry); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* keyboard focus */
:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--berry);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- ambient background blobs ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 24s ease-in-out infinite alternate;
}
.ambient__blob--1 { width: 420px; height: 420px; background: var(--teal-soft); top: -8%; inset-inline-end: -10%; }
.ambient__blob--2 { width: 360px; height: 360px; background: var(--gold-soft); top: 42%;  inset-inline-start: -12%; animation-delay: -8s; }
.ambient__blob--3 { width: 300px; height: 300px; background: #FFB9AC; bottom: -6%; inset-inline-end: 8%; animation-delay: -16s; opacity: .3; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, 40px, 0) scale(1.12); }
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

/* ---------- buttons: little crabs with googly eyes ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  /* room for the eye stalks poking above */
  margin-top: 18px;
}
/* googly eyes on stalks */
.btn::before {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 26px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='26' viewBox='0 0 46 26'%3E%3Cpath d='M16 25 L14 12 M30 25 L32 12' stroke='%23D63A28' stroke-width='3.4' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='8' r='7.2' fill='white' stroke='%23D63A28' stroke-width='2.6'/%3E%3Ccircle cx='32' cy='8' r='7.2' fill='white' stroke='%23D63A28' stroke-width='2.6'/%3E%3Ccircle cx='14.8' cy='9' r='3.1' fill='%23332018'/%3E%3Ccircle cx='31.2' cy='9' r='3.1' fill='%23332018'/%3E%3Ccircle cx='16' cy='7.6' r='1.1' fill='white'/%3E%3Ccircle cx='32.4' cy='7.6' r='1.1' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s ease;
}
/* claws hugging the sides */
.btn::after {
  content: "";
  position: absolute;
  inset-inline: -13px;
  top: 4px;
  height: 24px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 1 0 10 13.6L13 11.5l8.6-4.4A10.5 10.5 0 0 0 12 1.5z' fill='%23D63A28'/%3E%3Ccircle cx='9' cy='10' r='1.6' fill='%23F8907F'/%3E%3C/svg%3E") left center / 22px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5a10.5 10.5 0 1 1-10 13.6L11 11.5 2.4 7.1A10.5 10.5 0 0 1 12 1.5z' fill='%23D63A28'/%3E%3Ccircle cx='15' cy='10' r='1.6' fill='%23F8907F'/%3E%3C/svg%3E") right center / 22px no-repeat;
  transition: transform .25s ease;
}
.btn:hover::before { transform: translateX(-50%) translateY(-3px) rotate(-4deg); }
.btn:hover::after { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(160deg, #FA6A50, var(--berry) 45%, var(--berry-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift), 0 0 26px rgba(240, 80, 60, .45);
}
.btn--ghost {
  background: rgba(255, 254, 251, .88);
  color: var(--berry-dark);
  box-shadow: inset 0 0 0 2px rgba(240, 80, 60, .45);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--berry), 0 0 0 6px rgba(169, 237, 245, .5);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(241, 251, 252, .78);
  border-bottom: 1px solid rgba(15, 181, 201, .16);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .12em;
}
/* wordmark lock-up: IMILASHA with Я МИЛАША tucked underneath — costs no width */
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__ru {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--teal);
  white-space: nowrap;
}

.site-header__actions { display: flex; align-items: center; gap: 8px; }

/* nav — mobile drawer first */
.site-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--header-h);
  background: rgba(255, 246, 236, .97);
  border-bottom: 1px solid rgba(233, 161, 59, .2);
  transform: translateY(-130%);
  transition: transform .3s ease;
  z-index: -1;
}
.site-nav.is-open { transform: translateY(0); }
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 18px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav__list a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  transition: background .2s, color .2s;
}
.site-nav__list a:hover { background: var(--pink-soft); color: var(--berry-dark); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- language switcher ---------- */
.lang-switcher { position: relative; }
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 250, .9);
  box-shadow: inset 0 0 0 1.5px rgba(233, 161, 59, .35);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.lang-switcher__btn:hover { box-shadow: inset 0 0 0 1.5px var(--gold), var(--glow-pink); }
.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chev { transform: rotate(180deg); }
.lang-switcher__chev { transition: transform .2s; }
.lang-switcher__flag { font-size: 16px; line-height: 1; }

.lang-switcher__list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 210px;
  max-height: min(60vh, 420px);
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-lift);
  z-index: 60;
}
.lang-switcher--up .lang-switcher__list { top: auto; bottom: calc(100% + 8px); }

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: start;
}
.lang-switcher__option:hover,
.lang-switcher__option:focus-visible { background: var(--pink-soft); }
.lang-switcher__option[aria-selected="true"] {
  background: var(--pink-soft);
  color: var(--berry-dark);
  font-weight: 800;
}
.lang-switcher__option .check { margin-inline-start: auto; color: var(--berry); }

/* ---------- hero: full-screen ocean ----------
   Phones stack it: photo on top, words underneath, so nothing ever covers
   Milasha. From 900px up the words move onto the water beside her. */
.hero {
  position: relative;
  display: block;
  overflow: hidden;
}
.hero__bg { position: relative; height: 56svh; }
.hero__slideshow { position: absolute; inset: 0; }
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 0%;
  /* outfits cross-fade into one another */
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.hero__photo.is-active { opacity: 1; }
/* the video keeps Milasha's face centred on every screen */
.hero__video { object-position: 50% 42%; }
@media (min-width: 900px) { .hero__video { object-position: 50% 42%; } }
.hero__tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(241, 251, 252, .5) 88%, var(--cream) 99%);
}

/* drifting surf layers */
.hero__waves {
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 88px;
  transform-origin: bottom;
}
.wave {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 200%;
  height: 100%;
  animation: wave-drift linear infinite;
}
.wave--1 { animation-duration: 19s; }
.wave--2 { animation-duration: 13s; }
.wave--3 { animation-duration: 9s; }
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* hovering over the ocean makes the surf swell */
.hero:hover .hero__waves { animation: surge 3.6s ease-in-out infinite; }
@keyframes surge {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%      { transform: translateY(-7px) scaleY(1.22); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 26px 44px;
}
/* No panel — the words sit straight on the ocean so nothing covers Milasha.
   Legibility comes from soft shadows plus the gradient scrim in .hero__tint. */
.hero__copy {
  max-width: 500px;
}
.hero__kicker {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  text-shadow: 0 1px 10px rgba(255, 255, 255, .95), 0 0 24px rgba(255, 255, 255, .85);
}
.hero__title {
  font-size: clamp(44px, 9vw, 76px);
  font-weight: 700;
  letter-spacing: .06em;
  background: linear-gradient(120deg, #F0503C 8%, #F2A93B 48%, #0FB5C9 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* gradient text can't take text-shadow — drop-shadow lifts it off the photo */
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, .9))
          drop-shadow(0 0 18px rgba(255, 255, 255, .75));
}
.hero__title-native {
  display: block;
  font-size: clamp(17px, 3vw, 22px);
  letter-spacing: .5em;
  margin-top: 6px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  text-shadow: 0 1px 10px rgba(255, 255, 255, .95), 0 0 22px rgba(255, 255, 255, .85);
}
.hero__tagline {
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  max-width: 24ch;
  margin: 18px 0 28px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .95), 0 0 20px rgba(255, 255, 255, .9);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__sparkle {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 16px rgba(169, 237, 245, .95), 0 0 4px rgba(255, 255, 255, .8);
  animation: twinkle 3.2s ease-in-out infinite;
  font-size: 22px;
  z-index: 1;
}
.hero__sparkle--1 { top: 14%; inset-inline-start: 10%; }
.hero__sparkle--2 { top: 24%; inset-inline-end: 12%; animation-delay: -1.4s; font-size: 15px; }
@keyframes twinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

.hero__scroll {
  display: none;
  position: absolute;
  z-index: 3;
  bottom: 18px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bob 2.6s ease-in-out infinite;
}
[dir="rtl"] .hero__scroll { transform: translateX(50%); }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 6px; }
}

/* ---------- achievements strip ---------- */
.stats {
  padding-block: 56px;
  text-align: center;
}
.stats__kicker {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
.stats__title {
  font-size: clamp(26px, 5vw, 40px);
  color: var(--ink);
  margin-bottom: 34px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin-inline: auto;
}
.stat {
  padding: 26px 12px;
  background: var(--card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1;
  background: linear-gradient(120deg, #F0503C 10%, #F2A93B 55%, #0FB5C9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: clamp(12px, 2.4vw, 15px);
}
.stats__note {
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- generic section ---------- */
.section { padding-block: 72px; }
.section__kicker {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
.section__title {
  font-size: clamp(28px, 6vw, 44px);
  color: var(--ink);
  margin-bottom: 14px;
}
.section__subtitle {
  margin: 0 0 36px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------- about ---------- */
.about__grid {
  display: grid;
  gap: 34px;
  margin-top: 20px;
}
.about__lead {
  font-size: 20px;
  font-weight: 700;
  color: var(--berry-dark);
}
.about__media {
  display: grid;
  gap: 16px;
}
.about__card {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--card);
}
.about__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.about__card:hover img { transform: scale(1.05); }
.about__card--love { aspect-ratio: 1; }
.about__card--wide { aspect-ratio: 1; }

/* ---------- gallery: featured YouTube row ---------- */
.gallery__videos {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}
.yt-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yt-card__btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.yt-card--vertical .yt-card__btn { aspect-ratio: 9 / 16; }
.yt-card__btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift), 0 0 32px rgba(15, 181, 201, .4);
}
.yt-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.yt-card__btn:hover .yt-card__thumb { transform: scale(1.05); }
.yt-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(65, 53, 42, .05), rgba(65, 53, 42, .35));
  transition: background .3s;
}
.yt-card__play::after {
  content: "";
  width: 64px;
  height: 45px;
  border-radius: 12px;
  background: rgba(240, 80, 60, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 16 16'%3E%3Cpath d='M5 2.8v10.4c0 .6.66.97 1.18.65l8.2-5.2a.77.77 0 0 0 0-1.3l-8.2-5.2A.77.77 0 0 0 5 2.8z' fill='white'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 8px 26px rgba(65, 53, 42, .45);
  transition: transform .25s ease, background-color .25s ease;
}
.yt-card__btn:hover .yt-card__play::after { transform: scale(1.12); }
.yt-card__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 254, 251, .92);
  color: var(--berry-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.yt-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--ink);
  text-align: center;
  padding-inline: 6px;
}

/* ---------- gallery: links to the official profiles ---------- */
.gallery__more-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 3vw, 21px);
  color: var(--ink);
}
.gallery__socials {
  display: grid;
  gap: 14px;
}
.social-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.social-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.social-tile__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.social-tile--yt .social-tile__icon { background: #E5484D; }
.social-tile--ig .social-tile__icon { background: linear-gradient(135deg, #F09433, #DC2743 55%, #BC1888); }
.social-tile--tt .social-tile__icon { background: #2B2B33; }
.social-tile__name { font-weight: 800; font-size: 17px; color: var(--ink); }
.social-tile__handle { color: var(--ink-soft); font-size: 14px; }

/* ---------- Russian legal treatment for Instagram ---------- */
.ig-star { display: none; font-size: .7em; color: var(--berry); }
.ig-neutral { display: none; }
.ig-note { display: none; }
.lang-ru .ig-star { display: inline; }
.lang-ru .ig-logo { display: none; }
.lang-ru .ig-neutral { display: block; }
/* neutral, non-branded tile in the Russian version */
.lang-ru .social-tile--ig .social-tile__icon,
.lang-ru .channel-card__icon--ig { background: linear-gradient(135deg, #9AA6AE, #6E7C86); }
.lang-ru .ig-note {
  display: block;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: rgba(154, 166, 174, .16);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.media-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 30px rgba(247, 183, 196, .5);
}

/* vertical 9:16 video cards */
.media-card--video { aspect-ratio: 9 / 16; grid-row: span 2; }
.media-card__video,
.media-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* wide 16:9 YouTube video (not a Short) */
.media-card--wide {
  aspect-ratio: 16 / 9;
  grid-row: span 1;
  grid-column: span 2;
}
.media-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 55%, rgba(74, 50, 38, .45));
  transition: background .3s;
}
.media-card__play::after {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 253, 250, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 16 16'%3E%3Cpath d='M5 2.8v10.4c0 .6.66.97 1.18.65l8.2-5.2a.77.77 0 0 0 0-1.3l-8.2-5.2A.77.77 0 0 0 5 2.8z' fill='%23F0503C'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 8px 26px rgba(74, 50, 38, .35);
  transition: transform .25s ease;
}
.media-card:hover .media-card__play::after { transform: scale(1.1); }

.media-card__tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 250, .9);
  color: var(--berry-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* image card */
.media-card--image { aspect-ratio: 1; }
.media-card--image img { width: 100%; height: 100%; object-fit: cover; }

/* audio card */
.media-card--audio {
  aspect-ratio: 1;
  cursor: default;
  display: grid;
}
.media-card--audio > img {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(.7) saturate(1.1);
  transform: scale(1.15);
}
.media-card__audio-body {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
}
.media-card__audio-title {
  margin: 0;
  color: #FFF7EE;
  font-weight: 800;
  font-size: 15px;
  text-shadow: 0 2px 10px rgba(74, 50, 38, .6);
}
.media-card--audio audio { width: 100%; height: 40px; border-radius: 999px; }

/* placeholder embed cards */
.media-card--embed {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    repeating-linear-gradient(-45deg, rgba(233,161,59,.07) 0 12px, transparent 12px 24px),
    var(--cream-deep);
  border: 2px dashed rgba(233, 161, 59, .5);
  box-shadow: none;
}
.media-card--embed:hover { box-shadow: var(--shadow-soft); }
.media-card__embed-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--card);
  color: var(--berry);
  font-size: 22px;
  box-shadow: var(--shadow-soft);
}
.media-card__embed-name { font-weight: 800; color: var(--ink); }
.media-card__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(233, 161, 59, .18);
  color: #8A6320;
  font-size: 11.5px;
  font-weight: 700;
}
/* when a real embed URL is set, app.js adds .is-live */
.media-card--embed.is-live { border-style: solid; }
.media-card--embed.is-live .media-card__badge { display: none; }

/* ---------- coloring ---------- */
.coloring__wrap {
  display: grid;
  gap: 18px;
}
.coloring__palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  justify-content: center;
}
.swatch {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(74, 50, 38, .25);
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
  overflow: hidden;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] {
  transform: scale(1.18);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--berry);
}
/* glitter swatches sparkle */
.swatch--glitter {
  position: relative;
  overflow: hidden;
}
.swatch--glitter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 28% 30%, #fff 0 1.4px, transparent 2px),
    radial-gradient(circle at 68% 40%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 44% 70%, #fff 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 78% 74%, #fff 0 1.1px, transparent 1.6px);
  animation: sparkle 1.6s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}
/* rainbow swatch */
.swatch--rainbow {
  background: conic-gradient(#F0503C, #FFD84D, #6FD86B, #22D3C5, #5AA9FF, #B983FF, #FF7DB4, #F0503C);
}
/* eraser now looks like a real eraser */
.swatch--eraser {
  background: linear-gradient(160deg, #FFE0E6 55%, #6FB7FF 55%);
}
.swatch--eraser::after {
  content: "";
  position: absolute;
  inset: 40% 22% 26% 22%;
  border-radius: 2px;
  background: rgba(255, 255, 255, .55);
}

/* sticker buttons */
.sticker {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: var(--cream-deep);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(74, 50, 38, .25);
  transition: transform .15s ease, box-shadow .15s ease;
  padding: 0;
}
.sticker:hover { transform: scale(1.12) rotate(-4deg); }
.sticker[aria-pressed="true"] {
  transform: scale(1.16);
  box-shadow: 0 0 0 3px var(--card), 0 0 0 6px var(--teal);
}
.coloring__board {
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(10px, 2.5vw, 24px);
}
.coloring__canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  cursor: crosshair;
  touch-action: manipulation;
}
html.crab-on .coloring__canvas { cursor: none; }
.coloring__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ---------- memory game ---------- */
.game__wrap { max-width: 760px; }
.game__levels {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 6px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.game__level {
  border: 0;
  padding: 9px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.game__level:hover { background: var(--pink-soft); }
.game__level[aria-pressed="true"] {
  background: linear-gradient(135deg, #35C8DB, var(--teal));
  color: #fff;
}
.game__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-bottom: 18px;
  min-height: 34px;
}
.game__moves {
  margin: 0;
  font-weight: 800;
  color: var(--ink-soft);
}
.game__win {
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-soft), #D8F8DE);
  color: var(--ink);
  font-weight: 800;
  animation: pop-in .4s ease;
}
.game__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* easy = 6 cards (3×2), medium = 12 (3×4 → 4 wide on tablet), hard = 16 (4×4) */
.game__grid[data-level="medium"] { grid-template-columns: repeat(3, 1fr); }
.game__grid[data-level="hard"] { grid-template-columns: repeat(4, 1fr); }
.mem-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 700px;
}
.mem-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.4, .2, .2, 1);
}
.mem-card.is-open .mem-card__inner,
.mem-card.is-matched .mem-card__inner { transform: rotateY(180deg); }
.mem-card__front,
.mem-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.mem-card__front {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5), transparent 55%),
    linear-gradient(150deg, #35C8DB, var(--teal));
}
.mem-card__front img { width: 56%; filter: drop-shadow(0 4px 8px rgba(0, 60, 70, .3)); }
.mem-card__back { transform: rotateY(180deg); background: var(--card); }
.mem-card__back img { width: 100%; height: 100%; object-fit: cover; }
.mem-card.is-matched { cursor: default; animation: match-pop .5s ease; }
.mem-card.is-matched .mem-card__back { box-shadow: 0 0 0 4px #6FD86B, var(--shadow-lift); }
@keyframes match-pop {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.09) rotate(2deg); }
}
.mem-card__spark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  pointer-events: none;
  animation: spark-fly 1s ease forwards;
}
@keyframes spark-fly {
  from { opacity: 1; transform: translateY(6px) scale(.6); }
  to   { opacity: 0; transform: translateY(-34px) scale(1.5); }
}
.game__restart { margin-top: 26px; }

/* ---------- merch ---------- */
.merch__grid {
  display: grid;
  gap: 18px;
}
.merch-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.merch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 26px rgba(15, 181, 201, .25);
}
.merch-card__pic {
  position: relative;
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-deep);
}
.merch-card__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.merch-card:hover .merch-card__pic img { transform: scale(1.06); }
.merch-card__status {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 254, 251, .94);
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(65, 53, 42, .18);
}
.merch-card__status--live {
  background: linear-gradient(135deg, #35C8DB, var(--teal));
  color: #fff;
}

.merch__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: var(--teal-soft);
  color: #0A5C68;
  font-weight: 700;
  font-size: 15px;
}
.merch__note svg { flex: 0 0 auto; }
.merch-card__name { margin: 0 0 6px; font-size: 18px; }
.merch-card__desc { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; flex: 1; }
.merch-card__buy { align-self: center; padding: 12px 30px; }
.merch-card__order {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.merch-card__order .btn { width: 100%; justify-content: center; padding: 12px 18px; font-size: 15px; margin-top: 0; }
/* these buttons carry their own icons — no crab eyes/claws here */
.merch-card__order .btn::before,
.merch-card__order .btn::after { display: none; }
.btn--wa {
  background: linear-gradient(135deg, #25D366, #1EBE5A);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--wa:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift), 0 0 22px rgba(37, 211, 102, .45); }
.btn--email {
  background: rgba(255, 254, 251, .9);
  color: var(--berry-dark);
  box-shadow: inset 0 0 0 2px var(--teal-soft);
}
.btn--email:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--teal), 0 0 0 5px rgba(169, 237, 245, .4); }

/* ---------- reviews: endless marquee ---------- */
.reviews__marquee {
  position: relative;
  overflow: hidden;
  /* fade the ends so cards slide in and out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.reviews__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: reviews-scroll 90s linear infinite;
}
.reviews__marquee:hover .reviews__track { animation-play-state: paused; }
@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[dir="rtl"] .reviews__track { animation-direction: reverse; }
.review-card {
  position: relative;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 26px 22px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), 0 0 26px rgba(15, 181, 201, .2);
}
.review-card__quote {
  position: absolute;
  top: 8px;
  inset-inline-end: 18px;
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  color: var(--teal-soft);
  pointer-events: none;
}
.review-card__hearts { color: var(--berry); font-size: 15px; letter-spacing: 2px; }
.review-card__text {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.review-card__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-soft), var(--pink-soft));
  font-size: 20px;
  flex: 0 0 auto;
}
.review-card__name { font-weight: 800; font-size: 15px; }
.review-card__place { color: var(--ink-soft); font-size: 13.5px; }

/* ---------- channels ---------- */
.channels__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), 0 0 28px rgba(201, 79, 110, .22);
}
.channel-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
}
.channel-card__icon--ig { background: linear-gradient(135deg, #F09433, #DC2743 55%, #BC1888); }
.channel-card__icon--yt { background: #E5484D; }
.channel-card__icon--tt { background: #2B2B33; }
.channel-card__icon--rt { background: #14539A; }
.channel-card__icon--vk { background: #0077FF; }
.channel-card__icon--tg { background: linear-gradient(135deg, #37BBFE, #007DBB); }
.channel-card__icon--pin { background: #E60023; }
.channel-card__body { display: flex; flex-direction: column; min-width: 0; }
.channel-card__name { font-weight: 800; font-size: 17px; }
.channel-card__handle { color: var(--ink-soft); font-size: 14.5px; }
.channel-card__cta {
  margin-inline-start: auto;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.channel-card--soon { opacity: .62; }
.channel-card--soon .channel-card__icon { filter: grayscale(.35); }

.channels__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  background: var(--pink-soft);
  color: var(--berry-dark);
  font-weight: 700;
  font-size: 15px;
}
.channels__note svg { flex: 0 0 auto; }

/* ---------- IP / copyright ---------- */
.ip {
  padding-block: 80px;
}
.ip__inner {
  text-align: center;
  max-width: 720px;
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 52px clamp(22px, 6vw, 60px);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.ip__seal {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -90px auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--pink));
  color: var(--berry-dark);
  box-shadow: var(--shadow-soft);
}
.ip__text { color: var(--ink-soft); margin-bottom: 28px; }
.ip__text p + p { margin-top: 14px; }
/* author line reads as a signature, not body copy */
.ip__author {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--berry-dark);
  font-weight: 800;
  font-size: 15.5px;
}

/* ---------- contact ---------- */
.contact__form {
  max-width: 660px;
  background: var(--card);
  border-radius: var(--radius-l);
  padding: clamp(22px, 5vw, 40px);
  box-shadow: var(--shadow-soft);
}
.contact__row { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field__label { font-weight: 800; font-size: 14.5px; }
.field__input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 2px solid var(--cream-deep);
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field__input:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: var(--glow-pink);
}
.field__input--area { resize: vertical; min-height: 120px; }
.field__input::placeholder { color: #B49A89; }

.contact__error {
  margin: 0 0 14px;
  color: #B3261E;
  font-weight: 700;
  font-size: 14.5px;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.contact__mail { font-weight: 700; color: var(--teal); text-decoration: none; }
.contact__mail:hover { text-decoration: underline; }

.contact__emails {
  max-width: 660px;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.email-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.email-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), 0 0 24px rgba(15, 181, 201, .22);
}
.email-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
}
.email-card--biz .email-card__icon { background: linear-gradient(135deg, #35C8DB, var(--teal)); color: #fff; }
.email-card--kids .email-card__icon { background: var(--pink-soft); }
.email-card__body { display: flex; flex-direction: column; min-width: 0; }
.email-card__addr { font-weight: 800; font-size: 17px; color: var(--berry-dark); }
.email-card__desc { color: var(--ink-soft); font-size: 14px; }

@media (min-width: 640px) {
  .contact__emails { grid-template-columns: 1fr 1fr; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 30px;
  padding-block: 44px 40px;
  background: linear-gradient(180deg, transparent, rgba(169, 237, 245, .35));
  border-top: 1px solid rgba(15, 181, 201, .16);
}
.site-footer__inner {
  display: grid;
  gap: 28px;
}
.site-footer__legal {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  max-width: 46ch;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer__links a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.site-footer__links a:hover { color: var(--berry-dark); }

/* ---------- crab guide ---------- */
.crab-guide {
  position: fixed;
  z-index: 60;
  pointer-events: none;          /* never steals clicks from the shell */
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: min(78vw, 300px);
  /* he scuttles in from the left edge */
  animation: guide-crawl-in .9s cubic-bezier(.25, .9, .3, 1);
  /* app.js drops him in a different spot each time */
  bottom: var(--guide-bottom, 118px);
  left: var(--guide-left, 18px);
}
.crab-guide.is-right { animation-name: guide-crawl-in-r; }
@keyframes guide-crawl-in {
  0%   { opacity: 0; transform: translateX(-120px) rotate(-8deg); }
  60%  { opacity: 1; }
  70%  { transform: translateX(6px) rotate(4deg); }
  85%  { transform: translateX(-3px) rotate(-2deg); }
  100% { transform: translateX(0) rotate(0); }
}
@keyframes guide-crawl-in-r {
  0%   { opacity: 0; transform: translateX(120px) rotate(8deg); }
  60%  { opacity: 1; }
  70%  { transform: translateX(-6px) rotate(-4deg); }
  85%  { transform: translateX(3px) rotate(2deg); }
  100% { transform: translateX(0) rotate(0); }
}
@keyframes guide-in {
  from { opacity: 0; transform: translateY(14px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
.crab-guide__pet {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  /* scuttles side to side, like he's walking on the spot */
  animation: guide-walk 1.5s ease-in-out infinite;
}
.crab-guide__pet img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(80, 30, 10, .35));
}
@keyframes guide-walk {
  0%, 100% { transform: translate(-3px, 0) rotate(-5deg); }
  25%      { transform: translate(0, -4px) rotate(0deg); }
  50%      { transform: translate(3px, 0) rotate(5deg); }
  75%      { transform: translate(0, -4px) rotate(0deg); }
}

.crab-guide__bubble {
  position: relative;
  pointer-events: auto;
  order: -1;
  margin: 0 0 14px;
  padding: 11px 15px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
}
/* little tail pointing down at his mouth */
.crab-guide__bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  inset-inline-end: 22px;
  width: 18px;
  height: 12px;
  background: var(--card);
  clip-path: polygon(0 0, 100% 0, 42% 100%);
}
/* when the crab sits on the right, the tail points the other way */
.crab-guide.is-right .crab-guide__bubble::after { inset-inline-end: auto; inset-inline-start: 22px;
  clip-path: polygon(0 0, 100% 0, 58% 100%); }
.crab-guide.is-right { flex-direction: row-reverse; }
.crab-guide__close {
  position: absolute;
  pointer-events: auto;
  top: -8px;
  inset-inline-end: -8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* ---------- magic shell ---------- */
.shell {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  z-index: 55;
  width: 62px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-top: 0;
  transition: transform .25s ease;
}
.shell::before, .shell::after { display: none; }   /* no crab eyes on this one */
.shell:hover { transform: translateY(-3px) rotate(-4deg); }
.shell__art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(180, 120, 150, .4));
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1), filter .5s ease;
}
/* the shell swells and glows as it opens */
.shell.is-open .shell__art {
  transform: scale(1.16) rotate(-4deg);
  filter: drop-shadow(0 8px 18px rgba(180, 120, 150, .5))
          drop-shadow(0 0 22px rgba(255, 225, 245, .95));
}
.shell__hint {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--berry-dark);
  text-align: center;
}

/* pearls that spill out */
/* a real pearl: cool nacre body, a soft rim-light from below and one sharp
   specular highlight up top — that highlight is what sells it */
.pearl {
  position: fixed;
  z-index: 56;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  pointer-events: none;
  background:
    /* tiny sharp glint */
    radial-gradient(circle at 34% 26%, #fff 0 12%, rgba(255,255,255,.85) 18%, transparent 30%),
    /* broad soft sheen */
    radial-gradient(circle at 38% 32%, rgba(255,255,255,.9) 0 20%, rgba(255,255,255,.25) 42%, transparent 62%),
    /* bounce light along the bottom edge */
    radial-gradient(circle at 62% 82%, rgba(255,236,250,.95) 0 16%, transparent 46%),
    /* nacre: pink → blue → gold shifting across the ball */
    radial-gradient(circle at 45% 40%,
      #FFFDFB 0 24%,
      #FDE9F4 42%,
      #E4EDFB 60%,
      #F6E4FF 74%,
      #FFF3DC 88%,
      #E8D9E6 100%);
  box-shadow:
    inset -1.5px -2px 4px rgba(150, 120, 160, .38),
    inset 1px 1px 2px rgba(255, 255, 255, .9),
    0 1px 4px rgba(120, 80, 110, .3),
    0 0 9px rgba(255, 235, 250, .75);
  animation: pearl-fly 1.15s cubic-bezier(.15,.7,.3,1) forwards;
}
/* burst upward and outward, then fall under gravity while slowly turning */
@keyframes pearl-fly {
  0%   { transform: translate(0, 0) scale(.35) rotate(0deg); opacity: 0; }
  12%  { opacity: 1; }
  55%  { transform: translate(calc(var(--px) * .62), var(--py)) scale(1) rotate(150deg); opacity: 1; }
  100% { transform: translate(var(--px), calc(var(--py) + 110px)) scale(.92) rotate(330deg); opacity: 0; }
}

/* fortune card */
.fortune {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(45, 26, 16, .5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.fortune__card {
  max-width: 420px;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius-l);
  padding: 34px 28px 28px;
  box-shadow: var(--shadow-lift);
  animation: pop-in .45s cubic-bezier(.2, 1.4, .4, 1);
}
.fortune__pearl { font-size: 40px; display: block; margin-bottom: 8px; }
.fortune__kicker {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
}
.fortune__text {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(18px, 3.4vw, 22px);
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- soap bubbles ----------
   Rise from the bottom of the viewport, sway as they go, and pop on click.
   Transparent body, iridescent rim, a bright highlight and a soft reflection. */
.bubbles {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.bubble-rise {
  position: absolute;
  bottom: -14vh;
  pointer-events: none;
  animation: bubble-rise linear forwards;
}
@keyframes bubble-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-125vh); }
}
.bubble {
  display: block;
  border-radius: 50%;
  pointer-events: auto;          /* only the bubble itself is clickable */
  cursor: none;
  animation: bubble-sway ease-in-out infinite alternate;
  background:
    /* bright highlight */
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.95) 0 5%, rgba(255,255,255,.45) 11%, transparent 26%),
    /* small lower reflection */
    radial-gradient(circle at 68% 74%, rgba(255,255,255,.5) 0 5%, transparent 20%),
    /* iridescent rim: cyan → pink → gold around the edge */
    radial-gradient(circle at 50% 50%,
      rgba(255,255,255,.02) 55%,
      rgba(255,255,255,.16) 74%,
      rgba(150,240,255,.42) 84%,
      rgba(255,178,235,.42) 91%,
      rgba(255,232,170,.38) 96%,
      rgba(255,255,255,.10) 100%);
  box-shadow:
    inset 0 0 10px rgba(255,255,255,.55),
    inset -3px -4px 10px rgba(150,240,255,.35),
    0 2px 12px rgba(15,181,201,.16);
}
@keyframes bubble-sway {
  from { translate: -14px 0; }
  to   { translate: 14px 0; }
}
/* the pop: a quick stretch, then gone */
.bubble.is-pop {
  animation: none;
  transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .28s ease-out;
  transform: scale(1.45);
  opacity: 0;
}
/* droplets thrown out by the pop */
.bubble-drop {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(170,240,255,.75));
  box-shadow: 0 0 5px rgba(255,255,255,.7);
  pointer-events: none;
  animation: bubble-drop .5s ease-out forwards;
}
@keyframes bubble-drop {
  from { transform: translate(0,0) scale(1); opacity: .95; }
  to   { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; }
}

/* ---------- crab cursor ----------
   Only on desktop pointers. The native cursor is hidden and a little crab
   follows the mouse; its claws snap on click. */
.crab-cursor { display: none; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.crab-on, html.crab-on * { cursor: none; }
  /* keep the text caret where people type */
  html.crab-on input, html.crab-on textarea { cursor: text; }

  html.crab-on .crab-cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 26px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 2px 3px rgba(80, 30, 10, .35));
  }
  .crab-cursor svg { width: 100%; height: 100%; display: block; }

  /* claws snap shut on click */
  .crab-claw {
    transition: transform .12s cubic-bezier(.3, 1.6, .5, 1);
    transform-origin: 50% 80%;
  }
  /* only the claws move — the crab itself never shifts, so the click point
     stays exactly under the pointer.
     Both claws swing up and inward, as if snatching a bubble out of the air. */
  .crab-cursor.is-pinch .crab-claw--l { transform: rotate(24deg) translateY(-1.5px); }
  .crab-cursor.is-pinch .crab-claw--r { transform: rotate(-24deg) translateY(-1.5px); }
}

/* ---------- background music toggle ---------- */
.music-toggle {
  position: fixed;
  bottom: 18px;
  inset-inline-end: 18px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--berry), var(--berry-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-lift), 0 0 24px rgba(201, 79, 110, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.music-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-lift), 0 0 34px rgba(240, 80, 60, .55);
}
/* the music crab has googly eyes too */
.music-toggle::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 24px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='26' viewBox='0 0 46 26'%3E%3Cpath d='M16 25 L14 12 M30 25 L32 12' stroke='%23D63A28' stroke-width='3.4' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='8' r='7.2' fill='white' stroke='%23D63A28' stroke-width='2.6'/%3E%3Ccircle cx='32' cy='8' r='7.2' fill='white' stroke='%23D63A28' stroke-width='2.6'/%3E%3Ccircle cx='14.8' cy='9' r='3.1' fill='%23332018'/%3E%3Ccircle cx='31.2' cy='9' r='3.1' fill='%23332018'/%3E%3Ccircle cx='16' cy='7.6' r='1.1' fill='white'/%3E%3Ccircle cx='32.4' cy='7.6' r='1.1' fill='white'/%3E%3C/svg%3E") center / contain no-repeat;
}
.music-toggle__icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.music-toggle__note { grid-area: 1 / 1; transition: opacity .2s; }
.music-toggle__bars {
  grid-area: 1 / 1;
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.music-toggle__bars span {
  width: 4px;
  border-radius: 2px;
  background: #fff;
  animation: eq 1s ease-in-out infinite;
}
.music-toggle__bars span:nth-child(1) { height: 60%; animation-delay: -.2s; }
.music-toggle__bars span:nth-child(2) { height: 100%; animation-delay: -.5s; }
.music-toggle__bars span:nth-child(3) { height: 75%; animation-delay: -.8s; }
@keyframes eq {
  0%, 100% { transform: scaleY(.45); }
  50%      { transform: scaleY(1); }
}
/* playing state: hide the note, show the equalizer + gentle pulse */
.music-toggle[aria-pressed="true"] .music-toggle__note { opacity: 0; }
.music-toggle[aria-pressed="true"] .music-toggle__bars { display: flex; }
.music-toggle[aria-pressed="true"] { animation: music-pulse 2.4s ease-in-out infinite; }
@keyframes music-pulse {
  0%, 100% { box-shadow: var(--shadow-lift), 0 0 20px rgba(201, 79, 110, .35); }
  50%      { box-shadow: var(--shadow-lift), 0 0 38px rgba(201, 79, 110, .6); }
}
/* muted state: soft look + slash */
.music-toggle[aria-pressed="false"] {
  background: rgba(255, 253, 250, .92);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft), inset 0 0 0 2px var(--pink);
}
.music-toggle[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--berry);
  transform: rotate(-45deg);
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 26, 16, .78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox__dialog {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lightbox__content {
  max-width: 94vw;
  display: grid;
  place-items: center;
  animation: pop-in .3s ease;
}
.lightbox__content video,
.lightbox__content iframe,
.lightbox__content img {
  max-width: 94vw;
  max-height: 84vh;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  background: #000;
}
/* videos & images keep their natural aspect; embeds default to a 9:16 reel frame */
.lightbox__content iframe { width: min(94vw, 420px); aspect-ratio: 9 / 16; border: 0; }
.lightbox__content.is-wide iframe { width: min(94vw, 900px); aspect-ratio: 16 / 9; }
.lightbox__content img { background: transparent; }
.lightbox__empty {
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 34px 26px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 250, .92);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .2s;
}
.lightbox__close:hover { transform: rotate(90deg); }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.94) translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
/* before JS runs, keep everything visible */
html:not(.js) .reveal { opacity: 1; transform: none; }

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

/* ==========================================================================
   breakpoints — tablet and up
   ========================================================================== */
@media (min-width: 640px) {
  .gallery__videos { grid-template-columns: repeat(3, 1fr); }
  .gallery__socials { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact__row { grid-template-columns: 1fr 1fr; }
  /* the tender "love you too" photo leads, the two smaller ones sit below */
  .about__media {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .about__card--love { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .merch__grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex-basis: 330px; }
  .game__grid { gap: 16px; }
  .game__grid[data-level="medium"] { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }

  /* desktop nav inline */
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    transform: none;
    background: transparent;
    border: 0;
    z-index: auto;
  }
  .site-nav__list {
    flex-direction: row;
    padding: 0;
    gap: 2px;
  }
  .site-nav__list a { padding: 8px 7px; font-size: 13.5px; white-space: nowrap; }

  /* words move onto the water, Milasha keeps the right half to herself */
  .hero {
    min-height: 100svh;
    display: grid;
    align-items: center;
  }
  .hero__bg { position: absolute; inset: 0; height: auto; }
  .hero__inner { padding-block: 130px 170px; }
  /* anchor the frame left: the crop falls on the right, which nudges Milasha
     further right and leaves open water on the left for the wordmark */
  .hero__photo { object-position: 0% 50%; }
  .hero__waves { height: 130px; }
  /* veil the water on the reading side only */
  .hero__tint {
    background:
      linear-gradient(90deg, rgba(241, 251, 252, .5), rgba(241, 251, 252, 0) 55%),
      linear-gradient(180deg, transparent 62%, rgba(241, 251, 252, .45) 88%, var(--cream) 99%);
  }
  [dir="rtl"] .hero__photo { object-position: 100% 30%; }
  [dir="rtl"] .hero__tint {
    background:
      linear-gradient(270deg, rgba(241, 251, 252, .5), rgba(241, 251, 252, 0) 55%),
      linear-gradient(180deg, transparent 62%, rgba(241, 251, 252, .45) 88%, var(--cream) 99%);
  }
  .hero__scroll { display: flex; }

  .section { padding-block: 96px; }
  .gallery__videos { gap: 24px; margin-bottom: 40px; }

  .about__grid {
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
  }

  .gallery__grid { grid-template-columns: repeat(4, 1fr); }

  .channels__list { grid-template-columns: 1fr 1fr; }
  .review-card { flex-basis: 360px; }
  .merch__grid { grid-template-columns: repeat(4, 1fr); }

  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .gallery__grid { grid-template-columns: repeat(5, 1fr); }
}
