/* YRA - yratos.dev. A printed page: paper, plum ink, flat colour from the games' own palettes.
   No webfonts: a sturdy serif to read, heavy grotesque capitals to shout, the system Korean gothic for Korean. */

:root {
  --paper: #FBF4E6;
  --paper-deep: #F3E6CE;
  --ink: #3A1D2E;
  --ink-soft: #5E3F51;
  --pink: #FF5FA2;
  --pink-ink: #C2185B;
  --rose: #FFB3C6;
  --blush: #FFE1E8;
  --peach: #FFD3A1;
  --peach-pale: #FFE9D2;
  --mint: #9EE0CF;
  --teal: #2E9C8F;
  --lilac: #E3D8F6;
  --lav: #C3AEEE;
  --purple: #6A3FC8;
  --plum: #4A2A6A;
  --kp: #FFD3E4; --kp-s: #D97AA6;
  --ky: #FFF1B0; --ky-s: #D9B64A;
  --km: #C6F3D6; --km-s: #6FC495;
  --line: 3px;
  --f-display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Roboto, system-ui, sans-serif;
  --f-body: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", "Droid Serif", serif;
  --f-ko: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", "Nanum Gothic", sans-serif;
  --gut: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url(paper.svg);
  font: 400 1.0625rem/1.62 var(--f-body);
  overflow-x: hidden;
}
:lang(ko) { font-family: var(--f-ko); word-break: keep-all; overflow-wrap: break-word; line-break: strict; }
html:lang(ko) body { line-height: 1.75; letter-spacing: -0.005em; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-ink); }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--paper); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }

