/* ─────────────────────────────────────────────
   tibies — smol stickers
   ───────────────────────────────────────────── */

@font-face {
  font-family: 'CHAOS16';
  src: url('fonts/CHAOS16.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OMORI_GAME2';
  src: url('fonts/OMORI_GAME2.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink-50: #fff5fa;
  --pink-100: #ffe4f1;
  --pink-200: #ffd0e6;
  --pink-300: #ffb3d6;
  --pink-400: #ff8cc2;
  --hot: #ff5daa;
  --hot-deep: #e93d8f;
  --berry: #5d2447;
  --berry-soft: #8a4a6e;
  --cream: #fffdf8;
  --mint: #a5e8cd;
  --butter: #ffdf8e;
  --sky: #aecbff;

  --font-title: 'CHAOS16', monospace;
  --font-body: 'OMORI_GAME2', sans-serif;
  --font-pixel: var(--font-title);

  --radius: 26px;
  --shadow-candy: 0 8px 0 rgba(233, 61, 143, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--berry);
  background-color: var(--pink-100);
  background-image:
    conic-gradient(var(--pink-200) 25%, transparent 0 50%, var(--pink-200) 0 75%, transparent 0);
  background-size: 56px 56px;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--hot);
  color: #fff;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

/* ─── nav ─── */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 26px;
  padding: 10px 14px 10px 22px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-candy);
  white-space: nowrap;
}

.nav__logo {
  font-family: var(--font-title);
  font-size: 3.45rem;
  color: var(--hot-deep);
  text-decoration: none;
  letter-spacing: 1px;
  -webkit-text-stroke: 1.5px #e93d8f;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.8);
}

.nav__links {
  display: flex;
  gap: 24px;
}

.nav__links a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--berry-soft);
  text-decoration: none;
  transition: color .2s, transform .2s;
}

.nav__links a:hover {
  color: var(--hot);
  transform: translateY(-2px) rotate(-2deg);
}

/* ─── buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  padding: 18px 40px;
  border-radius: 999px;
  border: 4px solid #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s;
}

.btn--primary {
  background: var(--hot);
  color: #fff;
  box-shadow: 0 8px 0 var(--hot-deep);
}

.btn--primary:hover {
  transform: translateY(-3px) rotate(-1.5deg);
  box-shadow: 0 12px 0 var(--hot-deep);
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--hot-deep);
}

.btn--mint {
  background: var(--cream);
  color: var(--berry-soft);
  box-shadow: 0 8px 0 var(--pink-300);
  cursor: help;
}

.btn--mint:hover {
  transform: translateY(-3px) rotate(1.5deg);
  box-shadow: 0 12px 0 var(--pink-300);
}

.btn--small {
  font-size: 1.55rem;
  padding: 12px 28px;
}

.soon-tag {
  font-family: var(--font-pixel);
  font-size: .9rem;
  background: var(--butter);
  color: var(--berry);
  padding: 5px 12px 4px;
  border-radius: 10px;
  transform: rotate(4deg);
}

/* ─── profile button ─── */

.profile-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  font-size: 2.8rem;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-candy);
  text-decoration: none;
  overflow: hidden;
  padding: 0;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s;
}

.profile-btn__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-btn:hover {
  transform: translateY(-4px) rotate(-5deg);
  box-shadow: 0 14px 0 rgba(233, 61, 143, 0.16);
}

/* ─── hero ─── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 90px;
}

.hero__inner {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  color: var(--hot-deep);
  background: #fff;
  border: 3px solid var(--pink-200);
  padding: 11px 24px 9px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 26px;
  box-shadow: var(--shadow-candy);
}

.hero__title {
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: clamp(7.2rem, 24vw, 17.2rem);
  line-height: .95;
  color: var(--hot);
  text-shadow:
    -9px 0 0 #fff, 9px 0 0 #fff, 0 -9px 0 #fff, 0 9px 0 #fff,
    -9px -9px 0 #fff, 9px 9px 0 #fff, -9px 9px 0 #fff, 9px -9px 0 #fff,
    14px 18px 0 rgba(233, 61, 143, 0.22);
  animation: title-bob 5s ease-in-out infinite;
}

@keyframes title-bob {

  0%,
  100% {
    transform: rotate(-1.2deg) translateY(0);
  }

  50% {
    transform: rotate(1.2deg) translateY(-8px);
  }
}

.hero__tagline {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--berry-soft);
  margin: 28px 0 38px;
}

.hero__cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 18px;
  justify-content: center;
  list-style: none;
  margin-top: 50px;
  flex-wrap: wrap;
}

.hero__stats li {
  background: #fff;
  border: 3.5px solid var(--pink-200);
  border-radius: 24px;
  padding: 16px 28px;
  box-shadow: var(--shadow-candy);
  min-width: 140px;
}

.hero__stats li:nth-child(1) {
  transform: rotate(-2deg);
}

.hero__stats li:nth-child(2) {
  transform: rotate(1.5deg);
}

.hero__stats li:nth-child(3) {
  transform: rotate(-1deg);
}

.hero__stats b {
  display: block;
  font-family: var(--font-pixel);
  font-size: 2.3rem;
  color: var(--hot);
}

.hero__stats span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--berry-soft);
}

/* floating tibies */

