:root {
  color-scheme: dark;
  --bg: #050604;
  --ink: #080906;
  --surface: rgba(14, 16, 13, 0.88);
  --surface-solid: #10120f;
  --surface-2: #171913;
  --line: rgba(223, 207, 176, 0.13);
  --line-strong: rgba(241, 162, 46, 0.36);
  --text: #f6f1e8;
  --muted: #a9aaa1;
  --soft: #d8d2c5;
  --amber: #f1a22e;
  --amber-hot: #ffbe4d;
  --amber-deep: #a85513;
  --steel: #9aaaa3;
  --steel-2: #d5ddd8;
  --danger: #f0675b;
  --radius: 8px;
  --max: 1240px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(14, 16, 13, 0.86), rgba(5, 6, 4, 1) 34%),
    radial-gradient(circle at 78% 0%, rgba(241, 162, 46, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  filter: saturate(0.45);
  box-shadow: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 4, 0.78);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(241, 162, 46, 0.58);
  border-radius: 8px;
  background: #17110a;
  box-shadow: 0 0 32px rgba(241, 162, 46, 0.12);
}

.brand-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links,
.top-status,
.network-pill,
.social-pill,
.status-chip,
.hashrate {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 7px;
}

.nav-links a {
  border-radius: 6px;
  color: var(--soft);
  font-size: 13px;
  padding: 8px 10px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.social-pill {
  min-height: 34px;
  gap: 8px;
  border: 1px solid rgba(241, 162, 46, 0.32);
  border-radius: 999px;
  background: rgba(14, 16, 13, 0.72);
  color: var(--steel-2);
  font-size: 12px;
  font-weight: 800;
  padding: 0 12px 0 8px;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.social-pill span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffbe4d, #f27615);
  color: #120b04;
  font-size: 12px;
  font-weight: 950;
}

.social-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(241, 162, 46, 0.68);
  background: rgba(26, 19, 11, 0.9);
  color: var(--text);
}

.holder-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 6px;
  padding: 14px;
  border: 1px solid rgba(78, 190, 126, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(78, 190, 126, 0.12), rgba(241, 162, 46, 0.06)),
    rgba(8, 9, 6, 0.68);
}

.holder-gate.blocked {
  border-color: rgba(240, 103, 91, 0.42);
  background:
    linear-gradient(135deg, rgba(240, 103, 91, 0.12), rgba(241, 162, 46, 0.05)),
    rgba(8, 9, 6, 0.72);
}

.holder-gate span,
.holder-gate small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.holder-gate strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 14px;
}

.holder-gate small {
  text-align: right;
  text-transform: none;
}

.top-status {
  justify-content: flex-end;
  gap: 8px;
}

.network-pill,
.status-chip,
.hashrate {
  justify-content: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--soft);
  font-size: 12px;
  white-space: nowrap;
}

.network-pill svg {
  width: 15px;
  height: 15px;
  color: var(--amber-hot);
}

[data-lucide] {
  position: relative;
  display: inline-block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: currentColor;
}

[data-lucide]::before,
[data-lucide]::after {
  position: absolute;
  content: "";
  box-sizing: border-box;
}

