/* ==========================================================================
   Cut the Rope 2 page â€” self-contained styles
   (separate from the main page sheet; same visual language)
   ========================================================================== */

:root {
  --paper: #fffaf0;
  --cream-50: #fff8e8;
  --cream-100: #fdf1d6;
  --ink: #2f2a1f;
  --ink-soft: #6b6150;
  --green-950: #122608;
  --green-900: #1d3a0d;
  --green-800: #2b5413;
  --green-700: #3f7a1e;
  --green-600: #4f981f;
  --green-400: #9ade4b;
  --candy-red: #ef4a2e;
  --candy-orange: #f9a11b;
  --gold: #f9a11b;
  --font-display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --header-h: 74px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-700);
}

a:hover {
  color: var(--green-900);
}

:focus-visible {
  outline: 3px solid var(--green-400);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--green-900);
  color: #fffdf5;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
}

/* pure-CSS swirl candy */
.candy {
  display: inline-block;
  width: var(--candy-size, 30px);
  height: var(--candy-size, 30px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff3cf 0 18%, transparent 19%),
    conic-gradient(from 20deg, var(--candy-red) 0 25%, var(--gold) 25% 50%, var(--candy-red) 50% 75%, var(--gold) 75% 100%);
  box-shadow: inset 0 -4px 6px rgba(120, 20, 10, .28), 0 3px 6px rgba(60, 40, 10, .28);
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  --cream-50: #fffdf7;
  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__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);
}

/* buttons (identical to the home page buttons) */
.btn,
.nav__toggle,
.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);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 3.5vw, 32px) 0;
  font-size: .85rem;
  color: var(--ink-soft);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #c7b389;
}

.breadcrumb a {
  color: var(--green-700);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Article
   -------------------------------------------------------------------------- */
.tt-main {
  background:
    radial-gradient(rgba(63, 110, 25, .07) 1.4px, transparent 1.5px) 0 0 / 30px 30px,
    var(--paper);
}

.tt-article {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(22px, 3.5vw, 40px) clamp(16px, 3.5vw, 32px) clamp(56px, 7vw, 96px);
}

.tt-head {
  max-width: 760px;
  padding-bottom: clamp(18px, 3vw, 30px);
  border-bottom: 1px dashed rgba(120, 90, 30, .3);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 16px;
  border: 1px solid #e7d6b3;
  border-radius: 999px;
  background: #fffdf5;
  color: var(--green-800);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.tt-title {
  margin: 0 0 14px;
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: .005em;
  text-shadow: 0 2px 0 #fffdf5, 0 6px 0 rgba(63, 122, 30, .13);
}

.tt-lead {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}

.tt-meta {
  margin: 0;
  color: #8a7c62;
  font-size: .84rem;
  font-weight: 600;
}

.tt-section {
  padding-top: clamp(22px, 3.4vw, 34px);
}

.tt-section h2 {
  margin: 0 0 12px;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.tt-section p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.78;
}

.tt-section p a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tt-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: clamp(22px, 3.4vw, 34px);
  border-top: 1px dashed rgba(120, 90, 30, .3);
}

/* --------------------------------------------------------------------------
   Footer (identical markup and styling to the home page footer)
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  --gold: #ffd34d;
  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;
  color: #fffdf5;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  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;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@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) {
  .site-header__inner {
    padding: 8px 14px;
  }

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

  .brand__text {
    font-size: 1.35rem;
  }

  .nav__cta {
    display: none;
  }

  .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: 600px) {
  .brand {
    font-size: 1.28rem;
  }

  .brand__tag {
    display: none;
  }

  .tt-list li {
    padding: 14px 16px 14px 40px;
  }

  .tt-list li::before {
    top: 19px;
    left: 15px;
  }

  .tt-foot .btn {
    width: 100%;
  }

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

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

/* ==========================================================================
   Game screen — framed player directly under the header
   ========================================================================== */
.tt-play {
  padding: clamp(18px, 2.6vw, 30px) clamp(16px, 3.5vw, 32px) clamp(6px, 1.4vw, 14px);
}

.tt-play__inner {
  max-width: 1060px;
  margin: 0 auto;
}

.stage {
  position: relative;
}

.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);
}

