@font-face {
  font-family: Nunito;
  src: url('/fonturi/nunito-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: Nunito;
  src: url('/fonturi/nunito-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  font-family: Nunito, 'Trebuchet MS', sans-serif;
  color: #48283b;
  background: #f8dadb;
  --cream: #fff2ed;
  --shell: min(1360px, calc(100% - 94px));
  --header-height: clamp(61px, 6vw, 86px);
  --sky-apus: url('/imagini/cer-la-apus.webp');
  --sky-noapte: url('/imagini/cer-noapte-cu-luna.webp');
  --sky-dimineata: url('/imagini/cer-dimineata-de-piersici.webp');
  --star-shape: polygon(50% 0, 62% 34%, 100% 37%, 71% 61%, 80% 100%, 50% 76%, 20% 100%, 29% 61%, 0 37%, 38% 34%);
  --heart-shape: polygon(50% 100%, 11% 65%, 2% 47%, 3% 27%, 14% 12%, 30% 7%, 44% 13%, 50% 22%, 56% 13%, 70% 7%, 86% 12%, 97% 27%, 98% 47%, 89% 65%);
}

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

html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid #b34b74; outline-offset: 5px; }
.hero :focus-visible, .site-header :focus-visible { outline-color: #fff2ed; }
#bule-pufoase, #jocuri { scroll-margin-top: var(--header-height); }

.hero {
  --sky: var(--sky-apus);
  --sky-shade: #39152ca1;
  --sky-tint: #361d3135;
  --sky-shade-mobile: #32172c90;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #402339;
  color: var(--cream);
}

.hero[data-backdrop='noapte'] {
  --sky: var(--sky-noapte);
  --sky-shade: #21133386;
  --sky-tint: #35204529;
  --sky-shade-mobile: #1e152b60;
  background: #29213e;
}

.hero[data-backdrop='dimineata'] {
  --sky: var(--sky-dimineata);
  --sky-shade: #471c2c9c;
  --sky-tint: #662a3b24;
  --sky-shade-mobile: #4c20328f;
  background: #592b3a;
}

.hero-sky {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, #f8dadb, #f8dadb44 7%, transparent 19%),
    linear-gradient(90deg, var(--sky-shade), var(--sky-tint) 43%, transparent 67%),
    var(--sky) 56% 65% / cover no-repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  color: var(--cream);
  background: linear-gradient(90deg, #331329, #3b1935);
  border-bottom: 1px solid #f1a1b846;
}

.header-inner {
  width: var(--shell);
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.hero-nav {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
}

.header-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.avatar-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: min(clamp(55px, 6.1vw, 77px), calc(var(--header-height) - 8px));
  aspect-ratio: 1;
  padding: 2px;
  border: 1px solid #f4c2cb;
  border-radius: 50%;
  background: #fff0e7;
  box-shadow: 0 3px 8px #1c0e20aa;
  pointer-events: none;
}
.avatar-badge img { display: block; width: 100%; height: auto; }

.nav-link, .sound-button, .settings-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  border: 1px solid #f9dce767;
  border-radius: 99px;
  background: #4021366e;
  color: var(--cream);
  transition: background .2s ease;
}

.nav-link {
  gap: 9px;
  min-width: 106px;
  padding-inline: 17px;
  background: linear-gradient(#a65d7a, #723651);
  box-shadow: 0 3px 0 #4e233c, inset 0 1px #ffdae1a8;
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: none;
}
.sound-button { width: 43px; padding: 0; }
.nav-link:hover, .sound-button:hover, .settings-menu summary:hover { background: #633b55; }

.settings-menu summary { width: 43px; cursor: pointer; line-height: 1; font-size: 1.23rem; list-style: none; }
.settings-menu summary::-webkit-details-marker { display: none; }
.settings-menu[open] summary { background: #633b55; }

.settings-panel {
  position: absolute;
  z-index: 1;
  top: calc(100% + 10px);
  right: 0;
  width: min(362px, calc(100vw - 28px));
  max-height: calc(100svh - var(--header-height) - 14px);
  overflow: auto;
  padding: 13px;
  border: 1px solid #ffe9db;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff2e6, #f3cfd6);
  color: #563347;
  box-shadow: 0 4px #c58d9e, 0 14px 34px #25101c80;
}

.settings-panel :focus-visible { outline: 3px solid #a44b71; outline-offset: 2px; }
.settings-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.settings-heading h2 { margin: 0; font-size: 1.44rem; font-weight: 1000; line-height: 1; }
.settings-close {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #d8a0af;
  border-radius: 50%;
  background: #fff7f0;
  font-size: 1.4rem;
  line-height: 1;
}
.settings-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-panel legend { padding: 0; margin-bottom: 7px; font-size: .92rem; font-weight: 950; }
.background-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.background-option, .avatar-option, .particle-grid label { position: relative; cursor: pointer; }
.settings-panel input[type='radio'] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.settings-panel input[type='radio']:focus-visible + span { outline: 3px solid #a44b71; outline-offset: 2px; }
.settings-panel input[type='radio']:checked + span { border-color: #9c4d71; background: #ffebe6; box-shadow: inset 0 0 0 1px #9c4d71; }
.background-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 4px;
  padding: 4px 4px 6px;
  border: 1px solid #deb1bb;
  border-radius: 11px;
  background: #fff7ef;
  text-align: center;
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.13;
}
.background-thumb { display: block; height: 37px; border-radius: 7px; background: var(--sky) center 64% / cover; }
.background-thumb.apus { --sky: var(--sky-apus); }
.background-thumb.noapte { --sky: var(--sky-noapte); }
.background-thumb.dimineata { --sky: var(--sky-dimineata); }
.settings-audio { margin-block: 10px; padding-block: 5px; border-block: 1px solid #d9a8b680; }
.settings-switch, .music-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; font-weight: 850; }
.settings-switch { min-height: 32px; cursor: pointer; }
.settings-switch input { width: 18px; height: 18px; margin: 0 2px; accent-color: #ac5d79; }
.music-label { margin-top: 2px; font-size: .77rem; }
.music-value { color: #88506c; font-size: .75rem; font-variant-numeric: tabular-nums; }
.settings-panel input[type='range'] { display: block; width: 100%; min-height: 27px; margin: 0; accent-color: #a65172; cursor: pointer; }
.particle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.particle-grid label span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 5px;
  border: 1px solid #deb1bb;
  border-radius: 11px;
  background: #fff7ef;
  font-size: .82rem;
  font-weight: 850;
}
.particle-grid i { width: 13px; aspect-ratio: 1; }
.particle-star { background: #c98432; clip-path: var(--star-shape); }
.particle-heart { background: #c26183; clip-path: var(--heart-shape); }
.settings-panel .avatar-options { margin-bottom: 10px; }
.avatar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.avatar-option span {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 76px;
  border: 1px solid #deb1bb;
  border-radius: 10px;
  padding: 3px;
  background: #fff7ef;
}
.avatar-option img { display: block; width: 100%; max-width: 87px; height: auto; pointer-events: none; }
.avatar-caption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 0 4px;
  border-radius: 99px;
  background: #fff3e8;
  color: #824b69;
  font-size: .68rem;
  font-weight: 1000;
  line-height: 1.45;
}
.avatar-option input:checked + span::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a65172;
  content: '';
}

.sound-icon { position: relative; display: block; width: 19px; height: 17px; }
.sound-icon::before {
  content: '';
  position: absolute;
  inset: 0 7px 0 0;
  background: currentColor;
  clip-path: polygon(0 32%, 35% 32%, 100% 0, 100% 100%, 35% 68%, 0 68%);
}

.sound-icon::after {
  content: '';
  position: absolute;
  inset: 1px 0 1px 8px;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.sound-button[aria-pressed='false'] .sound-icon::after {
  inset: 7px -1px auto 13px;
  height: 2px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(-42deg);
}

.arrow-down {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}

.hero-layout {
  position: relative;
  width: var(--shell);
  height: clamp(570px, 47vw, 750px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 39% 61%;
  grid-template-rows: min-content min-content 1fr;
  grid-template-areas: 'story .' 'hud .' '. .';
  padding-block: clamp(90px, 8vw, 130px) 35px;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  min-width: 0;
  text-decoration: none;
}
.brand-art {
  position: relative;
  display: block;
  width: clamp(138px, 17.1vw, 245px);
  min-width: 0;
  aspect-ratio: 1280 / 488;
  margin-block: -4px 0;
}

.brand-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 7px #240f2396);
}

.brand-suffix { margin-bottom: .25em; color: #f3c4d0; font-size: clamp(.7rem, 1.35vw, 1.17rem); font-weight: 950; }

.brand-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  mask: url('/imagini/oli-miau-roz-deschis.webp') center / contain no-repeat;
  pointer-events: none;
}

.brand-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, #fff6d08c 50%, transparent 61%);
  animation: logo-shine 8.4s ease-in-out infinite;
}

.brand-float {
  position: absolute;
  width: clamp(5px, .63vw, 10px);
  aspect-ratio: 1;
  border: 1px solid #ffcfdab3;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 27%, #fff2dabf 0 11%, #ffdfeb23 21% 44%, transparent 61%);
  pointer-events: none;
  animation: logo-bubble 8.4s ease-in-out infinite;
}

.brand-float-one { right: 3%; top: 25%; animation-delay: .52s; }
.brand-float-two { right: 10%; top: 22%; width: clamp(4px, .43vw, 7px); animation-delay: 1s; }

@keyframes logo-shine {
  0%, 12% { transform: translateX(-115%); }
  24%, 100% { transform: translateX(115%); }
}

@keyframes logo-bubble {
  0%, 15% { opacity: 0; transform: translate(-3px, 8px) scale(.7); }
  22%, 29% { opacity: .78; }
  43%, 100% { opacity: 0; transform: translate(9px, -16px) scale(1.08); }
}

.story {
  grid-area: story;
  position: relative;
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 4px 0 #55233a, 0 7px 24px #321428;
}

.story h1 {
  max-width: 12.6ch;
  margin: 0 0 13px;
  color: #fff1df;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  font-weight: 1000;
  letter-spacing: -.049em;
  line-height: .95;
}

.story p { margin: 0; color: #ffeadd; font-size: clamp(1.02rem, 1.87vw, 1.62rem); font-weight: 850; }

.story-trail {
  position: absolute;
  z-index: -1;
  width: min(53%, 263px);
  height: 59px;
  bottom: calc(100% + 12px);
  left: -4px;
  pointer-events: none;
}

.story-trail::before {
  content: '';
  position: absolute;
  inset: 22% 34% 0 0;
  border-top: 2px dashed #ffe5a7;
  border-radius: 50%;
  transform: rotate(-10deg);
  mask-image: linear-gradient(100deg, transparent, black 38%);
}

.story-trail::after {
  content: '';
  position: absolute;
  inset: 4% 2% 43% 58%;
  border-bottom: 2px dashed #ffe5a7;
  border-radius: 50%;
  transform: rotate(12deg);
}

.story-trail img { position: absolute; top: 6%; right: -8%; width: 46px; height: auto; transform: rotate(13deg); }

.game-hud {
  grid-area: hud;
  position: relative;
  z-index: 2;
  display: flex;
  justify-self: start;
  align-items: center;
  gap: clamp(10px, 1.12vw, 18px);
  margin: 26px 0 0;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: clamp(63px, 7.75vw, 109px);
  min-width: clamp(140px, 19.5vw, 290px);
  padding: 10px 26px 10px 21px;
  border: 2px solid #f9beca;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 21% 3%, #ffe9de9e, transparent 35%),
    linear-gradient(#cc8095, #9a365a 87%);
  box-shadow: 0 6px 0 #87364f, 0 17px 29px #2b14267a, inset 0 3px 4px #ffe1dfa3, inset 0 -4px 8px #69274379;
  color: #fff1dc;
  font-size: clamp(1.6rem, 4.12vw, 3.75rem);
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 3px #61213d9c;
  transition: transform .2s ease, box-shadow .2s ease;
}

.play-button:hover { transform: translateY(-3px); }
.play-button:active { transform: translateY(4px); }

.play-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(27px, 3.8vw, 54px);
  aspect-ratio: 1;
}

.play-icon::after {
  content: '';
  width: 92%;
  height: 97%;
  background: #fff1d8;
  clip-path: polygon(8% 3%, 95% 46%, 95% 54%, 8% 97%, 2% 92%, 2% 8%);
  border-radius: 8px;
}

.score-panel {
  position: relative;
  width: 147px;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid #f5cce65c;
  border-radius: 17px;
  background: #3d2036a1;
  box-shadow: inset 0 1px #ffdfea28, 0 3px 13px #2e132631;
}

.score-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 7px;
  color: #ffedf1;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

#game-score { font-weight: 1000; font-variant-numeric: tabular-nums; }

.score-track, .score-fill { height: 5px; border-radius: 12px; }
.score-track { overflow: hidden; background: #6d4860; }
.score-fill { width: 0; background: linear-gradient(90deg, #df92ac, #ffe1a9); transition: width .26s ease; }

.replay-button {
  position: absolute;
  z-index: 1;
  top: calc(100% - 3px);
  left: 11px;
  padding: 3px 10px;
  border: 1px solid #ffe2ca;
  border-radius: 99px;
  background: #f5d6cc;
  color: #522d42;
  font-size: .8rem;
  font-weight: 950;
  white-space: nowrap;
  box-shadow: 0 3px 10px #2e13265c;
}

.album {
  position: absolute;
  right: 1%;
  bottom: 15%;
  z-index: 2;
  width: clamp(282px, 32vw, 480px);
  padding: 13px 17px 15px;
  border: 1px solid #fff0e8;
  border-radius: 20px;
  background:
    repeating-linear-gradient(39deg, #8a3b3b05 0 1px, transparent 1px 4px),
    linear-gradient(155deg, #fff0df, #f4c9c3);
  color: #562d43;
  box-shadow: 0 4px #c8919f, 0 9px #e4abb3, 0 14px 27px #2d112e66, inset 0 0 0 4px #fffbec75;
  transform: rotate(-4deg);
}

.album::before {
  content: '';
  position: absolute;
  width: 27%;
  height: 25px;
  left: 44%;
  top: -13px;
  background:
    radial-gradient(circle at 4px 4px, #ffefde9c 0 1.4px, transparent 1.8px) 0 0 / 11px 10px,
    #e6a2afa8;
  box-shadow: 0 1px 4px #7c455742;
  transform: rotate(-4deg);
  clip-path: polygon(1% 3%, 98% 0, 96% 19%, 100% 32%, 96% 48%, 100% 65%, 96% 81%, 99% 100%, 0 97%, 4% 79%, 0 64%, 3% 48%, 0 34%, 3% 18%);
}

.album-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 3px 7px; }
.album-heading h3 { margin: 0; font-size: clamp(1.14rem, 2.55vw, 2.38rem); font-weight: 1000; letter-spacing: -.034em; }
#album-count { padding: 2px 10px; border-radius: 99px; background: #9a4a64; color: #fff0df; font-size: clamp(.78rem, 1.39vw, 1.2rem); font-weight: 950; font-variant-numeric: tabular-nums; }
.album-decoration {
  position: absolute;
  bottom: -17px;
  right: -13px;
  width: 42px;
  height: auto;
  transform: rotate(-17deg);
  filter: drop-shadow(0 2px 2px #6a3c493b);
  pointer-events: none;
}

.album-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; list-style: none; margin: 0; padding: 0; }

.album-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.08;
  padding: 2px;
  border: 1px dashed #b77f96;
  border-radius: 39% 39% 34% 34%;
  background: #fff1ea5a;
}

.album-slot:disabled { cursor: default; }
.album-slot img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .42;
  filter: grayscale(1) sepia(.45);
  transform: scale(.82);
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.album-slot.collected { border-style: solid; border-color: #f6d8cc; cursor: pointer; }
.album-slot.collected img { opacity: 1; filter: drop-shadow(0 2px 2px #6b3c4930); transform: rotate(var(--angle)); }
.album-slot.collected:hover img { transform: rotate(calc(var(--angle) * -1)) scale(1.13); }
.album-slot:focus-visible { outline-color: #98516e; }

.opal-reward {
  position: absolute;
  top: calc(100% - 12px);
  right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 14px 2px 5px;
  border: 1px solid #fff3dc;
  border-radius: 15px;
  background: linear-gradient(115deg, #fff3dc, #f8dce8 60%, #eadcf9);
  color: #5e344f;
  box-shadow: 0 4px 10px #66345652;
  pointer-events: none;
  animation: opal-arrive .56s cubic-bezier(.17,.74,.32,1.24) both;
}

.opal-reward img { width: 48px; height: auto; filter: drop-shadow(0 2px 3px #b47b9d56); }
.opal-reward span, .opal-reward strong { display: block; line-height: 1.08; }
.opal-reward span { margin-bottom: 3px; color: #835171; font-size: .73rem; font-weight: 850; }
.opal-reward strong { font-size: .98rem; font-weight: 1000; }

@keyframes opal-arrive {
  from { opacity: 0; transform: translateY(-10px) scale(.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.flying-sticker { position: fixed; z-index: 10; pointer-events: none; object-fit: contain; filter: drop-shadow(0 4px 12px #5f2d3970); }

.flight {
  position: absolute;
  inset: 0 -1% 0 32%;
}

.cat-arrival {
  position: absolute;
  inset: 12% 37% auto 1%;
  max-width: min(58%, 590px);
  pointer-events: none;
  animation: arrive 1.65s cubic-bezier(.15,.67,.28,1) both;
}

.cat {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 21px 28px #4c234266);
}

.cat-float {
  position: relative;
  animation: float-cat 5.8s ease-in-out 1.65s infinite;
}

.cat-figure { position: relative; }

.oli-target {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  pointer-events: auto;
  touch-action: manipulation;
  clip-path: polygon(17% 12%, 27% 10%, 34% 21%, 28% 37%, 34% 48%, 36% 31%, 34% 22%, 36% 12%, 47% 14%, 60% 14%, 72% 3%, 78% 5%, 83% 22%, 91% 35%, 96% 34%, 100% 39%, 99% 46%, 86% 58%, 81% 65%, 81% 73%, 70% 80%, 58% 85%, 39% 92%, 33% 98%, 26% 97%, 25% 91%, 27% 85%, 22% 85%, 18% 91%, 12% 91%, 10% 85%, 13% 78%, 18% 72%, 20% 64%, 13% 62%, 5% 53%, 1% 42%, 1% 30%, 6% 20%);
}

.oli-target:focus-visible { outline: 0; background: #ffedd51a; }
.cat-figure:has(.oli-target:focus-visible) .cat { filter: drop-shadow(0 0 7px #ffe9cb) drop-shadow(0 21px 28px #4c234266); }

.oli-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cat-response {
  transform: translate3d(var(--follow-x, 0px), var(--follow-y, 0px), 0) rotate(var(--follow-angle, 0deg));
  transition: transform .24s cubic-bezier(.18,.7,.35,1);
}

.cat-response.returning { transition-duration: .58s; }

@keyframes arrive {
  from { opacity: 0; transform: translate(-78%, 24%) rotate(-18deg) scale(.78); }
  22% { opacity: 1; }
  to { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}

@keyframes float-cat {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(1.1%, -3.2%) rotate(2deg); }
}

.bubble-field, .bubble-canvas { position: absolute; inset: 0; pointer-events: none; }
.bubble-field { z-index: 3; }
.bubble-canvas { width: 100%; height: 100%; }

.bubble {
  border: 1px solid #fff2f0cd;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 27% 22%, #fff9f7f7 0 2%, #fff5f4b2 3%, transparent 20%),
    radial-gradient(ellipse at 70% 79%, #ffe7bdc0, transparent 40%),
    radial-gradient(ellipse at 48% 36%, #f7bbc435 30%, #b486bf8d 62%, #ffbbdba8 80%, #ffe6ecee 100%);
  box-shadow: inset 2px 3px 8px #fff0ec80, inset -4px -5px 15px #7b508e40, 0 4px 14px #45213825;
}

.bubble-spot {
  position: absolute;
  left: clamp(27px, var(--x), calc(100% - 27px));
  top: clamp(27px, var(--y), calc(100% - 27px));
  width: max(38px, var(--size));
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  animation: bob var(--time, 5.7s) var(--delay, -2s) ease-in-out infinite alternate;
}

.bubble-1 { --x: 26%; --y: 12%; --size: 15%; }
.bubble-2 { --x: 11%; --y: 9%; --size: 5.5%; }
.bubble-3 { --x: 10%; --y: 70%; --size: 6%; --time: 6.6s; }
.bubble-4 { --x: 83%; --y: 46%; --size: 7.5%; }
.bubble-5 { --x: 56%; --y: 9%; --size: 5.2%; }
.bubble-6 { --x: 40%; --y: 84%; --size: 12%; }
.bubble-7 { --x: 65%; --y: 28%; --size: 8.9%; --time: 6.9s; }
.bubble-8 { --x: 90%; --y: 28%; --size: 13%; }
.bubble-9 { --x: 17%; --y: 81%; --size: 7.5%; }
.bubble-10 { --x: 68%; --y: 44%; --size: 5.5%; }
.bubble-11 { --x: 5%; --y: 84%; --size: 5.7%; }
.bubble-12 { --x: 74%; --y: 8%; --size: 4.4%; }

@keyframes bob {
  from { transform: translate(calc(var(--drift, 1) * -3px), 5px); }
  to { transform: translate(calc(var(--drift, 1) * 4px), -5px); }
}

.bubble-target {
  position: relative;
  display: grid;
  place-items: center;
  pointer-events: auto;
  width: 100%;
  height: 100%;
  padding: 8%;
  touch-action: manipulation;
  transition: scale .17s ease, filter .17s ease;
}

.bubble-target::before {
  content: '';
  position: absolute;
  width: max(calc(100% + 10px), 44px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.bubble-target:hover { scale: 1.08; filter: brightness(1.12); }

.bubble-target img {
  display: block;
  width: 72%;
  height: auto;
  pointer-events: none;
  transform: rotate(var(--angle, 0deg));
  filter: drop-shadow(0 2px 4px #5b244e69);
  animation: charm 3.4s var(--delay) ease-in-out infinite alternate;
}

@keyframes charm {
  from { rotate: -7deg; }
  to { rotate: 9deg; translate: 0 -5%; }
}

[data-renderer='three'] .bubble-spot { animation: none; }
[data-renderer='three'] .bubble-target {
  scale: var(--bubble-scale, 1);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transition: none;
}

.bubble-target.popped { pointer-events: none; animation: pop .3s ease-out both; }
.bubble-target.popped::before { pointer-events: none; }

.opal-bubble::after {
  position: absolute;
  inset: 1px;
  border: 1px solid #f7e6fa;
  border-radius: inherit;
  box-shadow: inset 0 0 9px #e9c4f2ad, 0 0 10px #ffe7c259;
  content: '';
  pointer-events: none;
}

.opal-glint {
  width: 55%;
  aspect-ratio: 1;
  background: linear-gradient(130deg, #fff2b7, #fdf0ff 51%, #c4e8ea);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
  animation: twinkle 1.6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pop {
  25% { opacity: .85; scale: 1.17; }
  100% { opacity: 0; scale: 1.5; visibility: hidden; }
}

.burst { position: absolute; pointer-events: none; inset: 0; }
.burst::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 2px solid #ffeeda;
  border-radius: 50%;
  animation: burst-ring .41s ease-out both;
}

.burst i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(15px, 1.55vw, 22px);
  aspect-ratio: 1;
  clip-path: var(--star-shape);
  background: #ffd46e;
  animation: drift-spark .81s cubic-bezier(.18,.57,.38,1) both;
}

.burst i:nth-child(2n) { width: clamp(11px, 1.12vw, 16px); background: #ffe6a6; }
.star-burst, .heart-burst { filter: drop-shadow(0 1px 2px #49273cac); }
.heart-burst i { clip-path: var(--heart-shape); background: #ed83aa; }
.heart-burst i:nth-child(2n) { background: #ffbbd3; }

.opal-burst::before {
  border-color: #fff4cc;
  box-shadow: 0 0 0 3px #eecdf599, 0 0 14px #fff0d8, inset 0 0 7px #d8eff7;
  animation-duration: .68s;
}

.opal-burst i {
  width: 9px;
  background: #fbe6aa;
  border-radius: 0;
  clip-path: polygon(50% 0, 66% 34%, 100% 50%, 66% 66%, 50% 100%, 34% 66%, 0 50%, 34% 34%);
  animation: scatter .75s cubic-bezier(.17,.61,.39,1) both;
}

.opal-burst i:nth-child(2n) { width: 6px; background: #fff3ed; }
.opal-burst i:nth-child(3n) { background: #d3eef3; }
.opal-burst i:nth-child(3n+1) { background: #f4cced; }

@keyframes burst-ring {
  from { opacity: 1; scale: .8; }
  to { opacity: 0; scale: 2.35; }
}

@keyframes scatter {
  from { opacity: 1; transform: rotate(var(--angle)) translateX(7px) scale(.6); }
  33% { opacity: 1; }
  to { opacity: 0; transform: rotate(var(--angle)) translateX(var(--distance)) scale(.25); }
}

@keyframes drift-spark {
  from { opacity: .92; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(7px) rotate(calc(-1 * var(--angle))) scale(.62); }
  44% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(calc(var(--distance) * .74)) rotate(calc(-1 * var(--angle))) scale(1); }
  65% { opacity: .95; }
  to { opacity: 0; transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)) rotate(calc(-1 * var(--angle))) scale(.72); }
}

.glint {
  position: absolute;
  pointer-events: none;
  width: clamp(9px, 1.28vw, 19px);
  aspect-ratio: 1;
  background: #fff3e2;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.3s ease-in-out infinite alternate;
}

.glint-1 { left: 60%; top: 32%; animation-delay: -1.1s; }
.glint-2 { left: 68%; top: 16%; animation-delay: -2.4s; }
.glint-3 { left: 10%; top: 73%; width: 12px; }

.sky-moon {
  position: absolute;
  top: 2%;
  right: 5%;
  width: clamp(38px, 6.4vw, 100px);
  height: auto;
  transform: rotate(12deg);
  filter: drop-shadow(0 0 13px #ffd68d69);
}

.flight-trail {
  position: absolute;
  left: 7%;
  top: 64%;
  width: 43%;
  height: 20%;
}

.flight-trail::before, .flight-trail::after {
  position: absolute;
  content: '';
  inset: 0;
  border-radius: 50%;
  border-left: 2px dashed #ffedb5;
  border-top: 2px dotted #ffdc94;
  transform: rotate(-21deg);
  mask-image: linear-gradient(110deg, #000 27%, #0008 55%, transparent 78%);
}

.flight-trail::after { inset: 8% -1% -8% 4%; opacity: .7; transform: rotate(-23deg); }
.flight-trail img, .ground-stickers img { height: auto; filter: drop-shadow(0 2px 7px #4b253268); }
.trail-star { position: absolute; top: -3%; left: 19%; width: 36px; transform: rotate(12deg); }
.trail-paw { position: absolute; top: 36%; left: 3%; width: 33px; transform: rotate(-25deg); }

.ground-stickers {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  left: 0;
  bottom: 15%;
  pointer-events: none;
}

.ground-stickers img:first-child { width: clamp(54px, 8vw, 112px); margin-right: 34px; transform: rotate(-15deg); }
.ground-stickers img:nth-child(2) { width: clamp(29px, 3.35vw, 52px); transform: rotate(12deg); }
.ground-stickers img:nth-child(3) { width: clamp(25px, 2.85vw, 45px); margin-top: 27px; transform: rotate(19deg); }

@keyframes twinkle {
  from { opacity: .5; scale: .8; }
  to { opacity: 1; scale: 1.11; }
}

.games {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: .34fr 1fr;
  gap: 20px;
  align-items: center;
  padding-block: 12px 48px;
}

.games h2 {
  justify-self: center;
  margin: 0;
  padding-bottom: .13em;
  border-bottom: .085em solid #bd7886;
  border-radius: 15%;
  color: #673547;
  font-size: clamp(2.4rem, 5.2vw, 4.7rem);
  font-weight: 1000;
  letter-spacing: -.05em;
  line-height: 1.1;
  transform: rotate(-6deg);
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px;
  border: 2px solid #fff0db;
  border-radius: 24px;
  background: #efbebe;
  text-decoration: none;
  box-shadow: 0 5px #d7989c, 0 9px 16px #7c394c33;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.game-card:hover { transform: translateY(-4px); box-shadow: 0 9px 20px #562c4425; }

.game-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: clamp(125px, 14vw, 190px);
  border-radius: 18px;
  background: linear-gradient(100deg, #44284065, #934b6a1a), url('/imagini/cer-la-apus.webp') center 76% / cover;
}

.game-cover .bubble { position: absolute; aspect-ratio: 1; }
.game-cover .bubble:nth-child(1) { right: 11%; top: 22%; width: 29%; }
.game-cover .bubble:nth-child(2) { right: 34%; top: 11%; width: 11%; }
.game-cover .bubble:nth-child(3) { right: 36%; top: 62%; width: 15%; }
.game-cover img { position: absolute; right: 17%; top: 34%; width: 17%; height: auto; transform: rotate(-12deg); }
.game-cover .cover-cloud { right: 7%; top: 24%; width: 36%; }
.game-cover .cover-bow { right: 12%; top: 7%; width: 18%; transform: rotate(10deg); }

.game-card-info {
  position: absolute;
  inset: 0 auto 0 7%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 54%;
  color: #fff1d7;
  font-size: clamp(1.46rem, 2.78vw, 2.65rem);
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 2px #60394c;
}
.game-card-info strong { font-weight: 1000; }
@media (min-width: 791px) and (max-width: 1090px) {
  :root { --shell: calc(100% - 70px); }
  .hero-layout { height: clamp(505px, 55vw, 570px); }
  .cat-arrival { inset-block-start: 15%; }
  .bubble-6 { --x: 34%; }
  .bubble-11 { --x: 7%; --y: 84%; }
  .game-hud { gap: 10px; }
  .score-panel { width: 121px; padding-inline: 8px; }
  .score-text { font-size: .71rem; }
}

@media (max-width: 790px) {
  :root { --shell: calc(100% - 40px); --header-height: 63px; }
  .header-inner { width: calc(100% - 24px); }
  .hero-sky {
    background:
      linear-gradient(0deg, #f8dadb, #ebadb24d 11%, transparent 40%, var(--sky-tint) 72%, var(--sky-shade-mobile)),
      var(--sky) 61% 47% / cover no-repeat;
  }
  .hero-nav { gap: 6px; }
  .nav-link { min-width: 0; gap: 6px; padding-inline: 9px; font-size: .96rem; }
  .nav-link, .sound-button, .settings-menu summary { min-height: 39px; }
  .sound-button, .settings-menu summary { width: 39px; }
  .header-brand { gap: 6px; }
  .avatar-badge { width: 57px; }
  .hero-layout {
    max-width: 475px;
    height: auto;
    padding-block: 25px 42px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, auto);
    grid-template-areas: 'story' 'flight' 'hud' 'album';
    text-align: center;
  }
  .brand-art { width: clamp(88px, 29vw, 164px); }
  .story h1 { max-width: 13ch; margin: 0 auto 7px; font-size: clamp(2rem, 9vw, 3.4rem); }
  .story p { font-size: clamp(.93rem, 4.15vw, 1.18rem); }
  .story-trail { inset: 0 auto auto 0; width: 12%; height: 47%; }
  .story-trail::before, .story-trail::after { display: none; }
  .story-trail img { width: clamp(20px, 7vw, 32px); }
  .flight { grid-area: flight; position: relative; inset: auto; width: min(96%, 430px); margin: 2px auto 0; aspect-ratio: 1.17; }
  .cat-arrival { inset: 6% 8% auto 9%; max-width: none; }
  .flight-trail { left: 11%; top: 70%; }
  .trail-star { width: 26px; }
  .trail-paw { width: 23px; }
  .sky-moon { right: 4%; top: 0; }
  .ground-stickers { display: none; }
  .bubble-1 { --x: 15%; --y: 68%; --size: 14%; }
  .bubble-2 { --x: 11%; --y: 23%; --size: 10%; }
  .bubble-3 { --x: 7%; --y: 45%; --size: 8%; }
  .bubble-4 { --x: 83%; --y: 64%; --size: 11%; }
  .bubble-5 { --x: 62%; --y: 9%; --size: 8%; }
  .bubble-6 { --x: 41%; --y: 87%; --size: 13%; }
  .bubble-7 { --x: 91%; --y: 43%; --size: 10%; }
  .bubble-8 { --x: 83%; --y: 21%; --size: 12%; }
  .bubble-9 { --x: 65%; --y: 90%; --size: 10%; }
  .bubble-10 { --x: 90%; --y: 90%; --size: 9%; }
  .bubble-11 { --x: 9%; --y: 89%; --size: 8%; }
  .bubble-12 { --x: 36%; --y: 10%; --size: 8%; }
  .game-hud { justify-self: center; justify-content: center; margin: 7px 0 23px; gap: 12px; }
  .play-button { min-height: 56px; min-width: 137px; padding-right: 19px; font-size: 1.75rem; }
  .play-icon { width: 29px; }
  .score-panel { width: 130px; min-height: 47px; padding: 8px; }
  .score-text { font-size: .72rem; margin-bottom: 5px; }
  .album { grid-area: album; position: relative; inset: auto; margin: 0 auto; width: min(96%, 350px); transform: rotate(-2deg); }
  .games { grid-template-columns: 1fr; gap: 13px; padding-block: 10px 38px; }
  .games h2 { justify-self: start; margin: 0 0 3px 7px; }
  .game-list { gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-cover { height: clamp(104px, 30vw, 163px); }
  .game-card { padding: 4px; border-radius: 17px; }
  .game-cover { border-radius: 12px; }
  .game-card-info { font-size: clamp(1.1rem, 6vw, 2rem); }
  .game-cover .cover-cloud { right: 5%; top: 39%; }
}

@media (max-width: 365px) {
  .header-inner { width: calc(100% - 18px); gap: 5px; }
  .brand-art { width: clamp(78px, 26vw, 93px); }
  .hero-nav { gap: 4px; }
  .nav-link { gap: 5px; padding-inline: 7px; font-size: .91rem; }
  .sound-button, .settings-menu summary { width: 35px; }
  .avatar-badge { width: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-response { transform: none; }
  .brand-shine { display: none; }
  .brand-float { animation: none; opacity: .65; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .star-burst, .heart-burst { animation: spark-fade .28s linear both !important; }
  .star-burst i, .heart-burst i {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(24px) rotate(calc(-1 * var(--angle)));
    animation: none;
  }
}

@keyframes spark-fade { from { opacity: 1; } to { opacity: 0; } }
