/* Tapzine 웹. 색은 게임 화면에서 가져왔다(짙은 남색 → 자주, 칸 색 분홍·청록·노랑·파랑, 크림색 카드) */
:root {
  --ink: #15142e;
  --navy: #1c1c44;
  --navy-2: #26265a;
  --plum: #4b2463;
  --berry: #8c2a6c;
  --pink: #ff4f9a;
  --teal: #2fd3c1;
  --yellow: #ffd23f;
  --blue: #5b7cff;
  --cream: #fff4dc;
  --text: #ffffff;
  --text-2: #e9e6fb;
  --line: rgba(255, 255, 255, 0.16);
  --radius: 18px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #17163a 0%, #1f1d4a 30%, #2f1f57 55%, #4b2463 78%, #6c2768 100%);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(en) { overflow-wrap: break-word; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--ink); font-weight: 800;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
main:focus { outline: none; }
main { overflow-x: clip; display: block; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* 언어 안내 띠 */
.lang-hint {
  display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: var(--cream); color: var(--ink); padding: 10px 48px 10px 16px; position: relative;
  font-size: 15px; font-weight: 600;
}
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; }
.lang-hint a { color: var(--ink); background: var(--yellow); padding: 4px 12px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.lang-hint-close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 24px; cursor: pointer;
}

/* 머리 */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 14px 0;
  padding-top: max(14px, env(safe-area-inset-top));
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.wordmark img { border-radius: 8px; }
.wordmark span, .wordmark-text {
  font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 22px; letter-spacing: 0.02em;
  color: var(--pink); text-shadow: 2px 2px 0 var(--ink);
}
.top-right { display: flex; align-items: center; gap: 6px; }
.top-link { color: var(--text); font-weight: 700; text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.top-link:hover { color: var(--yellow); }
.lang { display: inline-flex; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a {
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 14px;
  padding: 8px 12px; border-radius: 999px; min-height: 38px; display: inline-flex; align-items: center;
}
.lang a[aria-current="true"] { background: var(--pink); color: #fff; }

/* 딱지 */
.sticker {
  display: inline-block; font-weight: 900; font-style: italic; color: var(--ink);
  padding: 6px 14px; border-radius: 6px; transform: rotate(-2.5deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); position: relative; margin: 0;
}
.sticker::before {
  content: ""; position: absolute; top: -9px; left: 50%; width: 46px; height: 16px; margin-left: -23px;
  background: rgba(255, 255, 255, 0.55); transform: rotate(4deg); border-radius: 2px;
}
.sticker-yellow { background: var(--yellow); }
.sticker-pink { background: var(--pink); color: #fff; }
.sticker-teal { background: var(--teal); }
.sticker small { font-weight: 800; font-style: normal; opacity: 0.85; margin-left: 4px; }

/* 첫 화면 */
.hero {
  width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 24px 0 40px;
  display: grid; gap: 28px; align-items: center;
}
.status { font-size: 15px; }
.logo {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(58px, 17vw, 132px); line-height: 0.95; letter-spacing: -0.01em; margin: 18px 0 14px;
  color: var(--pink);
  text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--teal), 6px 6px 0 var(--blue);
}
.logo-sm { font-size: clamp(48px, 14vw, 96px); }
.lead {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(25px, 6vw, 38px); line-height: 1.25; margin: 0 0 12px;
}
:lang(ko) .lead, :lang(ko) .title { font-style: normal; transform: skewX(-6deg); transform-origin: left; }
.sub { color: var(--text-2); font-size: 18px; margin: 0 0 20px; max-width: 34em; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.fact {
  display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.3); border: 2px solid var(--line);
}
.fact strong { font-family: var(--font-display); font-weight: 900; font-style: italic; font-size: 28px; line-height: 1; color: var(--yellow); }
.fact:nth-child(2) strong { color: var(--teal); }
.fact:nth-child(3) strong { color: var(--pink); }
.fact span { font-weight: 800; }
.store-note {
  margin: 0; padding: 12px 16px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.45);
  font-weight: 700; color: var(--text-2); max-width: 30em;
}

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 10px; }
.record {
  position: absolute; width: min(84vw, 420px); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; margin-left: max(-42vw, -210px); transform: translate(18%, -50%);
  background:
    radial-gradient(circle, var(--pink) 0 13%, var(--ink) 13.5% 15%, transparent 15.5%),
    repeating-radial-gradient(circle, #121126 0 2px, #1d1c3a 3px 5px);
  box-shadow: 0 0 0 3px #2c2b55, 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: spin 9s linear infinite;
}
@keyframes spin { from { transform: translate(18%, -50%) rotate(0deg); } to { transform: translate(18%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .record { animation: none; } }

.phone {
  margin: 0; padding: 9px; border-radius: 34px; background: #0c0b1d; position: relative;
  box-shadow: 0 0 0 2px #3b3a72, 0 22px 50px rgba(0, 0, 0, 0.5);
}
.phone img { border-radius: 26px; width: 100%; }
.phone-hero { width: min(64vw, 300px); transform: rotate(-3deg); z-index: 1; }
.phone-tilt { transform: rotate(2.5deg); }
.phone-tilt-r { transform: rotate(-2.5deg); }

.lane-stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 10px; }
.lane-stripe i:nth-child(1) { background: var(--pink); }
.lane-stripe i:nth-child(2) { background: var(--teal); }
.lane-stripe i:nth-child(3) { background: var(--yellow); }
.lane-stripe i:nth-child(4) { background: var(--blue); }

/* 절 */
section { padding: 56px 0; }
.kicker {
  display: inline-block; margin: 0 0 8px; font-weight: 900; font-style: italic; letter-spacing: 0.12em; font-size: 14px;
  color: var(--ink); background: var(--teal); padding: 3px 10px; border-radius: 4px; transform: rotate(-2deg);
}
.title {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(30px, 7.5vw, 52px); line-height: 1.15; margin: 4px 0 14px;
  text-shadow: 3px 3px 0 var(--pink), -2px -2px 0 rgba(47, 211, 193, 0.75);
}
.title-sm { font-size: clamp(26px, 6vw, 38px); }
.body { color: var(--text-2); font-size: 18px; max-width: 38em; margin: 0 0 16px; }
.note { font-size: 16px; }

/* 세계 띠 */
.worlds { padding-bottom: 40px; }
.world-strip {
  list-style: none; margin: 18px 0 0; padding: 12px max(20px, calc((100% - var(--wrap)) / 2)) 26px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--pink) transparent;
}
.world { flex: 0 0 auto; width: min(58vw, 240px); scroll-snap-align: start; }
.world:nth-child(odd) { transform: rotate(-1.5deg); }
.world:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.world figure { margin: 0; position: relative; }
.world img { border-radius: 14px; border: 4px solid var(--cream); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.world figcaption { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; justify-content: space-between; align-items: end; gap: 6px; }
.tape {
  background: var(--cream); color: var(--ink); font-weight: 900; font-style: italic; font-size: 15px;
  padding: 3px 10px; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}
.bpm { background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; }

/* 둘로 나눈 줄 */
.split { display: grid; gap: 36px; align-items: center; }
.split > .phone { width: min(70vw, 300px); justify-self: center; }
.points { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.points li {
  position: relative; padding: 12px 16px 12px 46px; border-radius: 14px; background: rgba(0, 0, 0, 0.26);
  border: 1px solid var(--line); color: var(--text-2); font-size: 17px;
}
.points li::before {
  content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 12px; border-radius: 4px; background: var(--pink);
}
.points li:nth-child(2)::before { background: var(--teal); }
.points li:nth-child(3)::before { background: var(--yellow); }
.points li:nth-child(4)::before { background: var(--blue); }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.phones .phone { padding: 6px; border-radius: 24px; }
.phones .phone img { border-radius: 19px; }
.phones .phone:nth-child(2) { transform: translateY(-16px); }

/* 앨범 CD */
.albums { background: rgba(0, 0, 0, 0.22); border-block: 1px solid var(--line); }
.cds { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
.cd-case { position: relative; margin-right: 18%; }
.cd-case img {
  position: relative; z-index: 1; border-radius: 6px; border: 3px solid #0c0b1d;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}
.cd-disc {
  position: absolute; z-index: 0; top: 4%; right: -22%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle, var(--ink) 0 6%, var(--cream) 6.5% 16%, transparent 16.5%),
    repeating-radial-gradient(circle, #15142c 0 2px, #24234a 3px 5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease;
}
.cd:hover .cd-disc { transform: translateX(8%) rotate(40deg); }
@media (prefers-reduced-motion: reduce) { .cd-disc { transition: none; } .cd:hover .cd-disc { transform: none; } }
.cd-title { margin: 12px 0 0; font-weight: 900; font-style: italic; font-size: 17px; line-height: 1.3; }
.cd-no { display: inline-block; background: var(--pink); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-right: 4px; vertical-align: 2px; }
.cd-sub { margin: 2px 0 0; color: var(--text-2); font-size: 14px; font-weight: 700; }

/* 만들기 */
.steps { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 10px; }
.steps li {
  display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center;
  background: var(--cream); color: var(--ink); border-radius: 14px; padding: 12px 14px;
}
.steps li > span:last-child { grid-column: 2; font-size: 15px; font-weight: 600; }
.steps strong { font-weight: 900; font-style: italic; font-size: 18px; }
.step-no {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink); color: #fff; font-weight: 900;
}
.steps li:nth-child(2) .step-no { background: var(--teal); color: var(--ink); }
.steps li:nth-child(3) .step-no { background: var(--yellow); color: var(--ink); }
.steps li:nth-child(4) .step-no { background: var(--blue); }

/* 같이 하기 */
.together-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 22px; }
.together-list li { display: grid; gap: 10px; justify-items: start; color: var(--text-2); font-size: 17px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair .phone { padding: 6px; border-radius: 24px; }
.pair .phone img { border-radius: 19px; }
.pair .phone:nth-child(2) { transform: translateY(26px) rotate(2deg); }

/* 언어 */
.lang-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chips li { padding: 7px 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 700; background: rgba(0, 0, 0, 0.22); }

/* 출시 준비 */
.soon-card {
  background: var(--cream); color: var(--ink); border-radius: 22px; padding: 28px 24px; position: relative;
  box-shadow: 0 6px 0 var(--pink);
}
.soon-card .title { color: var(--ink); text-shadow: 3px 3px 0 var(--yellow); margin-top: 0; }
.soon-card p { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 20px; border-radius: 12px;
  background: var(--pink); color: #fff; font-weight: 900; text-decoration: none; box-shadow: 0 4px 0 var(--ink);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 2px solid #fff; box-shadow: none; }

/* 문서 */
.doc { padding: 28px 0 64px; max-width: 860px; }
.doc-head { margin-bottom: 18px; }
.doc-head .title { font-size: clamp(32px, 7vw, 48px); }
.doc-meta { color: var(--text-2); font-weight: 600; margin: 0; }
.toc { background: rgba(0, 0, 0, 0.26); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; }
.toc p { margin: 0 0 6px; font-weight: 900; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 24px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { color: var(--text); text-decoration: none; font-size: 15px; display: inline-block; padding: 4px 0; }
.toc a:hover { color: var(--yellow); text-decoration: underline; }
.prose { color: var(--text-2); }
.prose h2 {
  font-family: var(--font-display); font-weight: 900; font-size: 24px; color: #fff; line-height: 1.3;
  margin: 40px 0 12px; padding-top: 8px; border-top: 2px solid var(--line); scroll-margin-top: 16px;
}
.prose h3 { font-size: 19px; color: #fff; margin: 26px 0 8px; scroll-margin-top: 16px; }
.prose p, .prose li { font-size: 16.5px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--teal); }
.prose strong { color: #fff; }
.prose code { background: rgba(0, 0, 0, 0.35); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border-radius: 14px; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: rgba(0, 0, 0, 0.22); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: rgba(0, 0, 0, 0.32); color: #fff; font-weight: 800; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) {
  /* 좁은 화면에서는 표를 카드로 */
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .prose td { border: 0; padding: 4px 14px; }
  .prose td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 800; color: var(--yellow); }
}
.faq details { background: rgba(0, 0, 0, 0.26); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 800; color: #fff; min-height: 48px; }
.faq details p { margin: 0; padding: 0 18px 16px; }
.notice { margin: 18px 0; }
.notice h3 { margin-bottom: 6px; }
.notice pre {
  white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.55; color: var(--text-2);
  background: rgba(0, 0, 0, 0.32); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 0;
  max-height: 420px; overflow: auto;
}
.nf { text-align: center; padding: 60px 0 80px; }
.nf .body { margin-inline: auto; }

/* 바닥 */
.foot { border-top: 1px solid var(--line); background: rgba(10, 8, 30, 0.45); padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot-inner { width: min(var(--wrap), 100% - 40px); margin: 0 auto; display: grid; gap: 22px; }
.foot-brand p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: var(--text); font-weight: 700; display: inline-block; padding: 10px 0; }
.foot-links a:hover { color: var(--yellow); }
.copy { width: min(var(--wrap), 100% - 40px); margin: 18px auto 0; color: var(--text-2); font-size: 13px; }

@media (min-width: 760px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding: 48px 0 72px; }
  .phone-hero { width: 310px; }
  .split { grid-template-columns: 1fr 1fr; }
  .split-rev > :first-child { order: 0; }
  .cds { grid-template-columns: repeat(4, 1fr); gap: 34px 26px; }
  .phones { gap: 28px; max-width: 900px; margin-inline: auto; }
  .world { width: 250px; }
  .foot-inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
  .foot-links { flex-direction: column; gap: 0; }
  section { padding: 80px 0; }
  .soon-card { padding: 40px; }
}
@media (max-width: 759px) {
  .split-rev > .phone { order: 2; }
  .top-link { padding: 10px 6px; }
}
@media (max-width: 380px) {
  .wordmark span { font-size: 19px; }
  .lang a { padding: 8px 9px; }
}

/* 좁은 화면: 플레이 화면 셋은 옆으로 넘긴다 */
@media (max-width: 759px) {
  .phones {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -20px; padding: 24px 20px 20px; scrollbar-width: thin; scrollbar-color: var(--pink) transparent;
  }
  .phones .phone { flex: 0 0 60vw; scroll-snap-align: center; }
  .phones .phone:nth-child(2) { transform: none; }
}
.world-strip { scroll-padding-inline: max(20px, calc((100% - var(--wrap)) / 2)); }
@media (max-width: 430px) {
  .top-link { display: none; }
}
