/* Wry Agency: tek stil dosyası. Yeni uygulama kendi [data-app] renk bloğunu ekler. */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Baloo2_700Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/Baloo2_800ExtraBold.ttf") format("truetype");
}

:root {
  --ink: #1e1b24;
  --cream: #fff4e6;
  --battery: #ffc23c;
  --coral: #ff8a65;
  --coral-dark: #9c3b26;
  --lcd: #c7d3a0;
  --lcd-ink: #2c3a2a;
  --bg: var(--cream);
  --text: var(--ink);
  --accent: var(--battery);   /* dolgu rengi (üstüne --ink yazı gelir) */
  --link: var(--ink);         /* metin bağlantısı, krem zeminde kontrastı yeterli */
  --panel: #ffffff;
  --panel-text: var(--ink);
  --muted: #5a5563;
  --line: rgba(30, 27, 36, 0.14);
  --radius: 24px;
  --shadow: 0 1px 2px rgba(30, 27, 36, 0.06), 0 12px 30px -14px rgba(30, 27, 36, 0.3);
  --shadow-lift: 0 2px 4px rgba(30, 27, 36, 0.08), 0 24px 44px -16px rgba(30, 27, 36, 0.4);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 112px;          /* mobilde iki satır (marka + menü) */
  --font-head: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body[data-app="zippy"] {
  --accent: var(--coral);
  --link: var(--coral-dark);
  --panel: var(--lcd);
  --panel-text: var(--lcd-ink);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 1.6em 0 0.5em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
h1 { font-size: clamp(2.5rem, 9vw, 4.4rem); font-weight: 800; margin-top: 0.2em; }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.hero-studio :focus-visible, .site-footer :focus-visible { outline-color: var(--battery); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 50;
}
.skip-link:focus { top: 8px; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 70ch; }

/* Üst şerit: yapışkan, yarı saydam */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 244, 230, 0.82);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; transition: transform 0.4s var(--bounce); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.site-header .lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.site-header .lang-switch:hover { background: var(--accent); transform: translateY(-1px); }
.site-header .wrap { flex-wrap: wrap; padding-top: 8px; }
.site-nav { order: 3; flex-basis: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 4px; margin: 0 -6px; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s;
}
.site-nav a:hover { background: rgba(30, 27, 36, 0.07); }
.site-nav a[aria-current="page"] { background: var(--accent); }

main { padding-bottom: 88px; }
.section { padding-top: 80px; }
h2:first-child { margin-top: 0; }

/* Uygulama alt menüsü */
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}
.subnav a:hover { background: var(--accent); transform: translateY(-1px); }
.subnav a[aria-current="page"] { background: var(--accent); }

/* Genel hero (404) */
.hero { padding: 48px 0 16px; }
.lead { font-size: 1.2rem; max-width: 56ch; }

/* Ana hero: koyu zemin, piksel ızgara, süzülen renk lekeleri */
.hero-studio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 64px 0 88px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 244, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 230, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--cream);
}
.hero-studio::before, .hero-studio::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-studio::before { width: 420px; height: 420px; background: var(--battery); top: -180px; right: -140px; }
.hero-studio::after { width: 380px; height: 380px; background: var(--coral); bottom: -200px; left: -140px; animation-duration: 23s; animation-direction: alternate-reverse; }
.hero-studio .wrap { display: grid; gap: 28px; align-items: center; }
.hero-studio h1 { margin: 0 0 16px; color: var(--cream); }
.hero-studio .lead { color: rgba(255, 244, 230, 0.85); }
.hero-studio .lead, .hero-studio .cta { animation: fade-up 0.7s 0.45s ease-out both; }
.hero-studio .cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.hero-page { padding: 56px 0 64px; }

.words span { display: inline-block; animation: word-in 0.75s var(--bounce) both; }
.words span:nth-child(2) { animation-delay: 0.12s; }
.hero-studio:not(.hero-page) .words span:nth-child(2) { color: var(--battery); }
.words span:nth-child(3) { animation-delay: 0.24s; }

/* Wry rozeti: sallanır, sarı göz kırpar */
.badge-wry {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  box-shadow: 0 0 0 2px rgba(255, 244, 230, 0.18), 0 24px 60px -12px rgba(255, 194, 60, 0.5);
  animation: bob 6s ease-in-out infinite;
}
.badge-wry .eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.hero-studio .btn, .cta-band .btn { box-shadow: 0 4px 0 var(--cream); }
.hero-studio .btn:hover, .cta-band .btn:hover { box-shadow: 0 6px 0 var(--cream); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 244, 230, 0.12); }

.more { margin: 16px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; }
.more a::after { content: "→"; content: "→" / ""; transition: transform 0.2s; }
.more a:hover::after { transform: translateX(4px); }

