/* ==========================================================================
   Hornetsch — cozy art portfolio
   A single hand-written stylesheet. No build step, no minification.
   Contents:
     01. Theme tokens
     02. Base & resets
     03. Background scenery (blobs, grain, honeycomb, stars, stickers)
     04. Preloader, scroll progress, custom cursor, toast
     05. Top bar & navigation
     06. Buttons, chips & shared bits
     07. Hero
     08. Marquee ribbon
     09. Section headers
     10. About
     11. Gallery
     12. Lightbox
     13. Minigame
     14. Commissions
     15. Contact
     16. Footer
     17. Motion preferences & responsive rules
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Theme tokens
   -------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --cream: #fff6ea;
  --cream-deep: #fdebd7;
  --blush: #ffe3ea;
  --peach: #ffcfa8;
  --honey: #ffc94d;
  --honey-deep: #f0a92f;
  --mint: #bfe6d4;
  --sage: #8fbfa6;
  --lavender: #d8cdf0;
  --sky: #bfe0f5;
  --plum: #4a3a5c;
  --plum-soft: #6d5b80;
  --plum-faint: rgba(74, 58, 92, 0.12);
  --rose: #ef7d9a;
  --rose-deep: #d95f80;

  --bg: var(--cream);
  --bg-alt: #fffaf3;
  --surface: #fffdf9;
  --surface-raised: #ffffff;
  --border: rgba(74, 58, 92, 0.14);
  --border-strong: rgba(74, 58, 92, 0.26);
  --text: var(--plum);
  --text-soft: var(--plum-soft);
  --text-faint: rgba(74, 58, 92, 0.6);

  --shadow-sm: 0 4px 0 rgba(74, 58, 92, 0.1), 0 8px 18px -10px rgba(74, 58, 92, 0.35);
  --shadow-md: 0 10px 0 -2px rgba(74, 58, 92, 0.08), 0 22px 40px -22px rgba(74, 58, 92, 0.5);
  --shadow-lg: 0 18px 0 -4px rgba(74, 58, 92, 0.08), 0 40px 70px -32px rgba(74, 58, 92, 0.55);
  --shadow-glow: 0 0 0 6px rgba(255, 201, 77, 0.28);

  --grad-warm: linear-gradient(135deg, #ffd9a8 0%, #ffb3c6 52%, #d8cdf0 100%);
  --grad-honey: linear-gradient(135deg, #ffe08a 0%, #ffb85c 100%);
  --grad-mint: linear-gradient(135deg, #d6f3e4 0%, #a9ddc9 100%);

  --font-display: "Baloo 2", "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Quicksand", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Press Start 2P", "Courier New", monospace;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --radius-blob: 46% 54% 58% 42% / 48% 45% 55% 52%;

  --shell: 1240px;
  --space: clamp(1rem, 2.4vw, 2rem);
}

html[data-theme="night"] {
  color-scheme: dark;

  --bg: #241f36;
  --bg-alt: #2c2544;
  --surface: #322a4e;
  --surface-raised: #3b3160;
  --border: rgba(255, 233, 205, 0.15);
  --border-strong: rgba(255, 233, 205, 0.32);
  --text: #fdeede;
  --text-soft: #d9c9e8;
  --text-faint: rgba(253, 238, 222, 0.68);

  --cream: #241f36;
  --cream-deep: #2c2544;

  --shadow-sm: 0 4px 0 rgba(14, 10, 24, 0.35), 0 10px 22px -12px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 10px 0 -2px rgba(14, 10, 24, 0.35), 0 24px 44px -24px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 18px 0 -4px rgba(14, 10, 24, 0.35), 0 44px 74px -34px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 6px rgba(255, 201, 77, 0.22);

  --grad-warm: linear-gradient(135deg, #4b3b6b 0%, #6b3f6a 50%, #2f3a63 100%);
}

/* --------------------------------------------------------------------------
   02. Base & resets
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration-color: rgba(239, 125, 154, 0.55);
  text-underline-offset: 0.22em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover {
  color: var(--rose-deep);
  text-decoration-color: var(--rose-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

kbd {
  font-family: var(--font-pixel);
  font-size: 0.62em;
  padding: 0.35em 0.5em;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 0 var(--border-strong);
  color: var(--text);
  white-space: nowrap;
}

::selection {
  background: var(--honey);
  color: #3a2c4a;
}

:focus-visible {
  outline: 3px dashed var(--rose);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

main {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   03. Background scenery
   -------------------------------------------------------------------------- */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-blob {
  position: absolute;
  border-radius: var(--radius-blob);
  filter: blur(50px);
  opacity: 0.62;
  animation: blob-drift 26s ease-in-out infinite alternate;
  transition: opacity 0.8s ease;
}

html[data-theme="night"] .bg-blob {
  opacity: 0.4;
  filter: blur(62px);
}

.bg-blob--one {
  width: 46vw;
  height: 42vw;
  top: -10vw;
  left: -8vw;
  background: radial-gradient(circle at 35% 35%, #ffd9b0, #ffc1d4 60%, transparent 72%);
}

.bg-blob--two {
  width: 40vw;
  height: 44vw;
  top: 12vh;
  right: -12vw;
  background: radial-gradient(circle at 60% 40%, #d9f0e6, #bfe0f5 65%, transparent 76%);
  animation-duration: 32s;
  animation-delay: -6s;
}

.bg-blob--three {
  width: 38vw;
  height: 36vw;
  top: 62vh;
  left: -6vw;
  background: radial-gradient(circle at 45% 55%, #e6dcff, #ffd7e6 62%, transparent 74%);
  animation-duration: 38s;
  animation-delay: -12s;
}

.bg-blob--four {
  width: 34vw;
  height: 34vw;
  bottom: -8vw;
  right: 6vw;
  background: radial-gradient(circle at 50% 50%, #ffe9b8, #ffd0a8 60%, transparent 72%);
  animation-duration: 29s;
  animation-delay: -3s;
}

@keyframes blob-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(3vw, 4vh, 0) scale(1.08) rotate(12deg);
  }
  100% {
    transform: translate3d(-2vw, -3vh, 0) scale(0.96) rotate(-8deg);
  }
}

.bg-grain {
  position: absolute;
  inset: -20%;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(74, 58, 92, 0.07) 1px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.2px);
  background-size: 26px 26px, 34px 34px;
  background-position: 0 0, 12px 16px;
}

html[data-theme="night"] .bg-grain {
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(255, 240, 220, 0.09) 1px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.2px);
}