/* ---------------------------------------------------------------- keycaps (shared) */
.key {
  --face: var(--kp); --skirt: var(--kp-s); --d: 10px; --bw: var(--line); --rad: 16px;
  position: relative; display: inline-block; padding: 0; margin: 0; border: 0; background: none; color: var(--plum);
  font: 900 1em/1 var(--f-display); cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* the skirt (the keycap's side) sits below; the face drops onto it when pressed */
.key::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: var(--skirt); border: var(--bw) solid var(--ink); border-radius: var(--rad);
}
.key .cap {
  position: absolute; left: 0; right: 0; top: 0; bottom: var(--d);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(170deg, rgba(255,255,255,.55), rgba(255,255,255,0) 45%), var(--face);
  border: var(--bw) solid var(--ink); border-radius: var(--rad);
  transition: transform 70ms ease-out;
}
.k-pink { --face: var(--kp); --skirt: var(--kp-s); }
.k-yellow { --face: var(--ky); --skirt: var(--ky-s); }
.k-mint { --face: var(--km); --skirt: var(--km-s); }
@media (hover: hover) { button.key:hover .cap { transform: translateY(var(--d)); } }
button.key:active .cap, button.key.is-down .cap { transform: translateY(var(--d)); }

/* ---------------------------------------------------------------- masthead + footer */
.masthead {
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gut) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; display: block; }
.mini-keys { display: inline-flex; gap: 4px; }
.mini-keys i {
  display: grid; place-items: center; width: 30px; height: 32px; padding-bottom: 4px;
  border: 2px solid var(--ink); border-radius: 7px; font: 900 15px/1 var(--f-display); font-style: normal; color: var(--plum);
  background: linear-gradient(var(--kp) 0 80%, var(--kp-s) 80%);
}
.mini-keys i:nth-child(2) { background: linear-gradient(var(--ky) 0 80%, var(--ky-s) 80%); }
.mini-keys i:nth-child(3) { background: linear-gradient(var(--km) 0 80%, var(--km-s) 80%); }
.brand:hover .mini-keys i { transform: translateY(2px); }
.topnav { display: flex; gap: clamp(14px, 3vw, 30px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { font: 700 0.95rem/1.2 var(--f-display); font-weight: 900; text-decoration: none; letter-spacing: .02em; padding: 6px 0; border-bottom: 3px solid transparent; }
:lang(ko) .topnav a { font-family: var(--f-ko); font-weight: 800; }
.topnav a:hover, .topnav a[aria-current] { border-bottom-color: var(--pink); color: var(--ink); }
.topnav .lang-switch { border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.topnav .lang-switch:lang(en) { font-family: var(--f-display); }
.topnav .lang-switch:lang(ko) { font-family: var(--f-ko); font-weight: 800; }
.topnav .lang-switch:hover { background: var(--ink); color: var(--paper); }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gut) 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  border-top: var(--line) solid var(--ink);
}
.foot p { margin: 0; font-weight: 700; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.mini-keys.small i { width: 22px; height: 24px; font-size: 11px; border-radius: 5px; padding-bottom: 3px; }

/* ---------------------------------------------------------------- headings */
.section-title {
  font: 900 clamp(2rem, 6.4vw, 4.2rem)/1 var(--f-display);
  letter-spacing: -0.02em; text-transform: none;
  text-shadow: 0.06em 0.06em 0 var(--rose);
}
:lang(ko) .section-title { font-family: var(--f-ko); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.eyebrow { font: 900 0.85rem/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .12em; color: var(--pink-ink); margin: 0 0 14px; }
:lang(ko) .eyebrow { font-family: var(--f-ko); font-weight: 800; letter-spacing: .02em; font-size: 0.95rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 6vw, 72px) var(--gut) clamp(56px, 9vw, 120px);
  display: grid; gap: clamp(28px, 5vw, 72px); align-items: end;
}
.hero-stage {
  --k: clamp(92px, 24vw, 196px); --g: calc(var(--k) * .12);
  position: relative; padding-top: calc(var(--k) * 1.26); width: calc(var(--k) * 3 + var(--g) * 2); justify-self: center;
}
.keyrow { position: relative; z-index: 2; display: flex; gap: var(--g); }
.keyrow .key { width: var(--k); height: calc(var(--k) * 1.1); --d: calc(var(--k) * .1); --bw: 4px; --rad: calc(var(--k) * .17); font-size: calc(var(--k) * .56); }
.hero-cat {
  position: absolute; z-index: 1;
  width: calc(var(--k) * 1.42);
  left: calc(var(--k) * 2.5 + var(--g) * 2 - var(--k) * 1.42 * .398);
  top: 0;
}
.hero-cat .art { width: 100%; }
.key-hint { margin: 16px 0 0; text-align: center; font-style: italic; color: var(--ink-soft); font-size: .98rem; }
:lang(ko) .key-hint { font-style: normal; font-size: .95rem; }
.nw { white-space: nowrap; }
.hint-touch { display: none; }
@media (hover: none) { .hint-full { display: none; } .hint-touch { display: inline; } }
.hero-words { max-width: 34rem; justify-self: center; }
.hero-lede { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.38; margin: 0; }
:lang(ko) .hero-lede { font-size: clamp(1.18rem, 2.3vw, 1.5rem); line-height: 1.6; letter-spacing: -0.02em; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.15fr 1fr; }
  .hero-stage { justify-self: start; }
  .hero-words { justify-self: start; padding-bottom: 44px; }
  .hero-words .eyebrow { white-space: nowrap; }
}

/* ---------------------------------------------------------------- game worlds (shared) */
.world { position: relative; border-top: var(--line) solid var(--ink); }
.world-inner { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gut) clamp(64px, 9vw, 120px); display: grid; gap: clamp(28px, 4vw, 48px); }
.game-head { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
.game-icon { width: clamp(72px, 13vw, 112px); border: var(--line) solid var(--ink); border-radius: 24%; box-shadow: 5px 6px 0 var(--ink); flex: none; }
.game-title { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wordmark {
  font: 900 clamp(2.15rem, 8.6vw, 5.4rem)/0.95 var(--f-display); letter-spacing: -0.01em; color: #fff;
  /* the games' logo treatment: white letters, a thick plum outline, a flat offset drop */
  text-shadow:
    -3px -3px 0 var(--ink), 0 -3px 0 var(--ink), 3px -3px 0 var(--ink), 3px 0 0 var(--ink),
    3px 3px 0 var(--ink), 0 3px 0 var(--ink), -3px 3px 0 var(--ink), -3px 0 0 var(--ink),
    -2px -4px 0 var(--ink), 2px 4px 0 var(--ink), 4px 2px 0 var(--ink), -4px 2px 0 var(--ink),
    6px 7px 0 var(--ink);
  font-family: var(--f-display);
}
.subtitle {
  align-self: flex-start; font: 900 clamp(0.95rem, 2.4vw, 1.35rem)/1 var(--f-display); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--pink); border: var(--line) solid var(--ink); border-radius: 999px; padding: 8px 16px 7px; box-shadow: 0 4px 0 var(--ink);
}
:lang(ko) .subtitle { font-family: var(--f-ko); font-weight: 800; text-transform: none; letter-spacing: -0.01em; font-size: clamp(1rem, 2.4vw, 1.3rem); }
.status { font: 900 1rem/1.35 var(--f-display); margin: 0; display: inline-block; border: var(--line) dashed var(--ink); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,.55); }
:lang(ko) .status { font-family: var(--f-ko); font-weight: 800; }
.play-link { text-decoration: none; }

