/* 수상한 등대지기 구함 소개 페이지 — 밤바다·등대 불빛·금색 공고. 개인정보·약관 페이지는 style.css 그대로 */
:root {
  --night: #070a1c; --deep: #0c1230; --sea: #12204a; --ink: #e9e6f5; --dim: #a9a4c8; --faint: #6f6a96;
  --gold: #ffc94d; --gold2: #ff9d2e; --red: #ff5a46; --teal: #6ad0e0; --line: rgba(255, 201, 77, .22);
  --head-ko: "Black Han Sans", "Noto Sans KR", sans-serif; --head-en: "Lilita One", "Noto Sans KR", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 17px/1.75 "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; overflow-x: hidden;
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
.px { image-rendering: pixelated; image-rendering: crisp-edges; }
/* 언어 — html[data-lang] 와 다른 쪽 숨김 */
html[data-lang="ko"] [lang="en"], html[data-lang="en"] [lang="ko"] { display: none !important; }
html[data-lang="en"] h1, html[data-lang="en"] h2 { font-family: var(--head-en); letter-spacing: .01em; }
h1, h2 { font-family: var(--head-ko); font-weight: 400; margin: 0; line-height: 1.18; }
.gold { color: var(--gold); } .red { color: var(--red); }

/* 별 */
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff8, transparent 60%), radial-gradient(1px 1px at 72% 12%, #fff7, transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 32%, #fff6, transparent 60%), radial-gradient(1px 1px at 88% 44%, #fff5, transparent 60%),
    radial-gradient(1px 1px at 26% 66%, #fff5, transparent 60%), radial-gradient(1.5px 1.5px at 62% 78%, #fff4, transparent 60%),
    linear-gradient(180deg, #070a1c 0%, #0b1230 55%, #070a1c 100%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { filter: brightness(1.35); } }

/* 위 띠 */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(7, 10, 28, .85), rgba(7, 10, 28, 0)); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px #ffffff22; }
.langs { display: flex; gap: 4px; }
.langs a { color: var(--dim); text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 99px; border: 1px solid #ffffff1f; }
html[data-lang="ko"] .langs a[data-l="ko"], html[data-lang="en"] .langs a[data-l="en"] { color: var(--night); background: var(--gold); border-color: var(--gold); }

/* 첫 화면 */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 90px 16px 70px; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; filter: saturate(1.08); }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(7, 10, 28, .25), rgba(7, 10, 28, .78) 70%), linear-gradient(180deg, rgba(7, 10, 28, .35) 0%, rgba(7, 10, 28, 0) 30%, rgba(7, 10, 28, .9) 92%, var(--night)); }
.beam { position: absolute; left: 62%; top: 30%; width: 160vmax; height: 160vmax; transform: translate(-50%, -50%); z-index: 1; mix-blend-mode: screen; opacity: .5;
  background: conic-gradient(from 0deg, transparent 0 40deg, rgba(255, 214, 120, .22) 46deg, transparent 54deg, transparent 220deg, rgba(255, 214, 120, .14) 226deg, transparent 234deg);
  animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
.hero-in { position: relative; z-index: 2; text-align: center; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rib { width: min(360px, 72vw); transform: rotate(-2deg); filter: drop-shadow(0 6px 0 #0006); animation: drop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.logo { width: min(620px, 92vw); filter: drop-shadow(0 8px 24px #000a); animation: drop .8s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes drop { from { transform: translateY(-24px) scale(.96); } } /* 투명에서 시작하지 않음 — 탭이 뒤에 있어 애니메이션이 멈추면 로고가 안 보였음 */
.pitch { margin: 4px 0 6px; font-size: clamp(17px, 2.4vw, 21px); line-height: 1.7; color: #f4f1ff; text-shadow: 0 2px 10px #000; }
.pitch b { color: var(--gold); font-weight: 700; } .pitch em { font-style: normal; color: #fff; border-bottom: 2px solid var(--red); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.store { display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 10px 20px 10px 16px; border-radius: 14px; text-decoration: none; color: #fff;
  background: #000; border: 1px solid #ffffff38; box-shadow: 0 6px 0 #0008, 0 0 0 0 var(--gold); transition: transform .15s, box-shadow .2s; }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; align-items: flex-start; font-weight: 700; font-size: 20px; line-height: 1.1; }
.store small { font-weight: 400; font-size: 11px; opacity: .8; letter-spacing: .02em; }
.store.play:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #0008, 0 0 0 3px var(--gold); }
.store.soon { opacity: .55; cursor: default; }
/* 토스 공식 '토스 미니앱 배지'(앱인토스 외부 광고 가이드) — 그림을 고치지 않고 크기만, 한 화면에 하나(아래 버튼 줄엔 안 넣음 — site.js) */
.toss-badge { display: block; line-height: 0; }
.toss-badge img { height: 56px; width: auto; } /* 스토어 버튼 높이(56)에 맞춤 */
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li { font-size: 13px; color: var(--dim); padding: 4px 12px; border-radius: 99px; background: #0b1030cc; border: 1px solid #ffffff1a; }
.scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2; width: 28px; height: 44px; border: 2px solid #ffffff55; border-radius: 99px; }
.scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translateY(12px); opacity: .3; } }

/* 트레일러 */
section { padding: 72px max(16px, env(safe-area-inset-left)); }
.kicker { text-align: center; font-size: clamp(26px, 4vw, 40px); margin-bottom: 22px; }
.video { max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 24px 60px #0009; }
.video button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video i { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px #ff5a4644, 0 10px 30px #000a; transition: transform .2s; }
.video i::after { content: ""; position: absolute; left: 34px; top: 26px; border-left: 26px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.video button:hover i { transform: translate(-50%, -50%) scale(1.08); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 기능 줄 */
.feat { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.row { position: relative; display: grid; grid-template-columns: 1fr 1.25fr .9fr; align-items: center; gap: 28px; padding: 28px; border-radius: 24px;
  background: linear-gradient(135deg, #10183f, #0b1030); border: 1px solid #ffffff12; overflow: hidden; }
.row::before { content: ""; position: absolute; left: -10%; top: -40%; width: 60%; height: 120%; background: radial-gradient(ellipse at 50% 50%, #ffc94d14, transparent 70%); pointer-events: none; }
.row.flip::before { left: auto; right: -10%; }
.row.flip { grid-template-columns: .9fr 1.25fr 1fr; }
.row.flip .art { order: 3; } .row.flip .shot { order: 1; } .row.flip .copy { order: 2; }
.art { display: grid; place-items: center; min-width: 0; }
.char { width: 100%; max-width: 300px; filter: drop-shadow(0 14px 18px #0009); }
.char.boss { max-width: 340px; }
.copy { min-width: 0; }
.num { margin: 0 0 6px; font: 400 15px/1 var(--head-en); color: var(--teal); letter-spacing: .12em; }
.copy h2 { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 14px; }
.copy p { margin: 0; color: var(--dim); }
.shot { width: 100%; max-width: 240px; justify-self: center; border-radius: 18px; box-shadow: 0 0 0 1px #ffffff1c, 0 16px 40px #000a; }

/* 괴물 */
.monsters { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
.monsters h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 20px; }
.tips { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tips li { padding: 16px 18px; border-radius: 16px; background: #0d1436; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tips b { color: var(--gold); font-size: 17px; } .tips span { color: var(--dim); font-size: 15px; line-height: 1.5; }
.season { margin: 0; color: var(--faint); font-size: 15px; }
.mon-shot { max-width: 260px; }

/* 이야기 */
.story { max-width: 1120px; margin: 0 auto; text-align: center; }
.story h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 14px; }
.lead { max-width: 680px; margin: 0 auto 28px; color: var(--dim); }
.toons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.toons figure { margin: 0; border-radius: 16px; overflow: hidden; background: #000; border: 3px solid #f1ead8; box-shadow: 0 14px 30px #0009; transform: rotate(-1deg); }
.toons figure:nth-child(2) { transform: rotate(1deg) translateY(10px); } .toons figure:nth-child(3) { transform: rotate(-.5deg); }
.toons figcaption { padding: 10px 14px 12px; background: #f1ead8; color: #241c14; font-size: 14px; line-height: 1.5; text-align: left; min-height: 64px; }
.rule { margin: 44px auto 0; max-width: 560px; padding: 22px 26px; border-radius: 6px; color: #2a1f10; background: #f3e6c4; box-shadow: 0 12px 30px #0009, inset 0 0 0 2px #c9a66b;
  font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; display: flex; flex-direction: column; gap: 6px; transform: rotate(-1.2deg); }
.rule-n { font: 400 14px/1 var(--head-ko); color: #9a2a1a; letter-spacing: .08em; }
html[data-lang="en"] .rule-n { font-family: var(--head-en); }

/* 스크린샷 띠 */
.gallery { padding-top: 40px; padding-bottom: 40px; }
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(16px, calc(50vw - 560px)) 18px; scrollbar-width: thin; }
.strip img { flex: none; width: 210px; scroll-snap-align: center; border-radius: 16px; box-shadow: 0 0 0 1px #ffffff1c, 0 12px 30px #0009; }

/* 마지막 */
.cta { width: min(980px, calc(100% - 32px)); margin: 30px auto 0; display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; padding: 36px; border-radius: 28px;
  background: radial-gradient(circle at 20% 40%, #ffc94d26, transparent 60%), linear-gradient(135deg, #18214f, #0c1230); border: 1px solid var(--line); }
.cta .char { max-width: 260px; }
.cta h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.cta p { color: var(--dim); margin: 0 0 18px; }
.cta .stores { justify-content: flex-start; }

footer { text-align: center; padding: 56px 16px calc(40px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 14px; }
footer p { margin: 6px 0; } footer a { color: var(--dim); }
footer .studio a { color: var(--ink); font-weight: 700; text-decoration: none; }
footer .small { font-size: 12px; }

@media (max-width: 860px) {
  section { padding-top: 56px; padding-bottom: 56px; }
  .row, .row.flip { grid-template-columns: 1fr 1fr; grid-template-areas: "copy copy" "art shot"; padding: 22px; gap: 18px; }
  .row .copy, .row.flip .copy { grid-area: copy; order: 0; } .row .art, .row.flip .art { grid-area: art; order: 0; } .row .shot, .row.flip .shot { grid-area: shot; order: 0; }
  .char { max-width: 220px; }
  .monsters { grid-template-columns: 1fr; } .mon-shot { display: none; }
  .tips { grid-template-columns: 1fr; }
  .toons { grid-template-columns: 1fr; gap: 22px; max-width: 520px; margin: 0 auto; }
  .toons figure, .toons figure:nth-child(2), .toons figure:nth-child(3) { transform: none; }
  .cta { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; } .cta .char { max-width: 200px; margin: 0 auto; } .cta .stores { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .beam, .stars, .scroll span { animation: none; } .rib, .logo { animation: none; } }
