@font-face {
  font-family: 'Clarity City';
  src: url('./clarity-city.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font:
    16px Arial,
    sans-serif;
}
#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.content {
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}
.candidate {
  visibility: hidden;
  pointer-events: none;
}
#controls {
  position: fixed;
  z-index: 2;
  left: 5vw;
  right: 5vw;
  bottom: 7vh;
  padding: 28px;
  max-width: 700px;
  background: rgba(16, 35, 37, 0.92);
  border-radius: 8px;
}
#controls.playing {
  opacity: 0;
  transition: opacity 0.3s;
}
#controls.playing:hover,
#controls.playing:focus-within {
  opacity: 1;
}
h1 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 2px;
  margin: 0 0 20px;
}
#status {
  font-size: 22px;
  line-height: 1.4;
}
#details {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
}
button {
  padding: 11px 17px;
  margin: 10px 8px 0 0;
  background: white;
  color: #173a3d;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #66b8b7;
  outline-offset: 3px;
}
#enable[hidden] {
  display: none;
}
#controls[hidden],
#pairing-screen[hidden],
#standby-screen[hidden] {
  display: none;
}
#pairing-screen,
#standby-screen {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 6vh 6vw 4vh;
  background: #142e31;
  color: #f7f8f5;
  font-family: 'Clarity City', Arial, sans-serif;
  text-align: center;
}
.pairing-header {
  display: grid;
  gap: 1.8vh;
}
.pairing-brand {
  font-size: clamp(16px, 2.3vw, 4vh);
  line-height: 1.3;
  letter-spacing: 0.15em;
}
.pairing-product,
#pairing-label {
  color: #b1cecc;
  font-size: clamp(10px, 1.1vw, 2vh);
  line-height: 1.5;
  letter-spacing: 0.24em;
  font-weight: 400;
  text-transform: uppercase;
}
.pairing-content {
  align-self: center;
  min-width: 0;
}
#pairing-label {
  margin: 0 0 2vh;
}
#pairing-code {
  display: flex;
  justify-content: center;
  gap: 0.2em;
  margin: 0;
  font-size: min(15vw, 26vh);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  letter-spacing: 0.015em;
}
.pairing-instructions {
  margin: 4vh 0 0;
  color: #cfddda;
  font-size: clamp(12px, 1.4vw, 2.6vh);
  line-height: 1.6;
}
.pairing-instructions strong {
  color: #f7f8f5;
  font-weight: 400;
}
.pairing-footer {
  display: grid;
  justify-items: center;
  gap: 2.5vh;
}
#pairing-notice,
#standby-notice {
  margin: 0;
  max-width: 65ch;
  color: #b1cecc;
  font-size: clamp(11px, 1.1vw, 2vh);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pairing-rule {
  width: 3.5vw;
  min-width: 36px;
  height: 2px;
  background: #89b0ae;
}
.standby-content {
  align-self: center;
}
.standby-mark {
  width: min(8vw, 13vh);
  min-width: 56px;
  color: #b1cecc;
  margin-bottom: 3vh;
}
#standby-title {
  margin: 0;
  font-size: min(6vw, 10vh);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
}
@media (max-aspect-ratio: 3/4) {
  #standby-title {
    font-size: 10vw;
  }
  .standby-mark {
    width: 16vw;
  }
  #pairing-code {
    flex-direction: column;
    gap: 0;
    font-size: min(29vw, 18vh);
  }
  .pairing-brand {
    font-size: 4.5vw;
  }
  .pairing-product,
  #pairing-label,
  #pairing-notice,
  #standby-notice {
    font-size: max(12px, 2.5vw);
  }
  .pairing-instructions {
    font-size: max(14px, 3vw);
    max-width: 26ch;
    margin-inline: auto;
  }
}
#audio-controls {
  position: fixed;
  z-index: 3;
  right: 2vw;
  top: 2vh;
  max-width: 24rem;
  padding: 16px;
  border-radius: 8px;
  background: rgba(16, 35, 37, 0.92);
}
#audio-controls[hidden] {
  display: none;
}
#audio-status {
  margin: 0 0 10px;
  line-height: 1.4;
}
#audio-enable {
  margin: 0;
}

.layout-root {
  position: absolute;
  inset: 0;
  background: #000;
}
.layout-zone {
  position: absolute;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.zone-content {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.zone-standby {
  color: #f5f6f1;
  font-family: 'Clarity City', sans-serif;
  text-align: center;
  padding: 5%;
  letter-spacing: 0.04em;
}
.zone-standby::before {
  content: 'FISHER & PAYKEL';
  display: block;
  margin-bottom: 1.5em;
  font-size: 0.7em;
  letter-spacing: 0.14em;
  opacity: 0.7;
}
