:root {
  --bg: #f4efe6;
  --bg-deep: #ece5d8;
  --card: #fffdf9;
  --text: #1c1a16;
  --muted: #736c60;
  --border: #e1d9ca;
  --border-strong: #c9bfae;
  --primary: #1f2d5c;
  --primary-dark: #15204a;
  --primary-soft: #e9edf7;
  --gold: #b8922e;
  --gold-soft: #f6edd6;
  --ok: #2a7a4b;
  --ok-soft: #e4f2e8;
  --bad: #b3261e;
  --bad-soft: #fbe8e5;
  --warn: #b5651d;
  --warn-soft: #fbeedd;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 6px 18px -10px rgba(40, 30, 10, .18);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.01em;
}
button { font-family: inherit; cursor: pointer; border: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; padding: 10px 16px; font-size: 15px; font-weight: 700;
  background: var(--bg-deep); color: var(--text); transition: filter .1s, transform .08s;
}
.btn:active { filter: brightness(.94); transform: scale(.985); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.bad { background: var(--bad); color: #fff; }
.btn.warn { background: var(--warn); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--border-strong); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
}
.badge.draft { background: var(--bg-deep); color: var(--muted); }
.badge.open { background: var(--ok-soft); color: var(--ok); }
.badge.closed { background: var(--warn-soft); color: var(--warn); }
.badge.revealed { background: var(--primary-soft); color: var(--primary); }
