/* ==========================================================================
   CUT THE ROPE ONLINE — homepage styles
   1.  Tokens & base
   2.  Utilities
   3.  Header / navigation
   4.  Hero (3D paper-craft header)
   5.  Game screen section
   6.  Guide article
   7.  Footer
   8.  Responsive
   9.  Motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & base
   -------------------------------------------------------------------------- */
:root {
  --cream-50: #fffdf7;
  --cream-100: #fff8ea;
  --cream-200: #fff2d9;
  --paper: #fffaf0;
  --cardboard: #e2bb82;
  --cardboard-deep: #a8783f;

  --ink: #26311c;
  --ink-soft: #4c5a3c;

  --green-950: #122608;
  --green-900: #1d3a0d;
  --green-800: #2b5413;
  --green-700: #3f7a1e;
  --green-600: #559a26;
  --green-500: #6fbe2e;
  --green-400: #8ed63f;
  --green-300: #b7e87a;

  --blue-800: #254a9a;
  --blue-700: #2f5cb4;

  --candy-red: #ef4a2e;
  --candy-orange: #f9a11b;
  --gold: #ffd34d;
  --gold-deep: #e0a21c;

  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--green-400);
  color: var(--green-950);
}

/* --------------------------------------------------------------------------
   2. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--cream-100);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus-visible {
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid rgba(63, 110, 25, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 3px 0 rgba(63, 110, 25, .09), 0 10px 20px rgba(90, 70, 20, .05);
  color: var(--green-700);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--candy-orange);
  box-shadow: 0 0 0 3px rgba(249, 161, 27, .18);
}

/* — candy (pure CSS, no image files needed) — */
.candy {
  --candy-size: 78px;
  position: relative;
  display: block;
  flex: none;
  width: var(--candy-size);
  height: var(--candy-size);
  filter: drop-shadow(0 8px 9px rgba(60, 35, 5, .28));
}

.candy::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .9) 0 6%, rgba(255, 255, 255, 0) 28%),
    conic-gradient(from -18deg,
      #ef4a2e 0 11%,
      #f9a11b 11% 22%,
      #fff3cf 22% 30%,
      #ef4a2e 30% 44%,
      #f9a11b 44% 55%,
      #fff3cf 55% 63%,
      #ef4a2e 63% 77%,
      #f9a11b 77% 88%,
      #fff3cf 88% 100%);
  box-shadow:
    inset 0 0 0 .1em rgba(120, 52, 8, .38),
    inset -.12em -.16em .22em rgba(110, 35, 5, .3),
    inset .1em .12em .2em rgba(255, 255, 255, .35);
}

/* — 3D buttons — */
.btn,
.nav__toggle,
.stage__expand,
.stage__close,
.social {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.7em;
  border: 2px solid var(--green-900);
  border-radius: 999px;
  background: linear-gradient(180deg, #9ade4b, #5aa824 62%, #4f981f);
  box-shadow:
    0 6px 0 var(--green-800),
    0 14px 22px rgba(43, 84, 19, .28),
    inset 0 2px 0 rgba(255, 255, 255, .38);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 9px 0 var(--green-800),
    0 20px 28px rgba(43, 84, 19, .32),
    inset 0 2px 0 rgba(255, 255, 255, .38);
  filter: saturate(1.06);
}

.btn:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 var(--green-800),
    0 6px 12px rgba(43, 84, 19, .25),
    inset 0 2px 0 rgba(255, 255, 255, .25);
}

.btn__icon {
  font-size: .78em;
  line-height: 1;
  transform: translateY(-1px);
}

.btn--sm {
  padding: .8em 1.35em;
  font-size: .9rem;
  box-shadow:
    0 4px 0 var(--green-800),
    0 10px 16px rgba(43, 84, 19, .22),
    inset 0 2px 0 rgba(255, 255, 255, .38);
}

