/* ==========================================================================
   W1LD KAEF GAMES — core design system
   Palette: meadow green, sun yellow, warm paper, coral and sky blue.
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #153e2f;
  --ink-deep: #0d3024;
  --ink-soft: #4c665a;
  --paper: #fffaf0;
  --paper-deep: #f7eedb;
  --cream: #fff3d7;
  --sun: #ffc857;
  --sun-light: #ffe59a;
  --coral: #ef765c;
  --coral-deep: #b44936;
  --teal: #148c85;
  --leaf: #2f8f5b;
  --leaf-deep: #1c5c3e;
  --mint: #e9f1da;
  --mint-deep: #cfe4bd;
  --sky: #78d2ec;
  --footer: #0c3024;

  --font-display: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Segoe UI", "Trebuchet MS", Tahoma, sans-serif;
  --font-accent: Candara, "Trebuchet MS", "Segoe UI", sans-serif;

  --content: 1200px;
  --gutter: clamp(20px, 5vw, 78px);
  --header-height: 92px;
  --section-space: clamp(78px, 9vw, 138px);

  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --radius-xl: 64px;

  --shadow-soft: 0 22px 65px rgba(21, 62, 47, 0.12);
  --shadow-card: 0 26px 80px rgba(21, 62, 47, 0.14);
  --shadow-button: 0 5px 0 var(--ink);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: #83d4e9;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--sun);
  color: var(--ink-deep);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

p {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.world-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, #43b4e4 0%, #b9e9ef 58%, #4c965a 100%);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: clip;
}

.container {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.145em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
}

.eyebrow--light {
  color: #bbd6c5;
}

.eyebrow--light::before {
  background: var(--sun);
}

.display-heading {
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
  letter-spacing: -0.05em;
}

.display-heading em {
  color: var(--coral-deep);
  font-style: normal;
}

.lead {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.72;
}

.lead--light {
  color: #d4e4d8;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding-block: clamp(15px, 2vw, 24px);
  transition: background-color 0.35s var(--ease-out), padding 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.site-header::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.2), rgba(255, 250, 240, 0));
  content: "";
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled {
  padding-block: 10px;
  background: rgba(255, 250, 240, 0.93);
  box-shadow: 0 12px 30px rgba(21, 62, 47, 0.08);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled::before {
  opacity: 0;
}

.site-header__inner {
  display: flex;
  position: relative;
  z-index: 4;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:focus-visible {
  outline-offset: 6px;
}

.brand__mark {
  width: clamp(42px, 4vw, 50px);
  height: auto;
  filter: drop-shadow(0 3px 0 rgba(21, 62, 47, 0.13));
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.brand__games {
  color: var(--ink);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-nav__link::after {
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  opacity: 0;
  transform: translate(-50%, 3px) scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-bounce);
}

.site-nav__link:hover {
  background: rgba(255, 250, 240, 0.43);
}

.site-nav__link.is-active {
  background: rgba(255, 250, 240, 0.52);
}

.site-nav__link.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.site-header.is-scrolled .site-nav__link:hover,
.site-header.is-scrolled .site-nav__link.is-active {
  background: var(--paper-deep);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.72);
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle__bars::before {
  top: 1px;
  box-shadow: 0 6px 0 var(--ink);
}

.menu-toggle__bars::after {
  top: 13px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
  top: 6px;
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
  top: 6px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  right: var(--gutter);
  left: auto;
  z-index: 2;
  width: min(380px, calc(100vw - var(--gutter) * 2));
  max-height: calc(100svh - var(--header-height) - 24px);
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 26px 60px rgba(13, 48, 36, 0.23), 0 0 0 100vmax rgba(13, 48, 36, 0.22);
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.24s ease, transform 0.24s var(--ease-out), visibility 0.24s;
}

.site-header.is-scrolled .mobile-menu {
  top: 76px;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-menu__list {
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(21, 62, 47, 0.12);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mobile-menu__link::after {
  color: var(--coral);
  content: "↗";
  font-family: var(--font-body);
  font-size: 1rem;
}

.mobile-menu__link:hover,
.mobile-menu__link.is-active {
  background: var(--paper-deep);
}

.mobile-menu__footer {
  padding: 18px 14px 8px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.mobile-menu__footer a {
  display: inline-block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 14px 25px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background-color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(3px);
}

.button__arrow {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  transition: transform 0.25s var(--ease-bounce);
}

.button:hover .button__arrow {
  transform: translate(2px, -2px);
}

.button--primary {
  background: var(--sun);
  box-shadow: var(--shadow-button);
  color: var(--ink);
}

.button--primary:hover {
  background: #ffd471;
  box-shadow: 0 7px 0 var(--ink);
}

.button--primary:active {
  box-shadow: 0 2px 0 var(--ink);
}

.button--secondary {
  background: rgba(255, 250, 240, 0.76);
  box-shadow: var(--shadow-button);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--paper);
  box-shadow: 0 7px 0 var(--ink);
}

.button--secondary:active {
  box-shadow: 0 2px 0 var(--ink);
}

.button--ink {
  border-color: var(--paper);
  background: var(--ink);
  box-shadow: 0 5px 0 rgba(255, 250, 240, 0.7);
  color: var(--paper);
}

.button--ink:hover {
  background: var(--ink-deep);
  box-shadow: 0 7px 0 rgba(255, 250, 240, 0.7);
}

.button--ink:active {
  box-shadow: 0 2px 0 rgba(255, 250, 240, 0.7);
}

.button--small {
  min-height: 46px;
  padding: 10px 19px;
  font-size: 0.9rem;
  box-shadow: 0 4px 0 var(--ink);
}

.button--small:hover {
  box-shadow: 0 6px 0 var(--ink);
}

.button--small:active {
  box-shadow: 0 2px 0 var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: flex;
  position: relative;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + clamp(38px, 7vh, 92px));
  padding-bottom: clamp(120px, 16vh, 188px);
  isolation: isolate;
}

.hero__inner {
  /* The .container class owns the width and gutters. */
  min-width: 0;
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: min(760px, 58vw);
}

