* {
  box-sizing: border-box;
}

:root {
  --bg: #08070d;
  --bg-soft: #12101c;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 212, 59, 0.22);
  --text: #ffffff;
  --muted: #b9b4c8;
  --honey: #ffd43b;
  --honey-dark: #ffad0a;
  --orange: #ff7a18;
  --black: #0d0b12;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 212, 59, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 24, 0.14), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(255, 212, 59, 0.08), transparent 35%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(30deg, transparent 48%, #ffd43b 49%, #ffd43b 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, #ffd43b 49%, #ffd43b 51%, transparent 52%);
  background-size: 90px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 7, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 212, 59, 0.18);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
  color: var(--honey);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.brand span {
  color: white;
}

.brand-icon {
  color: var(--honey);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.18s ease;
}

nav a:hover,
nav a.active {
  background: rgba(255, 212, 59, 0.14);
  color: var(--honey);
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  color: #12101c;
  background: linear-gradient(135deg, var(--honey), var(--orange));
  box-shadow: 0 10px 28px rgba(255, 173, 10, 0.22);
  white-space: nowrap;
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--honey);
  box-shadow: 0 0 18px rgba(255, 212, 59, 0.28);
}

main {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px;
  flex: 1;
}

footer {
  text-align: center;
  padding: 22px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 212, 59, 0.12);
  background: rgba(8, 7, 13, 0.72);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -2.4px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1px;
}

h3 {
  margin: 0 0 10px;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: 0.18s ease;
}

.btn-primary {
  color: #12101c;
  background: linear-gradient(135deg, var(--honey), var(--orange));
  box-shadow: 0 14px 32px rgba(255, 173, 10, 0.25);
}

.btn-secondary {
  color: var(--honey);
  background: rgba(255, 212, 59, 0.1);
  border: 1px solid rgba(255, 212, 59, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
}

.panel,
.hero-content,
.hero-card,
.stat-card,
.step-card,
.reward-card {
  background: linear-gradient(180deg, var(--panel-strong), rgba(255,255,255,0.045));
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
}

.home-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-content {
  border-radius: 34px;
  padding: 44px;
  position: relative;
  overflow: hidden;
}

.hero-content::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.28), transparent 65%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 212, 59, 0.13);
  color: var(--honey);
  font-weight: 900;
  margin-bottom: 20px;
}

.hero-content p {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.hero-mini-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-mini-stats strong,
.hero-mini-stats span {
  display: block;
}

.hero-mini-stats strong {
  color: var(--honey);
  font-size: 22px;
}

.hero-mini-stats span {
  color: var(--muted);
  margin-top: 4px;
}

.hero-card {
  border-radius: 34px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
}

.big-honey {
  font-size: 120px;
  line-height: 1;
  filter: drop-shadow(0 20px 35px rgba(255, 173, 10, 0.25));
  margin-bottom: 20px;
}

.bee-orbit {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 212, 59, 0.35);
  display: grid;
  place-items: center;
}

.bee-orbit span {
  font-size: 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  border-radius: 26px;
  padding: 22px;
  min-width: 0;
  overflow: hidden;
}

.stat-card span {
  font-size: 24px;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--honey);
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

.stat-card p {
  margin: 8px 0 0;
  font-size: 15px;
}

.stream-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.stream-panel,
.side-chat-panel {
  min-width: 0;
}

.panel {
  border-radius: 30px;
  padding: 26px;
}

.stream-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading span {
  display: inline-block;
  color: var(--honey);
  font-weight: 900;
  margin-bottom: 8px;
}

.section-heading.center {
  text-align: center;
}

.stream-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
}

.stream-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.stream-status.is-live {
  color: #6cff9a;
  background: rgba(44, 255, 122, 0.12);
  border-color: rgba(44, 255, 122, 0.25);
}

.stream-status.is-live span {
  background: #49ff83;
  box-shadow: 0 0 16px rgba(73, 255, 131, 0.9);
}

.stream-status.is-offline {
  color: #ff6b86;
  background: rgba(255, 77, 109, 0.12);
  border-color: rgba(255, 77, 109, 0.25);
}

.stream-status.is-offline span {
  background: #ff4d6d;
  box-shadow: 0 0 16px rgba(255, 77, 109, 0.7);
}

.stream-meta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

.stream-meta-card small {
  display: block;
  color: var(--honey);
  font-weight: 900;
  margin-bottom: 6px;
}

.stream-meta-card strong {
  display: block;
  color: white;
  font-size: 20px;
  line-height: 1.25;
}

.stream-meta-card p {
  margin: 6px 0 0;
  font-size: 15px;
}

.small-btn {
  padding: 11px 14px;
  border-radius: 14px;
  white-space: nowrap;
}

.twitch-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 59, 0.22);
  background: #000;
}

.twitch-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.main-player-frame {
  aspect-ratio: 16 / 9;
}