.btn--lg {
  padding: 1.05em 2em;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.btn--ghost {
  border-color: #3a2c12;
  background: linear-gradient(180deg, #fffdf6, #f7ebcd);
  box-shadow:
    0 6px 0 #cdb887,
    0 14px 22px rgba(90, 70, 20, .2),
    inset 0 2px 0 rgba(255, 255, 255, .85);
  color: var(--green-900);
}

.btn--ghost:hover {
  box-shadow:
    0 9px 0 #cdb887,
    0 20px 26px rgba(90, 70, 20, .24),
    inset 0 2px 0 rgba(255, 255, 255, .85);
}

/* — scroll reveal — */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .2, 1);
}

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

/* --------------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(255, 247, 231, .94));
  border-bottom: 1px solid rgba(120, 90, 30, .1);
  box-shadow: 0 6px 0 rgba(120, 90, 30, .04), 0 14px 26px rgba(90, 65, 20, .06);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  transition: box-shadow .3s ease, background .3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 0 rgba(120, 90, 30, .05), 0 20px 34px rgba(90, 65, 20, .12);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px clamp(14px, 3vw, 32px);
}

.site-header__edge {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(111, 190, 46, 0), rgba(111, 190, 46, .5) 18%, rgba(249, 161, 27, .45) 55%, rgba(239, 74, 46, .5) 82%, rgba(239, 74, 46, 0));
  opacity: .75;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__candy {
  --candy-size: 30px;
  transform: rotate(-8deg);
}

.brand__text {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(63, 110, 25, .16);
  white-space: nowrap;
}

.brand__the {
  padding: 0 .16em;
  color: var(--candy-red);
  font-size: .58em;
  vertical-align: .12em;
}

.brand__tag {
  padding: 5px 9px 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--candy-orange), var(--candy-red));
  box-shadow: 0 2px 0 #a32c17;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  color: #4b5a3a;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav__link:hover {
  background: rgba(111, 190, 46, .14);
  color: var(--green-900);
  transform: translateY(-1px);
}

.nav__link.is-active {
  background: var(--cream-50);
  box-shadow: 0 2px 0 rgba(63, 110, 25, .16), inset 0 0 0 1px rgba(63, 110, 25, .12);
  color: var(--green-900);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(63, 110, 25, .18);
  border-radius: 14px;
  background: var(--cream-50);
  box-shadow: 0 3px 0 rgba(63, 110, 25, .12);
  color: var(--green-900);
  cursor: pointer;
}

.nav__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Hero — 3D paper-craft header scene
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: clamp(520px, 64svh, 700px);
  padding: clamp(28px, 4.5vh, 48px) 0 clamp(190px, 24vh, 260px);
  overflow: hidden;
  background:
    radial-gradient(115% 85% at 50% -8%, #fffdf7 0%, #fff7e4 34%, #ffefcb 58%, #ffe3ae 78%, #f8d794 100%);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .18;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__sun {
  position: absolute;
  top: -8%;
  right: 4%;
  width: clamp(280px, 36vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 244, 199, .95) 0%, rgba(255, 225, 140, .5) 38%, rgba(255, 208, 100, .16) 62%, rgba(255, 205, 90, 0) 72%);
}

/* clouds */
.cloud {
  position: absolute;
  background: #fffdf6;
  border-radius: 999px;
  filter: drop-shadow(0 16px 18px rgba(214, 170, 85, .16));
  opacity: .9;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud--a {
  top: 15%;
  left: 4%;
  width: 190px;
  height: 52px;
}

.cloud--a::before {
  top: -26px;
  left: 28px;
  width: 86px;
  height: 86px;
}

.cloud--a::after {
  top: -14px;
  right: 26px;
  width: 58px;
  height: 58px;
}

.cloud--b {
  top: 9%;
  right: 12%;
  width: 136px;
  height: 40px;
  opacity: .78;
}

.cloud--b::before {
  top: -20px;
  left: 22px;
  width: 62px;
  height: 62px;
}

.cloud--b::after {
  top: -12px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.cloud--c {
  top: 34%;
  right: 1%;
  width: 96px;
  height: 30px;
  opacity: .6;
}

.cloud--c::before {
  top: -15px;
  left: 16px;
  width: 46px;
  height: 46px;
}

/* stars */
.star {
  position: absolute;
  width: var(--s, 14px);
  height: var(--s, 14px);
  background: linear-gradient(180deg, #fff0a6, #f6b31b);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 2px 3px rgba(180, 120, 20, .3));
  animation: twinkle 4.2s ease-in-out infinite;
}

.star--a { --s: 18px; top: 20%; left: 15%; animation-delay: .2s; }
.star--b { --s: 12px; top: 11%; left: 31%; animation-delay: 1.1s; }
.star--c { --s: 15px; top: 27%; right: 22%; animation-delay: 2s; }
.star--d { --s: 10px; top: 44%; right: 7%; animation-delay: .7s; }
.star--e { --s: 13px; top: 52%; left: 6%; animation-delay: 1.6s; }
.star--f { --s: 9px; top: 8%; right: 33%; animation-delay: 2.6s; }

.hero__scene {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 40px);
}

.hero [data-depth] {
  will-change: transform;
  transition: transform .8s cubic-bezier(.22, .7, .2, 1);
}

.hero.is-parallaxing [data-depth] {
  transition: none;
}

.hero__copy {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.hero__copy > * {
  animation: rise .85s cubic-bezier(.22, .7, .2, 1) both;
}

.hero__copy > *:nth-child(2) { animation-delay: .08s; }
.hero__copy > *:nth-child(3) { animation-delay: .16s; }
.hero__copy > *:nth-child(4) { animation-delay: .24s; }
.hero__copy > *:nth-child(5) { animation-delay: .32s; }

/* page H1 sits at the top of the hero, directly below the header */
.hero__heading {
  max-width: 860px;
  margin: 0 auto clamp(10px, 1.6vh, 16px);
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.9vw, 2.9rem);
  font-weight: 800;
  line-height: 1.16;
  text-wrap: balance;
  text-shadow: 0 2px 0 #fffdf5, 0 6px 0 rgba(63, 122, 30, .14);
}

.hero__lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.55vw, 1.14rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(18px, 2.6vh, 28px);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(63, 110, 25, .18);
  border-radius: 999px;
  background: rgba(255, 252, 242, .82);
  box-shadow: 0 3px 0 rgba(63, 110, 25, .07);
  color: #3f5124;
  font-size: .82rem;
  font-weight: 700;
}

.chip__check {
  position: relative;
  flex: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green-400), var(--green-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}

.chip__check::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}

