:root {
  color-scheme: dark;
  --bg: #101414;
  --bg-2: #171d1b;
  --bg-3: #202925;
  --border: #303a34;
  --text: #f1f2ed;
  --muted: #a5ada5;
  --volt: #d9fa59;
  --volt-dim: #9cb63c;
  --green: #8ee0a5;
  --red: #f08373;
  --radius: 4px;
}

body {
  min-height: 100vh;
  background: var(--bg);
  background-image: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

[hidden] { display: none !important; }
html[data-locked="true"] .console { display: none !important; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }

.app-shell { width: min(100% - 48px, 760px); margin: 0 auto; }
.topline { height: 76px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }
.wordmark { display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; font-family:Arial,sans-serif; font-size:14px; font-weight:700; }
.wordmark:hover { text-decoration:none; }
.wordmark-light { color:var(--muted); font-weight:400; }
.mark { width:25px; height:25px; display:grid; place-items:center; border-radius:50%; background:#f4a340; color:#171711; font-size:13px; }
.top-note,.section-index,.eyebrow,.gate-footer,.site-footer,.field-label,.status-label,.status-stats div span { font-size:10px; line-height:1.5; letter-spacing:0; }
.top-note { display:flex; align-items:center; gap:8px; color:var(--muted); }
.lock-dot { width:6px; height:6px; border-radius:50%; background:var(--volt); }
.gate,.console { min-height:calc(100vh - 132px); display:flex; flex-direction:column; padding:26px 0 16px; }
.section-index { color:var(--volt); }
.section-index span { color:var(--muted); }
.gate-content { width:min(100%,450px); margin:auto; padding:54px 0 70px; }
.ring-mark { width:46px; height:46px; display:grid; place-items:center; margin-bottom:34px; border:1px solid #626f52; border-radius:50%; }
.ring-mark span { width:18px; height:18px; border:4px solid var(--volt); border-radius:50%; }
.eyebrow { margin:0 0 15px; color:var(--volt); }
h1 { margin:0; font-family:Arial,Helvetica,sans-serif; font-size:clamp(42px, 8vw, 66px); font-weight:500; line-height:1.02; letter-spacing:0; }
.intro { max-width:400px; margin:21px 0 34px; color:var(--muted); font-family:Arial,Helvetica,sans-serif; font-size:15px; line-height:1.65; }
.unlock-form { width:min(100%,390px); }
.unlock-form label,.field-label { display:block; margin:0 0 10px; color:#c1c7bd; }
.code-row { display:flex; border-bottom:1px solid #65705f; }
.code-row input { width:100%; min-width:0; height:58px; border:0; border-radius:0; background:transparent; color:var(--text); font-size:26px; letter-spacing:8px; }
.code-row input::placeholder { color:#626a63; }
.code-row input:focus { outline:0; }
.arrow-button { width:48px; flex:none; border:0; background:transparent; color:var(--volt); cursor:pointer; font-size:24px; }
.arrow-button:hover { color:#fff; }
.form-error { margin:10px 0 0; color:#ff998d; font-size:12px; }
.microcopy { margin:19px 0 0; color:#707970; font-size:10px; }
.gate-footer { display:flex; justify-content:space-between; gap:16px; padding-top:17px; border-top:1px solid var(--border); color:#879087; }
.site-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:16px 0 24px; border-top:1px solid var(--border); color:#788078; }
.site-footer a { color:var(--muted); }
.console { width:min(100%,600px); margin:0 auto; }
.console-content { width:100%; margin:auto; padding:42px 0 50px; }
.console h1 { font-size:clamp(40px, 7vw, 58px); }
.console .intro { margin-bottom:28px; }
.field-label { margin-bottom:9px; }
.wallet-input { width:100%; min-width:0; height:46px; padding:0 13px; border:1px solid var(--border); border-radius:3px; background:#171d1b; color:var(--text); font-size:13px; }
.field-help,.warning,.note { color:var(--muted); font-family:Arial,Helvetica,sans-serif; font-size:12px; line-height:1.55; }
.field-help { margin:8px 0 18px; }
.consent { display:flex; align-items:flex-start; gap:10px; margin:0 0 19px; color:#d4d9d2; font-family:Arial,Helvetica,sans-serif; font-size:13px; line-height:1.55; cursor:pointer; }
.consent input { width:17px; height:17px; flex:none; margin:1px 0 0; accent-color:var(--volt); }
.action-row { display:flex; gap:10px; }
.start-button,.stop-button { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:0 18px; border:1px solid transparent; border-radius:3px; cursor:pointer; font-family:Arial,Helvetica,sans-serif; font-size:13px; font-weight:700; }
.start-button { background:var(--volt); color:#18200d; }
.start-button:hover:not(:disabled) { background:#e6ff82; }
.stop-button { min-width:116px; border-color:var(--border); background:transparent; color:var(--text); }
.stop-button:not(:disabled) { border-color:#8a453f; color:#ff9c91; }
.start-button:disabled,.stop-button:disabled { opacity:.45; cursor:not-allowed; }
.play-icon { font-size:10px; }
.stop-icon { width:10px; height:10px; background:currentColor; }
.status-panel { margin-top:27px; padding:16px 17px; border:1px solid var(--border); border-radius:3px; background:#151b18; }
.status-head { display:flex; align-items:center; justify-content:space-between; }
.status-label,.status-stats div span { color:#879087; }
.status-indicator { width:8px; height:8px; border-radius:50%; background:#697169; }
.status-indicator.running { background:var(--volt); box-shadow:0 0 12px #d9fa5966; }
.status-message { min-height:22px; margin:9px 0 0; color:#dce2d9; font-size:13px; }
.status-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:15px; padding-top:14px; border-top:1px solid var(--border); }
.status-stats div { min-width:0; display:flex; flex-direction:column; gap:6px; }
.status-stats div strong { overflow-wrap:anywhere; color:var(--text); font-size:14px; font-weight:500; }
.pool-link { display:inline-flex; gap:8px; margin-top:15px; color:var(--volt); font-family:Arial,Helvetica,sans-serif; font-size:12px; }
.warning { margin:24px 0 0; }
.note { margin-top:12px; }
.lock-button { padding:4px 0; border:0; background:none; color:var(--muted); cursor:pointer; font:inherit; }
.lock-button:hover { color:var(--volt); }
.lock-button span { margin-left:5px; color:var(--volt); }
#miner-config { display:none; }

@media (max-width:520px) {
  .app-shell { width:calc(100% - 36px); }
  .topline { height:64px; }
  .top-note { font-size:9px; }
  .wordmark { font-size:12px; }
  .gate,.console { min-height:calc(100svh - 119px); padding-top:21px; }
  .gate-content { padding:42px 0 54px; }
  .ring-mark { margin-bottom:27px; }
  .console-content { padding:32px 0; }
  .wallet-input { font-size:11px; }
  .site-footer { font-size:9px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; }
}
