* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #10251f;
  color: #f7fff4;
}

button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}

button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.display-body {
  overflow: hidden;
}

#field {
  display: block;
}

.engine-link {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-decoration: none;
}

.engine-link:hover {
  color: #ffe13b;
}

.music-toggle {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 3;
  min-width: 104px;
  min-height: 42px;
  border-color: rgba(255, 225, 59, 0.7);
  background: rgba(0, 88, 216, 0.9);
  color: #ffe13b;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.music-toggle[aria-pressed="true"] {
  background: #ffe13b;
  color: #003c9e;
}

.room-card {
  position: fixed;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 174px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 225, 59, 0.62);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 33, 72, 0.84);
  color: #ffe13b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.room-card p {
  margin: 0;
  max-width: 150px;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.room-card strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  text-align: center;
}

#joinQr {
  width: 132px;
  height: 132px;
  border-radius: 4px;
  background: #fff;
}

.hud {
  position: fixed;
  left: 20px;
  right: 20px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
}

.hud > * {
  pointer-events: auto;
}

#score {
  min-width: 130px;
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

#status {
  min-width: 220px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.phone-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #11191d;
  touch-action: none;
}

.phone-body[data-side="left"] {
  background: #27230d;
}

.phone-body[data-side="right"] {
  background: #102330;
}

.phone-panel {
  width: min(92vw, 420px);
  display: grid;
  gap: 22px;
  padding: 28px;
}

.label {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.64);
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1;
}

.connection {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.74);
}

.connection.ok {
  border-color: rgba(118, 255, 183, 0.6);
  color: #baffd9;
}

.room-label {
  margin: -10px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

#permission {
  min-height: 46px;
  width: 100%;
  background: rgba(255, 255, 255, 0.16);
}

.tilt-box {
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)) center / 100% 2px no-repeat,
    rgba(255, 255, 255, 0.06);
}

#tiltBar {
  width: 72%;
  height: 34px;
  border-radius: 6px;
  background: #ffe36e;
  transition: transform 80ms linear;
}

.phone-body[data-side="right"] #tiltBar {
  background: #76d5ff;
}

.hint {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.site-body {
  min-height: 100vh;
  background: #071515;
  color: #f6fff4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(7, 21, 21, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand,
.site-nav a,
.live-panel a,
.primary-action,
.secondary-action {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-weight: 900;
  color: #ffe13b;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.site-nav a:hover {
  color: #ffe13b;
}

.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(34px, 7vw, 88px) clamp(18px, 5vw, 78px);
  background:
    linear-gradient(rgba(7, 21, 21, 0.16), rgba(7, 21, 21, 0.94)),
    url("https://images.unsplash.com/photo-1517927033932-b3d18e61fb3a?auto=format&fit=crop&w=2200&q=80") center / cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffe13b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1,
.page-heading h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.98;
}

.lede,
.page-heading p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  background: #ffe13b;
  color: #062323;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 88, 216, 0.5);
}

.live-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 16, 18, 0.78);
}

.panel-topline {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
}

.live-panel a {
  display: block;
  border-radius: 6px;
  background: #0058d8;
  color: #ffe13b;
  font-weight: 800;
  padding: 14px;
}

.feature-band,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0;
}

.feature-band article,
.pricing-grid article,
.contact-band {
  background: #0b2020;
  padding: clamp(24px, 4vw, 42px);
}

.feature-band h2,
.pricing-grid h2,
.contact-band h2 {
  margin: 0 0 10px;
  color: #ffe13b;
}

.feature-band p,
.pricing-grid p,
.contact-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.content-page {
  padding: clamp(30px, 5vw, 72px) clamp(18px, 5vw, 78px);
}

.page-heading {
  margin-bottom: 36px;
}

.price {
  color: #fff !important;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px !important;
}

.contact-band {
  margin-top: 1px;
}

@media (max-width: 760px) {
  .site-header,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .feature-band,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
