html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: #10121f;
}

.educabit-return {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 1000;
  text-decoration: none;
  text-shadow: 0 2px 0 #11131d;
}

.educabit-return span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #11131d;
  background: #ffe05f;
  border: 3px solid #11131d;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #11131d;
  transform: rotate(-5deg);
}

.arena-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.trivia-ad-below-game {
  width: min(100% - 2rem, 970px);
  min-height: 90px;
  margin: 1rem auto 1.2rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.42);
}

.hero-copy,
.control-panel,
.board,
.knowledge-panel,
.question-card,
.player-chip,
.hero-token {
  opacity: 1 !important;
  transform: none !important;
}

.hero-band {
  min-height: 31vh;
  height: 31vh;
  padding: 1.05rem clamp(2.1rem, 4vw, 4rem) 0;
}

.hero-band::after {
  height: 22%;
}

.hero-copy {
  width: min(780px, 58vw);
  align-self: end;
  padding-bottom: 1.15rem;
  margin-left: 4.7rem;
}

.eyebrow,
.feature-row span,
.panel-heading p,
.board-topline span,
.room-code span {
  font-size: 0.72rem;
}

h1 {
  max-width: 720px;
  margin-bottom: 0.55rem;
  font-size: clamp(3.5rem, 6.7vw, 6.6rem);
  line-height: 0.78;
}

.lead {
  max-width: 640px;
  margin-bottom: 0.75rem;
  font-size: clamp(0.92rem, 1.35vw, 1.08rem);
  line-height: 1.32;
}

.feature-row {
  gap: 0.45rem;
}

.feature-row span {
  min-height: 2rem;
  padding: 0.42rem 0.62rem;
}

.hero-scene {
  inset: -18% -6% -10% 62%;
}

.hero-grid {
  width: min(26vw, 340px);
  gap: 0.48rem;
  inset: 5% 5% auto auto;
}

.hero-token {
  width: clamp(3.4rem, 5vw, 4.7rem);
}

.game-layout {
  grid-template-columns: minmax(220px, 280px) minmax(420px, 1fr) minmax(220px, 292px);
  gap: 0.7rem;
  height: 69vh;
  height: 69dvh;
  margin-top: 0;
  padding: 0 0.85rem 0.85rem;
}

.control-panel,
.knowledge-panel {
  gap: 0.62rem;
  max-height: 100%;
  padding: 0.78rem;
}

.panel-heading strong {
  font-size: 1rem;
}

.entry-forms,
.join-form,
.room-tools {
  gap: 0.52rem;
}

label {
  gap: 0.28rem;
  font-size: 0.68rem;
}

input {
  padding: 0.58rem 0.7rem;
}

button {
  min-height: 2.42rem;
  padding: 0.5rem 0.72rem;
}

.board {
  min-height: 0;
  max-height: 100%;
  padding: 0.72rem;
}

.board-topline {
  min-height: 2rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.42rem;
}

.score-strip {
  min-height: 3rem;
  padding-bottom: 0.35rem;
}

.player-chip {
  min-width: 150px;
  padding: 0.42rem;
}

.avatar {
  width: 2.08rem;
}

.wheel-zone {
  grid-template-columns: minmax(170px, 0.72fr) minmax(260px, 1fr);
  gap: 0.7rem;
  min-height: 0;
}

.wheel-stage {
  min-height: 250px;
}

.category-wheel {
  width: min(100%, 252px);
  border-width: 0.54rem;
}

.category-wheel span {
  width: 2.85rem;
  transform: rotate(var(--angle)) translate(5.25rem) rotate(calc(-1 * var(--angle)));
}

.category-wheel b svg {
  width: 38px;
  height: 38px;
}

.question-card {
  padding: 1rem;
}

.question-card h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.question-card p {
  font-size: 0.92rem;
  line-height: 1.42;
}

.leaderboard {
  gap: 0.38rem;
}

.leader-row {
  padding: 0.5rem;
}

.scale-note {
  padding-top: 0.65rem;
}

.scale-note p {
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-height: 760px) and (min-width: 900px) {
  .hero-band {
    height: 28vh;
    min-height: 28vh;
  }

  .game-layout {
    height: 72vh;
    height: 72dvh;
  }

  h1 {
    font-size: clamp(3rem, 5.6vw, 5.4rem);
  }

  .lead {
    display: none;
  }
}

@media (max-width: 1120px) {
  html,
  body,
  .arena-shell {
    overflow: auto;
  }

  .arena-shell {
    height: auto;
    min-height: 100vh;
  }

  .hero-band {
    height: auto;
    min-height: 420px;
  }

  .hero-copy {
    width: min(720px, 100%);
    margin-left: 0;
  }

  .game-layout {
    height: auto;
    grid-template-columns: 1fr;
    padding-bottom: 1.2rem;
  }

  .board {
    order: 0;
  }
}

@media (max-width: 760px) {
  .educabit-return {
    font-size: 0.9rem;
  }

  .hero-band {
    min-height: 330px;
    padding-top: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }

  .feature-row {
    display: none;
  }

  .hero-scene {
    opacity: 0.48;
  }
}
