/* ─────────────────────────────────────────────
   Y Factory — FUN IS ALL
   Same sticker system as Corn Cheese Games, in factory blue.
   ───────────────────────────────────────────── */
:root {
  --blue: #2F5BFF;
  --blue-hot: #4F7BFF;
  --blue-deep: #1E3FD8;
  --yellow: #FFD60A;
  --yellow-hot: #FFE53B;
  --ink: #141414;
  --paper: #F3F5FF;
  --cream: #FFF8E1;
  --white: #FFFFFF;
  --punch: #FF5A4E;
  --fresh: #2EE6A6;
  --naver: #03C75A;
  --radius: 28px;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-lg: 10px 10px 0 var(--ink);
  --grid: linear-gradient(rgba(255,255,255,.1) 1.5px, transparent 1.5px) 0 0 / 44px 44px,
          linear-gradient(90deg, rgba(255,255,255,.1) 1.5px, transparent 1.5px) 0 0 / 44px 44px;
  --display: "Dela Gothic One", "Pretendard", system-ui, sans-serif;
  --display-ko: "Pretendard", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Pretendard", system-ui, sans-serif;
  --button: "Rubik", "Pretendard", system-ui, sans-serif;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* nothing may poke out sideways (tilted ticker, hover tilts, oversized crew on phones) */
html, body { overflow-x: clip; overscroll-behavior-x: none; }
main, footer { overflow-x: clip; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
html:lang(ko) body { word-break: keep-all; }
/* Korean headings: Pretendard Black, flat — no outline or offset shadow, so Hangul strokes never pile up */
html:lang(ko) :is(.sticker-title, .m-family h3, .footer h2, .bubble b, .hello) {
  font-family: var(--display-ko); font-weight: 900; letter-spacing: -.02em;
}
html:lang(ko) .sticker-title { -webkit-text-stroke: 0; text-shadow: none; transform: none; }
html:lang(ko) .make .sticker-title { color: var(--ink); }
html:lang(ko) .m-family h3 em { -webkit-text-stroke: 0; text-shadow: none; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--button); font-weight: 800; font-size: 1.1rem; letter-spacing: .01em;
  padding: .85em 1.5em; border-radius: 999px;
  border: 3px solid var(--ink); box-shadow: var(--shadow);
  text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease-pop), box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--yellow); box-shadow: 6px 6px 0 var(--white); }
