:root {
  --green: #9bf00b;
  --text: #fff;
  --mute: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .16);
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; }
body {
  font-family: var(--font); color: var(--text); background: #000;
  /* public page: own neutral design, no third-party artwork */
  background-image: radial-gradient(ellipse 70% 45% at 100% 100%, rgba(84, 137, 13, .45), transparent 75%),
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(58, 92, 9, .35), transparent 75%), linear-gradient(155deg, #000 35%, #030600 65%, #101d04);
  background-attachment: fixed;
  display: grid; place-items: center; padding: 24px 16px;
}
[hidden] { display: none !important; }
b { color: var(--green); font-weight: inherit; }
.panel { width: min(100%, 560px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.brand { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; color: var(--mute); }
.brand span { color: var(--green); letter-spacing: -.25em; margin-right: .5em; }
h1 { text-transform: uppercase; font-weight: 800; font-size: clamp(34px, 7vw, 56px); line-height: .95; letter-spacing: -.01em; }
p { color: var(--mute); font-size: 17px; line-height: 1.4; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  padding: 16px 24px; border: 0; cursor: pointer; text-decoration: none; color: #054b16; background: var(--green); transition: transform .15s, background .15s; }
.btn:hover, .btn:focus-visible { background: #c4ff5a; outline: 3px solid #fff; outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn.ghost:hover, .btn.ghost:focus-visible { background: rgba(155, 240, 11, .12); }
.actions { width: 100%; display: grid; gap: 12px; }
.sep { color: var(--mute); font-size: 13px; text-transform: uppercase; letter-spacing: .2em; }
.error { color: #ffb4a8; font-weight: 600; }

/* TV pairing */
.tv { width: min(100%, 1100px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; text-align: left; }
.qr { background: #fff; padding: 18px; width: clamp(220px, 28vw, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; display: block; }
.tv h1 { font-size: clamp(30px, 4vw, 56px); margin-bottom: 18px; }
.steps { list-style: none; display: grid; gap: 12px; color: var(--mute); font-size: clamp(16px, 1.6vw, 24px); margin-bottom: 24px; }
.steps li::before { content: "▶▶ "; color: var(--green); letter-spacing: -.25em; margin-right: .4em; }
.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: clamp(40px, 5.5vw, 84px); letter-spacing: .08em; color: var(--green); }
.url { font-size: clamp(16px, 1.6vw, 24px); color: var(--text); font-weight: 700; word-break: break-all; }
.status { margin-top: 18px; font-size: 16px; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tv .actions { grid-auto-flow: column; justify-content: start; margin-top: 24px; }
.tv .actions .btn { width: auto; font-size: 15px; padding: 12px 18px; }

/* phone activation */
.card { width: 100%; border: 1px solid var(--line); background: rgba(0, 0, 0, .45); padding: 24px; display: grid; gap: 10px; }
.card .code { font-size: 40px; }
input.codein { width: 100%; font: inherit; font-family: ui-monospace, Consolas, monospace; font-size: 28px; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  padding: 14px; background: rgba(0, 0, 0, .5); color: #fff; border: 2px solid var(--line); }
input.codein:focus { outline: none; border-color: var(--green); }

@media (max-width: 760px) {
  .tv { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .tv .actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.logo.hero { font-size: clamp(44px, 7vw, 72px); margin-bottom: 4px; }
.tv .logo.hero { font-size: clamp(40px, 5vw, 64px); }

/* forms */
.field, input.codein { width: 100%; font: inherit; font-size: 18px; padding: 14px 16px; color: #fff; background: rgba(0, 0, 0, .5); border: 2px solid var(--line); border-radius: 0; }
.field:focus, input.codein:focus { outline: none; border-color: var(--green); }
.field::placeholder, input.codein::placeholder { color: rgba(255, 255, 255, .4); }
.link { background: none; border: 0; font: inherit; font-size: 15px; color: var(--mute); text-decoration: underline; cursor: pointer; padding: 8px; }
.link:hover, .link:focus-visible { color: var(--green); outline: none; }
.btn:disabled { opacity: .55; cursor: progress; }
.error[hidden] { display: none; }
form .error { text-align: left; }
.card .row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.secret { font-family: ui-monospace, Consolas, monospace; letter-spacing: .1em; word-break: break-all; color: var(--green); font-size: 15px; }
.block { width: 100%; border: 1px solid var(--line); background: rgba(0, 0, 0, .4); padding: 22px; display: grid; gap: 12px; text-align: left; }
.block h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }
.ok { color: var(--green); font-weight: 700; }
.qr.small { width: 200px; padding: 10px; justify-self: center; }