/* A soft atmospheric lift keeps small copy legible where the painted meadow
   gets darker. It is a light veil, not a card, so the scene stays visible. */
.hero__copy::before,
.page-hero__copy::before {
  position: absolute;
  inset: -8% -10% -9% -11%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 42% 52%,
    rgba(255, 250, 240, 0.38) 0%,
    rgba(255, 250, 240, 0.16) 44%,
    rgba(255, 250, 240, 0) 72%
  );
  content: "";
  pointer-events: none;
}

.page-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.hero__eyebrow {
  margin-bottom: clamp(18px, 2.8vh, 30px);
  animation: heroRise 0.7s 0.08s var(--ease-out) both;
}

.hero h1 {
  margin-bottom: clamp(22px, 3.4vh, 34px);
  color: var(--ink-deep);
  font-size: clamp(3.15rem, 6.2vw, 6.5rem);
  letter-spacing: -0.062em;
  line-height: 0.91;
  text-wrap: balance;
}

.hero__line {
  display: block;
  animation: heroRise 0.9s 0.14s var(--ease-out) both;
}

.hero__line:nth-child(2) {
  animation-delay: 0.22s;
}

.hero__line--small {
  margin-top: 0.15em;
  animation-delay: 0.3s;
  font-size: 0.64em;
  letter-spacing: -0.052em;
  line-height: 1;
}

.hero__accent {
  position: relative;
  display: inline-block;
  z-index: 0;
  white-space: nowrap;
}

.hero__accent::before {
  position: absolute;
  inset: 14% -0.08em 4%;
  z-index: -1;
  border-radius: 48% 52% 44% 56% / 62% 42% 58% 38%;
  background: var(--sun);
  content: "";
  transform: rotate(-1.5deg);
}

.hero__description {
  max-width: 545px;
  margin-bottom: clamp(26px, 3.6vh, 34px);
  color: #234c3b;
  font-size: clamp(1.02rem, 1.25vw, 1.16rem);
  line-height: 1.68;
  text-wrap: pretty;
  animation: heroRise 0.9s 0.38s var(--ease-out) both;
}

.hero__actions {
  animation: heroRise 0.9s 0.46s var(--ease-out) both;
}

.hero__aside {
  position: absolute;
  right: clamp(22px, 6vw, 110px);
  bottom: clamp(150px, 25vh, 268px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px 999px 999px 7px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(21, 62, 47, 0.17);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  transform: rotate(-4deg);
  animation: noteFloat 6.5s ease-in-out infinite;
}

.hero__aside strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero__aside-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 900;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 5px 14px 5px 7px;
  border: 1px solid rgba(21, 62, 47, 0.15);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 5px 18px rgba(21, 62, 47, 0.08);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 46px;
  border: 2px solid rgba(21, 62, 47, 0.65);
  border-radius: 999px;
}

.hero__scroll-icon::after {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  animation: scrollDot 2.2s ease-in-out infinite;
}

.hero__scroll:hover {
  color: var(--ink);
}

.story-edge {
  position: relative;
  z-index: 2;
  width: 100%;
  height: clamp(54px, 7.5vw, 108px);
  margin-top: -1px;
  pointer-events: none;
}

.story-edge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story {
  position: relative;
  z-index: 2;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21, 62, 47, 0.055) 0.75px, transparent 0.75px);
  background-size: 22px 22px;
  overflow: clip;
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 62px);
}

