/* aquadote.app 소개 페이지 (2026-10-09)
   색은 기획 지시서(CODI_LANDING.md 2번) 그대로. 폰(390px) 한 열이 기본, 넓으면 두 열.
   주황 버튼의 글자는 흰색이 아니라 진한 #132326 (대비) */
:root {
  --cyan: #5DC7D0;
  --orange: #F57F20;
  --dark: #09262A;
  --dark2: #0F333A;
  --light: #F7FAFA;
  --ink: #132326;
  --teal-ink: #177882;
  --line: #DCE9EA;
  --muted: #4B5D60;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
  /* 한국어 단어가 줄 끝에서 중간에 끊기지 않게 (지시서: '사|람들이'로 끊기면 안 됨) */
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; }

/* ── 버튼 (손가락으로 누르기 쉽게 높이 48px) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-teal { background: var(--cyan); color: var(--ink); width: 100%; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn:focus-visible, .lang:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan); outline-offset: 2px;
}

/* ── 위쪽 줄 ── */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(9, 38, 42, .92); backdrop-filter: blur(8px); }
.topbar-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.wordmark { width: 128px; height: auto; image-rendering: pixelated; display: block; }
.menu { display: none; gap: 20px; }
.menu a { color: #CFE7EA; text-decoration: none; font-size: 15px; }
.menu a:hover { color: #fff; }
.lang {
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 10px;
  background: transparent; color: #E6F4F5; border: 1px solid rgba(255,255,255,.18);
  font: inherit; font-size: 14px; cursor: pointer;
}

/* ── 첫 화면 ── */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.dots { position: absolute; inset: 0; pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.appline { display: flex; align-items: center; gap: 14px; }
.appicon { width: 56px; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); image-rendering: pixelated; }
.appname { font-size: 18px; }
.appname span { color: #CFE7EA; font-weight: 400; }
.soon { font-family: 'IBM Plex Mono', monospace; color: var(--cyan); font-size: 12px; letter-spacing: .14em; }
.title { font-size: clamp(40px, 11vw, 64px); line-height: 1.15; margin: 22px 0 18px; letter-spacing: -.01em; }
.lead { font-size: 17px; color: #DCEDEF; margin: 0 0 20px; max-width: 34em; }
.chips { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #E6F4F5; }

.signup { background: rgba(15, 51, 58, .92); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 22px 20px; max-width: 520px; }
.signup-title { font-size: 18px; margin: 0 0 14px; }
.signup input[type=email] {
  width: 100%; min-height: 50px; border-radius: 10px; border: 0; padding: 0 16px;
  font: inherit; font-size: 16px; background: var(--light); color: var(--ink); margin-bottom: 12px;
}
.signup .btn { width: 100%; }
/* 출시 소식 받는 곳: 앱 장터 사전 등록 · 인스타그램 (장터 로고 그림은 쓰지 않고 글자 버튼으로) */
.notify + .signup { margin-top: 16px; }
.notify-sub { margin: 0 0 16px; font-size: 15px; color: #CFE7EA; }
.stores { display: grid; gap: 10px; }
.store {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 0 18px; border-radius: 12px; text-decoration: none;
  background: var(--orange); color: var(--ink); font-size: 16px;
}
.store .store-state { font-size: 14px; font-weight: 700; }
.store.is-soon { background: transparent; color: #E6F4F5; border: 1px dashed rgba(255,255,255,.35); cursor: default; }
.store.is-soon .store-state { color: var(--cyan); font-weight: 500; white-space: nowrap; }
.store:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
@media (min-width: 480px) { .stores { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: #CFE7EA; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--cyan); }
.consent a { color: var(--cyan); }
.signup .consent { margin-top: 4px; }
.signup .consent + .consent { margin-top: 10px; }
/* 동의할 때 알아야 할 4가지(받는 것 · 쓰는 곳 · 보관 · 거부해도 되는지) — 체크 칸 글자 줄에 맞춰 들여 써요 */
.consent-more { margin: 10px 0 16px 30px; font-size: 12.5px; line-height: 1.55; color: #9FC3C7; }
/* '출시 알림 받기'를 누르면 신청 칸 둘레가 주황으로 한 번 퍼져요(app.js data-cta) */
.signup.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { box-shadow: 0 0 0 0 rgba(245, 127, 32, .75); } to { box-shadow: 0 0 0 16px rgba(245, 127, 32, 0); } }
#notify { scroll-margin-top: 80px; } /* 위에 붙은 머리줄에 가리지 않게 */
/* '출시되면 바로 받아요' 칸의 [이메일 알림 받기]: 장터 · 인스타 버튼과 같은 모양인 진짜 버튼(누르면 팝업) */
button.store { width: 100%; border: 0; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
button.store:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ── 출시 알림 신청 팝업 (2026-11-11 이해님 "팝업창형태로 뜨게하자 메인창이 지저분해보여") ──
   브라우저의 <dialog>(app.js showModal)라 가운데 · 맨 위에 떠요. 옛 브라우저는 open 속성만 붙어서 아래 [open] 줄로 가운데에.
   폰에서 자판이 올라와도 안을 굴려 볼 수 있게 높이를 화면 안으로 묶어요 */
dialog.modal { border: 0; padding: 0; background: transparent; color: #fff; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; }
dialog.modal:not([open]) { display: none; }
dialog.modal[open] { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 50; }
dialog.modal::backdrop { background: rgba(4, 18, 20, .72); backdrop-filter: blur(3px); }
dialog.modal .signup { position: relative; max-width: none; background: var(--dark2); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: pop .22s ease-out; }
dialog.modal .signup-title { padding-right: 40px; } /* × 자리 비우기 */
.modal-x {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: #CFE7EA; font: inherit; font-size: 28px; line-height: 1; cursor: pointer;
}
.modal-x:hover, .modal-x:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
html.modal-open { overflow: hidden; } /* 팝업이 열린 동안 뒤 페이지는 안 굴러가요 */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; }
.msg.ok { color: #7FE0B0; }
.msg.err { color: #FFB27A; }
.light .msg.ok { color: #13795B; }
.light .msg.err { color: #B4471A; }

/* 픽셀 네온테트라 (2026-11-11 이해님: 앱과 같은 PixelLab 새 도트 · "모두 움직이게")
   neon_swim.png = 64×29칸 그림 9장을 가로로 이은 띠(앱 도트 25번의 꼬리 움직임에서 위아래 빈칸만 잘라 냄).
   띠를 9배 크기 배경으로 깔고 한 장씩 끊어서 옮겨 꼬리를 쳐요: 0 → 112.5%(= 9/8)를 steps(9)로.
   크기는 너비만 정하면 높이는 aspect-ratio가 맞춰요. 움직임을 줄이는 설정이면 첫 장에서 멈춰요 */
.neon {
  display: block; aspect-ratio: 64 / 29;
  background: url(assets/neon_swim.png) 0 0 / 900% 100% no-repeat;
  image-rendering: pixelated;
  animation: tail .9s steps(9) infinite;
}
@keyframes tail { to { background-position-x: 112.5%; } }

/* 지나가는 네온테트라 (움직임을 줄이는 설정이면 숨겨요) */
.swimmers { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.swim { position: absolute; width: 64px; opacity: .9; }
.s1 { top: 22%; animation: swimL 26s linear infinite, tail .9s steps(9) infinite; }
.s2 { top: 58%; width: 48px; animation: swimL 34s linear infinite, tail 1.1s steps(9) infinite; animation-delay: -14s, -.4s; }
/* 오른쪽에서 왼쪽으로 헤엄쳐요 (2026-10-13 이해님). 새 도트도 머리가 왼쪽이라 뒤집지 않고 그대로 써요.
   방향을 반대로 바꾸려면 scaleX(-1)로 뒤집어야 해요 — 안 뒤집으면 거꾸로 헤엄쳐 보여요 */
@keyframes swimL {
  from { transform: translateX(calc(100vw + 120px)); }
  to { transform: translateX(-120px); }
}

/* 게시글 모양 + 도트 카드 5장 (그림) */
.hero-art { position: relative; max-width: 420px; width: 100%; margin: 0 auto 24px; }
.post { background: var(--light); color: var(--ink); border-radius: 20px; overflow: hidden; width: 88%; margin: 0 auto; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 15px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cyan); }
.post-photo { position: relative; background: var(--dark2); aspect-ratio: 4 / 3; overflow: hidden; }
.pf { position: absolute; }
.f1 { width: 30%; left: 12%; top: 18%; }
.f2 { width: 22%; left: 48%; top: 46%; animation-duration: 1s; animation-delay: -.3s; } /* 세 마리가 똑같이 치지 않게 */
.f3 { width: 18%; left: 24%; top: 62%; animation-duration: .8s; animation-delay: -.6s; }
.sand { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #224A40; }
.post-body { padding: 10px 14px 14px; font-size: 14px; }
.post-body p { margin: 4px 0 0; }
.post-icons { display: flex; gap: 14px; align-items: center; }
.heart { color: var(--orange); font-size: 20px; line-height: 1; }
.bubble { width: 18px; height: 15px; border: 2px solid var(--ink); border-radius: 2px; position: relative; }
.tags { color: var(--teal-ink); }
/* 일반~전설 카드 5장 부채꼴 (2026-11-11 이해님 "일반~전설 다 보여주자")
   앱 도트컬렉션 카드(lib/widgets/collect_card.dart)와 같게: 어두운 바탕 + 등급 색 테두리 + 모서리를 깎은 도트 모양,
   영웅 · 전설은 둘레가 빛나요. 등급 색(--c)도 앱 rarityColor와 같아요.
   카드마다 --r(기울기) · --y(아래로 내림)로 부채꼴을 만들고, 뒤에 오는(오른쪽) 카드가 위에 겹쳐요.
   테두리: .card-face 바탕이 등급 색, ::before가 3px 안쪽의 어두운 바탕 → 깎은 모서리에도 테두리가 보여요 */
.cards { display: flex; justify-content: center; margin-top: -4px; padding: 0 4%; }
/* 기울기 ±12°까지: 더 기울이면 바깥 카드 끝이 폰 화면 밖으로 나가서 잘려요(.hero가 넘친 곳을 잘라 냄) */
.card {
  --c: #E6EEEC; --r: 0deg; --y: 0px; --glow: transparent;
  flex: 0 0 24%; margin: 0 -2%;
  transform: rotate(var(--r)) translateY(var(--y)); transform-origin: 50% 120%;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.4)) drop-shadow(0 0 8px var(--glow));
}
.r-common   { --c: #E6EEEC; --r: -12deg; --y: 12px; }
.r-uncommon { --c: #6FD28A; --r: -6deg;  --y: 3px; }
.r-rare     { --c: #7FB2FF; --r: 0deg;   --y: 0px; }
.r-epic     { --c: #B98CFF; --r: 6deg;   --y: 3px;  --glow: rgba(185, 140, 255, .55); }
.r-legend   { --c: #D99A2B; --r: 12deg;  --y: 12px; --glow: rgba(217, 154, 43, .7); }
.card-face {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4.3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 6px 7px 9px; background: var(--c);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.card-face::before {
  content: ''; position: absolute; inset: 3px; background: #0B2622;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, #0B2622), #0B2622); /* 옛 브라우저는 윗줄 단색 */
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.card-face > * { position: relative; }
.sprite {
  display: block; width: 100%; aspect-ratio: 1;
  background: 0 0 / 900% 100% no-repeat; image-rendering: pixelated; /* 그림 주소는 index.html의 style */
  animation: tail .9s steps(9) infinite;
}
.r-uncommon .sprite { animation-duration: 1s; animation-delay: -.2s; }
.r-rare .sprite { animation-duration: 1.4s; animation-delay: -.5s; } /* 우파루파는 천천히 */
.r-epic .sprite { animation-duration: 1.2s; animation-delay: -.3s; }
.r-legend .sprite { animation-duration: 1.1s; animation-delay: -.7s; }
.card b {
  color: #E8F5EE; font-size: clamp(9px, 2.5vw, 11.5px); line-height: 1.15; letter-spacing: -.03em;
  text-align: center; overflow-wrap: anywhere;
}
.rar { color: var(--c); font-size: clamp(8px, 2.2vw, 10px); font-weight: 800; }

/* ── 밝은 칸 ── */
.light { background: var(--light); padding: 72px 0; }
.kicker { font-size: 13px; color: var(--teal-ink); margin: 0 0 6px; font-weight: 500; }
.kicker.cyan { color: var(--cyan); }
.kicker.orange { color: var(--orange); }
.h2 { font-size: clamp(28px, 7vw, 40px); line-height: 1.25; margin: 0 0 24px; }
.mt { margin-top: 64px; }
.mt-s { margin-top: 40px; }
.features { display: grid; gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.feature h3 { font-size: 20px; margin: 12px 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.feature.dark { background: var(--dark); color: #fff; border: 0; }
.feature.dark p { color: #CFE7EA; }
.feature.band { background: #E6F2F3; border: 0; }
.feature.band h3 { margin-top: 0; }
.ficon { width: 28px; height: 28px; fill: none; stroke: var(--teal-ink); stroke-width: 2; }
.ficon.orange { stroke: var(--orange); }
.can { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.can li { position: relative; padding-left: 24px; font-size: 16px; }
.can li::before { content: ''; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--cyan); }
.can li.orange::before { background: var(--orange); }

/* 앱 화면 미리 보기: 세로 폰 틀 (화면 비율 9 : 19.5) */
.phones { display: grid; gap: 28px; justify-items: center; }
.phone { margin: 0; width: min(280px, 78vw); padding: 12px; border-radius: 40px; background: #0D2023; box-shadow: 0 18px 40px rgba(9, 38, 42, .25); position: relative; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 34%; height: 18px; border-radius: 999px; background: #0D2023; z-index: 2; }
.screen { position: relative; aspect-ratio: 9 / 19.5; border-radius: 30px; overflow: hidden; background: var(--light); display: flex; align-items: center; justify-content: center; }
.screen span { color: var(--muted); font-size: 14px; padding: 0 16px; text-align: center; }
/* 화면 사진은 위에 상태 표시줄 자리(폰 틀 색)를 두고 그 아래에 — 틀의 노치가 앱 머리(로고 · 제목)를 가리지 않게 (2026-10-23) */
.screen:has(img) { background: #0D2023; }
.screen img { position: absolute; left: 0; right: 0; bottom: 0; top: 30px; width: 100%; height: calc(100% - 30px); object-fit: cover; object-position: top; }
.screen img + span { display: none; }

/* ── 어두운 칸 (이름의 뜻 · 기념 카드) ── */
.dark-a, .dark-b { color: #fff; padding: 72px 0; }
.dark-a { background: var(--dark); }
.dark-b { background: var(--dark2); }
.bigmark { width: min(320px, 80%); height: auto; image-rendering: pixelated; display: block; margin-bottom: 28px; }
.body { font-size: 17px; color: #DCEDEF; max-width: 36em; margin: 0 0 28px; }
.dot { color: var(--orange); font-weight: 700; }

/* ── 자주 묻는 질문 ── */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); flex: none; margin-left: 12px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ── 한마디 남겨 주세요 ── */
.notes { margin-top: 64px; }
.with-icon { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.bubble-icon { width: 36px; height: 32px; fill: var(--cyan); flex: none; }
.sub { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.pill { display: inline-block; margin: 0 0 22px; background: #DDF1F3; color: var(--teal-ink); font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
#noteForm label { display: block; font-weight: 700; margin: 0 0 8px; }
#noteForm input, #noteForm textarea {
  width: 100%; border: 1px solid #CFE0E2; border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; font-size: 16px; padding: 12px 16px; margin-bottom: 18px;
}
#noteForm input { min-height: 50px; }
#noteForm textarea { resize: vertical; min-height: 140px; margin-bottom: 4px; }
.count { text-align: right; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #DDF1F3; color: var(--teal-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.note-list { display: grid; gap: 12px; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.note.is-pending { border-style: dashed; background: #FBFDFD; }
.note-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-head time { margin-left: auto; color: var(--muted); font-size: 13px; }
.note .tag { font-size: 12px; font-weight: 700; color: var(--teal-ink); background: #DDF1F3; border-radius: 999px; padding: 2px 10px; }
.note p { margin: 8px 0 0; white-space: pre-wrap; }
.link-btn { margin-top: 8px; background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
.note-empty { border: 2px dashed #BFDCDF; border-radius: 14px; padding: 28px 16px; text-align: center; display: grid; justify-items: center; gap: 4px; }
.note-empty span { color: var(--muted); }
.mail-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.mail-note a { color: var(--teal-ink); }

/* ── 아래쪽 ── */
.footer { position: relative; background: var(--dark); color: #DCEDEF; padding: 48px 0 56px; overflow: hidden; }
.foot-in { position: relative; display: grid; gap: 18px; }
.foot-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot-line img { image-rendering: pixelated; }
.foot-line a { color: var(--cyan); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: #DCEDEF; min-height: 44px; display: inline-flex; align-items: center; }

/* ── 베타 테스터 모집 페이지 /beta (2026-11-18 기획 요청). 위의 소개 페이지 모양을 그대로 쓰고, 신청 칸에만 몇 줄 더해요 ── */
/* 넓은 화면에서도 아래 묶음과 왼쪽 시작 자리가 같게: 틀(.wrap)은 그대로 두고 안의 글 폭만 720px로 */
.beta-hero { position: relative; padding-top: 40px; padding-bottom: 56px; }
.beta-hero > * { max-width: 720px; }
.beta-hero .title { font-size: clamp(34px, 9vw, 52px); }
.beta-about li { color: #DCEDEF; }
.beta-hero .btn { margin-top: 28px; }
.beta-info .h2 { font-size: clamp(22px, 5.5vw, 28px); margin: 40px 0 14px; }
.beta-info .h2:first-child { margin-top: 0; }
.beta-info p { margin: 0; font-size: 16px; }
/* 베타 받는 것 그림 (2026-11-19): 폰은 스킨 → 아래에 뽑기권 · 칭호 두 칸, 넓은 화면은 스킨 옆에 두 칸 */
.beta-gifts { margin-top: 20px; display: grid; gap: 14px; }
.beta-gift-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 720px) {
  .beta-gifts { grid-template-columns: minmax(0, 536px) 240px; align-items: stretch; }
  .beta-gift-side { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}
.beta-gifts figure { margin: 0; }
.beta-gifts figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
/* 스킨: 앱 그림 띠(256 × 192 × 9장)를 앱처럼 0 → 8 → 0 왕복, 한 장 0.15초
   (lib/widgets/dot_tank_view.dart bgFrameSeconds · _pingPong). 반 바퀴마다 steps(8)이라 0~7 → 8~1, 한 바퀴 16장 = 2.4초.
   움직임을 줄이는 설정이면 첫 장(멈춘 그림)에서 멈춰요 */
.beta-skin-anim {
  position: relative; /* 틀(::before) 위에 */
  width: 100%; aspect-ratio: 4 / 3;
  background: url("assets/beta_skin_anim.png") 0 0 / 900% 100% no-repeat; image-rendering: pixelated;
  animation: betaSkin 2.4s steps(8) infinite;
}
@keyframes betaSkin { 0%, 100% { background-position-x: 0; } 50% { background-position-x: 100%; } }
/* 스킨 둘레 틀 = 앱 도트 어항 틀 그대로 (lib/screens/game_screen.dart _framedTank · lib/theme/shop_art.dart):
   그림 68 × 50에서 한가운데 한 점(34, 25)만 늘리고, 한 점 = 2px(tankFrameDot). 어항은 테두리 두께(6 · 7 · 6 · 8점)만큼 안쪽에 */
.beta-skin-frame { position: relative; padding: 14px 12px 16px; }
.beta-skin-frame::before {
  content: ''; position: absolute; inset: 0;
  border-style: solid; border-width: 50px 66px 48px 68px;
  border-image: url("assets/tank_frame.png") 25 33 24 34 fill;
  image-rendering: pixelated;
}
/* 뽑기권 · 칭호 칸 (일반 UI라 둥근 칸) */
.beta-gift { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; text-align: center; }
.beta-gift-art { flex: 1; min-height: 100px; display: flex; align-items: center; justify-content: center; }
.beta-gift figcaption { margin-top: 8px; color: var(--ink); font-weight: 600; }
.beta-tickets { width: 96px; height: 96px; image-rendering: pixelated; }
/* '베타' 칭호 딱지 = 앱 이벤트 칭호 딱지(lib/widgets/nickname_badge.dart EventTitlePill) 모양:
   진한 바탕 #071816(abyss) · 청록 #2A98A2(aqua) 테두리 · 글씨, 모서리를 깎은 픽셀 테두리, 청록 빛. 글씨만 2배쯤 크게 */
.beta-title-glow { display: inline-block; filter: drop-shadow(0 0 8px rgba(42, 152, 162, .6)); }
.beta-title-pill {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; font-size: 22px; font-weight: 800; line-height: 1.2; color: #2A98A2; background: #2A98A2;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.beta-title-pill::before {
  content: ''; position: absolute; inset: 2px; background: #071816;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
}
.beta-title-pill > span { position: relative; }

/* ── 인스타 프로필 링크 모음 /links (2026-11-19 이해님: "링크트리가 필요할거 같아" → '우리 사이트에 한 장').
   진한 바탕 한 칸에 앱 아이콘 · 로고 · 한 줄 소개 → 링크 버튼 세로로. 베타 신청만 주황(지금 가장 중요한 것), 나머지는 테두리 버튼 ── */
.links-page { background: var(--dark); color: #fff; }
.links {
  position: relative; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto;
  padding: 64px 20px 28px; display: flex; flex-direction: column; align-items: center;
}
.links-lang { position: absolute; top: 12px; right: 16px; }
.links-head { text-align: center; }
.links-icon { width: 88px; height: 88px; border-radius: 22px; border: 1px solid rgba(255,255,255,.12); image-rendering: pixelated; display: block; margin: 0 auto; }
.links-wordmark { width: 168px; height: auto; display: block; margin: 18px auto 0; image-rendering: pixelated; }
.links-name { margin: 2px 0 0; font-size: 15px; color: #CFE7EA; }
.links-tagline { margin: 14px 0 0; font-size: 18px; font-weight: 700; }
.links-list { width: 100%; display: grid; gap: 12px; margin-top: 32px; }
.link-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 18px; border-radius: 14px; text-decoration: none;
  font-size: 16px; font-weight: 700; color: #E6F4F5;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.22);
}
.link-btn:hover { background: rgba(255,255,255,.09); }
.link-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.link-main { min-height: 64px; font-size: 17px; background: var(--orange); color: var(--ink); border-color: transparent; }
.link-main:hover { background: #FF9440; }
.link-badge { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--ink); color: var(--orange); }
.links-foot { margin-top: auto; padding-top: 48px; display: flex; gap: 14px; font-size: 13px; color: #9FC3C7; }
.links-foot a { color: #9FC3C7; }
#apply { scroll-margin-top: 72px; } /* 위에 붙은 머리줄에 가리지 않게 */
.signup input[type=text] {
  width: 100%; min-height: 50px; border-radius: 10px; border: 0; padding: 0 16px;
  font: inherit; font-size: 16px; background: var(--light); color: var(--ink); margin-bottom: 12px;
}
.field-label { display: block; font-size: 14px; font-weight: 700; color: #E6F4F5; margin: 0 0 6px; }
.field-help { margin: -4px 0 16px; font-size: 13px; color: #9FC3C7; }
.signup input + .field-help { margin-top: -6px; }
.pick { border: 0; padding: 0; margin: 0 0 16px; }
.pick legend { padding: 0; }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick-row label {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 14px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.22); color: #E6F4F5; cursor: pointer;
}
.pick-row label:has(input:checked) { border-color: var(--cyan); background: rgba(93, 199, 208, .12); }
.pick-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--cyan); }
.pick .field-help { margin: 10px 0 0; }

/* ── 베타 테스트 설문 /beta/survey (2026-11-24, D-600 · D-668 · D-677~D-681) ──
   위는 /beta와 같은 어두운 첫 칸, 질문은 밝은 칸의 흰 카드(일반 UI라 둥글게), 맨 아래 어두운 칸에 초대 코드 · 보내기.
   고르는 칸은 손가락으로 누르기 쉽게 높이 44~48px */
.sv-hero { padding-bottom: 40px; }
.sv-hero .chips { margin: 4px 0 0; }
.sv-state { margin: 24px 0 0; padding: 14px 16px; border-radius: 12px; background: rgba(93, 199, 208, .12); border: 1px solid rgba(93, 199, 208, .35); color: #E6F4F5; font-size: 15px; }
.sv-body { padding: 40px 0 72px; }
.sv-form, .sv-done { max-width: 720px; }
.sv-group { margin: 32px 0 0; }
.sv-group:first-child { margin-top: 0; }
.sv-group-title { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--teal-ink); margin: 0 0 10px; }
.sv-q { display: block; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; margin: 0 0 12px; }
.sv-q.missing { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(245, 127, 32, .25); }
/* 묶음 칸(fieldset)의 제목(legend)은 브라우저가 테두리 위에 걸쳐 그려서, 왼쪽에 띄워 카드 안으로 넣어요 */
.sv-q-title { display: block; float: left; width: 100%; padding: 0; font-weight: 700; font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.sv-q-title + * { clear: both; }
.sv-num { color: var(--teal-ink); margin-right: 6px; }
.sv-req { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 20px; background: rgba(245, 127, 32, .14); color: #B4471A; vertical-align: 1px; }
.sv-hint { margin: -6px 0 10px; font-size: 13px; color: var(--muted); }
/* 질문 아래 알려 드릴 것 (13번 출시 뒤 값) */
.sv-note { list-style: none; margin: -4px 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(93, 199, 208, .1); font-size: 14.5px; line-height: 1.55; }
.sv-note li + li { margin-top: 4px; }
.sv-note .sv-note-small { font-size: 12.5px; color: var(--muted); }
.sv-choices { display: grid; gap: 8px; }
.sv-choices.two { grid-template-columns: 1fr 1fr; }
.sv-choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--light); cursor: pointer; font-size: 15px; line-height: 1.35; }
.sv-choice:has(input:checked) { border-color: var(--cyan); background: rgba(93, 199, 208, .16); }
.sv-choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--teal-ink); }
.sv-q textarea { display: block; width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.5; background: var(--light); color: var(--ink); resize: vertical; }
.sv-follow { margin-top: 12px; }
.sv-follow label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
/* 쓸모 점수: 항목마다 1~5 + '안 써 봄'(폰에서도 한 줄) · 추천 점수: 0~10(폰은 두 줄, 넓은 화면은 한 줄) */
.sv-rate { padding: 12px 0; border-top: 1px solid var(--line); }
.sv-rate:first-of-type { border-top: 0; padding-top: 2px; }
.sv-rate-name { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.sv-scale { display: grid; gap: 6px; }
.sv-scale.rate { grid-template-columns: repeat(5, minmax(38px, 1fr)) minmax(64px, 1.6fr); }
.sv-scale.nps { grid-template-columns: repeat(6, 1fr); }
.sv-dot { position: relative; display: block; cursor: pointer; }
.sv-dot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sv-dot span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--light); font-weight: 700; font-size: 15px; text-align: center; line-height: 1.2; }
.sv-dot.na span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.sv-dot input:checked + span { border-color: var(--teal-ink); background: var(--cyan); color: var(--ink); }
.sv-dot input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.sv-ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
/* 보상 받기 · 보내기 (어두운 칸 = 소개 페이지 신청 칸 .signup 모양) */
.sv-send { max-width: none; margin-top: 28px; color: #fff; }
.sv-send-lead { margin: 0 0 16px; font-size: 15px; color: #DCEDEF; }
.signup input.sv-code { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .2em; text-transform: uppercase; }
.sv-send .consent { margin-top: 12px; }
.sv-send .consent + .consent { margin-top: 12px; }
.sv-send .consent-more { margin-bottom: 18px; }
.sv-contact-label { margin-top: 12px; }
.sv-send input[type=email] { width: 100%; min-height: 50px; border-radius: 10px; border: 0; padding: 0 16px; font: inherit; font-size: 16px; background: var(--light); color: var(--ink); margin: 0; }
.sv-done { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.sv-done .h2 { margin-bottom: 12px; }
.sv-done p { margin: 0; font-size: 16px; }
@media (min-width: 720px) {
  .sv-scale.nps { grid-template-columns: repeat(11, 1fr); }
  .sv-q { padding: 22px 22px; }
}

/* ── 넓은 화면 ── */
@media (min-width: 720px) {
  .menu { display: flex; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.band { grid-column: 1 / -1; }
  .phones { grid-template-columns: repeat(3, 1fr); }
  .notes { max-width: 720px; }
}
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 64px; padding-bottom: 96px; }
  .title { font-size: 64px; }
  .wordmark { width: 150px; }
}
/* ── 움직임 (2026-10-13 이해님 결정: 차분하게) ──
   내리면 떠오르기: app.js가 html에 'motion'을 붙였을 때만 숨겼다가 보여요 */
.motion .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
/* 도트 카드: 왼쪽부터 차례로 살짝 둥실(물결) + 영웅 · 전설은 가끔 빛이 한 번 지나가요 */
.card { animation: cardFloat 6s ease-in-out infinite; }
.r-uncommon { animation-delay: -1.2s; }
.r-rare { animation-delay: -2.4s; }
.r-epic { animation-delay: -3.6s; }
.r-legend { animation-delay: -4.8s; }
@keyframes cardFloat {
  0%, 100% { transform: rotate(var(--r)) translateY(var(--y)); }
  50% { transform: rotate(var(--r)) translateY(calc(var(--y) - 6px)); }
}
.r-epic .card-face::after, .r-legend .card-face::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-12deg); animation: cardShine 6s ease-in-out infinite;
}
.r-legend .card-face::after { animation-delay: -3s; }
@keyframes cardShine { 0%, 70% { left: -60%; } 90%, 100% { left: 130%; } }
/* 게시글 하트: 4.5초에 한 번 톡 */
.heart { display: inline-block; animation: heartPop 4.5s ease-in-out infinite; }
@keyframes heartPop { 0%, 80%, 100% { transform: scale(1); } 86% { transform: scale(1.3); } 92% { transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  .swim { animation: none; display: none; }
  .neon { animation: none; } /* 꼬리 치기도 멈추고 첫 장만 보여요 */
  .sprite { animation: none; } /* 카드 생물도 첫 장에서 멈춰요 */
  .beta-skin-anim { animation: none; } /* 베타 스킨도 첫 장(멈춘 그림)에서 멈춰요 */
  .card, .card-face::after, .heart, .signup.flash, dialog.modal .signup { animation: none; }
  html { scroll-behavior: auto; }
}