.hero__floater {
  position: absolute;
  width: clamp(120px, 16vw, 220px);
  border-radius: 30px;
  border: 5px solid #fff;
  box-shadow: 0 14px 34px rgba(233, 61, 143, 0.22);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero__floater--1 {
  top: 16%;
  left: 5%;
  transform: rotate(-8deg);
  animation-delay: 0s;
}

.hero__floater--2 {
  bottom: 12%;
  left: 10%;
  transform: rotate(6deg);
  animation-delay: -1.6s;
}

.hero__floater--3 {
  top: 14%;
  right: 6%;
  transform: rotate(7deg);
  animation-delay: -3.1s;
}

.hero__floater--4 {
  bottom: 14%;
  right: 9%;
  transform: rotate(-6deg);
  animation-delay: -4.5s;
}

@keyframes float {

  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -18px;
  }
}

/* clouds */

.cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 999px;
  opacity: 0.65;
  filter: blur(2px);
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
}

.cloud--1 {
  width: 220px;
  height: 60px;
  top: 12%;
  left: 0;
  animation: drift 36s linear infinite;
  animation-delay: 0s;
}

.cloud--2 {
  width: 160px;
  height: 46px;
  top: 68%;
  left: 0;
  animation: drift 48s linear infinite;
  animation-delay: -18s;
}

.cloud--3 {
  width: 200px;
  height: 54px;
  top: 40%;
  left: 0;
  animation: drift 42s linear infinite;
  animation-delay: -28s;
}

.cloud--1::before {
  width: 80px;
  height: 80px;
  top: -34px;
  left: 36px;
}

.cloud--1::after {
  width: 60px;
  height: 60px;
  top: -22px;
  right: 44px;
}

.cloud--2::before {
  width: 60px;
  height: 60px;
  top: -26px;
  left: 28px;
}

.cloud--2::after {
  width: 44px;
  height: 44px;
  top: -16px;
  right: 34px;
}

.cloud--3::before {
  width: 70px;
  height: 70px;
  top: -30px;
  left: 34px;
}

.cloud--3::after {
  width: 52px;
  height: 52px;
  top: -20px;
  right: 40px;
}

@keyframes drift {
  0% {
    transform: translateX(-320px);
  }

  100% {
    transform: translateX(calc(100vw + 320px));
  }
}

.arrow-char {
  display: inline-block;
  transform: translateY(4px);
}

/* pixel hearts (pure CSS, box-shadow pixel art) */

.pixel-heart {
  --px: 7px;
  position: absolute;
  width: var(--px);
  height: var(--px);
  background: transparent;
  z-index: 1;
  box-shadow:
    calc(var(--px)*1) 0 var(--hot), calc(var(--px)*2) 0 var(--hot),
    calc(var(--px)*4) 0 var(--hot), calc(var(--px)*5) 0 var(--hot),
    0 var(--px) var(--hot), calc(var(--px)*1) var(--px) var(--hot), calc(var(--px)*2) var(--px) var(--hot),
    calc(var(--px)*3) var(--px) var(--hot), calc(var(--px)*4) var(--px) var(--hot),
    calc(var(--px)*5) var(--px) var(--hot), calc(var(--px)*6) var(--px) var(--hot),
    0 calc(var(--px)*2) var(--hot), calc(var(--px)*1) calc(var(--px)*2) var(--hot),
    calc(var(--px)*2) calc(var(--px)*2) var(--hot), calc(var(--px)*3) calc(var(--px)*2) var(--hot),
    calc(var(--px)*4) calc(var(--px)*2) var(--hot), calc(var(--px)*5) calc(var(--px)*2) var(--hot),
    calc(var(--px)*6) calc(var(--px)*2) var(--hot),
    calc(var(--px)*1) calc(var(--px)*3) var(--hot), calc(var(--px)*2) calc(var(--px)*3) var(--hot),
    calc(var(--px)*3) calc(var(--px)*3) var(--hot), calc(var(--px)*4) calc(var(--px)*3) var(--hot),
    calc(var(--px)*5) calc(var(--px)*3) var(--hot),
    calc(var(--px)*2) calc(var(--px)*4) var(--hot), calc(var(--px)*3) calc(var(--px)*4) var(--hot),
    calc(var(--px)*4) calc(var(--px)*4) var(--hot),
    calc(var(--px)*3) calc(var(--px)*5) var(--hot);
  animation: heart-float 7s ease-in-out infinite;
  opacity: .8;
}

.pixel-heart--1 {
  top: 22%;
  left: 3%;
  scale: .8;
  animation-delay: 0s;
}

