/* ggook's studio site. Generated pages share this file (see _src/build.py). */
:root {
  --navy: #2B3155;
  --navy-soft: #3B4270;
  --coral: #FF6B5B;
  --sky-top: #7FA6E6;
  --sky-mid: #C9C7F0;
  --sky-bottom: #FDE3EC;
  --card: rgba(255, 255, 255, 0.93);
  --muted: #6B7192;
  --line: rgba(43, 49, 85, 0.1);
  --radius: 22px;
  --shadow: 0 6px 20px rgba(43, 49, 85, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-bottom) 100%) fixed;
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}
html[lang="ko"] body { word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding-bottom: 48px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(127, 166, 230, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.25); }
.nav .lang { border: 1px solid rgba(255, 255, 255, 0.55); margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 10px; }
.menu-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 8px 16px 16px; background: rgba(110, 145, 214, 0.97); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .nav .lang { margin: 6px 0 0; text-align: center; }
}

/* Hero */
.hero { text-align: center; color: #fff; padding: 56px 0 16px; }
.hero .logo { width: 116px; height: 116px; border-radius: 50%; margin: 0 auto; box-shadow: 0 10px 30px rgba(43, 49, 85, 0.35); }
.hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; margin-top: 18px; text-shadow: 0 2px 10px rgba(43, 49, 85, 0.25); }
.hero .tagline { font-size: clamp(15px, 2.4vw, 18px); font-weight: 500; opacity: 0.95; }
.hero .lead { max-width: 520px; margin: 10px auto 0; font-size: 15px; opacity: 0.92; }
.social { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.social a:hover { background: rgba(255, 255, 255, 0.35); }
.social svg { width: 18px; height: 18px; fill: currentColor; }

/* Section headings */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 14px; }
.section-head h2 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.section-head p, .section-head a { font-size: 14px; color: #fff; opacity: 0.9; }
.page-title { color: #fff; font-size: clamp(26px, 4.5vw, 36px); font-weight: 700; padding-top: 44px; text-shadow: 0 2px 10px rgba(43, 49, 85, 0.2); }
.page-lead { color: #fff; opacity: 0.95; margin-top: 6px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.game-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; text-decoration: none; color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease; }
.game-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(43, 49, 85, 0.18); }
.game-card img { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; background: #E6E9F4; }
.game-card .title { font-size: 17px; font-weight: 700; line-height: 1.3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.game-card .desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 600; color: var(--navy-soft); background: #E9ECF8; padding: 2px 9px; border-radius: 999px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: #fff; background: var(--coral); padding: 2px 8px; border-radius: 999px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none;
  color: #fff; background: var(--navy); padding: 12px 20px; border-radius: 999px; }
.btn:hover { background: var(--navy-soft); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.light { background: rgba(255, 255, 255, 0.9); color: var(--navy); }

/* News */
.news-list { display: grid; gap: 12px; }
.news-item time { font-size: 13px; color: var(--muted); font-weight: 500; }
.news-item h3 { font-size: 17px; margin: 2px 0 6px; line-height: 1.35; }
.news-item p { color: var(--navy-soft); font-size: 15px; }
.news-item .more { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; }

/* Game page */
.game-hero { display: flex; gap: 22px; align-items: center; padding-top: 44px; color: #fff; }
.game-hero img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 10px 30px rgba(43, 49, 85, 0.3); flex-shrink: 0; background: #fff; }
.game-hero h1 { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.2; text-shadow: 0 2px 10px rgba(43, 49, 85, 0.2); }
.game-hero p { opacity: 0.95; margin: 6px 0 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.light:hover { background: #fff; }
/* "Scan to install" QR code: only for desktop visitors (mouse pointer, wide screen) */
.qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 761px) {
  .qr { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
    width: 156px; padding: 12px 12px 10px; background: #fff; border-radius: 18px; box-shadow: var(--shadow);
    color: var(--navy-soft); font-size: 12.5px; font-weight: 500; line-height: 1.35; text-align: center; }
  .qr svg { width: 132px; height: 132px; display: block; }
}
@media (max-width: 560px) {
  .game-hero { flex-direction: column; text-align: center; gap: 14px; }
  .hero-actions { justify-content: center; }
  .game-hero img { width: 104px; height: 104px; border-radius: 24px; }
}
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; -webkit-overflow-scrolling: touch; }
.shots img { height: 360px; width: auto; border-radius: 16px; scroll-snap-align: start; box-shadow: var(--shadow); background: #fff; }
@media (max-width: 560px) { .shots img { height: 300px; } }
.video { max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video.wide { max-width: 860px; aspect-ratio: 16 / 9; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.prose p + p { margin-top: 12px; }
.prose h2, .card h2 { font-size: 18px; margin-bottom: 10px; }
.features { list-style: none; display: grid; gap: 8px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.link-list { list-style: none; display: grid; gap: 6px; }
.link-list a { font-weight: 600; }

/* Privacy policy (text kept by hand in privacy.html) */
.policy { max-width: 820px; margin: 0 auto; padding: 28px; overflow-wrap: anywhere; }
.policy .updated { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.policy section + section { margin-top: 26px; }
.policy h2 { font-size: 18px; margin-bottom: 10px; padding-left: 12px; border-left: 4px solid var(--coral); }
.policy p { color: var(--navy-soft); margin-bottom: 10px; }
.policy ul { color: var(--navy-soft); padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--navy); font-weight: 500; }
.policy .contact-box { background: #F1F3FB; border-radius: 16px; padding: 18px; text-align: center; }
.policy .contact-box p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .policy { padding: 20px; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 14px 2px; }
.faq details:first-of-type { border-top: 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 8px; color: var(--navy-soft); }

/* Footer */
.site-footer { padding: 28px 0 36px; text-align: center; font-size: 13.5px; color: var(--muted); }
.site-footer nav { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: var(--navy); font-weight: 500; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Browser games (/play/): kept apart from game pages so those lead with the app */
.play-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.play-card img { width: 76px; height: 76px; border-radius: 18px; flex-shrink: 0; background: #E6E9F4; }
.play-card .title { font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.play-card .title:hover { text-decoration: underline; }
.play-card .desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.play-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.play-actions .btn { padding: 9px 16px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy-soft); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; fill: currentColor; }
.play-note { margin: 14px 4px 0; color: #fff; font-size: 14px; opacity: 0.95; }
.play-teaser { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 20px; }
.play-teaser p { display: flex; align-items: center; gap: 10px; color: var(--navy-soft); font-weight: 500; }
.play-teaser p svg { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.play-teaser .btn.light { background: #E9ECF8; padding: 9px 16px; font-size: 14px; }
.play-teaser .btn.light:hover { background: #DDE2F4; }