.section-head h2 {
  max-width: 770px;
  margin-bottom: 0;
}

.section-head__aside {
  max-width: 390px;
  margin-left: auto;
  padding-bottom: 6px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.section-head__aside p + p {
  margin-top: 11px;
}

/* --------------------------------------------------------------------------
   Games
   -------------------------------------------------------------------------- */

.games-section {
  padding-top: clamp(56px, 6vw, 86px);
}

.games-section::before {
  position: absolute;
  top: 8%;
  right: -100px;
  width: 280px;
  height: 280px;
  border: 2px dashed rgba(21, 62, 47, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  border: 2px solid rgba(21, 62, 47, 0.16);
  border-radius: clamp(28px, 3.4vw, 42px);
  background: #fffdf8;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.game-card:hover {
  box-shadow: 0 32px 92px rgba(21, 62, 47, 0.18);
  transform: translateY(-4px);
}

.game-card__media {
  display: flex;
  position: relative;
  align-items: center;
  min-width: 0;
  padding: clamp(14px, 2.2vw, 26px);
  background: linear-gradient(140deg, #ffe8a8 0%, #f8c3a0 53%, #f1af9e 100%);
  overflow: hidden;
}

.game-card__media::before {
  position: absolute;
  top: -55px;
  left: -40px;
  width: 190px;
  height: 190px;
  border: 2px dashed rgba(21, 62, 47, 0.22);
  border-radius: 50%;
  content: "";
}

.game-card__cover-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: clamp(21px, 2.8vw, 31px);
  background: var(--cream);
  box-shadow: 9px 11px 0 rgba(21, 62, 47, 0.13);
  overflow: hidden;
  transform: rotate(-1.3deg);
  transition: transform 0.4s var(--ease-out);
}

.game-card:hover .game-card__cover-wrap {
  transform: rotate(-0.2deg) scale(1.008);
}

.game-card__cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.game-card__sticker {
  position: absolute;
  top: clamp(18px, 2.6vw, 34px);
  right: clamp(18px, 2.2vw, 30px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 3px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.game-card__sticker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.game-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4.2vw, 58px);
}

.game-card__body .eyebrow {
  margin-bottom: 14px;
}

.game-card__body h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.game-card__body > p {
  max-width: 470px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  list-style: none;
}

.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(21, 62, 47, 0.16);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.tag-list li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.tag-list li:nth-child(3n + 2)::before {
  background: var(--teal);
}

.tag-list li:nth-child(3n + 3)::before {
  background: var(--sun);
}

.game-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.store-soon__icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(21, 62, 47, 0.28);
  border-radius: 7px;
  background: transparent;
}

.store-soon__icon svg {
  width: 13px;
  height: 13px;
}

.game-card__note {
  margin-top: 15px;
  color: #556b5f;
  font-size: 0.75rem;
  line-height: 1.5;
}

.game-footer-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.game-footer-note::before {
  flex: 1;
  height: 1px;
  background: rgba(21, 62, 47, 0.16);
  content: "";
}

.game-footer-note span {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-section {
  margin-inline: clamp(8px, 1.5vw, 20px);
  border-radius: clamp(32px, 5vw, 72px);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 232, 166, 0.52), transparent 27%),
    linear-gradient(145deg, #edf5e2 0%, #e2eed5 55%, #e8f0dd 100%);
  overflow: hidden;
}

.about-section::before {
  position: absolute;
  top: 6%;
  left: -80px;
  width: 220px;
  height: 220px;
  border: 2px dashed rgba(21, 62, 47, 0.12);
  border-radius: 50%;
  content: "";
}

.about-grid {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.about-copy h2 {
  max-width: 720px;
  margin-bottom: 22px;
}

.about-copy > p {
  max-width: 590px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.76;
}

.about-copy > p + p {
  margin-top: 14px;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.about-signature__line {
  width: 42px;
  height: 1px;
  background: var(--coral);
}

.about-figure {
  position: relative;
  margin: 0;
  padding: clamp(14px, 2vw, 25px);
}

.about-figure::before {
  position: absolute;
  inset: 7% 2% 2% 8%;
  border-radius: 48% 52% 44% 56% / 42% 48% 52% 58%;
  background: var(--sun-light);
  content: "";
  opacity: 0.62;
  transform: rotate(7deg);
}

.about-figure__image {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 22px 32px rgba(21, 62, 47, 0.16));
}

.about-figure__caption {
  position: absolute;
  right: -4px;
  bottom: 8%;
  z-index: 2;
  width: 190px;
  padding: 13px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px 14px 14px 4px;
  background: var(--paper);
  box-shadow: 4px 5px 0 rgba(21, 62, 47, 0.12);
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.35;
  transform: rotate(2.5deg);
}

.values-wrap {
  position: relative;
  margin-top: clamp(52px, 6vw, 84px);
  padding-top: clamp(32px, 4vw, 46px);
  border-top: 1px solid rgba(21, 62, 47, 0.14);
}

.values-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.values-kicker::after {
  color: var(--ink-soft);
  content: "то, на что мы опираемся";
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 90px);
  list-style: none;
}

.value-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  padding: 19px 0;
  border-bottom: 1px dashed rgba(21, 62, 47, 0.18);
}

