/* CosmoHana — 홈페이지 공통 모양 (2026-11-19)
   밤하늘 + 사탕 우주. 버튼은 게임의 'A 캔디 글로시'와 같은 색·두께. */

:root {
  --night-0: #120c33;
  --night-1: #1c1448;
  --night-2: #2b1d62;
  --ink: #2a1b5e;
  --ink-soft: #66589e;
  --paper: #fff8ee;
  --paper-2: #fcefdf;
  --line: #eadfff;
  --gold-text: #ffe066;

  /* 게임 버튼 색 (kit common.py BTN 과 같은 값) */
  --g1: hsl(128 78% 68%); --g2: hsl(140 72% 46%); --g3: hsl(146 75% 24%);
  --b1: hsl(204 92% 72%); --b2: hsl(218 86% 54%); --b3: hsl(222 75% 28%);
  --p1: hsl(330 95% 78%); --p2: hsl(332 85% 56%); --p3: hsl(332 75% 28%);
  --y1: hsl(48 100% 70%); --y2: hsl(38 97% 54%); --y3: hsl(30 90% 27%);
  --o1: hsl(30 100% 72%); --o2: hsl(20 95% 55%); --o3: hsl(16 85% 27%);
  --l1: hsl(262 90% 95%); --l2: hsl(262 60% 86%); --l3: hsl(262 40% 55%);

  --f-display: "Jua", "M PLUS Rounded 1c", "Fredoka", sans-serif;
  --w-display: 400;
  --f-body: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --w-body: 400;
  --w-strong: 700;
  --radius: 26px;

  /* 글자 크기·여백 체계 (2026-11-20 디자인 점검): 제목 3단계 + 본문 + 소개 + 작은 글, 구역 여백 하나 */
  --fs-hero: clamp(44px, 7vw, 76px);
  --fs-h1: clamp(40px, 6vw, 64px);
  --fs-h2: clamp(28px, 3.6vw, 42px);
  --fs-h3: 22px;
  --fs-body: 17px;
  --fs-lead: 19px;
  --fs-small: 14px;
  --measure: 36em;
  --sec-pad: 88px;
  --top-pad: 56px;
  --f-num: "Fredoka", "Jua", "M PLUS Rounded 1c", sans-serif;
}
@media (max-width: 640px) { :root { --sec-pad: 56px; --top-pad: 32px; --fs-lead: 17px; } }
html[lang="en"] {
  --f-display: "Fredoka", "Jua", sans-serif; --w-display: 700;
  --f-body: "Nunito", system-ui, sans-serif; --w-body: 600; --w-strong: 800;
  --measure: 65ch;
}
html[lang="ja"] {
  --f-display: "M PLUS Rounded 1c", sans-serif; --w-display: 800;
  --f-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif; --w-body: 500; --w-strong: 800;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
html, body { margin: 0; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  font-family: var(--f-body); font-weight: var(--w-body);
  color: #fff; background: var(--night-0);
  font-size: var(--fs-body); line-height: 1.7; overflow-x: hidden;
  word-break: keep-all; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: var(--w-strong); }
h1, h2, h3, .display { font-family: var(--f-display); font-weight: var(--w-display); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: break-word; }
.nb { white-space: nowrap; }
[id] { scroll-margin-top: 84px; }   /* 메뉴에서 눌러 내려갈 때 제목이 위 고정 바에 가리지 않게 */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: 0; }
html[lang="en"] body { line-height: 1.6; }
p, li, dd, summary { text-wrap: pretty; }

/* 키보드로 고를 때 보이는 테두리: 어두운 곳은 노랑, 크림색 위에서는 진한 분홍 */
:focus-visible { outline: 3px solid var(--y1); outline-offset: 3px; }
.paper :focus-visible, .lang-menu :focus-visible, .doc :focus-visible { outline-color: var(--p3); }

/* 언어: 세 언어를 다 써 두고 고른 것만 보이기 */
[data-lang] { display: none !important; }
html[lang="ko"] [data-lang="ko"], html[lang="en"] [data-lang="en"], html[lang="ja"] [data-lang="ja"] { display: revert !important; }
html[lang="ko"] img[data-lang="ko"], html[lang="en"] img[data-lang="en"], html[lang="ja"] img[data-lang="ja"] { display: block !important; }

/* ───────── 밤하늘 (페이지 뒤 고정) ───────── */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; transform: translateZ(0); will-change: transform;
  background:
    radial-gradient(60% 40% at 88% 6%, rgba(255, 120, 200, .20), transparent 70%),
    radial-gradient(50% 40% at 4% 58%, rgba(80, 220, 255, .12), transparent 70%),
    radial-gradient(70% 45% at 50% 108%, rgba(255, 170, 90, .16), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 45%, var(--night-2) 100%);
}
.sky::before, .sky::after { content: ""; position: absolute; inset: -40px; }
.sky::before { background: url(/img/deco/stars_far.png) 0 0 / 512px 512px repeat; opacity: .75; }
.sky::after { background: url(/img/deco/stars_near.png) 120px 60px / 700px 700px repeat; opacity: .9; }

/* ───────── 위쪽 메뉴 ───────── */
.site-head { position: sticky; top: 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-head.scrolled { background: rgba(18, 12, 51, .94);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.head-in { max-width: 1180px; margin: 0 auto; padding: 12px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; flex: none; }
.brand svg { width: 38px; height: 38px; flex: none; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: hover) { .brand:hover svg { transform: rotate(-18deg) scale(1.08); } }
.brand .word { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 23px; letter-spacing: .2px; line-height: 1; }
.brand .word i { font-style: normal; color: var(--gold-text); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-family: var(--f-display); font-weight: var(--w-display); font-size: 17px;
  padding: 8px 13px; border-radius: 999px; color: rgba(255, 255, 255, .88); transition: background .2s, color .2s; }
@media (hover: hover) { .nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; } }
.nav a.on { color: #fff; }
.nav a.on::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--y1); box-shadow: 0 0 8px var(--y2); }
.langs { display: flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.langs button { font: 400 14px/1 "Jua", "M PLUS Rounded 1c", sans-serif; border: 0; background: none; color: rgba(255, 255, 255, .75);
  padding: 7px 11px 8px; border-radius: 999px; cursor: pointer; }
.langs button[data-set="en"], .lang-cur [data-lang="en"] { font-family: "Fredoka", sans-serif; font-weight: 600; }
.langs button[data-set="ja"], .lang-cur [data-lang="ja"] { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: 13px; }
/* 폰: 지금 언어 하나 + 펼치기 */
.lang-pick { display: none; position: relative; margin-left: auto; }
.lang-cur { display: flex; align-items: center; gap: 6px; font: 400 15px/1 "Jua", "M PLUS Rounded 1c", sans-serif; color: #fff; cursor: pointer;
  padding: 9px 12px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); }
.lang-cur::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .8; }
.lang-pick .lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; flex-direction: column; gap: 2px; padding: 6px; min-width: 132px;
  background: var(--paper); border: 0; border-radius: 18px; box-shadow: 0 6px 0 var(--l3), 0 18px 36px rgba(0, 0, 0, .4); display: none; }