.bg-honeycomb {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z' fill='none' stroke='%234a3a5c' stroke-width='1.6'/%3E%3Cpath d='M28 48l24 14v28L28 104 4 90V62z' fill='none' stroke='%234a3a5c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 112px 192px;
  mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 70% 20%, #000 0%, transparent 62%);
}

html[data-theme="night"] .bg-honeycomb {
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0l24 14v28L28 56 4 42V14z' fill='none' stroke='%23ffe0b8' stroke-width='1.6'/%3E%3Cpath d='M28 48l24 14v28L28 104 4 90V62z' fill='none' stroke='%23ffe0b8' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 112px 192px;
  mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000 0%, transparent 70%);
}

.bg-stars,
.bg-fireflies,
.bg-stickers {
  position: absolute;
  inset: 0;
}

.bg-stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff4d8;
  box-shadow: 0 0 8px 2px rgba(255, 240, 200, 0.6);
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}

html[data-theme="night"] .bg-stars span {
  opacity: 1;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.bg-fireflies {
  opacity: 0;
  transition: opacity 0.8s ease;
}

html[data-theme="night"] .bg-fireflies {
  opacity: 1;
}

.bg-fireflies span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6c9, rgba(255, 214, 120, 0.2) 70%, transparent);
  animation: firefly 14s ease-in-out infinite;
}

@keyframes firefly {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.25;
  }
  25% {
    opacity: 0.95;
  }
  50% {
    transform: translate3d(4vw, -6vh, 0);
    opacity: 0.4;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(-3vw, 3vh, 0);
    opacity: 0.25;
  }
}

.bg-stickers span {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--size, 42px);
  height: var(--size, 42px);
  color: var(--plum);
  opacity: 0.22;
  animation: sticker-float 16s ease-in-out infinite;
}

html[data-theme="night"] .bg-stickers span {
  color: #ffe4bd;
  opacity: 0.3;
}

.bg-stickers svg {
  width: 100%;
  height: 100%;
}

@keyframes sticker-float {
  0% {
    transform: translateY(0) rotate(-6deg);
  }
  50% {
    transform: translateY(-26px) rotate(8deg);
  }
  100% {
    transform: translateY(0) rotate(-6deg);
  }
}