/* facts as a menu board: dotted leaders */
.facts { margin: 0; display: grid; gap: 6px; }
.facts div { display: flex; align-items: baseline; gap: 8px; }
.facts dt { order: 1; font-weight: 700; white-space: nowrap; }
.facts div::before { content: ""; order: 2; flex: 1; min-width: 24px; border-bottom: 2px dotted currentColor; transform: translateY(-4px); }
.facts dd { order: 3; margin: 0; text-align: right; }

/* screenshots: phone-shaped prints taped to the page */
.prints { display: flex; justify-content: center; align-items: flex-start; padding: 18px 0 8px; }
.print {
  --r: 0deg; position: relative; margin: 0 -2.2%; flex: 0 1 34%; max-width: 230px;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 24px; padding: 7px;
  transform: rotate(var(--r)); box-shadow: 5px 7px 0 rgba(58, 29, 46, .22);
}
.print img { border-radius: 17px; width: 100%; border: 2px solid var(--ink); }
.print::before {
  content: ""; position: absolute; z-index: 2; left: 50%; top: -14px; width: 78px; height: 26px; transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 6px, rgba(255,255,255,0) 6px 12px), var(--tape, rgba(255, 143, 184, .72));
  border-left: 2px dashed rgba(58, 29, 46, .18); border-right: 2px dashed rgba(58, 29, 46, .18);
}
.print.p1 { --r: -4deg; } .print.p2 { --r: 2.5deg; margin-top: 26px; z-index: 1; } .print.p3 { --r: -1.5deg; margin-top: 6px; }
.prints-key .print { --tape: rgba(195, 174, 238, .8); }
.prints-key .print.p1 { --r: 3deg; } .prints-key .print.p2 { --r: -2.5deg; } .prints-key .print.p3 { --r: 1.5deg; }
.print.p2::before { transform: translateX(-50%) rotate(5deg); }

/* ---------------------------------------------------------------- YRAMERGE: the restaurant */
.merge {
  background-color: var(--peach-pale);
  background-image: radial-gradient(circle, rgba(255, 95, 162, .16) 1.3px, transparent 1.8px);
  background-size: 9px 9px;
  border-top: 0;
}
.awning {
  height: 64px; border-top: var(--line) solid var(--ink);
  background:
    radial-gradient(circle at 24px 34px, var(--pink) 17px, var(--ink) 17.5px 20.5px, transparent 21px) 0 0 / 96px 64px repeat-x,
    radial-gradient(circle at 24px 34px, #fff 17px, var(--ink) 17.5px 20.5px, transparent 21px) 48px 0 / 96px 64px repeat-x,
    linear-gradient(var(--ink), var(--ink)) 0 34px / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, var(--pink) 0 48px, #fff 48px 96px) 0 0 / 100% 34px no-repeat;
}
.merge .world-inner { padding-top: clamp(28px, 5vw, 64px); }
.merge-scene { display: flex; justify-content: center; }
.chef-scene { position: relative; width: min(100%, 420px); }
.chef-scene .chef { position: relative; z-index: 1; }
.chef-scene .guest { position: absolute; z-index: 2; width: 34%; left: -2%; bottom: -4%; }
.chef .art { width: 100%; }
.recipe {
  position: relative; background-color: #FFFDF8; border: var(--line) solid var(--ink); border-radius: 6px;
  padding: 34px clamp(20px, 4vw, 44px) 30px clamp(30px, 5vw, 56px);
  background-image: linear-gradient(90deg, transparent 0 18px, rgba(255, 95, 162, .55) 18px 20px, transparent 20px);
  box-shadow: 8px 9px 0 var(--ink);
  transform: rotate(-0.8deg);
}
.recipe::before, .recipe::after {
  content: ""; position: absolute; top: -15px; width: 92px; height: 28px; background: rgba(158, 224, 207, .8);
  border-left: 2px dashed rgba(58, 29, 46, .18); border-right: 2px dashed rgba(58, 29, 46, .18);
}
.recipe::before { left: 18px; transform: rotate(-6deg); }
.recipe::after { right: 22px; transform: rotate(5deg); }
.recipe-kicker { font: 900 0.85rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .14em; color: var(--pink-ink); margin-bottom: 10px; }
.recipe-intro { font-size: 1.22rem; line-height: 1.45; font-style: italic; }
:lang(ko) .recipe-kicker { font-family: var(--f-ko); font-weight: 800; letter-spacing: .04em; font-size: .95rem; }
:lang(ko) .recipe-intro { font-style: normal; font-size: 1.12rem; line-height: 1.65; }
.recipe h4 { font: 900 1.05rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .08em; margin: 26px 0 12px; display: flex; align-items: center; gap: 12px; }
.recipe h4::after { content: ""; flex: 1; height: 3px; background: var(--ink); }
:lang(ko) .recipe h4 { font-family: var(--f-ko); font-weight: 800; letter-spacing: 0; font-size: 1.1rem; }
.method { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.method li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 12px; }
.method li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center;
  font: 900 1rem/1 var(--f-display); background: var(--rose); border: 2px solid var(--ink); border-radius: 50%;
}
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.menu li { border: 2px solid var(--ink); border-radius: 8px; padding: 2px 10px; background: var(--peach-pale); font-size: .98rem; }
.menu li:nth-child(3n+2) { background: var(--blush); } .menu li:nth-child(3n) { background: #E2F6F0; }
.also { margin: 0 0 22px; padding-left: 1.2em; }
.also li { margin-bottom: 6px; }
.also li::marker { color: var(--pink-ink); }
.recipe .facts { margin: 6px 0 22px; }
@media (min-width: 900px) {
  .merge .world-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(36px, 5vw, 80px); align-items: start; }
  .merge .game-head { grid-column: 1 / -1; }
  .merge .recipe { grid-column: 1; grid-row: 2 / span 2; }
  .merge-scene { grid-column: 2; grid-row: 2; padding-top: 10px; }
  .prints-merge { grid-column: 2; grid-row: 3; }
}