/* hanging candy */
.hero__hanger {
  position: absolute;
  top: -6px;
  right: 5%;
  z-index: 5;
  pointer-events: none;
}

.hanger {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 0;
  animation: sway 7.5s ease-in-out infinite;
}

.hanger__hook {
  width: 16px;
  height: 9px;
  margin-bottom: -2px;
  border: 4px solid #4a2f14;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.hanger__rope {
  width: 7px;
  height: clamp(74px, 10vh, 118px);
  border-radius: 4px;
  background: repeating-linear-gradient(118deg, #6b3d18 0 3px, #a86b2f 3px 6px);
  box-shadow: 2px 0 0 rgba(0, 0, 0, .16), inset 1px 0 0 rgba(255, 255, 255, .22);
}

.candy--hanger {
  --candy-size: clamp(66px, 7.2vw, 94px);
  margin-top: -6px;
}

/* Om Nom drawn with CSS + floating candy */
.hero__characters {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero__omnom {
  position: absolute;
  right: clamp(6px, 7vw, 110px);
  bottom: clamp(180px, 24vh, 280px);
  width: clamp(100px, 11vw, 160px);
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 18px 16px rgba(50, 70, 15, .25));
}

.hero__omnom::before {
  content: "";
  position: absolute;
  inset: 15% 3% 0;
  border: 3px solid #2c4c0e;
  border-radius: 46% 46% 44% 44% / 38% 38% 54% 54%;
  background: radial-gradient(circle at 34% 26%, #d3f2a4 0 6%, #8ed63f 42%, #6fbe2e 76%, #55a020 100%);
  box-shadow:
    inset 0 -9% 12% rgba(40, 70, 10, .25),
    inset 0 10% 16% rgba(255, 255, 255, .28);
}

.omnom__antenna {
  position: absolute;
  top: 1%;
  left: 48%;
  z-index: 2;
  width: 9%;
  height: 18%;
  border: 2px solid #2c4c0e;
  border-radius: 50% 50% 30% 30%;
  background: #4f8d1c;
  transform: translateX(-50%) rotate(-10deg);
  transform-origin: bottom center;
}

.omnom__antenna::after {
  content: "";
  position: absolute;
  top: -32%;
  left: 50%;
  width: 140%;
  aspect-ratio: 1 / 1;
  border: 2px solid #2c4c0e;
  border-radius: 50%;
  background: #8ed63f;
  transform: translateX(-50%);
}

.omnom__eye {
  position: absolute;
  top: 25%;
  z-index: 3;
  width: 29%;
  aspect-ratio: 1 / 1.12;
  border: 3px solid #2c4c0e;
  border-radius: 50%;
  background: #fffdf5;
}

.omnom__eye--l {
  left: 12%;
}

.omnom__eye--r {
  right: 12%;
}

.omnom__eye::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 56%;
  width: 40%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #1b2a10;
  transform: translate(-50%, -50%);
}

.omnom__mouth {
  position: absolute;
  top: 59%;
  left: 50%;
  z-index: 2;
  width: 42%;
  height: 25%;
  border: 3px solid #2c4c0e;
  border-radius: 8% 8% 50% 50% / 8% 8% 70% 70%;
  background: #5e150c;
  transform: translateX(-50%);
  overflow: hidden;
}

.omnom__mouth::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 62%;
  height: 46%;
  border-radius: 50%;
  background: #ef4a2e;
  transform: translateX(-50%);
}