/* --------------------------------------------------------------------------
   04. Preloader, scroll progress, cursor, toast
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: var(--cream);
  background-image: var(--grad-warm);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

html[data-theme="night"] .preloader {
  background-image: linear-gradient(135deg, #2b2340, #3a2b4d 50%, #241f36);
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__scene {
  text-align: center;
}

.preloader__hornet {
  width: 96px;
  margin: 0 auto;
  animation: hornet-bob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 12px rgba(74, 58, 92, 0.28));
}

@keyframes hornet-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-14px) rotate(5deg);
  }
}

.preloader__trail {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.preloader__trail span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--honey);
  animation: trail-pulse 1.1s ease-in-out infinite;
}

.preloader__trail span:nth-child(2) {
  animation-delay: 0.15s;
  background: var(--rose);
}

.preloader__trail span:nth-child(3) {
  animation-delay: 0.3s;
  background: var(--lavender);
}

@keyframes trail-pulse {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.preloader__text {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #4a3a5c;
}

html[data-theme="night"] .preloader__text {
  color: #fdeede;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 800;
  background: rgba(74, 58, 92, 0.08);
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 0 6px 6px 0;
  background: var(--grad-honey);
  box-shadow: 0 0 12px rgba(255, 201, 77, 0.8);
  transition: width 0.1s linear;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.has-custom-cursor .cursor {
  opacity: 1;
}

.cursor__ring,
.cursor__dot {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor__ring {
  width: 38px;
  height: 38px;
  border: 2.5px dashed rgba(74, 58, 92, 0.55);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

html[data-theme="night"] .cursor__ring {
  border-color: rgba(255, 228, 189, 0.6);
}

.cursor__dot {
  width: 7px;
  height: 7px;
  background: var(--rose);
}

.cursor.is-hot .cursor__ring {
  width: 62px;
  height: 62px;
  border-style: solid;
  border-color: var(--honey);
  background: rgba(255, 201, 77, 0.14);
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 9400;
  pointer-events: none;
}

.cursor-trail i {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--honey);
  opacity: 0.85;
  animation: sparkle-fade 0.8s ease-out forwards;
}

@keyframes sparkle-fade {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.1) translateY(14px);
    opacity: 0;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 9600;
  padding: 0.75em 1.4em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #3f3050;
  background: #fff8ee;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 140%) scale(0.9);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.5, 1), opacity 0.4s ease;
  pointer-events: none;
  max-width: min(90vw, 460px);
  text-align: center;
}

html[data-theme="night"] .toast {
  background: #3b3160;
  color: #fdeede;
}

.toast.is-visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.magnet-cursor {
  position: fixed;
  z-index: 9300;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.magnet-cursor.is-visible {
  opacity: 0.85;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   05. Top bar & navigation
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 700;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(0.8rem, 2.5vw, 2rem);
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 2px solid transparent;
  transition: padding 0.35s ease, background-color 0.5s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

html[data-theme="night"] .topbar {
  background: rgba(44, 37, 68, 0.74);
}

.topbar.is-stuck {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom-color: var(--border);
  box-shadow: 0 14px 30px -26px rgba(74, 58, 92, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand__mark {
  position: relative;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: block;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.brand:hover .brand__mark {
  transform: rotate(-12deg) scale(1.08);
}

.brand__wing {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-mint);
  box-shadow: inset 0 -2px 0 rgba(74, 58, 92, 0.12);
}

.brand__body {
  position: absolute;
  inset: 12px 8px 6px;
  border-radius: 46% 46% 50% 50%;
  background: var(--grad-honey);
  box-shadow: inset 0 -3px 0 rgba(74, 58, 92, 0.14);
}

.brand__stripe {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 4px;
  background: var(--plum);
}

.brand__stripe:nth-of-type(1) {
  top: 26px;
}

.brand__stripe:nth-of-type(2) {
  top: 34px;
}

.brand__text {
  display: grid;
  line-height: 1.1;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.24rem;
  letter-spacing: -0.01em;
}

.brand__text small {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
}

html[data-theme="night"] .nav {
  background: rgba(59, 49, 96, 0.6);
}

.nav__link {
  position: relative;
  padding: 0.42em 1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--text-soft);
  transition: color 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.nav__link span {
  position: relative;
  z-index: 1;
}

.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--grad-honey);
  transform: scale(0.3);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 1.5, 0.5, 1), opacity 0.25s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: #40305a;
  transform: translateY(-1px);
}

.nav__link:hover::before,
.nav__link.is-active::before {
  transform: scale(1);
  opacity: 1;
}

.topbar__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s cubic-bezier(0.2, 1.5, 0.5, 1), color 0.25s ease, background-color 0.25s ease;
}

html[data-theme="night"] .icon-btn {
  background: rgba(59, 49, 96, 0.7);
}

.icon-btn:hover {
  transform: translateY(-3px) rotate(-6deg);
  color: var(--rose-deep);
}

.icon-btn:active {
  transform: translateY(1px) scale(0.96);
}

.icon-btn svg {
  width: 21px;
  height: 21px;
}

.icon-sound-on {
  display: none;
}

.icon-btn[aria-pressed="true"] .icon-sound-on {
  display: block;
}

.icon-btn[aria-pressed="true"] .icon-sound-off {
  display: none;
}

.theme-btn__track {
  display: block;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: var(--cream-deep);
  border: 2px solid var(--border-strong);
  position: relative;
}

.theme-btn__thumb {
  position: absolute;
  top: -7px;
  left: -6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-honey);
  color: #6b4a12;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1), background 0.4s ease, color 0.4s ease;
}

.theme-btn__thumb svg {
  width: 15px;
  height: 15px;
}

.theme-btn[aria-pressed="true"] .theme-btn__thumb {
  transform: translateX(26px);
  background: linear-gradient(135deg, #cfd6ff, #a9b4f0);
  color: #3a3f6b;
}

.nav-toggle {
  display: none;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 20px;
}

.nav-toggle__bars i {
  display: block;
  height: 2.5px;
  border-radius: 3px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   06. Buttons & chips
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s cubic-bezier(0.2, 1.5, 0.5, 1), box-shadow 0.28s ease, background-color 0.3s ease;
}

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

.btn__shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  left: -60%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}

.btn:hover .btn__shine {
  left: 120%;
}

.btn--primary {
  color: #4a3312;
  background: var(--grad-honey);
  box-shadow: 0 6px 0 #d99422, var(--shadow-md);
}

.btn--primary:hover {
  color: #4a3312;
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #d99422, var(--shadow-lg);
}

.btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #d99422, var(--shadow-sm);
}

.btn--ghost {
  color: var(--text);
  background: var(--surface-raised);
  border: 2.5px solid var(--border-strong);
  box-shadow: 0 6px 0 rgba(74, 58, 92, 0.14), var(--shadow-sm);
}

.btn--ghost:hover {
  color: var(--rose-deep);
  transform: translateY(-3px);
  box-shadow: 0 9px 0 rgba(74, 58, 92, 0.14), var(--shadow-md);
}

.btn--ghost:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(74, 58, 92, 0.14);
}

.btn--big {
  font-size: 1.12rem;
  padding: 1em 2.1em;
}

.btn--mini {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border-radius: 999px;
  color: var(--text-faint);
  border: 1.5px dashed var(--border-strong);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn--mini:hover {
  color: var(--rose-deep);
  border-color: var(--rose);
}

.btn__wiggle {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  font-size: 0.85em;
  color: #4a3312;
  background: var(--honey);
  animation: wiggle 1.6s ease-in-out infinite;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(10deg) scale(1.08);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-soft);
  background: var(--surface-raised);
  border: 2px solid var(--border);
  box-shadow: 0 4px 0 rgba(74, 58, 92, 0.08);
  transition: transform 0.25s cubic-bezier(0.2, 1.5, 0.5, 1), color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.chip:hover {
  transform: translateY(-3px);
  color: var(--rose-deep);
  border-color: var(--rose);
}

.chip--active {
  color: #45320f;
  background: var(--grad-honey);
  border-color: #e0a52c;
  box-shadow: 0 4px 0 #d99422;
}

.chip__count {
  font-size: 0.72em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  background: rgba(74, 58, 92, 0.12);
}

.chip--shuffle svg {
  width: 17px;
  height: 17px;
}

.sparkle-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 0 rgba(239, 125, 154, 0.6);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 125, 154, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(239, 125, 154, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 125, 154, 0);
  }
}

/* --------------------------------------------------------------------------
   07. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--shell), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.5em 1.1em;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: #6a4a1e;
  background: rgba(255, 240, 214, 0.9);
  border: 2px dashed rgba(214, 160, 60, 0.5);
}

html[data-theme="night"] .hero__eyebrow {
  color: #ffe6bd;
  background: rgba(59, 49, 96, 0.7);
  border-color: rgba(255, 214, 150, 0.4);
}

.hero__title {
  margin-bottom: 0.7rem;
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
  background: linear-gradient(100deg, #ffb35c 0%, #ef7d9a 42%, #a98fe0 72%, #6fc3c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(74, 58, 92, 0.12));
}

html[data-theme="night"] .hero__title-line {
  background: linear-gradient(100deg, #ffd79a 0%, #ff9fb8 45%, #c3b0ff 75%, #8fe3dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.letter {
  display: inline-block;
  transform-origin: bottom center;
  animation: letter-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) backwards;
}

.letter:hover {
  animation: letter-bounce 0.6s ease;
  color: var(--rose);
}

@keyframes letter-pop {
  0% {
    opacity: 0;
    transform: translateY(0.5em) scale(0.6) rotate(-12deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes letter-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-0.18em) rotate(-7deg);
  }
  60% {
    transform: translateY(0.04em) rotate(5deg);
  }
}

.hero__title-sub {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.3vw, 1.2rem);
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}

.hero__title-sub em {
  font-style: normal;
  color: var(--rose-deep);
  text-decoration: underline wavy rgba(239, 125, 154, 0.5);
  text-underline-offset: 0.25em;
}

.hero__lede {
  max-width: 46ch;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.4rem 0 1.8rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: grid;
  gap: 0.1rem;
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--rose-deep);
}

.hero__stats span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__frame {
  position: relative;
  width: min(440px, 88%);
  padding: 16px 16px 62px;
  background: #fffdf8;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3.2deg);
  transition: transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1);
  animation: polaroid-sway 7s ease-in-out infinite;
}

html[data-theme="night"] .hero__frame {
  background: #fdf3e6;
}

.hero__frame:hover {
  transform: rotate(1.5deg) scale(1.03);
}

@keyframes polaroid-sway {
  0%,
  100% {
    transform: rotate(-3.2deg) translateY(0);
  }
  50% {
    transform: rotate(-1.4deg) translateY(-12px);
  }
}

.hero__frame img {
  width: 100%;
  border-radius: 4px;
  background: var(--blush);
}

.hero__frame-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  color: #4a3a5c;
}

.tape {
  position: absolute;
  width: 116px;
  height: 30px;
  background: rgba(255, 214, 150, 0.72);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
  box-shadow: 0 3px 8px rgba(74, 58, 92, 0.16);
  backdrop-filter: blur(1px);
}

.tape--one {
  top: -14px;
  left: -30px;
  transform: rotate(-18deg);
}

.tape--two {
  bottom: -12px;
  right: -32px;
  transform: rotate(12deg);
  background: rgba(255, 182, 205, 0.7);
}

.tape--three {
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(208, 240, 224, 0.8);
}

.hero__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.5em 1em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #4a3312;
  background: #fffdf8;
  border: 2.5px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  animation: badge-bob 5s ease-in-out infinite;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  color: var(--rose);
}

.hero__badge--one {
  top: 6%;
  left: -4%;
}

.hero__badge--two {
  bottom: 14%;
  right: -6%;
  animation-delay: -2.4s;
}

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

.hero__doodle--hornet {
  position: absolute;
  width: 96px;
  bottom: -6%;
  left: 4%;
  animation: hornet-orbit 9s ease-in-out infinite;
  filter: drop-shadow(0 12px 14px rgba(74, 58, 92, 0.2));
}

@keyframes hornet-orbit {
  0% {
    transform: translate(0, 0) rotate(-6deg);
  }
  33% {
    transform: translate(46px, -36px) rotate(10deg);
  }
  66% {
    transform: translate(-22px, -58px) rotate(-8deg);
  }
  100% {
    transform: translate(0, 0) rotate(-6deg);
  }
}

/* The confetti layer is fixed to the viewport, so confetti always rains down
   over whatever part of the page you are looking at, not just the hero. */
