﻿:root {
  --panel: rgba(9, 17, 31, 0.72);
  --line: rgba(179, 211, 255, 0.14);
  --text: #f3f7ff;
  --muted: #9cb3d2;
  --accent: #ffb84d;
  --accent-2: #4de2c5;
  --danger: #ff6f6f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .hash-stake-preview-grid {
    grid-template-columns: 1fr;
  }

  .hash-stake-metrics {
    grid-template-columns: 1fr;
  }

  .hash-stake-amount-row {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(77, 226, 197, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 28%),
    linear-gradient(180deg, #0d1526, #09111f 55%, #070d17);
  color: var(--text);
  scroll-behavior: smooth;
}

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

.hero,
.section,
.admin-layout,
.admin-header,
.game-layout,
.admin-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 16px 0 30px;
}

.topbar,
.hero-grid,
.feature-grid,
.token-grid,
.admin-stats,
.auth-grid,
.summary-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 1rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

#topNavLinks {
  justify-content: flex-end;
}

.top-social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.top-social-link {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.top-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.top-social-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.top-social-link.social-twitter {
  background: linear-gradient(135deg, #0f1419 0%, #222f3b 100%);
}

.top-social-link.social-telegram {
  background: linear-gradient(135deg, #30a8e8 0%, #0d7fc7 100%);
}

.wallet-hub {
  position: relative;
}

.wallet-hub-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.95);
  box-shadow: var(--shadow);
  z-index: 80;
  display: grid;
  gap: 10px;
}

.wallet-provider-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wallet-address-button {
  justify-content: flex-start;
}

.wallet-inline-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wallet-provider-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #3f4c6b 0%, #606c88 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wallet-provider-icon.phantom {
  background: linear-gradient(135deg, #8a5dff 0%, #5f37d9 100%);
}

.wallet-provider-icon.okx {
  background: linear-gradient(135deg, #222 0%, #555 100%);
}

.wallet-provider-icon.solflare {
  background: linear-gradient(135deg, #ff8a3d 0%, #ff4d4d 100%);
}

.wallet-provider-icon.backpack {
  background: linear-gradient(135deg, #3da8ff 0%, #1f6be7 100%);
}

.header-player-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(179, 211, 255, 0.12);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-player-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4de2c5 0%, #9cf6cf 100%);
  box-shadow: 0 0 0 4px rgba(77, 226, 197, 0.12), 0 0 18px rgba(77, 226, 197, 0.2);
  flex: 0 0 auto;
}

.header-player-text {
  white-space: nowrap;
}

.hero-grid {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
  min-height: 56vh;
  padding-top: 8px;
}

.hero-copy {
  margin-top: 1rem;
}

.hero-visual-stack {
  display: grid;
  gap: 18px;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
}

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

h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.lead {
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #ffd17e);
  color: #1c1200;
  font-weight: 700;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.admin-danger-button {
  border-color: rgba(255, 111, 111, 0.45);
  color: #ff9c9c;
}

.admin-danger-button:hover {
  border-color: rgba(255, 111, 111, 0.78);
  color: #ffd0d0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.theme-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.62);
  backdrop-filter: blur(6px);
}

.theme-confirm-dialog {
  width: min(520px, calc(100% - 24px));
  display: grid;
  gap: 14px;
  border-color: rgba(77, 226, 197, 0.32);
  background:
    radial-gradient(circle at top right, rgba(77, 226, 197, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.theme-confirm-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.theme-confirm-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.theme-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.theme-confirm-field {
  display: grid;
  gap: 8px;
}

.theme-confirm-input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 30, 0.88);
  color: var(--text);
  padding: 0 14px;
  font-size: 1rem;
  outline: none;
}

.theme-confirm-input:focus {
  border-color: rgba(77, 226, 197, 0.52);
  box-shadow: 0 0 0 3px rgba(77, 226, 197, 0.14);
}

.theme-confirm-error {
  margin: 0;
  min-height: 18px;
  font-size: 0.82rem;
  color: #ffc5c5;
}

.center-action-result {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 1100;
  min-width: 280px;
  max-width: min(92vw, 640px);
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid rgba(77, 226, 197, 0.42);
  background: rgba(8, 18, 32, 0.92);
  color: #b9ffe9;
  font-size: 1.02rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(77, 226, 197, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.center-action-result.error {
  border-color: rgba(255, 95, 105, 0.64);
  color: #ffd4d4;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 95, 105, 0.22);
}

.center-action-result.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hero-card {
  transform: rotate(-2deg);
}

.hero-visual-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 24% 16%, rgba(77, 226, 197, 0.2), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(255, 184, 77, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 31, 0.78);
}

.hero-visual-card::after {
  content: "";
  position: absolute;
  inset: auto 8% 18px 8%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5), transparent 72%);
  filter: blur(10px);
}

.hero-visual-copy,
.hero-machine-stage,
.hero-machine-chips {
  position: relative;
  z-index: 1;
}

.hero-visual-label {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 211, 255, 0.18);
  background: rgba(7, 15, 26, 0.62);
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual-copy h3 {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.hero-machine-stage {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding-top: 8px;
}

.hero-machine-image {
  width: min(100%, 460px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.42));
}

.hero-machine-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(179, 211, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.hero-chip-accent {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.18), rgba(77, 226, 197, 0.12));
  border-color: rgba(255, 184, 77, 0.22);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.stat-row:last-child {
  border-bottom: 0;
}

.accent strong {
  color: var(--accent-2);
}

.section {
  padding: 56px 0;
}

.section-dark {
  padding-top: 68px;
}

body.homepage .section {
  padding: 20px 0;
}

body.homepage .hero {
  padding: 10px 0 6px;
}

body.homepage .hero-grid {
  min-height: auto;
  padding-top: 0;
}

body.homepage .hero-copy {
  margin-top: 0;
}

body.homepage .hero-actions {
  margin-top: 10px;
}

body.homepage .section-dark {
  padding-top: 24px;
}

body.homepage .section-heading {
  margin-bottom: 10px;
}

body.homepage .homepage-signal-section {
  padding-top: 8px;
  padding-bottom: 4px;
}

body.homepage .homepage-simple-grid,
body.homepage .homepage-foundation-grid,
body.homepage .homepage-onchain-grid,
body.homepage .homepage-operations-board,
body.homepage .homepage-bottom-grid {
  gap: 12px;
}

body.homepage .homepage-story-cards,
body.homepage .homepage-faq-grid {
  gap: 8px;
}

body.homepage #economy.section {
  padding-top: 2px;
  padding-bottom: 2px;
}

body.homepage #economy .section-heading {
  margin-bottom: 0;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 16px;
  text-align: center;
}

.site-copyright {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(156, 179, 210, 0.9);
}

.footer-social-links {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-social-link {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.footer-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(77, 226, 197, 0.35);
  color: var(--accent-2);
}

.footer-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading-compact {
  max-width: none;
  margin-bottom: 18px;
}

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

.homepage-signal-section {
  padding-top: 4px;
  padding-bottom: 18px;
}

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

.homepage-signal-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.35rem;
}

.homepage-foundation-grid,
.homepage-onchain-grid,
.homepage-operations-board,
.homepage-bottom-grid {
  display: grid;
  gap: 20px;
}

.homepage-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.homepage-foundation-grid {
  grid-template-columns: 1.18fr 0.82fr;
  align-items: start;
}

.homepage-story-cards {
  display: grid;
  gap: 14px;
}

.homepage-token-stack,
.homepage-wallet-details,
.homepage-operations-main,
.homepage-operations-side {
  display: grid;
  gap: 16px;
}

.homepage-token-grid {
  grid-template-columns: 1fr;
}

.homepage-chain-mini {
  display: grid;
  gap: 10px;
}

.homepage-onchain-grid {
  grid-template-columns: 1fr 0.95fr;
  align-items: start;
}

.homepage-wallet-panel {
  display: grid;
  gap: 18px;
}

.homepage-wallet-actions .button {
  min-width: 148px;
}

.homepage-operations-board {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.homepage-bottom-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.token-grid,
.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

#ownedMachinesGrid {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: stretch;
}

#overviewFleetPanel #ownedMachinesGrid {
  grid-template-columns: 1fr;
}

body[data-game-page="machines"] #ownedMachinesGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

body[data-game-page="machines"] #ownedMachinesGrid .machine-card {
  min-height: 100%;
  padding: 16px;
  border-radius: 18px;
}