.lang-pick.open .lang-menu { display: flex; }
.lang-pick .lang-menu button { color: var(--ink); text-align: left; font-size: 17px; padding: 11px 14px; border-radius: 12px; }
.lang-pick .lang-menu button.on { background: var(--l1); color: var(--p2); }
.langs button.on { background: #fff; color: var(--p2); }

.menu-btn { display: none; margin-left: auto; width: 46px; height: 42px; border-radius: 14px; border: 2px solid var(--l3);
  background: linear-gradient(180deg, var(--l1), var(--l2)); box-shadow: 0 4px 0 var(--l3); cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 3px; margin: 4px auto; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-btn { display: block; margin-left: 0; }
  .langs.top { display: none; }
  .lang-pick { display: block; }
  .nav { position: fixed; left: 12px; right: 12px; top: 68px; flex-direction: column; gap: 6px; margin: 0; padding: 14px;
    background: var(--paper); border-radius: 24px; box-shadow: 0 8px 0 var(--l3), 0 24px 50px rgba(0, 0, 0, .4);
    transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { color: var(--ink); font-size: 20px; padding: 12px 16px; background: #fff; border: 2px solid var(--line); }
@media (hover: hover) { .nav a:hover { background: var(--l1); color: var(--ink); } }
  .nav a.on { background: var(--l1); }
  .nav a.on::after { left: auto; right: 18px; top: 50%; bottom: auto; margin: -3px 0 0; }
  .head-in { gap: 10px; padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); }
  .brand .word { font-size: 21px; }
  .nav :focus-visible { outline-color: var(--p3); }
  body.menu-open { overflow: hidden; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(10, 6, 30, .55); }
}


/* ───────── 공통 틀 ───────── */
main { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.sec { padding-top: var(--sec-pad); padding-bottom: var(--sec-pad); position: relative; }
.sec.sec-tight { padding-top: 0; }
.sec-head { max-width: 640px; margin: 0 0 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
/* 모든 구역 제목은 같은 크기 */
.sec-head h2, .split h2, .story h2, .call h2, .contact h2 { font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 12px; }
.sec-head p { margin: 0; font-size: var(--fs-lead); color: rgba(255, 255, 255, .82); }
.sec-head p, .split p, .story p, .news-item p, .faq .a p, .contact p, .promises p { max-width: var(--measure); }

/* 크림색 종이 구역 (위아래 과자처럼 동글동글한 가장자리) */
.paper { background: var(--paper); color: var(--ink); position: relative; margin: 30px 0; }
main > .paper:last-child { margin-bottom: 110px; }
.paper::before, .paper::after { content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: radial-gradient(circle at 22px 22px, var(--paper) 21px, transparent 22px) 0 0 / 44px 22px repeat-x; }
.paper::before { top: -21px; }
.paper::after { bottom: -21px; transform: scaleY(-1); }
.paper .sec-head p { color: var(--ink-soft); }

/* ───────── 사탕 버튼 (게임 'A 캔디 글로시') ───────── */
.cbtn { --c1: var(--g1); --c2: var(--g2); --c3: var(--g3); --side: color-mix(in srgb, var(--c2) 55%, var(--c3));   /* 밑면 두께: 게임 버튼처럼 같은 색을 조금 어둡게 (테두리보다 밝게) */
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 28px 12px; border-radius: 999px; border: 2.5px solid var(--c3);
  font-family: var(--f-display); font-weight: var(--w-display); font-size: 21px; line-height: 1.1; color: #fff; text-decoration: none; cursor: pointer;
  text-shadow: 0 2px 0 var(--c3), 0 0 2px var(--c3);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .11) 0 9px, transparent 9px 20px),
    linear-gradient(180deg, var(--c1) 0%, color-mix(in srgb, var(--c1) 25%, var(--c2)) 50%, var(--c2) 100%);
  box-shadow: 0 6px 0 -2.5px var(--side), 0 6px 0 var(--c3), 0 14px 20px rgba(10, 4, 40, .35);
  transition: transform .12s, box-shadow .12s; -webkit-tap-highlight-color: transparent; }
.cbtn::before { content: ""; position: absolute; z-index: -1; left: 10px; right: 10px; top: 4px; height: 44%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .08)); }
.cbtn::after { content: ""; position: absolute; left: 18px; top: 7px; width: 9px; height: 9px; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: .95; }
.cbtn:not(:has(.ico))::after { left: auto; right: 18px; }
@media (hover: hover) { .cbtn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2.5px var(--side), 0 8px 0 var(--c3), 0 18px 24px rgba(10, 4, 40, .35); } }
.cbtn:active { transform: translateY(5px); box-shadow: 0 1px 0 -2.5px var(--side), 0 1px 0 var(--c3), 0 4px 8px rgba(10, 4, 40, .3); }
.cbtn .ico { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.cbtn .ico::before { content: ""; width: 12px; height: 13px; margin-left: 3px; background: var(--c2);
  clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 2px; }
.cbtn.blue { --c1: var(--b1); --c2: var(--b2); --c3: var(--b3); }
.cbtn.pink { --c1: var(--p1); --c2: var(--p2); --c3: var(--p3); }
.cbtn.gold { --c1: var(--y1); --c2: var(--y2); --c3: var(--y3); }
.cbtn.orange { --c1: var(--o1); --c2: var(--o2); --c3: var(--o3); }
.cbtn.lilac { --c1: var(--l1); --c2: var(--l2); --c3: var(--l3); --side: var(--l3); color: var(--ink); text-shadow: none; }
.cbtn.lilac::after { background: var(--l3); opacity: .5; }
.cbtn.small { min-height: 44px; font-size: 17px; padding: 7px 20px 9px; }
.cbtn.small .ico { width: 24px; height: 24px; }
.cbtn.small .ico::before { width: 9px; height: 10px; }

.note { font-size: var(--fs-small); color: rgba(255, 255, 255, .7); }

/* 스티커 */
.sticker { display: inline-block; font-family: var(--f-display); font-weight: var(--w-display); font-size: 15px; line-height: 1;
  padding: 7px 13px 8px; border-radius: 12px; color: #fff; background: var(--p2); border: 3px solid #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(10, 4, 40, .3); transform: rotate(-5deg); }
.sticker.gold { background: var(--y2); color: #fff; text-shadow: 0 1px 0 var(--y3); }
.sticker.green { background: var(--g2); }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1.5px solid rgba(255, 255, 255, .28); }
.paper .chip { background: #fff; border-color: var(--line); color: var(--ink); }

/* 폰 */
.phone { position: relative; width: 240px; aspect-ratio: 600 / 1300; border-radius: 34px; padding: 7px; background: #241752;
  box-shadow: inset 0 0 0 2px #4a3a8c, 0 24px 44px rgba(6, 2, 30, .5); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.phone::after { content: ""; position: absolute; inset: 7px; border-radius: 28px; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%); }

/* 나타나기 */


/* ───────── 첫 화면 (회사) ───────── */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; margin-top: -66px; padding-top: 66px; }
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero-copy { padding: var(--top-pad) 0 0; max-width: 660px; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.12; margin: 0 0 18px; text-shadow: 0 4px 0 rgba(10, 4, 40, .35); }
.hero h1 .pop { position: relative; display: inline-block; color: var(--y1); transform: rotate(-4deg);
  -webkit-text-stroke: 2px var(--y3); paint-order: stroke fill; text-shadow: 0 5px 0 var(--y3); }
.hero .lead { font-size: var(--fs-lead); max-width: 540px; color: rgba(255, 255, 255, .88); margin: 0 0 28px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; position: relative; z-index: 5; }
.hero .deco-ring { position: absolute; z-index: 1; right: -60px; top: 110px; width: min(38vw, 420px); transform: rotate(-12deg); opacity: .95; }
.hero .deco-moon { position: absolute; z-index: 1; right: 30%; top: 130px; width: 74px; }


/* 친구들이 서 있는 행성 지평선 */
.stage { position: relative; z-index: 2; margin-top: auto; height: clamp(280px, 34vw, 380px);
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 100%); mask-image: linear-gradient(180deg, #000 74%, transparent 100%); }
.horizon { position: absolute; left: 50%; top: calc(100% - clamp(96px, 11vw, 132px)); width: max(2400px, 240vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 2%, #fff3fb 0, #ffd6ec 3%, #f6b8e0 7%, #d79ce8 13%, #a77ee0 20%, #7a5cc8 30%);
  box-shadow: 0 0 0 10px rgba(255, 200, 240, .18), 0 0 80px 20px rgba(255, 150, 220, .35), inset 0 22px 0 rgba(255, 255, 255, .35); }
.horizon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .55;
  background:
    radial-gradient(circle at 46% 1.2%, rgba(255, 255, 255, .7) 0 .25%, transparent .3%),
    radial-gradient(circle at 53% 1.6%, rgba(170, 100, 210, .35) 0 .5%, transparent .55%),
    radial-gradient(circle at 41% 2.6%, rgba(170, 100, 210, .3) 0 .7%, transparent .75%),
    radial-gradient(circle at 58.5% 3%, rgba(255, 255, 255, .5) 0 .35%, transparent .4%),
    radial-gradient(circle at 36% 4.6%, rgba(170, 100, 210, .3) 0 .9%, transparent .95%),
    radial-gradient(circle at 63% 5%, rgba(170, 100, 210, .28) 0 .8%, transparent .85%); }
.crew { position: absolute; left: 50%; bottom: clamp(70px, 8.4vw, 104px); transform: translateX(-50%); display: flex; align-items: flex-end;
  gap: clamp(0px, .6vw, 10px); width: max-content; }
.mate { position: relative; width: clamp(84px, 8.6vw, 124px); transform-origin: 50% 100%; translate: 0 var(--dy, 0px); rotate: var(--tilt, 0deg); }
.mate { position: relative; }
.mate::after { content: ""; position: absolute; z-index: -1; left: 18%; right: 18%; bottom: -2px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 10, 70, .45), transparent); }
.mate img, .mate .rig { width: 100%; animation: bob 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); transform-origin: 50% 100%; }
.mate.hana { width: clamp(118px, 11.5vw, 164px); z-index: 2; }
.mate.boing img, .mate.boing .rig { animation: boing .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-8px) rotate(calc(var(--r, 0deg) * -1)); } }
@keyframes boing { 0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .84); } 65% { transform: scale(.94, 1.08); } 100% { transform: scale(1, 1); } }
.ball { position: absolute; z-index: 4; width: 44px; height: 44px; left: 0; top: 0; pointer-events: none; will-change: transform;
  background: url(/img/deco/star.webp) center / contain no-repeat; filter: drop-shadow(0 0 10px rgba(255, 210, 60, .9)); }