[data-lucide]::before {
  inset: 3px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

[data-lucide]::after {
  left: 7px;
  top: 0;
  width: 3px;
  height: 17px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

[data-lucide="play"]::before {
  left: 5px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-radius: 0;
}

[data-lucide="play"]::after {
  display: none;
}

[data-lucide="pause"]::before,
[data-lucide="pause"]::after {
  top: 3px;
  width: 4px;
  height: 11px;
  border: 0;
  border-radius: 1px;
  background: currentColor;
}

[data-lucide="pause"]::before {
  left: 4px;
}

[data-lucide="pause"]::after {
  left: 10px;
}

[data-lucide="shuffle"]::before,
[data-lucide="repeat-2"]::before,
[data-lucide="send"]::before {
  inset: 3px;
  border: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0;
  transform: rotate(45deg);
}

[data-lucide="shuffle"]::after,
[data-lucide="repeat-2"]::after,
[data-lucide="send"]::after {
  left: 2px;
  top: 8px;
  width: 12px;
  height: 2px;
  background: currentColor;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 22px 76px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 18px 22px 22px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

.credits-page {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.credits-page h1 {
  margin: 8px 0 28px;
  font-size: clamp(38px, 7vw, 64px);
}

.credits-back,
.credits-list a {
  color: var(--amber);
  text-underline-offset: 3px;
}

.credits-list {
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  padding-top: 22px;
}

.credits-list p + p {
  margin-top: 18px;
}

.hero-console,
.pipeline-section,
.system-section {
  margin-top: 22px;
}

[hidden] {
  display: none !important;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #090a08;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  isolation: isolate;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.03) contrast(1.04);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 6, 4, 0.96), rgba(5, 6, 4, 0.58) 42%, rgba(5, 6, 4, 0.2) 72%),
    linear-gradient(180deg, rgba(5, 6, 4, 0.03), rgba(5, 6, 4, 0.88));
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 41%,
    rgba(255, 190, 77, 0.12) 47%,
    transparent 53%,
    transparent 100%
  );
  transform: translateX(-65%);
  animation: scan 7s ease-in-out infinite;
}

.hero-copy {
  width: min(560px, 100%);
  padding: 48px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--soft);
  font-size: 16px;
  line-height: 1.58;
}

.hero-signal {
  position: absolute;
  right: 7%;
  bottom: 12%;
  width: min(410px, 42vw);
  aspect-ratio: 1;
  border: 1px solid rgba(241, 162, 46, 0.24);
  border-radius: 50%;
  opacity: 0.65;
  animation: slow-spin 22s linear infinite;
}

.hero-signal span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(154, 170, 163, 0.14);
  border-radius: 50%;
}

.hero-signal span:nth-child(2) {
  inset: 24%;
  border-color: rgba(241, 162, 46, 0.18);
}

.hero-signal span:nth-child(3) {
  inset: 38%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(340px, 0.82fr) minmax(320px, 0.76fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 22, 18, 0.9), rgba(12, 14, 11, 0.94)),
    var(--surface-solid);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.26);
  padding: 20px;
}

.control-panel,
.pool-panel,
.terminal-panel,
.feed-panel {
  min-height: 336px;
}

.terminal-panel,
.feed-panel {
  min-height: 330px;
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber-hot);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.25;
}

.field-label {
  display: block;
  margin: 18px 0 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
}

input[type="text"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(223, 207, 176, 0.2);
  border-radius: 6px;
  background: rgba(5, 6, 4, 0.84);
  color: var(--text);
  padding: 0 13px;
  outline: none;
}

input[type="text"]:focus {
  border-color: rgba(241, 162, 46, 0.78);
  box-shadow: 0 0 0 3px rgba(241, 162, 46, 0.14);
}

.field-help {
  min-height: 24px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.field-help.error {
  color: #ffb0a8;
}

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(223, 207, 176, 0.2);
  border-radius: 6px;
  background: #12140f;
  color: var(--text);
}

.icon-button {
  width: 44px;
  height: 44px;
}

.icon-button svg,
.primary-button svg,
.secondary-button svg,
.pipeline-node svg,
.module-icon svg {
  width: 17px;
  height: 17px;
}

.rig-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  margin-top: 12px;
}

.range-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
}

input[type="range"] {
  accent-color: var(--amber);
}

output {
  color: var(--amber-hot);
  font-weight: 800;
  text-align: right;
}

.job-card {
  min-height: 82px;
  border: 1px solid rgba(241, 162, 46, 0.22);
  border-radius: 6px;
  background: rgba(241, 162, 46, 0.06);
  padding: 13px;
}

.job-card span,
.job-card small,
.metric span,
.pool-meter span,
.terminal-line span,
.pipeline-node span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.job-card strong {
  display: block;
  margin-top: 7px;
  color: var(--amber-hot);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 21px;
}

.job-card small {
  margin-top: 4px;
  text-transform: none;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  gap: 8px;
  padding: 0 16px;
}

