@font-face {
  font-family: Manrope;
  src: url("/static/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/static/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  font-family:
    Manrope,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #252329;
  background: #f6f5f1;
  font-synthesis: none;
  font-size: 16px;
  --ink: #252329;
  --line: #e0ddd7;
  --accent: #ed765f;
  --preview-height: min(640px, calc(100svh - 232px));
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
[hidden] {
  display: none !important;
}
.topbar {
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1120px) / 2));
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  color: var(--ink);
  font-size: 1.75rem;
  letter-spacing: -1.5px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  border-left: 1px solid #d5d1c9;
  padding-left: 13px;
  margin-left: 14px;
}
.local-badge {
  font-size: 0.75rem;
  color: #716b72;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.local-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b947b;
}
main {
  max-width: 1176px;
  margin: auto;
  padding: 26px 28px 14px;
}
.page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  font-weight: 750;
  color: #9a5040;
  margin: 0 0 6px;
}
h1 {
  font-size: 1.625rem;
  letter-spacing: -0.7px;
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 0;
}
p {
  line-height: 1.5;
}
.game-picker {
  width: 218px;
}
.game-picker label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #807880;
  margin: 0 0 5px;
}
.game-picker select {
  min-height: 40px;
  padding: 8px 10px;
  background: #fffefa;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 28px;
  align-items: start;
}
.stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #eeece6;
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e1ddd5;
  gap: 12px;
  background: #f1efe9;
}
.stage-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.stage-head h2 {
  font-size: 0.8125rem;
  font-weight: 650;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#preview-label {
  font-size: 0.75rem;
  color: #807680;
  white-space: nowrap;
}
.timer {
  font:
    600 0.6875rem ui-monospace,
    monospace;
  color: #63595f;
  white-space: nowrap;
}
.preview-mat {
  position: relative;
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at 50% 50%, #e8e4db, #eeece6);
}
#live-stage,
#review-canvas,
#review-video {
  height: var(--preview-height);
  min-height: 360px;
  max-height: 640px;
  aspect-ratio: 9/16;
  width: auto;
  max-width: 100%;
  border-radius: 12px;
  background: #17151a;
  box-shadow: 0 6px 24px #27212614;
  overflow: hidden;
}
#live-stage {
  display: flex;
  flex-direction: column;
}
#camera-panel {
  position: relative;
  flex: 0 0 var(--face-space, 35%);
  width: 100%;
  min-height: 0;
  background: #ece3d7;
  overflow: hidden;
}
#camera-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
#camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 14px;
  color: #807064;
  background: radial-gradient(ellipse at 30% 10%, #f5e9d8, #e7ded5);
}
#camera-placeholder svg {
  width: 26px;
  height: 26px;
  stroke: #9d8575;
  stroke-width: 1.6;
  margin-bottom: 4px;
}
#camera-placeholder strong {
  font-size: 0.75rem;
  font-weight: 650;
}
#camera-placeholder > span {
  font-size: 0.75rem;
  color: #a08b7c;
}
.camera-label {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 0.5625rem;
  font-weight: 650;
  background: #ffffffbd;
  color: #716258;
  padding: 3px 7px;
  border-radius: 5px;
}
#game-mount {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #fff;
  overflow: hidden;
}
#live-stage.bottom #camera-panel {
  order: 2;
}
iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}
#review-video {
  object-fit: contain;
  display: block;
}
.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  font-size: 0.75rem;
  color: #71656e;
  border-top: 1px solid #e1ddd5;
}
.controls {
  padding: 22px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 18px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.panel-heading p {
  font-size: 0.75rem;
  color: #71656e;
  margin: 4px 0 0;
}
.step {
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e0d9ce;
  border-radius: 50%;
  color: #9b8877;
  flex-shrink: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}
legend,
label {
  font-size: 0.75rem;
  font-weight: 650;
}
legend {
  margin-bottom: 9px;
}
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 13px 10px 11px;
  gap: 5px;
  border: 1px solid #e3dfd8;
  border-radius: 10px;
  cursor: pointer;
  min-width: 0;
}
.choice:has(input:checked) {
  border-color: #50443b;
  background: #f4f0e8;
  box-shadow: inset 0 0 0 0.5px #50443b;
}
.choice input {
  position: absolute;
  right: 10px;
  top: 11px;
}
.choice strong {
  font-size: 0.75rem;
  margin-top: 2px;
}
.choice small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #71656e;
  line-height: 1.35;
}
.mini-frame {
  display: flex;
  flex-direction: column;
  width: 23px;
  height: 31px;
  background: #e3ddd0;
  border: 1px solid #c5bbae;
  border-radius: 4px;
  padding: 2px;
  gap: 2px;
  margin-bottom: 3px;
}
.mini-frame i {
  height: 35%;
  background: #c7a388;
  border-radius: 1px;
}
.mini-frame b {
  flex: 1;
  background: #b1bba1;
  border-radius: 1px;
}
.game-frame b {
  background: #b1bba1;
}
.field {
  margin-bottom: 17px;
}
.field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.optional {
  font-size: 0.75rem;
  color: #71656e;
  font-weight: 450;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select {
  font: inherit;
  font-size: 0.8125rem;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #ddd8cf;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  outline-offset: 3px;
}
input::placeholder {
  color: #71656e;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #4c433a;
  flex-shrink: 0;
  margin: 0;
}
.audio-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #eee9e2;
  border-bottom: 1px solid #eee9e2;
  margin-bottom: 17px;
  min-height: 56px;
  cursor: pointer;
}
.audio-option span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.audio-option strong {
  font-size: 0.75rem;
}
.audio-option small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #71656e;
}
.primary,
.quiet,
.text-button {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  min-height: 46px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px;
  text-decoration: none;
  cursor: pointer;
}
.primary {
  background: #252329;
  color: #fff;
  border: 1px solid #252329;
}
.record-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f18b74;
  display: inline-block;
  flex-shrink: 0;
}
.quiet {
  background: transparent;
  color: #51474f;
  border: 1px solid #ded7d0;
  margin-top: 9px;
}
.text-button {
  color: #8b7c85;
  background: none;
  border: 0;
  min-height: 40px;
  font-size: 0.75rem;
  padding: 8px;
  margin-top: 5px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.session-note {
  font-size: 0.75rem;
  text-align: center;
  color: #71656e;
  margin: 9px 0 0;
}
.status {
  font-size: 0.75rem;
  color: #817780;
  line-height: 1.45;
  margin: 15px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid #eee9e2;
  overflow-wrap: anywhere;
}
.status[data-error="true"] {
  color: #a13e35;
  border-top-color: #f2d2c8;
  background: #fff3ed;
  padding: 10px;
  border-radius: 8px;
}
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  color: #71656e;
}
.privacy-note svg {
  width: 13px;
  height: 13px;
  stroke: #a4948c;
  stroke-width: 1.3;
  flex-shrink: 0;
  margin-top: 3px;
}
.privacy-note p {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.5;
}
.recording-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  background: #f6f1eb;
  border-radius: 10px;
  font-size: 0.75rem;
  margin: 22px 0;
}
#capture-note,
#export-status {
  font-size: 0.8125rem;
  color: #847984;
  line-height: 1.6;
}
.fine {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #8d818b;
}
.trim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.trim label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.75rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.75rem;
}
.check + .check {
  margin-bottom: 8px;
}
progress {
  width: 100%;
  height: 8px;
  accent-color: #d8886c;
  margin: 10px 0 8px;
}
footer {
  font-size: 0.75rem;
  color: #71656e;
  text-align: center;
  padding: 18px 0 0;
}
footer span {
  margin: 0 10px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #dd9076;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  :root {
    --preview-height: min(54svh, 470px);
  }
  .topbar {
    min-height: 60px;
    padding: 12px 18px;
    gap: 8px 16px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand span {
    font-size: 0.75rem;
  }
  .local-badge {
    font-size: 0.75rem;
  }
  main {
    padding: 20px 16px 80px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  .eyebrow {
    font-size: 0.5625rem;
  }
  h1 {
    font-size: 1.1875rem;
    letter-spacing: -0.4px;
  }
  .game-picker {
    width: 148px;
    flex-shrink: 0;
  }
  .game-picker select {
    font-size: 0.8125rem;
    min-height: 44px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .preview-mat {
    padding: 16px;
  }
  #live-stage,
  #review-canvas,
  #review-video {
    min-height: 300px;
  }
  .stage-head {
    padding: 12px 14px;
  }
  .stage-head > div {
    gap: 8px;
  }
  .stage-head h2 {
    font-size: 0.75rem;
  }
  .stage-caption {
    padding: 10px 14px;
    font-size: 0.5625rem;
  }
  .stage-caption span:last-child {
    display: none;
  }
  .controls {
    padding: 20px;
  }
  .panel-heading {
    margin-bottom: 17px;
  }
  .primary {
    min-height: 48px;
  }
  #setup #record,
  #during #stop,
  #review .primary,
  #saving #download {
    position: fixed;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 16px;
    width: calc(100% - 32px);
    z-index: 20;
    box-shadow: 0 4px 24px #221b2630;
  }
  .controls {
    padding-bottom: 22px;
  }
  .session-note {
    text-align: left;
  }
  body[data-phase="preparing"] .page-heading,
  body[data-phase="starting"] .page-heading,
  body[data-phase="recording"] .page-heading,
  body[data-phase="stopping"] .page-heading {
    display: none;
  }
  body[data-phase="recording"] main,
  body[data-phase="starting"] main {
    padding-top: 14px;
  }
  footer {
    line-height: 1.8;
  }
  footer span {
    margin: 0 4px;
  }
}
@media (max-width: 380px) {
  .page-heading {
    flex-wrap: wrap;
  }
  .game-picker {
    width: 100%;
  }
  .stage-head > div {
    flex-wrap: wrap;
    gap: 3px;
  }
  #preview-label {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
input[type="range"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  accent-color: #50443b;
  cursor: pointer;
}
.field > label.split-label {
  margin-top: 14px;
  margin-bottom: 0;
}
.split-value {
  display: block;
  font-size: 0.75rem;
  color: #71656e;
  font-variant-numeric: tabular-nums;
}
.preview-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-top: 1px solid var(--line);
  background: #fffefa;
}
.preview-controls output {
  font-size: 0.75rem;
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.preview-play {
  min-width: 54px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
  cursor: pointer;
}
.preview-loading {
  position: absolute;
  inset: 22px;
  display: grid;
  place-items: center;
  background: #eeece6;
  color: #71656e;
  font-size: 0.8125rem;
  text-align: center;
  padding: 24px;
  min-height: 160px;
}
#review-canvas {
  display: block;
  object-fit: contain;
}
@media (max-width: 760px) {
  .preview-controls {
    gap: 8px;
    padding: 8px 12px;
  }
  .preview-controls output {
    min-width: 72px;
    font-size: 0.6875rem;
  }
}
body[data-phase="review"][data-preview-unavailable="true"] .stage {
  display: none;
}
body[data-phase="review"][data-preview-unavailable="true"] .workspace {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}
@media (max-width: 760px) {
  html {
    scroll-padding-bottom: 88px;
  }
  .preview-controls {
    scroll-margin-bottom: 88px;
  }
}
