/* BTH Design System — structural responsive (00cc066 + Live Games / layout pass) */
:root {
  --bth-bg: #050a18;
  --bth-bg-2: #0a0f18;
  --bth-surface: #0b1220;
  --bth-surface-2: #121c31;
  --bth-surface-3: #162038;
  --bth-border: rgba(0, 180, 255, 0.35);
  --bth-border-soft: rgba(0, 180, 255, 0.18);
  --bth-accent: #007bff;
  --bth-cyan: #00d2ff;
  --bth-text: #ffffff;
  --bth-muted: #94a3b8;
  --bth-live: #22c55e;
  --bth-urgent: #ef4444;
  --bth-caution: #eab308;
  --bth-radius: 12px;
  --bth-max: 1240px;
  --bth-header-h: 64px;
  --bth-bottom-nav-h: 72px;
  --bth-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body.bth-body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  font-family: var(--bth-font);
  color: var(--bth-text);
  background-color: var(--bth-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 123, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(0, 210, 255, 0.08), transparent 50%),
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.bth-main {
  width: 100%;
  max-width: min(var(--bth-max), 100%);
  margin: 0 auto;
  padding: 16px 16px calc(var(--bth-bottom-nav-h) + 24px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  min-width: 0;
}

/* ========== HEADER ========== */
.bth-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  background: rgba(5, 10, 24, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bth-border-soft);
}

.bth-header__inner {
  width: 100%;
  max-width: var(--bth-max);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  min-width: 0;
}

.bth-logo {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* Accepted mobile logo: width-driven horizontal lockup (square asset, padded mark) */
.bth-logo img {
  display: block;
  width: min(280px, 82vw);
  height: auto;
  aspect-ratio: 2.37 / 1;
  max-width: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 52%;
}

@media (min-width: 390px) {
  .bth-logo img {
    width: min(280px, 82vw);
  }
}

@media (min-width: 430px) {
  .bth-logo img {
    width: min(300px, 82vw);
  }
}

@media (min-width: 640px) {
  .bth-logo img {
    width: min(320px, 70vw);
  }
}

@media (min-width: 768px) {
  .bth-logo {
    flex: 0 1 auto;
    max-width: min(340px, 50vw);
  }
  .bth-logo img {
    width: min(340px, 50vw);
  }
}

.bth-nav {
  display: none;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}

.bth-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  padding: 8px 10px 10px;
  color: var(--bth-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}