body[data-game-page="machines"] .fleet-card-hero {
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

body[data-game-page="machines"] .fleet-card-visual {
  align-content: start;
}

body[data-game-page="machines"] .machine-artwork-wrap {
  min-height: 170px;
  margin-bottom: 0;
}

body[data-game-page="machines"] .fleet-card-main {
  min-height: 100%;
  gap: 10px;
  grid-template-rows: auto auto auto 1fr;
}

body[data-game-page="machines"] .fleet-card-heading {
  align-items: start;
  gap: 10px;
}

body[data-game-page="machines"] .fleet-card-heading h3 {
  font-size: 1.14rem;
}

body[data-game-page="machines"] .fleet-yield {
  font-size: 0.95rem;
}

body[data-game-page="machines"] .fleet-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-game-page="machines"] .fleet-metric {
  padding: 10px 12px;
  border-radius: 14px;
}

body[data-game-page="machines"] .fleet-metric span {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

body[data-game-page="machines"] .fleet-metric strong {
  font-size: 0.86rem;
  line-height: 1.3;
}

body[data-game-page="machines"] .metric-value-date {
  font-size: 0.8rem;
}

body[data-game-page="machines"] .fleet-maintenance-note,
body[data-game-page="machines"] .fleet-action-meta {
  font-size: 0.75rem;
}

body[data-game-page="machines"] .fleet-maintenance-bar-copy span,
body[data-game-page="machines"] .fleet-maintenance-bar-copy strong {
  font-size: 0.78rem;
}

body[data-game-page="machines"] .fleet-action-row {
  gap: 8px;
}

body[data-game-page="machines"] .fleet-card .upgrade-button,
body[data-game-page="machines"] .repair-machine-button {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.84rem;
}

body[data-game-page="machines"] .fleet-card-actions {
  margin-top: 8px;
}

.machines-topbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.machines-stat-card {
  padding: 18px 20px;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.machines-stat-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.machines-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.machines-stat-card small {
  color: var(--muted);
  font-size: 0.84rem;
}

.machines-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -45% auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.machines-stat-total {
  border-color: rgba(179, 211, 255, 0.14);
}

.machines-stat-total strong {
  color: #f3f7ff;
}

.machines-stat-healthy {
  border-color: rgba(77, 226, 197, 0.22);
  background:
    linear-gradient(180deg, rgba(77, 226, 197, 0.08), rgba(77, 226, 197, 0.02)),
    var(--panel);
}

.machines-stat-healthy strong {
  color: #63efd3;
}

.machines-stat-risk {
  border-color: rgba(255, 184, 77, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.08), rgba(255, 184, 77, 0.02)),
    var(--panel);
}

.machines-stat-risk strong {
  color: #ffc76e;
}

.machines-stat-offline {
  border-color: rgba(255, 111, 111, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 111, 111, 0.08), rgba(255, 111, 111, 0.02)),
    var(--panel);
}

.machines-stat-offline strong {
  color: #ff8b8b;
}

.machine-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 31, 0.76);
}

.machine-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(77, 226, 197, 0.14), transparent 70%);
}

.machine-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 32%);
  pointer-events: none;
}

.machine-artwork-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 248px;
  margin: 2px 0 12px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  background:
    radial-gradient(circle at 50% 30%, rgba(77, 226, 197, 0.24), transparent 42%),
    radial-gradient(circle at 78% 24%, rgba(255, 184, 77, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.machine-artwork-wrap::after {
  display: none;
}

.machine-artwork {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  filter: none;
}

.machine-artwork-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(179, 211, 255, 0.16);
  background: rgba(7, 15, 26, 0.72);
  color: #dce9ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whitepaper-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(77, 226, 197, 0.12), transparent 24%),
    radial-gradient(circle at 100% 10%, rgba(255, 184, 77, 0.1), transparent 22%),
    linear-gradient(180deg, #09111f, #07101b 56%, #050b14);
}

.whitepaper-hero {
  padding-bottom: 30px;
}

.whitepaper-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: center;
  min-height: 44vh;
}

.whitepaper-hero-copy {
  max-width: 72ch;
}

.whitepaper-live-card {
  transform: rotate(-1deg);
}

.whitepaper-shell {
  width: min(1560px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
}

.whitepaper-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 24px 20px;
}

.whitepaper-toc {
  display: grid;
  gap: 10px;
}

.whitepaper-toc a {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 11px 14px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.whitepaper-toc a:hover {
  color: var(--text);
  border-color: rgba(77, 226, 197, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.whitepaper-toc a.active {
  color: var(--text);
  border-color: rgba(77, 226, 197, 0.38);
  background: linear-gradient(135deg, rgba(77, 226, 197, 0.16), rgba(255, 184, 77, 0.08));
  box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.08);
}

.whitepaper-content {
  display: grid;
  gap: 18px;
}

.whitepaper-section {
  padding: 28px;
}

.whitepaper-grid {
  display: grid;
  gap: 18px;
}

.whitepaper-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.subtle-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(179, 211, 255, 0.1);
  border-radius: 20px;
  padding: 18px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.formula-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 77, 0.16);
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.08), rgba(255, 255, 255, 0.02));
}

.formula-box code {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffe7bb;
  overflow-wrap: anywhere;
}

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

.whitepaper-table {
  width: 100%;
  border-collapse: collapse;
}

