:root { color-scheme: dark; font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; background: #000; }
body { overflow: hidden; }
.launch-screen { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 19px; background: #fff; color: #233568; opacity: 1; transition: opacity .36s ease; }
.launch-screen img { width: 116px; height: 116px; border-radius: 26px; box-shadow: 0 9px 32px #283b6a1c; }
.launch-screen strong { font: 700 27px/1.2 system-ui, "Apple SD Gothic Neo", sans-serif; letter-spacing: -.055em; }
.launch-screen.finished { opacity: 0; pointer-events: none; }
.shell { position: relative; width: min(100%, 430px); height: 100vh; height: 100dvh; margin: 0 auto; overflow: hidden; background: #090c12; }
.feed { width: 100%; height: 100%; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; touch-action: pan-y; }
.feed::-webkit-scrollbar { display: none; }
.feed:focus { outline: none; }
.feed:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.card { position: relative; width: 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; isolation: isolate; background: #000; }
.card-image { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.card.image-error { display: grid; place-content: center; padding: 24px; white-space: pre-line; font-size: 18px; line-height: 1.5; }
.topbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 20px 0; display: flex; align-items: center; justify-content: center; color: white; text-shadow: 0 1px 10px #000b; pointer-events: none; transition: opacity .2s ease; }
.topbar-quiet .topbar { opacity: 0; }
.topbar-title { position: relative; font-family: system-ui, "Apple SD Gothic Neo", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.035em; line-height: 1.4; text-shadow: 0 1px 3px #0006; }
.topbar-title::after { content: ""; position: absolute; width: 18px; height: 2px; border-radius: 2px; background: #fff; left: 50%; bottom: -7px; transform: translateX(-50%); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 9px; border: 0; color: white; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.icon-button svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:focus-visible, .close-button:focus-visible, .menu-item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu-button { position: absolute; left: 15px; pointer-events: auto; }
.bottom-actions { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(19px, env(safe-area-inset-bottom)); height: 42px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.swipe-hint { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; font-size: 11px; font-weight: 400; line-height: 1.4; letter-spacing: -.02em; text-align: center; opacity: .45; transition: opacity .3s ease; }
.swipe-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: swipe-cue 1.8s ease-in-out 3; }
@keyframes swipe-cue { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
.swipe-hint.hidden { opacity: 0; }
.bookmark-button { position: absolute; right: 17px; pointer-events: auto; }
.bookmark-button[aria-pressed="true"] svg { fill: white; }
.music-control { position: absolute; z-index: 4; right: 15px; top: calc(9px + env(safe-area-inset-top)); }
.music-control .icon-button svg { width: 24px; height: 24px; }
.music-control.is-muted .icon-button { opacity: .45; }
.needs-tap::after { content: ""; position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: white; }
.volume-panel { position: absolute; top: 49px; right: 0; width: 190px; padding: 12px; display: flex; align-items: center; gap: 12px; border: 1px solid #ffffff25; border-radius: 14px; background: #171717f5; box-shadow: 0 6px 24px #0005; }
.volume-panel[hidden] { display: none; }
.volume-panel button { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border: 0; padding: 3px; background: transparent; color: white; cursor: pointer; }
.volume-panel button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.volume-panel button[aria-pressed="true"] { opacity: .4; }
.volume-panel input { width: 100%; min-width: 0; accent-color: white; cursor: pointer; }
.verse-menu { width: min(calc(100vw - 32px), 430px); max-height: min(75dvh, 720px); padding: 0; border: 1px solid #ffffff30; border-radius: 20px; background: #15191f; color: #fff; box-shadow: 0 22px 70px #000b; }
.verse-menu::backdrop { background: #000a; backdrop-filter: blur(4px); }
.menu-heading { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: #15191f; font-size: 18px; }
.close-button { width: 30px; height: 30px; border: 0; background: transparent; color: white; font-size: 27px; line-height: 1; cursor: pointer; }
.menu-list { overflow-y: auto; max-height: calc(min(75dvh, 720px) - 66px); padding: 0 10px 12px; }
.menu-item { display: block; width: 100%; padding: 13px 10px; border: 0; border-bottom: 1px solid #ffffff18; background: transparent; color: white; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.menu-item:hover { background: #ffffff12; }
.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; }
@media (min-width: 431px) { .shell { box-shadow: 0 0 0 1px #242933, 0 20px 70px rgba(0,0,0,.5); } }
@media (prefers-reduced-motion: reduce) { .topbar, .swipe-hint { transition: none; } .swipe-hint svg { animation: none; } }