.primary-button {
  border-color: rgba(241, 162, 46, 0.76);
  background: linear-gradient(180deg, #ffbd49, #e89122);
  color: #161008;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(241, 162, 46, 0.22);
}

.secondary-button:hover,
.icon-button:hover {
  background: #1b1e17;
}

.pool-meter {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.pool-ring {
  position: relative;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(241, 162, 46, 0.08), rgba(255, 190, 77, 0.9), rgba(154, 170, 163, 0.16), rgba(241, 162, 46, 0.08)),
    rgba(8, 9, 7, 0.9);
  animation: slow-spin 12s linear infinite;
}

.pool-ring::before {
  position: absolute;
  inset: 10px;
  content: "";
  border-radius: 50%;
  background: #080907;
}

.pool-ring span {
  position: relative;
  width: 34px;
  height: 58px;
  border: 3px solid var(--amber-hot);
  border-radius: 50% 50% 56% 56%;
  transform: rotate(180deg);
  box-shadow: 0 0 22px rgba(241, 162, 46, 0.46);
}

.pool-meter strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
}

.pool-meter small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.metric {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 6, 4, 0.68);
  padding: 14px;
}

.metric strong {
  display: block;
  margin-top: 13px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.15;
}

.hashrate {
  border-color: rgba(241, 162, 46, 0.48);
  color: var(--amber-hot);
  font-weight: 800;
}

.terminal {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.terminal-line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 6, 4, 0.76);
  padding: 9px 12px;
}

code {
  overflow: hidden;
  color: var(--steel-2);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.success-line code {
  color: var(--amber-hot);
}

.progress-shell {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #090a08;
  margin-top: 16px;
}

.progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--steel), var(--amber-hot));
  transition: width 0.18s ease;
}

.event-feed {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.event-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 6, 4, 0.62);
  padding: 10px 12px;
}

.event-item > span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-hot);
  box-shadow: 0 0 16px rgba(241, 162, 46, 0.68);
}

.event-item p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.35;
}

.event-summary {
  min-width: 0;
}

.event-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}

.event-summary a,
.event-summary code {
  color: var(--amber);
  font-family: inherit;
  font-size: inherit;
  text-underline-offset: 3px;
}

.event-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.event-item time,
.event-receipt {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.event-receipt {
  color: var(--amber);
  text-underline-offset: 3px;
}

.event-empty {
  grid-template-columns: 12px minmax(0, 1fr);
}

.event-empty > span {
  background: var(--steel);
  box-shadow: none;
}

.pipeline-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(20, 22, 18, 0.9), rgba(8, 9, 7, 0.92)),
    #0d0f0b;
  padding: 20px;
}

.pipeline-rail {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(241, 162, 46, 0.5), transparent);
  transform: translateY(-50%);
}

.pipeline-rail span {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 18px rgba(241, 162, 46, 0.8);
  animation: pulse-rail 5s linear infinite;
}

.pipeline-rail span:nth-child(2) {
  animation-delay: 1.65s;
}

.pipeline-rail span:nth-child(3) {
  animation-delay: 3.3s;
}

.pipeline-node {
  position: relative;
  z-index: 1;
  min-height: 178px;
  border: 1px solid rgba(223, 207, 176, 0.14);
  border-radius: 8px;
  background: rgba(7, 8, 6, 0.86);
  padding: 18px;
}

.pipeline-node svg {
  color: var(--amber-hot);
  margin-bottom: 20px;
}

.pipeline-node strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 20px;
}

.pipeline-node p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-card {
  min-height: 278px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 16, 13, 0.86);
  padding: 20px;
}

.module-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(223, 207, 176, 0.18);
  border-radius: 8px;
  background: rgba(223, 207, 176, 0.05);
  color: var(--steel-2);
  margin-bottom: 18px;
}

.system-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.system-card li {
  color: var(--muted);
  line-height: 1.55;
}

.system-card li + li {
  margin-top: 10px;
}