.pixel-heart--2 {
  top: 65%;
  right: 3%;
  scale: 1.1;
  animation-delay: -2.3s;
}

.pixel-heart--3 {
  top: 18%;
  right: 4%;
  scale: .7;
  animation-delay: -4.6s;
}

.pixel-heart--4 {
  top: 75%;
  left: 4%;
  scale: .9;
  animation-delay: -3.2s;
}

@keyframes heart-float {

  0%,
  100% {
    translate: 0 0;
    rotate: -6deg;
  }

  50% {
    translate: 0 -26px;
    rotate: 6deg;
  }
}

/* floating pixel sparkles */
.pixel-sparkle {
  --px: 5px;
  position: absolute;
  width: var(--px);
  height: var(--px);
  background: #ffffff;
  z-index: 1;
  box-shadow:
    0 calc(var(--px) * -2) #ffffff,
    0 calc(var(--px) * -1) #ffffff,
    0 calc(var(--px) * 1) #ffffff,
    0 calc(var(--px) * 2) #ffffff,
    calc(var(--px) * -2) 0 #ffffff,
    calc(var(--px) * -1) 0 #ffffff,
    calc(var(--px) * 1) 0 #ffffff,
    calc(var(--px) * 2) 0 #ffffff;
  animation: sparkle-float 6s ease-in-out infinite;
  opacity: .9;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
}

.pixel-sparkle--1 {
  top: 12%;
  left: 3%;
  scale: 1.2;
  animation-delay: 0s;
}

.pixel-sparkle--2 {
  top: 52%;
  right: 3%;
  scale: 1.4;
  animation-delay: -2s;
}

.pixel-sparkle--3 {
  top: 15%;
  right: 5%;
  scale: 1.0;
  animation-delay: -4s;
}

.pixel-sparkle--4 {
  top: 82%;
  left: 4%;
  scale: 1.1;
  animation-delay: -1.5s;
}

.pixel-sparkle--5 {
  top: 38%;
  left: 2%;
  scale: 0.9;
  animation-delay: -3.2s;
}

.pixel-sparkle--6 {
  top: 86%;
  right: 4%;
  scale: 1.3;
  animation-delay: -0.8s;
}

.pixel-sparkle--7 {
  top: 40%;
  right: 2%;
  scale: 1.1;
  animation-delay: -5.1s;
}

.pixel-sparkle--8 {
  top: 92%;
  left: 5%;
  scale: 1.0;
  animation-delay: -2.7s;
}

@keyframes sparkle-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-22px) rotate(15deg) scale(1.25);
    opacity: 1;
  }
}

.hero__fade {
  position: absolute;
  bottom: -30px;
  left: -10%;
  width: 120%;
  height: 180px;
  background: linear-gradient(to bottom, rgba(255, 245, 250, 0) 0%, var(--pink-100) 100%);
  transform: rotate(-1deg);
  transform-origin: center center;
  z-index: 3;
  pointer-events: none;
}

/* ─── marquee ─── */

.marquee {
  background: var(--hot);
  border-top: 4px solid #fff;
  border-bottom: 4px solid #fff;
  overflow: hidden;
  padding: 14px 0 10px;
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 0 8px 24px rgba(233, 61, 143, 0.25);
  position: relative;
  z-index: 6;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee__track span {
  font-family: var(--font-body);
  font-size: 1.8rem;
  color: #fff;
  white-space: nowrap;
  text-shadow: 2px 2px 0 rgba(93, 36, 71, 0.25);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ─── doors ─── */

.doors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 42px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.door-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
  border: none;
  border-radius: 80px 80px 20px 20px;
  padding: 28px 16px;
  min-height: 280px;
  box-shadow: 0 10px 24px rgba(233, 61, 143, 0.12);
  text-decoration: none;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
  position: relative;
}

.door-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.door-card__icon {
  font-family: var(--font-body);
  font-size: 4.2rem;
  color: var(--hot-deep);
  line-height: 1;
  margin-top: auto;
  margin-bottom: auto;
}

.door-card__label {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--hot-deep);
  text-align: center;
}

.door-card__status {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 5px 16px;
  border-radius: 999px;
  border: 2px solid var(--pink-200);
  color: var(--berry-soft);
  background: var(--pink-50);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Open door: pure white glowing aura & pulse animation */
.door-card.is-open {
  background: #ffffff;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.95), 0 0 70px rgba(255, 255, 255, 0.7), 0 12px 28px rgba(233, 61, 143, 0.15);
  animation: door-white-glow 3s ease-in-out infinite alternate;
}

.door-card.is-open:hover {
  box-shadow: 0 0 50px rgba(255, 255, 255, 1), 0 0 95px rgba(255, 255, 255, 0.85), 0 16px 32px rgba(233, 61, 143, 0.2);
}

@keyframes door-white-glow {
  0% {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.85), 0 0 55px rgba(255, 255, 255, 0.6), 0 10px 24px rgba(233, 61, 143, 0.12);
  }

  100% {
    box-shadow: 0 0 45px rgba(255, 255, 255, 1), 0 0 85px rgba(255, 255, 255, 0.8), 0 14px 30px rgba(233, 61, 143, 0.18);
  }
}