.value-item__number {
  padding-top: 2px;
  color: var(--coral-deep);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.value-item h3 {
  margin-bottom: 4px;
  font-size: 1.03rem;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.value-item p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Approach
   -------------------------------------------------------------------------- */

.approach-section {
  padding-top: clamp(88px, 10vw, 154px);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  grid-template-rows: auto auto;
  gap: clamp(18px, 2.4vw, 26px);
}

.approach-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(26px, 3.7vw, 45px);
  border: 2px solid rgba(21, 62, 47, 0.16);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.approach-card:hover {
  box-shadow: 0 18px 45px rgba(21, 62, 47, 0.1);
  transform: translateY(-3px) rotate(-0.2deg);
}

.approach-card--play {
  grid-row: 1 / 3;
  border-radius: 42px 42px 18px 42px;
  background: #ffe7a3;
}

.approach-card--discover {
  border-radius: 42px 18px 42px 42px;
  background: #dcecd0;
}

.approach-card--care {
  border-radius: 18px 42px 42px 42px;
  background: #fad9cd;
}

.approach-card__number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.approach-card__number::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.approach-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.approach-card p {
  max-width: 470px;
  color: #3d594b;
  font-size: 0.96rem;
  line-height: 1.68;
}

.approach-card--horizontal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 22px;
  align-items: center;
}

.approach-card__text {
  position: relative;
  z-index: 1;
}

.approach-card__art {
  position: relative;
  align-self: end;
  width: min(100%, 260px);
  margin: 22px auto 0;
  filter: drop-shadow(0 12px 18px rgba(21, 62, 47, 0.12));
  transition: transform 0.45s var(--ease-out);
}

.approach-card--horizontal .approach-card__art {
  align-self: center;
  width: 100%;
  margin: 0;
}

.approach-card:hover .approach-card__art {
  transform: rotate(2deg) translateY(-3px);
}

.approach-card__art img {
  width: 100%;
}

.approach-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  margin: clamp(48px, 6vw, 76px) auto 0;
  color: var(--ink);
  font-family: var(--font-accent);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.approach-quote::before,
.approach-quote::after {
  width: clamp(28px, 6vw, 84px);
  height: 1px;
  background: rgba(21, 62, 47, 0.3);
  content: "";
}

.approach-quote span {
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-section {
  position: relative;
  margin-top: clamp(70px, 9vw, 120px);
  padding-block: clamp(70px, 9vw, 125px);
  border-radius: clamp(36px, 5vw, 74px) clamp(36px, 5vw, 74px) 0 0;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.contact-section::before {
  position: absolute;
  top: -24%;
  right: -8%;
  width: min(560px, 55vw);
  height: min(560px, 55vw);
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 200, 87, 0.045), 0 0 0 70px rgba(255, 200, 87, 0.03);
  content: "";
  pointer-events: none;
}

.contact-section::after {
  position: absolute;
  bottom: -115px;
  left: -70px;
  width: 260px;
  height: 260px;
  border: 2px dashed rgba(255, 243, 215, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.contact-grid {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
}

.contact-copy h2 {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--paper);
  font-size: clamp(2.4rem, 4.5vw, 4.3rem);
}

.contact-copy h2 em {
  color: var(--sun);
  font-style: normal;
}

.contact-copy > p {
  max-width: 510px;
  margin-bottom: 30px;
  color: #c8dbce;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}

.contact-email {
  display: inline-block;
  color: var(--sun);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: #ffe6a4;
  text-decoration: underline;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 243, 215, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.copy-button:hover {
  border-color: var(--sun);
  background: rgba(255, 200, 87, 0.1);
}

.copy-button.is-copied {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.copy-button svg {
  width: 15px;
  height: 15px;
}

.copy-button.is-copied svg {
  display: none;
}

.copy-button.is-copied::before {
  content: "✓";
  font-weight: 900;
}

.contact-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 12px 38px 38px 38px;
  background: var(--paper);
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.16);
  color: var(--ink);
  transform: rotate(1.2deg);
}

.contact-card::before {
  position: absolute;
  top: -12px;
  left: 30px;
  width: 74px;
  height: 24px;
  border: 2px solid rgba(21, 62, 47, 0.2);
  border-radius: 2px;
  background: var(--sun-light);
  content: "";
  opacity: 0.9;
  transform: rotate(-4deg);
}

.contact-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.contact-card__title span {
  color: var(--coral-deep);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card__lead {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.55;
}

.socials-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  list-style: none;
}

.socials-preview li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 8px 11px;
  border: 1px dashed rgba(21, 62, 47, 0.26);
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.socials-preview li span {
  color: #566a5f;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(21, 62, 47, 0.2);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-links a:hover {
  background: var(--cream);
}

.social-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(21, 62, 47, 0.2);
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.5;
}

.contact-card__email {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-card__footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.contact-card__footer::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  content: "";
}

.contact-doodle {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  opacity: 0.5;
  transform: rotate(9deg);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: clamp(44px, 6vw, 72px) 0 24px;
  background: var(--footer);
  color: #d7e4da;
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 243, 215, 0.12);
  content: "";
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.5fr) minmax(0, 0.8fr);
  gap: clamp(34px, 7vw, 92px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.footer-brand .brand {
  color: var(--paper);
}

.footer-brand .brand__games {
  color: #9fb9a8;
}

.footer-brand__slogan {
  max-width: 340px;
  margin: 24px 0 0;
  color: #b4cabb;
  font-family: var(--font-accent);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
}

.footer-heading {
  margin-bottom: 17px;
  color: #94ad9c;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: #e0ece2;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--sun);
  text-decoration: underline;
}

.footer-contact a {
  display: inline-block;
  color: var(--paper);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 243, 215, 0.4);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.footer-contact a:hover {
  color: var(--sun);
  text-decoration-color: currentColor;
}

.footer-contact p {
  margin-top: 13px;
  color: #9fb9a8;
  font-size: 0.79rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 243, 215, 0.12);
  color: #86a18f;
  font-size: 0.72rem;
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #b8ccbd;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-star {
  position: absolute;
  right: 5%;
  bottom: 24%;
  width: 86px;
  height: 86px;
  color: rgba(255, 200, 87, 0.15);
  pointer-events: none;
  transform: rotate(12deg);
}

/* --------------------------------------------------------------------------
   Subpages
   -------------------------------------------------------------------------- */

.page-hero {
  display: flex;
  position: relative;
  align-items: center;
  min-height: min(860px, 92svh);
  padding-top: calc(var(--header-height) + clamp(34px, 6vh, 80px));
  padding-bottom: clamp(100px, 12vh, 150px);
}

.page-hero__grid {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.8fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
}

.page-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(22px, 3vw, 34px);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  color: rgba(21, 62, 47, 0.4);
  content: "/";
}

.breadcrumbs a {
  text-decoration: none;
  text-underline-offset: 4px;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-hero h1 {
  margin-bottom: 20px;
  color: var(--ink-deep);
  font-size: clamp(3rem, 6vw, 6.1rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.page-hero h1 em {
  position: relative;
  z-index: 0;
  font-style: normal;
  white-space: nowrap;
}

.page-hero h1 em::before {
  position: absolute;
  inset: 14% -0.06em 4%;
  z-index: -1;
  border-radius: 48% 52% 44% 56% / 62% 42% 58% 38%;
  background: var(--sun);
  content: "";
  transform: rotate(-1.5deg);
}

.page-hero__lead {
  max-width: 560px;
  margin-bottom: 25px;
  color: #244d3c;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.72;
}

.page-hero__actions {
  margin-bottom: 22px;
}

.page-hero__note {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  padding: 7px 11px;
  border: 1px solid rgba(21, 62, 47, 0.13);
  border-radius: 12px;
  background: rgba(255, 250, 240, 0.84);
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.cover-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(10px, 1.3vw, 14px);
  border: 3px solid var(--ink);
  border-radius: clamp(26px, 3vw, 36px);
  background: var(--paper);
  box-shadow: 14px 16px 0 rgba(21, 62, 47, 0.13), 0 32px 70px rgba(21, 62, 47, 0.16);
  transform: rotate(2deg);
}

.cover-frame__image {
  width: 100%;
  border-radius: clamp(17px, 2.1vw, 25px);
}

.cover-frame__badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  z-index: 2;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-4deg);
}

.cover-frame__caption {
  margin: 12px 5px 1px;
  color: var(--ink-soft);
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.page-body {
  position: relative;
  z-index: 2;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21, 62, 47, 0.05) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
}

.page-section {
  position: relative;
  padding-block: clamp(64px, 8vw, 112px);
}

.page-section--tinted {
  margin-inline: clamp(8px, 1.5vw, 20px);
  border-radius: clamp(30px, 4vw, 60px);
  background: var(--mint);
}

.page-section__head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.page-section__head h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.3vw, 3.9rem);
}

