:root { --bg: #14121f; --card: #1f1c30; --line: #2f2b47; --ink: #f4f2ff; --muted: #a9a4c7; --accent: #ff4d6d; --accent2: #ffd166; --ok: #4ade80; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; line-height: 1.6; font-size: 17px; }
a { color: var(--accent2); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
header.site { padding: 16px 0 4px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.logo { font-weight: 900; font-size: 22px; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.logo img { width: 30px; height: 30px; border-radius: 8px; vertical-align: -7px; margin-right: 8px; }
.hero { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 560; border-radius: 18px; margin: 8px 0 4px; object-fit: cover; }
header nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 12px; }
h1 { font-size: 26px; line-height: 1.3; margin: 12px 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 18px; margin: 0 0 10px; }
h2 small { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.lead { color: var(--muted); margin: 0 0 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 12px 0; }
.center { text-align: center; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 12px; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 26px; cursor: pointer; }
.stepper strong { font-size: 28px; min-width: 70px; text-align: center; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.names input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 10px; font-size: 16px; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 99px; padding: 8px 14px; font-size: 16px; cursor: pointer; }
.cat.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.cat.lock { opacity: .75; border-style: dashed; }
.seg { display: grid; gap: 8px; margin-bottom: 12px; }
.seg button { text-align: left; background: var(--bg); color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.seg button.on { border-color: var(--accent); }
.seg small { display: block; color: var(--muted); font-size: 13px; }
.row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.seg2 { display: flex; gap: 6px; }
.seg2 button { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
.seg2 button.on { background: var(--accent2); color: #1b1300; font-weight: 700; border-color: var(--accent2); }
.seg2 button:disabled { opacity: .35; }
.go { display: block; width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 14px; padding: 16px; font-size: 19px; font-weight: 800; cursor: pointer; margin-top: 12px; }
.ghost { display: block; width: 100%; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 13px; font-size: 16px; cursor: pointer; margin-top: 10px; }
.hint { color: var(--muted); font-size: 14px; text-align: center; }
.reveal { text-align: center; padding: 36px 18px; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.reveal.open { border-color: var(--accent2); }
.count { color: var(--muted); margin: 0; }
.tag { display: inline-block; background: var(--bg); border-radius: 99px; padding: 4px 12px; color: var(--muted); font-size: 14px; margin: 0 auto 6px; }
.big { font-size: 40px; font-weight: 900; margin: 8px 0; letter-spacing: -0.02em; word-break: keep-all; }
.big.liar { color: var(--accent); }
.order { text-align: left; display: inline-block; margin: 6px auto; }
.clock { font-size: 64px; font-weight: 900; font-variant-numeric: tabular-nums; margin: 8px 0; }
.clock.over { color: var(--accent); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pick button { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 17px; cursor: pointer; }
.pick button:active { background: var(--accent); }
.score { list-style: none; padding: 0; text-align: left; }
.score li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 2px; }
.share { color: var(--muted); font-size: 14px; }
.link { background: none; border: 0; color: var(--accent2); text-decoration: underline; font-size: 14px; cursor: pointer; padding: 0; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet { background: var(--card); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; padding: 22px 18px 28px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 80px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; transition: transform .25s; z-index: 20; }
.toast.on { transform: translate(-50%, 0); }
.words { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.words li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 15px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links a { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); }
.prose p, .prose li { color: #dcd8f2; }
footer.site { color: var(--muted); font-size: 13px; padding: 28px 0 36px; }
footer.site a { color: var(--muted); margin-right: 12px; }