.whitepaper-table th,
.whitepaper-table td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.whitepaper-table th {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.whitepaper-table tbody tr:last-child th,
.whitepaper-table tbody tr:last-child td {
  border-bottom: 0;
}

.compact-table th,
.compact-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

#hashMarketPanel .compact-table th,
#hashMarketPanel .compact-table td {
  white-space: nowrap;
  line-height: 1.1;
  padding-top: 4px;
  padding-bottom: 4px;
}

#hashMarketPanel .whitepaper-table td {
  vertical-align: middle;
}

#hashMarketPanel .whitepaper-table .action-feedback-host {
  display: flex;
  align-items: center;
  gap: 0;
}

#hashMarketPanel .whitepaper-table .action-inline-message {
  display: none;
}

#hashMarketPanel .whitepaper-table .button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

.table-subline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-note {
  margin-top: 16px;
  color: var(--muted);
}

.whitepaper-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

@media (min-width: 1320px) {
  .hero,
  .section {
    width: min(1560px, calc(100% - 40px));
  }

  .game-page .game-header,
  .game-page .game-layout {
    width: min(1560px, calc(100% - 40px));
  }

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

  .machine-card {
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .whitepaper-shell {
    grid-template-columns: 1fr;
  }

  .whitepaper-sidebar {
    position: static;
  }

  .whitepaper-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .whitepaper-hero-grid,
  .whitepaper-grid.two-up,
  .whitepaper-grid.three-up,
  .whitepaper-mini-grid,
  .homepage-signal-grid,
  .homepage-ops-grid,
  .homepage-foundation-grid,
  .homepage-onchain-grid,
  .homepage-operations-board,
  .homepage-bottom-grid,
  .homepage-simple-grid {
    grid-template-columns: 1fr;
  }

  .hero-machine-stage {
    min-height: 220px;
  }

  .homepage-wallet-panel .preview-table-row strong {
    max-width: none;
  }

  .hash-stake-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fleet-card,
.store-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-wallet-panel {
  margin-bottom: 18px;
}

.store-hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(77, 226, 197, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 26%),
    rgba(9, 17, 31, 0.78);
}

.store-hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.store-hero-copy h2 {
  margin-bottom: 0;
}

.store-hero-lead,
.store-wallet-copy,
.store-section-copy {
  max-width: 58ch;
  line-height: 1.7;
}

.store-hero-points {
  display: grid;
  gap: 12px;
}

.store-point-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 8px;
}

.store-point-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.store-point-card strong {
  line-height: 1.5;
}

.store-sol-price {
  margin-top: -4px;
  color: var(--accent-2);
  font-size: 1rem;
  font-weight: 600;
}

.store-sol-floor {
  margin-top: -4px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.store-heading-block {
  display: grid;
  gap: 6px;
}

.store-pack-head {
  margin-top: 10px;
}

.store-card-copy {
  margin-bottom: 0;
  line-height: 1.55;
}

.store-price-cluster {
  display: grid;
  gap: 4px;
}

.store-price-subtext {
  margin-bottom: 0;
}

.store-action-stack {
  display: grid;
  gap: 10px;
}

.hash-pack-card {
  gap: 10px;
}

.hash-pack-artwork {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.18);
  background-image: url("/assets/packs/hash-pack-sprite.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  background-position: 0% 0%;
}

.hash-pack-artwork-basic {
  background-position: 0% 0%;
}

.hash-pack-artwork-standard {
  background-position: 100% 0%;
}

.hash-pack-artwork-premium {
  background-position: 0% 100%;
}

.hash-pack-artwork-elite {
  background-position: 100% 100%;
}

.hash-pack-probability-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.hash-pack-probability-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.hash-pack-probability-list li span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hash-pack-probability-list li strong {
  font-size: 0.88rem;
}

.pack-opening-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 14, 0.68);
  backdrop-filter: blur(7px);
}