.page-section__head h2 em,
.split-feature__copy h2 em,
.page-cta h2 em {
  color: var(--coral-deep);
  font-style: normal;
}

.page-section__head p {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

/* Game feature tiles */

.learn-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.learn-card {
  position: relative;
  min-height: 188px;
  padding: clamp(22px, 2.6vw, 30px);
  border: 2px solid rgba(21, 62, 47, 0.14);
  border-radius: 28px 28px 44px 28px;
  background: #fffdf7;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.learn-card:nth-child(2) {
  border-radius: 44px 28px 28px 28px;
  background: #f5eedb;
}

.learn-card:nth-child(3) {
  border-radius: 28px 44px 28px 28px;
  background: #e8f2df;
}

.learn-card:nth-child(4) {
  border-radius: 28px 28px 28px 44px;
  background: #e8f2df;
}

.learn-card:nth-child(5) {
  border-radius: 28px 28px 44px 28px;
  background: #f5eedb;
}

.learn-card:nth-child(6) {
  border-radius: 44px 28px 28px 28px;
  background: #fffdf7;
}

.learn-card:hover {
  box-shadow: 0 16px 34px rgba(21, 62, 47, 0.09);
  transform: translateY(-3px);
}

.learn-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.learn-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 15px 18px 15px 20px;
  background: var(--sun);
  box-shadow: 3px 4px 0 rgba(21, 62, 47, 0.14);
  transform: rotate(-4deg);
}

