* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #fff2cf;
  background: #080b0d;
  font:
    600 16px system-ui,
    sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  padding: 4px clamp(8px, 2vw, 32px);
  border-bottom: 1px solid #b99556;
  background: linear-gradient(110deg, color-mix(in srgb, var(--accent, #126b5c) 36%, #101516), #141819);
}
header strong {
  font:
    700 21px Georgia,
    serif;
  margin-right: auto;
}
header button,
header input,
#fullscreen-help button,
#status button {
  cursor: pointer;
}
header button,
#fullscreen-help button,
#status button {
  border: 1px solid #c7a56b;
  border-radius: 7px;
  padding: 8px 16px;
  min-height: 42px;
  background: color-mix(in srgb, var(--accent, #126b5c) 45%, #132022);
  color: #fff5e4;
  font: inherit;
}
header label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
#fullscreen, #fullscreen-help button {
  min-height: 44px;
}
.presentation-fullscreen header {
  position: absolute;
  z-index: 4;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  padding: 4px 8px;
  min-height: 0;
  border: 0;
  background: none;
}
.presentation-fullscreen header > :not(#fullscreen) {
  display: none;
}
.presentation-fullscreen #fullscreen { font-size: 14px; }
#fullscreen-help {
  position: fixed;
  inset: 0;
  width: min(90vw, 26rem);
  height: fit-content;
  margin: auto;
  padding: 1.25rem;
  border: 1px solid #c7a56b;
  border-radius: 12px;
  background: #182025;
  background: color-mix(in srgb, var(--accent, #126b5c) 23%, #131a1f);
  color: #fff5e4;
}
#fullscreen-help:not([open]) { display: none; }
#fullscreen-help::backdrop { background: #000a; }
#fullscreen-help h2 { margin: 0; font: 700 1.35rem Georgia, serif; }
#fullscreen-help p { line-height: 1.55; }
header input {
  width: 35px;
  height: 32px;
  padding: 1px;
  border: 1px solid #c7a56b;
  border-radius: 4px;
  background: transparent;
}
main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: black;
}
#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--scale, 0.4));
}
iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #070b10;
}
iframe[hidden] {
  display: none;
}
#status {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1rem;
  background: #101819;
}
#status[hidden] {
  display: none;
}
@media (max-width: 550px) {
  header {
    gap: 0.5rem;
  }
  header strong {
    font-size: 16px;
  }
  header label {
    font-size: 0;
  }
  header button {
    font-size: 14px;
  }
}

[hidden] {
  display: none !important;
}
#message {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 8px;
  margin: 0;
  padding: 0.7em 1em;
  max-width: min(90%, 540px);
  border: 1px solid #bd9b5d;
  border-radius: 8px;
  background: #18191b;
  color: #ffebc3;
  font-size: 14px;
}
body.monitor {
  height: 100dvh;
  position: relative;
  background: black;
}
.monitor main {
  height: 100%;
  width: 100%;
}
.monitor nav {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.monitor nav:focus-within,
.monitor nav:hover,
.monitor[data-controls='true'] nav {
  opacity: 1;
}
.monitor nav button {
  cursor: pointer;
  background: #1d2025ee;
  color: #fff0c8;
  font: 600 14px system-ui;
  padding: 10px;
  border: 1px solid #a78749;
  border-radius: 6px;
}
.monitor #message {
  top: 8px;
  left: 8px;
  right: auto;
}
@media (max-width: 550px) {
  header {
    gap: 0.3rem;
  }
  header button {
    padding: 6px 8px;
  }
  header strong {
    font-size: 14px;
  }
  header input {
    width: 28px;
  }
}
