/* GuestMint — hard colour #00C853 (vivid green) on a white canvas. */
:root {
  --brand: #00C853;
  --brand-dark: #00953f;
  --ink: #101812;
  --muted: #5a6b5e;
  --line: #dce8de;
  --soft: #eefaf1;
  --danger: #d50000;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: var(--brand-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site {
  border-bottom: 3px solid var(--brand);
  background: #fff;
  position: sticky; top: 0; z-index: 40;
}
header.site .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.05rem;
}
.logo .mint { color: var(--brand-dark); }
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 0.95rem; }
header.site nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
header.site nav a:hover { color: var(--brand-dark); }
.badge-local {
  font-size: 0.78rem; font-weight: 700; color: var(--brand-dark);
  border: 2px solid var(--brand); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}

.hero { padding: 44px 0 8px; text-align: center; }
.hero h1 { font-size: 2.5rem; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero h1 .hl { color: var(--brand-dark); }
.hero p.lede { font-size: 1.13rem; color: var(--muted); max-width: 640px; margin: 0 auto; }

.screen { display: none; padding: 26px 0 60px; }
.screen.active { display: block; }
.screen h2 { font-size: 1.55rem; letter-spacing: -0.02em; margin: 6px 0 6px; }
.screen .sub { color: var(--muted); margin: 0 0 20px; max-width: 640px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .hero h1 { font-size: 1.9rem; } }
.card {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff;
}
.card.brand { border-color: var(--brand); background: var(--soft); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.97rem; }

label.field { display: block; font-weight: 700; font-size: 0.9rem; margin: 14px 0 6px; }
label.field:first-child { margin-top: 0; }
input[type="text"], select {
  width: 100%; padding: 12px 14px; font-size: 1.05rem; border: 2px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
input[type="text"]:focus, select:focus { outline: none; border-color: var(--brand); }
input.code-input { text-transform: uppercase; letter-spacing: 0.22em; font-weight: 800; text-align: center; font-size: 1.35rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: 2px solid var(--brand);
  font-weight: 800; font-size: 1.02rem; padding: 12px 22px; border-radius: 10px;
  cursor: pointer; text-decoration: none; width: 100%; margin-top: 16px;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--soft); border-color: var(--brand-dark); color: var(--brand-dark); }
.btn.small { width: auto; padding: 8px 16px; font-size: 0.92rem; margin-top: 0; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { width: auto; flex: 1; }

.room-code {
  font-size: 2.6rem; font-weight: 900; letter-spacing: 0.18em; text-align: center;
  color: var(--ink); margin: 6px 0 2px;
}
.room-link {
  word-break: break-all; background: #fff; border: 2px dashed var(--brand); border-radius: 10px;
  padding: 10px 12px; font-size: 0.92rem; text-align: center;
}
#qr-box { display: flex; justify-content: center; padding: 10px 0 2px; }
#qr-box canvas { border-radius: 8px; }

.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }
.vtile { position: relative; background: #0c120d; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.vtile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vtile .tag {
  position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,0.72); color: #fff;
  font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.vtile .novideo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #b9d6bf; font-weight: 700; text-align: center; padding: 16px;
}

.meter { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.meter > div { height: 100%; width: 0%; background: var(--brand); transition: width 0.08s linear; }

.statusbar {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin: 18px 0;
  font-weight: 700;
}
.rec-dot { width: 13px; height: 13px; border-radius: 50%; background: #bbb; display: inline-block; vertical-align: -1px; }
.rec-dot.on { background: var(--danger); animation: pulse 1.1s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.rec-time { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.quality { color: var(--muted); font-weight: 600; font-size: 0.92rem; }

.controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.controls .btn { width: auto; margin-top: 0; flex: 1; min-width: 130px; }

.chat { border: 2px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; height: 300px; }
.chat .log { flex: 1; overflow-y: auto; padding: 12px 14px; font-size: 0.94rem; }
.chat .log p { margin: 0 0 8px; }
.chat .log .who { font-weight: 800; }
.chat form { display: flex; border-top: 2px solid var(--line); }
.chat input { flex: 1; border: none; padding: 12px 14px; font-size: 1rem; border-radius: 0 0 0 12px; }
.chat input:focus { outline: none; }
.chat button { border: none; background: var(--brand); color: #fff; font-weight: 800; padding: 0 20px; cursor: pointer; border-radius: 0 0 12px 0; }

.markers { margin-top: 8px; }
.markers li { margin-bottom: 4px; }
.markers .mt { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-dark); }

.track {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.track h3 { margin: 0 0 2px; }
.track .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 10px; }
.track canvas.wave { width: 100%; height: 74px; display: block; background: var(--soft); border-radius: 8px; }
.track audio, .track video.thumb { width: 100%; margin-top: 10px; }
.clean-controls { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 14px 0; align-items: center; }
.clean-controls label { font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
.clean-controls input[type="range"] { accent-color: var(--brand); }
.clean-result { font-weight: 700; color: var(--brand-dark); }

.notice {
  border-left: 5px solid var(--brand); background: var(--soft); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 18px 0;
}
.notice.warn { border-left-color: var(--danger); background: #fdf0f0; }
.notice p { margin: 0; }
.hidden { display: none !important; }
.error { color: var(--danger); font-weight: 700; min-height: 1.4em; }
.ok-msg { color: var(--brand-dark); font-weight: 700; }

section.prose { padding: 36px 0 60px; max-width: 760px; }
section.prose h1 { font-size: 2.1rem; letter-spacing: -0.02em; }
section.prose h2 { margin-top: 34px; }
section.prose li { margin-bottom: 8px; }
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps li { padding-left: 52px; position: relative; margin-bottom: 18px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center;
}

footer.site { border-top: 2px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: var(--ink); font-weight: 600; text-decoration: none; }