.learn-card:nth-child(2) .learn-card__icon {
  background: #f5b39d;
  transform: rotate(3deg);
}

.learn-card:nth-child(3) .learn-card__icon {
  background: #b7df9e;
  transform: rotate(-2deg);
}

.learn-card:nth-child(4) .learn-card__icon {
  background: #a9dcdd;
  transform: rotate(4deg);
}

.learn-card:nth-child(5) .learn-card__icon {
  background: #f4d58e;
  transform: rotate(-3deg);
}

.learn-card:nth-child(6) .learn-card__icon {
  background: #d3c3eb;
  transform: rotate(2deg);
}

.learn-card__icon svg {
  width: 28px;
  height: 28px;
}

.learn-card__number {
  color: #5d7165;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.learn-card h3 {
  margin-bottom: 7px;
  font-size: 1.23rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.learn-card p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.56;
}

.learn-card__letter {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Game detail split & timeline */

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

.split-feature__art {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
}

.split-feature__art::before {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 40% 60% / 50% 44% 56% 50%;
  background: var(--sun-light);
  content: "";
  opacity: 0.55;
  transform: rotate(-4deg);
}

.split-feature__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 20px 28px rgba(21, 62, 47, 0.14));
}

.split-feature__copy h2 {
  margin-bottom: 19px;
  font-size: clamp(2.1rem, 4.1vw, 3.7rem);
}

.split-feature__copy h2 em {
  color: var(--coral-deep);
  font-style: normal;
}

.split-feature__copy p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 44px);
  margin-top: clamp(38px, 4vw, 54px);
  list-style: none;
}

.steps::before {
  position: absolute;
  top: 22px;
  right: 12%;
  left: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(21, 62, 47, 0.24) 0 7px, transparent 7px 14px);
  content: "";
}

.step {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.step__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
}

.step:nth-child(2) .step__number {
  background: var(--sun-light);
}

.step:nth-child(3) .step__number {
  background: #cce5c1;
}