#confettiLayer {
  position: fixed;
  inset: 0;
  z-index: 890;
  overflow: hidden;
  pointer-events: none;
}

#confettiLayer i {
  position: absolute;
  top: -8%;
  width: 12px;
  height: 16px;
  border-radius: 3px;
  opacity: 0.9;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(112vh) rotate(720deg);
    opacity: 0;
  }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero__scroll i {
  width: 24px;
  height: 38px;
  border-radius: 999px;
  border: 2.5px solid var(--border-strong);
  position: relative;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 16px);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   08. Marquee ribbon
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 0.9rem 0;
  background: var(--grad-warm);
  border-top: 3px solid rgba(255, 255, 255, 0.55);
  border-bottom: 3px solid rgba(255, 255, 255, 0.55);
  transform: rotate(-1.4deg) scale(1.04);
  box-shadow: var(--shadow-md);
}

html[data-theme="night"] .marquee {
  border-color: rgba(255, 226, 190, 0.18);
}

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

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-right: 1.4rem;
}

.marquee__group b {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4a3312;
  white-space: nowrap;
}

html[data-theme="night"] .marquee__group b {
  color: #ffe9c9;
}

.marquee__group i {
  font-style: normal;
  color: rgba(74, 58, 92, 0.5);
  font-size: 1.1rem;
}

@keyframes marquee-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   09. Section headers
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  width: min(var(--shell), 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.section__head {
  max-width: 62ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.section__kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35em 0.95em;
  border-radius: 999px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #4a3312;
  background: var(--honey);
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 0 #d99422;
}

.section__title {
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  margin-bottom: 0.55rem;
}

.section__lede {
  color: var(--text-soft);
  margin: 0 auto;
}

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   10. About
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: start;
}

.about__card {
  position: relative;
  padding: 14px 14px 56px;
  background: #fffdf8;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(0.2, 1.3, 0.4, 1);
}

html[data-theme="night"] .about__card {
  background: #fdf3e6;
}

.about__card:hover {
  transform: rotate(1deg) scale(1.02);
}

.about__card img {
  border-radius: 6px;
}

.about__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: #4a3a5c;
}

.about__panel {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 2.5px solid var(--border);
  box-shadow: var(--shadow-md);
}

.about__panel h3 {
  font-size: 1.5rem;
}

.love-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.love-list li {
  display: grid;
  gap: 0.35rem;
}

.love-list__label {
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.love-list__bar {
  display: block;
  height: 13px;
  border-radius: 999px;
  background: rgba(74, 58, 92, 0.1);
  overflow: hidden;
}

.love-list__bar i {
  display: block;
  height: 100%;
  width: var(--fill, 80%);
  border-radius: 999px;
  background: var(--grad-honey);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.3, 1.2, 0.4, 1);
}

.love-list li:nth-child(2n) .love-list__bar i {
  background: linear-gradient(135deg, #ffb6cd, #ef7d9a);
}

.love-list li:nth-child(3n) .love-list__bar i {
  background: var(--grad-mint);
}

.is-visible .love-list__bar i {
  transform: scaleX(1);
}

.about__facts {
  display: grid;
  gap: 0.7rem;
}

.fact {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 241, 224, 0.7);
  border: 2px dashed var(--border);
}

html[data-theme="night"] .fact {
  background: rgba(44, 37, 68, 0.6);
}

.fact p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.fact__icon {
  color: var(--honey-deep);
  font-size: 1.1rem;
  line-height: 1.4;
}

.about__note {
  position: relative;
  grid-column: 1 / -1;
  max-width: 620px;
  margin: 0 auto;
  padding: 1.8rem 1.7rem 1.3rem;
  background: #fff7d9;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  transform: rotate(1.4deg);
  transition: transform 0.5s ease;
}