.ball-pop { position: absolute; z-index: 4; pointer-events: none; font: 700 22px/1 "Fredoka", "Jua", sans-serif; color: #fff;
  -webkit-text-stroke: 1.5px var(--p3); paint-order: stroke fill; animation: ballpop .8s ease-out forwards; }
@keyframes ballpop { 0% { opacity: 0; transform: translate(-50%, 0) scale(.5); } 20% { opacity: 1; transform: translate(-50%, -18px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -54px) scale(1); } }
@media (max-width: 960px) { .mate.far { display: none; } }
@media (max-width: 480px) { .hero .cta .cbtn { flex: 1 1 100%; } }
@media (max-width: 760px) {
  .hero-copy { text-align: left; }
  .hero .deco-ring { width: 170px; right: -78px; top: 18px; opacity: .5; }
  .hero .deco-moon { display: none; }
  .stage { height: 250px; margin-top: 30px; }
  .horizon { top: calc(100% - 80px); }
  .crew { bottom: 58px; gap: 0; }
  .mate { width: 19vw; margin: 0 -1.5vw; }
  .mate.hana { width: 27vw; }
}

/* ───────── 탑승권 (지금 나온 게임) ───────── */
.board-sec { padding-top: 40px; }
.ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.ticket-wrap { filter: drop-shadow(0 26px 34px rgba(4, 0, 30, .45)); }
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 210px; border-radius: 28px; color: var(--ink); transform: rotate(-1.2deg); }
.ticket .tag, .ticket dl, .ticket .actions { position: relative; }
.ticket > div { background: var(--paper); }
.ticket .main { border-radius: 28px 0 0 28px; padding: 28px 30px 26px; position: relative; overflow: hidden;
  -webkit-mask: radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15.5px, #000 16px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15.5px, #000 16px) bottom / 100% 51% no-repeat; }
.ticket .stub { border-radius: 0 28px 28px 0; padding: 26px 20px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; text-align: center;
  border-left: 3px dashed #e3d3c0; background: var(--paper-2);
  -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) bottom / 100% 51% no-repeat; }