.door-card.is-open .door-card__status {
  background: var(--mint);
  border-color: #6dd4a8;
  color: #1b7a4b;
  font-weight: bold;
}

.door-card.is-locked {
  filter: grayscale(0.2);
  opacity: 0.75;
  border: none;
  background: #f8eef4;
}

.door-card.is-locked:hover {
  transform: translateY(-4px);
  filter: grayscale(0);
  opacity: 0.9;
}

.door-card.is-locked .door-card__status {
  background: var(--pink-100);
  color: var(--berry-soft);
}

@media (max-width: 700px) {
  .doors__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* ─── sections ─── */

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 110px 28px;
}

.section__title {
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: clamp(3.0rem, 7vw, 4.5rem);
  color: var(--berry);
  margin-bottom: 28px;
  text-shadow: 4px 4px 0 var(--pink-200);
}

.section__title--center {
  text-align: center;
}

.section__sub {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  color: var(--berry-soft);
  margin-bottom: 54px;
}

/* ─── about ─── */

.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
}

.about__text p {
  margin-bottom: 22px;
  font-size: 1.65rem;
  line-height: 1.6;
}

.about__text em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--hot);
}

.dream-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--cream);
  border: 4px solid #fff;
  outline: 3px dashed var(--pink-300);
  outline-offset: -12px;
  border-radius: var(--radius);
  padding: 30px 30px 30px 26px;
  margin-top: 36px;
  box-shadow: var(--shadow-candy);
  transform: rotate(-.8deg);
}

.dream-card__icon {
  font-size: 2.8rem;
  line-height: 1;
  background: var(--sky);
  border-radius: 18px;
  padding: 12px 16px;
  transform: rotate(-6deg);
}

.dream-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--hot-deep);
  margin-bottom: 8px;
}

.dream-card p {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
}

.about__collage {
  position: relative;
  min-height: 460px;
}

.about__img {
  position: absolute;
  width: 62%;
  border-radius: 30px;
  border: 6px solid #fff;
  box-shadow: 0 16px 36px rgba(233, 61, 143, 0.22);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.about__img--1 {
  top: 0;
  left: 0;
  transform: rotate(-7deg);
  z-index: 1;
}

.about__img--2 {
  top: 26%;
  right: 0;
  transform: rotate(5deg);
  z-index: 2;
}

.about__img--3 {
  bottom: 0;
  left: 8%;
  transform: rotate(-3deg);
  z-index: 3;
}

.about__img:hover {
  transform: rotate(0deg) scale(1.06);
  z-index: 5;
}

.about__spark {
  position: absolute;
  font-size: 1.6rem;
  color: var(--hot);
  animation: spark-pop 3s ease-in-out infinite;
}

.about__spark--1 {
  top: -4%;
  right: 18%;
  animation-delay: 0s;
}

.about__spark--2 {
  bottom: 8%;
  right: -2%;
  animation-delay: -1s;
  color: var(--hot-deep);
}

.about__spark--3 {
  top: 48%;
  left: -6%;
  animation-delay: -2s;
}

@keyframes spark-pop {

  0%,
  100% {
    transform: scale(.7) rotate(-10deg);
    opacity: .5;
  }

  50% {
    transform: scale(1.2) rotate(10deg);
    opacity: 1;
  }
}

/* ─── pixel divider ─── */

.pixel-divider {
  height: 18px;
  background-image: conic-gradient(var(--pink-300) 25%, transparent 0 50%, var(--pink-300) 0 75%, transparent 0);
  background-size: 18px 18px;
  opacity: .55;
}

/* ─── gallery carousel ─── */

.carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.carousel+.carousel {
  margin-top: 8px;
}

.carousel__track {
  display: flex;
  width: max-content;
}

.carousel__track.is-ready {
  animation: carousel-left 44s linear infinite;
}

.carousel--right .carousel__track.is-ready {
  animation: carousel-right 50s linear infinite;
}

.carousel:hover .carousel__track,
.carousel:focus-within .carousel__track {
  animation-play-state: paused;
}

@keyframes carousel-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes carousel-right {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.card {
  flex: 0 0 auto;
  width: 250px;
  margin-right: 30px;
  background: var(--cream);
  border: 4px solid #fff;
  border-radius: var(--radius);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-candy);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  position: relative;
}

.card:nth-child(odd) {
  transform: rotate(-1.3deg);
}

.card:nth-child(even) {
  transform: rotate(1.3deg);
}

.card:nth-child(3n) {
  transform: rotate(-.6deg);
}

.card:hover,
.card:focus-visible {
  transform: rotate(0deg) translateY(-10px) scale(1.04);
  box-shadow: 0 16px 0 rgba(233, 61, 143, 0.16);
  z-index: 4;
  outline: none;
}

.card:focus-visible {
  border-color: var(--hot);
}

.card img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.card figcaption {
  padding: 14px 6px 0;
  text-align: center;
}

.card figcaption b {
  display: block;
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 1.6rem;
  color: var(--hot-deep);
  margin-bottom: 4px;
}

.card figcaption span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--berry-soft);
  opacity: .9;
}