html[data-theme="night"] .about__note {
  background: #f6e9c6;
  color: #4a3a5c;
}

.about__note:hover {
  transform: rotate(-0.6deg) scale(1.02);
}

.about__note p {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.5;
  color: #4a3a5c;
}

.about__note-sign {
  display: block;
  text-align: right;
  font-family: var(--font-display);
  color: var(--rose-deep);
}

.about__note-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ff9db8, #d9546f);
  box-shadow: 0 4px 8px rgba(74, 58, 92, 0.35);
}

/* --------------------------------------------------------------------------
   11. Gallery
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

/* Masonry: a grid of tiny rows. main.js gives every card a row span that
   matches its height, and "dense" packing tucks cards under the shortest
   column so the bottom edge stays level. */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 4px;
  grid-auto-flow: row dense;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  row-gap: 0;
  align-items: start;
}

.card {
  position: relative;
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: 10px 10px 14px;
  background: var(--surface-raised);
  border: 2.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease;
  animation: card-in 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) backwards;
}

.card:hover {
  --lift: -6px;
  border-color: var(--rose);
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.card.is-hidden {
  display: none;
}

.card.is-filtering-out {
  opacity: 0;
  transform: scale(0.92);
}

@keyframes card-in {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.card__frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(140deg, var(--blush), var(--cream-deep));
}

.card__frame img {
  width: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 1.1, 0.4, 1), filter 0.5s ease;
}

.card:hover .card__frame img {
  transform: scale(1.06) rotate(0.6deg);
}

.card--starter .card__frame {
  background: linear-gradient(160deg, #eaf7ef, #fff3e0);
}

.card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4a3a5c;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(74, 58, 92, 0.15);
  box-shadow: 0 3px 8px rgba(74, 58, 92, 0.14);
  transform: rotate(-3deg);
}

.card__badge--team {
  background: #e7ddff;
}

.card__badge--oc {
  background: #ffe0ea;
}

.card__badge--scene {
  background: #d8f0e6;
}

.card__badge--spooky {
  background: #ded4f0;
  color: #37294d;
}

.card__badge--starter {
  background: var(--grad-honey);
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%,
  100% {
    transform: rotate(-3deg) scale(1);
  }
  50% {
    transform: rotate(-3deg) scale(1.07);
  }
}

.card__info {
  padding: 0.85rem 0.35rem 0.15rem;
}

.card__info h3 {
  margin: 0 0 0.15rem;
  font-size: 1.16rem;
}

.card__info p {
  margin: 0;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.card__peek {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4a3a5c;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.5, 0.5, 1);
}

.card__peek svg {
  width: 20px;
  height: 20px;
}

.card:hover .card__peek {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.card.is-shuffling {
  animation: card-shuffle 0.6s ease;
}

@keyframes card-shuffle {
  0%,
  100% {
    transform: none;
  }
  30% {
    transform: translateY(-14px) rotate(-4deg);
  }
  65% {
    transform: translateY(4px) rotate(3deg);
  }
}

.gallery__empty {
  margin: 2rem auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   12. Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 3vw, 2.5rem);
  background: rgba(46, 34, 58, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  width: min(1080px, 100%);
  max-height: 100%;
  display: grid;
  gap: 0.8rem;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.lightbox.is-open .lightbox__figure {
  transform: none;
}

.lightbox__image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

html[data-theme="night"] .lightbox__image-wrap {
  background: #3b3160;
}

.lightbox__image-wrap img {
  max-height: min(70vh, 760px);
  width: auto;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.lightbox__image-wrap img.is-loaded {
  opacity: 1;
}

.lightbox__loader {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox__loader.is-active {
  opacity: 1;
}

.lightbox__loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--honey);
  animation: trail-pulse 1s ease-in-out infinite;
}

.lightbox__loader span:nth-child(2) {
  animation-delay: 0.12s;
  background: var(--rose);
}

.lightbox__loader span:nth-child(3) {
  animation-delay: 0.24s;
  background: var(--lavender);
}

.lightbox__caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  color: #fdeede;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.lightbox__caption h3 {
  margin: 0;
  font-size: 1.3rem;
  color: #fff4e2;
}

.lightbox__caption p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 244, 226, 0.78);
}

.lightbox__index {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(255, 244, 226, 0.8);
  white-space: nowrap;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #45320f;
  background: var(--grad-honey);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1), background-color 0.3s ease;
}

.lightbox__close {
  top: clamp(0.8rem, 3vw, 2rem);
  right: clamp(0.8rem, 3vw, 2rem);
  width: 52px;
  height: 52px;
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__nav {
  top: 50%;
  width: 56px;
  height: 56px;
}

.lightbox__nav svg {
  width: 26px;
  height: 26px;
}

.lightbox__nav--prev {
  left: clamp(0.6rem, 2.5vw, 2rem);
}

.lightbox__nav--next {
  right: clamp(0.6rem, 2.5vw, 2rem);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  transform: scale(1.12) rotate(-6deg);
}

.lightbox__nav--prev:hover {
  transform: translateY(-2px) scale(1.12);
}

.lightbox__nav--next:hover {
  transform: translateY(-2px) scale(1.12);
}

/* --------------------------------------------------------------------------
   13. Minigame
   -------------------------------------------------------------------------- */

.game__head {
  max-width: 66ch;
  margin: 0 auto clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
}

.game__shell {
  position: relative;
  padding: clamp(0.9rem, 2.4vw, 1.6rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.game__hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hud-chip {
  display: grid;
  gap: 0.1rem;
  min-width: 104px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  border: 2.5px solid var(--border);
  box-shadow: 0 4px 0 rgba(74, 58, 92, 0.1);
}

.hud-chip__label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hud-chip strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hud-chip strong small {
  font-size: 0.55em;
  margin-left: 0.1em;
  color: var(--text-faint);
}

.hud-chip--combo strong {
  color: var(--rose-deep);
}

.hud-chip--time strong {
  color: #2f8f7a;
}

html[data-theme="night"] .hud-chip--time strong {
  color: #7fd8bf;
}

.hud-chip--best strong {
  color: var(--honey-deep);
}

.hud-chip--time.is-urgent strong {
  color: #d9534f;
  animation: urgent-pulse 0.7s ease-in-out infinite;
}

@keyframes urgent-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.14);
  }
}