.candy--float {
  position: absolute;
}

.candy--float-a {
  --candy-size: 58px;
  top: 22%;
  left: 4%;
  animation: bob 6s ease-in-out infinite;
}

.candy--float-b {
  --candy-size: 40px;
  top: 48%;
  right: 3%;
  animation: bob 7.5s ease-in-out infinite .8s;
}

.candy--float-c {
  --candy-size: 28px;
  bottom: 27%;
  left: 11%;
  opacity: .92;
  animation: bob 5.4s ease-in-out infinite 1.4s;
}

/* layered hills */
.hero__hills {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: clamp(180px, 24vh, 280px);
  pointer-events: none;
}

.hill--back {
  position: absolute;
  right: -12%;
  bottom: 12%;
  left: -12%;
  height: 78%;
  border-radius: 50% 50% 0 0 / 52% 52% 0 0;
  background: #4d9421;
  box-shadow: inset 0 14px 30px rgba(255, 255, 255, .08);
}

.hill--grass {
  position: absolute;
  right: -10%;
  bottom: 6%;
  left: -10%;
  height: 92%;
  border-top: 7px solid #fffaf0;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background-color: #6fbe2e;
  background-image: radial-gradient(circle, rgba(74, 140, 25, .55) 0 10px, transparent 11px);
  background-size: 46px 46px;
  box-shadow:
    inset 0 18px 0 rgba(255, 255, 255, .16),
    inset 0 40px 44px rgba(255, 255, 255, .1),
    0 -16px 34px rgba(70, 110, 25, .18);
  transform: rotate(-1.4deg) translateY(2px);
}