.btn-ink:hover { box-shadow: 8px 8px 0 var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-naver { background: var(--naver); color: var(--white); }
.btn-insta { background: linear-gradient(45deg, #FEDA75, #FA7E1E 30%, #D62976 60%, #962FBF 85%, #4F5BD5); color: var(--white); text-shadow: 1px 1px 0 rgba(0,0,0,.25); }
.btn-insta svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-sticker {
  background: var(--yellow); color: var(--ink);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  padding: .7em 1.5em; border-width: 4px;
}

/* ───────── logo ───────── */
.nav-logo, .footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* the gear turns inside logo-mark.svg itself, so the Y always stays upright */
.logo-mark { width: 46px; height: 46px; transition: width .25s, height .25s; }
.logo-word, .footer-logo span, .hero-logo span {
  font-family: var(--display); color: var(--white); line-height: .95; letter-spacing: .02em;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}
.logo-word { font-size: 1.45rem; text-shadow: 3px 3px 0 var(--ink); transition: font-size .25s; }

/* ───────── nav ───────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .25s, box-shadow .25s, padding .25s;
}
.nav.scrolled { background: var(--yellow); box-shadow: 0 3px 0 var(--ink); padding-block: 8px; }
.nav.scrolled .logo-mark { width: 38px; height: 38px; }
.nav.scrolled .logo-word { font-size: 1.25rem; }
.nav nav { display: flex; gap: clamp(8px, 2vw, 24px); align-items: center; }
.nav nav a { font-weight: 800; text-decoration: none; font-size: .95rem; color: var(--white); }
.nav.scrolled nav a { color: var(--ink); }
.nav nav a:not(.nav-cta):hover { text-decoration: underline wavy; text-underline-offset: 6px; }
.lang-toggle {
  font-family: var(--button); font-weight: 800; font-size: .85rem; letter-spacing: .04em;
  border: 2px solid var(--ink); border-radius: 999px; padding: .4em .8em; background: var(--white);
  transition: transform .15s var(--ease-pop);
}
.lang-toggle:hover { transform: translateY(-2px); }
.nav nav .nav-cta, .nav.scrolled nav .nav-cta {
  font-family: var(--button); font-weight: 800;
  background: var(--ink); color: var(--yellow); padding: .55em 1.1em; border-radius: 999px;
}

/* ───────── hero ───────── */
.hero {
  position: relative; min-height: max(100svh, 640px); overflow: hidden;
  background: var(--grid), radial-gradient(ellipse at 50% 35%, var(--blue-hot) 0%, var(--blue) 45%, var(--blue-deep) 100%);
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(84px, 11vh, 120px);
  isolation: isolate; color: var(--white);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* big background gears, turning slowly */
.hero-gears { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gear { position: absolute; opacity: .13; }
.g1 { width: clamp(260px, 34vw, 520px); left: -8%; bottom: -14%; animation: spin 40s linear infinite; }
.g2 { width: clamp(160px, 20vw, 300px); right: 30%; top: -10%; animation: spin 26s linear infinite reverse; }

.hero-copy { text-align: center; position: relative; z-index: 21; display: flex; flex-direction: column; align-items: center; }
.hello {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.8rem); color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px;
  padding: .25em 1em; box-shadow: var(--shadow); transform: rotate(-3deg);
  animation: popIn .6s var(--ease-pop) .1s both;
}
.wave { display: inline-block; animation: wave 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(16deg); } 20%,40% { transform: rotate(-10deg); } }
.hero-logo {
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); margin: 18px auto 10px;
  animation: logoIn .8s var(--ease-pop) .25s both;
}
.hero-mark { width: clamp(92px, 10vw, 140px); filter: drop-shadow(5px 5px 0 var(--ink)); }
.hero-logo span {
  white-space: nowrap; font-size: clamp(2.8rem, 6.2vw, 4.6rem); font-weight: 400;
  -webkit-text-stroke: 3px var(--ink); text-shadow: 6px 6px 0 var(--ink);
}
@keyframes logoIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn  { from { transform: scale(.4) rotate(-3deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
.hero-tag {
  font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.25rem); margin-bottom: 20px;
  animation: fadeUp .6s ease .6s both;
}
.hero-tag b { font-family: var(--display); font-weight: 400; color: var(--yellow); letter-spacing: .02em; }
/* three equal tiles: games, Ditomon, Dinomask get the same weight */
.hero-ctas {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 470px);
  animation: fadeUp .6s ease .75s both;
}
.cta-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 8px 13px; border: 4px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--button); font-weight: 800; font-size: clamp(.92rem, 1.1vw, 1.05rem); line-height: 1.15;
  color: var(--ink); text-decoration: none; text-align: center;
  transition: transform .15s var(--ease-pop), box-shadow .15s;
}
.cta-tile:hover { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 8px 9px 0 var(--ink); }
.cta-tile:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.cta-tile img, .dino-face { width: 54px; height: 54px; object-fit: contain; transition: transform .25s var(--ease-pop); }
.cta-tile:hover :is(img, .dino-face) { transform: scale(1.12) rotate(-6deg); }
.t-games { background: var(--yellow); }
.t-games img { border-radius: 24%; border: 2.5px solid var(--ink); }
.t-dito { background: #FF8DB4; }
.t-dino { background: var(--white); }
.dino-face {
  display: block; border-radius: 50%; border: 2.5px solid var(--ink);
  background: #fff url("assets/dino/trex.webp") 80% 30% / 175% no-repeat;
}
@keyframes fadeUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* "Made in Y Factory" stamp */
.stamp {
  position: absolute; z-index: 9;
  right: clamp(16px, 7vw, 120px); top: clamp(110px, 18vh, 190px);
  width: clamp(116px, 12vw, 172px); aspect-ratio: 1;
  border-radius: 50%; background: var(--punch); color: var(--white);
  border: 4px solid var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center;
  animation: badgeIn .7s var(--ease-pop) 1s both;
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.stamp text { font-family: var(--display); font-size: 17px; fill: var(--white); }
.stamp-core {
  font-family: var(--display); text-align: center; line-height: .95;
  font-size: clamp(.95rem, 1.35vw, 1.35rem); color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; transform: rotate(-10deg);
}
.stamp::before { content: ""; position: absolute; inset: 27%; border-radius: 50%; border: 2px dashed rgba(255,255,255,.75); }
@keyframes badgeIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }

/* floating icon stickers */
.stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stk {
  position: absolute; width: clamp(54px, 6.2vw, 96px); border-radius: 22%;
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  animation: float 6s ease-in-out infinite, fadeUp .6s ease both;
}
.s1 { left: 7%;  top: 22%; --r: -12deg; animation-delay: 0s, 1.1s; }
.s2 { left: 21%; top: 13%; --r: 8deg;  animation-delay: -2s, 1.2s; width: clamp(44px, 4.6vw, 72px); }
.s3 { left: 15%; top: 40%; --r: 14deg; animation-delay: -4s, 1.3s; width: clamp(40px, 4vw, 64px); }
.s4 { right: 24%; top: 12%; --r: -8deg; animation-delay: -1s, 1.4s; width: clamp(44px, 4.6vw, 72px); }
.s5 { right: 8%; top: 46%; --r: 10deg; animation-delay: -3s, 1.5s; width: clamp(48px, 5vw, 80px); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(calc(var(--r) * -1)); } }

/* the crew rides the conveyor belt */
.hero-inner {
  position: relative; z-index: 5; flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}
.hero-crew {
  position: relative; margin: auto auto 0; width: min(100%, 1180px);
  animation: crewIn 1s var(--ease-pop) .45s both;
}
.hero-crew > img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 10px 0 rgba(0,0,0,.18));
  transform-origin: 50% 100%;
  animation: breathe 4.5s ease-in-out 1.6s infinite;
}
@keyframes crewIn { from { transform: translateY(40%) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.012) translateY(-4px); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.belt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: clamp(30px, 3.4vw, 46px);
  border-top: 4px solid var(--ink);
  background: repeating-linear-gradient(90deg, #2b2b2b 0 30px, var(--ink) 30px 60px);
  animation: belt 1.4s linear infinite;
}
.belt::after {
  content: ""; position: absolute; inset: auto 0 5px 0; height: 14px;
  background: radial-gradient(circle, var(--yellow) 0 4px, var(--ink) 4.5px 6px, transparent 6.5px) 0 0 / 60px 14px;
}
@keyframes belt { to { background-position: 60px 0; } }

/* wide screens: copy on the left, crew big on the right */
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .hero { padding-top: 0; }
  .hero-inner {
    flex-direction: row; align-items: flex-end; justify-content: center;
    gap: 0; padding-inline: clamp(16px, 4vw, 64px); min-height: max(100svh, 640px);
  }
  .hero-copy { flex: 0 0 38%; align-self: center; padding-top: 60px; padding-bottom: 40px; }
  .hero-logo span { font-size: clamp(1.9rem, 3.4vw, 3.9rem); }
  .hero-mark { width: clamp(64px, 5.6vw, 104px); }
  .hero-crew { flex: 1 1 auto; margin: 0 0 0 -2vw; width: auto; max-width: min(68vw, calc((100svh - 150px) * 1.64)); }
  .s1 { left: 3%;  top: 13%; }
  .s2 { left: 17%; top: 9%; }
  .s3 { left: 30%; top: 15%; }
  .s4 { right: 33%; top: 11%; }
  .s5 { right: 22%; top: 20%; }
  .stamp { top: 13%; right: 5%; }
}

