* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #11120f;
  color: #f6f0df;
  font:
    500 16px/1.4 Manrope,
    Arial,
    sans-serif;
}
body {
  overflow: hidden;
}
button {
  cursor: pointer;
  font:
    700 13px Manrope,
    sans-serif;
}
button:focus-visible {
  outline: 3px solid #f5a45d;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
#air {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3.5vh 3vw 4vh;
  gap: 3vh;
}
.wall-head {
  display: flex;
  align-items: center;
  gap: 1.3vw;
  border-bottom: 1px solid #444238;
  padding: 0 0 2.2vh;
}
.wall-head img {
  width: clamp(88px, 11vw, 240px);
}
.wall-head span {
  padding-left: 1.4vw;
  border-left: 1px solid #635e4f;
  font:
    700 clamp(12px, 1.4vw, 28px) Barlow,
    sans-serif;
  letter-spacing: 0.11em;
}
.wall-head b {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: #dbc6a3;
  font-size: clamp(10px, 0.9vw, 18px);
  letter-spacing: 0.12em;
}
.wall-head b:before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: #ff8849;
}
.wall-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr);
  gap: 2vw;
  min-height: 0;
  flex: 1;
}
.wall-spot {
  container-type: size;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e37038;
  color: #211910;
  border: 1px solid #eb8e5f;
  border-radius: 1vw;
}
.radial-print {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 83% 78%, #ffe9a2 0, transparent 48%),
    radial-gradient(ellipse at 16% 18%, #ffa563, transparent 71%),
    linear-gradient(135deg, #f2874d, #e56931 66%, #eeab60);
  z-index: -1;
}
.radial-print:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(#5c300d6b 0.7px, transparent 1px);
  background-size: 5px 5px;
  mask-image: linear-gradient(134deg, transparent, #000);
}
.spot-copy {
  position: absolute;
  left: 7%;
  top: 8%;
  width: 87%;
  z-index: 2;
}
.spot-mark {
  font:
    800 clamp(10px, 1.2cqw, 22px)/1 Manrope,
    sans-serif;
  letter-spacing: 0.14em;
  background: #231e17;
  color: #ffe7cb;
  padding: 0.48em 0.72em;
  display: inline-block;
}
.spot-copy h1 {
  font:
    700 clamp(32px, min(12cqw, 15cqh), 158px)/0.89 Barlow,
    Impact,
    sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  margin: 0.16em 0 0.14em;
  max-width: 83%;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.spot-copy h1.long-offer {
  font-size: clamp(27px, min(8.5cqw, 10.5cqh), 112px);
}
.spot-copy p {
  margin: 0;
  font:
    700 clamp(13px, 2.5cqw, 40px)/1.27 Manrope,
    sans-serif;
  max-width: 78%;
  overflow-wrap: anywhere;
}
.spot-visual {
  position: absolute;
  bottom: 2%;
  right: 4%;
  height: 49%;
  width: 64%;
  display: grid;
  place-items: center;
}
.spot-visual img {
  height: 100%;
  width: 90%;
  object-fit: contain;
  position: relative;
  transform: rotate(-8deg);
  filter: drop-shadow(0 11px 7px #4b2c1b4d);
  animation: float-box 6s ease-in-out infinite alternate;
}
.spot-orbit {
  position: absolute;
  inset: 23% -7% 9% -20%;
  border: 2px solid #693e23a1;
  transform: rotate(-18deg);
  border-radius: 50%;
}
.spot-orbit:after {
  content: "";
  position: absolute;
  inset: 5% 1%;
  border: 1px dashed #693e237a;
  border-radius: 50%;
}
@keyframes float-box {
  to {
    transform: translateY(-3%) rotate(-3deg);
  }
}
.wall-side {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 2vh;
}
.wall-members,
.wall-chat {
  min-width: 0;
  background: #1c1d18;
  border: 1px solid #393b30;
  border-radius: 0.8vw;
  padding: 2vh 1.6vw;
}
.wall-side h2 {
  font:
    700 clamp(19px, 2.6vw, 60px)/1 Barlow,
    sans-serif;
  margin: 0 0 1.7vh;
}
.wall-members ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: buyer;
}
.wall-members li {
  display: flex;
  align-items: center;
  gap: 1vw;
  border-top: 1px solid #3e3e31;
  padding: 0.75vh 0;
  counter-increment: buyer;
  font:
    700 clamp(15px, 1.75vw, 40px)/1.3 Barlow,
    sans-serif;
  overflow-wrap: anywhere;
}
.wall-members li:before {
  content: "0" counter(buyer);
  color: #f3b680;
  font:
    700 0.68em Manrope,
    sans-serif;
}
.wall-members li:first-child {
  color: #ffd9a2;
}
.empty-buyers,
.chat-window > span {
  color: #bdb9a8;
  font-size: clamp(12px, 1.2vw, 22px);
}
.wall-members ol:not(:empty) + p {
  display: none;
}
.wall-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-window {
  min-height: 0;
  flex: 1;
  display: grid;
  align-items: center;
  justify-items: start;
  background: #161712;
  border-radius: 4px;
  overflow: hidden;
}
.chat-window > span {
  padding: 1vw;
}
.chat-window canvas {
  max-height: 100%;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tv-tools {
  position: fixed;
  bottom: 0.6vh;
  right: 3vw;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 6;
}
.tv-tools.show,
.tv-tools:hover,
.tv-tools:focus-within {
  opacity: 1;
}
.tv-tools button,
#enable-audio,
dialog button {
  border: 1px solid #4b4d41;
  border-radius: 5px;
  background: #25261f;
  color: #f6f0df;
  padding: 7px 10px;
}
.tv-tools button {
  font-size: 11px;
}
#enable-audio {
  position: fixed;
  bottom: 30px;
  left: 12px;
  z-index: 7;
}
#sale-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 62% 63%, #703820, #231a15 55%, #11110e 86%);
  z-index: 3;
}
#sale-stage #output {
  width: 94vw;
  height: min(78vh, 52vw);
}
.tv dialog {
  box-sizing: border-box;
  width: min(670px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: #191a16;
  color: #f7f0df;
  border: 1px solid #6c6552;
  border-radius: 10px;
  padding: 20px;
}
.tv dialog::backdrop {
  background: #000b;
}
dialog h2 {
  font:
    700 31px Barlow,
    sans-serif;
  margin: 0;
}
dialog p {
  font-size: 13px;
  color: #ceccbc;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
dialog button:disabled {
  opacity: 0.4;
  cursor: default;
}
#crop-box {
  position: relative;
  display: table;
  max-width: 100%;
  margin: 12px auto;
  cursor: crosshair;
  line-height: 0;
  touch-action: none;
}
#capture-preview {
  display: block;
  max-width: 100%;
  max-height: 45vh;
}
#crop-rect {
  position: absolute;
  border: 2px solid #ff813e;
  background: #ff893525;
  pointer-events: none;
}
.tv-tools button:hover,
dialog button:hover {
  border-color: #d18c5d;
}
@media (max-aspect-ratio: 1/1) {
  #air {
    gap: 12px;
    padding: 14px;
  }
  .wall-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.34fr) minmax(0, 1fr);
    gap: 12px;
  }
  .wall-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    gap: 9px;
  }
  .wall-chat,
  .wall-members {
    padding: 12px;
  }
  .wall-side h2 {
    font-size: 21px;
  }
  .wall-members li {
    font-size: 17px;
  }
  .tv-tools {
    max-width: 96vw;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .spot-copy h1 {
    max-width: 90%;
  }
  .spot-visual {
    height: 51%;
    width: 53%;
  }
  .wall-head {
    padding-bottom: 12px;
  }
  .tv-tools button {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot-visual img {
    animation: none;
  }
  .tv-tools {
    transition: none;
  }
}
#chat-idle:has(b) {
  display: grid;
  gap: 0.75em;
  width: 100%;
}
#chat-idle b {
  font-size: 0.73em;
  letter-spacing: 0.1em;
  color: #dfb689;
}
#chat-idle strong {
  color: #f5d5aa;
}
#chat-idle span {
  display: block;
}
.wall-side:has(.wall-members[hidden]) {
  grid-template-rows: minmax(0, 1fr);
}
@media (max-aspect-ratio: 1/1) {
  .wall-side:has(.wall-members[hidden]) {
    grid-template-columns: 1fr;
  }
}

.spot-visual img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  max-width: 100%;
}
.spot-visual {
  bottom: 4%;
}