.step h3 {
  margin-bottom: 7px;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.parents-note {
  position: relative;
  max-width: 900px;
  margin: clamp(48px, 6vw, 78px) auto 0;
  padding: clamp(26px, 4vw, 44px);
  border: 2px solid rgba(21, 62, 47, 0.16);
  border-radius: 18px 48px 48px 48px;
  background: var(--cream);
}

.parents-note::before {
  position: absolute;
  top: -13px;
  left: 34px;
  width: 62px;
  height: 23px;
  border: 2px solid rgba(21, 62, 47, 0.18);
  border-radius: 2px;
  background: var(--sun-light);
  content: "";
  transform: rotate(-3deg);
}

.parents-note h2,
.parents-note h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.parents-note p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.parents-note p:last-child {
  margin-bottom: 0;
}

.inline-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.inline-link:hover {
  color: var(--coral-deep);
}

/* Page call to action */

.page-cta {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 60px);
  margin: clamp(30px, 4vw, 48px) 0 0;
  padding: clamp(30px, 4.4vw, 52px);
  border-radius: clamp(28px, 3.8vw, 42px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.page-cta::before {
  position: absolute;
  top: -90px;
  right: -20px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 50%;
  content: "";
}

.page-cta h2 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin-bottom: 10px;
  color: var(--paper);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.page-cta p {
  position: relative;
  z-index: 1;
  color: #bcd1c2;
  font-size: 0.95rem;
}

.page-cta .button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

/* About page additional */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.principle {
  padding-top: 22px;
  border-top: 2px solid rgba(21, 62, 47, 0.16);
}

.principle__index {
  margin-bottom: 16px;
  color: var(--coral-deep);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.principle h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.68;
}

.about-manifesto {
  position: relative;
  max-width: 940px;
  margin: clamp(38px, 5vw, 62px) auto 0;
  padding: clamp(32px, 5vw, 58px) clamp(24px, 5vw, 72px);
  border: 2px solid rgba(21, 62, 47, 0.16);
  border-radius: 44px 16px 44px 44px;
  background: #fffdf8;
  text-align: center;
}

.about-manifesto p {
  margin-bottom: 0;
  font-family: var(--font-accent);
  font-size: clamp(1.35rem, 2.7vw, 2.15rem);
  font-style: italic;
  line-height: 1.4;
}

.about-manifesto::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 70px;
  height: 25px;
  border: 2px solid rgba(21, 62, 47, 0.18);
  background: var(--sun-light);
  content: "";
  transform: translateX(-50%) rotate(2deg);
}

/* Contact page */

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-page-card {
  padding: clamp(28px, 4vw, 50px);
  border: 2px solid rgba(21, 62, 47, 0.16);
  border-radius: clamp(28px, 3.5vw, 42px);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.contact-page-card h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.7vw, 3.4rem);
}

.contact-page-card > p {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.72;
}

.contact-page-card .contact-email-row {
  margin-top: 28px;
}

.contact-page-card .contact-email {
  color: var(--coral-deep);
}

.contact-page-card .copy-button {
  border-color: rgba(21, 62, 47, 0.26);
  color: var(--ink);
}

.contact-page-card .copy-button:hover {
  border-color: var(--ink);
  background: var(--cream);
}

.contact-page-card .copy-button.is-copied {
  border-color: var(--sun);
  background: var(--sun);
  color: var(--ink);
}

.contact-page-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed rgba(21, 62, 47, 0.2);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.contact-page-card__meta::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--leaf);
  content: "";
}

.contact-side {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 10px 34px 34px 34px;
  background: var(--mint);
}

.contact-side__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.contact-side > p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 0.83rem;
  line-height: 1.6;
}

.contact-side .socials-preview li {
  background: rgba(255, 250, 240, 0.5);
}

.contact-side .social-note {
  margin-top: 16px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin-top: clamp(34px, 4vw, 48px);
}

