* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0d0b16;
  color: #f4f2fb;
  min-height: 100%;
}
.wrap { max-width: 900px; margin: 0 auto; padding: 18px 14px 60px; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
a { color: #8ab4ff; }
.muted { color: #9a94b8; font-size: 14px; }
.center { text-align: center; }

.card {
  background: #191527;
  border: 1px solid #2a2440;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.card.tight { padding: 12px; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 13px;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #5b3fd6;
  margin: 4px 4px 4px 0;
  font-family: inherit;
  transition: transform .07s ease, filter .15s ease;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-green { background: #16a06a; }
.btn-red { background: #cc3b3b; }
.btn-gray { background: #37324d; }
.btn-gold { background: #c99a1e; }
.btn-wide { display: block; width: 100%; margin: 6px 0; }
.btn-huge { width: 100%; padding: 30px; font-size: 26px; border-radius: 22px; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid #322b4d;
  background: #221c36;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  margin-bottom: 10px;
}
textarea { resize: vertical; min-height: 70px; }

.row { display: flex; gap: 9px; flex-wrap: wrap; }
.row > * { flex: 1 1 120px; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.badge-green { background: #16a06a; }
.badge-red { background: #cc3b3b; }
.badge-gray { background: #37324d; color: #b6b0cc; }
.badge-gold { background: #c99a1e; color: #1a1508; }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 9px 7px; border-bottom: 1px solid #2a2440; text-align: left; font-size: 15px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #8f89a8; font-weight: 700; }

.big { font-size: 40px; font-weight: 800; line-height: 1.1; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.timer.warn { color: #ff6b6b; }
.hidden { display: none !important; }

nav.top { display: flex; gap: 8px; padding: 12px 14px; background: #141020; border-bottom: 1px solid #241e38; flex-wrap: wrap; }
nav.top a { color: #c3bcd8; text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 9px; font-size: 14px; }
nav.top a:hover { background: #241e38; }
