:root {
  --black: #0A0A0A;
  --card: #141414;
  --gold: #F4B400;
  --yellow: #FFD200;
  --white: #FFFFFF;
  --muted: #C4C4C4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: "Montserrat", "Roboto", sans-serif;
  color: var(--white);
  background: #000;
}

body.booth {
  min-height: 100vh;
  overflow: auto;
  background:
    linear-gradient(135deg, #000 0 46%, transparent 46%),
    linear-gradient(135deg, transparent 54%, var(--gold) 54%);
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 24px;
}

.booth-top {
  width: min(380px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--white);
}

.brand strong { font-size: 1.05rem; }
.brand span {
  color: var(--yellow);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.num-pill {
  background: var(--yellow);
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
  padding: 6px 12px;
  border-radius: 10px;
  letter-spacing: 1px;
  border: 2px solid #000;
}

.card {
  width: min(380px, 100%);
  background: var(--card);
  border-radius: 22px;
  padding: 16px 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ghost {
  background: none;
  border: 0;
  color: #bbb;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

h1 { font-size: 1.12rem; margin-bottom: 4px; }
.sub {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.screen { display: flex; flex-direction: column; }

.frame-stage {
  position: relative;
  width: min(68%, 230px);
  aspect-ratio: 9 / 16;
  height: auto;
  background: #111;
  border-radius: 12px;
  margin: 0 auto 12px;
  overflow: hidden;
}

.frame-stage > img,
.frame-stage > video,
.frame-stage > canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.frame-stage > canvas {
  object-fit: fill;
}

.frame-stage.adjust {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.frame-stage.adjust:active {
  cursor: grabbing;
}

.frame-stage.live > video {
  object-fit: cover;
  z-index: 1;
  background: #000;
}

.frame-overlay {
  z-index: 4;
  pointer-events: none;
  object-fit: contain !important;
}

.zoom-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: -4px 0 12px;
}

.zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: #0d0d0d;
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.thumbs button {
  position: relative;
  flex: 0 0 54px;
  height: 96px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  padding: 0;
}

.thumbs button.active { border-color: var(--yellow); }

.thumbs .thumb-photo,
.thumbs .thumb-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.thumbs .thumb-photo {
  object-fit: cover;
  object-position: center 18%;
}

.thumbs .thumb-frame { object-fit: contain; }

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 13px 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary { background: var(--yellow); color: #000; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.hidden { display: none !important; }

.status {
  color: #f0c36a;
  font-size: 0.82rem;
  min-height: 1.1em;
  margin: 4px 0 8px;
}

.share-form {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.share-form input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #0d0d0d;
  color: #fff;
}

.foot {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #222;
  text-align: center;
}