.card.wiggle {
  animation: wiggle .5s ease-in-out;
}

@keyframes wiggle {

  0%,
  100% {
    rotate: 0deg;
  }

  25% {
    rotate: -4deg;
    scale: 1.05;
  }

  75% {
    rotate: 4deg;
    scale: 1.05;
  }
}

/* burst hearts on click */

.burst {
  position: absolute;
  font-size: 1.2rem;
  pointer-events: none;
  animation: burst-up 1s ease-out forwards;
  z-index: 20;
}

@keyframes burst-up {
  0% {
    transform: translate(0, 0) scale(.6) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx, 0), -90px) scale(1.25) rotate(var(--dr, 20deg));
    opacity: 0;
  }
}

/* ─── soon ─── */

.soon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 48px;
}

.soon-card {
  background: var(--cream);
  border: 4px solid #fff;
  border-radius: var(--radius);
  padding: 38px 30px 34px;
  box-shadow: var(--shadow-candy);
  position: relative;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.soon-card:nth-child(1) {
  transform: rotate(-1.2deg);
}

.soon-card:nth-child(2) {
  transform: rotate(.9deg);
}

.soon-card:nth-child(3) {
  transform: rotate(-.7deg);
}

.soon-card:hover {
  transform: rotate(0) translateY(-8px);
}

.soon-card__tag {
  position: absolute;
  top: -16px;
  right: 22px;
  font-family: var(--font-pixel);
  font-size: 1.35rem;
  background: var(--butter);
  border: 3.5px solid #fff;
  color: var(--berry);
  padding: 8px 16px 6px;
  border-radius: 12px;
  transform: rotate(3deg);
  box-shadow: 0 4px 0 rgba(233, 61, 143, 0.12);
}

.soon-card:nth-child(2) .soon-card__tag {
  background: var(--mint);
}

.soon-card:nth-child(3) .soon-card__tag {
  background: var(--sky);
}

.soon-card h3 {
  font-family: var(--font-pixel);
  font-weight: normal;
  font-size: 1.85rem;
  color: var(--hot-deep);
  margin-bottom: 14px;
}

.soon-card p {
  font-size: 1.45rem;
  line-height: 1.5;
}

/* ─── footer ─── */

.footer {
  text-align: center;
  padding: 90px 24px 50px;
  background: linear-gradient(var(--pink-100), var(--pink-200));
  position: relative;
  overflow: hidden;
}

.footer .pixel-heart,
.footer .pixel-sparkle {
  z-index: 1;
}

.footer__inner {
  position: relative;
  z-index: 2;
}

.footer-heart--1  { top: 18%; left: 5%;  scale: .9;  animation-delay: 0s; }
.footer-heart--2  { top: 58%; left: 14%; scale: 1.2; animation-delay: -1.5s; }
.footer-heart--3  { top: 28%; left: 26%; scale: .7;  animation-delay: -3s; }
.footer-heart--4  { top: 72%; left: 35%; scale: 1.0; animation-delay: -4.5s; }
.footer-heart--5  { top: 16%; left: 48%; scale: .85; animation-delay: -2s; }
.footer-heart--6  { top: 68%; right: 38%; scale: 1.15; animation-delay: -5s; }
.footer-heart--7  { top: 24%; right: 25%; scale: .9;  animation-delay: -1s; }
.footer-heart--8  { top: 74%; right: 16%; scale: 1.3; animation-delay: -3.5s; }
.footer-heart--9  { top: 20%; right: 7%;  scale: .8;  animation-delay: -2.5s; }
.footer-heart--10 { top: 64%; right: 3%;  scale: 1.0; animation-delay: -4s; }

.footer-sparkle--1 { top: 12%; left: 9%;  scale: 1.1; animation-delay: -0.5s; }
.footer-sparkle--2 { top: 76%; left: 20%; scale: 1.3; animation-delay: -2.2s; }
.footer-sparkle--3 { top: 40%; left: 38%; scale: 0.9; animation-delay: -3.8s; }
.footer-sparkle--4 { top: 14%; left: 62%; scale: 1.2; animation-delay: -1.8s; }
.footer-sparkle--5 { top: 78%; right: 28%; scale: 1.0; animation-delay: -4.2s; }
.footer-sparkle--6 { top: 32%; right: 12%; scale: 1.4; animation-delay: -1.1s; }
.footer-sparkle--7 { top: 82%; right: 6%;  scale: 1.1; animation-delay: -3.1s; }
.footer-sparkle--8 { top: 22%; left: 30%; scale: 1.0; animation-delay: -5.0s; }

.footer__logo {
  font-family: var(--font-pixel);
  font-size: 5.7rem;
  color: var(--hot);
  text-shadow:
    -4px 0 0 #fff, 4px 0 0 #fff, 0 -4px 0 #fff, 0 4px 0 #fff,
    -4px -4px 0 #fff, 4px 4px 0 #fff, -4px 4px 0 #fff, 4px -4px 0 #fff;
  margin-bottom: 12px;
}

.footer__love {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--berry-soft);
  margin-bottom: 30px;
}

