/* Team Yogin — brand editorial (Codex handoff 2026-10-24) with the readability revision (Codex v2)
   merged with the user's notes of the same day:
   - nothing under 14px; body 16px, leads 18px, card/feature titles 22px, game titles 20px, sections 30px
   - fonts: 나눔스퀘어라운드 (rounded ends like the yogin wordmark; G마켓 산스 was too heavy) for display type,
     Noto Sans KR for everything else
   - detail features as wide rows (number · title | description), compact sections, one-line bottom CTA
   Breakpoints: 1100, 960, 680, 520, 360px. */


:root {
  color-scheme: light;
  --paper: #f4f4ee;
  --ink: #19201f;
  --muted: #515b55;
  --line: #cfd2ca;
  --accent: #3158f5;
  --logo-dot: #0f48fd;
  --soft: #e6e8df;
  --page-max: 1280px;
  --gutter: 28px;
  --body: "Noto Sans KR", sans-serif;
  --display: "NanumSquareRoundB", "Noto Sans KR", sans-serif;
  --display-heavy: "NanumSquareRoundEB", "NanumSquareRoundB", "Noto Sans KR", sans-serif;
  --note: 14px;
  --text: 16px;
  --lead: 18px;
  --title: 22px;
  --section: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; font-synthesis: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--text); text-align: left; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; font-weight: inherit; color: inherit; }
a, button { font: inherit; color: inherit; letter-spacing: inherit; }
a { text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; font-size: 15px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter) 24px; position: relative; isolation: isolate; overflow: clip; }
/* small uppercase labels (the prototype's mono captions), now readable */
.label { font-family: var(--body); font-size: var(--note); font-weight: 500; line-height: 1.5; letter-spacing: .3px; color: var(--muted); }