/* ---------------------------------------------------------------- YRAKEY: the keyboard */
.kb {
  background-color: var(--lilac);
  background-image: radial-gradient(circle, rgba(106, 63, 200, .16) 1.3px, transparent 1.8px);
  background-size: 9px 9px;
}
.key-intro { font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.4; margin: 0; max-width: 32rem; }
:lang(ko) .key-intro { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6; letter-spacing: -0.02em; }
.tray {
  --cw: clamp(150px, 24vw, 210px);
  position: relative; margin-top: calc(var(--cw) * 1.527 - 8px);
  background: var(--plum); border: var(--line) solid var(--ink); border-radius: 30px;
  padding: clamp(18px, 3vw, 28px); display: grid; gap: clamp(16px, 2.4vw, 24px);
  box-shadow: 0 12px 0 var(--ink), inset 0 0 0 6px rgba(255, 255, 255, .06);
}
.tray-cat { position: absolute; width: var(--cw); right: 9%; bottom: calc(100% - 22px); z-index: 0; }
.tray-cat .art { width: 100%; }
.modekey {
  --face: var(--kp); --skirt: var(--kp-s); position: relative; z-index: 1;
  background: var(--face); border: var(--line) solid var(--ink); border-radius: 18px;
  box-shadow: 0 9px 0 var(--skirt), 0 9px 0 var(--line) var(--ink);
  padding: 18px 20px 14px; margin-bottom: 12px;
  background-image: linear-gradient(170deg, rgba(255,255,255,.6), rgba(255,255,255,0) 40%);
}
.modekey.k-yellow { --face: var(--ky); --skirt: var(--ky-s); }
.modekey.k-mint { --face: var(--km); --skirt: var(--km-s); }
.modekey .legend { font: 900 clamp(1.25rem, 2.6vw, 1.7rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; color: var(--plum); margin: 0 0 10px; }
:lang(ko) .modekey .legend { font-family: var(--f-ko); font-weight: 800; letter-spacing: -0.02em; }
.modekey p { margin: 0; }
.key-left { display: grid; gap: clamp(36px, 5vw, 56px); align-content: start; }
.key-side { display: grid; gap: 18px; align-content: start; }
.key-side .facts { background: #FFFDF8; border: var(--line) solid var(--ink); border-radius: 14px; padding: 16px 18px; box-shadow: 6px 7px 0 var(--ink); }
.vac-note { margin: 0; display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 18px; align-items: center; max-width: 36rem; }
.vac-note figcaption { font-style: italic; }
:lang(ko) .vac-note figcaption { font-style: normal; }
@media (min-width: 900px) {
  .kb .world-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(36px, 5vw, 80px); align-items: start; }
  .kb .game-head { grid-column: 2; grid-row: 1; justify-content: flex-end; flex-direction: row-reverse; }
  .kb .game-title { align-items: flex-end; text-align: right; }
  .kb .subtitle { align-self: flex-end; }
  .key-intro { grid-column: 2; grid-row: 2; justify-self: end; text-align: right; }
  .tray { grid-column: 2; grid-row: 3; grid-template-columns: 1fr 1fr; }
  .tray .spacebar { grid-column: 1 / -1; }
  .key-left { grid-column: 1; grid-row: 1 / span 3; }
  .prints-key { padding-top: 30px; }
}
@media (min-width: 900px) and (max-width: 1099px) { .tray { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- promises: rubber stamps */
.promises { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 130px) var(--gut) clamp(48px, 7vw, 90px); border-top: var(--line) solid var(--ink); }
.promises-intro { font-size: 1.2rem; max-width: 30rem; margin: 18px 0 0; }
.stamps { list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: clamp(36px, 6vw, 56px); }
.promise { display: grid; justify-items: start; gap: 18px; max-width: 22rem; }
.stamp {
  --r: -7deg; --c: #C2185B;
  margin: 0; display: inline-block; transform: rotate(var(--r));
  color: var(--c); border: 5px solid var(--c); border-radius: 14px; padding: 6px;
  -webkit-mask-image: url(stamp-mask.svg); mask-image: url(stamp-mask.svg);
  -webkit-mask-size: 220px 220px; mask-size: 220px 220px;
}
.stamp span {
  display: block; border: 2px solid var(--c); border-radius: 8px; padding: 12px 18px 10px;
  font: 900 clamp(1.55rem, 4.6vw, 2.1rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
:lang(ko) .stamp span { font-family: var(--f-ko); font-weight: 800; letter-spacing: .02em; }
.pr2 .stamp { --r: 4deg; --c: #237E74; }
.pr3 .stamp { --r: -3deg; --c: var(--purple); }
.promise-text { margin: 0; font-size: 1.08rem; }
.ages { margin: clamp(44px, 7vw, 72px) 0 0; font-size: 1.15rem; max-width: 40rem; border-left: 6px solid var(--mint); padding-left: 16px; }
@media (min-width: 1000px) {
  .stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .pr2 { margin-top: 48px; } .pr3 { margin-top: 14px; }
}
@media (max-width: 999px) {
  .pr2 { justify-self: end; justify-items: end; text-align: right; }
}
/* the thump: only when JS has armed it and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js-stamp .stamp { opacity: 0; transform: rotate(var(--r)) scale(1.5); }
  .js-stamp .is-stamped .stamp { animation: thump 420ms cubic-bezier(.3, 1.4, .5, 1) forwards; }
  @keyframes thump {
    0% { opacity: 0; transform: rotate(var(--r)) scale(1.5); }
    60% { opacity: 1; transform: rotate(var(--r)) scale(.96); }
    100% { opacity: 1; transform: rotate(var(--r)) scale(1); }
  }
}

/* ---------------------------------------------------------------- more games + contact */
.last {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gut) clamp(64px, 9vw, 110px);
  display: grid; gap: clamp(56px, 8vw, 80px); align-items: center;
}
.more p { font-size: 1.15rem; max-width: 28rem; margin-top: 20px; }
.blank-keys { display: flex; gap: 12px; margin-top: 26px; }
.blank-keys i {
  width: 58px; height: 62px; border: var(--line) solid var(--ink); border-radius: 12px;
  background: linear-gradient(#FFFDF8 0 82%, var(--paper-deep) 82%); position: relative;
}
.blank-keys i::after { content: ""; position: absolute; left: 22%; right: 22%; top: 40%; border-top: 3px dashed rgba(58, 29, 46, .3); }
.blank-keys i:nth-child(2) { background: linear-gradient(var(--kp) 0 82%, var(--kp-s) 82%); }
.blank-keys i:nth-child(3) { background: linear-gradient(var(--ky) 0 82%, var(--ky-s) 82%); }
.blank-keys i:nth-child(4) { background: linear-gradient(var(--km) 0 82%, var(--km-s) 82%); }
.postcard {
  position: relative; background: #FFFDF8; border: var(--line) solid var(--ink); border-radius: 8px;
  padding: clamp(26px, 4vw, 44px); transform: rotate(1.2deg); box-shadow: -8px 9px 0 var(--ink);
  background-image: repeating-linear-gradient(135deg, var(--pink) 0 14px, #fff 14px 28px, #6FB7E8 28px 42px, #fff 42px 56px);
  background-size: 100% 10px; background-repeat: no-repeat; background-position: 0 0;
}
.postcard .section-title { font-size: clamp(1.9rem, 5vw, 3rem); padding-right: clamp(90px, 15vw, 140px); }
.postcard > p:not(.mail) { padding-right: clamp(80px, 13vw, 130px); }
.postcard p { margin: 16px 0 0; font-size: 1.1rem; }
.postcard .mail { font: 900 clamp(1.1rem, 5.2vw, 1.75rem)/1.2 var(--f-display); margin-top: 22px; white-space: nowrap; }
.postcard .mail a { text-decoration-color: var(--pink); text-decoration-thickness: 5px; text-underline-offset: 6px; }
.postage {
  position: absolute; top: 24px; right: 22px; width: clamp(72px, 13vw, 116px); padding: 8px; background: var(--rose); transform: rotate(4deg);
  /* perforated edge */
  -webkit-mask: radial-gradient(circle at 5px 5px, transparent 3.6px, #000 4px) -5px -5px / 10px 10px;
  mask: radial-gradient(circle at 5px 5px, transparent 3.6px, #000 4px) -5px -5px / 10px 10px;
}
.postage .art { background: var(--blush); border-radius: 3px; }
@media (min-width: 900px) { .last { grid-template-columns: 1fr 1.05fr; } }

/* ---------------------------------------------------------------- legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(36px, 7vw, 80px) var(--gut) clamp(56px, 8vw, 96px); }
.legal-head { border-bottom: var(--line) solid var(--ink); padding-bottom: 22px; margin-bottom: 30px; }
.legal h1 { font: 900 clamp(2.2rem, 7vw, 3.6rem)/1 var(--f-display); letter-spacing: -0.02em; text-shadow: 0.05em 0.05em 0 var(--rose); }
:lang(ko) .legal h1 { font-family: var(--f-ko); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.updated { margin: 14px 0 0; color: var(--ink-soft); }
.legal-intro { font-size: 1.18rem; line-height: 1.55; }
.legal-note { background: var(--blush); border: 2px solid var(--ink); border-radius: 10px; padding: 14px 16px; }
.legal section { margin-top: 30px; }
.legal h2 { font: 900 1.2rem/1.2 var(--f-display); margin-bottom: 8px; }
:lang(ko) .legal h2 { font-family: var(--f-ko); font-weight: 800; font-size: 1.22rem; }
.legal section p { margin: 0; }
.back { margin-top: 48px; font-weight: 700; }

/* ---------------------------------------------------------------- 404 */
.nf { max-width: 44rem; margin: 0 auto; padding: clamp(48px, 9vw, 110px) var(--gut) 80px; text-align: center; }
.nf-keys { --k: clamp(72px, 18vw, 120px); display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; }
.nf-keys .key { width: var(--k); height: calc(var(--k) * 1.1); --d: calc(var(--k) * .1); --rad: calc(var(--k) * .17); font-size: calc(var(--k) * .5); cursor: default; }
.nf p { font-size: 1.15rem; margin-top: 18px; }
.nf-vac { width: min(70%, 260px); margin: 34px auto 8px; }
.nf-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; font-weight: 700; }

/* ---------------------------------------------------------------- idle motion (small, and only if welcome) */
.art .tail { transform-origin: 24px 106px; }
@media (prefers-reduced-motion: no-preference) {
  .tray-cat .tail, .hero-cat .tail { animation: tail 3.6s ease-in-out infinite; }
  @keyframes tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 520px) {
  body { font-size: 1.02rem; }
  .masthead { padding-top: 14px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: .9rem; }
  .postcard { padding-top: 34px; }
  .postage { width: 70px; top: 20px; right: 16px; }
  .postcard .section-title { padding-right: 78px; }
  .postcard > p:not(.mail) { padding-right: 64px; }
  .hero { padding-top: 40px; }
  .vac-note { grid-template-columns: 110px 1fr; }
}