/* torn paper edge into the game section */
.hero__tear {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 6;
  display: block;
  width: 100%;
  height: clamp(52px, 6.5vw, 92px);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: clamp(96px, 12vh, 150px);
  left: 50%;
  z-index: 7;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 12px;
  border: 1px solid rgba(63, 110, 25, .16);
  border-radius: 999px;
  background: rgba(255, 253, 247, .86);
  box-shadow: 0 4px 0 rgba(63, 110, 25, .08), 0 12px 20px rgba(90, 70, 20, .1);
  color: var(--green-800);
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform .2s ease, box-shadow .2s ease;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 7px 0 rgba(63, 110, 25, .08), 0 18px 26px rgba(90, 70, 20, .14);
}

.scroll-cue__label {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue__arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: nudge 1.8s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   5. Game screen section
   -------------------------------------------------------------------------- */
.play {
  position: relative;
  padding: clamp(20px, 3vw, 40px) 0 clamp(40px, 5vw, 70px);
  background: var(--paper);
}

.play::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(63, 110, 25, .1) 1.5px, transparent 1.6px);
  background-size: 30px 30px;
  opacity: .5;
  pointer-events: none;
}

.play__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 32px);
}

.section-head {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .01em;
  text-shadow: 0 2px 0 #fffdf5, 0 5px 0 rgba(63, 122, 30, .16), 0 14px 26px rgba(63, 122, 30, .14);
}

.section-lead {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--ink-soft);
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
}

/* framed game window */
.stage {
  position: relative;
  max-width: 1060px;
  margin: clamp(20px, 3vw, 36px) auto 0;
}

.stage__frame {
  position: relative;
  padding: clamp(10px, 1.4vw, 20px);
  border: 2px solid #b9894e;
  border-radius: clamp(20px, 2.6vw, 32px);
  background: linear-gradient(158deg, #f6e1ba 0%, #eacb9a 32%, #ddb47c 68%, #d0a468 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    inset 0 -8px 0 rgba(150, 105, 45, .22),
    0 14px 0 #a8783f,
    0 26px 40px rgba(84, 60, 20, .28),
    0 50px 70px rgba(84, 60, 20, .16);
}

.stage__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: clamp(12px, 1.6vw, 18px);
  background: var(--green-950);
  box-shadow:
    inset 0 0 0 2px rgba(42, 28, 8, .45),
    inset 0 16px 34px rgba(0, 0, 0, .55);
}

.stage__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(8, 16, 0, .45);
  pointer-events: none;
}

.stage__tape {
  position: absolute;
  z-index: 3;
  width: clamp(86px, 12vw, 140px);
  height: clamp(28px, 3.4vw, 40px);
  border: 1px solid rgba(190, 158, 108, .55);
  background: linear-gradient(180deg, rgba(255, 250, 235, .92), rgba(243, 228, 196, .78));
  box-shadow: 0 4px 8px rgba(90, 60, 20, .16), inset 0 1px 0 rgba(255, 255, 255, .7);
  opacity: .92;
}

.stage__tape--tl {
  top: clamp(-14px, -1.2vw, -10px);
  left: 6%;
  transform: rotate(-7deg);
}

.stage__tape--br {
  right: 7%;
  bottom: clamp(-14px, -1.2vw, -10px);
  transform: rotate(-9deg);
}

/* game screen slot — the game embed fills the 16:9 screen */
.game-slot {
  position: absolute;
  inset: 0;
  background: var(--green-950);
}

.game-embed {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* poster shown before the game is started (click to load) */
.game-poster {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 16px);
  padding: clamp(14px, 2.4vw, 26px);
  border: 0;
  background:
    radial-gradient(120% 100% at 50% 0%, #447f1f 0%, #2b5413 48%, #1b360c 100%);
  color: var(--cream-100);
  cursor: pointer;
  text-align: center;
}

.game-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 248, 230, .09) 1.6px, transparent 1.7px);
  background-size: 26px 26px;
  opacity: .55;
  pointer-events: none;
}