/* the embedded game 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;
}

/* fullscreen affordance */
.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;
}

.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;
}

.stage:fullscreen .game-slot,
.stage.is-expanded .game-slot {
  background: #0b1604;
}

body.is-locked {
  overflow: hidden;
}

/* ==========================================================================
   Article body — typography, figures, tables, FAQ
   ========================================================================== */
.tt-intro {
  padding-top: clamp(20px, 3vw, 30px);
}

.tt-intro p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.78;
}

.tt-intro p:first-child {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.5vw, 1.14rem);
}

.tt-article 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;
}

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

.tt-article p {
  margin: 0 0 14px;
}

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

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

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

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

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

/* featured image + in-article figure */
.tt-figure {
  margin: 0 0 26px;
  padding: 10px;
  border: 1px solid #ecdcb9;
  border-radius: 22px;
  background: linear-gradient(180deg, #fffdf5 0%, #f7ebcd 100%);
  box-shadow:
    0 8px 0 #e2c58f,
    0 18px 30px rgba(90, 70, 20, .18),
    inset 0 2px 0 rgba(255, 255, 255, .7);
}

.tt-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.tt-figure figcaption {
  margin: 10px 4px 2px;
  color: var(--ink-soft);
  font-size: .85rem;
  line-height: 1.5;
  text-align: center;
}

/* tables */
.tt-table-wrap {
  margin: 0 0 20px;
  overflow-x: auto;
  border-radius: 16px;
}

.tt-table {
  width: 100%;
  min-width: 540px;
  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;
}

.tt-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;
}

.tt-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;
}

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

/* FAQ */
.tt-faq {
  margin: 0;
}

.tt-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;
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .tt-play {
    padding-top: 16px;
  }

  .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);
  }

  /* Phone screens: same phone-shaped portrait (9:16) game screen as the home
     page, so the game no longer needs the device to be rotated. Everything
     else (frame, play and full screen buttons, desktop layout) is unchanged. */
  .stage {
    max-width: 420px;
    margin: 0 auto;
  }

  .stage__screen {
    aspect-ratio: 9 / 16;
  }

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

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

  .tt-figure {
    margin-bottom: 20px;
    padding: 7px;
    border-radius: 18px;
    box-shadow:
      0 6px 0 #e2c58f,
      0 12px 22px rgba(90, 70, 20, .16);
  }

  .tt-figure img {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .stage__tape {
    width: 84px;
    height: 26px;
  }

  .stage__expand {
    padding: 9px 12px;
  }

  .stage__expand-text {
    display: none;
  }
}

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

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

/* --------------------------------------------------------------------------
   More Cut the Rope games - image card row below the game screen
   -------------------------------------------------------------------------- */
.related-games {
  padding: 30px 16px 38px;
  background: var(--cream-50);
}

.related-games__inner {
  max-width: 980px;
  margin: 0 auto;
}

.related-games__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
  text-align: center;
}

.related-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdf7;
  border: 2px solid rgba(63, 122, 30, .22);
  border-radius: 18px;
  box-shadow: 0 6px 0 #e2c58f, 0 12px 20px rgba(84, 60, 20, .14);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.related-card:hover,
.related-card:focus-visible {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 9px 0 #e2c58f, 0 16px 26px rgba(84, 60, 20, .2);
}

.related-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-100);
}

.related-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--green-900);
}

.related-card__title::after {
  content: "\2192";
  color: var(--candy-orange);
  font-size: 1.1rem;
}

@media (max-width: 560px) {
  .related-games {
    padding: 24px 12px 30px;
  }

  .related-games__grid {
    gap: 14px;
  }

  .related-card__title {
    font-size: .92rem;
  }
}
