:root {
  --brand: #c8102e;
  --brand-light: #ffe8ec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a8f99;
  --ok: #07c160;
  --warn: #ff976a;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

.page { padding: 12px 12px 72px; max-width: 640px; margin: 0 auto; }

.hero {
  background: linear-gradient(135deg, #c8102e, #7a0a1c);
  color: #fff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.hero h1 { margin: 0 0 6px; font-size: 19px; letter-spacing: .5px; }
.hero p { margin: 0; opacity: .85; font-size: 12px; line-height: 1.6; }

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(15, 20, 30, .05);
}

.row { display: flex; align-items: center; justify-content: space-between; }
.muted { color: var(--muted); font-size: 12px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

.tier-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #f0f1f4;
}
.tier-row:last-child { border-bottom: none; }
.tier-name { width: 54px; font-weight: 600; }
.tier-codes {
  flex: 1; display: flex; gap: 6px; flex-wrap: wrap;
}
.digit {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand-light);
  color: var(--brand); font-weight: 700; display: flex; align-items: center;
  justify-content: center; font-size: 15px;
}
.digit.hit { background: var(--brand); color: #fff; }
.digit.miss { background: #eef0f3; color: #b0b5bf; }
.digit.locked { background: #eef0f3; color: #c3c8d1; font-weight: 500; }
.locked-bar {
  background: #fff7e6;
  color: #d46b08;
  border: 1px solid #ffe0a3;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.6;
  margin: 10px 0 4px;
}
.tier-hit-tag { font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.tier-hit-tag.yes { background: #e7f8ee; color: var(--ok); }
.tier-hit-tag.no { background: #f3f4f6; color: var(--muted); }

.draw-box {
  display: flex; gap: 8px; justify-content: center; margin: 8px 0 4px;
}
.draw-digit {
  width: 42px; height: 42px; border-radius: 10px; background: #1f2329; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
}

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stat-grid b { display: block; font-size: 18px; }
.stat-grid span { color: var(--muted); font-size: 12px; }

.list-item { padding: 12px 0; border-bottom: 1px solid #f0f1f4; }
.list-item:last-child { border-bottom: none; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.tag.gray { background: #f0f1f4; color: #6b7280; }
.tag.green { background: #e7f8ee; color: var(--ok); }
.tag.red { background: var(--brand-light); color: var(--brand); }
.tag.orange { background: #fff3e8; color: #e37318; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }
.login-wrap { padding: 64px 24px 24px; text-align: center; }
.login-wrap .logo { font-size: 46px; }
.footer-note { color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; padding: 8px 16px 24px; }
