/* Our own styles stay on the header and the notice: Betby asks for no display / position / overflow rules on its
   container (#betby) or anything above it (main, body, html). */
:root {
  --bg: #0f1420;
  --header: #151c2c;
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --accent: #2fbf71;
  --header-h: 56px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  padding: 0 16px;
  background: var(--header);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.spacer {
  flex: 1;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.player {
  color: var(--muted);
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance {
  font-weight: 700;
  color: var(--accent);
}

.icon-btn,
.lang,
.notice-box button {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  height: 32px;
  min-width: 32px;
  font-size: 15px;
  cursor: pointer;
}

.lang {
  padding: 0 6px;
  font-size: 13px;
}

.lang option {
  color: #111;
}

.notice {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.notice[hidden] {
  display: none;
}

.notice-box {
  max-width: 360px;
  margin: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--header);
  text-align: center;
}

.notice-box button {
  padding: 0 16px;
  background: var(--accent);
  border: 0;
  color: #fff;
}

@media (max-width: 480px) {
  .site-header {
    gap: 8px;
    padding: 0 10px;
  }
  .brand,
  .player {
    display: none;
  }
}
