:root { --bg:#0c1524; --pan:#142238; --line:#243652; --ink:#e9edf5; --dim:#9aa9c2; --amber:#f0b45a; --ok:#7fdc9c; --bad:#ff8a8a; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.55 'Segoe UI',system-ui,-apple-system,sans-serif; }
a { color:var(--amber); }
.wrap { max-width:1080px; margin:0 auto; padding:0 20px; }
header.top { border-bottom:1px solid var(--line); }
header.top .wrap { display:flex; align-items:center; gap:14px; height:60px; }
.brand { font:700 22px Georgia,serif; color:var(--ink); text-decoration:none; flex:1; }
.brand::before { content:''; display:inline-block; width:10px; height:10px; background:var(--amber); border-radius:50%; margin-right:10px; }
h1, h2, h3 { font-family:Georgia,serif; line-height:1.2; margin:0 0 .5em; }
h1 { font-size:clamp(30px,5vw,46px); } h2 { font-size:24px; } h3 { font-size:18px; }
p { margin:0 0 1em; } .dim { color:var(--dim); }

/* buttons and fields */
button, .btn { display:inline-block; background:var(--pan); color:var(--ink); border:1px solid var(--line); border-radius:6px; padding:9px 16px; font:inherit; cursor:pointer; text-decoration:none; }
button:hover, .btn:hover { border-color:var(--amber); }
button.go, .btn.go { background:var(--amber); border-color:var(--amber); color:#1a1205; font-weight:600; }
button.quiet { background:none; border-color:transparent; color:var(--dim); } button.quiet:hover { color:var(--ink); }
button.warn:hover { border-color:var(--bad); color:var(--bad); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline:2px solid var(--amber); outline-offset:2px; }
input, select, textarea { width:100%; background:var(--pan); color:var(--ink); border:1px solid var(--line); border-radius:6px; padding:10px 12px; font:inherit; }
label { display:block; margin:14px 0 4px; color:var(--dim); font-size:14px; }
.msg { padding:10px 14px; border-radius:6px; margin:0 0 16px; border:1px solid var(--line); background:var(--pan); }
.msg.err { border-color:var(--bad); color:var(--bad); } .msg.ok { border-color:var(--ok); color:var(--ok); }

/* landing */
.hero { display:grid; grid-template-columns:1.05fr 1fr; gap:48px; align-items:center; padding:56px 0 40px; }
.hero .lead { font-size:19px; color:var(--dim); max-width:34em; }
.screen { aspect-ratio:16/9; background:#000; border:1px solid var(--line); border-radius:8px; box-shadow:0 0 0 8px var(--pan), 0 30px 60px #0008;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:6%; color:#fff; font:clamp(15px,2.3vw,25px)/1.35 Georgia,serif; }
.screen small { display:block; margin-top:.9em; font-size:.6em; color:#ffffffb0; }
.facts { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; padding:24px 0 48px; border-top:1px solid var(--line); }
.facts h3 { color:var(--amber); }
.access { max-width:420px; margin-top:28px; }
details.fold { border-top:1px solid var(--line); padding:12px 0; }
details.fold summary { cursor:pointer; color:var(--amber); }

/* portal */
.portal { padding:32px 0 60px; display:grid; grid-template-columns:1.6fr 1fr; gap:40px; }
.portal section { border-top:1px solid var(--line); padding:18px 0 8px; margin-bottom:12px; }
.pill { display:inline-block; padding:3px 12px; border-radius:20px; font-size:13px; background:var(--pan); }
.pill.on { color:var(--ok); } .pill.off { color:var(--bad); }
.key { display:flex; gap:8px; } .key code { flex:1; background:var(--pan); border:1px solid var(--line); border-radius:6px; padding:10px 14px; font:600 18px ui-monospace,Consolas,monospace; letter-spacing:.06em; }
.dl { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); } .dl span { flex:1; }
pre.pay { background:var(--pan); border:1px solid var(--line); border-radius:6px; padding:12px 14px; white-space:pre-wrap; font:inherit; }

/* admin */
.tablewrap { overflow-x:auto; }
table { border-collapse:collapse; width:100%; min-width:860px; } th, td { border-bottom:1px solid var(--line); padding:10px 8px; text-align:left; vertical-align:top; font-size:14px; }
th { color:var(--dim); font-weight:600; } td code { background:var(--pan); padding:2px 6px; border-radius:4px; }
td form { display:inline; } td button { padding:5px 10px; font-size:13px; margin:2px 2px 2px 0; }
.st-on { color:var(--ok); } .st-off { color:var(--bad); } .st-wait { color:var(--amber); }
.stats { display:flex; gap:28px; margin:8px 0 20px; flex-wrap:wrap; } .stats b { font:700 26px Georgia,serif; display:block; }
.edit { background:var(--pan); border:1px solid var(--line); border-radius:8px; padding:6px 14px 14px; margin-top:8px; min-width:280px; }

@media (max-width:820px) {
  .hero, .portal { grid-template-columns:1fr; gap:28px; } .hero { padding-top:32px; }
  .facts { grid-template-columns:1fr; gap:20px; }
}
@media (prefers-reduced-motion:no-preference) { .screen { animation:rise .6s ease-out both; } }
@keyframes rise { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