.bubble {
  position: absolute; z-index: 20; pointer-events: none; color: var(--ink);
  left: 51%; bottom: 69%;
  background: var(--white); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: .5em .9em; text-align: center; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 8px) scale(.8); transform-origin: 50% 100%;
  transition: opacity .18s, transform .25s var(--ease-pop);
}
.bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -11px; width: 18px; height: 18px;
  background: var(--white); border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}
.bubble.side { transform: translate(0, 8px) scale(.8); transform-origin: 0 22px; }
.bubble.side.show { transform: none; }
.bubble.side::after { left: -1px; top: 22px; bottom: auto; transform: translate(-50%, -50%) rotate(135deg); }
.bubble b { font-family: var(--display); font-size: 1.05rem; display: block; }
.bubble small { font-weight: 700; font-size: .78rem; opacity: .7; }

/* Ditomon in the group shot: they pop in after the crew, then bounce softly in turn */
.hero-crew .dito {
  position: absolute; z-index: 4; display: block;
  left: calc(var(--x) * 1%); bottom: calc(clamp(30px, 3.4vw, 46px) - 3px); height: calc(var(--h) * 1%);
  translate: -50% 0;
  animation: ditoIn .6s var(--ease-pop) calc(1.4s + var(--i) * .1s) both;
}
.dito img {
  height: 100%; width: auto; transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.15));
  animation: ditoBounce 2.8s ease-in-out calc(var(--i) * -.55s) infinite;
}
.dito:hover img, .dito:focus-visible img { animation: ditoHop .55s var(--ease-pop); }
.dito-name {
  position: absolute; left: 50%; bottom: calc(100% - 4px); z-index: 2; pointer-events: none;
  font-family: var(--display-ko); font-weight: 900; font-size: .85rem; white-space: nowrap; color: var(--ink);
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; padding: .2em .75em;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0; transform: translate(-50%, 8px) scale(.8); transition: opacity .15s, transform .25s var(--ease-pop);
}
.dito:hover .dito-name, .dito:focus-visible .dito-name { opacity: 1; transform: translate(-50%, 0) scale(1); }
@keyframes ditoIn { from { transform: translateY(50px) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ditoBounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  40% { transform: translateY(-6%) scale(.98, 1.02); }
  80% { transform: translateY(0) scale(1.02, .98); }
}
@keyframes ditoHop {
  0% { transform: scale(1.06, .92); }
  45% { transform: translateY(-22%) scale(.96, 1.05); }
  100% { transform: none; }
}

/* ───────── ticker ───────── */
.ticker {
  background: var(--yellow); color: var(--ink); overflow: hidden;
  border-block: 4px solid var(--ink); position: relative; z-index: 10;
  transform: rotate(-1.2deg) scale(1.02); margin-top: -10px;
}
.ticker-track {
  display: flex; width: max-content; gap: 1.6rem; align-items: center;
  padding: 16px 0; animation: marquee 22s linear infinite;
  font-family: var(--display); font-size: clamp(1.3rem, 2.6vw, 2.2rem); white-space: nowrap;
}
.ticker-track i { font-style: normal; color: var(--punch); }
.ticker-track span:nth-of-type(4n+2) { color: var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── section titles ───────── */
.sticker-title {
  font-family: var(--display); text-align: center;
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 1; letter-spacing: .01em;
  color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-2deg);
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ───────── what we make ───────── */
.make { padding: clamp(72px, 10vw, 130px) clamp(16px, 4vw, 48px) clamp(56px, 8vw, 100px); max-width: 1280px; margin: 0 auto; }
.make .sticker-title { color: var(--yellow); }
.make-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, 1fr); }
.make-card {
  position: relative; overflow: hidden; min-height: 300px;
  border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 28px; display: flex; flex-direction: column;
  transition: transform .25s var(--ease-pop);
}
.make-card:hover { transform: translateY(-6px) rotate(-1deg); }
.m-no { font-family: var(--display); font-size: .95rem; opacity: .5; }
.make-card h3 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; margin: 6px 0 12px; }
.make-card :is(h3, p) { position: relative; z-index: 2; }
.make-card p { font-weight: 700; font-size: 1.05rem; line-height: 1.45; max-width: 68%; }
.m-pal { position: absolute; right: -6%; bottom: -8%; width: 46%; transition: transform .35s var(--ease-pop); }
.make-card:hover .m-pal { transform: translateY(-8px) rotate(6deg) scale(1.05); }
.m-games { background: var(--blue); color: var(--white); }
.m-games h3 { -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.m-toys { background: var(--white); }
.m-toys h3 { color: var(--punch); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.m-toys .m-pal { width: 50%; right: -4%; bottom: -6%; }
.m-fun { background: var(--yellow); }
.m-fun .m-pal { width: 38%; right: 4%; bottom: 8%; animation: bob 3.5s ease-in-out infinite; }
.m-link {
  position: relative; z-index: 2; align-self: flex-start; margin-top: 14px;
  font-family: var(--button); font-weight: 800; font-size: .95rem; text-decoration: none;
  background: var(--ink); color: var(--yellow); border-radius: 999px; padding: .5em 1em;
  transition: transform .15s var(--ease-pop);
}
.m-link:hover { transform: translateY(-2px); }

.m-family {
  grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; gap: clamp(20px, 4vw, 56px);
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 26px, var(--yellow-hot) 26px 52px);
  padding: clamp(24px, 4vw, 48px);
}
.family-logo { flex: 0 0 auto; width: clamp(150px, 20vw, 260px); transform: rotate(-6deg); filter: drop-shadow(6px 6px 0 var(--ink)); }
.m-family h3 { font-size: clamp(2rem, 5vw, 4rem); }
.m-family h3 em { font-style: normal; color: var(--blue); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
html:lang(ko) .m-family h3 em { color: var(--blue); }
.m-family p { max-width: 560px; margin-bottom: 22px; }

/* ───────── games ───────── */
.games {
  background: var(--grid), var(--blue); border-top: 4px solid var(--ink); color: var(--white);
  padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(80px, 10vw, 130px);
}
.games-sub { text-align: center; font-weight: 800; font-size: 1.1rem; margin: -18px 0 clamp(32px, 5vw, 56px); }
.game-grid {
  max-width: 1120px; margin: 0 auto; color: var(--ink);
  display: grid; gap: clamp(18px, 2.2vw, 28px);
  grid-template-columns: repeat(3, 1fr);
}
.game {
  --c: var(--blue);
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease-pop), box-shadow .25s;
  opacity: 0; transform: translateY(40px);
}
.game.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease-pop), box-shadow .25s; }
.game.in:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.game-art {
  position: relative; aspect-ratio: 4 / 3; background: var(--c); overflow: hidden; cursor: pointer;
  border-bottom: 4px solid var(--ink); display: block; width: 100%;
}
.game-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.45), transparent 60%);
}
.game-shot {
  position: absolute; width: 38%; left: 52%; top: 9%;
  border-radius: 14px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(8deg); transition: transform .35s var(--ease-pop);
}
.game-icon {
  position: absolute; width: 40%; left: 10%; bottom: 11%;
  border-radius: 24%; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-6deg); transition: transform .35s var(--ease-pop);
}
.game:hover .game-shot { transform: rotate(3deg) translateY(-6px); }
.game:hover .game-icon { transform: rotate(-12deg) scale(1.08); }
.game-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--display); font-size: .7rem; letter-spacing: .04em;
  background: var(--ink); color: var(--yellow); border-radius: 999px; padding: .35em .8em;
}
.game-info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-info h3 { font-family: var(--display-ko); font-weight: 900; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.02em; }
.game-ko { font-weight: 700; font-size: .8rem; opacity: .55; margin-top: -4px; }
.game-info p { font-weight: 600; font-size: .92rem; line-height: 1.45; flex: 1; }
.stores { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.store {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--button); font-weight: 800; font-size: .8rem; text-decoration: none;
  background: var(--ink); color: var(--white); border: 2px solid var(--ink);
  border-radius: 12px; padding: .5em .8em;
  transition: transform .15s var(--ease-pop), background .15s;
}
.store svg { width: 16px; height: 16px; flex: none; }
.store:hover { transform: translateY(-2px); background: var(--blue); }
.store.ios { background: var(--white); color: var(--ink); }
.store.ios:hover { background: var(--yellow); }

