@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/roboto-latin-300-normal.woff2") format("woff2");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/roboto-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/roboto-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #16130f;
  --ink: #f6f1e8;
  --muted: #b7ab9c;
  --line: #3a322a;
  --accent: #e39a4d;
  --stage: #0c0b09;
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 400;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.mark {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sizes {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.sizes button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.sizes button[aria-pressed="true"] {
  color: #1a140e;
  background: var(--accent);
  border-color: var(--accent);
}

.stage {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.stage[data-size="small"] {
  width: min(100%, 480px);
}

.stage[data-size="medium"] {
  width: min(100%, 720px);
}

#remote,
#local {
  background: #000;
  object-fit: cover;
  border-radius: 16px;
}

#remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#local {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.waiting {
  position: absolute;
  inset: 0 0 auto;
  margin: 0;
  padding: 22px;
  color: var(--muted);
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}

.id-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a140e;
  background: var(--accent);
  border: 0;
  padding: 12px 16px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

#copy,
#hangup,
#mute {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

#mute[aria-pressed="true"] {
  color: #1a140e;
  background: var(--accent);
  border-color: var(--accent);
}