.pack-opening-dialog {
  width: min(560px, calc(100% - 24px));
  display: grid;
  gap: 10px;
  text-align: center;
  border-color: rgba(77, 226, 197, 0.4);
  background:
    radial-gradient(circle at top center, rgba(77, 226, 197, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.pack-opening-eyebrow {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.pack-opening-title {
  margin: 0;
}

.pack-opening-subtitle {
  margin: 0;
  color: var(--muted);
}

.pack-opening-spinner {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.pack-opening-spinner span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: packDotPulse 0.9s ease-in-out infinite;
}

.pack-opening-spinner span:nth-child(2) {
  animation-delay: 0.14s;
}

.pack-opening-spinner span:nth-child(3) {
  animation-delay: 0.28s;
}

.pack-opening-reveal {
  margin-top: 4px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 240ms ease, transform 240ms ease;
  display: grid;
  gap: 8px;
}

.pack-opening-overlay.reveal .pack-opening-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pack-opening-artwork-wrap {
  width: min(280px, 72vw);
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(179, 211, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.pack-opening-artwork {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.pack-opening-result-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.pack-opening-result-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #d7fff7;
}

.pack-opening-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pack-opening-overlay.done .pack-opening-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hash-stake-panel {
  display: grid;
  gap: 18px;
}

.hash-stake-open-button {
  min-width: 140px;
}

.hash-stake-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hash-stake-metric-card {
  border: 1px solid rgba(179, 211, 255, 0.14);
  border-radius: 10px;
  background: rgba(4, 10, 18, 0.7);
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.hash-stake-metric-card span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hash-stake-metric-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.hash-stake-table-wrap {
  border: 1px solid rgba(179, 211, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
}

.hash-stake-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(4, 10, 18, 0.65);
}

.hash-stake-table th,
.hash-stake-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(179, 211, 255, 0.1);
  text-align: left;
}

.hash-stake-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(8px);
}

.hash-stake-modal-dialog {
  width: min(640px, calc(100% - 20px));
  display: grid;
  gap: 14px;
  border-color: rgba(77, 226, 197, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(77, 226, 197, 0.12), transparent 42%),
    radial-gradient(circle at top left, rgba(255, 184, 77, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.hash-stake-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hash-stake-modal-head h3 {
  margin: 0;
  font-size: 1.6rem;
}

.hash-stake-close-button {
  min-height: 34px;
  min-width: 34px;
  border-radius: 999px;
  padding: 0;
  font-size: 0.95rem;
}

.hash-stake-form-grid {
  display: grid;
  gap: 14px;
}

.hash-stake-field {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.hash-stake-field-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.hash-stake-field-head span {
  font-weight: 700;
}

.hash-stake-amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.hash-stake-amount-row input {
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid rgba(179, 211, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 30, 0.88);
  color: var(--text);
  padding: 0 14px;
  font-size: 1.1rem;
  outline: none;
}

.hash-stake-amount-row input:focus {
  border-color: rgba(77, 226, 197, 0.5);
  box-shadow: 0 0 0 3px rgba(77, 226, 197, 0.14);
}

.hash-stake-quick-actions {
  display: flex;
  gap: 8px;
}

.hash-stake-quick-actions .button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
}

.hash-stake-slider {
  width: 100%;
  accent-color: #f7c500;
}

.hash-stake-preview-copy {
  margin: 0;
}

.hash-stake-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hash-stake-preview-card {
  border: 1px solid rgba(179, 211, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 30, 0.8);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.hash-stake-preview-card span {
  color: var(--muted);
}

.hash-stake-preview-card strong {
  font-size: 1.6rem;
  line-height: 1;
}

.hash-stake-confirm-button {
  min-height: 52px;
  border-radius: 999px;
  font-size: 1.05rem;
}

.fleet-card-wide {
  gap: 16px;
  min-height: 100%;
}

.fleet-card-hero {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.fleet-card-visual {
  display: grid;
  gap: 12px;
}

.fleet-card-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

.fleet-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.fleet-card-heading h3 {
  font-size: 1.6rem;
}

.fleet-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.fleet-status-healthy {
  background: rgba(77, 226, 197, 0.12);
  color: var(--accent-2);
}

.fleet-status-warning {
  background: rgba(255, 184, 77, 0.14);
  color: var(--accent);
}

.fleet-status-critical,
.fleet-status-offline {
  background: rgba(255, 111, 111, 0.14);
  color: var(--danger);
}

.fleet-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fleet-metric strong {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.fleet-metric {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.fleet-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.fleet-metric strong {
  display: block;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.metric-value-tight {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.metric-value-date {
  font-size: 0.96rem;
}

.fleet-maintenance-note {
  margin: 0;
  line-height: 1.5;
}

.fleet-maintenance-bar-block {
  display: grid;
  gap: 10px;
}

.fleet-maintenance-bar-copy {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.fleet-maintenance-bar-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.fleet-maintenance-bar-copy strong {
  font-size: 0.92rem;
  white-space: nowrap;
}

.fleet-maintenance-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(179, 211, 255, 0.08);
}

.fleet-maintenance-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4de2c5 0%, #89e7a5 100%);
  transition: width 0.45s ease, filter 0.22s ease;
  box-shadow: 0 0 18px rgba(77, 226, 197, 0.2);
}

.fleet-bar-warning span {
  background: linear-gradient(90deg, #ffcb63 0%, #ff9d47 100%);
  box-shadow: 0 0 18px rgba(255, 176, 73, 0.18);
}

.fleet-bar-critical span,
.fleet-bar-offline span {
  background: linear-gradient(90deg, #ff8b73 0%, #ff5f69 100%);
  box-shadow: 0 0 18px rgba(255, 96, 105, 0.18);
}

.fleet-card-actions {
  margin-top: auto;
}

.fleet-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fleet-action-stack {
  display: grid;
  gap: 6px;
}

.fleet-action-meta {
  font-size: 0.84rem;
  color: var(--muted);
  padding: 0 2px;
}

.fleet-state-warning {
  border-color: rgba(255, 184, 77, 0.18);
}

.fleet-state-critical,
.fleet-state-offline {
  border-color: rgba(255, 111, 111, 0.22);
}

#overviewFleetPanel .fleet-card-hero {
  grid-template-columns: 1fr;
}

#overviewFleetPanel .fleet-card-visual {
  max-width: none;
}

#overviewFleetPanel .fleet-card-heading {
  align-items: center;
}

#overviewFleetPanel .fleet-card-heading h3 {
  font-size: 1.32rem;
}

#overviewFleetPanel .fleet-yield {
  font-size: 1.05rem;
}

#overviewFleetPanel .fleet-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#overviewFleetPanel .fleet-metric {
  padding: 12px 14px;
}

@media (min-width: 1400px) {
  #overviewFleetPanel .fleet-card-hero {
    grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  }

  #overviewFleetPanel .fleet-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  #ownedMachinesGrid {
    grid-template-columns: 1fr;
  }

  #overviewFleetPanel #ownedMachinesGrid {
    grid-template-columns: 1fr;
  }

  body[data-game-page="machines"] #ownedMachinesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-game-page="machines"] .fleet-card-hero {
    grid-template-columns: 1fr;
  }

  .machines-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-game-page="machines"] #ownedMachinesGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .fleet-card-hero {
    grid-template-columns: 1fr;
  }

  .fleet-card-visual {
    max-width: 320px;
  }

  .fleet-metric-grid {
    grid-template-columns: 1fr;
  }

  .fleet-maintenance-bar-copy,
  .fleet-action-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.fleet-card .upgrade-button {
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: 18px;
  display: flex;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.fleet-level,
.store-badge {
  font-size: 0.85rem;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.fleet-yield {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-top: -4px;
}

.auto-repair-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #82ffe0;
  background: rgba(77, 226, 197, 0.15);
  border: 1px solid rgba(77, 226, 197, 0.45);
  box-shadow: 0 0 0 1px rgba(77, 226, 197, 0.12), 0 0 14px rgba(77, 226, 197, 0.2);
}

.auto-repair-countdown.is-warning {
  color: #ffd287;
  background: rgba(255, 184, 77, 0.18);
  border-color: rgba(255, 184, 77, 0.58);
  box-shadow: 0 0 0 1px rgba(255, 184, 77, 0.16), 0 0 14px rgba(255, 184, 77, 0.22);
}

.auto-repair-countdown.is-critical {
  color: #ffd5d5;
  background: rgba(255, 95, 105, 0.2);
  border-color: rgba(255, 95, 105, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 95, 105, 0.2), 0 0 18px rgba(255, 95, 105, 0.28);
  animation: autoRepairCriticalPulse 0.9s ease-in-out infinite;
}

.auto-repair-countdown.is-expired {
  color: #ffb4b4;
  background: rgba(255, 95, 105, 0.16);
  border-color: rgba(255, 95, 105, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 95, 105, 0.16);
}

.fleet-yield-loss {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffd7d7;
  background: rgba(255, 95, 105, 0.14);
  border: 1px solid rgba(255, 95, 105, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.fleet-yield-loss-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 95, 105, 0.24);
  color: #ff8d8d;
  font-size: 0.78rem;
  line-height: 1;
}

.fleet-meta,
.store-stats {
  display: grid;
  gap: 6px;
}

.price-tag {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: -2px;
}

.muted {
  color: var(--muted);
}

.chain-live-price-value {
  color: var(--danger);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(77, 226, 197, 0.12);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.store-card h3,
.fleet-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.store-stats,
.fleet-meta {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.store-stats p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.store-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.store-card .button,
.fleet-card .upgrade-button {
  margin-top: auto;
}

.auto-repair-bind-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(77, 226, 197, 0.4);
  background: linear-gradient(180deg, rgba(77, 226, 197, 0.12), rgba(77, 226, 197, 0.04));
}

.auto-repair-bind-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: #84ffe2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auto-repair-bind-copy {
  margin: 0;
  font-size: 0.86rem;
}

.auto-repair-machine-select {
  width: 100%;
  min-height: 42px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(9, 17, 31, 0.82);
  color: #eef5ff;
  padding: 0 12px;
}

.roi-machine-field {
  position: relative;
}

.roi-machine-dropdown {
  position: relative;
}

.roi-machine-select-native {
  display: none;
}

.roi-machine-select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 30, 0.9);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 42px 0 14px;
  text-align: left;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.roi-machine-select:hover {
  border-color: rgba(179, 211, 255, 0.34);
}

.roi-machine-select:focus {
  outline: none;
  border-color: rgba(77, 226, 197, 0.56);
  box-shadow: 0 0 0 3px rgba(77, 226, 197, 0.16);
}

.roi-machine-trigger {
  position: relative;
}

.roi-machine-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(77, 226, 197, 0.85);
  border-bottom: 2px solid rgba(77, 226, 197, 0.85);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.roi-machine-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 130;
  max-height: 240px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.24);
  background: #0d1628;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
  padding: 6px;
}

.roi-machine-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
  text-align: left;
}

.roi-machine-option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #d9ebff;
}