/* ───────── action dinomask ───────── */
.dino {
  background: var(--cream); border-top: 4px solid var(--ink);
  padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(80px, 10vw, 130px);
}
.dino-head {
  max-width: 1120px; margin: 0 auto clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.dino-banner {
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-2deg);
}
.dino-banner img { width: 100%; height: auto; }
.dino-kicker {
  display: inline-block; font-family: var(--button); font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  background: var(--ink); color: var(--yellow); border-radius: 999px; padding: .4em 1em; margin-bottom: 14px;
}
.dino-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: .95;
  color: #FF8A1F; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 18px;
}
.dino-lead { font-weight: 700; font-size: 1.08rem; line-height: 1.6; margin-bottom: 24px; }
.dino-links { display: flex; gap: 14px; flex-wrap: wrap; }
.dino-links .btn { font-size: 1rem; }

.mask-grid { max-width: 1120px; margin: 0 auto; display: grid; gap: clamp(18px, 2.2vw, 28px); grid-template-columns: repeat(3, 1fr); }
.mask {
  position: relative; background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease-pop), box-shadow .25s;
}
.mask:hover { transform: translateY(-8px) rotate(1deg); box-shadow: var(--shadow-lg); }
.mask img { aspect-ratio: 1; width: 100%; object-fit: cover; border-bottom: 4px solid var(--ink); transition: transform .35s var(--ease-pop); }
.mask:hover img { transform: scale(1.04); }
.mask-info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.mask-info h3 { font-family: var(--display-ko); font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; }
.mask-sub { font-weight: 700; font-size: .85rem; opacity: .6; margin-top: -4px; }
.mask-info .store { margin-top: 4px; background: var(--naver); border-color: var(--ink); font-size: .9rem; padding: .55em 1.1em; }
.mask-info .store:hover { background: var(--ink); }
.store.disabled { background: #d9d9d9 !important; color: #555; border-color: #999 !important; cursor: default; transform: none !important; }
.soldout img { filter: grayscale(.85); opacity: .75; }
.mask-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2; transform: rotate(8deg);
  font-family: var(--display-ko); font-weight: 900; font-size: .9rem;
  background: var(--punch); color: var(--white); border: 3px solid var(--ink); border-radius: 999px;
  padding: .3em .9em; box-shadow: 3px 3px 0 var(--ink);
}

