/* receiver/style.css */
:root {
  --ink:#173f3e;
  --muted:#71807a;
  --paper:#f5f3e9;
  --accent:#ef7847;
  --line:#dcded3;
  --mint:#c4e9c8;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #ed7849;
  outline-offset: 4px;
}
button:disabled {
  opacity: .5;
  cursor: wait;
}
button {
  transition: background .18s, transform .18s;
}
button:active {
  transform: translateY(1px);
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.3vw;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 1px;
}
.brand-light {
  font-weight: 400;
  margin-left: 3px;
}
.brand-mark {
  background: var(--ink);
  color: var(--paper);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}
.brand-mark span {
  font-size: 18px;
  margin-left: -4px;
  align-self: flex-start;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.prototype {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
}
.icon-button {
  background: none;
  border: 0;
  padding: 8px;
  font-size: 20px;
}
.icon-button span {
  font-size: 11px;
  vertical-align: middle;
  margin-left: 5px;
}
.landing {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: calc(100vh - 155px);
  min-height: calc(100svh - 155px);
  padding: 28px 3vw 0 4.3vw;
  gap: 0;
}
.intro {
  padding: 34px 4vw 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
h1 {
  font-size: clamp(64px, 7.2vw, 116px);
  letter-spacing: -.072em;
  line-height: .97;
  margin: 29px 0 22px;
  font-weight: 650;
}
h1 em {
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -.06em;
}
.intro-copy {
  font-size: 14px;
  line-height: 1.8;
  color: #6c7b74;
  margin: 0 0 27px;
}
.session-config {
  width: 100%;
  max-width: 360px;
}
.field-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.segmented {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 4px;
  gap: 4px;
  margin-top: 9px;
}
.segmented button {
  flex: 1;
  text-align: left;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  padding: 13px 12px;
}
.segmented button span {
  display: block;
  font-size: 9px;
  color: #738578;
  font-weight: 400;
  margin-top: 5px;
}
.segmented .selected {
  background: #e1e9d9;
}
.jump-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  padding: 14px 0 19px;
}
.jump-option input {
  accent-color: var(--ink);
}
.jump-option small {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.primary,
.secondary {
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-radius: 9px;
  border: 0;
  font-size: 12px;
  font-weight: 650;
}
.primary {
  background: var(--ink);
  color: #fff8e7;
}
.primary:hover {
  background: #285b50;
}
.primary span {
  font-size: 21px;
}
.secondary {
  background: transparent;
  border: 1px solid var(--line);
  margin-top: 10px;
}
.secondary:hover {
  background: #e9ede2;
}
.secondary span {
  font-size: 20px;
}
.start-note {
  font-size: 9px;
  color: var(--muted);
  margin: 14px 0 0;
}
.intro-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 1px;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 27px 0 23px;
}
.world {
  position: relative;
  min-width: 0;
  min-height: 650px;
  border-radius: 18px;
  overflow: hidden;
  background: #acd7c7;
}
.world canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.world-label {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pill {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.4px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .53);
  border-radius: 20px;
  background: rgba(255, 255, 255, .267);
}
.world-location {
  font-family: Georgia, serif;
  font-size: 12px;
  color: #305b54;
}
.scene-caption {
  position: absolute;
  bottom: 30px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff8e3;
}
.caption-line {
  height: 35px;
  width: 2px;
  background: #f6ca76;
}
.scene-caption strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 500;
  display: block;
}
.scene-caption span:not(.caption-line) {
  font-size: 10px;
  display: block;
  margin-top: 6px;
  color: #ecf0d9;
}
.bottom-bar {
  height: 60px;
  padding: 0 4.3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted);
  gap: 12px;
}
.bottom-bar > span {
  letter-spacing: 1px;
  font-size: 8px;
}
.key {
  display: inline-block;
  border: 1px solid #d5dacf;
  border-bottom-width: 2px;
  border-radius: 4px;
  min-width: 18px;
  text-align: center;
  padding: 3px;
  font-size: 8px;
  margin-left: 10px;
  margin-right: 3px;
}
.hidden {
  display: none !important;
}
.playing {
  grid-template-columns: 1fr;
  min-height: calc(100vh - 155px);
  min-height: calc(100svh - 155px);
  padding: 18px 3vw 0;
}
.playing .intro {
  display: none;
}
.playing .world {
  min-height: calc(100vh - 173px);
  min-height: calc(100svh - 173px);
}
.playing .world-label {
  display: none;
}
.hud {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}
.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  gap: 30px;
}
.metric {
  min-width: 90px;
}
.metric small {
  font-size: 9px;
  letter-spacing: 1.5px;
  display: block;
}
.metric strong {
  font-size: 34px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.session-progress {
  width: 270px;
}
.session-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, .4);
  margin-top: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.progress-track i {
  display: block;
  height: 100%;
  background: var(--ink);
  width: 0;
}
.round-button {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, .53);
  border-radius: 50%;
  width: 43px;
  height: 43px;
  background: rgba(247, 246, 231, .667);
  font-size: 18px;
}
.cue-card {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 12px;
  background: rgba(253, 249, 232, .933);
  box-shadow: 0 5px 30px rgba(23, 63, 62, .086);
  white-space: nowrap;
}
.cue-card > span {
  font-size: 28px;
  color: #d96f42;
}
.cue-card small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cue-card strong {
  font-size: 14px;
}
.combo {
  position: absolute;
  top: 103px;
  left: 30px;
  font-size: 14px;
  color: #e16c37;
  font-weight: 800;
}
.feedback {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 650;
  text-shadow: 0 1px 10px #ffffff;
  white-space: nowrap;
}
.touch-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.touch-controls button {
  background: rgba(246, 246, 230, .86);
  border: 1px solid rgba(255, 255, 255, .47);
  width: 52px;
  height: 48px;
  border-radius: 12px;
  font-size: 24px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.touch-controls button span {
  font-size: 7px;
  display: block;
  margin-top: -3px;
  letter-spacing: 1px;
}
.overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 62, 57, .3);
  backdrop-filter: blur(4px);
  z-index: 5;
}
.overlay-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 36px;
  max-width: 410px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 20px 80px rgba(19, 58, 52, .2);
}
.overlay-card h2,
dialog h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  margin: 18px 0;
}
.overlay-card p,
dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.overlay-card .primary,
.overlay-card .secondary {
  max-width: none;
}
.countdown-number {
  font-size: 100px;
  line-height: 1.1;
  font-family: Georgia, serif;
  color: var(--accent);
}
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}
.result-stats div {
  padding: 15px;
  background: #e8ebde;
  border-radius: 10px;
}
.result-stats strong {
  display: block;
  font-size: 26px;
}
.result-stats span {
  font-size: 9px;
  letter-spacing: 1px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 38px;
  text-align: center;
  max-width: 440px;
  width: calc(100% - 30px);
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(20, 51, 47, .533);
  backdrop-filter: blur(5px);
}
dialog .eyebrow {
  justify-content: center;
}
dialog .dialog-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 25px;
}
dialog small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 16px;
}
dialog .secondary {
  max-width: none;
}
.qr-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0 10px;
  font-size: 12px;
}
.qr-placeholder img {
  height: 200px;
  width: 200px;
  border-radius: 7px;
  padding: 8px;
  background: #fff;
}
.pair-code {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: 8px;
  font-variant-numeric: tabular-nums;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff5de;
  padding: 15px 22px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 20;
  max-width: 90vw;
}
.receiver-mode .intro {
  display: none;
}
.receiver-mode {
  grid-template-columns: 1fr;
}
.receiver-mode .world {
  min-height: calc(100vh - 183px);
  min-height: calc(100svh - 183px);
}
@media (min-width: 1500px) {
  .intro {
    padding-top: 55px;
  }
  .intro-copy {
    font-size: 17px;
  }
  .session-config,
  .primary,
  .secondary,
  .intro-footer {
    max-width: 420px;
  }
  .world {
    min-height: 740px;
  }
  .segmented button {
    font-size: 14px;
  }
  .primary,
  .secondary {
    font-size: 14px;
  }
  .start-note {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .topbar {
    height: 72px;
    padding: 0 22px;
  }
  .top-actions {
    gap: 10px;
  }
  .prototype {
    display: none;
  }
  .brand {
    font-size: 12px;
  }
  .landing {
    padding: 20px;
    grid-template-columns: 1fr;
  }
  .intro {
    padding: 15px 0 25px;
  }
  .intro h1 {
    font-size: 76px;
    margin-top: 20px;
  }
  .intro-copy {
    margin-bottom: 22px;
  }
  .session-config,
  .primary,
  .secondary,
  .intro-footer {
    max-width: none;
  }
  .intro-footer {
    display: none;
  }
  .world {
    min-height: 490px;
  }
  .bottom-bar {
    height: auto;
    min-height: 60px;
    padding: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bottom-bar > span {
    display: none;
  }
  .playing {
    padding: 10px;
    min-height: calc(100vh - 135px);
    min-height: calc(100svh - 135px);
  }
  .playing .world {
    min-height: calc(100vh - 155px);
    min-height: calc(100svh - 155px);
  }
  .hud-top {
    padding: 20px 18px;
    gap: 20px;
  }
  .session-progress {
    width: 180px;
  }
  .metric {
    min-width: 55px;
  }
  .metric strong {
    font-size: 27px;
  }
  .cue-card {
    max-width: 95%;
    white-space: normal;
    width: max-content;
  }
  .cue-card strong {
    font-size: 12px;
  }
  .world-location {
    display: none;
  }
  .combo {
    left: 18px;
  }
  .feedback {
    font-size: 15px;
  }
  .scene-caption {
    bottom: 25px;
  }
  .receiver-mode .world {
    min-height: calc(100vh - 170px);
    min-height: calc(100svh - 170px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (min-width: 851px) and (max-height: 820px) {
  .landing {
    padding-top: 20px;
  }
  .intro {
    padding-top: 14px;
  }
  .intro h1 {
    font-size: clamp(62px, 6.1vw, 92px);
    margin: 18px 0 16px;
  }
  .intro-copy {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .segmented button {
    padding: 10px;
  }
  .jump-option {
    padding: 10px 0 14px;
  }
  .primary,
  .secondary {
    padding: 13px 18px;
  }
  .intro-footer {
    padding: 18px 0;
    font-size: 7px;
  }
  .world {
    min-height: 565px;
  }
  .playing .world {
    min-height: calc(100vh - 173px);
    min-height: calc(100svh - 173px);
  }
}
.probe {
  padding: 40px;
}
.probe pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.probe canvas,
.probe video {
  max-width: 100%;
}
.bench {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
}
.bench canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}
.lives {
  position: absolute;
  top: 105px;
  right: 30px;
  color: #a63e32;
  font-size: 23px;
  letter-spacing: 3px;
  text-shadow: 0 1px 8px #fff;
}
.lives small {
  display: block;
  text-align: right;
  letter-spacing: 1.5px;
  font-size: 10px;
  color: var(--ink);
  margin-top: 3px;
}
.lives.last-life {
  color: #b92d26;
}
.feedback {
  max-width: 90%;
  text-align: center;
  white-space: normal;
}
.combo {
  top: 110px;
}
@media (max-width: 850px) {
  .lives {
    right: 18px;
    top: 94px;
    font-size: 20px;
  }
}