.game-poster > * {
  position: relative;
  z-index: 1;
}

.game-poster__badge {
  color: var(--gold);
  font-size: clamp(.62rem, 1.1vw, .74rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.game-poster__title {
  color: #fffdf5;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #142a06, 0 6px 0 #142a06, 0 10px 18px rgba(0, 0, 0, .4);
}

.game-poster__play {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-top: .2em;
  padding: .8em 1.6em;
  border: 2px solid var(--green-900);
  border-radius: 999px;
  background: linear-gradient(180deg, #9ade4b, #5aa824 62%, #4f981f);
  box-shadow: 0 5px 0 var(--green-800), 0 14px 22px rgba(10, 20, 5, .4);
  color: #fff;
  font-size: clamp(.88rem, 1.4vw, 1.05rem);
  font-weight: 800;
}

.game-poster__icon {
  font-size: .78em;
  line-height: 1;
}

.game-slot.is-playing .game-poster {
  display: none;
}

/* fullscreen affordances */
.stage__expand {
  position: absolute;
  top: clamp(14px, 1.8vw, 24px);
  right: clamp(14px, 1.8vw, 24px);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(63, 110, 25, .22);
  border-radius: 999px;
  background: rgba(255, 253, 247, .94);
  box-shadow: 0 3px 0 rgba(63, 110, 25, .14), 0 10px 18px rgba(8, 16, 0, .3);
  color: var(--green-900);
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.stage__expand:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 5px 0 rgba(63, 110, 25, .14), 0 16px 24px rgba(8, 16, 0, .34);
}

.stage__expand:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(63, 110, 25, .14), 0 6px 12px rgba(8, 16, 0, .28);
}

.stage__expand-icon {
  font-size: .95rem;
  line-height: 1;
}

/* hide the fullscreen button while the "Play now" poster is showing */
.game-slot:not(.is-playing) + .stage__expand {
  display: none;
}

.stage__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1003;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid rgba(255, 248, 232, .55);
  border-radius: 50%;
  background: rgba(18, 34, 6, .82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  color: var(--cream-100);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.stage__close:hover {
  background: var(--candy-red);
  transform: scale(1.06);
}

/* fullscreen game mode — the iframe keeps a 16:9 landscape viewport so the
   GamePix player always runs in its normal (desktop) mode. */
.stage:fullscreen,
.stage.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #0b1604;
}

.stage:fullscreen .stage__frame,
.stage.is-expanded .stage__frame {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #0b1604;
  box-shadow: none;
}

.stage:fullscreen .stage__screen,
.stage.is-expanded .stage__screen {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.stage:fullscreen .stage__screen::after,
.stage.is-expanded .stage__screen::after {
  box-shadow: none;
}

.stage:fullscreen .stage__tape,
.stage.is-expanded .stage__tape,
.stage:fullscreen .stage__expand,
.stage.is-expanded .stage__expand {
  display: none;
}

.stage:fullscreen .stage__close,
.stage.is-expanded .stage__close {
  display: grid;
}

/* fullscreen: the game iframe takes the whole screen and the game itself
   letterboxes — same approach as the top Cut The Rope site */
.stage:fullscreen .game-slot,
.stage.is-expanded .game-slot {
  background: #0b1604;
}

body.is-locked {
  overflow: hidden;
}

/* game info table under the game screen */
.game-info {
  max-width: 820px;
  margin: clamp(26px, 3.6vw, 44px) auto 0;
}

.game-info__title {
  margin: 0 0 clamp(12px, 1.6vw, 18px);
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.game-info__table-wrap {
  overflow-x: auto;
  border-radius: 16px;
}

.game-info__table th[scope="row"] {
  width: 34%;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. Guide article
   -------------------------------------------------------------------------- */
.guide {
  position: relative;
  padding: clamp(28px, 4vw, 52px) 0 clamp(56px, 7vw, 96px);
  background: var(--paper);
}

.guide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(63, 110, 25, .08) 1.4px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: .5;
  pointer-events: none;
}

.guide__inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 32px);
}

.guide__inner > h2:first-child {
  margin-top: 0;
}

.guide h2 {
  margin: clamp(26px, 3.4vw, 42px) 0 12px;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.22;
}

.guide h3 {
  margin: 26px 0 8px;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.3;
}

.guide p,
.guide li,
.guide dd {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.guide p {
  margin: 0 0 14px;
}

.guide ul,
.guide ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

.guide li {
  margin-bottom: 8px;
  padding-left: .15em;
}

.guide ul li::marker {
  color: var(--candy-red);
  font-weight: 800;
}

.guide ol li::marker {
  color: var(--green-700);
  font-weight: 800;
}

.guide strong {
  color: var(--ink);
}

/* quick-fact strip */
.guide__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.6vw, 16px);
  margin: 0 0 20px;
}

.guide__fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #ecdcb9;
  border-radius: 14px;
  background: var(--cream-50);
  box-shadow: 0 4px 0 #ecd8b0;
}

