/* 게코게임즈 site, in 냥냥비행단's own look (cat_shoot src/styles/theme.css, components.css, battle.css):
   그리운 팝콘체, warm pastels on cream paper, ink borders with hard drop shadows, pill buttons that press
   down, the guide call's radio panel; a night sky (the app icon's) with the game's winged cats flying. */

/* 그리운 팝콘체 (GRIUN): free for every use; the file ships whole, never altered. Fredoka (OFL, licenses/) for English. */
@font-face { font-family: 'NostalgicPopcorn'; src: url('assets/fonts/Griun_Popcorn-Rg.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'NyangLatin'; src: url('assets/fonts/NyangLatin.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #fff6e9;
  --cream-2: #ffeedd;
  --peach: #ffc7a6;
  --mint: #b8efd6;
  --mint-2: #7fdcb3;
  --pink: #ffc6d8;
  --pink-2: #ff97b8;
  --paper: #fffaf3;
  --ink: #2b2340;
  --ink-2: #4a3f66;
  --ink-soft: #7a6f96;
  --line: rgba(43, 35, 64, 0.14);
  --gold: #ffcf3e;
  --em: #e2426e;
  --red: #ff6f5e;
  --blue: #6fa6ff;
  --violet: #b48cff;
  --sky-1: #2a1b5e;
  --sky-2: #5b2f8f;
  --sky-3: #c0569a;
  --font: 'NostalgicPopcorn', 'Jua', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  /* long reading (documents, the blog): Windows' ClearType fonts first (the user, 2026-10-22: "가독성 좋은
     클리어타입으로": Segoe UI, 맑은 고딕, メイリオ on Japanese pages), then each other system's own */
  --read: 'Segoe UI', 'Malgun Gothic', '맑은 고딕', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, sans-serif;
  --border: 0.22rem solid var(--ink);
  --shadow: 0 0.38rem 0 var(--ink);
  --ease-pop: cubic-bezier(.2, 1.6, .4, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  /* one sprite pixel on screen (the cats are drawn 1×; shown at whole multiples) */
  --px: 3px;
}
html:lang(en) { --font: 'NyangLatin', 'NostalgicPopcorn', system-ui, sans-serif; }
/* Japanese (the blog only): kana and kanji from the system's own Japanese fonts; lines may break between any two
   characters, as Japanese does (keep-all would keep a whole sentence on one line) */
html:lang(ja) {
  --font: 'NyangLatin', 'Meiryo', 'メイリオ', 'Yu Gothic UI', 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
  --read: 'Segoe UI', 'Meiryo', 'メイリオ', 'Yu Gothic UI', -apple-system, 'Hiragino Sans', 'Noto Sans JP', system-ui, sans-serif;
}
html:lang(ja) body { word-break: normal; line-break: strict; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--font);
  background: var(--cream) radial-gradient(circle, var(--cream-2) 0.16rem, transparent 0.2rem) 0 0 / 1.6rem 1.6rem;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--em); }
.flyer img, .guide-face img, .contact-face { image-rendering: pixelated; }
.soft { color: var(--ink-soft); font-size: 0.92rem; }
:focus-visible { outline: 0.2rem solid var(--gold); outline-offset: 0.2rem; }

/* ---------- buttons: pills with a hard shadow that press down (the game's .btn) ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3rem; padding: 0 1.3rem;
  border: var(--border); border-radius: 99rem;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1.08rem; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.08s var(--ease-out), box-shadow 0.08s var(--ease-out), filter 0.1s;
}
.btn:hover { transform: translateY(-0.12rem); box-shadow: 0 0.5rem 0 var(--ink); filter: brightness(1.04); }
.btn:active { transform: translateY(0.3rem); box-shadow: 0 0.08rem 0 var(--ink); }
.btn.primary { background: var(--red); color: #fff; text-shadow: 0 0.12rem 0 rgba(0, 0, 0, 0.25); }
.btn.blue { background: var(--blue); color: #fff; text-shadow: 0 0.12rem 0 rgba(0, 0, 0, 0.2); }
.btn.dark { background: #000; color: #fff; }
.x-mark { width: 0.95em; height: 0.95em; flex: none; }
/* a small tag inside a button (the X account's language) */
.btn-note { padding: 0 0.5rem; border-radius: 99rem; background: rgba(255, 255, 255, 0.22); font-size: 0.72rem; line-height: 1.6; }
.btn.big { min-height: 3.6rem; padding: 0 1.7rem; font-size: 1.25rem; }
.btn.tiny { min-height: 2.2rem; padding: 0 0.9rem; font-size: 0.92rem; border-width: 0.18rem; box-shadow: 0 0.25rem 0 var(--ink); }
/* stickers: a coloured label slapped on at an angle */
.sticker {
  display: inline-block; margin: 0;
  padding: 0.15rem 0.85rem;
  border: var(--border); border-radius: 0.7rem;
  background: var(--paper); color: var(--ink); box-shadow: 0 0.28rem 0 var(--ink);
  font-size: 1.05rem;
}
.sticker.gold { background: var(--gold); }
.sticker.tilt { transform: rotate(-3deg); }