@keyframes scan {
  0%,
  46% {
    transform: translateX(-70%);
  }
  80%,
  100% {
    transform: translateX(80%);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-rail {
  from {
    left: 0%;
    opacity: 0;
  }
  8%,
  88% {
    opacity: 1;
  }
  to {
    left: 100%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-panel {
    grid-column: 1 / -1;
  }

  .pipeline-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .top-status {
    flex-wrap: wrap;
  }

  .dashboard-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    min-width: auto;
  }

  .top-status {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-visual img {
    object-position: 75% center;
  }

  .hero-visual::after {
    background:
      linear-gradient(180deg, rgba(5, 6, 4, 0.18), rgba(5, 6, 4, 0.85) 40%, rgba(5, 6, 4, 0.98)),
      linear-gradient(90deg, rgba(5, 6, 4, 0.58), transparent);
  }

  .hero-copy {
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
  }

  .hero-signal {
    right: -18%;
    width: 330px;
    opacity: 0.45;
  }

  h1 {
    font-size: 42px;
  }

  .panel,
  .system-card,
  .pipeline-node {
    padding: 17px;
  }

  .rig-controls,
  .pool-meter,
  .metric-row,
  .pipeline-board {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .terminal-line {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

.top-start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  gap: 8px;
  border: 1px solid rgba(241, 162, 46, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffb53e, #f27615);
  color: #160d04;
  font-weight: 900;
  padding: 0 16px;
  box-shadow: 0 12px 30px rgba(241, 112, 22, 0.24);
}

.rig-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-scanline,
.hero-signal {
  z-index: 1;
}

.hero-scanline {
  position: absolute;
}

.hero-signal {
  position: absolute;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-button {
  min-width: 180px;
}

.secondary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(223, 207, 176, 0.22);
  border-radius: 8px;
  background: rgba(10, 11, 9, 0.5);
  color: var(--soft);
  font-size: 14px;
  font-weight: 800;
  padding: 0 18px;
  backdrop-filter: blur(14px);
}

.hero-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-mini-stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-mini-stats strong {
  display: block;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.payout-summary {
  margin-top: 16px;
  border: 1px solid rgba(241, 162, 46, 0.18);
  border-radius: 8px;
  background: rgba(241, 162, 46, 0.06);
  padding: 13px;
}

.payout-summary span,
.payout-summary small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.payout-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 15px;
}

.payout-summary small {
  margin-top: 5px;
  line-height: 1.4;
}

.network-section,
.stats-section,
.barrels-section,
.burns-section,
.shop-section {
  margin-top: 28px;
}

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading.centered h2 {
  max-width: none;
}

.network-grid,
.account-stat-grid,
.burn-grid {
  display: grid;
  gap: 16px;
}

.network-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.network-card,
.account-stat,
.burn-card,
.burn-ledger,
.stats-checker,
.barrel-table-wrap {
  border: 1px solid rgba(241, 162, 46, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(16, 18, 15, 0.92), rgba(7, 8, 6, 0.96)),
    #090a08;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
}

.network-card {
  min-height: 160px;
  padding: 24px;
}

.network-card span,
.account-stat span,
.burn-card span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.network-card strong,
.account-stat strong,
.burn-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.stats-checker {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px;
}

.stats-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.account-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.account-stat {
  min-height: 190px;
  padding: 32px;
}

.account-stat span {
  margin-top: 0;
  font-size: 18px;
}

.account-stat strong {
  margin-top: 26px;
  font-size: 42px;
}

.account-stat small,
.burn-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.barrel-table-wrap {
  overflow-x: auto;
}

.shop-board {
  overflow-x: auto;
  border: 1px solid rgba(241, 162, 46, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(241, 162, 46, 0.1), rgba(8, 9, 6, 0.96)),
    #090a08;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.shop-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
}

.shop-table th,
.shop-table td {
  border-bottom: 1px solid rgba(223, 207, 176, 0.1);
  padding: 20px 24px;
  text-align: left;
}

.shop-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.shop-table td {
  color: var(--soft);
  font-size: 15px;
}

.shop-table tr:last-child td {
  border-bottom: 0;
}

.barrel-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.barrel-table th,
.barrel-table td {
  border-bottom: 1px solid rgba(223, 207, 176, 0.1);
  padding: 18px 20px;
  text-align: left;
}

.barrel-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.barrel-table td {
  color: var(--soft);
  font-size: 14px;
}

.barrel-table tr:last-child td {
  border-bottom: 0;
}

.receipt-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 6px;
  background: rgba(241, 112, 22, 0.14);
  color: var(--amber-hot);
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.burn-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.burn-card {
  min-height: 150px;
  padding: 22px;
}

.burn-card.highlight {
  background:
    linear-gradient(135deg, rgba(241, 112, 22, 0.24), rgba(16, 18, 15, 0.92)),
    #090a08;
}

.burn-ledger {
  margin-top: 16px;
  padding: 22px;
}

.burn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border: 1px solid rgba(223, 207, 176, 0.09);
  border-radius: 8px;
  background: rgba(5, 6, 4, 0.62);
  padding: 14px 16px;
}

.burn-row + .burn-row {
  margin-top: 10px;
}

.burn-row span {
  color: var(--muted);
  font-size: 14px;
}

.burn-row strong {
  color: var(--text);
  white-space: nowrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.drill-modal {
  width: min(460px, 100%);
  max-height: min(900px, 92vh);
  overflow: auto;
  border: 1px solid rgba(223, 207, 176, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(24, 25, 22, 0.98), rgba(12, 13, 11, 0.98)),
    #10110f;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.5);
  padding: 28px;
}

.modal-heading,
.modal-title-row,
.modal-core-header,
.core-stepper {
  display: flex;
  align-items: center;
}

.modal-heading {
  justify-content: space-between;
  gap: 18px;
}

.modal-title-row {
  gap: 12px;
}

.modal-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffb53e, #f27615);
  color: #160d04;
}

.modal-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
}

.modal-copy,
.modal-note {
  color: var(--muted);
  line-height: 1.55;
}

.modal-copy {
  margin: 22px 0 0;
}

.modal-core-header {
  justify-content: space-between;
  margin-top: 22px;
  color: var(--soft);
  font-weight: 800;
}

.modal-core-header small {
  color: var(--muted);
  font-weight: 500;
}

.core-stepper {
  justify-content: space-between;
  margin-top: 14px;
}

.core-readout {
  text-align: center;
}

.core-readout strong {
  display: block;
  color: var(--amber-hot);
  font-size: 34px;
  line-height: 1;
}

.core-readout span {
  color: var(--muted);
  font-size: 12px;
}

.modal-range {
  width: 100%;
  margin-top: 16px;
}

.payout-options {
  display: grid;
  gap: 10px;
}

.payout-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(223, 207, 176, 0.16);
  border-radius: 10px;
  background: rgba(5, 6, 4, 0.48);
  padding: 16px;
}

.payout-option.selected {
  border-color: rgba(241, 112, 22, 0.95);
  background: rgba(241, 112, 22, 0.12);
}

.payout-option strong,
.payout-option small {
  display: block;
}

.payout-option strong {
  color: var(--text);
}

.payout-option b {
  margin-left: 8px;
  border-radius: 5px;
  background: rgba(241, 112, 22, 0.2);
  color: var(--amber-hot);
  font-size: 12px;
  padding: 3px 7px;
}

.payout-option small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.modal-start {
  width: 100%;
  margin-top: 22px;
}

.modal-note {
  margin-top: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  font-size: 13px;
}

body.modal-open {
  overflow: hidden;
}

.is-drilling .hero-visual {
  box-shadow: 0 0 0 1px rgba(241, 112, 22, 0.22), 0 36px 120px rgba(241, 112, 22, 0.12);
}

.is-drilling .pool-ring {
  animation-duration: 3.5s;
}

.is-drilling .hero-scanline {
  animation-duration: 2.8s;
}

@media (max-width: 900px) {
  .network-grid,
  .account-stat-grid,
  .burn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-start-button {
    width: 100%;
  }

  .holder-gate {
    display: block;
  }

  .holder-gate small {
    display: block;
    margin-top: 8px;
    text-align: left;
  }

  .hero-actions,
  .stats-input-row,
  .burn-row {
    flex-direction: column;
  }

  .hero-actions {
    align-items: stretch;
  }

  .secondary-link,
  .hero-button {
    width: 100%;
  }

  .network-grid,
  .account-stat-grid,
  .burn-grid,
  .stats-input-row {
    grid-template-columns: 1fr;
  }

  .drill-modal {
    padding: 20px;
  }
}
