* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  background: #f6f7f9;
  line-height: 1.6;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #0f172a; color: #fff; padding: 28px 0 22px; }
.brand { font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: #e11d48; color: #fff; font-size: 15px; font-weight: 800;
}
.tagline { margin: 8px 0 0; color: #cbd5e1; font-size: 15px; }

.hero { padding: 34px 0 10px; }
.hero h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: -0.5px; }
.hero p { font-size: 17px; color: #334155; max-width: 720px; }

.planner { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin: 26px 0 10px; align-items: start; }
@media (max-width: 860px) { .planner { grid-template-columns: 1fr; } }

.games-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.search-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.search-row input {
  flex: 1; padding: 10px 14px; font-size: 15px;
  border: 1px solid #cbd5e1; border-radius: 9px;
}
.count-label { font-size: 13px; color: #64748b; white-space: nowrap; }
.game-list { max-height: 520px; overflow-y: auto; border-top: 1px solid #f1f5f9; }
.game-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 6px; border-bottom: 1px solid #f1f5f9; cursor: pointer;
  font-size: 15px;
}
.game-row:hover { background: #f8fafc; }
.game-row.on { background: #fef2f2; }
.game-row input { width: 17px; height: 17px; accent-color: #e11d48; flex: none; }
.game-name { flex: 1; }
.game-size { color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-note { font-size: 13px; color: #64748b; margin: 12px 0 0; }
.error { color: #b91c1c; }

.summary-panel {
  background: #0f172a; color: #fff; border-radius: 14px; padding: 20px;
  position: sticky; top: 20px;
}
.summary-panel h2 { margin: 0 0 12px; font-size: 18px; }
.stat { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.stat strong { font-variant-numeric: tabular-nums; }
.bar-wrap { margin: 14px 0; }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; color: #cbd5e1; margin-bottom: 6px; }
.bar { height: 12px; background: #1e293b; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: #22c55e; border-radius: 99px; transition: width .25s; }
.bar-fill.over { background: #e11d48; }
.bar-sub { font-size: 12px; color: #94a3b8; margin-top: 6px; }
.advice { background: #1e293b; border-radius: 10px; padding: 14px; margin-top: 6px; }
.advice h3 { margin: 0 0 6px; font-size: 16px; color: #fda4af; }
.advice p { margin: 0; font-size: 14px; color: #e2e8f0; }

.estimator { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; margin: 26px 0; }
.estimator h2 { margin: 0 0 8px; font-size: 20px; }
.est-row { display: flex; gap: 10px; margin-top: 12px; }
.est-row input { width: 160px; padding: 10px 14px; font-size: 15px; border: 1px solid #cbd5e1; border-radius: 9px; }
.est-row button {
  padding: 10px 22px; font-size: 15px; font-weight: 700; color: #fff;
  background: #e11d48; border: 0; border-radius: 9px; cursor: pointer;
}
.est-row button:hover { background: #be123c; }
.est-out { margin: 12px 0 0; font-size: 15px; color: #334155; }

.faq { margin: 10px 0 40px; }
.faq h2 { font-size: 20px; }
.faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq p { margin: 8px 0 0; font-size: 15px; color: #334155; }

.site-footer { background: #0f172a; color: #94a3b8; padding: 26px 0; font-size: 13px; }
.site-footer p { margin: 6px 0; }