.footer__socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.pill {
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  color: var(--berry);
  background: var(--cream);
  border: 3.5px solid #fff;
  padding: 14px 28px 12px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(233, 61, 143, 0.14);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), background .2s, color .2s;
}

.pill:hover {
  background: var(--hot);
  color: #fff;
  transform: translateY(-3px) rotate(-2deg);
}

.footer__tiny {
  font-size: 1.35rem;
  color: var(--berry-soft);
  opacity: .85;
}

/* ─── reveal on scroll ─── */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── cursor sparkles ─── */

.sparkle {
  position: fixed;
  pointer-events: none;
  font-size: .9rem;
  color: var(--hot);
  z-index: 99;
  animation: sparkle-fade .8s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: .9;
  }

  100% {
    transform: translate(-50%, -50%) scale(.2) rotate(60deg) translateY(18px);
    opacity: 0;
  }
}

/* ─── responsive ─── */

@media (max-width: 960px) {
  .about {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about__collage {
    min-height: 400px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .card {
    width: 200px;
    margin-right: 22px;
  }

  .soon__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .hero__floater--2,
  .hero__floater--3 {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 14px;
    padding: 8px 10px 8px 16px;
  }

  .nav__links {
    display: none;
  }

  .card {
    width: 164px;
    margin-right: 16px;
    padding: 8px 8px 12px;
  }

  .card figcaption b {
    font-size: .9rem;
  }

  .card figcaption span {
    font-size: .72rem;
  }

  .section {
    padding: 80px 20px;
  }

  .hero__floater {
    width: 110px;
    opacity: .9;
  }

  .hero__floater--1 {
    top: 9%;
    left: -6%;
  }

  .hero__floater--4 {
    bottom: 6%;
    right: -6%;
  }

  .hero__stats li {
    min-width: 92px;
    padding: 10px 14px;
  }
}

/* ─── reduced motion ─── */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ─── Profile Page & EVM Wallet Styles ─── */

.hidden {
  display: none !important;
}

.nav--static {
  display: flex !important;
  position: relative;
  top: 0;
  transform: none;
  left: 0;
  margin: 20px auto 40px;
  width: max-content;
  max-width: 90vw;
}

.wallet-pill {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--pink-100);
  color: var(--berry-soft);
  border: 2px solid var(--pink-300);
  box-shadow: 0 4px 10px rgba(233, 61, 143, 0.1);
  transition: all .3s ease;
}

.wallet-pill.is-connected {
  background: #d4f8e8;
  color: #1b7a4b;
  border-color: #72e0aa;
}

.profile-page {
  position: relative;
  min-height: 80vh;
  padding: 20px 20px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.profile-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.profile-header {
  text-align: center;
}

.profile-header__title {
  font-family: var(--font-pixel);
  font-size: clamp(4.8rem, 12vw, 7.2rem);
  color: var(--hot);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-shadow:
    -5px 0 0 #fff, 5px 0 0 #fff, 0 -5px 0 #fff, 0 5px 0 #fff,
    -5px -5px 0 #fff, 5px 5px 0 #fff, -5px 5px 0 #fff, 5px -5px 0 #fff,
    8px 10px 0 rgba(233, 61, 143, 0.18);
}

.profile-header__sub {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--berry-soft);
}

/* Wallet Card */
.wallet-card {
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 4px solid #fff;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(233, 61, 143, 0.15);
  overflow: hidden;
  padding: 28px 36px;
}

.wallet-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 2px dashed var(--pink-200);
  margin-bottom: 28px;
}

.wallet-status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
}

.status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--hot-deep);
  box-shadow: 0 0 0 4px rgba(233, 61, 143, 0.2);
  transition: background .3s, box-shadow .3s;
}

.status-dot.is-connected {
  background: #20c997;
  box-shadow: 0 0 0 4px rgba(32, 201, 151, 0.25);
}

.network-badge {
  font-family: var(--font-pixel);
  font-size: 1.55rem;
  background: var(--butter);
  color: var(--berry);
  padding: 6px 18px;
  border-radius: 14px;
  border: 2.5px solid #fff;
}

/* Wallet Views */
.wallet-view--disconnected {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
}