.hud-chip.is-bumped {
  animation: chip-bump 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes chip-bump {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12) rotate(-2deg);
  }
}

.hud-btn {
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--surface-raised);
  border: 2.5px solid var(--border);
  box-shadow: 0 4px 0 rgba(74, 58, 92, 0.1);
  transition: transform 0.25s ease, color 0.25s ease;
}

.hud-btn:hover {
  transform: translateY(-3px);
  color: var(--rose-deep);
}

.hud-btn svg {
  width: 20px;
  height: 20px;
}

.game__stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
  background: linear-gradient(180deg, #cfeafb 0%, #e5f5ff 46%, #ffeccd 100%);
  border: 3px solid var(--border);
}

html[data-theme="night"] .game__stage {
  background: linear-gradient(180deg, #2b2a55 0%, #3a3468 46%, #4b3b5f 100%);
}

.game__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 0 rgba(255, 255, 255, 0.4);
  animation: cloud-drift 42s linear infinite;
}

html[data-theme="night"] .cloud {
  background: rgba(214, 208, 255, 0.28);
  box-shadow: none;
}

.cloud--one {
  top: 12%;
  left: -20%;
  width: 180px;
  height: 52px;
}

.cloud--two {
  top: 30%;
  left: -45%;
  width: 120px;
  height: 36px;
  animation-duration: 58s;
  animation-delay: -12s;
}

.cloud--three {
  top: 6%;
  left: -70%;
  width: 90px;
  height: 28px;
  animation-duration: 74s;
  animation-delay: -30s;
}

@keyframes cloud-drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(240%);
  }
}

.sunbeam {
  position: absolute;
  top: -20%;
  width: 120px;
  height: 150%;
  background: linear-gradient(180deg, rgba(255, 245, 200, 0.75), transparent 78%);
  filter: blur(6px);
  transform: rotate(12deg);
  animation: beam-sway 9s ease-in-out infinite alternate;
}

.sunbeam--one {
  left: 12%;
}

.sunbeam--two {
  left: 62%;
  animation-delay: -4s;
  transform: rotate(-10deg);
}

@keyframes beam-sway {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 0.75;
  }
}

.game__hills {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -6%;
  height: 42%;
  border-radius: 50% 50% 0 0 / 90% 90% 0 0;
  background: linear-gradient(180deg, #a8dcb4, #7cc496);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.32);
}

html[data-theme="night"] .game__hills {
  background: linear-gradient(180deg, #4b5f7a, #37485e);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.06);
}

.game__board {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.6vw, 1.1rem);
  padding: clamp(0.8rem, 2.4vw, 1.6rem);
}

.hole {
  position: relative;
  height: clamp(150px, 20vw, 224px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hole:focus-visible {
  outline: 3px dashed #fff;
  outline-offset: -4px;
}

.hole__shadow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  width: 62%;
  height: 20px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(58, 44, 74, 0.32), transparent 72%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hole__bush {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  border-radius: 46% 54% 0 0 / 62% 66% 0 0;
  background: linear-gradient(180deg, #7fcb9c 0%, #58ab7c 62%, #3f8c63 100%);
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.28), inset 0 -8px 0 rgba(30, 70, 50, 0.18);
  transition: transform 0.18s ease;
}

html[data-theme="night"] .hole__bush {
  background: linear-gradient(180deg, #4f8f74, #356b57 62%, #27513f);
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.12), inset 0 -8px 0 rgba(0, 0, 0, 0.2);
}

/* The slot is the open air above the bush: its lower edge lines up exactly with
   the top of the bush (which is 38% of the hole), so a sprite sitting on the
   slot's bottom edge looks like it is standing inside the greenery. */
.hole__slot {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 22%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.hole__slot img {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: clamp(92px, 12vw, 178px);
  width: auto;
  max-width: 112%;
  object-fit: contain;
  transform: translate(-50%, 108%) scale(0.92);
  transform-origin: bottom center;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 12px rgba(58, 44, 74, 0.32));
}

.hole__slot img.is-up {
  animation: sprite-rise 0.34s cubic-bezier(0.2, 1.7, 0.4, 1) forwards;
}

.hole__slot img.is-hiding {
  animation: sprite-duck 0.26s ease-in forwards;
}

.hole__slot img.is-hit {
  animation: sprite-hit 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
}

@keyframes sprite-rise {
  0% {
    transform: translate(-50%, 108%) scale(0.9);
    opacity: 0;
  }
  70% {
    transform: translate(-50%, -6%) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}

@keyframes sprite-duck {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 112%) scale(0.9);
    opacity: 0;
  }
}

@keyframes sprite-hit {
  0% {
    transform: translate(-50%, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  35% {
    transform: translate(-50%, -22%) scale(1.22) rotate(-8deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 116%) scale(0.8) rotate(10deg);
    opacity: 0;
  }
}

.hole.is-whacked .hole__bush {
  animation: bush-squash 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes bush-squash {
  0%,
  100% {
    transform: scaleY(1) scaleX(1);
  }
  40% {
    transform: scaleY(0.82) scaleX(1.08);
  }
}

.hole.is-missed .hole__bush {
  animation: bush-shake 0.4s ease;
}

@keyframes bush-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px) rotate(-2deg);
  }
  75% {
    transform: translateX(6px) rotate(2deg);
  }
}

.hole.is-target .hole__bush {
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.3), 0 0 0 4px rgba(255, 201, 77, 0.55);
}

.hole__key {
  display: none;
}

.game__fx {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.fx-pop {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 0 rgba(74, 58, 92, 0.5), 0 0 16px rgba(255, 220, 140, 0.8);
  transform: translate(-50%, -50%);
  animation: fx-pop 0.85s ease-out forwards;
  white-space: nowrap;
}

.fx-pop--combo {
  font-size: 1.05rem;
  color: #ffe6a8;
}

.fx-pop--shiny {
  font-size: 1.9rem;
  color: #ffd7f0;
}

@keyframes fx-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  25% {
    transform: translate(-50%, -90%) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -220%) scale(0.95);
    opacity: 0;
  }
}

.fx-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: fx-spark 0.75s ease-out forwards;
}