/* ───────── AI video production ───────── */
.aivid {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(ellipse at 50% 0%, #26304F 0%, var(--ink) 62%);
  border-top: 4px solid var(--ink);
  padding: clamp(72px, 10vw, 120px) 0 clamp(80px, 10vw, 130px);
}
.aivid-head { max-width: 900px; margin: 0 auto clamp(36px, 5vw, 52px); padding-inline: clamp(16px, 4vw, 48px); text-align: center; }
.aivid .dino-kicker { background: var(--yellow); color: var(--ink); }
.aivid-title {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35em;
  font-family: var(--display-ko); font-weight: 900; letter-spacing: -.02em; line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 6px 0 18px;
}
html:lang(en) .aivid-title span[data-i18n] { font-family: var(--display); font-weight: 400; letter-spacing: .01em; color: var(--yellow); }
.rec {
  font-family: var(--button); font-weight: 800; font-size: .28em; letter-spacing: .12em;
  background: var(--punch); color: var(--white); border: 2.5px solid var(--white); border-radius: 999px; padding: .4em .9em;
}
.rec i { font-style: normal; animation: blink 1.1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.aivid-lead { max-width: 660px; margin: 0 auto; font-weight: 600; font-size: 1.08rem; line-height: 1.7; opacity: .85; }

/* film reel with sprocket holes, rolling sideways */
.reel {
  position: relative; background: #050505; border-block: 4px solid #000;
  padding: 26px 0; margin-bottom: clamp(48px, 7vw, 80px);
  transform: rotate(-1.5deg) scale(1.03);
}
.reel::before, .reel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255,255,255,.8) 12px 26px);
}
.reel::before { top: 8px; }
.reel::after { bottom: 8px; }
.reel-track { display: flex; gap: 14px; width: max-content; animation: marquee 46s linear infinite; }
.frame {
  position: relative; flex: none; margin: 0; overflow: hidden;
  width: clamp(112px, 12vw, 168px); aspect-ratio: 9 / 16;
  background: var(--bg, #222); border: 3px solid var(--white); border-radius: 12px;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .cut { object-fit: contain; padding: 20% 8% 24%; }
.frame figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--button); font-weight: 800; font-size: .62rem; letter-spacing: .08em;
  background: rgba(0,0,0,.7); color: var(--white); border-radius: 999px; padding: .3em .65em;
}