.wallet-icon-big {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.wallet-view--disconnected h2 {
  font-family: var(--font-pixel);
  font-size: 2.9rem;
  color: var(--hot);
  margin-bottom: 14px;
}

.wallet-view--disconnected p {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--berry-soft);
  max-width: 620px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

.btn--large {
  font-size: 2.1rem;
  padding: 22px 54px;
}

.wallet-error {
  margin-top: 20px !important;
  color: #e03131 !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

/* Wallet Connected Layout */
.wallet-details-single {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wallet-details-single .detail-box {
  flex: 1;
  min-width: 280px;
}

.detail-box {
  background: var(--pink-50);
  border: 3px solid var(--pink-200);
  border-radius: 20px;
  padding: 22px 28px;
}

.detail-box__label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.45rem;
  color: var(--berry-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: .5px;
}

.address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.address-text {
  font-family: var(--font-pixel);
  font-size: 2.1rem;
  color: var(--berry);
}

.btn-icon {
  background: #fff;
  border: 3px solid var(--pink-300);
  border-radius: 14px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 1.75rem;
  transition: transform .15s, background .15s;
}

.btn-icon:hover {
  transform: scale(1.1);
  background: var(--pink-100);
}

/* Vault / Inventory Section */
.vault-section {
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(8px);
  border: 4px solid #fff;
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-candy);
}

.vault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.vault-header h2 {
  font-family: var(--font-pixel);
  font-size: 2.9rem;
  color: var(--hot);
}

.vault-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--berry-soft);
  background: var(--pink-100);
  padding: 8px 24px;
  border-radius: 999px;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  min-height: 180px;
}

.vault-card {
  width: 100% !important;
  margin-right: 0 !important;
}

.vault-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--berry-soft);
}

.vault-empty__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: .8;
}

.vault-empty h3 {
  font-family: var(--font-pixel);
  font-size: 1.3rem;
  color: var(--berry);
  margin-bottom: 6px;
}

.vault-empty p {
  font-size: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--berry);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .3s, transform .3s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ─── 4 Horizontal WL Tier Panels ─── */
.wl-panels-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wl-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  border-radius: 24px;
  padding: 20px 26px;
  box-shadow: 0 8px 24px rgba(233, 61, 143, 0.08);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}

.wl-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(233, 61, 143, 0.16);
}

/* Gem Container */
.wl-panel__gem {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 240, 246, 0.5));
  border: 2px solid var(--pink-200);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.8);
}

.wl-panel__gem-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  transition: transform .3s ease;
}

.wl-panel:hover .wl-panel__gem-img {
  transform: scale(1.1) rotate(4deg);
}

.wl-panel__gem-tag {
  position: absolute;
  bottom: -8px;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--berry);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

/* Info Side */
.wl-panel__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wl-panel__title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wl-panel.is-locked {
  filter: grayscale(1);
  opacity: 0.72;
  background: rgba(248, 250, 252, 0.85);
  border-color: #cbd5e1 !important;
  box-shadow: none !important;
}

.wl-panel.is-unlocked {
  filter: none;
  opacity: 1;
}

.wl-panel__title {
  font-family: var(--font-pixel);
  font-size: 3.2rem;
  color: var(--hot-deep);
  margin: 0;
}

.wl-panel__gem-tag {
  position: absolute;
  bottom: -12px;
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  padding: 4px 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--berry);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.wl-panel__gem--empty {
  background: rgba(241, 245, 249, 0.6) !important;
  border: 3px dashed #cbd5e1 !important;
  box-shadow: none !important;
}

.wl-gem-socket {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0.45;
}

.wl-gem-socket__icon {
  font-size: 3.2rem;
  filter: grayscale(1);
}

.wl-gem-socket__label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.wl-panel__specs {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.wl-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-spec-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--berry-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wl-spec-value {
  font-family: var(--font-pixel);
  font-size: 1.85rem;
  color: var(--berry);
}

.wl-perks-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wl-perk-pill {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--berry);
  background: var(--pink-100);
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid var(--pink-200);
}

/* Tier Specific Color Themes */
/* Tier 0 — Yellow Vibe */
.wl-panel--tier0 {
  border-color: #fef08a;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(254, 240, 138, 0.35));
}