.roi-machine-option.active {
  background: rgba(77, 226, 197, 0.18);
  color: #b8fff1;
}

.roi-machine-option-name {
  font-weight: 700;
}

.roi-machine-option-meta {
  font-size: 0.86rem;
  opacity: 0.9;
}

.repair-machine-button {
  min-height: 56px;
}

.repair-machine-button.repair-state-healthy {
  opacity: 0.84;
}

.repair-machine-button.repair-state-warning {
  background: linear-gradient(135deg, #ffcf70 0%, #f0a84b 100%);
  color: #1f1608;
  border-color: rgba(255, 201, 112, 0.5);
  box-shadow: 0 12px 28px rgba(255, 176, 73, 0.18);
}

.repair-machine-button.repair-state-critical,
.repair-machine-button.repair-state-offline {
  background: linear-gradient(135deg, #ff9c7b 0%, #ff6575 100%);
  color: #210a10;
  border-color: rgba(255, 121, 121, 0.5);
  box-shadow: 0 14px 30px rgba(255, 96, 105, 0.2);
}

.homepage-machine-card {
  gap: 14px;
  min-height: 100%;
}

.homepage-machine-card .machine-artwork-wrap {
  min-height: 268px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(77, 226, 197, 0.28), transparent 40%),
    radial-gradient(circle at 82% 22%, rgba(255, 184, 77, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.homepage-machine-card .machine-artwork {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: none;
}

.homepage-machine-card .price-tag {
  font-size: 2rem;
}

.homepage-machine-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.homepage-machine-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.homepage-machine-footer .button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 16px;
}

.homepage-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.homepage-split-grid,
.homepage-leaderboard {
  display: grid;
  gap: 12px;
}

.homepage-split-row,
.homepage-leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.homepage-split-row p,
.homepage-leaderboard-main p {
  margin-bottom: 0;
}

.homepage-split-values strong,
.homepage-leaderboard-value {
  color: var(--accent-2);
  font-weight: 700;
}

.homepage-rank {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.22), rgba(77, 226, 197, 0.14));
}

.homepage-leaderboard-main {
  flex: 1;
}

.homepage-cta-section {
  padding-top: 18px;
  padding-bottom: 72px;
}

.homepage-cta-card {
  padding: 34px;
  background:
    radial-gradient(circle at 16% 20%, rgba(77, 226, 197, 0.16), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(255, 184, 77, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 17, 31, 0.78);
}

.roadmap-card {
  min-height: 100%;
}

.homepage-faq-grid {
  display: grid;
  gap: 14px;
}

.homepage-wallet-panel .preview-table-row strong {
  max-width: 60%;
  text-align: right;
  word-break: break-all;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
}

.admin-page,
.game-page {
  min-height: 100vh;
}

.admin-auth-screen {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 0;
}

.admin-auth-panel {
  width: 100%;
}

.game-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(77, 226, 197, 0.15), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(255, 184, 77, 0.1), transparent 22%),
    linear-gradient(180deg, #08111d, #060c16 55%, #050912);
}

.admin-header {
  padding: 28px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.game-header {
  padding-top: 32px;
  padding-bottom: 24px;
}

.game-header h1 {
  margin-bottom: 10px;
}

.game-header-copy {
  max-width: 62ch;
}

.admin-layout,
.game-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 40px;
}

.admin-layout .panel:last-child,
.auth-panel {
  grid-column: 1 / -1;
}

.auth-panel {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(179, 211, 255, 0.18);
  background:
    radial-gradient(circle at 8% 0%, rgba(77, 226, 197, 0.14), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(255, 184, 77, 0.12), transparent 40%),
    rgba(8, 15, 28, 0.9);
  box-shadow: 0 24px 56px rgba(1, 6, 14, 0.5);
}

.auth-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.32rem, 2.4vw, 1.8rem);
  letter-spacing: 0.01em;
}

.auth-panel > .muted {
  margin: 0 0 16px;
}

.auth-panel .auth-grid {
  gap: 16px;
  align-items: start;
}

.auth-panel .admin-form {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-panel .admin-form h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-panel .admin-form label {
  margin-bottom: 0;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.auth-panel .admin-form input {
  margin-top: 6px;
}

.auth-panel .admin-form > .button {
  width: 100%;
  justify-content: center;
}

.auth-panel .admin-form > .button-ghost {
  width: 100%;
  justify-content: center;
}

.auth-panel #registerCaptchaQuestion {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
}

.auth-panel #authMessage {
  margin-top: 14px;
  text-align: center;
}

.game-layout {
  display: block;
  padding-bottom: 56px;
}

.game-shell {
  display: grid;
  gap: 20px;
}

.game-subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px;
}

.game-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
}

.game-tab.active {
  background: linear-gradient(135deg, rgba(77, 226, 197, 0.18), rgba(255, 184, 77, 0.14));
  border-color: rgba(77, 226, 197, 0.28);
  color: var(--text);
}

.game-hero-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
}

.game-hero-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.game-hero-main h2 {
  margin-bottom: 10px;
}

.game-hero-side {
  display: flex;
}

.game-actions {
  margin-top: 22px;
}