.aivid-body { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.vid-types { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.vid-types li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px;
  padding: 20px 12px 18px; box-shadow: 6px 6px 0 var(--sc);
  transition: transform .25s var(--ease-pop);
}
.vid-types li:hover { transform: translateY(-6px) rotate(-1deg); }
.vid-types li:nth-child(1) { --sc: var(--yellow); }
.vid-types li:nth-child(2) { --sc: #FF8DB4; }
.vid-types li:nth-child(3) { --sc: var(--fresh); }
.vid-types li:nth-child(4) { --sc: var(--blue-hot); }
.vid-types span { font-size: 2.1rem; line-height: 1; }
.vid-types b { font-family: var(--display-ko); font-weight: 900; font-size: 1.05rem; }
.vid-types small { font-weight: 600; font-size: .82rem; line-height: 1.45; opacity: .7; }
.vid-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.vid-steps li { border: 2px dashed rgba(255,255,255,.3); border-radius: 18px; padding: 16px 16px 18px; }
.step-no { font-family: var(--display); font-size: 1.4rem; color: var(--yellow); }
.vid-steps b { display: block; font-family: var(--display-ko); font-weight: 900; font-size: 1.02rem; margin: 6px 0 4px; }
.vid-steps small { font-size: .85rem; line-height: 1.5; opacity: .7; }
.vid-cta { text-align: center; }
.vid-cta .btn { box-shadow: 6px 6px 0 var(--white); font-size: clamp(1rem, 2vw, 1.2rem); white-space: normal; }
.vid-cta .btn:hover { box-shadow: 8px 8px 0 var(--white); }
.vid-note { max-width: 560px; margin: 20px auto 0; font-size: .88rem; line-height: 1.6; opacity: .7; }
.vid-note b { color: var(--yellow); }

/* ───────── modal ───────── */
.modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100svh - 48px);
  margin: auto; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0; background: var(--white); color: var(--ink);
  overflow: auto;
}
.modal[open] { animation: modalIn .35s var(--ease-pop); }
.modal::backdrop { background: rgba(20,20,20,.55); backdrop-filter: blur(3px); }
@keyframes modalIn { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; background: var(--yellow);
  border: 3px solid var(--ink); font-family: var(--button); font-weight: 800; font-size: 1.1rem;
}
.modal-head { display: flex; gap: 20px; align-items: center; padding: 28px 72px 24px 28px; background: var(--c); border-bottom: 4px solid var(--ink); }
.modal-head img { width: 104px; border-radius: 24%; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.modal-head h3 { font-family: var(--display-ko); font-weight: 900; letter-spacing: -.02em; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; color: var(--white); text-shadow: 2px 2px 0 var(--ink); }
.modal-head .game-ko { opacity: .8; color: var(--ink); font-size: .9rem; margin-top: 4px; }
.modal-content { padding: 24px 28px 32px; display: grid; gap: 20px; }
.modal-content > p { font-weight: 600; line-height: 1.6; font-size: 1.02rem; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span { font-weight: 800; font-size: .8rem; border: 2px solid var(--ink); border-radius: 999px; padding: .35em .85em; background: var(--paper); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots img { border-radius: 16px; border: 3px solid var(--ink); width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #eee; }

/* ───────── footer ───────── */
.footer {
  background: var(--ink); color: var(--white); text-align: center;
  padding: clamp(80px, 10vw, 120px) clamp(16px, 4vw, 48px) 40px; position: relative;
}
.footer-crew { display: flex; justify-content: center; align-items: flex-end; margin: 0 auto -6px; height: clamp(90px, 12vw, 150px); }
.footer-crew img { height: 100%; width: auto; margin-inline: -10px; }
.footer-crew img:nth-child(1) { height: 70%; transform: rotate(-8deg); }
.footer-crew img:nth-child(3) { height: 80%; transform: rotate(6deg); }
.footer h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5.5vw, 4.2rem); line-height: 1.05;
  color: var(--yellow); margin: 22px 0 28px;
}
.footer .btn-yellow { box-shadow: 6px 6px 0 var(--white); font-size: clamp(.85rem, 2.4vw, 1.15rem); white-space: normal; word-break: break-all; }
.footer-meta { margin-top: clamp(56px, 8vw, 96px); border-top: 2px dashed rgba(255,255,255,.2); padding-top: 32px; display: grid; gap: 14px; justify-items: center; }
.footer-logo img { width: 40px; height: 40px; }
.footer-logo span { font-size: 1.3rem; -webkit-text-stroke: 0; }
.footer-meta p { font-size: .85rem; line-height: 1.6; opacity: .7; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; opacity: 1 !important; }
.footer-links a { font-weight: 800; text-decoration: none; color: var(--yellow); }
.footer-links a:hover { text-decoration: underline; }
.copy { font-size: .75rem !important; }

/* ───────── legal pages (privacy / terms) ───────── */
.legal-page { background: var(--grid), var(--blue); }
.legal { max-width: 860px; margin: 0 auto; padding: clamp(110px, 14vw, 150px) clamp(16px, 4vw, 32px) clamp(56px, 8vw, 96px); }
.legal .sticker-title { font-size: clamp(2.2rem, 6vw, 4rem); }
.legal-doc {
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 56px);
  font-size: 1rem; line-height: 1.75; font-weight: 500; overflow-wrap: anywhere;
}
.legal-doc > p:first-child { display: inline-block; font-weight: 800; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: .3em 1em; margin-bottom: 8px; }
.legal-doc h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.25; margin: 4px 0 14px; }
.legal-doc h3 { font-weight: 800; font-size: 1.1rem; margin: 22px 0 8px; }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ol, .legal-doc ul { margin: 0 0 16px 1.4em; }
.legal-doc li { margin-bottom: 6px; padding-left: .2em; }
.legal-doc li::marker { font-weight: 800; }
.legal-doc hr { border: 0; border-top: 2px dashed rgba(20,20,20,.18); margin: 28px 0; }
.legal-doc a { color: var(--blue); font-weight: 700; }
.legal-back { text-align: center; margin-top: 40px; }
.footer-mini { padding-top: 8px; }
.footer-mini .footer-meta { margin-top: 24px; border-top: 0; }

