/* Penguin Run — 게임 메뉴 화면과 같은 톤: 하늘 그라데이션, 굵은 흰 제목, 로우폴리 얼음, 밤하늘(악어 모드) 푸터 */

@font-face {
    font-family: "Pretendard Variable";
    src: url("fonts/PretendardVariable-Latin.woff2") format("woff2-variations"),
         url("fonts/PretendardVariable-Latin.woff2") format("woff2");
    font-weight: 45 930;
    font-display: swap;
}

:root {
    --sky-top: #5fa8e6;     /* 펭귄 클래식 상단바 */
    --sky-low: #d0f0ff;     /* 로딩/스플래시 하늘 */
    --snow: #f6fbff;
    --ink: #0f2233;
    --ink-2: #5b7286;
    --rule: #d7e6f1;
    --yellow: #ffd600;      /* Continue 버튼 */
    --night: #070f22;       /* 악어 클래식 밤하늘 */
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--sky-top); /* 아이폰 사파리 상단바 색 (사파리는 body 배경색을 봄) */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- 언어 ---------- */
html[data-lang="ko"] [lang="en"]:not(html) { display: none; }
html[data-lang="en"] [lang="ko"]:not(html) { display: none; }

.lang-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-switch button {
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: 0;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
    background: #fff;
    color: var(--ink);
}

/* ---------- 하늘 ---------- */
.sky {
    position: relative;
    background: linear-gradient(180deg, var(--sky-top) 0%, #8cc8f0 55%, var(--sky-low) 100%);
    color: #fff;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 22px 24px 0;
    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.hero {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 72px 24px 150px;
}

.hero .icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(15, 34, 51, 0.22);
    display: block;
    margin-bottom: 28px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(56px, 12vw, 112px);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero .tagline {
    margin: 22px 0 0;
    max-width: 30em;
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

/* 스토어 버튼: 로고만 (logos/) */
.stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.store-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px 0 18px;
    border-radius: 16px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(15, 34, 51, 0.18);
    transition: transform 0.12s ease;
}

.store-logo:active { transform: scale(1.04); }

.store-logo img { display: block; height: 24px; width: auto; }

/* 짧은 페이지(방침) 머리 */
.hero.compact { padding: 48px 24px 120px; }
.hero.compact h1 { font-size: clamp(38px, 7vw, 60px); letter-spacing: -0.04em; }

/* 로우폴리 얼음 */
.ice {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 120px;
    display: block;
    z-index: 1;
}

/* 눈송이 */
.flake {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

/* ---------- 본문 ---------- */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 24px 96px;
    /* 본문은 흰 바탕 (body는 상단바 색 때문에 파랑). 가운데 960px 밖 양옆까지 흰색으로 꽉 채움 */
    background: var(--snow);
    box-shadow: 0 0 0 100vmax var(--snow);
    clip-path: inset(0 -100vmax);
}

.row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-top: 1px solid var(--rule);
}

.row:first-child { border-top: 0; }

.label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sky-top);
    padding-top: 4px;
}

.row h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.row p {
    margin: 0 0 12px;
    color: var(--ink-2);
    max-width: 36em;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 15px 26px;
    border-radius: 999px;
    background: var(--yellow);
    color: #000;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(255, 214, 0, 0.28);
    transition: transform 0.12s ease;
}

.cta:active { transform: scale(1.03); }

.cta svg { width: 18px; height: 18px; }

/* 소개 영상 (16:9) */
.video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: transparent; /* 영상이 들어가서 바탕색 없음 (예전 회색 #2b2f33가 둥근 모서리 가장자리에 가는 테두리처럼 비쳤음) */
    box-shadow: 0 14px 34px rgba(15, 34, 51, 0.14);
    isolation: isolate; /* 둥근 모서리로 영상이 깔끔하게 잘리게 */
}

.video iframe {
    position: absolute;
    /* 사방으로 1px씩 넓혀서 둥근 모서리 밖으로 살짝 넘기게 → 가장자리에 영상의 검은 테두리가 비치지 않음 */
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border: 0;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.qa { margin: 0; }

.qa dt {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.qa dd {
    margin: 4px 0 22px;
    color: var(--ink-2);
    max-width: 36em;
}

.qa dd:last-child { margin-bottom: 0; }

.arrow-link {
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 1px;
}

/* ---------- 방침 본문 ---------- */
.doc {
    max-width: 720px;
}

.doc .meta {
    font-size: 14px;
    color: var(--ink-2);
    margin: 0 0 28px;
}

.doc .lead {
    font-size: 17px;
    color: var(--ink);
    margin: 0 0 8px;
}

.doc section {
    padding: 28px 0;
    border-top: 1px solid var(--rule);
}

.doc h2 {
    display: flex;
    gap: 14px;
    align-items: baseline;
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.doc h2 .n {
    font-size: 13px;
    font-weight: 800;
    color: var(--sky-top);
    min-width: 1.6em;
}

.doc p, .doc li { color: var(--ink-2); }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 6px 0 10px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

.facts {
    margin: 12px 0 14px;
    border-left: 3px solid var(--sky-low);
    padding: 2px 0 2px 16px;
}

.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 6px 0; }
.facts dt { font-weight: 700; color: var(--ink); font-size: 14px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 밤 (푸터) ---------- */
.night {
    position: relative;
    background: var(--night);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    overflow: hidden;
}

.night .inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 44px 24px 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: space-between;
    align-items: center;
}

.night a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.night a:hover { color: #fff; }
.night nav { display: flex; gap: 22px; }

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.55;
}

/* ---------- 작은 화면 ---------- */
@media (max-width: 640px) {
    .hero { padding: 52px 22px 120px; }
    .hero .tagline { font-size: 16px; }
    .ice { height: 84px; }
    main { padding: 8px 22px 72px; }
    .row { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
    .row h2 { font-size: 23px; }
    .facts div { grid-template-columns: 1fr; gap: 0; }
}