.quick-action-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quick-action-bar .action-feedback-host {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.quick-action-bar .button {
  width: 100%;
  justify-content: center;
}

.action-meta {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

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

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

.game-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.summary-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.summary-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.summary-card-line-gap {
  height: 10px;
}

.market-chart-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.chart-range-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(179, 211, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.chart-range-toggle .button {
  min-height: 34px;
  min-width: 56px;
  padding: 0 14px;
}

.chart-range-toggle .button.is-active {
  border-color: rgba(77, 226, 197, 0.42);
  background: linear-gradient(135deg, rgba(77, 226, 197, 0.22), rgba(77, 226, 197, 0.12));
  color: #cffff3;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(77, 226, 197, 0.2);
}

.market-chart-stats span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.86rem;
}

.market-chart-stats strong {
  color: var(--text);
  font-weight: 800;
}

.market-daily-chart {
  width: 100%;
  min-height: 240px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(77, 226, 197, 0.08), rgba(77, 226, 197, 0)),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.market-daily-chart svg {
  display: block;
  width: 100%;
  height: 240px;
}

.market-chart-axis {
  stroke: rgba(179, 211, 255, 0.28);
  stroke-width: 1;
}

.market-chart-area {
  fill: url(#marketTrendFill);
}

.market-chart-line {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(77, 226, 197, 0.32));
}

.market-chart-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-priority-panel {
  border-color: rgba(77, 226, 197, 0.45);
  box-shadow: 0 0 0 1px rgba(77, 226, 197, 0.2), var(--shadow);
}

.account-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.account-dual-grid h4 {
  margin: 0 0 10px;
}

.account-tab-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.account-tab-button {
  min-width: 120px;
  justify-content: center;
}

.account-tab-panel {
  display: grid;
  gap: 14px;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.summary-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}

.summary-card-actions .button {
  width: 100%;
  justify-content: center;
}

.summary-card-message {
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.claim-fee-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.claim-fee-stats div {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.claim-fee-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.claim-fee-stats strong {
  font-size: 0.96rem;
  color: var(--text);
}

.machines-claim-card .summary-card-actions {
  gap: 6px;
  margin-top: 8px;
}

.compact-claim-fee-stats {
  gap: 8px;
  margin-top: 8px;
}

.compact-claim-fee-stats div {
  padding: 8px 10px;
}

.compact-claim-fee-stats strong {
  font-size: 0.88rem;
}

.machines-claim-card .summary-card-actions .button {
  min-height: 32px;
  padding: 0 8px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.machines-claim-card .summary-card-actions .action-feedback-host {
  gap: 1px;
  align-content: start;
}

.machines-claim-card .action-inline-message {
  min-height: 0;
  margin-top: 0;
  font-size: 0.74rem;
}

.machines-claim-card {
  padding: 14px 16px 10px;
}

.machines-claim-card strong {
  font-size: 1rem;
}

.machines-claim-card small {
  margin-top: 6px;
  font-size: 0.8rem;
}

.machines-claim-card > :last-child {
  margin-bottom: 0;
}

.machines-page-message {
  margin: 6px 2px 0;
}

.summary-card-highlight {
  background: linear-gradient(180deg, rgba(77, 226, 197, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(77, 226, 197, 0.25);
  position: relative;
  overflow: hidden;
}

.summary-card-highlight::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(77, 226, 197, 0.25), transparent 65%);
  animation: pulseFloat 3.2s ease-in-out infinite;
}

.status-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.status-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.status-item span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.status-item strong {
  font-size: 1.05rem;
}

.boost-banner {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 77, 0.3);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 184, 77, 0.18), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(77, 226, 197, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 184, 77, 0.1), rgba(77, 226, 197, 0.08));
  box-shadow: 0 18px 36px rgba(255, 184, 77, 0.12);
}

.boost-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  transform: translateX(-50%) translateY(-14px);
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: min(92vw, 320px);
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 184, 77, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 184, 77, 0.2), transparent 46%),
    linear-gradient(135deg, rgba(255, 184, 77, 0.16), rgba(77, 226, 197, 0.1)),
    rgba(9, 17, 31, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.boost-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 184, 77, 0.18), transparent 24%),
    linear-gradient(120deg, transparent 0%, rgba(255, 184, 77, 0.16) 45%, rgba(77, 226, 197, 0.14) 55%, transparent 100%);
}

.boost-flash.active {
  animation: boostFlashSweep 0.8s ease-out;
}

.boost-toast strong {
  font-size: 1.02rem;
}

.boost-toast span:last-child {
  color: var(--accent-2);
  font-weight: 700;
}

.boost-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.boost-toast.boost-ending {
  border-color: rgba(255, 111, 111, 0.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 111, 111, 0.18), transparent 46%),
    linear-gradient(135deg, rgba(255, 111, 111, 0.16), rgba(255, 184, 77, 0.08)),
    rgba(9, 17, 31, 0.92);
}

.boost-toast.boost-critical {
  animation: boostCriticalPulse 0.9s ease-in-out infinite;
}

.boost-banner h3 {
  margin: 10px 0 6px;
}

.boost-banner-metrics {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.boost-banner-metrics strong {
  font-size: 1.3rem;
  color: var(--accent);
}

.boost-banner-metrics span {
  font-weight: 700;
  color: var(--accent-2);
}

.summary-card.boost-live {
  border-color: rgba(255, 184, 77, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 77, 0.08), 0 18px 32px rgba(255, 184, 77, 0.08);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 184, 77, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.summary-card.boost-ticking strong {
  animation: hashTickGlow 0.9s ease-in-out infinite;
}

.boost-rate-live {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(255, 184, 77, 0.22);
}

.boost-rate-jump {
  animation: rateJump 0.45s ease;
}

.boost-live .summary-card-highlight,
.summary-card-highlight.boost-live {
  animation: boostPulse 1.8s ease-in-out infinite;
}

.boost-banner.boost-ending {
  border-color: rgba(255, 111, 111, 0.38);
}

.boost-banner.boost-critical {
  animation: boostCriticalPulse 0.9s ease-in-out infinite;
}

@keyframes boostPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 77, 0.08), 0 18px 32px rgba(255, 184, 77, 0.08);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px rgba(255, 184, 77, 0.14), 0 20px 40px rgba(255, 184, 77, 0.16);
  }
}

@keyframes hashTickGlow {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 184, 77, 0);
  }
  50% {
    transform: scale(1.03);
    text-shadow: 0 0 18px rgba(255, 184, 77, 0.32);
  }
}

@keyframes boostCriticalPulse {
  0%,
  100% {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(0) scale(1);
  }
  50% {
    box-shadow: 0 18px 52px rgba(255, 111, 111, 0.22);
    transform: translateX(-50%) translateY(0) scale(1.02);
  }
}