/* ───────── ditomon page ───────── */
.nav nav a[aria-current="page"] { text-decoration: underline wavy; text-underline-offset: 6px; }
.dhero { min-height: 0; padding: clamp(100px, 14vh, 140px) 16px 0; }
.dhero-copy { position: relative; z-index: 21; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dito-title { display: flex; margin: 14px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(3.2rem, 11vw, 8.6rem); line-height: .95; }
.dito-title span {
  display: inline-block; color: var(--c);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink);
  animation: letterIn .6s var(--ease-pop) both;
}
.dito-title span:nth-child(even) { transform: translateY(-.06em) rotate(4deg); }
.dito-title span:nth-child(odd) { transform: rotate(-3deg); }
.dito-title span:nth-child(1) { animation-delay: .2s; }  .dito-title span:nth-child(2) { animation-delay: .26s; }
.dito-title span:nth-child(3) { animation-delay: .32s; } .dito-title span:nth-child(4) { animation-delay: .38s; }
.dito-title span:nth-child(5) { animation-delay: .44s; } .dito-title span:nth-child(6) { animation-delay: .5s; }
.dito-title span:nth-child(7) { animation-delay: .56s; }
@keyframes letterIn { from { opacity: 0; translate: 0 40px; scale: .4; } to { opacity: 1; translate: 0 0; scale: 1; } }
.dhero .hero-tag { max-width: 640px; animation-delay: .7s; }