.guide__fact-value {
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1;
}

.guide__fact-label {
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.4;
}

/* mid-article call to action */
.guide__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(26px, 3.4vw, 40px) 0 0;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 800;
}

.guide__table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border-radius: 16px;
}

.guide-table {
  width: 100%;
  border: 1px solid #e8d7b2;
  border-radius: 16px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--cream-50);
  box-shadow: 0 6px 0 #ecd8b0, 0 16px 26px rgba(90, 65, 20, .1);
  font-size: .95rem;
}

.guide-table th {
  padding: 12px 16px;
  background: linear-gradient(180deg, #f3e3c0, #e9d4a9);
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
}

.guide-table td {
  padding: 11px 16px;
  border-top: 1px dashed rgba(120, 90, 30, .25);
  color: var(--ink-soft);
  line-height: 1.55;
  vertical-align: top;
}

.guide-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .38);
}

.guide .faq {
  margin: 0;
}

.guide .faq dt {
  margin: 20px 0 6px;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 800;
  line-height: 1.35;
}

.guide .faq dd {
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 3px solid rgba(111, 190, 46, .5);
}

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: #f2e9d2;
  background: radial-gradient(120% 80% at 50% 0%, #2a5214 0%, #1d3a0d 46%, #122608 100%);
}

.site-footer__tear {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: clamp(64px, 9vw, 120px);
}

.site-footer__tear svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 248, 230, .055) 1.5px, transparent 1.6px);
  background-size: 34px 34px;
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(100px, 13vw, 152px) clamp(20px, 4vw, 32px) 0;
}

.footer-brand__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: #fffdf5;
  text-shadow:
    0 3px 0 #0e2205,
    0 4px 0 #0e2205,
    0 8px 14px rgba(0, 0, 0, .35);
}

.footer-wordmark__the {
  margin: .06em 0;
  color: var(--gold);
  font-size: .44em;
  letter-spacing: .08em;
  text-shadow: 0 2px 0 #0e2205;
}

.footer-brand__tagline {
  max-width: 34ch;
  margin: 18px 0 22px;
  color: #c9d6b1;
  font-size: .94rem;
  line-height: 1.7;
}

.socials {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 230, .22);
  border-radius: 50%;
  background: rgba(255, 248, 230, .08);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  color: #f2e9d2;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

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

.social:hover {
  transform: translateY(-3px);
  background: var(--gold);
  box-shadow: 0 7px 0 rgba(0, 0, 0, .18);
  color: var(--green-950);
}

.footer-col__title {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.footer-col__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #dfe6c9;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-col__list a::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 211, 77, .45);
  transition: background .2s ease, box-shadow .2s ease;
}