.wl-panel--tier0 .wl-panel__gem {
  background: linear-gradient(135deg, #fffbeb, #fef08a);
  border-color: #facc15;
}

.wl-panel--tier0 .wl-panel__title {
  color: #b45309;
}

/* Tier 1 — Pink Vibe */
.wl-panel--tier1 {
  border-color: #fbcfe8;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 207, 232, 0.35));
}

.wl-panel--tier1 .wl-panel__gem {
  background: linear-gradient(135deg, #fff0f6, #fce7f3);
  border-color: #f472b6;
}

.wl-panel--tier1 .wl-panel__title {
  color: #be185d;
}

/* Tier 2 — Green Vibe */
.wl-panel--tier2 {
  border-color: #bbf7d0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(187, 247, 208, 0.35));
}

.wl-panel--tier2 .wl-panel__gem {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #4ade80;
}

.wl-panel--tier2 .wl-panel__title {
  color: #15803d;
}

/* Tier 3 — Blue Vibe */
.wl-panel--tier3 {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(191, 219, 254, 0.35));
}

.wl-panel--tier3 .wl-panel__gem {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #60a5fa;
}

.wl-panel--tier3 .wl-panel__title {
  color: #1d4ed8;
}

/* Mobile Responsiveness for Panels */
@media (max-width: 640px) {
  .wl-panel {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 20px;
  }

  .wl-panel__header {
    flex-direction: column;
    justify-content: center;
  }

  .wl-panel__specs {
    justify-content: center;
  }

  .wl-perks-row {
    justify-content: center;
  }
}

/* ─── snake game page ─── */

/* ─── snake game page ─── */

.snake-page {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--pink-100) 0%, var(--cream) 30%);
  padding-top: 10px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.snake-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.snake-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  color: var(--hot-deep);
  text-align: center;
  margin-top: 0;
  margin-bottom: 10px;
  text-shadow: 4px 4px 0 rgba(233, 61, 143, 0.15);
}

/* side-by-side layout: wide 572px field + longer 400px leaderboard, exact matching 572px heights */
.snake-layout {
  display: grid;
  grid-template-columns: 572px 400px;
  justify-content: center;
  gap: 32px;
  align-items: start;
}

.snake-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.snake-right {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* integrated scores inside leaderboard top header */
.snake-lb-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.snake-scores {
  display: flex;
  gap: 12px;
  width: 100%;
}

.snake-score-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--pink-50);
  border: 3px solid var(--pink-200);
  border-radius: 14px;
  padding: 8px 18px;
  flex: 1;
}

.snake-score-label {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--hot-deep);
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  -webkit-text-stroke: 0.5px var(--berry);
}

.snake-score-value {
  font-family: var(--font-body);
  font-size: 2.2rem;
  color: var(--hot-deep);
  font-weight: bold;
  line-height: 1;
}

/* wide game canvas window - exact 572px height & width */
.snake-canvas-wrap {
  position: relative;
  width: 572px;
  height: 572px;
  border: 6px solid var(--hot);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 0 rgba(233, 61, 143, 0.18), 0 0 45px rgba(255, 93, 170, 0.12);
  background: var(--cream);
}

.snake-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.snake-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 253, 248, 0.88);
  z-index: 2;
}

.snake-overlay__content {
  text-align: center;
}

.snake-overlay__title {
  font-family: var(--font-title);
  font-size: 4rem;
  color: var(--hot-deep);
  margin-bottom: 10px;
}

.snake-overlay__sub {
  font-family: var(--font-body);
  font-size: 1.7rem;
  color: var(--berry-soft);
}

.snake-hint {
  font-family: var(--font-body);
  font-size: 1.3rem;
  text-align: center;
  color: var(--berry-soft);
  margin-top: 14px;
  opacity: 0.9;
}

/* sleek longer leaderboard window - exact 572px height matching enlarged canvas window */

.snake-leaderboard {
  background: #fff;
  border: 5px solid var(--pink-200);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-candy);
  width: 400px;
  height: 572px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.snake-lb-title {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--hot-deep);
  text-align: center;
}

.snake-lb-table-wrap {
  overflow-x: auto;
  flex: 1;
}

.snake-lb-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 1.15rem;
}

.snake-lb-table th {
  text-align: left;
  padding: 4px 10px;
  border-bottom: 2px solid var(--pink-200);
  color: var(--hot-deep);
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
  -webkit-text-stroke: 0.5px var(--berry);
}

.snake-lb-table td {
  padding: 2px 10px;
  border-bottom: 1px solid var(--pink-100);
  color: var(--berry);
  line-height: 1.3;
}

.snake-lb-table tr.is-you td {
  background: var(--pink-50);
  color: var(--hot-deep);
  font-weight: bold;
}

.lb-you-tag {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--hot);
  color: #fff;
  padding: 0px 6px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

.snake-lb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.snake-lb-page {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--berry-soft);
}

.snake-lb-btn {
  font-family: var(--font-body);
  font-size: 1.3rem;
  padding: 8px 22px;
  border: 3px solid var(--pink-200);
  background: var(--pink-50);
  color: var(--berry-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}

.snake-lb-btn:hover:not(:disabled) {
  background: var(--hot);
  color: #fff;
  border-color: var(--hot-deep);
}

.snake-lb-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 820px) {
  .snake-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .snake-canvas-wrap {
    max-width: 400px;
    margin: 0 auto;
  }
}


@media (max-width: 480px) {
  .snake-canvas-wrap {
    border-width: 4px;
    border-radius: 14px;
  }

  .snake-scores {
    gap: 10px;
  }

  .snake-score-box {
    padding: 6px 12px;
  }
}