/* section headings: an ink ribbon */
.ribbon {
  display: inline-block; margin: 0 0 1.2rem;
  padding: 0.25rem 1.2rem;
  background: var(--ink); color: var(--cream);
  border-radius: 0.8rem; font-size: 1.6rem; font-weight: normal;
  box-shadow: 0 0.35rem 0 var(--pink-2);
  transform: rotate(-1.5deg);
}
.ribbon.pink { background: var(--em); box-shadow: 0 0.35rem 0 var(--ink); }

/* ---------- the sky ---------- */
.sky {
  position: relative; overflow: hidden;
  color: var(--cream);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 55%, var(--sky-3) 100%);
}
.sky.slim { padding-bottom: 5.5rem; }
.stars i { position: absolute; display: block; animation: twinkle 2.4s ease-in-out infinite; opacity: 0.85; }
.stars svg { display: block; width: 100%; height: 100%; }
@keyframes twinkle { 0%, 100% { transform: scale(0.45) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.streaks i {
  position: absolute; right: -12rem; height: 0.18rem; border-radius: 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent);
  animation: streak 1.3s linear infinite;
}
@keyframes streak { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 16rem)); } }
.sky.slim .streaks i:nth-child(n+4) { display: none; }
/* the bottom of the sky: a strip of pixel clouds in the page's cream */
.cloud-edge {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3rem; z-index: 2;
  background: url('assets/clouds.svg') repeat-x left bottom / 10rem 3rem;
}

.bar {
  position: relative; z-index: 3;
  max-width: 1120px; margin: 0 auto; padding: 1rem 1rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.bar-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.6rem; }
