:root {
  --bg: #0f140e;
  --panel: #1c2418;
  --paper: #f3efe6;
  --accent: #c45c26;
  --accent-soft: #e8a87c;
  --muted: #8a9486;
  --line: rgba(243, 239, 230, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--paper);
}

.muted { color: var(--muted); font-size: 0.9rem; }
.hint { font-size: 0.9rem; color: var(--muted); margin-top: 0.75rem; line-height: 1.4; }
.row { display: flex; gap: 0.4rem; margin-bottom: 0.55rem; flex-wrap: wrap; }

button, .primary {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #243020;
  color: var(--paper);
  padding: 0.45rem 0.75rem;
  border-radius: 3px;
}
button.primary { border-color: var(--accent); background: rgba(196, 92, 38, 0.25); }
button:hover { border-color: var(--accent-soft); }

label { display: grid; gap: 0.25rem; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--muted); }
select, textarea, input[type="number"], input[type="text"] {
  font: inherit;
  background: #141a12;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.45rem 0.55rem;
  border-radius: 3px;
}
textarea { width: 100%; resize: vertical; }

.phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.phone.tall { width: min(100%, 300px); }
.phone video, .phone canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone canvas.hidden { display: none; }
.caption {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 3.2rem;
  z-index: 2;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  pointer-events: none;
}
.caption .word { opacity: 0.25; }
.caption .word.on { opacity: 1; color: #fff; }
.credit {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.7rem;
  z-index: 2;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}
.transport {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: min(100%, 300px);
}
.transport input[type="range"] { flex: 1; }
.ing { font-size: 0.85rem; margin: 0.25rem 0; }
.ing a { color: var(--accent-soft); }