/* Kutular */
.box {
  margin: 16px 0 24px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--panel-text);
  box-shadow: var(--shadow);
}
.box a { color: inherit; font-weight: 700; }
.box p:last-child { margin-bottom: 0; }
.split { display: grid; gap: 32px; }

/* Vurgu şeridi */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stats li {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.stats li:nth-child(1) { background: var(--battery); }
.stats li:nth-child(4) { background: var(--lcd); }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 6vw, 2.5rem); font-weight: 800; line-height: 1.05; }
.stats span { font-weight: 600; }

/* Oyun kartı (ana sayfa, oyunlar) */
.game-card {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.game-card h2, .game-card h3 { margin: 0 0 8px; font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 800; }
.game-body { padding: 0 4px 8px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--battery);
  font-size: 0.9rem;
  font-weight: 700;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { padding: 2px 12px; border: 1px solid rgba(30, 27, 36, 0.25); border-radius: 999px; background: var(--cream); font-size: 0.9rem; font-weight: 600; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s;
}
.links a:not(.btn):hover { background: var(--battery); }
.games { display: grid; gap: 24px; }

.card-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 32px 20px;
  border: 3px dashed rgba(30, 27, 36, 0.35);
  border-radius: 32px;
  text-align: center;
  color: var(--muted);
}
.card-soon svg { width: 48px; height: 48px; margin-bottom: 8px; color: var(--battery); animation: twinkle 2.4s ease-in-out infinite; }
.card-soon h2 { margin: 0 0 4px; color: var(--ink); font-size: 1.6rem; }
.card-soon p { margin: 0; }

/* Kişiler */
.people { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.person {
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}
.person h3 { margin: 16px 0 2px; font-size: 1.5rem; }
.role { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.avatar {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* Baloo 2 büyük "İ"yi küçük çiziyor */
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-4deg);
  transition: transform 0.4s var(--bounce);
}
.person:hover .avatar { transform: rotate(4deg) scale(1.05); }
.avatar-a { background: var(--battery); }
.avatar-b { background: var(--coral); }
.email { margin: 0 0 12px; font-weight: 700; }
.email a { display: inline-flex; align-items: center; min-height: 44px; }
.copy {
  display: inline-block;
  padding: 6px 10px;
  border: 1px dashed rgba(30, 27, 36, 0.35);
  border-radius: 8px;
  background: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

/* Kapanış çağrısı */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 40px 24px;
  border-radius: 32px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 244, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 230, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--cream);
}
.cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -160px;
  border-radius: 50%;
  background: var(--battery);
  filter: blur(70px);
  opacity: 0.4;
  animation: drift 20s ease-in-out infinite alternate;
}
.cta-band h2 { margin: 0 0 8px; color: var(--cream); }
.cta-band p { margin: 0; color: rgba(255, 244, 230, 0.85); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band :focus-visible { outline-color: var(--battery); }

.notice {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
}
.soon { font-weight: 700; }
.meta { color: var(--muted); }

/* Uygulama tanıtım hero'su: mercan zemin + LCD çerçeve */
.hero-app {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 24px 20px 32px;
  border: 2px solid var(--ink);
  border-radius: 32px;
  background: linear-gradient(160deg, #ffb294, var(--coral) 55%, #f2754f);
  box-shadow: var(--shadow);
}
.hero-app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(30, 27, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 27, 36, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
}
.hero-app h1 { margin: 0 0 12px; animation: word-in 0.75s var(--bounce) both; }
.hero-app .lead, .hero-app .notice, .hero-app .soon { animation: fade-up 0.7s 0.3s ease-out both; }
.hero-app .soon { margin: 0; }

.lcd {
  position: relative;
  overflow: hidden;
  padding: 28px 16px 24px;
  border: 10px solid var(--coral-dark);
  border-radius: 24px;
  background: var(--lcd);
  box-shadow: inset 0 4px 14px rgba(44, 58, 42, 0.35), 0 10px 0 -2px rgba(30, 27, 36, 0.25);
}
.lcd::before { /* tarama çizgileri */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(44, 58, 42, 0.07) 0 2px, transparent 2px 4px);
}
.lcd::after { /* ekranı yavaşça geçen parlak şerit */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: scan 5s linear infinite;
}
.lcd .logo { display: block; width: 100%; max-width: 380px; margin: 0 auto; animation: squish 2.6s ease-in-out infinite; }
.lcd-cursor {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 12px;
  height: 16px;
  background: var(--lcd-ink);
  animation: cursor 1.1s steps(1) infinite;
}

/* Özellik / değer kartları */
.features, .values { display: grid; gap: 16px; padding: 0; margin: 0 0 24px; list-style: none; }
.feature, .value {
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s;
}
.feature:hover, .value:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: var(--shadow-lift); }
.feature h3, .value h3 { margin: 14px 0 6px; }
.feature p, .value p { margin: 0; }
.value .more { margin-top: 8px; }
.ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--lcd-ink);
  border-radius: 14px;
  background: var(--lcd);
  color: var(--lcd-ink);
}
.ico svg { width: 32px; height: 32px; }
.feature:hover .ico svg, .value:hover .ico svg { animation: hop 0.6s var(--bounce); }