.stream-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.claim-button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 900;
  cursor: not-allowed;
  color: #12101c;
  background: linear-gradient(135deg, var(--honey), var(--orange));
  opacity: 0.55;
}

.claim-button.active {
  opacity: 1;
  cursor: pointer;
}

.claim-button.active:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-link-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.claim-info {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.side-chat-panel {
  display: flex;
  flex-direction: column;
}

.chat-heading {
  margin-bottom: 16px;
}

.chat-heading h2 {
  font-size: 34px;
}

.chat-heading p {
  margin: 8px 0 0;
  font-size: 15px;
}

.chat-placeholder {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 212, 59, 0.22);
  background: #0e0e10;
}

.chat-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.side-chat {
  flex: 1;
  min-height: 620px;
}

.side-chat iframe {
  height: 100%;
  min-height: 620px;
}

.login-required-card {
  min-height: 620px;
  border-radius: 24px;
  border: 1px solid rgba(255, 212, 59, 0.22);
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 212, 59, 0.14), transparent 35%),
    rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

.login-required-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.login-required-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.login-required-card p {
  max-width: 360px;
  margin-bottom: 20px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-bottom: 24px;
  align-items: stretch;
}

.leaderboard {
  display: grid;
  gap: 12px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

.leaderboard-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 212, 59, 0.12);
  color: var(--honey);
  font-weight: 900;
}

.leaderboard-user strong,
.leaderboard-user span {
  display: block;
}

.leaderboard-user strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.leaderboard-user span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.leaderboard-points {
  font-weight: 900;
  color: var(--honey);
  font-size: 15px;
  white-space: nowrap;
}

.text-link {
  display: inline-block;
  color: var(--honey);
  font-weight: 900;
  text-decoration: none;
  margin-top: 18px;
}

.compact-leaderboard-panel .section-heading h2 {
  font-size: 34px;
}

.compact-leaderboard {
  gap: 10px;
}

.compact-leaderboard .leaderboard-row {
  grid-template-columns: 52px 1fr auto;
  padding: 12px;
}

.compact-leaderboard .leaderboard-rank {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quick-info-item {
  padding: 18px;
  border-radius: 20px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}

.quick-info-item strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--honey), var(--orange));
  color: var(--black);
  font-weight: 900;
  margin-bottom: 12px;
}

.quick-info-item p {
  margin: 0;
  font-size: 15px;
}

.how-it-works,
.shop-preview {
  margin-top: 24px;
}

.steps-grid,
.reward-grid {
  display: grid;
  gap: 18px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.reward-grid {
  grid-template-columns: repeat(4, 1fr);
}

.step-card,
.reward-card {
  border-radius: 26px;
  padding: 24px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--honey), var(--orange));
  color: var(--black);
  font-weight: 900;
  margin-bottom: 16px;
}

.reward-card span {
  font-size: 34px;
}

.reward-card h3 {
  margin-top: 14px;
}

.empty-dark {
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  color: var(--muted);
}

.hero {
  background: linear-gradient(180deg, var(--panel-strong), rgba(255,255,255,0.045));
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
}

.badge {
  display: inline-block;
  background: rgba(255, 212, 59, 0.13);
  color: var(--honey);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255, 212, 59, 0.18);
  border-radius: 22px;
  padding: 22px;
}

.placeholder {
  border: 1px dashed rgba(255, 212, 59, 0.35);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255,255,255,0.04);
  margin-top: 18px;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 18px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(255, 212, 59, 0.18);
}

th,
td {
  padding: 15px;
  text-align: left;
  font-size: 17px;
}

th {
  background: rgba(255, 212, 59, 0.15);
  color: var(--honey);
}

tr:nth-child(even) {
  background: rgba(255,255,255,0.04);
}

tr:nth-child(odd) {
  background: rgba(255,255,255,0.08);
}

.empty {
  text-align: center;
  font-size: 20px;
  padding: 30px;
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  border: 1px solid rgba(255, 212, 59, 0.18);
}

@media (max-width: 1150px) {
  .stream-layout {
    grid-template-columns: 1fr;
  }

  .side-chat,
  .side-chat iframe {
    min-height: 520px;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .reward-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .quick-info-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-row,
  .compact-leaderboard .leaderboard-row {
    grid-template-columns: 48px 1fr;
  }

  .leaderboard-points {
    grid-column: 2;
  }

  .side-chat,
  .side-chat iframe {
    min-height: 460px;
  }
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    justify-content: flex-start;
  }

  .login-button {
    width: 100%;
  }

  main {
    padding: 28px 16px;
  }

  .hero-content,
  .hero-card,
  .panel {
    border-radius: 24px;
    padding: 24px;
  }

  .hero-mini-stats,
  .stats-grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .stream-top,
  .stream-meta-card,
  .stream-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .small-btn,
  .claim-button {
    width: 100%;
  }
}