@keyframes fx-spark {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
    opacity: 0;
  }
}

.game__toast {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 6;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #45320f;
  background: var(--grad-honey);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -180%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2, 1.5, 0.5, 1), opacity 0.35s ease;
  pointer-events: none;
  text-align: center;
  max-width: 80%;
}

.game__toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.game__overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  justify-items: center;
  align-content: safe center;
  gap: 0;
  padding: clamp(0.8rem, 3vw, 1.6rem);
  background: rgba(46, 34, 58, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.game__overlay--active {
  opacity: 1;
  visibility: visible;
}

.overlay-card {
  width: min(520px, 100%);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--surface);
  border: 3px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.96);
  transition: transform 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.game__overlay--active .overlay-card {
  transform: none;
}

.overlay-card--small {
  width: min(400px, 100%);
}

.overlay-card h3 {
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.overlay-card p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.overlay-card__pals {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
  min-height: 92px;
}

.overlay-card__pals img {
  height: 92px;
  width: auto;
  animation: pal-bob 2.6s ease-in-out infinite;
}

.overlay-card__pals img:nth-child(2) {
  animation-delay: -0.8s;
}

.overlay-card__pals img:nth-child(3) {
  animation-delay: -1.6s;
}

@keyframes pal-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

.overlay-card__rules {
  display: grid;
  gap: 0.35rem;
  margin: 1rem 0 1.3rem;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.overlay-card__rules li {
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 241, 224, 0.7);
  border: 2px dashed var(--border);
}

html[data-theme="night"] .overlay-card__rules li {
  background: rgba(44, 37, 68, 0.6);
}

.overlay-card__rules b {
  font-family: var(--font-display);
  color: var(--rose-deep);
}

.overlay-card__hint {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.overlay-card__rank {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(120deg, #ffb35c, #ef7d9a 55%, #a98fe0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: rank-pop 0.7s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes rank-pop {
  0% {
    transform: scale(0.4) rotate(-14deg);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.9rem 0;
}

.result-grid div {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 241, 224, 0.7);
  border: 2px solid var(--border);
}

html[data-theme="night"] .result-grid div {
  background: rgba(44, 37, 68, 0.6);
}

.result-grid span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.result-grid strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.overlay-card__verdict {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.overlay-card__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.game__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.game__note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-faint);
}

/* Shiny guest tint */

.hole__slot img.is-shiny {
  filter: drop-shadow(0 0 14px rgba(255, 214, 120, 0.95)) hue-rotate(28deg) saturate(1.5) brightness(1.12);
  animation: shiny-glow 1s ease-in-out infinite alternate;
}

@keyframes shiny-glow {
  0% {
    filter: drop-shadow(0 0 10px rgba(255, 214, 120, 0.8)) hue-rotate(20deg) saturate(1.3) brightness(1.06);
  }
  100% {
    filter: drop-shadow(0 0 22px rgba(255, 240, 180, 1)) hue-rotate(40deg) saturate(1.7) brightness(1.2);
  }
}

/* Floating "+points" behaviour and combo colours are driven from JavaScript. */

/* --------------------------------------------------------------------------
   14. Commissions
   -------------------------------------------------------------------------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  align-items: start;
}

.tier {
  position: relative;
  padding: 2.4rem clamp(1.1rem, 2.6vw, 1.8rem) 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.45s cubic-bezier(0.2, 1.3, 0.4, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.tier:hover {
  transform: translateY(-8px) rotate(-0.8deg);
  border-color: var(--rose);
  box-shadow: var(--shadow-lg);
}

.tier--featured {
  background: linear-gradient(170deg, rgba(255, 228, 176, 0.55), var(--surface) 62%);
  border-color: var(--honey-deep);
  transform: translateY(-10px);
}

.tier--featured:hover {
  transform: translateY(-18px) rotate(0.8deg);
}

html[data-theme="night"] .tier--featured {
  background: linear-gradient(170deg, rgba(255, 201, 77, 0.16), var(--surface) 62%);
}

.tier__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  padding: 0.35em 1em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  color: #4a3312;
  background: var(--grad-honey);
  box-shadow: 0 4px 0 #d99422;
  white-space: nowrap;
}

.tier__name {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.tier__desc {
  font-size: 0.94rem;
  color: var(--text-soft);
  min-height: 4.2em;
}

.tier__list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.tier__list li {
  position: relative;
  padding-left: 1.6em;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.85em;
  height: 0.85em;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--grad-mint);
  box-shadow: inset 0 0 0 1.5px rgba(74, 58, 92, 0.2);
}

.tier__stamp {
  display: inline-block;
  padding: 0.3em 0.85em;
  border-radius: 6px;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: var(--rose-deep);
  border: 2px dashed var(--rose);
  transform: rotate(-2deg);
}

.process {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 3px dashed var(--border-strong);
}

.process__title {
  text-align: center;
  font-size: 1.5rem;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 1.1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process__steps li {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 241, 224, 0.6);
  border: 2px solid var(--border);
  transition: transform 0.35s ease;
}

html[data-theme="night"] .process__steps li {
  background: rgba(44, 37, 68, 0.6);
}

.process__steps li:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.process__steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: #4a3312;
  background: var(--grad-honey);
  box-shadow: 0 3px 0 #d99422;
}

.process__steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.process__steps p {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.process__note {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3rem);
}

.contact__card {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(165deg, #fff4e2, #ffe9f0 70%, #f0ecff);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-lg);
}

html[data-theme="night"] .contact__card {
  background: linear-gradient(165deg, #3a3160, #46305e 70%, #332c56);
}

.contact__tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 150px;
  height: 32px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 214, 150, 0.75);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(74, 58, 92, 0.16);
}

.contact__title {
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
}

.contact__lede {
  max-width: 48ch;
  margin: 0 auto 1.6rem;
  color: var(--text-soft);
}

.contact__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  text-align: left;
}

.contact__links li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 2.5px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1), border-color 0.3s ease;
}

.contact__links li > span:last-child {
  min-width: 0;
}

html[data-theme="night"] .contact__links li {
  background: rgba(59, 49, 96, 0.7);
}

.contact__links li:hover {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--rose);
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #4a3312;
  background: var(--grad-honey);
}

.contact__icon svg {
  width: 21px;
  height: 21px;
}

.contact__links strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.contact__links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact__tiny {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.contact__doodle {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  color: var(--rose);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
  animation: doodle-spin 22s linear infinite;
}

.contact__doodle svg {
  width: min(220px, 60vw);
}

.contact__doodle span {
  animation: doodle-spin 22s linear infinite reverse;
}

@keyframes doodle-spin {
  0% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(-3deg);
  }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(6rem, 14vw, 11rem) clamp(1rem, 4vw, 2.5rem) 2.5rem;
  text-align: center;
  color: #4a3a5c;
  background: linear-gradient(180deg, #ffe6c2 0%, #ffd3d9 55%, #efd9f4 100%);
  overflow: hidden;
}

html[data-theme="night"] .footer {
  color: #fdeede;
  background: linear-gradient(180deg, #2a2440 0%, #352a4d 60%, #423054 100%);
}

.footer__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer__sun {
  position: absolute;
  top: 8%;
  left: 50%;
  width: clamp(90px, 14vw, 150px);
  height: clamp(90px, 14vw, 150px);
  margin-left: clamp(-75px, -7vw, -45px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c9 0%, #ffd27a 58%, rgba(255, 210, 122, 0) 72%);
  filter: blur(2px);
  animation: sun-breathe 8s ease-in-out infinite;
}

html[data-theme="night"] .footer__sun {
  background: radial-gradient(circle, #fff8e0 0%, #ffe6ad 40%, rgba(255, 230, 173, 0) 68%);
}

@keyframes sun-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.footer__cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="night"] .footer__cloud {
  background: rgba(214, 208, 255, 0.16);
}

.footer__cloud--one {
  top: 18%;
  left: 8%;
  width: 170px;
  height: 46px;
  animation: cloud-drift 60s linear infinite;
}

.footer__cloud--two {
  top: 30%;
  left: 55%;
  width: 120px;
  height: 34px;
  animation: cloud-drift 78s linear infinite reverse;
}

.footer__hill {
  position: absolute;
  left: -10%;
  right: -10%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.footer__hill--back {
  bottom: 18%;
  height: 34%;
  background: rgba(168, 220, 180, 0.85);
}

html[data-theme="night"] .footer__hill--back {
  background: rgba(75, 95, 122, 0.7);
}

.footer__hill--front {
  bottom: -6%;
  height: 40%;
  background: linear-gradient(180deg, #8fd0a4, #6bbd8c);
}

html[data-theme="night"] .footer__hill--front {
  background: linear-gradient(180deg, #3d5468, #2c3f52);
}

.footer__flowers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 6vw, 5rem);
}

.footer__flowers span {
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #fff0f6;
  box-shadow:
    0 -8px 0 -2px #fff0f6,
    0 8px 0 -2px #fff0f6,
    -8px 0 0 -2px #fff0f6,
    8px 0 0 -2px #fff0f6,
    inset 0 0 0 3px #ffd166;
  animation: flower-sway 5s ease-in-out infinite;
}

.footer__flowers span:nth-child(2n) {
  animation-delay: -1.4s;
  transform: scale(0.85);
}

.footer__flowers span:nth-child(3n) {
  animation-delay: -2.6s;
  transform: scale(1.1);
}

@keyframes flower-sway {
  0%,
  100% {
    rotate: -7deg;
  }
  50% {
    rotate: 7deg;
  }
}

.footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  max-width: 62ch;
  margin: 0 auto;
}

.footer__sign {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff4e6;
  text-shadow: 0 3px 0 rgba(74, 58, 92, 0.25), 0 12px 26px rgba(74, 58, 92, 0.28);
}

html[data-theme="night"] .footer__sign {
  color: #fff0dc;
}

.footer__line,
.footer__meta {
  margin: 0;
  font-size: 0.9rem;
}

.footer__meta {
  font-size: 0.8rem;
  opacity: 0.75;
}

.back-to-top {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  color: #4a3312;
  background: var(--grad-honey);
  box-shadow: 0 5px 0 #d99422, var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   17. Motion preferences & responsive rules
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero__copy {
    display: grid;
    justify-items: center;
  }

  .hero__lede {
    margin-inline: auto;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__art {
    margin-top: 1rem;
  }

  .about__grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .about__card {
    max-width: 460px;
    margin: 0 auto;
  }

  .contact__doodle {
    order: -1;
  }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: 74px 1rem auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.3rem;
    padding: 0.8rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px) scale(0.97);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1), opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    text-align: center;
    padding: 0.7em 1em;
  }

  .brand__text small {
    display: none;
  }
}

@media (max-width: 680px) {
  .gallery__grid {
    columns: 1;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero__badge--one {
    left: 0;
  }

  .hero__badge--two {
    right: 0;
  }

  .lightbox__nav {
    top: auto;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }

  .lightbox__nav--prev {
    left: 16px;
  }

  .lightbox__nav--next {
    right: 16px;
  }

  .lightbox__caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .hud-chip {
    min-width: 78px;
    padding: 0.5rem 0.7rem;
  }

  .hud-chip strong {
    font-size: 1.3rem;
  }

  .hole {
    height: clamp(112px, 30vw, 158px);
  }
}

@media (max-width: 420px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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

  .bg-stickers,
  .cursor,
  .cursor-trail,
  .magnet-cursor {
    display: none;
  }
}

@media print {
  .topbar,
  .bg-layer,
  .cursor,
  .cursor-trail,
  .scroll-progress,
  .marquee,
  .game,
  .footer__scene {
    display: none !important;
  }
}


/* --------------------------------------------------------------------------
   Commission reference sheet & emotes
   -------------------------------------------------------------------------- */

.refsheet {
  margin: 2rem 0 1.5rem;
  padding: clamp(0.6rem, 1.5vw, 1rem);
  border: 3px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.refsheet img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 10px);
}

.emotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 210px), 1fr));
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.emote {
  aspect-ratio: 1;
  transition: transform 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.emote:hover {
  transform: translateY(-8px) scale(1.06) rotate(2deg);
}

.emote img {
  display: block;
  width: auto;
  height: 80%;
  object-fit: contain;
  border-radius: var(--radius);
  filter: drop-shadow(0 6px 10px rgba(90, 50, 80, 0.28));
}