/* Zippy: amaç listesi */
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #ffffff;
  font-weight: 700;
}
.checks li::before { content: ""; flex: none; width: 14px; height: 14px; background: var(--coral); box-shadow: inset 0 0 0 3px var(--coral-dark); }

/* Koyu bant: mini oyun kartuşları */
.section-dark {
  margin-top: 80px;
  padding: 72px 0 80px;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 244, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 244, 230, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--cream);
}
.section-dark h2 { margin-top: 0; color: var(--cream); }
.section-dark .lead { color: rgba(255, 244, 230, 0.85); }
.section-dark :focus-visible { outline-color: var(--battery); }
.cartridges { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.cartridge {
  padding: 16px 16px 20px;
  border: 2px solid #000000;
  border-radius: 18px 18px 8px 8px;
  background: var(--coral);
  color: var(--ink);
  box-shadow: 0 8px 0 var(--coral-dark);
  transition: transform 0.3s var(--bounce);
}
.cartridge:hover { transform: translateY(-6px) rotate(-1deg); }
.cart-no { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.1em; }
.cartridge h3 {
  margin: 6px 0 12px;
  padding: 10px 12px;
  border: 2px solid var(--lcd-ink);
  border-radius: 8px;
  background: var(--lcd);
  color: var(--lcd-ink);
  font-size: 1.15rem;
}
.cartridge p { margin: 0; font-size: 0.95rem; font-weight: 600; }

/* Politika / destek: sakin, okunur */
.doc { font-size: 1.0625rem; }
.doc h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin-top: 0; }
.doc h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2em; }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc-layout { display: grid; gap: 28px; margin-top: 24px; }
nav + .doc { margin-top: 32px; }
.doc-layout > article > :first-child { margin-top: 0; }
.toc {
  padding: 16px 20px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: #ffffff;
}
.toc-title { margin: 0 0 4px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; padding: 0; list-style: none; }
.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
  text-decoration: none;
}
.toc a:hover { color: var(--link); text-decoration: underline; }

/* Alt bilgi */
.site-footer {
  border-radius: 32px 32px 0 0;
  background: var(--ink);
  color: rgba(255, 244, 230, 0.8);
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 16px; padding-bottom: 16px; }
.site-footer p { margin: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-weight: 600; }
.site-footer .brand { color: var(--cream); text-decoration: none; }
.site-footer .brand img { border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 244, 230, 0.3); }
.footer-grid { display: grid; gap: 24px; padding: 32px 0 24px; }
.footer-title { font-family: var(--font-head); font-weight: 700; color: var(--battery); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 244, 230, 0.14);
}

/* Kaydırınca belirme: sınıfı site.js ekler, JS yoksa içerik zaten görünür */
.reveal:nth-child(2) { --d: 0.08s; }
.reveal:nth-child(3) { --d: 0.16s; }
.reveal:nth-child(4) { --d: 0.24s; }
.reveal:nth-child(5) { --d: 0.32s; }

@keyframes drift { to { transform: translate(-50px, 40px) scale(1.18); } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.45em) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.1); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes squish {
  0%, 100% { transform: translateY(0) scale(1.02, 0.98); }
  45% { transform: translateY(-12px) scale(0.99, 1.01); }
}
@keyframes scan { to { transform: translateY(440%); } }
@keyframes cursor { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.3; } }
@keyframes twinkle { 50% { transform: scale(1.15) rotate(12deg); } }

@media (min-width: 640px) {
  .features, .values, .people { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr auto; padding: 48px; }
  .game-card { padding: 24px; }
  .hero-app { padding: 40px; }
}

@media (min-width: 900px) {
  :root { --header-h: 68px; }
  .site-header .wrap { flex-wrap: nowrap; padding-top: 0; }
  .site-nav { order: 0; flex-basis: auto; margin-left: auto; }
  .site-nav ul { margin: 0; gap: 4px; }
  .site-nav a { padding: 0 14px; font-size: 1rem; }
  .hero-studio { padding: 96px 0 120px; }
  .hero-page { padding: 88px 0 96px; }
  .game-card { grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 32px; }
  .hero-studio .wrap { grid-template-columns: 1fr auto; gap: 56px; }
  .hero-studio .badge-wry { order: 2; width: 240px; height: 240px; border-radius: 64px; }
  .hero-app { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; }
  .hero-app .lcd { order: 2; }
  .features, .values { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); }
  .toc ol { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.6s ease-out var(--d, 0s), translate 0.7s var(--bounce) var(--d, 0s),
      transform 0.3s var(--bounce), box-shadow 0.3s;
  }
  .js .reveal.is-visible { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