/* the five together in a playroom */
.scene {
  position: relative; z-index: 5; overflow: hidden;
  width: min(100%, 1040px); aspect-ratio: 16 / 10;
  margin: 22px auto calc(clamp(30px, 3.4vw, 46px) + 36px);
  border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background: radial-gradient(circle, rgba(237,117,151,.16) 3px, transparent 3.5px) 0 0 / 36px 36px, #FFF4E0;
  animation: fadeUp .7s ease .5s both;
}
.scene::before {  /* wooden floor with a white skirting board */
  content: ""; position: absolute; inset: 60% 0 0 0;
  border-top: 9px solid var(--white); box-shadow: 0 -3px 0 rgba(0,0,0,.06);
  background: repeating-linear-gradient(90deg, #F2C894 0 calc(12.5% - 3px), #E2AE76 calc(12.5% - 3px) 12.5%);
}
.rug {
  position: absolute; left: 17%; right: 17%; bottom: -6%; height: 36%; border-radius: 50%;
  background: #BAECDA; box-shadow: inset 0 0 0 12px #BAECDA, inset 0 0 0 16px rgba(255,255,255,.85);
}
.bunting { position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 15%; display: flex; justify-content: space-around; padding-inline: 2%; }
.bunting::before { content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 3px; background: var(--ink); opacity: .7; }
.bunting i {
  position: relative; top: 18%; width: 4.4%; height: 70%; transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%); background: var(--bc);
  animation: flutter 3.2s ease-in-out infinite;
}
.bunting i:nth-child(5n+1) { --bc: #D83A4A; }
.bunting i:nth-child(5n+2) { --bc: #F3C400; animation-delay: -.6s; }
.bunting i:nth-child(5n+3) { --bc: #ED7597; animation-delay: -1.2s; }
.bunting i:nth-child(5n+4) { --bc: #2AAD94; animation-delay: -1.8s; }
.bunting i:nth-child(5n)   { --bc: #9CC320; animation-delay: -2.4s; }
@keyframes flutter { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.pal {
  position: absolute; z-index: 2; left: calc(var(--x) * 1%); bottom: calc(var(--b) * 1%);
  height: calc(var(--h) * 1%); width: auto; translate: -50% 0; transform-origin: 50% 100%;
  animation: palIn .6s var(--ease-pop) both, var(--idle, none);
}
.p-nana, .p-eddy, .p-boo { z-index: 3; }   /* front row */
.p-bobo { animation-delay: .9s;  --idle: sway 3.4s ease-in-out 1.6s infinite; }
.p-y    { animation-delay: 1s;   --idle: breathe 4s ease-in-out 1.6s infinite; }
.p-nana { animation-delay: 1.1s; --idle: breathe 5s ease-in-out 1.7s infinite; }
.p-eddy { animation-delay: 1.2s; --idle: sway 4.2s ease-in-out 1.8s infinite reverse; }
.p-boo  { animation-delay: 1.3s; --idle: ditoBounce 1.3s ease-in-out 1.9s infinite; }
@keyframes palIn { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* the five, side by side */
.dfriends { padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px); border-top: 4px solid var(--ink); }
.dfriends .sticker-title { color: #FF8DB4; }
html:lang(ko) .dfriends .sticker-title { color: var(--ink); }
.friend-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.friend {
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px;
  opacity: 0; transform: translateY(40px);
}
.friend.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s var(--ease-pop), box-shadow .25s; }
.friend.in:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.friend-art { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--grid), var(--c); border-bottom: 4px solid var(--ink); }
.friend-art::before { content: ""; position: absolute; left: 14%; right: 14%; top: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--c2); opacity: .55; }
.friend-art img {
  position: absolute; left: 50%; bottom: 8%; translate: -50% 0; height: 80%; width: auto; max-width: 88%; object-fit: contain;
  transition: transform .35s var(--ease-pop);
}
.friend:hover .friend-art img { transform: translateY(-6px) rotate(-4deg) scale(1.04); }
.friend-info { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.friend-role {
  align-self: flex-start; font-family: var(--button); font-weight: 800; font-size: .75rem; letter-spacing: .02em;
  background: var(--ink); color: var(--c2); border-radius: 999px; padding: .32em .85em;
}
.friend-info h3 { font-family: var(--display-ko); font-weight: 900; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1; }
.friend-info h3 small {
  font-family: var(--display); font-weight: 400; font-size: .6em; letter-spacing: .02em; vertical-align: middle;
  color: var(--c); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill;
}
html:lang(en) .friend-info h3 small { font-family: var(--display-ko); font-weight: 900; color: var(--ink); opacity: .5; -webkit-text-stroke: 0; }
.friend-info p { font-weight: 600; font-size: .92rem; line-height: 1.5; }

/* character partnerships */
.dpartner {
  position: relative; overflow: hidden; border-top: 4px solid var(--ink);
  background: var(--grid), var(--blue);
  padding: clamp(72px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(88px, 11vw, 140px);
}
.partner-card {
  position: relative; z-index: 2; max-width: 920px; margin: 0 auto; text-align: center;
  background: var(--white); border: 4px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 56px);
}
.partner-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05;
  color: #FF8DB4; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink);
  margin: 4px 0 16px;
}
html:lang(ko) .partner-title { font-family: var(--display-ko); font-weight: 900; letter-spacing: -.02em; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; }
.partner-lead { max-width: 620px; margin: 0 auto 28px; font-weight: 600; font-size: 1.08rem; line-height: 1.65; }
.partner-types { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.partner-types li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 3px solid var(--ink); border-radius: 18px; padding: 16px 10px;
}
.partner-types li:nth-child(1) { background: #FFEBA6; }
.partner-types li:nth-child(2) { background: #FFD6E4; }
.partner-types li:nth-child(3) { background: #C9EFE5; }
.partner-types li:nth-child(4) { background: #E5DAF3; }
.partner-types span { font-size: 2rem; line-height: 1; }
.partner-types b { font-family: var(--display-ko); font-weight: 900; font-size: 1.02rem; }
.partner-types small { font-weight: 600; font-size: .8rem; line-height: 1.45; opacity: .75; }
.partner-cta { font-size: clamp(1rem, 2vw, 1.2rem); white-space: normal; }
.partner-note { margin-top: 20px; font-size: .88rem; line-height: 1.6; opacity: .75; }
.partner-pal { position: absolute; z-index: 1; bottom: -1%; height: clamp(130px, 17vw, 240px); }
.pp-1 { left: 2%; rotate: -8deg; }
.pp-2 { right: 3%; rotate: 7deg; }
.footer-dito img { margin-inline: 2px; }

@media (max-width: 1100px) {
  /* 3 + 2, with the last two centred */
  .friend-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .friend { grid-column: span 2; }
  .friend:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 860px) {
  .partner-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-pal { display: none; }
}
@media (max-width: 640px) {
  .dito-title span { -webkit-text-stroke-width: 3px; text-shadow: 4px 4px 0 var(--ink); }
  .scene { border-width: 3px; box-shadow: var(--shadow); }
  /* phones: one row per friend, picture on the left */
  .friend-grid { grid-template-columns: 1fr; }
  .friend, .friend:nth-child(4) { grid-column: auto; flex-direction: row; }
  .friend-art { flex: 0 0 120px; aspect-ratio: auto; border-bottom: 0; border-right: 4px solid var(--ink); }
  .friend-info { padding: 14px 14px 16px; }
  .friend-info h3 { font-size: 1.45rem; }
}

/* ───────── responsive ───────── */
@media (max-width: 960px) {
  .vid-types, .vid-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid, .mask-grid { grid-template-columns: repeat(2, 1fr); }
  .dino-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .make-grid { grid-template-columns: 1fr 1fr; }
  .stk.s2, .stk.s4 { display: none; }
}
@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .logo-mark { width: 38px; height: 38px; }
  .logo-word { font-size: 1.2rem; }
  .hero { padding-top: 92px; }
  .hero-logo span { font-size: clamp(1.6rem, 8.6vw, 2.6rem); -webkit-text-stroke-width: 2px; text-shadow: 4px 4px 0 var(--ink); }
  .hero-mark { width: clamp(60px, 19vw, 76px); }
  .stk.s1 { left: 7%; top: 53%; }
  .stk.s5 { display: block; right: 9%; left: auto; top: 50%; }
  .stk.s3 { display: none; }
  .stamp { top: 84px; right: 6px; width: 84px; border-width: 3px; }
  .stamp-core { font-size: .7rem; -webkit-text-stroke-width: 1px; }
  .bubble { padding: .4em .7em; border-radius: 14px; }
  .bubble b { font-size: .9rem; }
  .bubble small { font-size: .68rem; }
  .hero-crew { width: 128%; max-width: none; margin-inline: -14%; }
  /* the crew picture is cropped at both sides here: pull the outer Ditomon in, a touch smaller */
  .hero-crew .dito { left: calc(var(--xm, var(--x)) * 1%); height: calc(var(--h) * .88%); }
  .make-grid { grid-template-columns: 1fr; }
  .make-card { min-height: 240px; }
  .m-family { flex-direction: column; text-align: center; }
  .m-family p { margin-inline: auto; }
  .game-grid, .mask-grid { grid-template-columns: 1fr; max-width: 420px; }
  .modal-head { padding: 22px 20px; gap: 14px; }
  .modal-head img { width: 76px; }
  .modal-content { padding: 20px; }
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .shots img { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .game { opacity: 1; transform: none; }
}
