/* 이름 만화 공통 모양. 흰 바탕, 진한 글씨, 파란 버튼 하나. 구역은 연한 회색으로만 나눈다 */
:root { --bg: #FFFFFF; --ink: #191F28; --sub: #4E5968; --mute: #6B7684; --soft: #F2F4F6; --line: #D1D6DB; --blue: #1B64DA; --blue-soft: #E8F3FF; --star: #F5A800; --kakao: #FEE500; --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--soft); color: var(--ink); font-family: var(--font); letter-spacing: -0.01em; line-height: 1.5; }
button, input { font-family: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.page { max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 20px; }
.bar .logo { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.bar a.plain { font-size: 15px; font-weight: 500; color: var(--sub); text-decoration: none; padding: 12px 0; }
.back { width: 44px; height: 44px; margin-left: -12px; display: flex; align-items: center; justify-content: center; }
.sec { padding: 0 20px; display: flex; flex-direction: column; gap: 12px; }
.band { height: 12px; background: var(--soft); margin: 32px 0; flex: none; }
h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.33; letter-spacing: -0.03em; }
h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.38; letter-spacing: -0.03em; }
h3 { margin: 0; font-size: 17px; font-weight: 700; }
p { margin: 0; font-size: 16px; color: var(--sub); }
.small { font-size: 14px; color: var(--mute); }
.box { background: var(--soft); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.pic { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.rows { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font-size: 16px; }
.kv > span:first-child { color: var(--sub); flex: none; }
.kv > span:last-child { font-weight: 600; text-align: right; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border: none; border-radius: 16px; background: var(--blue); color: #FFFFFF; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn.gray { background: var(--soft); color: #333D4B; }
.btn.kakao { background: var(--kakao); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small-btn { width: auto; height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15px; }
.foot { margin-top: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; bottom: 0; background: var(--bg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 18px; border: none; border-radius: 22px; background: var(--soft); color: #333D4B; font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.seg { display: flex; padding: 4px; background: var(--soft); border-radius: 14px; }
.seg button { flex: 1; height: 44px; border: none; border-radius: 10px; background: transparent; color: var(--sub); font-size: 15px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); font-weight: 600; }
.dots { display: flex; gap: 14px; }
.dot { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; }
.dot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--blue); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--blue); }
.field input { height: 48px; padding: 0; border: none; border-bottom: 2px solid var(--blue); border-radius: 0; background: transparent; font-size: 24px; font-weight: 600; color: var(--ink); width: 100%; }
.field input:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.item { display: flex; align-items: center; gap: 14px; min-height: 76px; text-decoration: none; color: var(--ink); }
.item img { width: 96px; height: 54px; object-fit: cover; border-radius: 10px; flex: none; }
.item .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item .t b { font-size: 17px; font-weight: 600; }
.item .t span { font-size: 14px; color: var(--mute); }
.item.wait img { opacity: .4; } .item.wait .t b { color: var(--mute); } .item.wait .t span { color: var(--blue); font-weight: 500; }
.starpill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--soft); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.star { width: 16px; height: 16px; fill: var(--star); flex: none; }
.stage { background: var(--soft); border-radius: 24px; display: flex; justify-content: center; overflow: hidden; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
.tile { padding: 0; border: none; background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; color: var(--ink); min-width: 0; }
.tile canvas { width: 100%; aspect-ratio: 1 / 1.15; border-radius: 16px; background: var(--soft); display: block; }
.tile[aria-pressed="true"] canvas { box-shadow: 0 0 0 3px var(--blue); }
.tile b { font-size: 15px; font-weight: 600; }
.tile span { font-size: 14px; color: var(--sub); display: flex; align-items: center; gap: 4px; }
.tile .on { color: var(--blue); font-weight: 600; }
.tile.locked canvas { opacity: .35; } .tile.locked b { color: var(--mute); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 14px; font-size: 15px; z-index: 20; max-width: calc(100% - 40px); }
.testnote { margin: 0 20px; padding: 12px 16px; border-radius: 14px; background: #FFF4D2; color: #5C4400; font-size: 14px; }
@media (min-width: 900px) { .page { margin: 24px auto; min-height: calc(100dvh - 48px); border-radius: 24px; overflow: hidden; } }
