:root {
  --paper: #efeae2;
  --glass: #f7f4ee;
  --ink: #1c1915;
  --muted: #5e584f;
  --line: #ddd4c6;
  --green: #1d4a38;
  --green-2: #e7f0ea;
  --card: #fffdf8;
  --stamp: #9d3d24;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
button, a { font: inherit; }
button { cursor: pointer; }

.stage {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(240px, 320px);
  gap: 28px;
  justify-content: center;
  align-items: start;
  padding: 28px 20px 48px;
}
.device {
  background: #1c1915;
  border-radius: 28px;
  padding: 12px;
}
.glass {
  position: relative;
  height: min(840px, calc(100vh - 56px));
  background: var(--glass);
  border-radius: 18px;
  overflow: hidden;
}
#view { height: 100%; }
.screen { height: 100%; display: flex; flex-direction: column; padding: 22px 20px 18px; }
.screen.ad {
  padding: 0;
  color: #f6f3ec;
  background: var(--green);
}
button.screen.ad { width: 100%; border: 0; text-align: left; }
.ad-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 24px 22px; }
.ad h2 { margin: 0; font-family: var(--serif); font-size: 48px; font-weight: 560; letter-spacing: -0.03em; line-height: 0.95; }
.ad p { margin: 12px 0 0; font-size: 18px; max-width: 16em; }
.touch {
  margin-top: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
.brand {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 14px;
}
h2.screen-title { margin: 8px 0 0; font-family: var(--serif); font-size: 36px; font-weight: 560; letter-spacing: -0.03em; }
.sub { margin: 6px 0 0; color: var(--muted); }

.choices { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.choice, .action, .file, .key, .step button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-align: left;
  border-radius: 14px;
}
.choice { padding: 16px 16px 14px; }
.choice b { display: block; font-size: 22px; }
.choice span { color: var(--muted); }
.choice.go { background: var(--green); color: #f6f3ec; border-color: var(--green); }
.choice.go span { color: #d5e4db; }

.foot { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 13px; }
.files { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; overflow: auto; flex: 1; min-height: 0; }
.file { padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; }
.file.is-on { border-color: var(--green); background: var(--green-2); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.step { display: flex; align-items: center; gap: 8px; }
.step button { width: 42px; height: 42px; text-align: center; font-size: 22px; }
.step b { min-width: 1.4em; text-align: center; font-size: 22px; }
.action {
  margin-top: 14px;
  background: var(--green);
  color: #f6f3ec;
  border-color: var(--green);
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 18px;
}
.action:disabled, .ghost:disabled, #pay:disabled { opacity: 0.4; cursor: default; }
.linkish { background: none; border: 0; color: var(--green); padding: 0; font-weight: 700; }

.pay { align-items: center; text-align: center; }
.sum { font-family: var(--serif); font-size: 56px; margin: 8px 0 0; letter-spacing: -0.04em; }
.timer { color: var(--stamp); font-weight: 700; }
.qr { width: 196px; height: 196px; margin: 16px 0; background: white; border-radius: 8px; }
.bar { height: 8px; background: #e7e1d6; border-radius: 99px; overflow: hidden; margin-top: 18px; }
.bar i { display: block; height: 100%; background: var(--green); width: 20%; }
.center { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.key { text-align: center; padding: 16px 0; font-size: 22px; font-weight: 700; }
.dots { letter-spacing: 0.4em; font-size: 28px; min-height: 1.2em; }
.error { color: var(--stamp); font-weight: 700; }

#hotspot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #1c1915;
  opacity: 0.28;
}

.remote h1 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 560; }
.eyebrow { margin: 0; color: var(--stamp); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.lead, .hint { color: var(--muted); }
.now { font-weight: 700; }
.remote button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #f6f3ec;
  font-weight: 700;
}
.remote .ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.links { display: flex; flex-direction: column; gap: 6px; }
.links a { color: var(--green); font-weight: 700; }

@media (max-width: 800px) {
  .stage { grid-template-columns: 1fr; }
  .glass { height: 78vh; }
}