@keyframes autoRepairCriticalPulse {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.12);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes boostFlashSweep {
  0% {
    opacity: 0;
    transform: translateX(-8%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(8%);
  }
}

@keyframes rateJump {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-2px) scale(1.06);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.summary-card span,
.admin-stats span,
.admin-form label {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.summary-card strong,
.admin-stats strong {
  font-size: 1.05rem;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-inline-fields {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
}

.admin-automation-log {
  margin-top: 6px;
}

.admin-automation-log-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

.maintenance-banner {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  width: min(760px, calc(100vw - 28px));
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 87, 0.9);
  background: linear-gradient(180deg, rgba(60, 13, 0, 0.96), rgba(34, 8, 0, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 150, 95, 0.25) inset;
  display: grid;
  gap: 8px;
  text-align: center;
}

.maintenance-banner strong {
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: #ffd0b4;
}

.admin-page .admin-shell {
  width: calc(100vw - 40px);
  max-width: none;
  margin: 0 20px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0 32px;
}

.admin-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  display: grid;
  gap: 22px;
  min-height: calc(100vh - 40px);
}

.admin-title {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  margin-bottom: 10px;
}

.admin-nav {
  display: grid;
  gap: 10px;
}

.admin-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-link.active {
  color: var(--text);
  border-color: rgba(77, 226, 197, 0.34);
  background: linear-gradient(135deg, rgba(77, 226, 197, 0.14), rgba(255, 184, 77, 0.08));
  box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.08);
}

.admin-sidebar-actions {
  display: grid;
  gap: 12px;
}

.admin-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.admin-overview-tools {
  display: grid;
  grid-template-columns: minmax(0, 420px);
  gap: 18px;
  margin-top: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.admin-boost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-boost-breakdown {
  margin-bottom: 14px;
}

.admin-boost-callout {
  border-color: rgba(77, 226, 197, 0.18);
  background: linear-gradient(180deg, rgba(77, 226, 197, 0.08), rgba(255, 255, 255, 0.03));
}

.admin-player-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.admin-section {
  scroll-margin-top: 24px;
}

.admin-grid > .admin-section-full {
  grid-column: 1 / -1;
}

.admin-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-homepage-editor {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
  gap: 22px;
  align-items: start;
}

.admin-homepage-preview {
  position: sticky;
  top: 20px;
}

.homepage-preview-stats {
  margin: 18px 0 16px;
}

.homepage-preview-sections {
  gap: 14px;
}

.homepage-preview-fleet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.homepage-preview-fleet-card {
  display: grid;
  gap: 8px;
}

.homepage-preview-fleet-card strong {
  font-size: 0.95rem;
}

.whitepaper-admin-preview h3 {
  margin-bottom: 10px;
}

.preview-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-chip-list .pill {
  border: 0;
  cursor: pointer;
}

.preview-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}


.preview-stat-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.preview-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}