/* the language switch: KO · EN · JA in one pill, the page's own language marked gold */
.langs {
  display: inline-flex; overflow: hidden;
  background: var(--paper); border: 0.18rem solid var(--ink); border-radius: 99rem; box-shadow: 0 0.25rem 0 var(--ink);
  font-family: 'NyangLatin', var(--font);
}
.langs > * { display: flex; align-items: center; min-height: 1.84rem; padding: 0 0.7rem; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.langs > * + * { border-left: 0.14rem solid var(--ink); }
.langs [aria-current] { background: var(--gold); }
.langs a:hover { background: var(--cream-2); }
.brand span { white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: inherit; text-decoration: none; font-size: 1.35rem; }
.brand svg { display: block; filter: drop-shadow(0 0.12rem 0 var(--ink)); }
.brand span { -webkit-text-stroke: 0.06em var(--ink); paint-order: stroke fill; }

/* ---------- the home page's hero ---------- */
.hero {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto; padding: 0.6rem 1rem 4.2rem;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'copy fly' 'guide fly';
  align-items: center; column-gap: 1.5rem; row-gap: 1.4rem;
}
.hero-copy { grid-area: copy; }
.formation { grid-area: fly; }
.hero .guide { grid-area: guide; max-width: 34rem; }
.logo {
  margin: 0.5rem 0 0;
  font-size: clamp(3rem, 8vw, 5.4rem); font-weight: normal; line-height: 1;
  color: var(--cream); letter-spacing: -0.03em;
  -webkit-text-stroke: 0.14em var(--ink); paint-order: stroke fill;
  text-shadow: 0 0.08em 0 var(--ink);
  animation: logo-pop 0.6s var(--ease-pop) both;
}
@keyframes logo-pop { from { transform: scale(0.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* the formation: 나비 in front, the legends in a V, every cat bobbing on its own beat */
.formation {
  position: relative;
  width: calc(var(--cols) * var(--px)); height: calc(var(--rows) * var(--px));
  animation: drift 6s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-0.6rem, -0.4rem); } to { transform: translate(0.6rem, 0.4rem); } }
.flyer {
  position: absolute; display: block;
  left: calc(var(--x) * var(--px)); top: calc(var(--y) * var(--px));
  width: calc(var(--w) * var(--px)); height: calc(var(--h) * var(--px));
  animation: bob 1.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.flyer img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
@keyframes bob { 0%, 100% { transform: translateY(calc(var(--px) * -1.5)); } 50% { transform: translateY(calc(var(--px) * 1.5)); } }
/* 전설의 무지개: six bands, one sprite pixel each, streaming out behind a 5★ */
.flyer .trail {
  position: absolute; right: calc(100% - var(--px) * 7); top: calc(var(--px) * 8);
  width: calc(var(--px) * 30); height: calc(var(--px) * 6);
  background: linear-gradient(180deg, #ff5d73 0 16.66%, #ffa24c 0 33.33%, #ffe14a 0 50%, #6fe08a 0 66.66%, #5ab8ff 0 83.33%, #b07cff 0);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%);
  animation: wave 0.32s steps(2, jump-none) infinite;
}
@keyframes wave { from { transform: translateY(0); } to { transform: translateY(var(--px)); } }

/* three cats passing over a slim sky */
.passing {
  --px: 2px;
  position: absolute; z-index: 1; right: 8%; top: 3.6rem;
  width: calc(100 * var(--px)); height: calc(36 * var(--px));
  animation: drift 4s ease-in-out infinite alternate;
}

/* ---------- 안내냥이 on the radio (the game's guide call) ---------- */
.guide {
  position: relative;
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.8rem 1.2rem 0.8rem 0.8rem;
  background: var(--paper); color: var(--ink);
  border: var(--border); border-radius: 1.2rem; box-shadow: var(--shadow);
  transform: rotate(-1.5deg);
  cursor: pointer;
}
.js .guide { opacity: 0; }
.js .guide.on { opacity: 1; animation: guide-in 0.4s var(--ease-pop); }
@keyframes guide-in { from { transform: scale(0.7) rotate(-1.5deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }
.guide-face {
  flex: none; width: 5.6rem; height: 5.6rem; border-radius: 50%;
  background: var(--mint); border: var(--border); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.guide-face img { width: 78px; height: 69px; display: block; }
.guide-body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; flex: 1; }
.guide-name { display: flex; align-items: center; gap: 0.4rem; font-size: 0.98rem; }
.guide-name small { font-size: 0.75rem; color: var(--ink-soft); }
.guide-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #ff3e6c; animation: rec-blink 0.8s steps(2, jump-none) infinite; }
@keyframes rec-blink { 50% { opacity: 0.15; } }
.guide-line { position: relative; }
.guide-text { margin: 0; min-height: 2.8em; font-size: 1.15rem; line-height: 1.4; }
.em { color: var(--em); font-weight: normal; }
/* more to say: a ▼ at the end of the sentence */
.guide-next {
  display: none; position: absolute; right: -0.5rem; bottom: -0.1rem;
  width: 1.1rem; height: 0.85rem; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: arrow-bob 0.7s ease-in-out infinite;
}
.guide.more .guide-next { display: block; }
@keyframes arrow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.4rem); } }
.guide-replay { align-self: flex-end; }
.guide-all { margin: 0; padding-left: 1.1rem; font-size: 1.05rem; line-height: 1.45; }
.js .guide-all, .no-js .guide-line, .no-js .guide-replay { display: none; }
.guide.small { max-width: 44rem; margin: -3.4rem auto 1.8rem; z-index: 3; }

/* ---------- the page under the sky ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 1rem 3.5rem; position: relative; }
.games-wrap { padding-top: 1.5rem; }

/* a game's big panel */
.game-panel {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--paper); border: var(--border); border-radius: 1.4rem;
  box-shadow: 0 0.5rem 0 var(--ink); overflow: hidden;
}
.game-media { background: var(--sky-1); border-right: var(--border); display: flex; }
.trailer { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; align-self: center; }
.game-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.title-row { display: flex; align-items: center; gap: 0.9rem; }
.icon { flex: none; border: var(--border); border-radius: 1.1rem; box-shadow: 0 0.28rem 0 var(--ink); }
.title-row h3 { margin: 0 0 0.2rem; font-size: 1.9rem; font-weight: normal; line-height: 1.1; }
.badge {
  display: inline-block; padding: 0 0.7rem;
  border: 0.18rem solid var(--ink); border-radius: 99rem;
  font-size: 0.85rem; background: var(--mint);
}
.badge.soon { background: var(--gold); }
.badge.ended { background: #ddd6ec; }
.blurb { margin: 0; font-size: 1.12rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.1rem 0.7rem; border: 0.16rem solid var(--ink); border-radius: 99rem;
  font-size: 0.92rem; background: var(--peach);
}
.chips li:nth-child(4n+2) { background: var(--mint); }
.chips li:nth-child(4n+3) { background: var(--pink); }
.chips li:nth-child(4n+4) { background: #dccbff; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.3rem 0 0; }
.pages { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin: 0.2rem 0 0; font-size: 0.92rem; }
.pages a { color: var(--ink-soft); }
/* a small label beside a heading (the ads' language) */
.tag {
  display: inline-block; padding: 0 0.55rem; vertical-align: 0.2em;
  border: 0.14rem solid var(--ink); border-radius: 99rem; background: var(--gold);
  font-size: 0.72rem; line-height: 1.5;
}

/* the game's ads: tall posters along the bottom of its panel; a tap plays one in the player */
.ad-shelf {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1rem 1.6rem;
  padding: 1.1rem 1.4rem 1.2rem;
  border-top: var(--border); background: var(--cream-2);
}
.ad-shelf-head { flex: 0 1 11rem; }
.ad-shelf h4 { margin: 0; font-size: 1.35rem; font-weight: normal; line-height: 1.2; }
.ad-shelf-head .soft { margin: 0.35rem 0 0; line-height: 1.4; }
.ad-row {
  flex: 1; min-width: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(7.5rem, 1fr); gap: 0.9rem;
  margin: 0; padding: 0.2rem 0 0.5rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.ad-row li { scroll-snap-align: start; }
.ad-card { display: flex; flex-direction: column; gap: 0.45rem; color: var(--ink); text-decoration: none; }
.ad-poster {
  position: relative; display: block; overflow: hidden;
  background: var(--sky-1); border: 0.2rem solid var(--ink); border-radius: 0.9rem; box-shadow: 0 0.3rem 0 var(--ink);
  transition: transform 0.08s var(--ease-out), box-shadow 0.08s var(--ease-out);
}
.ad-poster img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.ad-card:hover .ad-poster { transform: translateY(-0.12rem); box-shadow: 0 0.42rem 0 var(--ink); }
.ad-card:active .ad-poster { transform: translateY(0.2rem); box-shadow: 0 0.1rem 0 var(--ink); }
/* ▶ on a round red button in the middle of a poster */
.play-mark {
  --s: 2.9rem;
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: var(--red); border: 0.18rem solid var(--ink); border-radius: 50%; box-shadow: 0 0.2rem 0 var(--ink);
  transition: transform 0.12s var(--ease-pop);
}
.play-mark::after {
  content: ''; position: absolute; left: 36%; top: 50%; transform: translateY(-50%);
  border-style: solid; border-width: calc(var(--s) * 0.21) 0 calc(var(--s) * 0.21) calc(var(--s) * 0.34);
  border-color: transparent transparent transparent #fff;
}
.ad-time {
  position: absolute; right: 0.35rem; bottom: 0.35rem; padding: 0 0.45rem;
  background: rgba(20, 14, 40, 0.78); color: #fff; border-radius: 99rem; font-size: 0.75rem; line-height: 1.5;
}
.ad-name { font-size: 0.86rem; line-height: 1.3; text-align: center; }

/* the player ads open in, over a dark page: tall (9:16) or wide (16:9) */
.player { padding: 0; border: 0; background: none; overflow: visible; max-width: none; max-height: none; }
.player[open] { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.player::backdrop { background: rgba(20, 14, 40, 0.86); }
.player-frame { overflow: hidden; background: #000; border: var(--border); border-radius: 1rem; box-shadow: var(--shadow); }
.player[data-shape='tall'] .player-frame { height: min(82vh, 163vw); height: min(82dvh, 163vw); aspect-ratio: 9 / 16; }
.player[data-shape='wide'] .player-frame { width: min(92vw, 146vh); width: min(92vw, 146dvh); aspect-ratio: 16 / 9; }
.player-frame > * { display: block; width: 100%; height: 100%; border: 0; }

/* the next game: a mystery card */
.next-card {
  position: relative; margin-top: 1.6rem;
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.1rem 1.4rem;
  background: var(--ink); color: var(--cream);
  border: var(--border); border-radius: 1.4rem; box-shadow: 0 0.5rem 0 var(--sky-2);
}
.next-card h3 { margin: 0; font-size: 1.4rem; font-weight: normal; }
.next-card p { margin: 0.1rem 0 0; color: #cfc6e8; }
.next-card .sticker { position: absolute; right: 1.2rem; top: -0.9rem; transform: rotate(4deg); }
.mystery {
  flex: none; width: 4.2rem; height: 4.2rem; border-radius: 1rem;
  display: grid; place-items: center;
  background: var(--sky-2); border: 0.2rem dashed #9d8fd0;
  font-size: 2.6rem; color: var(--gold);
  animation: wobble 2.2s ease-in-out infinite;
}
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) scale(1.06); } }

/* contact */
.contact-panel {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.2rem 1.4rem;
  background: var(--pink); border: var(--border); border-radius: 1.4rem; box-shadow: 0 0.5rem 0 var(--ink);
}
.contact-face {
  flex: none; width: 5rem; height: 5rem; padding: 0.5rem 0.4rem 0;
  object-fit: contain; object-position: bottom;
  background: var(--mint); border: var(--border); border-radius: 50%;
}
.contact-text { flex: 1 1 16rem; }
.contact-panel h2 { margin: 0; font-size: 1.5rem; font-weight: normal; }
.contact-panel p { margin: 0.1rem 0 0; }

/* ---------- the dev blog: post cards (home and the blog's list) and a post on paper ---------- */
.blog-wrap { margin-top: 3rem; }
.post-list { display: grid; gap: 1.3rem; }
/* the blog's tabs (every post, then each category) beside its title, and a post's category tags */
.blog-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin: 0 0 1.2rem; }
.blog-head .ribbon { margin: 0; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-tab {
  display: inline-flex; align-items: center; min-height: 2.2rem; padding: 0 1rem;
  border: 0.18rem solid var(--ink); border-radius: 99rem; box-shadow: 0 0.22rem 0 var(--ink);
  background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.98rem;
}
a.cat-tab:hover { background: var(--gold); }
.cat-tab.on { background: var(--ink); color: var(--cream); }
.cat-tab.off { opacity: 0.45; box-shadow: none; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.45rem; }
.post-tag {
  display: inline-block; padding: 0.05rem 0.6rem; border: 0.14rem solid var(--ink); border-radius: 99rem;
  background: var(--mint); color: var(--ink); font-size: 0.8rem; font-weight: 600; line-height: 1.5; text-decoration: none;
}
a.post-tag:hover { background: var(--gold); }
.post-tag.ops { background: var(--peach); }
.post-tag.marketing { background: var(--pink); }
.post-kicker .post-tags { display: inline-flex; margin: 0 0 0 0.4rem; vertical-align: 0.05rem; }
.post-card a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center;
  overflow: hidden; color: var(--ink); text-decoration: none;
  background: var(--paper); border: var(--border); border-radius: 1.4rem; box-shadow: 0 0.5rem 0 var(--ink);
  transition: transform 0.08s var(--ease-out), box-shadow 0.08s var(--ease-out);
}
.post-card a:hover { transform: translateY(-0.12rem); box-shadow: 0 0.62rem 0 var(--ink); }
.post-card a:active { transform: translateY(0.3rem); box-shadow: 0 0.2rem 0 var(--ink); }
.post-card img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--sky-1); border-right: var(--border); }
/* the blog's words are in the reading fonts, titles bold: the site's own look stays in its frame and ribbons */
.post-card-body, .post, .post-game { font-family: var(--read); }
.post-card-body { padding: 1.1rem 1.4rem 1.2rem; }
.post-card h2, .post-card h3 { margin: 0 0 0.45rem; font-size: 1.3rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.post-card p { margin: 0.3rem 0 0; }
.post-card p:not(.soft) { font-size: 0.98rem; line-height: 1.65; }
.blog-more { margin: 1.4rem 0 0; }
/* a post: the paper sits on the clouds (lower than the guide on other pages, so the passing cats stay in sight) */
.doc-panel.post { position: relative; z-index: 3; margin-top: -1.4rem; }
.post ~ .blog-more, .post-game { max-width: 52rem; margin-left: auto; margin-right: auto; }
.post .doc { font-size: 1.0625rem; line-height: 1.8; }
.post .doc h1, .post .doc h2, .post .doc h3 { font-family: var(--read); font-weight: 700; letter-spacing: -0.01em; }
.post .doc h1 { font-size: 1.9rem; line-height: 1.3; }
.post .doc h2 { font-size: 1.3rem; }
.post .doc h3 { font-size: 1.1rem; margin: 1.6rem 0 0.4rem; }
.post-kicker { margin: 0 0 0.3rem; font-size: 0.92rem; font-weight: 600; }
.post-kicker a { color: var(--ink-soft); }
.doc figure { margin: 1.5rem 0; }
.doc figure img { display: block; width: 100%; height: auto; background: var(--sky-1); border: 0.16rem solid var(--ink); border-radius: 0.9rem; }
.doc figcaption { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.9rem; text-align: center; }
/* a post's video: our poster with the play mark, then YouTube's player in the same box (site.js playInPlace) */
.doc .film-frame {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9;
  background: #000; border: 0.16rem solid var(--ink); border-radius: 0.9rem;
}
.doc .film-frame.tall { aspect-ratio: 9 / 16; width: min(100%, 45vh); margin: 0 auto; }
.doc .film-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.doc .film-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.doc a.film-frame:hover .play-mark { transform: scale(1.08); }
.doc blockquote { margin: 1rem 0; padding: 0.8rem 1rem; background: var(--cream-2); border-left: 0.3rem solid var(--gold); border-radius: 0.6rem; }
.doc blockquote p { margin: 0; }
.doc code { padding: 0.05rem 0.35rem; border-radius: 0.35rem; background: var(--cream-2); font-family: ui-monospace, Consolas, monospace; font-size: 0.9em; }
/* a hard word in a post: a dotted line and a small "?"; its plain explanation pops up in a bubble on hover, focus
   or a tap (site.js keeps the bubble inside the screen: --dx shifts it sideways, .below opens it under the word) */
.doc .term {
  position: relative; cursor: help; border-radius: 0.25rem;
  text-decoration: underline dotted var(--sky-2) 0.12em; text-underline-offset: 0.24em;
}
.doc .term::after {
  content: '?'; display: inline-block; width: 1.1em; height: 1.1em; margin-left: 0.12em; vertical-align: 0.45em;
  border-radius: 50%; background: var(--violet); color: #fff; font: 700 0.6rem/1.1em var(--read); text-align: center;
}
.doc .term:focus { outline: none; }
.doc .term:focus-visible { outline: 0.14rem solid var(--violet); outline-offset: 0.12rem; }
/* closed, the bubble takes no room at all (hidden but laid out, the ones near the edge widened a phone's page) */
.doc .term-tip {
  display: none; position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 0.6rem);
  width: max-content; max-width: min(19rem, calc(100vw - 2rem));
  padding: 0.6rem 0.85rem; border-radius: 0.8rem; background: var(--ink); color: var(--cream);
  box-shadow: 0 0.3rem 0 rgba(43, 35, 64, 0.25);
  font: 400 0.92rem/1.6 var(--read); text-align: left; white-space: normal; cursor: auto; pointer-events: none;
  transform: translateX(calc(-50% + var(--dx, 0px)));
  transition: opacity 0.15s, transform 0.15s var(--ease-out);
}
.doc .term-tip b { color: var(--gold); }
.doc .term-tip::after {
  content: ''; position: absolute; top: 100%; left: calc(50% - var(--dx, 0px)); margin-left: -0.45rem;
  border: 0.45rem solid transparent; border-top-color: var(--ink);
}
.doc .term.below .term-tip { bottom: auto; top: calc(100% + 0.6rem); }
.doc .term.below .term-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
.doc .term:focus .term-tip { display: block; }
@media (hover: hover) { .doc .term:hover .term-tip { display: block; } }
@starting-style {
  .doc .term:focus .term-tip, .doc .term:hover .term-tip { opacity: 0; transform: translateX(calc(-50% + var(--dx, 0px))) translateY(0.3rem); }
}
@media (prefers-reduced-motion: reduce) { .doc .term-tip { transition: none; } }
/* under a post: the game it is about */
.post-game {
  margin-top: 1.8rem;
  display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.2rem;
  padding: 1rem 1.3rem;
  background: var(--mint); border: var(--border); border-radius: 1.4rem; box-shadow: 0 0.5rem 0 var(--ink);
}
.post-game-text { flex: 1 1 16rem; }
.post-game h2 { margin: 0; font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.post-game .btn { font-family: var(--font); }
.post-game p { margin: 0; }

/* ---------- legal pages: the document on paper ---------- */
.doc-panel {
  max-width: 52rem; margin: 0 auto;
  padding: 1.6rem 1.8rem 2rem;
  background: var(--paper); border: var(--border); border-radius: 1.4rem; box-shadow: 0 0.5rem 0 var(--ink);
}
.doc { font-family: var(--read); font-size: 1rem; line-height: 1.75; }
.doc h1, .doc h2, .doc h3, .doc .toc, .doc .sticker { font-family: var(--font); font-weight: normal; }
.doc h1 { font-size: 2.1rem; margin: 0 0 0.5rem; line-height: 1.15; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; padding-top: 1rem; border-top: 0.16rem dashed var(--line); }
.doc h3 { font-size: 1.08rem; margin: 1.2rem 0 0.4rem; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 0.25rem 0; }
.doc b { font-weight: 700; }
.draft { margin: 0.4rem 0 0.6rem; font-size: 0.95rem; transform: rotate(-1deg); }
.toc { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.1rem 0 0.4rem; }
.toc a {
  padding: 0 0.6rem; border: 0.14rem solid var(--ink); border-radius: 99rem;
  background: var(--cream); color: var(--ink); text-decoration: none; font-size: 0.86rem;
}
.toc a:hover { background: var(--gold); }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0.6rem 0 1.1rem; border: 0.16rem solid var(--ink); border-radius: 0.9rem; overflow: hidden; background: #fff; }
.doc th, .doc td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 0.1rem solid var(--line); vertical-align: top; }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc thead th { background: var(--cream-2); }
.doc th { font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.doc tbody th { width: 34%; }
.missing { text-align: center; }
.missing h1 { font-size: 2rem; font-weight: normal; margin: 0.4rem 0; }
.missing .actions { justify-content: center; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #cfc6e8; border-top: 0.3rem solid var(--sky-2); }
.foot { max-width: 1120px; margin: 0 auto; padding: 1.6rem 1rem 2.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; }
.foot .brand { color: var(--cream); font-size: 1.2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.foot-links a { color: var(--cream); }
.foot .soft { flex-basis: 100%; margin: 0; color: #a99fc7; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'guide' 'fly'; padding-bottom: 3.2rem; }
  .formation { --px: 2px; justify-self: end; margin: -0.5rem 0 -1rem; }
  .game-panel { grid-template-columns: minmax(0, 1fr); }
  .game-media { border-right: 0; border-bottom: var(--border); }
  .ad-shelf { flex-direction: column; align-items: stretch; }
  .ad-shelf-head { flex: none; }
  .post-card a { grid-template-columns: minmax(0, 1fr); }
  .post-card img { height: auto; border-right: 0; border-bottom: var(--border); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 1.2rem; }
  .guide { padding: 0.7rem 0.9rem 0.7rem 0.7rem; gap: 0.7rem; }
  .guide-face { width: 4.4rem; height: 4.4rem; }
  .guide-face img { width: 52px; height: 46px; }
  .guide-text { font-size: 1.05rem; }
  .passing { right: 3%; top: 4rem; }
  .bar-links { gap: 0.4rem; }
  .bar-links .btn.tiny { padding: 0 0.7rem; }
  .langs > * { padding: 0 0.5rem; }
  .bar .brand { font-size: 1.2rem; }
  .doc-panel { padding: 1.2rem 1rem 1.4rem; }
  .doc tbody th { width: auto; }
  .doc th, .doc td { padding: 0.4rem 0.5rem; }
  .next-card .sticker { right: 0.8rem; }
  .ad-shelf { padding: 1rem 1rem 1.1rem; }
}

/* ---------- the calm setting: nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .guide { opacity: 1; }
}