.ticket .main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: repeating-linear-gradient(90deg, var(--p2) 0 22px, var(--y1) 22px 44px, var(--b2) 44px 66px, var(--g2) 66px 88px); }
.ticket .pass { font: 700 13px/1 var(--f-num); letter-spacing: 3px; color: var(--p2); margin: 10px 0 12px; display: flex; gap: 10px; align-items: center; }
.ticket .pass::after { content: ""; order: 1; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #e3d3c0 0 6px, transparent 6px 11px); }
.ticket .pass .no { order: 2; letter-spacing: 1px; color: var(--ink); }
.ticket .logo { width: min(330px, 100%); margin: 0 0 6px -6px; }
.ticket .tag { margin: 0 0 18px; color: var(--ink-soft); font-size: var(--fs-body); }
.ticket dl { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 20px; }
.ticket dt { font: 700 11px/1.2 var(--f-num); letter-spacing: 1.6px; color: #7d6248; text-transform: uppercase; }
.ticket dd { margin: 3px 0 0; font-family: var(--f-display); font-weight: var(--w-display); font-size: 18px; line-height: 1.25; white-space: nowrap; }
.ticket .stub .hana { width: 108px; filter: drop-shadow(0 6px 6px rgba(60, 20, 90, .25)); }
.ticket .stub .seat { font: 700 11px/1.2 var(--f-num); letter-spacing: 2px; color: #7d6248; }
.ticket .stub .seat b { display: block; font-size: 30px; letter-spacing: 0; color: var(--ink); margin-top: 2px; }
.ticket .stub .barcode { width: 100%; height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); opacity: .8; border-radius: 3px; }
.ticket .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fan { position: relative; width: 420px; height: 480px; margin-top: -30px; }
.fan .phone { position: absolute; width: 220px; }
.fan .phone:nth-child(1) { left: 0; top: 50px; transform: rotate(-9deg); }
.fan .phone:nth-child(2) { left: 100px; top: 0; z-index: 2; transform: rotate(2deg); width: 236px; }
.fan .phone:nth-child(3) { left: 200px; top: 70px; transform: rotate(11deg); }
@media (min-width: 1061px) and (max-width: 1260px) { .ticket-row { gap: 24px; } .fan { margin-right: 34px; } }
@media (max-width: 1060px) {
  .ticket-row { grid-template-columns: 1fr; }
  .fan { margin: 0 auto; height: 520px; }
}
@media (max-width: 640px) {
  .ticket { grid-template-columns: 1fr; transform: none; }
  .ticket .main { border-radius: 26px 26px 0 0; padding: 24px 20px 20px;
    -webkit-mask: radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15.5px, #000 16px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 16px at 0 100%, transparent 15.5px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15.5px, #000 16px) right / 51% 100% no-repeat; }
  .ticket .stub { border-radius: 0 0 26px 26px; border-left: 0; border-top: 3px dashed #e3d3c0; flex-direction: row; padding: 16px 20px;
    -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 16px at 0 0, transparent 15.5px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 0, transparent 15.5px, #000 16px) right / 51% 100% no-repeat; }
  .ticket .stub .hana { width: 70px; }
  .ticket .stub .barcode { width: 70px; height: 40px; }
  .fan { width: 320px; height: 410px; }
  .fan .phone { width: 168px; }
  .fan .phone:nth-child(2) { left: 76px; width: 180px; }
  .fan .phone:nth-child(3) { left: 150px; }
}

/* ───────── 미니 스도쿠 ───────── */
.mini { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.mini-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.mini-steps li { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 14px; align-items: start; }
.mini-steps .n { font-family: var(--f-display); font-weight: var(--w-display); font-size: 21px; line-height: 1; padding: 10px 8px 11px; border-radius: 14px; color: #fff; transform: rotate(-4deg);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .15); text-align: center; white-space: nowrap; }
.mini-steps li:nth-child(1) .n { background: var(--b2); }
.mini-steps li:nth-child(2) .n { background: var(--p2); transform: rotate(3deg); }
.mini-steps li:nth-child(3) .n { background: var(--y2); }
.mini-steps b { display: block; font-family: var(--f-display); font-weight: var(--w-display); font-size: 19px; line-height: 1.35; }
.mini-steps li > div > span { color: var(--ink-soft); }
.game { --cell: clamp(62px, 17vw, 84px); position: relative; width: calc(var(--cell) * 4 + 36px); user-select: none; -webkit-user-select: none; }
.game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 0 4px; }
.hearts { display: flex; gap: 4px; }
.hearts img { width: 30px; transition: transform .3s, filter .3s, opacity .3s; }
.hearts img.lost { filter: grayscale(1) brightness(1.3); opacity: .35; transform: scale(.8); }
.combo { font: 700 15px/1 var(--f-num); color: var(--ink-soft); }
.combo b { font-size: 26px; color: var(--o2); margin-left: 4px; display: inline-block; }
.combo b.bump { animation: boing .4s cubic-bezier(.3, 1.6, .5, 1); }
.grid { position: relative; display: grid; grid-template-columns: repeat(4, var(--cell)); gap: 0; padding: 12px; border-radius: 26px;
  background: linear-gradient(180deg, #e9ddff, #d2c0ff); box-shadow: 0 8px 0 #9f86e6, 0 20px 30px rgba(40, 20, 90, .25); }
.grid.shake { animation: gshake .38s ease; }
@keyframes gshake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 2px; } 40% { translate: 5px -3px; } 60% { translate: -4px 1px; } 80% { translate: 3px 0; } }
.cell { position: relative; width: var(--cell); height: var(--cell); display: grid; place-items: center; cursor: pointer; background: #fff;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: calc(var(--cell) * .5); color: #3a2a7a;
  border: 1.5px solid #e4dafc; transition: background .25s; }
.cell:nth-child(4n+2) { border-right: 4px solid #b9a5f0; }
.cell:nth-child(n+5):nth-child(-n+8) { border-bottom: 4px solid #b9a5f0; }
.cell:nth-child(1) { border-top-left-radius: 16px; } .cell:nth-child(4) { border-top-right-radius: 16px; }
.cell:nth-child(13) { border-bottom-left-radius: 16px; } .cell:nth-child(16) { border-bottom-right-radius: 16px; }
.cell.given { color: #3a2a7a; cursor: default; }
.cell:focus-visible { outline: 3px solid var(--p3); outline-offset: -4px; z-index: 1; }
.cell.peer { background: #f3eeff; }
.cell.same { background: #fff1c4; }
.cell.sel { background: #ffe58a; box-shadow: inset 0 0 0 3px var(--y2); }
.cell.put span { display: inline-block; animation: put .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes put { 0% { transform: scale(.2); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cell.bad { background: #ffd2dc; animation: cshake .4s ease; }
.cell.bad span { color: #e8335a; }
@keyframes cshake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.cell.flash { animation: cflash .6s ease forwards; animation-delay: var(--fd, 0s); }
@keyframes cflash { 0% { background: #fff; } 30% { background: #fff6b8; box-shadow: inset 0 0 0 4px #ffd23f; } 100% { background: #fff; } }
.pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.key { --c: var(--p2); --d: var(--p3); height: 62px; border-radius: 18px; border: 2.5px solid var(--d); cursor: pointer; color: #fff;
  font: 700 32px/1 "Fredoka", sans-serif; text-shadow: 0 2px 0 var(--d);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, #fff), var(--c)); box-shadow: 0 5px 0 var(--d);
  transition: transform .1s, box-shadow .1s; -webkit-tap-highlight-color: transparent; }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--d); }
.key[data-v="1"] { --c: hsl(350 85% 60%); --d: hsl(350 70% 32%); }
.key[data-v="2"] { --c: hsl(26 95% 56%); --d: hsl(22 80% 30%); }
.key[data-v="3"] { --c: hsl(44 96% 52%); --d: hsl(34 85% 28%); }
.key[data-v="4"] { --c: hsl(140 66% 46%); --d: hsl(146 70% 24%); }
.cell .v1 { color: hsl(350 80% 55%); } .cell .v2 { color: hsl(24 92% 52%); } .cell .v3 { color: hsl(40 95% 45%); } .cell .v4 { color: hsl(142 60% 40%); }
.cell.given span { color: #3a2a7a !important; }
.slam { position: absolute; left: 50%; top: 42%; z-index: 6; pointer-events: none; white-space: nowrap;
  font-family: var(--f-display); font-weight: var(--w-display); font-size: 40px; color: #fff;
  -webkit-text-stroke: 3px #6a2bb8; paint-order: stroke fill; text-shadow: 0 5px 0 #4a1a8a;
  animation: slam 1s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-8deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
  75% { opacity: 1; transform: translate(-50%, -50%) scale(1.04) rotate(-6deg); } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1) rotate(-6deg); } }
.spark { position: absolute; z-index: 5; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; }
.win { position: absolute; inset: -14px; z-index: 8; display: grid; place-items: center; text-align: center; border-radius: 30px;
  background: rgba(255, 248, 238, .93); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.win.on { opacity: 1; pointer-events: auto; }
.win .stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 4px; }
.win .stars img { width: 64px; opacity: 0; }
.win.on .stars img { animation: starin .5s cubic-bezier(.3, 1.7, .5, 1) forwards; }
.win.on .stars img:nth-child(1) { animation-delay: .25s; } .win.on .stars img:nth-child(2) { animation-delay: .55s; width: 80px; translate: 0 -10px; } .win.on .stars img:nth-child(3) { animation-delay: .85s; }
@keyframes starin { 0% { opacity: 0; transform: scale(2.6) rotate(60deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.win-title { font-family: var(--f-display); font-weight: var(--w-display); font-size: 40px; line-height: 1.1; margin: 0; color: var(--p2); -webkit-text-stroke: 2px #fff; paint-order: stroke fill; text-shadow: 0 4px 0 var(--p3); }
.win p { margin: 4px 0 18px; color: var(--ink-soft); }
.win .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) { .mini { grid-template-columns: 1fr; } .game { margin: 0 auto; } }
@media (max-width: 400px) { .game { --cell: clamp(30px, calc((100vw - 136px) / 4), 64px); } .key { height: 56px; } }   /* 화면 폭에 맞춰 칸 크기 (좁은 폰·글자 크게 본 폰) */

/* ───────── 시리즈 ───────── */
.series { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.slot { position: relative; border-radius: var(--radius); padding: 22px; min-height: 230px; overflow: hidden; }
.slot.live { background: linear-gradient(160deg, #3b2a85, #261a5e); border: 2px solid rgba(255, 255, 255, .16); display: flex; gap: 18px; align-items: center; text-decoration: none; }
.slot.live .icon { width: 108px; border-radius: 26px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); flex: none; }
.slot.live h3 { margin: 0 0 4px; font-size: var(--fs-h3); }
.slot.live p { margin: 0 0 12px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.slot.locked { border: 2.5px dashed rgba(255, 255, 255, .22); display: grid; place-items: start center; padding-top: 34px; text-align: center; color: rgba(255, 255, 255, .7); }
.slot.locked img { width: 86px; margin: 0 auto 10px; opacity: .9; }
.slot.locked b { display: block; font-family: var(--f-display); font-weight: var(--w-display); font-size: 22px; color: #fff; }
.slot.locked span { font-size: 14px; }
@media (max-width: 860px) { .series { grid-template-columns: 1fr 1fr; } .slot.live { grid-column: 1 / -1; } }
@media (max-width: 520px) { .slot.live { flex-direction: column; text-align: center; } .slot { min-height: 190px; } }

/* ───────── 소식 ───────── */
.news-list { display: grid; }
.news-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; padding: 24px 0; color: var(--ink);
  border-top: 2px dashed #e6d6c2; }
.news-item:last-child { border-bottom: 2px dashed #e6d6c2; }
.news-item time { font: 700 15px/1.2 var(--f-num); color: #b81c66; padding-top: 3px; }
.news-item h2 { margin: 0 0 6px; font-size: var(--fs-h3); line-height: 1.3; }
.news-item p { margin: 0; color: var(--ink-soft); }
.news-item .sticker { font-size: 13px; padding: 5px 10px 6px; margin-left: 6px; vertical-align: 3px; }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; } }

/* ───────── 스도쿠 게임 페이지 ───────── */
.g-hero { position: relative; margin-top: -66px; padding: calc(66px + var(--top-pad)) 0 70px; overflow: hidden; }
.g-title { margin: 0; }
.g-deco { position: absolute; right: -90px; top: 40px; width: 300px; opacity: .5; }
.g-hero .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.g-hero .logo { width: min(520px, 100%); margin: 0 0 18px -8px; filter: drop-shadow(0 10px 18px rgba(4, 0, 30, .45)); }
.g-hero .tag { font-size: var(--fs-lead); margin: 0 0 22px; max-width: 520px; }
.g-hero .note { margin: 14px 0 0; }
.g-hero .chips { margin: 0 0 26px; }
.g-hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.g-hero .duo { position: relative; width: 470px; height: 560px; }
.g-hero .duo .phone:nth-child(1) { position: absolute; left: 0; top: 30px; transform: rotate(-7deg); }
.g-hero .duo .phone:nth-child(2) { position: absolute; right: 0; top: 0; transform: rotate(6deg); }
.g-hero .duo .peek { position: absolute; z-index: 3; width: 128px; left: 172px; bottom: -20px; filter: drop-shadow(0 8px 8px rgba(10, 4, 40, .4)); }
@media (max-width: 960px) {
  .g-hero .grid2 { grid-template-columns: 1fr; }
  .g-hero .duo { margin: 10px auto 0; width: 330px; height: 420px; }
  .g-hero .duo .phone { width: 180px; }
  .g-hero .duo .peek { width: 100px; left: 116px; }
}

/* 행성 여행 */
.trip { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 46px 18px; padding: 10px 0; }
.trip svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stop { position: relative; z-index: 1; text-align: center; grid-column: var(--dc); grid-row: var(--dr); }
.stop:nth-child(odd) { translate: 0 22px; }
.stop img { height: 130px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 8px; }
.stop b { display: block; font-family: var(--f-display); font-weight: var(--w-display); font-size: 18px; line-height: 1.25; }
.stop > span { display: inline-block; margin-top: 5px; font: 700 12.5px/1 var(--f-num); letter-spacing: .5px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.stop > .size { background: var(--y1); color: var(--y3); margin-left: 4px; }
.stop.home img { filter: drop-shadow(0 0 22px rgba(255, 230, 150, .7)); }
.beyond { max-width: 820px; margin: 56px auto 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.beyond .lock { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1.5px dashed rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .7); font-size: 15px; }
.beyond .lock img { width: 24px; opacity: .8; }
.beyond .lead { width: 100%; text-align: center; color: rgba(255, 255, 255, .8); margin-bottom: 6px; }
@media (max-width: 860px) { .trip { grid-template-columns: repeat(2, 1fr); gap: 34px 14px; } .stop { grid-column: var(--mc); grid-row: var(--mr); translate: 0 0 !important; } .stop img { height: 110px; } }

/* 친구 카드 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 22px; }
.fcard { --t1: #8fd3ff; --t2: #4f8bff; position: relative; border-radius: 26px; padding: 12px; color: var(--ink); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--t1), var(--t2)); box-shadow: 0 7px 0 color-mix(in srgb, var(--t2) 60%, #1a0f40), 0 18px 30px rgba(6, 2, 30, .35);
  }
.fcard .art { position: relative; height: 200px; border-radius: 18px; overflow: hidden; display: grid; place-items: end center;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .55), transparent 60%), url(/img/deco/stars_near.png) center / 360px, #2a1b64; }
.fcard .art > img, .fcard .art > .rig { height: 186px; width: auto; }
.fcard .price { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 11px 4px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); font: 700 15px/1 var(--f-num); color: var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.fcard .price img { width: 18px; height: auto; }
.fcard .body { flex: 1; background: #fff; border-radius: 18px; margin-top: 10px; padding: 14px 16px 16px; }
.fcard h3 { margin: 0 0 10px; font-size: var(--fs-h3); text-align: center; }
.fcard .ab { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; font-size: 14.5px; line-height: 1.45; }
.fcard .ab em { font-style: normal; font: 700 12px/1 var(--f-display); color: #fff; padding: 5px 8px 6px; border-radius: 8px; white-space: nowrap; align-self: start; }
.fcard .ab em.tal { background: #1f7a52; }
.fcard .ab em.sp { background: #b8530f; }
.fcard .ab i { display: block; font-style: normal; font-family: var(--f-display); font-weight: var(--w-display); }
.fcard.t2 { --t1: #c4f59a; --t2: #45b85a; }
.fcard.t3 { --t1: #e3e8f5; --t2: #9aa6c8; }
.fcard.t4 { --t1: #ffe28a; --t2: #f0a020; }
.fcard.t5 { --t1: #ffc2e8; --t2: #b85ae0; }
.fcard.t6 { --t1: #fff1a0; --t2: #ff8a3a; }
.fcard.t7 { --t1: #e2ccff; --t2: #8a5ce0; }
.fcard.t8 { --t1: #ffd3bf; --t2: #ff7a5a; }
.fcard.holo { overflow: hidden; }
.fcard.holo::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .32) 50%, transparent 80%); transform: translateX(-120%); }
.fcard.holo.vis::after { animation: holo 4.5s ease-in-out infinite; }
@keyframes holo { 0%, 40% { transform: translateX(-120%); opacity: 1; } 100% { transform: translateX(260%); opacity: 1; } }
.fcard.hana { grid-column: span 2; grid-row: span 2; --t1: #ffd0e6; --t2: #ff7ab8; }
.fcard.hana .art { flex: 1; height: auto; min-height: 300px; }
.fcard.hana .art img, .fcard.hana .art .rig { height: auto; width: min(78%, 420px); max-height: 92%; object-fit: contain; position: absolute; bottom: 0; left: 50%; translate: -50% 0; }
.fcard.hana .body { flex: none; padding: 18px 22px 20px; }
.fcard.hana h3 { font-size: 28px; margin-bottom: 6px; }
.fcard.hana p { margin: 0; color: var(--ink-soft); text-align: center; }
@media (max-width: 600px) {
  .fcard.hana { grid-column: auto; grid-row: auto; } .fcard.hana .art { min-height: 260px; }
  .fcard:not(.hana) .art { height: 150px; } .fcard:not(.hana) .art > img, .fcard:not(.hana) .art > .rig { height: 140px; }
}

/* 사진 + 글 나란히 */
.split { display: grid; grid-template-columns: auto minmax(0, 560px); justify-content: center; gap: 72px; align-items: center; }
.split .phone { width: 280px; }
.split.rev { grid-template-columns: minmax(0, 1fr) auto; }
.split p { margin: 0 0 14px; }
.paper .split p { color: var(--ink-soft); }
@media (max-width: 820px) { .split, .split.rev { grid-template-columns: 1fr; gap: 30px; } .split .phone { width: 240px; } .split .phone { margin: 0 auto; } .split.rev > :last-child { order: -1; } }

/* 화면 모음 */
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; margin: 0 -20px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.shots figure { flex: none; margin: 0; scroll-snap-align: center; text-align: center; }
.shots .phone { width: 210px; }
@media (min-width: 1100px) { .shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 10px 0 30px; } .shots .phone { width: 100%; } }
.shots figcaption { margin-top: 12px; font-family: var(--f-display); font-weight: var(--w-display); font-size: 17px; }

/* 자주 묻는 질문 */
.faq { display: grid; max-width: 860px; background: #fff; border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.faq details { color: var(--ink); border-top: 1.5px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font-family: var(--f-display); font-weight: var(--w-display); font-size: 19px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -5px; border-radius: 20px; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--l1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M8 11l5 5 5-5' fill='none' stroke='%237a5cc0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 26px no-repeat;
  transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .a p { margin: 0 0 8px; }

/* 마지막 부르기 */
.call { text-align: center; padding: 80px 0 72px; }
.call .hana { width: 150px; margin: 0 auto 10px; }
.call h2 { margin-bottom: 22px; }
.call .cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

/* ───────── 회사·지원 페이지 머리 ───────── */
.page-hero { position: relative; padding: var(--top-pad) 0 50px; overflow: hidden; }
.page-hero .in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: end; }
.page-hero h1 { font-size: var(--fs-h1); line-height: 1.12; margin: 0 0 12px; }
.page-hero p { font-size: var(--fs-lead); margin: 0; max-width: 620px; color: rgba(255, 255, 255, .86); }
.page-hero .guide { width: 170px; filter: drop-shadow(0 12px 10px rgba(4, 0, 30, .4)); }
@media (max-width: 640px) { .page-hero .in { grid-template-columns: minmax(0, 1fr) 92px; align-items: start; } .page-hero .guide { width: 92px; } }

.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.story p { margin: 0 0 14px; color: var(--ink-soft); }
.name-card { position: relative; background: #fff; border-radius: 28px; padding: 30px; border: 2px solid var(--line); text-align: center; }
.name-card .big { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: clamp(38px, 6vw, 56px); line-height: 1; color: var(--ink); }
.name-card .big span { color: var(--p2); }
.name-card .eq { display: flex; justify-content: center; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; font-size: 16px; color: var(--ink-soft); }
.name-card .eq b { color: var(--ink); font-family: var(--f-display); font-weight: var(--w-display); font-size: 20px; }
.name-card .eq i { font-style: normal; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 22px; color: var(--l3); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } }

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; margin: 0; padding: 0; list-style: none; }
.promises li { position: relative; }
.promises h3 { margin: 0 0 6px; font-size: var(--fs-h3); }
.promises p { margin: 0; color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

.info { width: 100%; max-width: 860px; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 2px solid var(--line); color: var(--ink); }
.info th, .info td { text-align: left; padding: 14px 18px; border-bottom: 1.5px solid var(--line); vertical-align: top; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 28%; overflow-wrap: normal; background: #f8f3ff; font-family: var(--f-display); font-weight: var(--w-display); font-size: 16px; }

.contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; max-width: 860px; }
.contact img, .contact .rig { width: 110px; }

.contact p { margin: 0 0 16px; color: rgba(255, 255, 255, .82); }
.contact .mail { font: 700 16px/1 var(--f-num); color: rgba(255, 255, 255, .7); margin-top: 12px; }
@media (max-width: 600px) { .contact { grid-template-columns: 1fr; text-align: center; } .contact img { margin: 0 auto; } }

.links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.links a { color: #fff; font-size: 17px; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
@media (hover: hover) { .links a:hover { text-decoration-color: var(--y1); } }

/* ───────── 문서 (처리방침 등) ───────── */
.doc-wrap { max-width: 880px; margin: 0 auto; padding: var(--top-pad) 20px 90px; }
.doc { background: var(--paper); color: var(--ink); border-radius: 30px; padding: 40px 44px; box-shadow: 0 30px 60px rgba(4, 0, 30, .4);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", sans-serif; font-size: 16.5px; font-weight: 400; line-height: 1.75; }
.doc b { font-weight: 700; }
.doc > p, .doc > ul, .doc li { max-width: 68ch; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 14px;
  /* 옆으로 밀어 볼 수 있으면 오른쪽(왼쪽) 끝에 은은한 그림자 — 표가 잘린 게 아니라 이어진다는 표시 */
  background: linear-gradient(to right, var(--paper) 30%, transparent) 0 0, linear-gradient(to left, var(--paper) 30%, transparent) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(60, 30, 120, .22), transparent) 0 0, radial-gradient(farthest-side at 100% 50%, rgba(60, 30, 120, .22), transparent) 100% 0;
  background-repeat: no-repeat; background-size: 36px 100%, 36px 100%, 14px 100%, 14px 100%; background-attachment: local, local, scroll, scroll; }
.tscroll table { margin: 0; }
.doc .nw { white-space: nowrap; }
.doc h1 { font-family: "Jua", "M PLUS Rounded 1c", "Fredoka", sans-serif; font-weight: 400; font-size: clamp(24px, 7.4vw, 38px); line-height: 1.2; margin: 0 0 6px; }
html[lang="ja"] .doc h1, .doc[lang="ja"] h1 { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; }
html[lang="en"] .doc h1, .doc[lang="en"] h1 { font-family: "Fredoka", sans-serif; font-weight: 700; }
.doc .meta { color: var(--ink-soft); margin: 0 0 22px; font-size: 14.5px; }
.doc .lang-links { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); margin-bottom: 20px; }
.doc .lang-links a, .doc .lang-links span { padding: 5px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; }
.doc .lang-links span { background: var(--ink); color: #fff; }
.doc h2 { font-size: 19px; margin: 34px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; table-layout: fixed; }
.doc th, .doc td { border: 1px solid #e6dcf8; padding: 8px 10px; text-align: left; vertical-align: top; word-break: keep-all; overflow-wrap: break-word; hyphens: manual; }
.doc td .pkg { overflow-wrap: normal; word-break: normal; }   /* 점(.) 뒤에서만 줄바꿈 (<wbr>) */
html[lang="ja"] .doc th, html[lang="ja"] .doc td { word-break: inherit; line-break: strict; }
.doc th { background: #f4eeff; }
.doc tr > :first-child { width: 22%; }
.doc small { color: var(--ink-soft); }
.doc a { color: var(--b2); }
.doc .apps tr > :first-child { width: 62%; }
@media (max-width: 640px) {
  .doc { padding: 26px 18px; font-size: 15.5px; border-radius: 24px; }
  .doc table { font-size: 13.5px; }
  .tscroll table:not(.apps) { min-width: 560px; }
  /* 옆으로 밀어 보는 표라는 안내 (잘린 표처럼 보이지 않게) */
  .tscroll:has(table:not(.apps))::before { display: block; position: sticky; left: 0; margin: 0 0 6px; font-size: 12.5px; color: var(--l3); }
  html[lang="ko"] .tscroll:has(table:not(.apps))::before { content: "표를 옆으로 밀면 더 볼 수 있어요 →"; }
  html[lang="en"] .tscroll:has(table:not(.apps))::before { content: "Swipe the table sideways to see more →"; }
  html[lang="ja"] .tscroll:has(table:not(.apps))::before { content: "表は横にスクロールできます →"; }
  /* 이름·값 표는 위아래로 쌓기 */
  .doc table.kv, .doc table.kv tbody, .doc table.kv tr, .doc table.kv th, .doc table.kv td { display: block; width: auto !important; }
  .doc table.kv { border: 1px solid #e6dcf8; border-bottom: 0; }
  .doc table.kv th, .doc table.kv td { border: 0; border-bottom: 1px solid #e6dcf8; }
}

/* ───────── 아래쪽 ───────── */
.site-foot { position: relative; margin-top: 40px; padding: 70px 0 34px; background: #0d0827; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-foot .peek { position: absolute; width: 96px; right: max(24px, calc(50% - 560px)); top: -78px; transform: rotate(8deg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot-grid .foot-h { margin: 0 0 12px; font-family: var(--f-display); font-weight: var(--w-display); font-size: 15px; line-height: 1.2; color: rgba(255, 255, 255, .5); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: rgba(255, 255, 255, .85); }
@media (hover: hover) { .foot-grid a:hover { color: var(--y1); } }
.foot-grid .about p { margin: 12px 0 0; color: rgba(255, 255, 255, .65); font-size: 15px; max-width: 320px; }
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  color: rgba(255, 255, 255, .5); font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid .about, .foot-grid > div:last-child { grid-column: 1 / -1; } .foot-grid a { white-space: nowrap; } }

/* 404 */
.lost-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.lost-page img, .lost-page .rig { width: 170px; margin: 0 auto; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translate(0, 0) rotate(-10deg); } 50% { transform: translate(10px, -16px) rotate(12deg); } }
.lost-page h1 { font-size: var(--fs-h1); margin: 18px 0 8px; }
.lost-page p { margin: 0 0 24px; color: rgba(255, 255, 255, .8); font-size: 18px; }

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

/* 일본어: 낱말 사이 띄어쓰기가 없어서 줄바꿈 규칙을 일본어식으로 (、。가 줄 맨 앞에 오지 않게) */
html[lang="ja"] body { word-break: normal; line-break: strict; overflow-wrap: break-word; }
@supports (word-break: auto-phrase) { html[lang="ja"] body { word-break: auto-phrase; } }
html[lang="ja"] .mini-steps .n { font-size: 18px; }
html[lang="ja"] .hero h1 { font-size: clamp(30px, 8.2vw, 62px); }
html[lang="ja"] .ticket dd { font-size: 16px; }

/* 아주 좁은 폰(360px): 위 메뉴가 넘치지 않게 */
@media (max-width: 380px) {
  .g-hero .duo { width: 280px; height: 360px; } .g-hero .duo .phone { width: 152px; } .g-hero .duo .peek { width: 86px; left: 98px; }
  .brand .word { font-size: 18px; } .brand svg { width: 32px; height: 32px; } .head-in { gap: 8px; }
  .fan { width: 290px; height: 380px; } .fan .phone { width: 150px; } .fan .phone:nth-child(2) { left: 66px; width: 162px; } .fan .phone:nth-child(3) { left: 132px; }
}

/* ───────── 살아 움직이는 친구 (게임과 같은 조각: 꼬리·몸통·머리(얼굴)·팔) 2026-11-20 ───────── */
.rig { position: relative; display: block; user-select: none; -webkit-user-select: none; }
.rig > img, .rig .rig-head > img { position: absolute !important; display: block; max-width: none !important; max-height: none !important; pointer-events: none;
  translate: none !important; animation: none !important; filter: none !important; margin: 0 !important; bottom: auto !important; right: auto !important; object-fit: fill !important; }
.rig .rig-head { position: absolute; inset: 0; }
.rig .rig-face { opacity: 0; }
.rig .rig-face.on { opacity: 1; }
.rig.hop { animation: rig-hop .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes rig-hop { 0% { translate: 0 0; } 35% { translate: 0 -14%; } 70% { translate: 0 2%; } 100% { translate: 0 0; } }

/* ═════════ v2 (2026-11-20): 사이트 전체가 게임의 '우주 지도'처럼 이어지는 한 줄 여행길 ═════════
   구역 = 길 위의 정거장. 친구가 정거장마다 말풍선으로 안내 (게임 튜토리얼 말풍선과 같은 모양).
   구역 제목은 게임 로고 아래 띠와 같은 '리본'. 크림색 띠는 없애고, 크림색은 물건(탑승권·판·엽서)에만. */
main { position: relative; }
.route { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.route .trail { fill: none; stroke: rgba(255, 230, 150, .28); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .1 14; }
.route .lit { fill: none; stroke: var(--y1); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: .1 14; }
.route-rocket { position: absolute; left: 0; top: 0; width: 58px; z-index: 2; pointer-events: none; will-change: transform; filter: drop-shadow(0 0 12px rgba(255, 190, 90, .7)); }
.leg { position: relative; z-index: 1; padding-block: var(--sec-pad); }
.leg > .wrap { position: relative; }

/* 리본 제목 (게임 리본과 같은 모양: 띠 + 뒤로 접힌 꼬리 둘, 진한 테두리) */
.ribbon { --rb1: hsl(204 92% 72%); --rb2: hsl(218 86% 54%); --rb3: hsl(222 75% 28%); --rbt: color-mix(in srgb, var(--rb2) 62%, var(--rb3));
  position: relative; display: inline-block; margin: 0 0 34px; padding: 0 1.05em; isolation: isolate;
  font-size: var(--fs-h2); line-height: 1.1; rotate: -1.5deg; filter: drop-shadow(0 10px 14px rgba(4, 0, 30, .38)); }
.ribbon .rb-band { position: relative; z-index: 1; display: block; padding: .3em .95em .36em; color: #fff; white-space: nowrap;
  -webkit-text-stroke: 4px var(--rb3); paint-order: stroke fill;
  background: linear-gradient(180deg, var(--rb1), var(--rb2) 72%); border: 3px solid var(--rb3); border-radius: 10px;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .38), inset 0 -4px 0 rgba(0, 0, 0, .08); }
.ribbon .rb-tail { position: absolute; z-index: 0; top: 30%; height: 88%; width: 1.75em; overflow: visible; }
.ribbon .rb-tail.l { left: 0; }
.ribbon .rb-tail.r { right: 0; transform: scaleX(-1); }
.rb-tail .t { fill: var(--rbt); stroke: var(--rb3); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rb-tail .f { fill: var(--rb3); }
.ribbon.pink { --rb1: hsl(330 95% 78%); --rb2: hsl(332 85% 56%); --rb3: hsl(332 75% 28%); rotate: 1.2deg; }
.ribbon.gold { --rb1: hsl(48 100% 70%); --rb2: hsl(38 97% 54%); --rb3: hsl(30 90% 27%); }
.ribbon.green { --rb1: hsl(128 78% 68%); --rb2: hsl(140 72% 46%); --rb3: hsl(146 75% 24%); rotate: 1deg; }
.center-head { text-align: center; }

/* 말풍선 + 안내하는 친구 */
.say { position: relative; margin: 0; background: #fff; color: var(--ink); border: 3px solid #c9b6ff; border-radius: 22px;
  padding: 14px 18px 15px; font-family: var(--f-display); font-weight: var(--w-display); font-size: 18px; line-height: 1.45;
  box-shadow: 0 6px 0 rgba(118, 88, 220, .4); max-width: 360px; text-wrap: pretty; }
.say::after { content: ""; position: absolute; width: 20px; height: 20px; background: #fff; border: 3px solid #c9b6ff; border-top: 0; border-left: 0; }
.say.tail-down::after { left: 40px; bottom: -12px; rotate: 45deg; }
.say.tail-left::after { left: -12px; top: 28px; rotate: 135deg; }
.say.tail-right::after { right: -12px; top: 28px; rotate: -45deg; }
.host { display: flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.host .say { min-width: 0; flex: 0 1 auto; }   /* 말풍선이 좁은 화면에서 줄어들며 줄바꿈 (전엔 안 줄어서 화면 밖으로 밀렸음: 폴드 펼친 가로·플립 바깥 화면) */
.host .host-char { flex: none; }
.host .host-char { width: 118px; flex: none; }
.host .say { margin-bottom: 70px; }
.say b, .say em { font-style: normal; color: var(--p2); }

/* 정거장 1: 탑승권 */
.host-ticket { margin-top: 26px; }
@media (max-width: 1060px) { .host-ticket { margin-top: 10px; } }

/* 정거장 2: 직접 해 보기 — 게임 팝업 같은 판 + 코치 */
.play-stage { display: grid; grid-template-columns: auto minmax(0, 380px); justify-content: center; gap: 36px; align-items: end; }
.coach { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 20px; }
.coach .say { font-size: 19px; min-height: 5.2em; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.coach .say.pop { animation: saypop .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes saypop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
.coach .coach-char { width: 150px; margin-left: 10px; }
.board-panel { background: var(--paper); border: 4px solid #c9b6ff; border-radius: 34px; padding: 22px 24px 26px; color: var(--ink);
  box-shadow: 0 10px 0 #8f74e6, 0 28px 50px rgba(4, 0, 30, .45); }
@media (max-width: 820px) {
  .play-stage { grid-template-columns: 1fr; justify-items: center; }
  .coach { flex-direction: row; align-items: flex-end; justify-self: center; max-width: 100%; gap: 0; }
  .coach .coach-char { width: 92px; flex: none; order: -1; margin: 0; }
  .coach .say { font-size: 16px; min-height: 0; margin-bottom: 40px; }
  .coach .say.tail-down::after { left: -12px; bottom: auto; top: 22px; rotate: 135deg; }
  .board-panel { padding: 16px 14px 20px; border-radius: 28px; }
}

/* 정거장 3: 다음 정거장 (시리즈) */
.stations { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 26px; align-items: start; }
.station { position: relative; text-align: center; color: #fff; text-decoration: none; }
.station .pl { width: min(220px, 80%); margin: 0 auto 12px; filter: drop-shadow(0 0 28px rgba(255, 220, 140, .45)); }
.station.locked .pl { filter: brightness(0) invert(.18) sepia(.4) hue-rotate(220deg) saturate(2); opacity: .65; width: min(150px, 70%); }
.station .lock { position: absolute; left: 50%; top: 18%; width: 64px; translate: -50% 0; }
.station .no { font: 700 14px/1 var(--f-num); letter-spacing: 2px; color: var(--y1); }
.station h3 { margin: 6px 0 6px; font-size: 24px; }
.station p { margin: 0 auto 14px; max-width: 26em; color: rgba(255, 255, 255, .78); font-size: 16px; }
.station:nth-child(2) { margin-top: 90px; } .station:nth-child(3) { margin-top: 30px; }
.station .sticker { position: absolute; top: 4px; right: 12%; }
.host-series { justify-content: flex-end; margin-top: 10px; }
.host-series .say { margin-bottom: 64px; }
@media (max-width: 760px) { .stations { grid-template-columns: 1fr 1fr; } .station.live { grid-column: 1 / -1; } .station:nth-child(2), .station:nth-child(3) { margin-top: 0; } }

/* 정거장 4: 우주 통신 (엽서) */
.postcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 30px; }
.postcard { position: relative; color: var(--ink); border-radius: 14px; padding: 30px 28px 26px; rotate: -1.2deg; border: 9px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box,
    repeating-linear-gradient(-45deg, var(--p2) 0 14px, var(--paper) 14px 22px, var(--b2) 22px 36px, var(--paper) 36px 44px) border-box;
  box-shadow: 0 16px 34px rgba(4, 0, 30, .4); }
.postcard:nth-child(2n) { rotate: 1.4deg; }
.pc-stamp { position: absolute; right: 18px; top: -18px; width: 76px; height: 88px; padding: 5px; background: #fff; rotate: 5deg;
  -webkit-mask: radial-gradient(circle, transparent 3px, #000 3.6px) -5px -5px / 10px 10px, linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(circle, transparent 3px, #000 3.6px) -5px -5px / 10px 10px, linear-gradient(#000 0 0) content-box;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); }
.pc-stamp div { width: 100%; height: 100%; border: 4px solid #fff; background: linear-gradient(180deg, #3b2a85, #261a5e); display: grid; place-items: center; }
.pc-stamp img { width: 46px; }
.pc-mark { display: grid; place-content: center; gap: 2px; width: 96px; height: 96px; border: 3px double rgba(184, 28, 102, .55); border-radius: 50%;
  font: 700 13px/1.15 var(--f-num); color: #b81c66; rotate: -12deg; text-align: center; margin: -10px 0 8px -8px; }
.pc-mark span { font-size: 10.5px; letter-spacing: .5px; opacity: .8; }
.postcard h2 { margin: 0 0 8px; font-size: var(--fs-h3); line-height: 1.3; padding-right: 64px; }
.postcard p { margin: 0; color: var(--ink-soft); }
.postcard .sticker { font-size: 13px; padding: 5px 10px 6px; margin-left: 6px; vertical-align: 3px; }

/* 오늘의 도전 달력 */
.daily-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; max-width: 980px; margin: 0 auto; }
.cal-card { width: min(420px, 100%); background: #fff; color: var(--ink); border-radius: 28px; border: 4px solid #ffd0dc; padding: 18px 20px 22px;
  box-shadow: 0 10px 0 #f28aa6, 0 26px 44px rgba(4, 0, 30, .4); rotate: -1.5deg; }
.cal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
/* 좁은 폰: 연속 딱지는 카드 오른쪽 위 모서리 스티커로 (제목 줄이 넘쳐 딱지가 혼자 아래로 떨어지던 것) */
@media (max-width: 480px) { .cal-card { position: relative; } .cal-head .streak { position: absolute; top: -14px; right: -6px; margin: 0; } }
.cal-head img { width: 54px; }
.cal-head b { font-family: var(--f-display); font-weight: var(--w-display); font-size: clamp(19px, 6vw, 26px); white-space: nowrap; }
.cal-head .streak { margin-left: auto; font: 700 14px/1 var(--f-num); color: #fff; background: var(--o2); padding: 7px 11px; border-radius: 999px; rotate: 3deg; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; font: 700 15px/1 var(--f-num); }
.cal-grid .wd { color: var(--ink-soft); font-size: 12.5px; padding-bottom: 4px; }
.cal-grid .wd:first-child { color: #e8335a; }
.cal-grid .d { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; background: #f6f1ff; color: #8a7bb8; }
.cal-grid .d.done { background: #fff4c2; color: transparent; }
.cal-grid .d.done img { position: absolute; inset: 8%; width: 84%; }
.cal-grid .d.today { background: #fff; color: var(--p2); box-shadow: inset 0 0 0 3px var(--p2); }
.cal-bonus { margin: 14px 0 0; text-align: center; font-family: var(--f-display); font-weight: var(--w-display); font-size: 17px; color: var(--o2); }
@media (max-width: 820px) { .daily-stage { grid-template-columns: 1fr; justify-items: center; } }

/* 궁금한 것: 부엉이 박사와 대화 */
.chat { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.chat details { display: grid; }
.chat summary { list-style: none; cursor: pointer; justify-self: end; max-width: min(560px, 88%); background: var(--l2); color: var(--ink);
  border-radius: 22px 22px 6px 22px; padding: 13px 18px 14px; font-family: var(--f-display); font-weight: var(--w-display); font-size: 18px; line-height: 1.4;
  box-shadow: 0 5px 0 var(--l3); }
.chat summary::-webkit-details-marker { display: none; }
.chat summary::after { content: " ＋"; color: var(--l3); }
.chat details[open] summary::after { content: " －"; }
.chat .ans { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; max-width: min(640px, 94%); }
.chat .ans img { width: 54px; flex: none; border-radius: 50%; background: #2a1b64; padding: 4px; }
.chat .ans p { margin: 0; background: #fff; color: var(--ink); border-radius: 6px 22px 22px 22px; padding: 13px 18px 15px; box-shadow: 0 5px 0 rgba(118, 88, 220, .35); }
.chat summary:focus-visible { outline-offset: 3px; }

/* 고객지원: 우주 우체통 */
.mailbox { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; max-width: 820px; margin: 0 auto; }
.mailbox .say { max-width: 520px; font-size: 18px; }
.mailbox .mail { font: 700 16px/1 var(--f-num); color: rgba(255, 255, 255, .75); margin-top: 16px; }
@media (max-width: 600px) { .mailbox { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* 회사 소개: 밤하늘 위 물건으로 */
.objects { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.objects .story-text p { color: rgba(255, 255, 255, .85); font-size: var(--fs-body); max-width: var(--measure); }
@media (max-width: 820px) { .objects { grid-template-columns: 1fr; } }
@media (max-width: 1300px) { .route-rocket { width: 40px; } }
@media (max-width: 760px) { .route-rocket { width: 26px; filter: drop-shadow(0 0 6px rgba(255, 190, 90, .7)); } .route .trail, .route .lit { stroke-width: 3; } }
@media (prefers-reduced-motion: reduce) { .route-rocket { display: none; } }

/* v2 이어서: 구역 머리(리본 + 친구), 약속, 글 페이지 머리 */
.leg.first { padding-top: 40px; }
.leg.leg-tight { padding-top: 0; }
.leg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 28px; margin-bottom: 30px; }
.leg-head .ribbon { margin-bottom: 18px; }
.leg-head .host { margin-left: auto; }
.leg-head .host .say { margin-bottom: 54px; }
.host-char { display: block; }
.more-row { margin: 34px 0 0; }
.leg .center-head + .postcards + .more-row { text-align: center; }
.more-row.center { text-align: center; }
.plain-h { font-size: var(--fs-h2); line-height: 1.15; margin: 0 0 30px; }
.host-ticket { margin-left: 30px; }
@media (max-width: 640px) {
  .host .host-char { width: 84px; }
  .host .say { font-size: 16px; margin-bottom: 44px; }
  .leg-head .host .say { margin-bottom: 40px; }
  .host-ticket { margin-left: 0; }
}

/* 글 페이지 머리: 큰 제목 + 친구 말풍선 */
.page-hero .in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.page-hero .host .host-char { width: 150px; }
.page-hero .host .say { margin-bottom: 96px; max-width: 330px; color: var(--ink); font-size: 18px; }
@media (max-width: 1080px) {
  .page-hero .in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero .host { justify-content: flex-end; }
  .page-hero .host .host-char { width: 96px; }
  .page-hero .host .say { margin-bottom: 56px; }
}

/* 회사 소개 */
.story h2 { font-size: var(--fs-h2); }
.story p { color: rgba(255, 255, 255, .85); }
.name-card { box-shadow: 0 10px 0 #c9b6ff, 0 26px 44px rgba(4, 0, 30, .4); rotate: 1.5deg; border: 0; }
.name-card .nc-planet { width: 120px; margin: 18px auto 0; }
.vows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; }
.vow { display: flex; align-items: flex-end; gap: 8px; }
.vow .host-char { width: 104px; flex: none; }
.vow .say { max-width: none; margin-bottom: 40px; font-family: var(--f-body); font-weight: var(--w-body); font-size: var(--fs-body); }
.vow .say h3 { margin: 0 0 4px; font-size: 20px; color: var(--ink); }
.vow .say p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .vows { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .vow .host-char { width: 76px; } .vow .say { margin-bottom: 30px; padding: 12px 14px 13px; } }

/* 고객지원: 하나와 메일 */
.mailbox { grid-template-columns: 150px minmax(0, 1fr); }
.mailbox .host-char { width: 150px; }
.mailbox .say { margin-bottom: 22px; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.mail-row .mail { margin: 0; }
@media (max-width: 600px) { .mailbox { grid-template-columns: 1fr; justify-items: center; text-align: center; } .mailbox .host-char { width: 110px; } .mail-row { justify-content: center; } .mailbox .say.tail-left::after { left: 50%; top: -12px; rotate: 225deg; margin-left: -10px; } }

/* '팡!' 반짝 */
.hero h1 .pop { cursor: pointer; }
.hero h1 .pop.boing { animation: popboing .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popboing { 0% { scale: 1; } 30% { scale: 1.25 .85; } 65% { scale: .92 1.1; } 100% { scale: 1; } }
.pop-spark { position: absolute; z-index: 60; width: 9px; height: 9px; border-radius: 3px; pointer-events: none; }
.rig .rig-face { transition: none; }
/* 폰에서 긴 일본어 행성 이름이 칸 밖으로 나가지 않게 */
.trip .stop { min-width: 0; }
html[lang="ja"] .trip .stop b { word-break: keep-all; line-break: strict; overflow-wrap: break-word; }
@media (max-width: 400px) { .trip .stop b { font-size: 16px; } }

/* 2026-11-21 기종 점검: 아주 좁은 화면 (갤럭시 플립 바깥 화면 등, 폭 330 이하) */
@media (max-width: 330px) {
  .wrap { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .g-hero .duo { width: 236px; height: 300px; } .g-hero .duo .phone { width: 128px; } .g-hero .duo .peek { width: 72px; left: 82px; }
  .fan { width: 240px; height: 320px; } .fan .phone { width: 124px; } .fan .phone:nth-child(2) { left: 56px; width: 134px; } .fan .phone:nth-child(3) { left: 110px; }
  .brand .word { display: none; }
  h1, .g-title { overflow-wrap: anywhere; }
}
/* 누르는 곳은 손가락 크기 이상 (언어 버튼·메뉴 버튼) */
.lang-cur { min-height: 42px; }
.menu-btn { min-width: 44px; flex: none; }
@media (max-width: 330px) {
  .page-hero h1 { font-size: 27px; }
  .hero h1 { font-size: 34px; }
  .cbtn { font-size: 17px; padding-left: 14px; padding-right: 14px; }
  .info, .info tbody, .info tr, .info th, .info td { display: block; width: auto !important; }
  .info th { padding-bottom: 2px; } .info td { padding-top: 2px; overflow-wrap: anywhere; }
  .cal-head .streak { right: 0; }
}
/* 좁은 폰: 말풍선 줄은 화면 폭을 넘지 않게 (코치·다람쥐 줄은 가운데 정렬 상자라 글자 길이만큼 넓어지던 것) */
@media (max-width: 760px) {
  .coach, .daily-stage .host { width: 100%; max-width: 100%; justify-self: stretch; }
  .coach .say, .daily-stage .host .say { min-width: 0; flex: 1 1 auto; }
}
/* 2026-11-21 기종 점검: 상자들이 '가장 긴 낱말 길이' 밑으로 안 줄어 좁은 화면(플립 바깥 화면, 글자 크게 본 폰)에서 옆으로 밀리던 것 → 줄어들 수 있게 */
.play-stage > *, .daily-stage > *, .postcards > *, .vows > *, .page-hero .in > *, .ticket-row > *, .g-hero .grid2 > *,
.host, .coach, .vow, .vow .say, .postcard, .postcard h2, .pc-mark { min-width: 0; }
@media (max-width: 1080px) { .page-hero .in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 330px) { .pc-mark { flex-wrap: wrap; } .postcard { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 400px) { :root { --fs-h1: 34px; } }
@media (max-width: 330px) {
  .name-card { padding: 22px 16px; } .name-card .big { font-size: 30px; }
  .nb { white-space: normal; }
  .board-panel { padding: 16px 14px 18px; } .pad { gap: 6px; }
}
/* 폴드 펼친 가로·작은 태블릿(761~1000): 미니 스도쿠 판이 칸 크기 때문에 판 상자보다 13px 넓던 것 */
@media (min-width: 761px) and (max-width: 1000px) { .game { --cell: 66px; } }
@media (max-width: 300px) { .game-top { gap: 4px; } .hearts img { width: 22px; } }