.preview-table-like {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.preview-table-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.preview-table-row span {
  color: var(--muted);
}

.preview-card-stack {
  display: grid;
  gap: 10px;
}

.preview-mini-card {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(179, 211, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.preview-mini-card p {
  margin: 8px 0 0;
}

.editor-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.editor-group summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.editor-group summary::-webkit-details-marker {
  display: none;
}

.editor-group-body {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
}

.compact-list {
  gap: 6px;
  padding-left: 18px;
}

.fleet-artwork-preview {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.1);
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 226, 197, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.fleet-artwork-thumb {
  width: min(100%, 190px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.fleet-artwork-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.fleet-asset-tile {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s ease;
}

.fleet-asset-tile:hover,
.fleet-asset-tile:focus {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.fleet-asset-tile.is-active {
  border-color: rgba(77, 226, 197, 0.55);
  box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.25);
  color: var(--text);
}

.fleet-asset-tile img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(77, 226, 197, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 10px;
}

.fleet-asset-tile span {
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-word;
}

.row-selected td {
  background: rgba(77, 226, 197, 0.08);
}

.player-machine-card {
  border-color: rgba(179, 211, 255, 0.1);
}

#homepageFleetArtworkList .admin-quest-card.is-selected {
  border-color: rgba(77, 226, 197, 0.55);
  box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.25), var(--shadow);
}

.file-upload-trigger {
  position: relative;
  overflow: hidden;
}

input {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

textarea,
select {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.admin-page select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  border-color: rgba(115, 168, 255, 0.24);
  background-color: rgba(8, 16, 30, 0.88);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(185, 255, 233, 0.88) 50%),
    linear-gradient(135deg, rgba(185, 255, 233, 0.88) 50%, transparent 50%),
    linear-gradient(to right, rgba(115, 168, 255, 0.24), rgba(115, 168, 255, 0.24));
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px),
    calc(100% - 38px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 58%;
  background-repeat: no-repeat;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-page select:hover {
  border-color: rgba(77, 226, 197, 0.42);
  background-color: rgba(10, 20, 36, 0.92);
}

.admin-page select:focus {
  border-color: rgba(77, 226, 197, 0.58);
  box-shadow: 0 0 0 3px rgba(77, 226, 197, 0.14);
  outline: none;
}

.admin-page select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.admin-page select::-ms-expand {
  display: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
  min-height: auto;
}

.player-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.game-board {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.game-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.game-board-main,
.game-board-side,
.game-side-stack,
.leaderboard-stack {
  display: grid;
  gap: 20px;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.utility-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.utility-bar h2 {
  margin-bottom: 0;
}

.compact-summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-actions {
  margin-top: 8px;
}

@media (max-width: 920px) {
  .store-hero-panel {
    grid-template-columns: 1fr;
  }
}

.section-inline-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.inline-select {
  display: grid;
  gap: 6px;
  min-width: 180px;
  position: relative;
}

.inline-select span {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.sort-trigger {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(179, 211, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 16, 30, 0.94);
  color: var(--text);
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sort-trigger:hover {
  border-color: rgba(77, 226, 197, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sort-trigger strong {
  font-size: 0.96rem;
  font-weight: 700;
}

.sort-caret {
  color: var(--muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.machine-sorter.open .sort-caret {
  transform: rotate(180deg);
  color: var(--accent-2);
}

.sort-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(9, 14, 27, 0.98);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 6px;
  z-index: 20;
}

.sort-option {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 12px;
  font-size: 0.94rem;
  font-weight: 600;
}

.sort-option:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(179, 211, 255, 0.08);
}

.sort-option.active {
  background: rgba(77, 226, 197, 0.12);
  color: var(--accent-2);
  border-color: rgba(77, 226, 197, 0.18);
}

.section-inline-head h3,
.leaderboard-card h4 {
  margin-bottom: 0;
}

.leaderboard-card + .leaderboard-card {
  margin-top: 18px;
}

.leaderboard-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.leaderboard-panel {
  display: grid;
  gap: 18px;
}

.leaderboard-intro-copy {
  margin-top: -8px;
}

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

.leaderboard-signal-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(179, 211, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(77, 226, 197, 0.08), rgba(255, 184, 77, 0.03)),
    rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

.leaderboard-signal-card span {
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.leaderboard-signal-card strong {
  font-size: 1rem;
  color: var(--text);
}

.leaderboard-signal-card small {
  color: var(--muted);
}

.leaderboard-card {
  background:
    radial-gradient(circle at 10% 10%, rgba(77, 226, 197, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.leaderboard-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 34px;
}

.leaderboard-card-head h4 {
  line-height: 1.2;
  margin: 0;
}

.leaderboard-heading-line {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 34px;
  flex: 1;
  min-width: 0;
}

.leaderboard-heading-spacer {
  visibility: hidden;
  pointer-events: none;
}

#topTotalSpentMetricMeta {
  display: inline-block;
  vertical-align: top;
  line-height: 1.2;
  margin-top: 0;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.leaderboard-meta-stack {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.leaderboard-pool-stat {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 77, 0.24);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 184, 77, 0.14), transparent 42%),
    linear-gradient(155deg, rgba(255, 184, 77, 0.08), rgba(77, 226, 197, 0.05)),
    rgba(255, 255, 255, 0.02);
}

.leaderboard-pool-stat span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.leaderboard-pool-stat strong {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.05;
  color: #ffd36a;
  text-shadow: 0 10px 24px rgba(255, 184, 77, 0.18);
}

.leaderboard-pool-stat strong .pool-inline-countdown {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(179, 211, 255, 0.22);
  background: rgba(7, 18, 34, 0.72);
  font-size: 0.34em !important;
  font-weight: 600;
  color: var(--muted);
  text-shadow: none;
  letter-spacing: 0.01em;
  vertical-align: middle;
  line-height: 1.1;
}

.leaderboard-secondary-grid {
  align-items: start;
}

.leaderboard-combined-card {
  padding: 0;
  overflow: hidden;
}

.leaderboard-combined-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.leaderboard-combined-grid.single-visible {
  grid-template-columns: minmax(0, 1fr);
}

.leaderboard-combined-grid.single-visible .leaderboard-split-panel:not(.hidden) {
  grid-column: 1 / -1;
}

.leaderboard-split-panel {
  padding: 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.leaderboard-split-panel + .leaderboard-split-panel {
  border-left: 1px solid var(--line);
}

.leaderboard-split-panel.hidden {
  display: none;
}

.leaderboard-split-panel.hidden + .leaderboard-split-panel {
  border-left: 0;
}

.leaderboard-card table {
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-card thead th {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.leaderboard-card tbody tr:hover {
  background: rgba(77, 226, 197, 0.06);
}

.form-message {
  margin-top: 16px;
  color: var(--accent-2);
  min-height: 24px;
}

.form-message.error {
  color: var(--danger);
}

.action-inline-message {
  margin-top: 4px;
  min-height: 20px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  color: var(--muted);
}

.action-inline-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.action-inline-message.success {
  color: var(--accent-2);
}

.action-inline-message.error {
  color: var(--danger);
}

.action-feedback-host {
  display: grid;
  gap: 4px;
  align-items: start;
}

.flash-applied {
  animation: flashApplied 0.9s ease;
}

.level-up-flash {
  animation: levelUpFlash 0.9s ease;
}

.repair-flash {
  animation: repairFlash 0.9s ease;
}

.repair-bar-flash {
  animation: repairBarFlash 1s ease;
}

@keyframes flashApplied {
  0% {
    box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.15), 0 0 0 rgba(77, 226, 197, 0);
  }
  35% {
    box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.65), 0 0 0 6px rgba(77, 226, 197, 0.12);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.15), 0 0 0 rgba(77, 226, 197, 0);
  }
}

@keyframes levelUpFlash {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(77, 226, 197, 0);
    background: rgba(255, 255, 255, 0.06);
  }
  30% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(77, 226, 197, 0.14);
    background: rgba(77, 226, 197, 0.22);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(77, 226, 197, 0);
    background: rgba(255, 255, 255, 0.06);
  }
}

@keyframes repairFlash {
  0% {
    box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.15), 0 0 0 rgba(102, 255, 178, 0);
  }
  35% {
    box-shadow: inset 0 0 0 1px rgba(102, 255, 178, 0.72), 0 0 0 6px rgba(102, 255, 178, 0.12);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgba(77, 226, 197, 0.15), 0 0 0 rgba(102, 255, 178, 0);
  }
}

@keyframes repairBarFlash {
  0% {
    filter: brightness(1);
    transform: scaleY(1);
  }
  35% {
    filter: brightness(1.28);
    transform: scaleY(1.18);
  }
  100% {
    filter: brightness(1);
    transform: scaleY(1);
  }
}

@keyframes packDotPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  45% {
    transform: translateY(-3px) scale(1.15);
    opacity: 1;
  }
}

.hidden {
  display: none;
}

.quest-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.admin-quest-card .nav-links {
  gap: 8px;
}

.admin-quest-card .button {
  min-height: 36px;
  padding: 0 12px;
}

.quest-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.quest-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.rank-pill {
  display: inline-flex;
  min-width: 46px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.rank-1 .rank-pill {
  background: linear-gradient(135deg, #f8d56a, #ffb84d);
  color: #241300;
  border-color: transparent;
}

.rank-2 .rank-pill {
  background: linear-gradient(135deg, #d7e1ef, #b7c6db);
  color: #132032;
  border-color: transparent;
}

.rank-3 .rank-pill {
  background: linear-gradient(135deg, #d9a36c, #b87843);
  color: #1f1207;
  border-color: transparent;
}

@keyframes pulseFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(18px, 14px, 0) scale(1.08);
    opacity: 1;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

.sol-order-table td {
  vertical-align: middle;
}

.sol-order-primary {
  font-weight: 700;
  color: var(--text);
}

.sol-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  border: 1px solid transparent;
}

.sol-order-badge.is-pending {
  color: #ffe2a8;
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.28);
}

.sol-order-badge.is-confirmed {
  color: #a8ffe8;
  background: rgba(77, 226, 197, 0.14);
  border-color: rgba(77, 226, 197, 0.28);
}

.sol-order-badge.is-failed {
  color: #ffc1c1;
  background: rgba(255, 111, 111, 0.14);
  border-color: rgba(255, 111, 111, 0.28);
}

.sol-order-link {
  color: var(--accent-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sol-order-link:hover,
.sol-order-link:focus {
  color: #84f2df;
}

.admin-machine-table input {
  min-height: 40px;
  padding: 0 12px;
}

.admin-machine-table td {
  vertical-align: middle;
}

.admin-sink-table input {
  min-height: 40px;
  padding: 0 12px;
}

.admin-sink-table td {
  vertical-align: middle;
}

.admin-sol-order-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-sol-order-search {
  min-width: 260px;
}

@media (max-width: 960px) {
  .admin-page .admin-shell {
    width: min(100%, calc(100% - 24px));
    margin: 0 12px;
  }

  .hero-grid,
  .feature-grid,
  .token-grid,
  .auth-grid,
  .admin-layout,
  .admin-grid,
  .admin-shell,
  .admin-homepage-editor,
  .admin-player-editor,
  .admin-two-column,
  .admin-stats,
  .summary-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .topbar,
  .admin-header,
  .player-summary {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-homepage-preview {
    position: static;
  }

  .game-hero-panel,
  .game-board,
  .game-summary-grid,
  .game-overview-grid,
  .account-dual-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-signal-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-combined-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-split-panel + .leaderboard-split-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .quick-action-bar {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .auth-panel .admin-form {
    padding: 14px;
    border-radius: 14px;
  }

  .summary-card-actions {
    grid-template-columns: 1fr;
  }

  .market-chart-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-range-toggle {
    width: 100%;
    justify-content: flex-end;
  }

  .claim-fee-stats {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .boost-banner {
    grid-template-columns: 1fr;
  }

  .boost-banner-metrics {
    justify-items: start;
  }
}

