@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
:root {
  --ink: #15191e;
  --mute: #5d6670;
  --line: #e3e6e9;
  --bg: #f3f5f4;
  --card: #fff;
  --pitch: #1f6b45;
  --pitch-dk: #134a2f;
  --gold: #b98a12;
  --gold-bg: #fbf3dc;
  --ok: #1e7a46;
  --ok-bg: #e4f3ea;
  --mid: #8a6a00;
  --mid-bg: #fbf1cf;
  --hard: #b4322a;
  --hard-bg: #fbe5e3;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--pitch); }
img { max-width: 100%; height: auto; }
.pix { image-rendering: pixelated; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
header.top { background: var(--pitch-dk); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 26px; height: 30px; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main a { color: #d8e8de; text-decoration: none; font-size: 14.5px; padding: 6px 10px; border-radius: 6px; }
nav.main a:hover, nav.main a[aria-current] { background: #ffffff1f; color: #fff; }
main { padding: 28px 0 56px; }
h1 { font-size: 30px; line-height: 1.3; margin: 0 0 10px; letter-spacing: -0.02em; }
h2 { font-size: 23px; line-height: 1.35; margin: 44px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 19px; margin: 30px 0 10px; }
h4 { font-size: 16.5px; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
.mute { color: var(--mute); }
small { font-size: 13px; }
.lead { font-size: 17px; color: #39424b; max-width: 680px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; }
.hero-art { display: flex; gap: 6px; justify-content: flex-end; align-items: flex-end; }
.hero-art img { width: 64px; }
.hero-art img.big { width: 96px; }
.updated { font-size: 13.5px; color: var(--mute); margin-top: 10px; }
.hero-cta { margin-top: 14px; }
.hero-cta .btn { text-decoration: none; }
.h-note { font-size: 14px; font-weight: 500; margin-left: 6px; }
.small-p { font-size: 14px; }
details.paste { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
details.paste summary { cursor: pointer; color: var(--mute); font-size: 14.5px; }
details.paste p { margin-top: 8px; }
.msg:empty { display: none; }
.msg { margin: 10px 0 0; }

/* tool */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 18px; }
.tool h2 { margin-top: 0; font-size: 20px; }
.tabs { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 14.5px; border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--pitch); border-color: var(--pitch); color: #fff; }
ol.steps { margin: 0 0 14px; padding-left: 22px; }
ol.steps li { margin-bottom: 8px; }
.bm { display: inline-block; background: var(--gold-bg); border: 1px dashed var(--gold); color: #6d5208; font-weight: 700; padding: 6px 14px; border-radius: 8px; text-decoration: none; cursor: grab; }
.tool[data-dev="pc"] pre.code { display: none; }
pre.code { background: #f1f3f2; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12.5px; line-height: 1.45; max-height: 92px; overflow: auto; white-space: pre-wrap; word-break: break-all; margin: 6px 0 8px; }
.btn, .ghost { font: inherit; font-weight: 700; border-radius: 8px; padding: 10px 18px; cursor: pointer; border: 1px solid transparent; transition: transform .08s, background .15s; }
.btn { background: var(--pitch); color: #fff; }
.btn:hover { background: var(--pitch-dk); }
.ghost { background: #fff; color: var(--pitch); border-color: #b9d3c3; }
.ghost:hover { background: #eef6f1; }
.btn:active, .ghost:active, .plan:active { transform: translateY(1px); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
textarea { width: 100%; min-height: 70px; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; border: 1px solid #cfd5d9; border-radius: 8px; padding: 9px; resize: vertical; }
textarea:focus, input:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--pitch); outline-offset: 2px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 14px; margin: 16px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.err { color: var(--hard); }
.passline { color: var(--ok); font-weight: 700; }
.loading { padding: 18px 0; }

/* result */
[data-result] { scroll-margin-top: 16px; margin-top: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.player { display: flex; gap: 18px; align-items: center; }
.player img { width: 72px; height: auto; background: #eef1ef; border-radius: 10px; padding: 6px; }
.player h3 { margin: 0 0 4px; font-size: 22px; }
.pos { font-size: 13px; background: #e6f0ea; color: var(--pitch-dk); padding: 2px 8px; border-radius: 6px; vertical-align: middle; font-weight: 700; }
.ovr b { font-size: 22px; }
table { border-collapse: collapse; width: 100%; }
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; border-collapse: separate; border-spacing: 0; }
.sheet caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
.sheet th, .sheet td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.sheet tr:first-child th, .sheet tr:first-child td { border-top: 0; }
.sheet th { width: 120px; color: var(--mute); font-weight: 600; white-space: nowrap; }
td.locked { color: #7b6a3a; font-size: 14px; white-space: nowrap; width: 1%; }
.lock { width: 13px; height: 13px; fill: currentColor; vertical-align: -1px; }
.season h4 { margin-top: 0; }
.num { font-size: 18px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.mid { background: var(--mid-bg); color: var(--mid); }
.tag.hard { background: var(--hard-bg); color: var(--hard); }
.wall { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; background: #fff; border: 2px solid var(--gold); border-radius: 12px; padding: 20px; margin-bottom: 14px; }
.wall h3 { margin-top: 0; }
.wall ul { padding-left: 20px; margin: 0 0 12px; }
.wall li { margin-bottom: 6px; }
.buy { display: flex; flex-direction: column; gap: 8px; }
.plan { font: inherit; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; background: #fff; border: 1px solid #cfd5d9; border-radius: 10px; padding: 12px 14px; cursor: pointer; color: var(--ink); }
.plan:hover { border-color: var(--pitch); }
.plan.best { border: 2px solid var(--pitch); background: #f2f8f4; }
.plan .pl { font-weight: 700; }
.plan .pp { font-weight: 800; font-size: 19px; grid-row: span 2; align-self: center; }
.plan .pn { font-size: 13px; color: var(--mute); }
details[data-restore] { font-size: 14px; margin-top: 6px; }
details[data-restore] input { font: inherit; padding: 7px 9px; border: 1px solid #cfd5d9; border-radius: 6px; width: 100%; margin: 6px 0; }
details[data-restore] button { font: inherit; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--pitch); background: #fff; color: var(--pitch); cursor: pointer; }
.paid { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 18px; }
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.big3 > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; }
.big3 b { font-size: 30px; line-height: 1.2; }
.verdict { padding: 10px 14px; border-radius: 8px; }
.verdict.ok { background: var(--ok-bg); }
.verdict.hard { background: var(--hard-bg); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.grid { font-size: 14.5px; margin: 6px 0 12px; }
.grid th, .grid td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.grid thead th { background: #f4f6f5; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.grid td img { vertical-align: middle; margin-right: 4px; }
.cal tr.top td { background: var(--gold-bg); }
.cal tr.dim td { color: #9aa2a9; }
.cal tr.dim .tag { opacity: .6; }
.proj td { text-align: right; font-variant-numeric: tabular-nums; }
.proj td:first-child { text-align: left; }
.proj td.surge { font-weight: 800; color: var(--pitch-dk); }
.proj tr.cliff td { box-shadow: inset 0 -2px 0 var(--hard); }
.cliffmark { box-shadow: inset 0 -2px 0 var(--hard); }
.bars { display: grid; gap: 4px; max-width: 520px; }
.bar { display: grid; grid-template-columns: 32px 1fr 44px; align-items: center; gap: 8px; font-size: 13.5px; }
.bar i { display: block; height: 10px; background: var(--pitch); border-radius: 3px; }
.bar b { text-align: right; font-weight: 600; }
ul.small { font-size: 14.5px; padding-left: 20px; }
.share { margin: -2px 0 16px; }

/* content */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.guides a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.guides a:hover { border-color: var(--pitch); }
.guides img { width: 40px; height: 40px; flex: none; }
.guides b { display: block; }
.guides span { font-size: 13.5px; color: var(--mute); }
article { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; }
article > *:first-child { margin-top: 0; }
article table.grid { font-size: 15px; }
.cta { display: flex; gap: 16px; align-items: center; background: #eef6f1; border: 1px solid #c8dfd1; border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.cta p { margin: 0; }
.cta img { width: 40px; flex: none; }
figure { margin: 16px 0; }
figure img { border: 1px solid var(--line); border-radius: 10px; }
figcaption { font-size: 13.5px; color: var(--mute); margin-top: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.items div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; font-size: 14px; background: #fff; }
.items img { width: 64px; height: 64px; display: block; margin: 0 auto 4px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13.5px; color: var(--mute); }
footer a { color: var(--mute); }
@media (max-width: 760px) {
  h1 { font-size: 25px; }
  .hero, .wall, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .split figure img { max-width: 180px; }
  .tool { padding: 16px; }
  .big3 { grid-template-columns: minmax(0, 1fr); }
  .sheet tr { display: block; border-top: 1px solid var(--line); padding: 10px 14px; }
  .sheet tr:first-child { border-top: 0; }
  .sheet th, .sheet td { display: block; border: 0; padding: 0; width: auto; white-space: normal; }
  .sheet td:empty { display: none; }
  .sheet td.locked { margin-top: 4px; font-size: 13.5px; }
  article { padding: 18px 16px; }
  nav.main { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; scrollbar-width: none; }
  nav.main::-webkit-scrollbar { display: none; }
  nav.main a { white-space: nowrap; }
}
.scroll table { overflow-wrap: normal; word-break: keep-all; }
.cal td, .cal th, .proj td, .proj th, .nw td { white-space: nowrap; }
.cal td:nth-child(5) { white-space: normal; min-width: 170px; }
.grid { overflow-wrap: normal; }
.grid td:first-child { min-width: 4.5em; }
header.top a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
textarea, details[data-restore] input { border-color: #8b959c !important; }
h1, h2, h3 { text-wrap: balance; }
@media (max-width: 760px) { :not(.scroll) > .grid thead th { white-space: normal; } }
.tease { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 14px; }
.tease div { background: var(--gold-bg); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; }
.tease span { font-size: 13px; color: #6d5208; }
.tease b { font-size: 15px; color: #4a3806; }
.rec { font-style: normal; font-size: 12px; font-weight: 700; background: var(--pitch); color: #fff; border-radius: 4px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
@media (max-width: 760px) {
  .cta { flex-direction: column; align-items: stretch; text-align: left; }
  .cta img { display: none; }
  .cta .btn { text-align: center; }
  .tease { grid-template-columns: minmax(0, 1fr); }
}
