/* DearWords — 시안(2026-10-10 사용자가 대화로 준 5탭 시안): 따뜻한 흰 바탕 · 보라 포인트 · 세리프 제목 · 게임 커버가 큰 카드. 게임마다 자기 색(--g). 모바일 우선(최대 480px). */

:root {
  --bg: #fbf8f3; --bg2: #f1edf7; --card: #ffffff; --ink: #1f1b2d; --ink2: #4d4960; --muted: #8d899d; --line: #ebe6f0;
  --accent: #6b4ef6; --accent2: #5638e0; --accentSoft: #efeaff; --good: #1f8a5b; --bad: #c2414d;
  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Noto Serif KR', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --hand: 'Caveat Brush', 'Fraunces', cursive;
  --tabs: 64px; --g: #8a5a2b;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg2); color: var(--ink); font: 15px/1.55 var(--sans); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; box-shadow: 0 0 60px rgba(60, 45, 20, .08); }
.main { padding: 0 16px calc(var(--tabs) + 28px + env(safe-area-inset-bottom)); min-height: 100dvh; display: flex; flex-direction: column; gap: 14px; }
body.no-tabs .main { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
body.no-tabs .tabs { display: none; }

/* 하단 탭: Home · Discover · Create · Play · Me */
.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 30; height: calc(var(--tabs) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 500; }
.tabs a.on { color: var(--ink); font-weight: 700; }
.tabs a.on svg { stroke-width: 2.2; }
.tab-plus b { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(107, 78, 246, .38); }
.tab-plus b svg { width: 24px; height: 24px; stroke-width: 2.4; }
.tabs a.tab-plus.on { color: var(--accent); }

/* 머리 */
.top { padding: 22px 2px 2px; display: flex; flex-direction: column; gap: 4px; }
.top p { color: var(--ink2); }
.logo { font: 700 30px/1 var(--serif); letter-spacing: -.02em; }
.logo i { color: var(--accent); font-style: italic; font-weight: 500; }
.logo sup { font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 5px; vertical-align: top; }
.page { font: 700 30px/1.1 var(--serif); letter-spacing: -.02em; }
.guide-link { font-size: 13px; color: var(--accent2); font-weight: 600; margin-top: 2px; }
.bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 4px; min-height: 54px; margin: 0 -16px; padding: 0 8px; background: rgba(251, 248, 243, .94); backdrop-filter: blur(10px); }
.bar h1 { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-r { display: flex; align-items: center; gap: 2px; padding-right: 4px; }
.ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.ibtn:active { background: var(--bg2); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.sect { font: 700 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.sect-sub { color: var(--ink2); font-size: 14px; margin-top: -8px; }
.kicker { font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent2); }
.center { text-align: center; }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.5; }
.muted { color: var(--ink2); }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
.empty a, .link { color: var(--accent2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.center-link { display: block; margin: 0 auto; text-align: center; font-size: 13.5px; }
.err, .warn { color: var(--bad); font-size: 13.5px; }
.loading, .waiting { display: grid; place-items: center; min-height: 60dvh; gap: 14px; align-content: center; color: var(--ink2); text-align: center; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255, 255, 255, .45); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; text-align: center; transition: transform .1s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-cta { background: var(--ink); color: var(--bg); }
.btn-game { background: var(--g); color: #fff; }
.btn-ghost { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-coin { margin-top: 6px; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--ink2); background: var(--bg2); border-radius: 99px; padding: 3px 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink2); }
.pill svg { width: 15px; height: 15px; }
.pill.on { border-color: var(--ink); color: var(--ink); background: #fff; }
.pill.on svg { fill: currentColor; }
.pill-go { margin-left: auto; border-color: var(--ink); color: var(--ink); }
.seg { display: inline-flex; background: var(--bg2); border-radius: 99px; padding: 3px; gap: 2px; align-self: flex-start; max-width: 100%; }
.seg button { padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 45, 20, .15); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { flex: none; padding: 7px 13px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); background: var(--card); }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* 사용자 그림 */
.uav { display: inline-block; border-radius: 50%; padding: 2px; background: var(--ring, #f7838f); flex: none; }
.uav img { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; object-fit: cover; }
.ring0 { --ring: #f7838f; } .ring1 { --ring: #f6b26b; } .ring2 { --ring: #ffd966; } .ring3 { --ring: #93c47d; }
.ring4 { --ring: #76a5af; } .ring5 { --ring: #6fa8dc; } .ring6 { --ring: #8e7cc3; } .ring7 { --ring: #c27ba0; }
.by { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.by em { font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); }

/* 단어 카드 — 단어 + 그 단어의 놀이 */
.feed { display: flex; flex-direction: column; gap: 14px; }
.wcard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; }
.wcard.hero { border: 0; background: var(--ink); color: var(--bg); padding: 22px 20px 18px; }
.wcard.hero .kicker { color: #f3b6a6; }
.wcard.hero .by, .wcard.hero .pron { color: #c9c1b0; }
.wcard.hero .def { color: #f0e9da; }
.wcard.hero .word { font-size: 46px; }
.wcard.hero .gstrip { background: rgba(255, 255, 255, .08); border-color: transparent; }
.wcard.hero .gstrip small { color: #c9c1b0; }
.wcard.hero .topres { background: rgba(255, 255, 255, .08); border-color: transparent; }
.wcard.hero .topres small { color: #c9c1b0; }
.wc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.word { font: 700 36px/1.05 var(--serif); letter-spacing: -.025em; }
h1.word { font-size: 50px; }
h3.word { font-size: 28px; }
.pron { font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.pron i { font-family: var(--serif); }
.def { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.def.big { font-size: 18px; line-height: 1.6; }
.eg { font: italic 500 15px/1.6 var(--serif); color: var(--ink2); }
.gstrip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 10px 10px 12px; border-radius: 16px; background: color-mix(in srgb, var(--g) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--g) 22%, transparent); }
.g-emoji { font-size: 24px; line-height: 1; }
.g-text { min-width: 0; display: flex; flex-direction: column; }
.g-text b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-text small { font-size: 12px; color: var(--ink2); }
.topres { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line); }
.topres small { font-size: 12px; color: var(--muted); }
.topres b { font: 700 19px var(--serif); letter-spacing: .01em; }
.topres.win b, .res.win .res-verdict, .won { color: var(--good); }
.topres.lose b, .res.lose .res-verdict, .lost { color: var(--bad); }
.wcard.hero .topres.win b { color: #8fe0b8; } .wcard.hero .topres.lose b { color: #f2a3aa; }
.topres q, .res q { font: italic 500 15px/1.5 var(--serif); quotes: '“' '”'; }

/* Discover */
.today { background: var(--accentSoft); border-radius: 22px; padding: 20px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.today-text { font: 500 22px/1.4 var(--serif); letter-spacing: -.01em; }
.search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; color: var(--ink); min-width: 0; }
.misslist { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.miss { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.miss p { font-size: 16px; line-height: 1.5; }
.miss-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.today .btn { margin-left: auto; }
.found { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 4px; }
.found a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.found b { font: 700 18px var(--serif); }
.found span { font-size: 13.5px; color: var(--ink2); }
.world { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; }
.wworld { flex: none; width: 210px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.wworld b { font: 700 21px var(--serif); }
.wworld small { font-size: 12px; color: var(--muted); }
.wworld p { font-size: 13.5px; color: var(--ink2); line-height: 1.5; }

/* Create */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps b { font-size: 11.5px; font-weight: 600; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.steps b.on { color: var(--ink); border-color: var(--accent); }
textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--card); outline: none; resize: vertical; line-height: 1.55; }
textarea:focus, .sheet input:focus { border-color: var(--ink); }
textarea.big { font-size: 17px; min-height: 150px; }
.ideas { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ideas button { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); background: var(--card); color: var(--ink2); font-size: 14.5px; line-height: 1.5; }
.exp { font: italic 500 17px/1.5 var(--serif); color: var(--ink2); padding-left: 14px; border-left: 3px solid var(--accent); }
.cands, .engines { display: flex; flex-direction: column; gap: 10px; }
.cand { text-align: left; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.cand.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.roots { font-size: 12.5px; color: var(--muted); }
.picked { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.engine { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; }
.engine.on { border-color: var(--g); box-shadow: 0 0 0 2px var(--g); background: color-mix(in srgb, var(--g) 6%, var(--card)); }
.engine .g-emoji { font-size: 30px; }
.engine > div { display: flex; flex-direction: column; gap: 2px; }
.engine b em { font-style: normal; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--g); border-radius: 99px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }
.engine small { font-size: 13px; color: var(--ink2); }
.engine p { font-size: 13.5px; color: var(--ink); margin-top: 2px; }
.engine .castline { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Play */
.glist { display: flex; flex-direction: column; gap: 10px; }
.grow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--g); border-radius: 18px; padding: 14px 14px 14px 12px; cursor: pointer; }
.grow .g-emoji { font-size: 28px; }
.grow p { font-size: 13.5px; color: var(--ink2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.grow .when { font-size: 12px; color: var(--muted); white-space: nowrap; font-weight: 600; }
.srow small.won, .srow small.lost { font-weight: 700; }
.resume { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 14px 16px; }
.resume span { font-size: 26px; }
.resume div { display: flex; flex-direction: column; }
.resume small { color: #c9c1b0; font-size: 12.5px; }

/* 단어 페이지 */
.wpage { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding-top: 4px; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; width: 100%; margin-top: 4px; }
.meta dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
.meta dd { color: var(--ink2); }
.wfoot { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; }
.wfoot small { color: var(--muted); font-size: 12.5px; }
.wfoot .pill { margin-left: auto; }
.gpanel { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: color-mix(in srgb, var(--g) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--g) 25%, transparent); margin-top: 6px; }
.gp-head { display: flex; gap: 12px; align-items: center; }
.gp-head .g-emoji { font-size: 34px; }
.gp-head small { font-size: 12px; color: var(--ink2); font-weight: 600; }
.gp-head h2 { font: 700 23px/1.15 var(--serif); letter-spacing: -.01em; }
.premise { font-size: 15px; line-height: 1.6; color: var(--ink); }
.castrow { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink2); }
.gstats, .stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; text-align: center; }
.gstats div, .stats div { background: rgba(255, 255, 255, .6); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; }
.gstats b, .stats b { font: 700 21px var(--serif); }
.gstats span, .stats span { font-size: 11.5px; color: var(--ink2); line-height: 1.3; }
.stats div { background: var(--card); border: 1px solid var(--line); }
.reslist { display: flex; flex-direction: column; gap: 10px; }
.res { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.res-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.res-head small { color: var(--muted); margin-left: auto; }
.res-verdict { font: 700 20px var(--serif); margin-top: 4px; }
.res > small { font-size: 12.5px; color: var(--muted); }

/* 게임 세션 */
.gbar { background: var(--g); color: #fff; }
.gbar h1 { display: flex; flex-direction: column; font: 700 17px/1.2 var(--serif); }
.gbar h1 small { font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.gbar .ibtn:active { background: rgba(255, 255, 255, .15); }
.round { font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .18); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.stage { display: flex; flex-direction: column; gap: 14px; }
.caseline { font-size: 13px; color: var(--ink2); line-height: 1.5; padding-top: 4px; }
.caseline i { font-family: var(--serif); color: var(--muted); }
.stage > .premise { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stage h4 { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--g); }
.round-past, .round-now { display: flex; flex-direction: column; gap: 10px; }
.round-past { opacity: .72; }
.meter { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.meter-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.meter-top b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.meter-top span:last-child { text-align: right; color: var(--good); }
.meter-top span:first-child { color: var(--bad); }
.meter-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--bad) 30%, var(--bg2)); overflow: hidden; display: flex; justify-content: flex-end; }
.meter-bar i { display: block; height: 100%; background: var(--good); border-radius: 99px 0 0 99px; transition: width .8s ease; }
.meter-move { font-weight: 700; font-size: 13px; }
.meter-move.up, .delta.up { color: var(--good); } .meter-move.down, .delta.down { color: var(--bad); }
.meter-note { font-size: 11.5px; color: var(--muted); }
.line { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.line.in { animation: fadeUp .45s ease both; animation-delay: var(--d, 0s); }
.cav { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--g) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--g) 30%, transparent); }
.line.b .cav { background: var(--card); }
.line > div { background: var(--card); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 14px; }
.line small { font-size: 11.5px; color: var(--muted); }
.line p { font-size: 15.5px; line-height: 1.55; margin-top: 2px; }
.line.you { grid-template-columns: 1fr; padding-left: 44px; }
.line.you > div { background: var(--ink); color: var(--bg); border: 0; border-radius: 16px 4px 16px 16px; }
.line.you small { color: #c9c1b0; }
.line.you .delta { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 12.5px; }
.line.you .delta.up { color: #8fe0b8; } .line.you .delta.down { color: #f2a3aa; }
.exhibit { background: #fffbe9; border: 1px solid #ead9a0; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 2px 3px 0 rgba(60, 45, 20, .06); }
.exhibit small { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8a6d1a; }
.exhibit ul { display: flex; flex-direction: column; gap: 5px; font: 13.5px/1.5 ui-monospace, 'SF Mono', Menlo, monospace, var(--sans); }
.exhibit li { padding-left: 12px; border-left: 2px solid #ead9a0; }
.exhibit p { font-size: 13.5px; color: var(--ink2); }
.turn { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { text-align: left; background: var(--card); border: 1.5px solid color-mix(in srgb, var(--g) 35%, var(--line)); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transition: transform .1s; }
.choice:active { transform: scale(.985); background: color-mix(in srgb, var(--g) 8%, var(--card)); }
.choice b { font-size: 14.5px; color: var(--g); }
.choice span { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.own { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.own input { height: 44px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); padding: 0 16px; outline: 0; min-width: 0; }
.own input:focus { border-color: var(--g); }
.typing { display: flex; align-items: center; gap: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.1s infinite both; }
.typing i:nth-of-type(2) { animation-delay: .18s; } .typing i:nth-of-type(3) { animation-delay: .36s; }
.typing .cav { margin-right: 6px; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.verdict { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 22px 18px 18px; display: flex; flex-direction: column; gap: 12px; text-align: center; animation: fadeUp .5s ease both; }
.verdict > small { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stamp { font: 700 40px/1 var(--serif); letter-spacing: -.01em; }
.verdict.win .stamp { color: var(--good); } .verdict.lose .stamp { color: var(--bad); }
.verdict .meter { text-align: left; background: var(--bg); }
.verdict h4 { text-align: left; }
.ruling { text-align: left; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.ruling li { padding-left: 14px; position: relative; }
.ruling li::before { content: '·'; position: absolute; left: 3px; font-weight: 700; }
.closing { text-align: left; font: italic 500 15.5px/1.6 var(--serif); color: var(--ink2); }
.sharecard { background: var(--ink); color: var(--bg); border-radius: 22px; padding: 26px 20px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.sharecard small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #c9c1b0; font-weight: 600; }
.sharecard h3 { font: 700 34px/1 var(--serif); }
.sharecard q { font: italic 500 18px/1.45 var(--serif); quotes: '“' '”'; }
.publish { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; }
.publish input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.publish span { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.publish small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.done-note { text-align: center; font-size: 13px; color: var(--muted); }

/* Me */
.mehead { display: flex; align-items: center; gap: 14px; padding: 24px 2px 4px; }
.mehead h1 { font: 700 26px/1.1 var(--serif); }
.stats { grid-auto-flow: unset; grid-template-columns: repeat(4, 1fr); }
.hello { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.hello h2 { font: 700 24px var(--serif); }
.hello p { color: var(--ink2); }
.menu { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 10px; }
.menu > * { text-align: left; padding: 14px 16px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line); }
.menu > *:last-child { border-bottom: 0; }
.menu .danger { color: var(--bad); }

/* 안내 */
.guide { display: flex; flex-direction: column; gap: 14px; }
.lede { font: 500 19px/1.5 var(--serif); }
.gsteps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.gsteps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 14px 50px; color: var(--ink2); line-height: 1.55; }
.gsteps li::before { content: counter(s); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 14px var(--serif); }
.gsteps b { color: var(--ink); }
.guide a:not(.btn) { color: var(--accent2); font-weight: 600; }

/* 자매품 */
.foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.foot-link { align-self: center; font-size: 13.5px; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; }
.sisters-title { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sisters ul { display: flex; flex-direction: column; gap: 2px; }
.sisters a { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 12px; }
.sisters img { width: 44px; height: 44px; border-radius: 22%; flex: none; background: #fff; }
.sisters span { display: flex; flex-direction: column; min-width: 0; }
.sisters b { font-size: 14.5px; }
.sisters small { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* 토스트 · 시트 · 입장 화면 */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: rgba(29, 27, 24, .94); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal, .overlay { position: fixed; inset: 0; z-index: 90; background: rgba(29, 27, 24, .5); display: grid; place-items: end center; }
.sheet { width: 100%; max-width: 480px; background: var(--bg); border-radius: 26px 26px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); position: relative; max-height: 92dvh; overflow: auto; display: flex; flex-direction: column; gap: 12px; animation: fadeUp .25s ease both; }
.sheet h2 { font: 700 23px var(--serif); padding-right: 36px; }
.sheet-x { position: absolute; top: 14px; right: 16px; font-size: 26px; color: var(--muted); width: 36px; height: 36px; }
.sheet input[type=text], .sheet input[type=password] { width: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--card); outline: none; }
.sheet .menu { margin-top: 0; }
.gbtn { min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.keep { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink2); }
.keep input { accent-color: var(--ink); width: 17px; height: 17px; }
.pf-card { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.pf-card b { font: 700 24px var(--serif); }
.fb-stars { display: flex; gap: 6px; }
.fb-stars button { font-size: 30px; color: var(--line); }
.fb-stars button.on { color: #e5a823; }
.dw-gate { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.gate-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.gate-card .logo { font-size: 44px; }
.gate-card p { color: var(--ink2); }
.gate-card input { height: 50px; border-radius: 16px; border: 1.5px solid var(--line); padding: 0 16px; text-align: center; outline: none; background: var(--card); }

/* ── 앱 설치 팝업 (install.js, DearWorld 공통) ── */
.dwi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: flex; justify-content: center; padding: 0 12px calc(var(--tabs) + 12px + env(safe-area-inset-bottom)); pointer-events: none; animation: fadeUp .4s ease both; }
.dwi-card { pointer-events: auto; width: min(440px, 100%); background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 16px 14px; box-shadow: 0 18px 50px rgba(60, 45, 20, .25); display: flex; flex-direction: column; gap: 12px; }
.dwi-head { display: flex; gap: 12px; align-items: flex-start; }
.dwi-head img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.dwi-head b { display: block; font-weight: 700; font-size: 16px; }
.dwi-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.dwi-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.dwi-btn { padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.dwi-main { background: var(--ink); color: #fff; }
.dwi-ghost { border: 1px solid var(--line); color: var(--ink2); }
.dwi-more { font-size: 13.5px; color: var(--ink); }
.dwi-steps { margin: 0; padding-left: 20px; line-height: 1.9; list-style: decimal; }
.dwi-ico { display: inline-flex; vertical-align: -4px; padding: 2px 4px; border-radius: 6px; background: var(--bg); color: #2f7cf6; }
.dwi-guide { margin: 0 0 8px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── 시안 반영 (2026-10-10): 보라 포인트 · 밑줄 탭 · 커버 카드 ── */
.logo { font: 400 34px/1 var(--hand); letter-spacing: 0; }
.logo i { color: var(--accent); font-style: normal; font-weight: 400; }
.gate-card .logo { font-size: 50px; }
.home-top { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 18px; }
.guide-link { color: var(--accent2); margin: 0; }
.tabs a.on, .tabs a.tab-plus.on { color: var(--accent); }
.tabs a.on svg { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.tab-plus b { background: var(--accent); }
.tab-plus b svg, .tabs a.tab-plus.on b svg { fill: none; }
.btn { border-radius: 99px; }
.btn-cta, .btn-game, .dwi-main { background: var(--accent); color: #fff; }
.btn-cta:active, .btn-game:active { background: var(--accent2); }
.kicker, .empty a, .link, .guide a:not(.btn) { color: var(--accent2); }
.chip { background: var(--accentSoft); color: var(--accent2); }
.pill.on { border-color: var(--accent); color: var(--accent2); background: var(--accentSoft); }
.pill-go { border-color: var(--accent); color: var(--accent2); }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.by em { color: var(--accent2); }
textarea:focus, .sheet input:focus, .own input:focus { border-color: var(--accent); }
.spinner { border-top-color: var(--accent); }
.h { font: 700 19px/1.2 var(--serif); letter-spacing: -.01em; }
.see { font-size: 13px; font-weight: 600; color: var(--accent2); }
.badge { display: inline-block; font: 600 11px var(--sans); padding: 3px 9px; border-radius: 8px; background: var(--accentSoft); color: var(--accent2); vertical-align: 2px; white-space: nowrap; }

/* 밑줄 탭 */
.seg { display: flex; align-self: stretch; background: none; border-radius: 0; padding: 0; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.seg button { padding: 10px 2px 11px; border-radius: 0; font-size: 14.5px; color: var(--muted); border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.seg button.on { background: none; box-shadow: none; color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

/* 게임 커버 (그림 자리) */
.cover { flex: none; width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(120% 100% at 70% 15%, var(--g), color-mix(in srgb, var(--g) 45%, #120d1c) 60%, #17111f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cover i { font-style: normal; font-size: 36px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.cover.sm { width: 44px; height: 44px; border-radius: 11px; } .cover.sm i { font-size: 22px; }

/* 큰 카드 */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 16px 16px 14px; color: #fff; display: flex; flex-direction: column; gap: 6px; cursor: pointer;
  background: radial-gradient(130% 80% at 50% 62%, color-mix(in srgb, var(--g) 80%, #000), color-mix(in srgb, var(--g) 35%, #120d1c) 55%, #15101d 100%); box-shadow: 0 14px 30px rgba(31, 27, 45, .18); }
.hero-top { display: flex; align-items: center; justify-content: space-between; }
.hk { font: 700 10.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #ffd7c9; }
.hero .badge { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(6px); }
.hero h2 { font: 700 25px/1.15 var(--serif); letter-spacing: -.01em; }
.hero-def { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-art { display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 22px 0 18px; }
.hero-art i { font-style: normal; font-size: 62px; line-height: 1; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)); }
.hero-art .mid { font-size: 44px; opacity: .95; transform: translateY(6px); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-foot small { font-size: 13px; color: rgba(255, 255, 255, .9); font-weight: 600; }

/* 하이라이트 줄 */
.hls { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.hl { flex: none; width: 150px; display: flex; flex-direction: column; gap: 3px; }
.hl .cover { width: 150px; height: 104px; margin-bottom: 4px; } .hl .cover i { font-size: 46px; }
.hl b { font: 700 17px var(--serif); }
.hl .v { font-weight: 700; font-size: 11.5px; letter-spacing: .03em; }
.hl.win .v { color: var(--good); } .hl.lose .v { color: var(--bad); }
.hl q { font-size: 12.5px; line-height: 1.4; color: var(--ink2); quotes: '“' '”'; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hl small { font-size: 11.5px; color: var(--muted); }

/* 카드 · 목록 */
.wcard { border-radius: 20px; box-shadow: 0 2px 10px rgba(31, 27, 45, .04); }
.gstrip { background: var(--bg); border-color: var(--line); border-radius: 14px; padding: 8px 10px 8px 8px; }
.grow { border-left: 1px solid var(--line); padding: 10px 12px 10px 10px; border-radius: 16px; }
.grow .g-text b { white-space: normal; font: 700 16px/1.25 var(--serif); }
.grow .gw { color: var(--ink2); font-weight: 600; }
.tag { display: inline-block; font-weight: 700; font-size: 11.5px; padding: 3px 8px; border-radius: 7px; background: var(--accentSoft); color: var(--accent2); margin-right: 4px; }
.tag.won { background: #dff5e9; color: var(--good); } .tag.lost { background: #fde5e7; color: var(--bad); }
.resume { background: var(--accentSoft); color: var(--ink); } .resume small { color: var(--ink2); } .resume svg { color: var(--accent); }
.today { background: linear-gradient(150deg, #2a2140, #17111f); color: #fff; }
.today .kicker { color: #c9bcff; } .today .pill { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.gpanel { background: var(--card); border-color: var(--line); box-shadow: 0 2px 10px rgba(31, 27, 45, .04); }
.gstats div { background: var(--bg); }
.gp-head .cover { width: 60px; height: 60px; } .gp-head .cover i { font-size: 30px; }

/* Create */
.steps { grid-template-columns: 1fr; }
.steps b, .steps b.on { display: flex; align-items: center; gap: 10px; border: 0; padding: 0; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.steps b i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--accent); color: #fff; }
.exp { border-left-color: var(--accent); }
.cand.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: #faf8ff; }
.engine { align-items: center; } .engine .cover { width: 56px; height: 56px; } .engine .cover i { font-size: 28px; }
.engine.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: #faf8ff; }
.engine b em { background: var(--accent); }

/* Me */
.mehead h1 { font: 700 22px/1.2 var(--sans); } .mehead p { font-size: 13px; color: var(--muted); }
.stats b { font-family: var(--sans); }

/* 게임 화면 */
.gbar { background: #17111f; }
.sharecard { background: radial-gradient(130% 90% at 50% 0%, color-mix(in srgb, var(--g) 55%, #17111f), #17111f 70%); }
.line.you > div { background: var(--accent); } .line.you small { color: rgba(255, 255, 255, .8); }
.publish input, .keep input { accent-color: var(--accent); }

/* 규칙 설명 (How to play) */
.how { background: var(--accentSoft); border-radius: 16px; padding: 12px 14px; }
.how summary { font-weight: 700; font-size: 13.5px; color: var(--accent2); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.how summary::-webkit-details-marker { display: none; }
.how summary::after { content: '+'; font-weight: 700; } .how[open] summary::after { content: '–'; }
.how ol { counter-reset: h; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.how li { counter-increment: h; position: relative; padding-left: 26px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.how li::before { content: counter(h); position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.gp-sub { font: 700 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: -6px; }

/* Words 탭 · Home 의 Missing words 안내 */
.count { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: -6px; }
.letter { font: 700 22px var(--serif); color: var(--accent2); padding: 6px 2px 0; border-bottom: 1px solid var(--line); }
.lead { color: var(--ink2); }
.teaser { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--accentSoft); }
.teaser b { font: 700 18px var(--serif); } .teaser small { color: var(--accent2); font-weight: 600; font-size: 13px; }