.faq-item {
  border: 1px solid rgba(21, 62, 47, 0.18);
  border-radius: 18px;
  background: #fffdf8;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 16px 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(21, 62, 47, 0.25);
  border-radius: 50%;
  content: "+";
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Privacy and legal */

.legal-hero {
  padding-top: calc(var(--header-height) + clamp(54px, 9vh, 96px));
  padding-bottom: clamp(48px, 7vw, 76px);
}

.legal-hero h1 {
  max-width: 850px;
  margin-bottom: 18px;
  color: var(--ink-deep);
  font-size: clamp(2.7rem, 5.4vw, 5rem);
}

.legal-hero p {
  max-width: 700px;
  color: #244d3c;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-body {
  position: relative;
  z-index: 2;
  padding: 0 0 clamp(70px, 9vw, 120px);
  background: var(--paper);
}

.legal-card {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 2px solid rgba(21, 62, 47, 0.14);
  border-radius: clamp(26px, 4vw, 44px);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.legal-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(21, 62, 47, 0.15);
  color: var(--ink-soft);
  font-size: 0.77rem;
}

.legal-card h2 {
  margin: 32px 0 12px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: -0.03em;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.74;
}

.legal-card ul {
  padding-left: 21px;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-card p + p {
  margin-top: 12px;
}

.legal-back {
  margin-top: 34px;
}

/* Error page */

.error-page {
  display: flex;
  position: relative;
  align-items: center;
  min-height: 100svh;
  padding-top: var(--header-height);
  padding-bottom: 60px;
}

.error-card {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.error-card__code {
  position: relative;
  z-index: 0;
  margin-bottom: 8px;
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(7rem, 22vw, 16rem);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.error-card__code::before {
  position: absolute;
  inset: 20% 8% 2%;
  z-index: -1;
  border-radius: 48% 52% 44% 56% / 62% 42% 58% 38%;
  background: var(--sun);
  content: "";
  transform: rotate(-2deg);
}

.error-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.error-card p {
  max-width: 500px;
  margin: 0 auto 28px;
  color: #244d3c;
  font-size: 1rem;
  line-height: 1.7;
}

.error-card .button-row {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Shared decorative media and simple helpers
   -------------------------------------------------------------------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-link svg {
  width: 14px;
  height: 14px;
}

.copy-status:empty {
  display: none;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 62, 47, 0.18);
  border-radius: 13px;
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.55;
}

.notice::before {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
}

/* No-JS fallback keeps everything readable. */
.no-js .world-canvas {
  display: block;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Page-specific visual accents
   -------------------------------------------------------------------------- */

.about-figure--page {
  justify-self: end;
  width: min(94%, 470px);
  margin: 0;
}

.letter-figure {
  position: relative;
  justify-self: end;
  width: min(100%, 430px);
  margin: 0;
  padding: 16px;
}

.letter-figure::before {
  position: absolute;
  inset: 9% 2% 6% 7%;
  border-radius: 48% 52% 44% 56% / 42% 48% 52% 58%;
  background: #ffe7a0;
  content: "";
  opacity: 0.7;
  transform: rotate(7deg);
}

.letter-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 24px 36px rgba(21, 62, 47, 0.16));
  animation: artFloat 8.5s 0.4s ease-in-out infinite;
}

.learn-card__letter--numbers {
  font-size: 1rem;
  letter-spacing: -0.06em;
}

.error-card .eyebrow {
  justify-content: center;
}

.error-card__code {
  margin-bottom: 14px;
}

.error-card .page-hero__note {
  max-width: 460px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  text-align: center;
}

/* Without JavaScript, keep navigation and content fully available rather than
   hiding essential links behind a button that cannot work. */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

html:not(.js) .mobile-menu {
  position: static;
  width: auto;
  max-height: none;
  margin-top: 14px;
  padding: 10px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  transform: none;
}

html:not(.js) .menu-toggle {
  display: none;
}

@media (max-width: 880px) {
  html:not(.js) .site-header {
    position: relative;
    background: var(--paper);
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
  }

  html:not(.js) .mobile-menu {
    width: 100%;
    order: 3;
  }
}

.hero .eyebrow,
.page-hero .eyebrow,
.legal-hero .eyebrow {
  color: var(--ink);
}

.error-card .page-hero__note {
  background: rgba(255, 250, 240, 0.88);
}
/* --------------------------------------------------------------------------
   Official game media & verified content
   -------------------------------------------------------------------------- */

.game-card__cover--screenshot {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-card__screen-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(21, 62, 47, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--ink);
  font-size: 0.61rem;
  font-weight: 700;
  line-height: 1.3;
  backdrop-filter: blur(6px);
}

.trailer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 4px;
}

.trailer-link:hover {
  color: var(--coral-deep);
  text-decoration: underline;
}

.trailer-link__play,
.button__play {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.55rem;
  line-height: 1;
  text-indent: 1px;
}

.button__play {
  width: 20px;
  height: 20px;
  border-color: rgba(21, 62, 47, 0.4);
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}

.game-stats li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.35;
}

.game-stats strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.screenshots-section {
  margin-top: clamp(56px, 7vw, 92px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px dashed rgba(21, 62, 47, 0.2);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.screenshot-card {
  margin: 0;
  border: 2px solid rgba(21, 62, 47, 0.14);
  border-radius: 24px 24px 34px 24px;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(21, 62, 47, 0.07);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.screenshot-card:nth-child(3n + 2) {
  border-radius: 34px 24px 24px 24px;
}

.screenshot-card:nth-child(3n) {
  border-radius: 24px 34px 24px 24px;
}

.screenshot-card:hover {
  box-shadow: 0 18px 38px rgba(21, 62, 47, 0.12);
  transform: translateY(-3px);
}

.screenshot-card > a {
  display: block;
  position: relative;
  color: var(--paper);
  text-decoration: none;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.screenshot-card:hover img {
  transform: scale(1.025);
}

.screenshot-card__open {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 48, 36, 0.8);
  color: var(--paper);
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.screenshot-card:hover .screenshot-card__open,
.screenshot-card > a:focus-visible .screenshot-card__open {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 15px 15px;
}

.screenshot-card figcaption strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.screenshot-card figcaption span {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.screenshots-section .notice {
  max-width: 760px;
  margin-top: 18px;
}

.feature-list {
  display: grid;
  gap: 6px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  content: "";
  box-shadow: 0 0 0 2px rgba(255, 200, 87, 0.2);
}

.page-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 0 auto;
}

.game-gallery-link {
  margin: 14px 0 0;
  font-size: 0.82rem;
}

.game-card__modes-link {
  margin: -2px 0 16px;
  font-size: 0.8rem;
}
