@charset "utf-8";
:root {
  --hm-bg: #0f1412;
  --hm-card: #1a2320;
  --hm-line: #2c3d36;
  --hm-text: #e8f0ec;
  --hm-muted: #9bb0a6;
  --hm-accent: #3dd68c;
  --hm-warn: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--hm-bg); color: var(--hm-text); font-family: "Pretendard", "Noto Sans KR", sans-serif; }
a { color: var(--hm-accent); text-decoration: none; }
.hm-header { border-bottom: 1px solid var(--hm-line); background: #121a17; }
.hm-header-inner, .hm-wrap, .hm-hero, .hm-home-grid, .hm-footer { max-width: 1080px; margin: 0 auto; padding: 16px 20px; }
.hm-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-logo { font-weight: 800; font-size: 22px; color: #fff; letter-spacing: -0.04em; }
.hm-nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.hm-nav a { color: var(--hm-text); }
.hm-nav-cta { color: var(--hm-accent) !important; font-weight: 700; }
.hm-main { min-height: 70vh; }
.hm-hero h1 { font-size: 42px; margin: 8px 0; }
.hm-kicker { color: var(--hm-accent); font-weight: 700; }
.hm-lead, .hm-muted { color: var(--hm-muted); }
.hm-card { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 16px; padding: 20px; margin: 16px 0; }
.hm-home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-btn { display: inline-block; background: var(--hm-accent); color: #062016; font-weight: 700; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.hm-btn-ghost { background: transparent; color: var(--hm-text); border: 1px solid var(--hm-line); }
.hm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm-qr { width: 220px; height: 220px; background: #fff; padding: 10px; border-radius: 8px; }
.hm-code-text { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 0.08em; }
.hm-barcode { width: 100%; height: 90px; background: #fff; }
.hm-form label { display: block; margin: 12px 0; }
.hm-form input, .hm-form select { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--hm-line); background: #0f1412; color: #fff; }
.hm-alert { padding: 12px 16px; border-radius: 10px; background: #3a1c1c; color: #ffd4d4; }
.hm-alert.is-ok { background: #163528; color: #b6f5d2; }
.hm-scanner-preview { width: 100%; max-width: 420px; min-height: 220px; background: #000; border-radius: 12px; overflow: hidden; }
.hm-scanner-preview video { width: 100%; }
.hm-game { background: var(--hm-card); border-radius: 16px; padding: 16px; }
.hm-table { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.hm-card-face { width: 56px; height: 80px; border-radius: 8px; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.hm-card-face.is-red { color: #c0392b; }
.hm-rank { padding: 0; list-style: none; }
.hm-rank li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hm-line); }
.hm-rank em { margin-left: auto; color: var(--hm-accent); }
.hm-pub-filter { margin: 12px 0 16px; }
.hm-tags a { display: inline-block; margin: 4px 6px 0 0; padding: 6px 10px; border: 1px solid var(--hm-line); border-radius: 999px; color: var(--hm-text); font-size: 13px; }
.hm-tags a.is-on { border-color: var(--hm-accent); color: var(--hm-accent); }
.hm-addr { font-size: 12px; color: var(--hm-muted); margin-top: 4px; }
.hm-footer { color: var(--hm-muted); font-size: 13px; border-top: 1px solid var(--hm-line); }
#hd_login_msg { position: absolute; left: -9999px; }
@media (max-width: 800px) {
  .hm-home-grid, .hm-pass-grid { grid-template-columns: 1fr; }
  .hm-hero h1 { font-size: 32px; }
}
