:root {
  --bg: #f3ecdf;
  --ink: #1a1d24;
  --muted: rgba(26, 29, 36, 0.62);
  --line: rgba(26, 29, 36, 0.14);
  --tomato: #ff4d3a;
  --display: "Unbounded", sans-serif;
  --font: "Manrope", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 14px;
  border-bottom: 1px solid var(--ink);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.mast nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 700; }
.mast nav a { text-decoration: none; }
.mast nav a:hover { color: var(--tomato); }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 36px;
  align-items: center;
  padding: 32px 0 8px;
}
h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.deck { margin: 0 0 18px; max-width: 34ch; color: rgba(26, 29, 36, 0.8); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
#cam, #shot, #lamp {
  height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
}
#cam { border: 0; background: var(--tomato); color: white; }
#cam:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(255, 77, 58, 0.28); }
#shot, #lamp { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.hint { margin: 12px 0 0; min-height: 1.4em; color: var(--muted); font-size: 14px; }
.doll {
  width: min(380px, 100%);
  margin-left: auto;
  padding: 16px 16px 12px;
  background: #fffaf3;
  border: 2px solid var(--ink);
  border-radius: 32px;
  animation: bob 3.4s ease-in-out infinite;
}
.doll.live { animation: none; }
.eyes { display: flex; justify-content: space-between; padding: 4px 28px 10px; }
.eyes i {
  position: relative;
  width: 28px;
  height: 34px;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.eyes i:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 11px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.doll.got .eyes i:before { transform: scale(1.35); }
.screen {
  position: relative;
  aspect-ratio: 1;
  background:
    linear-gradient(#2a3142 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, #2a3142 1px, transparent 1px) 0 0 / 22px 22px,
    #141820;
  border-radius: 20px;
  overflow: hidden;
}
video, #still { width: 100%; height: 100%; object-fit: cover; display: none; background: #111; }
.doll.live video { display: block; }
#still { position: absolute; inset: 0; object-fit: contain; background: #fff; }
.doll.still #still { display: block; }
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(255, 250, 243, 0.72);
  font-family: var(--display);
  font-size: 18px;
}
.beam {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16%;
  height: 2px;
  background: var(--tomato);
  opacity: 0;
  pointer-events: none;
}
.doll.live .beam { opacity: 1; animation: scan 2.2s linear infinite; }
.feet { display: flex; justify-content: space-between; padding: 10px 40px 0; }
.feet i { width: 34px; height: 12px; background: var(--ink); border-radius: 8px; }
.tape { padding: 8px 0 12px; }
.live { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ink); }
.fmt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tomato);
  font-weight: 700;
}
.val {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  word-break: break-word;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; }
#copy, #open {
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
#copy { border: 1.5px solid var(--ink); background: transparent; }
#open { background: var(--ink); color: #fffaf3; }
#log { list-style: none; margin: 18px 0 0; padding: 0; }
#log li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
#log b { font-family: var(--display); font-weight: 500; font-size: 13px; }
#log span { word-break: break-word; }
footer {
  margin-top: 28px;
  padding: 16px 0 88px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
}
.links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.links a { color: var(--ink); }
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 22px;
  background: var(--ink);
  color: #fffaf3;
  font-size: 14px;
}
.cookie button {
  border: 0;
  background: #ffe1a8;
  color: var(--ink);
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes scan {
  0% { top: 12%; }
  100% { top: 86%; }
}
@media (max-width: 900px) {
  .wrap { width: min(1080px, calc(100% - 28px)); }
  .mast { align-items: flex-start; flex-direction: column; gap: 8px; }
  .stage { grid-template-columns: 1fr; }
  .doll { margin: 0 auto; }
  #log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .doll, .beam, #cam { animation: none; transition: none; }
}

.sheet { max-width: 68ch; padding: 28px 0 8px; }
.sheet h1 { font-size: clamp(32px, 4vw, 48px); }
.sheet h2 { margin: 22px 0 8px; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.03em; }
.sheet p { margin: 0 0 14px; }
.sheet .kicker { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tomato, var(--accent)); }
