:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #fff;
  --text: #202124;
  --muted: #6b6b73;
  --line: #e8e8ed;
  --soft: #f0f0f4;
  --accent: #0667de;
  --accent-hover: #0056bd;
  --accent-soft: #eaf2fd;
  --feature: #eaf2fb;
  --feature-ink: #183b63;
  --feature-muted: #516c8a;
  --overlay: rgb(18 24 35 / 36%);
  --shadow: 0 16px 38px rgb(25 49 81 / 14%);
  font-family: 'Pretendard', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #aaaab2 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
body.sheet-open { overflow: hidden; }
button, select, input { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { color: inherit; }
a { text-decoration: none; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button, a, select { min-height: 44px; }
button { border: 0; }
svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: none; }
html.kbd :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; background: var(--surface); padding: 12px 18px; z-index: 10; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.page-shell { max-width: 1112px; margin: 0 auto; padding: 0 40px; }
.page-header { padding-top: 28px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 27px; }
.wordmark { min-width: 44px; font-size: 29px; font-weight: 800; letter-spacing: -.04em; display: inline-flex; align-items: center; }
.wordmark-dot { color: var(--accent); }
.masthead > span { color: var(--muted); font-size: 12px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 44px; font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.collection-mark { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; background: var(--accent); color: #fff; border-radius: 50%; }
.collection-mark svg { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.intro { margin-top: 9px; color: var(--muted); font-size: 15px; letter-spacing: -.025em; }
.device-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 14px; }
.device-label svg { width: 15px; height: 15px; }
.filters { display: flex; gap: 5px; padding: 5px; margin: 23px 0 24px; background: var(--soft); border-radius: 12px; max-width: 460px; }
.filter { flex: 1; padding: 0 16px; border-radius: 8px; min-height: 44px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .18s, color .18s; }
.filter.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 5px rgb(0 0 0 / 7%); }
.feature { position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--feature); border-radius: 22px; min-height: 285px; padding: 33px 38px; }
.feature-copy { position: relative; z-index: 2; }
.feature h2 { font-size: 35px; line-height: 1.22; letter-spacing: -.035em; color: var(--feature-ink); font-weight: 750; }
.feature p { color: var(--feature-muted); margin-top: 13px; font-size: 14px; line-height: 1.65; letter-spacing: -.025em; }
.feature-link { display: inline-flex; gap: 7px; align-items: center; color: var(--accent); font-size: 13px; font-weight: 700; margin-top: 12px; }
.feature-link svg { width: 17px; height: 17px; }
.feature-art { position: absolute; inset: 0 0 0 48%; }
.orbit { position: absolute; width: 370px; height: 370px; border: 1px solid rgb(60 114 172 / 11%); border-radius: 50%; left: 12%; top: -38px; }
.orbit-two { width: 520px; height: 520px; left: -3%; top: -114px; }
.art-icon { position: absolute; width: 108px; height: 108px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.art-bible { width: 136px; height: 136px; top: 78px; left: 10%; transform: rotate(-10deg); border-radius: 30px; z-index: 2; }
.art-reading { top: 28px; left: 50%; transform: rotate(10deg); }
.art-wiki { top: 173px; left: 54%; transform: rotate(7deg); width: 88px; height: 88px; border-radius: 21px; }
.store-install { display: flex; align-items: center; gap: 13px; padding: 19px 2px; border-bottom: 1px solid var(--line); }
.store-install-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.store-install > span:nth-child(2) { flex: 1; }
.store-install strong { display: block; font-size: 13px; font-weight: 650; }
.store-install span span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.chevron { width: 17px; height: 17px; color: var(--muted); }
.catalog { outline: none; }
.app-section { padding-top: 31px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.section-title { display: flex; align-items: baseline; gap: 9px; }
.section-title h2 { font-size: 23px; line-height: 1.3; letter-spacing: -.03em; font-weight: 750; }
.section-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.section-description { color: var(--muted); font-size: 13px; margin-top: 3px; }
.section-controls { display: flex; align-items: center; gap: 5px; }
.scroll-button { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: transparent; }
.scroll-button svg { width: 19px; height: 19px; }
.app-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 34px) / 2); gap: 34px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 4px 4px 10px; margin: -4px; }
.app-column { scroll-snap-align: start; min-width: 0; }
.app-row { display: flex; align-items: center; min-width: 0; min-height: 89px; gap: 13px; position: relative; }
.app-row + .app-row::before { content: ''; position: absolute; top: 0; left: 74px; right: 0; height: 1px; background: var(--line); }
.app-entry { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; border-radius: 8px; }
.app-icon { width: 61px; height: 61px; flex-shrink: 0; object-fit: cover; border-radius: 14px; background: var(--soft); }
.letter-icon { display: grid; place-items: center; color: var(--letter-fg); background: var(--letter-bg); font-size: 26px; font-weight: 650; }
.app-info { min-width: 0; padding: 8px 0; }
.app-name { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-tagline { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.auth-label { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; margin-top: 4px; }
.auth-label svg { width: 10px; height: 10px; stroke-width: 1.9; }
.get-button { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 64px; min-height: 44px; color: var(--accent); font-size: 13px; font-weight: 750; isolation: isolate; }
.get-button::before { content: ''; position: absolute; inset: 6px 0; background: var(--soft); border-radius: 100px; z-index: -1; transition: background .18s; }
.page-footer { padding: 36px 0 32px; color: var(--muted); display: flex; gap: 16px; align-items: center; font-size: 12px; }
.footer-brand { font-size: 23px; letter-spacing: -.04em; font-weight: 800; color: var(--text); }
.page-footer > span:last-child { margin-left: auto; }
.loading-state, .error-state { padding: 65px 20px; text-align: center; color: var(--muted); }
.loading-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--accent); border-radius: 50%; }
.error-state p { margin: 8px 0 15px; }
.retry-button { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 10px 20px; font-weight: 600; }
dialog { position: fixed; inset: auto 0 0; width: min(100%, 650px); max-width: 100%; max-height: min(92dvh, 940px); padding: 0; margin: auto auto 0; border: 0; border-radius: 25px 25px 0 0; background: var(--surface); color: var(--text); overscroll-behavior: contain; box-shadow: 0 -10px 65px rgb(0 0 0 / 14%); }
dialog::backdrop { background: var(--overlay); }
dialog[open] { animation: sheet-in .32s cubic-bezier(.16, 1, .3, 1); }
.sheet { padding: 12px 34px max(32px, env(safe-area-inset-bottom)); }
.sheet-handle { width: 34px; height: 5px; border-radius: 4px; background: var(--line); margin: 0 auto; }
.sheet-toolbar { display: flex; align-items: center; justify-content: space-between; margin: 4px -8px 15px; color: var(--muted); font-size: 12px; }
.close-button { padding: 8px; min-width: 44px; color: var(--accent); background: transparent; font-size: 15px; font-weight: 650; }
.sheet-toolbar > span { padding-left: 8px; }
.detail-hero { display: flex; align-items: center; gap: 20px; }
.detail-icon { width: 100px; height: 100px; border-radius: 23px; font-size: 40px; }
.detail-heading { min-width: 0; }
.detail-heading h2 { font-size: 25px; font-weight: 750; line-height: 1.25; letter-spacing: -.03em; overflow-wrap: anywhere; }
.detail-heading p { color: var(--muted); font-size: 14px; margin-top: 6px; word-break: keep-all; overflow-wrap: anywhere; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 22px 0; margin: 0; border-bottom: 1px solid var(--line); }
.detail-meta > div { display: flex; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); }
.detail-meta svg { width: 14px; height: 14px; }
.detail-meta dt, .detail-meta dd { margin: 0; }
.detail-meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.host-meta { width: 100%; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 10px; margin-top: 22px; }
.action { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 12px; min-height: 48px; padding: 10px 18px; font-weight: 650; font-size: 14px; background: var(--soft); color: var(--accent); }
.action svg { width: 18px; height: 18px; }
.action.primary { background: var(--accent); color: #fff; flex: 1; }
.install-guide { padding-top: 30px; }
.guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.guide-heading h3 { font-size: 19px; letter-spacing: -.025em; font-weight: 750; }
.guide-heading > svg { color: var(--accent); }
.guide-intro { font-size: 12px; color: var(--muted); margin-top: 6px; }
.platform-control { display: flex; align-items: center; gap: 12px; margin: 17px 0 20px; padding: 2px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.platform-control label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.platform-control select { margin-left: auto; max-width: 70%; background: var(--surface); color: var(--text); border: 0; font-size: 12px; padding: 0 4px; cursor: pointer; }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; display: grid; gap: 17px; }
.guide-steps li { counter-increment: steps; position: relative; padding-left: 39px; font-size: 14px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; min-height: 27px; }
.guide-steps li::before { content: counter(steps); position: absolute; top: 0; left: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.guide-notes { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }
.guide-notes p + p { margin-top: 8px; }
.copy-fallback { display: grid; gap: 7px; color: var(--muted); font-size: 12px; margin-top: 15px; }
.copy-fallback input { width: 100%; background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-height: 44px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); padding: 12px 20px; border-radius: 100px; background: var(--text); color: var(--surface); font-size: 13px; text-align: center; width: max-content; max-width: calc(100% - 40px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@keyframes sheet-in { from { transform: translateY(60px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (hover: hover) {
  .get-button:hover::before { background: var(--accent-soft); }
  .app-entry:hover .app-name, .store-install:hover strong { color: var(--accent); }
  .scroll-button:hover, .filter:not(.active):hover { background: var(--accent-soft); color: var(--accent); }
  .action.primary:hover { background: var(--accent-hover); }
  .action:not(.primary):hover { background: var(--accent-soft); }
  .feature-link:hover { text-decoration: underline; }
}
@media (min-width: 1200px) { .app-rail { grid-auto-columns: calc((100% - 64px) / 3); gap: 32px; } }
@media (max-width: 650px) {
  .page-shell { padding: 0 24px; }
  .page-header { padding-top: 17px; }
  .masthead { margin-bottom: 22px; }
  .masthead > span { font-size: 12px; }
  h1 { font-size: 35px; }
  .collection-mark { width: 38px; height: 38px; }
  .collection-mark svg { width: 20px; height: 20px; }
  .intro { font-size: 13px; margin-top: 8px; }
  .device-label { margin-top: 12px; font-size: 12px; }
  .filters { max-width: none; margin: 21px 0 21px; gap: 2px; padding: 4px; }
  .filter { font-size: 13px; padding: 0 10px; }
  .feature { min-height: 246px; padding: 25px 23px; border-radius: 18px; align-items: flex-start; }
  .feature h2 { font-size: 28px; line-height: 1.25; }
  .feature p { font-size: 12px; line-height: 1.7; margin-top: 11px; }
  .feature-link { font-size: 12px; margin-top: 8px; }
  .feature-art { left: 56%; }
  .orbit-one { width: 240px; height: 240px; top: 24px; left: -5%; }
  .orbit-two { width: 340px; height: 340px; top: -28px; left: -44%; }
  .art-bible { width: 80px; height: 80px; border-radius: 18px; left: 20%; top: 91px; transform: rotate(-12deg); }
  .art-reading { width: 58px; height: 58px; border-radius: 13px; left: 56%; top: 22px; }
  .art-wiki { width: 53px; height: 53px; border-radius: 12px; left: 77%; top: 188px; }
  .store-install { padding: 18px 0; gap: 11px; }
  .store-install strong { font-size: 12px; }
  .store-install span span { font-size: 12px; }
  .store-install-icon { width: 36px; height: 36px; border-radius: 9px; }
  .store-install-icon svg { width: 20px; height: 20px; }
  .app-section { padding-top: 27px; padding-bottom: 20px; }
  .section-header { margin-bottom: 12px; }
  .section-title h2 { font-size: 22px; }
  .section-description { font-size: 12px; }
  .section-controls { gap: 0; margin-right: -11px; }
  .scroll-button { min-width: 44px; }
  .app-rail { grid-auto-columns: calc(100% - 12px); gap: 25px; margin-right: -24px; padding-right: 24px; scroll-padding-left: 4px; }
  .app-row { min-height: 86px; gap: 8px; }
  .app-entry { gap: 12px; }
  .app-icon { width: 57px; height: 57px; border-radius: 13px; }
  .app-name { font-size: 14px; }
  .app-tagline { font-size: 12px; }
  .app-row + .app-row::before { left: 69px; }
  .get-button { min-width: 58px; font-size: 12px; }
  .page-footer { flex-wrap: wrap; gap: 8px 13px; padding: 26px 0; font-size: 12px; }
  .page-footer > span:last-child { width: 100%; margin-left: 38px; margin-top: -7px; }
  .sheet { padding-left: 24px; padding-right: 24px; }
  .detail-icon { width: 86px; height: 86px; border-radius: 20px; }
  .detail-hero { gap: 16px; }
  .detail-heading h2 { font-size: 22px; }
  .detail-heading p { font-size: 12px; }
  .detail-actions { gap: 8px; }
  .action { padding: 10px 15px; font-size: 13px; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151517; --surface: #222225; --text: #f3f3f6; --muted: #a3a3ad; --line: #333337; --soft: #2b2b30; --accent: #69a8ff; --accent-hover: #8dbdff; --accent-soft: #25364d; --feature: #1b2b40; --feature-ink: #dfebfc; --feature-muted: #a2b6d0; --overlay: rgb(0 0 0 / 65%); --shadow: 0 16px 35px rgb(0 0 0 / 28%); }
  .action.primary { color: #12243e; }
  .letter-icon { background: var(--letter-dark-bg); color: var(--letter-dark-fg); }
  .orbit { border-color: rgb(140 180 230 / 10%); }
  .collection-mark { color: #14253c; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
