:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --card2: #f0f3f7;
  --text: #17202e;
  --muted: #5c6675;
  --accent: #1f6feb;
  --accent-dark: #1a5fd0;
  --accent2: #b7791f;
  --best: #1a7f37;
  --border: #dde3ec;
  --shadow: 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-lg: 0 4px 14px rgba(16, 24, 40, .10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header / hero ---------- */
.site-header {
  background: linear-gradient(180deg, #eef3fb 0%, #f4f6f9 100%);
  border-bottom: 1px solid var(--border);
  padding-bottom: 44px;
}
.header-inner {
  max-width: 960px; margin: 0 auto; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.hero { max-width: 720px; margin: 34px auto 0; padding: 0 20px; text-align: center; }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.hero-steps { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.hero-sites { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
#search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
#search-input {
  flex: 1; min-width: 0; padding: 14px 16px; font-size: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); outline: none;
  box-shadow: var(--shadow);
}
#search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
#search-form button {
  padding: 14px 26px; font-size: 16px; font-weight: 650;
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; cursor: pointer; transition: background .15s;
}
#search-form button:hover { background: var(--accent-dark); }
.mode-banner { margin-top: 14px; font-size: 13px; color: var(--muted); }
.mode-banner .live-note { color: var(--best); font-weight: 600; }

/* ---------- Layout ---------- */
main { max-width: 960px; margin: 32px auto 60px; padding: 0 20px; }
.hidden { display: none !important; }
h2 { margin-bottom: 16px; font-size: 20px; letter-spacing: -.01em; }

/* ---------- Game cards ---------- */
.game-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.game-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.game-title { font-weight: 650; font-size: 16px; }
.game-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.game-best { text-align: right; flex-shrink: 0; }
.game-best .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.game-best .price { font-size: 20px; font-weight: 750; color: var(--best); }
.game-best .site { font-size: 12px; color: var(--muted); }
.compare-hint { font-size: 12px; color: var(--accent); margin-top: 3px; font-weight: 650; }

/* ---------- Compare table ---------- */
#compare-section h2 { margin-top: 14px; }
#game-summary { color: var(--muted); margin-bottom: 18px; }
#game-summary h2 { color: var(--text); }
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
th, td { padding: 13px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
th { background: var(--card2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:last-child td { border-bottom: none; }
#compare-table td:first-child, #compare-table th:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
#compare-table th:first-child { background: var(--card2); }

.best-badge {
  display: inline-block; background: var(--best); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-left: 8px;
  vertical-align: middle;
}
.src-tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; font-weight: 650; }
.src-tag.live { background: #e3edfd; color: var(--accent); }
.src-tag.demo { background: #edf0f4; color: var(--muted); }
.tier-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.tier-budget  { background: #e3edfd; color: var(--accent); }
.tier-mid     { background: #fdf0d5; color: #92590a; }
.tier-premium { background: #efe6fb; color: #6d3dc0; }

.tier-col { text-align: center; }
.tier-range { font-size: 11px; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.tier-seats { font-size: 10px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.price-cell { text-align: center; vertical-align: middle; }
.best-cell { background: #f0f9f1; }
.cell-link { display: block; color: inherit; text-decoration: none; border-radius: 6px; padding: 2px; }
.cell-link:hover .cell-total { color: var(--accent); text-decoration: underline; }
.cell-total { font-weight: 700; }
.cell-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.est-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 3px; }
.row-links { font-size: 12px; font-weight: 400; margin-top: 4px; }
.row-links a { display: inline-block; padding: 4px 0; color: var(--accent); }
.cell-seat { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cell-seat a { color: var(--accent); }
.photos-cta { margin-top: 10px; font-size: 14px; }
.photos-cta a { color: var(--accent); }

/* ---------- Promo panel ---------- */
#promo-panel { margin-top: 24px; }
#promo-panel h3 { margin-bottom: 12px; font-size: 17px; }
.promo-card {
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.promo-site { font-weight: 650; font-size: 14px; }
.promo-desc { color: var(--muted); font-size: 13px; margin-top: 2px; }
.promo-code {
  font-family: ui-monospace, monospace; background: var(--card2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 12px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.promo-code:hover { border-color: var(--accent); }
.fine-print { color: var(--muted); font-size: 12px; margin-top: 16px; }
.disclosure-line { color: var(--muted); font-size: 12px; margin-top: 12px; }
.disclosure-line a { color: var(--accent); }

/* ---------- Buttons / modal ---------- */
.ghost-btn {
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 550;
  text-decoration: none;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal { position: fixed; inset: 0; background: rgba(15,23,34,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; max-width: 520px; width: 100%;
  max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-card h3 { margin-bottom: 10px; }
.key-row { margin-top: 16px; }
.key-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.key-row input {
  width: 100%; padding: 10px 12px; background: var(--card2);
  border: 1px solid var(--border); border-radius: 8px; color: var(--text);
}
.key-row small { color: var(--muted); display: block; margin-top: 5px; font-size: 12px; }
.tag { font-size: 10px; padding: 2px 7px; border-radius: 10px; vertical-align: middle; font-weight: 650; }
.tag.live-ready { background: #e3edfd; color: var(--accent); }
.tag.live-now { background: #e2f4e5; color: var(--best); }
.tag.gated { background: #fdf0d5; color: #92590a; }
.modal-actions { margin-top: 20px; display: flex; gap: 10px; }
.modal-actions button:first-child { background: var(--accent); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.modal-actions button:first-child:hover { background: var(--accent-dark); }

/* ---------- Feedback ---------- */
#feedback-section { background: #eaeff6; border-top: 1px solid var(--border); padding: 44px 20px; }
.feedback-card {
  max-width: 640px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  box-shadow: var(--shadow);
}
.feedback-card h3 { font-size: 19px; letter-spacing: -.01em; margin-bottom: 6px; }
.feedback-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
#feedback-form textarea {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: inherit;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); resize: vertical; outline: none;
}
#feedback-form textarea:focus, .feedback-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.feedback-row { display: flex; gap: 10px; margin-top: 10px; }
.feedback-row input {
  flex: 1; min-width: 0; padding: 11px 14px; font-size: 14px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); outline: none;
}
.feedback-row button {
  padding: 11px 20px; font-size: 14px; font-weight: 650;
  background: var(--accent); color: #fff; border: none;
  border-radius: 10px; cursor: pointer; white-space: nowrap;
}
.feedback-row button:hover { background: var(--accent-dark); }
.feedback-status { font-size: 13px; color: var(--best); margin-top: 10px; min-height: 17px; font-weight: 600; }

/* Honeypot (bot trap) - must live in CSS: CSP style-src 'self' blocks inline styles */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
footer { background: #0f1722; color: #93a0b4; font-size: 13px; }
.footer-inner {
  max-width: 960px; margin: 0 auto; padding: 36px 20px 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px;
}
.footer-logo { color: #e7edf6; font-size: 17px; margin-bottom: 10px; }
.footer-brand p { line-height: 1.55; max-width: 340px; }
.footer-col h4 { color: #e7edf6; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.footer-col p { margin-bottom: 8px; line-height: 1.5; }
footer a { color: #8ab4f8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid #232e40; padding: 18px 20px 26px; text-align: center; font-size: 12px; }
.footer-base p { max-width: 760px; margin: 0 auto 6px; line-height: 1.5; }

/* ---------- Legal page ---------- */
.legal-main { max-width: 720px; margin: 0 auto; padding: 30px 20px; }
.legal-main h1 { font-size: 26px; margin-bottom: 4px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.legal-main h2 { font-size: 18px; margin: 26px 0 8px; }
.legal-main p { color: var(--text); font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.legal-main a { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .hero h1 { font-size: 26px; }
  #search-form { flex-direction: column; }
  #search-form button { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .feedback-row { flex-direction: column; }
  .feedback-row button { width: 100%; }
  .game-card { flex-direction: column; align-items: flex-start; }
  .game-best { text-align: left; }
}

/* No-estimates UI */
.game-best .soon { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.35; }
.soon-cell { color: var(--muted); font-size: 13px; font-style: italic; }
.no-live-note {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; color: var(--muted); font-size: 14px; margin-top: 20px;
}
.buy-btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.buy-btn:hover { background: var(--accent-dark); }
