
:root {
  color-scheme: dark;
  --page: #07111f;
  --surface: #111d2d;
  --surface2: #16253a;
  --ink: #f3f7fb;
  --muted: #b6c6d8;
  --line: rgba(180, 205, 230, 0.22);
  --blue: #75b7ff;
  --green: #6ee7b7;
  --amber: #f6c35d;
  --red: #ff746d;
  --teal: #70e0d0;
  --violet: #c6a7ff;
  --highlight: rgba(122, 184, 255, 0.15);
  --shadow: 0 18px 55px rgba(0,0,0,.32);
}
:root:not([data-theme="dark"]) {
  color-scheme: light;
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface2: #f7fbff;
  --ink: #112033;
  --muted: #536173;
  --line: rgba(18,32,51,.14);
  --shadow: 0 16px 40px rgba(35,49,77,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; background: radial-gradient(circle at top, rgba(117,183,255,.16), transparent 32rem), var(--page); color: var(--ink); line-height: 1.65; }
a { color: var(--blue); }
img { max-width: 100%; display:block; }
.post-container { width:min(1020px, calc(100% - 30px)); margin:0 auto; padding: 30px 0 70px; }
.top-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; position: sticky; top: 0; z-index: 30; padding: 12px 0; backdrop-filter: blur(16px); }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color: var(--ink); font-weight:900; letter-spacing:-.02em; }
.brand img { width: 185px; height:auto; }
.post-back { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color: var(--ink); border:1px solid var(--line); border-radius:999px; padding:10px 15px; background: rgba(255,255,255,.045); }
.post-header, .hero-figure, .article-card, .scene, .post-footer, .rulebook, .scorebar { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)), var(--surface); border:1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.post-header { padding:34px 34px 30px; overflow:hidden; position:relative; }
.post-header:before { content:""; position:absolute; inset:-120px -60px auto auto; width:320px; height:320px; background: radial-gradient(circle, rgba(246,195,93,.24), transparent 65%); pointer-events:none; }
.post-meta { display:flex; flex-wrap:wrap; gap:10px; color: var(--muted); font-size:14px; margin-bottom:16px; }
.post-meta span, .pill { border:1px solid var(--line); border-radius:999px; padding:5px 10px; background:rgba(255,255,255,.04); }
h1 { margin:0; font-size: clamp(32px, 6vw, 58px); line-height:1.08; letter-spacing:-.055em; }
.post-subtitle { margin:18px 0 0; color: var(--muted); font-size:18px; max-width:780px; }
.hero-figure { margin:24px 0; padding:18px; }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:20px; align-items:center; }
.hero-figure img { border-radius:18px; border:1px solid var(--line); }
.hero-copy { padding:12px 12px 12px 4px; }
.hero-copy h2 { font-size:32px; line-height:1.15; margin:0 0 12px; }
.hero-copy p { color:var(--muted); margin:0 0 16px; }
.cta-row { display:flex; flex-wrap:wrap; gap:10px; }
.btn, button.btn { appearance:none; border:0; cursor:pointer; border-radius:14px; padding:12px 15px; color:#07111f; background: linear-gradient(135deg, var(--amber), #fff0ad); font-weight:900; text-decoration:none; display:inline-flex; align-items:center; gap:8px; box-shadow:0 10px 22px rgba(246,195,93,.15); }
.btn.secondary { color: var(--ink); background: rgba(255,255,255,.07); border:1px solid var(--line); box-shadow:none; }
.article-card, .rulebook { padding:26px 30px; margin:24px 0; }
.article-card p { margin:0 0 14px; }
.key-point { background: rgba(117,183,255,.13); border-left: 4px solid var(--blue); padding:17px 19px; border-radius: 12px; margin: 20px 0; color: #dceaff; }
.quote { border-left: 4px solid var(--amber); background: rgba(246,195,93,.08); padding: 17px 19px; border-radius: 12px; margin: 20px 0; color: #f8e6bf; }
.quote.warning { border-left-color: var(--red); background: rgba(255,116,109,.08); color:#ffd8d5; }
.scorebar { position: sticky; top: 74px; z-index: 20; margin: 22px 0; padding: 14px; display:grid; grid-template-columns: repeat(5, 1fr); gap:10px; backdrop-filter: blur(18px); }
.score { background:rgba(255,255,255,.055); border:1px solid var(--line); border-radius:16px; padding:12px; text-align:center; }
.score strong { display:block; font-size:26px; line-height:1.1; }
.score span { color:var(--muted); font-size:13px; }
.progress-track { height:10px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; grid-column: 1 / -1; }
.progress-fill { height:100%; width:0%; background:linear-gradient(90deg, var(--blue), var(--green), var(--amber)); transition:.25s ease; }
.scene { margin:28px 0; overflow:hidden; }
.scene figure { margin:0; background:#050b12; }
.scene figure img { width:100%; height:auto; }
.scene figcaption { padding:12px 18px; color: var(--muted); font-size:14px; background:rgba(0,0,0,.24); }
.play-card { padding:22px; background: linear-gradient(180deg, rgba(117,183,255,.06), transparent), var(--surface); }
.play-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.play-head h2 { margin:0; font-size:28px; letter-spacing:-.035em; }
.scene-number { color: var(--amber); font-weight:900; }
.rule { color:var(--muted); margin:4px 0 12px; }
.mission { margin:0 0 12px; font-size:17px; }
.choice-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; margin-top:16px; }
.choice { text-align:left; color: var(--ink); background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); border:1px solid var(--line); border-radius:18px; padding:16px; cursor:pointer; transition:.2s ease; min-height:148px; display:flex; flex-direction:column; justify-content:space-between; }
.choice:hover { transform:translateY(-2px); border-color:rgba(117,183,255,.52); }
.choice:disabled { opacity:.58; cursor:not-allowed; transform:none; }
.choice-title { display:block; font-weight:900; color: var(--blue); font-size:18px; margin-bottom:6px; }
.choice-text { display:block; color:var(--muted); }
.choice-delta { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.delta { font-size:12px; border-radius:999px; padding:4px 8px; border:1px solid var(--line); background:rgba(255,255,255,.04); }
.result-box { margin-top:16px; padding:15px 16px; border-radius:16px; border:1px solid var(--line); background: rgba(0,0,0,.12); color:var(--muted); min-height:58px; }
.result-box strong { color: var(--green); }
.final-panel { padding:24px; border-radius:18px; border:1px solid rgba(246,195,93,.34); background:linear-gradient(135deg, rgba(246,195,93,.14), rgba(117,183,255,.09)); margin-top:18px; }
.final-panel h3 { margin:0 0 10px; font-size:28px; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; min-width:680px; }
th, td { border:1px solid var(--line); padding:12px; text-align:left; vertical-align:top; }
th { background: rgba(117,183,255,.11); }
.tags { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.tags a { text-decoration:none; padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.04); }
.post-footer { margin-top:24px; padding:22px 30px; color:var(--muted); }
.theme-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 50; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:999px; padding:10px 14px; cursor:pointer; box-shadow:var(--shadow); }
.ad-wrap { border:1px dashed var(--line); border-radius:18px; padding:16px; margin:20px 0; color:var(--muted); background:rgba(255,255,255,.03); }
@media (max-width: 760px) {
  .post-container { width:min(100% - 18px, 1020px); padding-top:14px; }
  .brand img { width:148px; }
  .post-header { padding:24px 20px; }
  .hero-grid, .choice-grid, .scorebar { grid-template-columns: 1fr; }
  .scorebar { position:static; }
  .play-card { padding:18px; }
  .play-head h2 { font-size:24px; }
  .top-nav { position:static; }
}
