:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #f6f8fb;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button, .button { border: 0; border-radius: 9px; padding: 10px 15px; background: #2457e6; color: white; cursor: pointer; text-decoration: none; font-weight: 650; }
button:hover, .button:hover { filter: brightness(.96); }
button.secondary, .button.secondary, button.ghost { background: white; color: #26344d; border: 1px solid #d9dfeb; }
button.ghost { border-color: transparent; background: transparent; }
button.danger { background: #b42318; }
button:disabled { opacity: .55; cursor: not-allowed; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid #e3e7ef; background: rgba(255,255,255,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.topbar nav { display: flex; align-items: center; gap: 8px; }
.topbar a { color: #26344d; text-decoration: none; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
main { max-width: 1180px; margin: 0 auto; padding: 0 24px 70px; }
.splash { padding: 100px 0 60px; }
.hero { max-width: 760px; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.055em; margin: 13px 0 24px; color: #111827; }
.hero p { font-size: 1.2rem; line-height: 1.6; color: #526079; max-width: 690px; }
.eyebrow { color: #2457e6; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; }
.actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.feature-grid, .metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 70px; }
.feature-grid article, .metric { background: white; border: 1px solid #e2e7f0; border-radius: 14px; padding: 22px; display: grid; gap: 8px; box-shadow: 0 8px 28px rgba(20,32,58,.035); }
.feature-grid span, .metric span { color: #667085; line-height: 1.45; }
.metric-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin: 20px 0; }
.metric strong { font-size: 1.55rem; }
.panel { background: white; border: 1px solid #e1e6ef; border-radius: 14px; padding: 22px; margin: 18px 0; box-shadow: 0 6px 24px rgba(20,32,58,.03); }
.auth-panel { max-width: 470px; margin: 70px auto; }
.auth-tabs { display: flex; gap: 7px; margin-bottom: 18px; }
.tab { background: transparent; color: #667085; border: 1px solid transparent; }
.tab.active { color: #2457e6; background: #eef3ff; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; color: #344054; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 8px; background: white; color: #172033; outline: none; }
input:focus, select:focus { border-color: #2457e6; box-shadow: 0 0 0 3px rgba(36,87,230,.10); }
small { color: #667085; line-height: 1.4; }
.link-button { background: transparent; color: #2457e6; padding: 4px; justify-self: start; }
.page { padding-top: 32px; }
.page-head, .section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.page-head h1 { margin: 5px 0 0; font-size: 2rem; letter-spacing: -.035em; }
.section-head h2 { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.cards { display: grid; gap: 15px; }
.game-card { background: white; border: 1px solid #e1e6ef; border-radius: 14px; padding: 22px; }
.game-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.game-title h2 { margin: 0 0 4px; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 750; background: #eef3ff; color: #2457e6; }
.badge.production { background: #ecfdf3; color: #067647; }
.badge.disabled { background: #fef3f2; color: #b42318; }
.muted { color: #667085; }
.code, code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
code { background: #f1f4f8; border-radius: 5px; padding: 2px 5px; }
pre { margin: 12px 0; padding: 15px; background: #101828; color: #e6edf7; border-radius: 10px; overflow: auto; line-height: 1.5; }
.verify-box { padding: 14px; border-radius: 10px; background: #f7f9fc; border: 1px dashed #cbd3e1; overflow-wrap: anywhere; }
.tester-row { display: flex; gap: 8px; margin: 10px 0; }
.tester-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.tester-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #d9dfeb; background: #f9fafb; border-radius: 8px; font-family: monospace; }
.tester-pill button { padding: 1px 5px; background: transparent; color: #b42318; }
.banner { margin-top: 20px; border-radius: 10px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.banner.warning { background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 11px 9px; text-align: left; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
th { color: #667085; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.topups { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.inline-form { display: flex; align-items: end; gap: 8px; max-width: 330px; }
.docs { max-width: 840px; }
.docs h2 { margin-top: 34px; }
.docs p, .docs li { color: #526079; line-height: 1.65; }
.docs-public { padding: 50px 0; }
#toast { position: fixed; right: 18px; bottom: 18px; max-width: 420px; padding: 12px 15px; background: #101828; color: white; border-radius: 9px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .18s ease; z-index: 50; }
#toast.show { opacity: 1; transform: translateY(0); }
#toast.error { background: #b42318; }
dialog { border: 0; border-radius: 14px; padding: 24px; box-shadow: 0 24px 80px rgba(15,23,42,.25); min-width: min(430px, calc(100vw - 30px)); }
dialog::backdrop { background: rgba(17,24,39,.45); }
@media (max-width: 800px) {
  .topbar { padding: 0 16px; }
  .topbar nav button[data-page] { display: none; }
  main { padding-left: 16px; padding-right: 16px; }
  .feature-grid, .metric-grid, .form-grid { grid-template-columns: 1fr; }
  .splash { padding-top: 65px; }
  .hero h1 { font-size: 3.2rem; }
  .page-head { align-items: flex-end; }
}