/* ── header and logo ── */
.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ink); }
.menu { display: flex; align-items: center; gap: 26px; font-size: var(--text); font-weight: 500; }
.menu a { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.logo-button { display: block; padding: 0; border: 0; background: transparent; width: 140px; flex-shrink: 0; margin-left: -10px; }
.logo-stage { display: block; position: relative; width: 100%; aspect-ratio: 2172 / 724; isolation: isolate; }
.logo-stage svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-stage .ym-letter, .logo-stage .ym-seed { fill: var(--ink); }
.logo-stage .ym-orb { fill: var(--logo-dot); }
.back-link { padding: 12px 0; font-size: var(--text); font-weight: 500; }

/* ── hero ── */
.hero { padding: 22px 0 28px; position: relative; }
.kicker { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kicker span:last-child { text-align: right; }
.hero h1 { display: flex; flex-direction: column; align-items: start; gap: 16px; font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 24px 0 26px; }
.hero-english { display: block; font-family: var(--display-heavy); font-size: clamp(18px, calc((100vw - 2 * var(--gutter)) * .082), 62px); white-space: nowrap; letter-spacing: -1.6px; }
.hero-english em { font-style: normal; color: var(--accent); }
.hero-korean { display: block; font-size: clamp(17px, calc((100vw - 2 * var(--gutter)) * .064), 38px); font-weight: 500; letter-spacing: -1px; line-height: 1.45; white-space: nowrap; color: var(--ink); }
.hero-korean .accent { color: var(--accent); }
.hero-bottom { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.hero-bottom p { font-size: var(--lead); line-height: 1.7; letter-spacing: -.3px; }
.manifesto { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: var(--text); line-height: 1.7; }
.round { width: 54px; height: 54px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; color: var(--ink); }
.round .icon { width: 22px; height: 22px; }

.sectionbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--ink); padding: 14px 0; }
.sectionbar h2 { font-family: var(--body); font-size: var(--note); font-weight: 600; letter-spacing: .5px; }

/* ── product cards ── */
.product-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.product { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-width: 0; color: var(--ink); }
.cover { --cover: #243fd7; --cover-ink: #fff; height: 290px; flex-shrink: 0; position: relative; padding: 16px; overflow: hidden; isolation: isolate; background: var(--cover); color: var(--cover-ink); display: flex; flex-direction: column; justify-content: space-between; transition: filter .18s; }
.product:hover .cover { filter: brightness(1.06); }
.theme-jib .cover { --cover: #243fd7; --cover-ink: #fff; }
.theme-ad .cover { --cover: #d4f17a; --cover-ink: #253326; }
.theme-guide .cover { --cover: #e2e4df; --cover-ink: #26332a; }
.cover-top { display: flex; justify-content: space-between; gap: 8px; position: relative; z-index: 2; font-size: var(--note); font-weight: 500; line-height: 1.3; letter-spacing: .3px; }
.cover-top .icon { width: 20px; height: 20px; }
.cover-title { position: absolute; top: 44px; left: 16px; z-index: 2; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 38px); line-height: 1.2; letter-spacing: -1px; white-space: nowrap; }
.cover-line { position: absolute; top: 94px; left: 16px; right: 12px; z-index: 2; font-size: var(--note); font-weight: 500; line-height: 1.5; letter-spacing: -.3px; }
.product-window { position: absolute; inset: 130px 16px -12px; z-index: 1; overflow: hidden; background: #fafbf8; border: 1px solid color-mix(in srgb, var(--cover-ink) 16%, transparent); border-radius: 5px 5px 0 0; box-shadow: 0 9px 15px rgba(23, 35, 29, .08); }
.product-window > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.theme-jib .product-window > img { object-position: center top; }
.theme-ad .product-window > img { transform: scale(1.45); object-position: 53% 43%; }
.theme-guide .product-window > img { object-position: center 47%; }
.score-inset { position: absolute; z-index: 3; left: 10px; top: 7px; width: 128px; height: 58px; overflow: hidden; border: 1px solid #e3e8f5; border-radius: 5px; box-shadow: 0 3px 12px rgba(36, 49, 76, .094); background: #fff; }
.score-inset img { position: absolute; width: 396px; height: auto; max-width: none; left: -6px; top: -87px; display: block; }
.product-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 0 0; }
.product-meta h3 { font-family: var(--display); font-size: var(--title); font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
.product-meta span { font-size: var(--note); line-height: 1.5; color: var(--muted); }
.product-caption { font-size: var(--lead); font-weight: 600; line-height: 1.55; letter-spacing: -.4px; margin: 8px 0 6px; word-break: keep-all; }
.product-description { font-size: var(--text); line-height: 1.7; color: var(--muted); word-break: keep-all; }

/* ── games ── */
.games { margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--ink); }
.games-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px 24px; margin-bottom: 20px; }
.games-intro .label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.games-intro .play-count { font-size: var(--note); }
.games-intro h2 { font-family: var(--display); font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: -.8px; color: var(--ink); }
.games-intro p { font-size: var(--text); line-height: 1.7; color: var(--muted); word-break: keep-all; }
.game-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.play-card { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-width: 0; color: var(--ink); }
.play-art { --game-bg: #d8e0b7; position: relative; isolation: isolate; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; background: var(--game-bg); }
.play-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; }
.art-camp { --game-bg: #d8e0b7; }
.art-peng { --game-bg: #e4d9ed; }
.art-oti { --game-bg: #bcdce8; }
.art-star { --game-bg: #3a355e; }
.art-pico { --game-bg: #f4cb7d; }
.art-pico img { object-position: center 44%; }
.play-meta { display: flex; align-items: start; justify-content: space-between; gap: 6px; padding-top: 12px; }
.play-meta strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.35; letter-spacing: -.5px; }
.play-genre { display: block; font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 6px; word-break: keep-all; }
.play-coming { display: block; font-size: var(--note); line-height: 1.5; color: var(--muted); margin-top: 4px; }
.play-meta .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--muted); }

/* ── home footer ── */
.colophon { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ink); margin-top: 28px; padding-top: 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.colophon a { text-align: right; }
.footer-logo { width: 320px; max-width: 80%; margin: 12px 0 0 -22px; }
.bottomline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; margin-top: 14px; font-size: var(--note); line-height: 1.6; color: var(--muted); }
.bottomline nav { display: flex; gap: 16px; flex-wrap: wrap; }
.bottomline a:hover, .colophon a:hover, .detail-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ── detail pages ── */
.detail-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; margin: 18px 0 20px; }
.status { font-size: var(--note); line-height: 1.5; border: 1px solid var(--line); border-radius: 30px; padding: 6px 13px; }
.detail-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 32px; align-items: center; padding-bottom: 28px; }
.eyebrow { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.detail h1 { font-family: var(--display); font-size: clamp(36px, 4.3vw, 52px); line-height: 1.22; font-weight: 700; letter-spacing: -1.4px; margin: 14px 0 18px; word-break: keep-all; }
.detail h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: var(--lead); line-height: 1.75; letter-spacing: -.4px; color: var(--muted); max-width: 480px; word-break: keep-all; }
.cta { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 52px; margin-top: 22px; padding: 14px 22px; background: var(--accent); color: #fff; font-size: var(--text); font-weight: 500; line-height: 1.4; transition: filter .18s; }
.cta:hover { filter: brightness(1.1); }
.cta .arrow { font-size: 22px; line-height: 1; }
.detail-visual { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 18px; background: #dde4dc; color: #26332a; }
.detail-visual .visual-label { color: inherit; }
.browser { flex-shrink: 0; width: 106%; margin-left: 1%; transform: rotate(-2deg); background: #f9faf8; border: 1px solid #bac7bd; box-shadow: 0 15px 30px rgba(35, 48, 42, .098); overflow: hidden; }
.browser-bar { height: 32px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #f2f5f1; color: #4f5c53; font-size: var(--note); white-space: nowrap; overflow: hidden; }
.browser-bar .dots { display: flex; gap: 5px; flex-shrink: 0; }
.browser-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #a9b5ac; }
.browser-bar .where { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.browser img { display: block; width: 100%; height: 280px; object-fit: cover; object-position: center; }
.svc-jibboard .browser img { object-position: left top; }
.svc-addi .browser img { transform: scale(1.18); }
.svc-ipsifinder .browser { width: 100%; margin-left: 0; }
.svc-ipsifinder .browser img { height: 400px; object-position: center 13%; }
.visual-foot { font-size: 15px; line-height: 1.55; }
.is-game .detail-visual { background: #e6e2d9; }
.is-game .browser { width: 100%; margin: 0; transform: none; border: 0; background: transparent; box-shadow: none; }
.is-game .browser-bar { display: none; }
.is-game .browser img { height: 400px; object-fit: contain; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -.6px; word-break: keep-all; }
.facts.rich strong { font-size: 28px; }
.facts strong span { font-size: var(--text); margin-left: 3px; }
.facts p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.feature-heading { display: flex; flex-direction: column; gap: 8px; padding: 30px 0 14px; }
.detail h2 { font-family: var(--display); font-size: var(--section); font-weight: 700; line-height: 1.4; letter-spacing: -.8px; word-break: keep-all; }
/* one wide row per feature: number · title | description */
.feature-list article { display: grid; grid-template-columns: 44px minmax(220px, .85fr) 1.6fr; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.feature-list .num { font-size: var(--note); font-weight: 600; color: var(--muted); }
.feature-list h3 { font-family: var(--display); font-size: var(--title); font-weight: 700; line-height: 1.4; letter-spacing: -.5px; word-break: keep-all; }
.feature-list p { font-size: 17px; line-height: 1.7; color: var(--muted); word-break: keep-all; }
.source { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; padding: 28px; margin: 24px 0 28px; background: #e7e9e2; }
.source h2 { margin-top: 8px; font-size: 28px; }
.source p { font-size: 17px; line-height: 1.75; letter-spacing: -.3px; word-break: keep-all; }
.source .note { margin-top: 12px; font-size: 15px; color: var(--muted); }
.bottom-cta { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; padding: 24px 0 28px; border-top: 1px solid var(--ink); }
.bottom-cta .label { grid-column: 1 / -1; }
.detail .bottom-cta h2, .detail .bottom-cta h1 { font-size: var(--section); line-height: 1.35; }
.bottom-cta .cta { margin: 0; }
.detail-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.detail-footer nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--muted); }

/* ── legal pages ── */
.legal { padding: 30px 0 40px; max-width: 820px; }
.legal h1 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.8px; line-height: 1.35; margin: 12px 0 22px; }
.legal h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.legal p, .legal li { font-size: var(--text); line-height: 1.85; color: #343b39; word-break: keep-all; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal b { font-weight: 700; color: var(--ink); }

/* ── 1100px: five game cards get narrow ── */
@media (max-width: 1100px) {
  .play-meta strong { font-size: 18px; }
  .play-genre { font-size: var(--note); }
  .feature-list article { grid-template-columns: 40px minmax(200px, .9fr) 1.5fr; }
}

/* ── 960px: apps 2 columns, games 3 ── */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product:first-child { grid-column: 1 / -1; }
  .game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .play-meta strong { font-size: 20px; }
  .play-genre { font-size: 15px; }
  .detail-hero { grid-template-columns: 1fr 1fr; gap: 22px; }
  .detail h1 { font-size: 40px; }
  .source { grid-template-columns: 1fr; gap: 14px; }
}

/* ── 680px: one column for text blocks, games 2 ── */
@media (max-width: 680px) {
  :root { --gutter: 20px; }
  .site-header { height: 70px; gap: 12px; }
  .menu { gap: 18px; }
  .logo-button { width: 118px; margin-left: -8px; }
  .kicker span:last-child { display: none; }
  .hero h1 { gap: 10px; margin: 20px 0 22px; }
  .hero-english { letter-spacing: -.8px; }
  .hero-korean { letter-spacing: -.6px; }
  .hero-bottom { grid-template-columns: 1fr; gap: 14px; }
  .hero-bottom p { font-size: 17px; }
  .round { width: 46px; height: 46px; }
  .sectionbar > .label { display: none; }
  .games-intro { grid-template-columns: 1fr; gap: 8px; }
  .games-intro h2 { font-size: 30px; }
  .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .play-meta strong { font-size: 18px; }
  .play-genre { font-size: var(--note); }
  .colophon { flex-direction: column; gap: 10px; }
  .colophon a { text-align: left; }
  .footer-logo { max-width: 100%; margin-left: -16px; }
  .detail-hero { grid-template-columns: 1fr; gap: 22px; padding-bottom: 22px; }
  .detail h1 { font-size: 38px; }
  .lead { max-width: none; font-size: 17px; }
  .detail-visual { padding: 16px; gap: 12px; }
  .browser img { height: 240px; }
  .svc-ipsifinder .browser img { height: 320px; }
  .is-game .browser img { height: 380px; }
  .facts { grid-template-columns: 1fr; gap: 12px; padding: 16px 0; }
  .facts > div { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .facts strong, .facts.rich strong { font-size: 20px; }
  .facts p { margin: 0; }
  .feature-heading { padding: 24px 0 10px; }
  .detail h2 { font-size: 26px; }
  .feature-list article { grid-template-columns: 30px 1fr; gap: 6px 12px; padding: 18px 0; }
  .feature-list article p { grid-column: 2; font-size: var(--text); }
  .feature-list h3 { font-size: 20px; }
  .source { padding: 20px; margin: 16px 0 20px; }
  .source h2 { font-size: 24px; }
  .source p { font-size: var(--text); }
  .bottom-cta { grid-template-columns: 1fr; }
  .bottom-cta .cta { justify-self: start; margin-top: 6px; }
  .detail .bottom-cta h2 { font-size: 26px; }
  .legal h1 { font-size: 28px; }
  .legal h3 { font-size: 18px; }
}

/* ── 520px: apps one column ── */
@media (max-width: 520px) {
  .menu .contact-link { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 26px; }
  .product:first-child { grid-column: auto; }
  .cover { height: 270px; }
  .cover-title { font-size: 34px; }
  .product-caption { font-size: 17px; }
  .play-meta { display: block; }
  .play-meta .icon { display: none; }
  .play-meta strong { font-size: 17px; }
  .browser { width: 104%; margin-left: 1%; }
}

/* ── 360px ── */
@media (max-width: 360px) {
  .menu { gap: 12px; }
  .play-meta strong { font-size: 16px; }
  .detail h1 { font-size: 34px; }
  .cover-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