.footer-col__list a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-col__list a:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 211, 77, .16);
}

.footer-col__text {
  margin: 0 0 20px;
  color: #c9d6b1;
  font-size: .94rem;
  line-height: 1.7;
}

.footer-col--play .btn {
  font-size: .95rem;
  padding: .85em 1.5em;
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: 1180px;
  margin: clamp(34px, 4.5vw, 56px) auto 0;
  padding: 20px clamp(20px, 4vw, 32px) 34px;
  border-top: 1px dashed rgba(242, 233, 210, .22);
  color: #a8ba8e;
  font-size: .82rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom strong {
  color: #dfe6c9;
}

.site-footer__disclaimer {
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__hanger {
    right: 8%;
  }

  .candy--float-a {
    left: 2%;
  }

  .hero__omnom {
    right: clamp(4px, 4vw, 60px);
  }
}

@media (max-width: 940px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    min-width: 224px;
    padding: 12px;
    border: 1px solid rgba(120, 90, 30, .14);
    border-radius: 20px;
    background: var(--cream-50);
    box-shadow: 0 24px 40px rgba(60, 45, 15, .18), 0 6px 0 rgba(120, 90, 30, .06);
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .no-js .nav__toggle {
    display: none;
  }

  .no-js .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .no-js .nav__link {
    padding: 9px 10px;
  }

  .brand__tag {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    row-gap: 44px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: clamp(180px, 28vh, 240px);
  }

  .hero__scene {
    padding: 0 16px;
  }

  .hero__heading {
    margin-top: 8px;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__hanger {
    display: none;
  }

  .hero__characters {
    z-index: 1;
  }

  .candy--float-a {
    --candy-size: 40px;
    top: 8%;
    left: -3%;
  }

  .candy--float-b {
    --candy-size: 30px;
    top: 40%;
    right: -2%;
  }

  .candy--float-c {
    display: none;
  }

  .hero__omnom {
    right: 2px;
    bottom: clamp(150px, 22vh, 210px);
    width: 92px;
    opacity: .95;
  }

  .hero__hills {
    height: clamp(160px, 22vh, 200px);
  }

  .hill--grass {
    border-top-width: 6px;
  }

  .scroll-cue {
    display: none;
  }

  .cloud--a {
    width: 130px;
    height: 38px;
    left: -4%;
  }

  .cloud--b {
    display: none;
  }

  .eyebrow {
    font-size: .68rem;
    letter-spacing: .14em;
    padding: 7px 13px;
  }

  .site-header__inner {
    padding: 8px 14px;
  }

  .brand__candy {
    --candy-size: 26px;
  }

  .brand__text {
    font-size: 1.35rem;
  }

  .nav__cta {
    display: none;
  }

  .stage__frame {
    padding: 10px;
    border-radius: 22px;
    box-shadow:
      inset 0 2px 0 rgba(255, 255, 255, .55),
      inset 0 -6px 0 rgba(150, 105, 45, .22),
      0 10px 0 #a8783f,
      0 18px 28px rgba(84, 60, 20, .26);
  }

  .stage__tape--tl {
    left: 3%;
  }

  .stage__tape--br {
    right: 4%;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    row-gap: 34px;
    padding-top: clamp(96px, 20vw, 130px);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero__actions .btn {
    width: 100%;
  }

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

  .hero__chips {
    gap: 8px;
  }

  .chip {
    font-size: .76rem;
    padding: 7px 12px;
  }

  .stage__tape {
    width: 84px;
    height: 26px;
  }

  .brand__tag {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Motion
   -------------------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sway {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

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

@keyframes twinkle {
  0%, 100% {
    opacity: .95;
    transform: scale(1) rotate(0deg);
  }
  50% {
    opacity: .45;
    transform: scale(.82) rotate(8deg);
  }
}

@keyframes nudge {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}

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

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

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