﻿:root {
  --bg: #edf1f4;
  --bg-line: #f8fafb;
  --panel: #ffffff;
  --panel-soft: #f6f8fa;
  --border: #d6dde3;
  --border-strong: #b8c4cf;
  --text: #26323d;
  --muted: #6e7d8b;
  --accent: #2f88c9;
  --accent-soft: #e7f1f9;
  --success: #4d9955;
  --danger: #b35c5c;
  --warning: #b48944;
  --shadow: 0 8px 18px rgba(55, 74, 92, 0.08);
  --digit-height: 1.16em;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Tahoma, Verdana, Arial, sans-serif;
  background: linear-gradient(180deg, #f7f9fb 0%, #edf1f4 100%);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 18px;
  width: min(1040px, 100%);
}

.auth-hero,
.auth-panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-hero {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 420px;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(210, 160, 74, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(233, 239, 243, 0.92));
}

.auth-hero__brand {
  align-items: flex-start;
}

.auth-hero__note {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-hero__note p {
  margin: 0;
}

.auth-hero__badge {
  justify-self: start;
  border: 1px solid #d8c59a;
  border-radius: 999px;
  padding: 4px 9px;
  color: #6a4c13;
  background: #fff8e8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.auth-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.auth-form,
.auth-session {
  display: grid;
  gap: 10px;
  border: 1px solid #d9e1e8;
  border-radius: 16px;
  min-width: 0;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f5f8fa);
}

.auth-form h2 {
  margin: 0;
  color: #23445f;
  font-size: 1.05rem;
}

.auth-form p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #516372;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd6df;
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(47, 136, 201, 0.56);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 136, 201, 0.12);
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #9eb8ca;
  border-radius: 10px;
  padding: 9px 12px;
  background: linear-gradient(180deg, #ffffff, #edf3f7);
  color: #29465f;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-button:hover,
.auth-button:focus-visible {
  border-color: #7fa6bf;
  box-shadow: 0 8px 18px rgba(43, 64, 80, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.auth-button--primary {
  border-color: #b99656;
  color: #5b4112;
  background: linear-gradient(180deg, #fffaf0, #efd49a);
}

.auth-button--primary:hover,
.auth-button--primary:focus-visible {
  border-color: #a77b2a;
  box-shadow: 0 10px 22px rgba(126, 90, 24, 0.16);
}

.auth-session__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-message[data-tone="error"] {
  color: #8a4242;
}

.auth-message[data-tone="success"] {
  color: #365f45;
}

.landing-page.auth-page {
  display: block;
  min-height: 100vh;
  padding: 0;
  place-items: initial;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(214, 169, 89, 0.16), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(47, 136, 201, 0.14), transparent 30%),
    linear-gradient(180deg, #f7f9fb 0%, #edf1f4 58%, #e7ecef 100%);
}

.landing-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 10px auto 0;
  padding: 9px 10px;
  border: 1px solid rgba(43, 64, 80, 0.14);
  border-radius: 18px;
  background: rgba(248, 250, 251, 0.74);
  box-shadow: 0 12px 32px rgba(45, 60, 73, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(14px);
}

.landing-brand,
.landing-nav,
.landing-header__actions,
.landing-footer nav {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 10px;
  color: #20394f;
  text-decoration: none;
  min-width: 168px;
}

.landing-brand .brand-mark {
  width: 44px;
  height: 44px;
  border-color: #c99b44;
  background:
    linear-gradient(180deg, #fff8df, #e6c16f),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.72), transparent 36%);
  box-shadow: 0 10px 22px rgba(112, 79, 22, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.landing-brand__text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.landing-brand__name {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.landing-brand__meta {
  color: #7b8a96;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-nav {
  justify-content: center;
  gap: 4px;
  justify-self: center;
  padding: 4px;
  border: 1px solid rgba(43, 64, 80, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.landing-nav a,
.landing-footer a {
  color: #6f7e8a;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-nav a {
  padding: 7px 10px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.landing-nav a:hover,
.landing-footer a:hover {
  color: #29465f;
}

.landing-nav a:hover {
  background: rgba(231, 239, 244, 0.72);
}

.landing-header__actions {
  justify-content: flex-end;
  gap: 8px;
}

.landing-header__actions .auth-button {
  min-height: 34px;
  padding: 7px 11px;
}

.landing-shell {
  display: grid;
  gap: clamp(52px, 6vw, 74px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 6px 0 54px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 5.2vw, 70px);
  min-height: min(760px, calc(100svh - 78px));
  padding: 10px 0 8px;
}

.landing-hero__visual {
  position: relative;
  min-height: clamp(390px, 58vh, 560px);
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.landing-hero__visual::before,
.landing-hero__visual::after {
  display: none;
}

.landing-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: contain;
  object-position: center;
}

.landing-visual__room {
  position: absolute;
  inset: 0;
}

.landing-visual__room::before,
.landing-visual__room::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.landing-visual__room::before {
  left: 0;
  right: 0;
  bottom: 12%;
  height: 28%;
  background:
    radial-gradient(ellipse at 32% 75%, rgba(20, 30, 39, 0.22), transparent 26%),
    radial-gradient(ellipse at 70% 74%, rgba(20, 30, 39, 0.18), transparent 24%);
}

.landing-visual__room::after {
  inset: 10% 8% auto auto;
  width: 88px;
  height: 120px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    repeating-linear-gradient(180deg, rgba(44, 63, 77, 0.18) 0 3px, transparent 3px 13px);
  opacity: 0.55;
}

.landing-visual__beam {
  position: absolute;
  top: 6%;
  left: 17%;
  width: 36%;
  height: 54%;
  background: linear-gradient(115deg, rgba(255, 247, 220, 0.52), transparent 70%);
  transform: skewX(-12deg);
}

.landing-visual__window {
  position: absolute;
  top: 9%;
  left: 9%;
  width: 28%;
  height: 26%;
  border: 1px solid rgba(96, 118, 134, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(116, 136, 150, 0.22) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, rgba(249, 253, 255, 0.72), rgba(221, 235, 243, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.landing-visual__shelf,
.landing-visual__desk {
  position: absolute;
  left: 8%;
  right: 8%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 96, 109, 0.28), rgba(34, 49, 61, 0.42));
}

.landing-visual__shelf {
  top: 37%;
  height: 10px;
  opacity: 0.4;
}

.landing-visual__desk {
  bottom: 16%;
  height: 16px;
  transform: rotate(-0.4deg);
  box-shadow: 0 18px 42px rgba(19, 30, 40, 0.3);
}

.landing-visual__monitor {
  position: absolute;
  left: 30%;
  top: 21%;
  width: 38%;
  height: 28%;
  border: 1px solid rgba(23, 36, 48, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(20, 33, 43, 0.92), rgba(13, 22, 30, 0.9)),
    radial-gradient(circle at 24% 20%, rgba(105, 185, 128, 0.25), transparent 34%);
  transform: rotate(-0.7deg);
  box-shadow: 0 20px 38px rgba(22, 35, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landing-visual__monitor::after {
  content: "";
  position: absolute;
  left: 46%;
  bottom: -18px;
  width: 8%;
  height: 18px;
  border-radius: 0 0 4px 4px;
  background: rgba(33, 47, 58, 0.66);
}

.landing-visual__monitor-bar,
.landing-visual__monitor-line,
.landing-visual__monitor-grid {
  position: absolute;
  left: 12%;
  right: 12%;
  border-radius: 999px;
}

.landing-visual__monitor-bar {
  top: 16%;
  height: 7px;
  background: linear-gradient(90deg, #79c08a 0 32%, rgba(120, 183, 204, 0.72) 32% 68%, rgba(213, 168, 82, 0.72) 68%);
}

.landing-visual__monitor-line {
  top: 38%;
  width: 48%;
  height: 4px;
  background: rgba(196, 224, 206, 0.38);
}

.landing-visual__monitor-line--wide {
  top: 51%;
  width: 68%;
}

.landing-visual__monitor-grid {
  left: 12%;
  right: 12%;
  bottom: 16%;
  height: 24%;
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(114, 184, 132, 0.15) 0 1px, transparent 1px 15px),
    repeating-linear-gradient(0deg, rgba(114, 184, 132, 0.13) 0 1px, transparent 1px 10px);
}

.landing-visual__rig {
  position: absolute;
  bottom: 20%;
  border: 1px solid rgba(59, 79, 94, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(248, 251, 252, 0.92), rgba(133, 153, 166, 0.84)),
    repeating-linear-gradient(90deg, rgba(37, 52, 64, 0.18) 0 2px, transparent 2px 14px);
  box-shadow: 0 18px 36px rgba(24, 34, 43, 0.24);
}

.landing-visual__rig i {
  position: absolute;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(88, 166, 111, 0.72);
  box-shadow: 0 0 10px rgba(88, 166, 111, 0.42);
}

.landing-visual__rig i:nth-child(1) {
  left: 13%;
  bottom: 18%;
}

.landing-visual__rig i:nth-child(2) {
  left: 38%;
  bottom: 18%;
}

.landing-visual__rig i:nth-child(3) {
  left: 63%;
  bottom: 18%;
}

.landing-visual__rig--gpu {
  left: 9%;
  width: 31%;
  height: 15%;
  transform: rotate(0.8deg);
}

.landing-visual__rig--asic {
  right: 11%;
  width: 24%;
  height: 23%;
  transform: rotate(-1deg);
}

.landing-visual__rig--tower {
  left: 45%;
  bottom: 17%;
  width: 17%;
  height: 32%;
  border-radius: 13px;
  transform: rotate(0.4deg);
}

.landing-visual__cable {
  position: absolute;
  border: 2px solid rgba(47, 66, 80, 0.25);
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 22px 0;
}

.landing-visual__cable--one {
  left: 31%;
  bottom: 21%;
  width: 20%;
  height: 18%;
}

.landing-visual__cable--two {
  right: 26%;
  bottom: 21%;
  width: 18%;
  height: 14%;
  transform: scaleX(-1);
}

.landing-visual__chip {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: rgba(40, 69, 94, 0.86);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 18px rgba(35, 48, 60, 0.1);
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  backdrop-filter: blur(7px);
}

.landing-visual__chip--income {
  top: 18%;
  right: 11%;
}

.landing-visual__chip--battle {
  left: 8%;
  bottom: 34%;
}

.landing-visual__console {
  display: grid;
  gap: 4px;
  position: absolute;
  left: 9%;
  right: auto;
  bottom: 7%;
  width: min(62%, 360px);
  padding: 10px 12px;
  border: 1px solid rgba(138, 175, 153, 0.22);
  border-radius: 12px;
  overflow: hidden;
  color: rgba(211, 235, 220, 0.86);
  background: rgba(12, 22, 28, 0.72);
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(86, 178, 121, 0.32);
}

.landing-visual__console b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.landing-hero__copy {
  display: grid;
  gap: 15px;
  max-width: 500px;
}

.landing-eyebrow {
  margin: 0;
  color: #7c5b1b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2 {
  margin: 0;
  color: #20394f;
  letter-spacing: -0.04em;
}

.landing-hero h1 {
  max-width: 10.4ch;
  font-size: clamp(2.65rem, 5.55vw, 5.35rem);
  line-height: 0.96;
}

.landing-hero p:not(.landing-eyebrow),
.landing-section__head p:not(.landing-eyebrow),
.landing-auth__copy p:not(.landing-eyebrow) {
  margin: 0;
  color: #5d7080;
  font-size: 1.02rem;
  line-height: 1.65;
}

.landing-hero__copy > p:not(.landing-eyebrow) {
  max-width: 470px;
}

.landing-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.landing-hero__signals span {
  padding: 4px 8px;
  border: 1px solid rgba(43, 64, 80, 0.1);
  border-radius: 999px;
  color: #5f7282;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

.landing-hero__actions .auth-button {
  min-height: 42px;
  padding-inline: 15px;
}

.landing-section {
  display: grid;
  gap: 26px;
}

.landing-section:not(.landing-hero) {
  scroll-margin-top: 96px;
}

.landing-section--loop {
  position: relative;
  margin-top: -8px;
}

.landing-section--loop::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  width: min(420px, 44%);
  height: 1px;
  background: linear-gradient(90deg, rgba(126, 90, 24, 0.2), transparent);
}

.landing-section__head {
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.landing-section__head::after {
  content: "";
  width: 68px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d5a852, rgba(47, 136, 201, 0.2));
}

.landing-section h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.landing-loop,
.landing-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-loop article,
.landing-features article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(43, 64, 80, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 245, 248, 0.76)),
    radial-gradient(circle at 16% 0%, rgba(213, 168, 82, 0.1), transparent 36%);
  box-shadow: 0 14px 34px rgba(37, 50, 62, 0.07);
}

.landing-loop article {
  grid-template-rows: auto 1fr auto;
  min-height: 230px;
}

.landing-loop article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -16px;
  z-index: 2;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 90, 24, 0.3), rgba(47, 136, 201, 0.26));
}

.landing-loop span,
.landing-progression span {
  color: #8d6a27;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-loop__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(141, 106, 39, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.7);
}

.landing-loop h3,
.landing-features h3 {
  margin: 0;
  color: #29465f;
  font-size: 1.08rem;
}

.landing-loop p,
.landing-features p {
  margin: 0;
  color: #627482;
  font-size: 0.9rem;
  line-height: 1.55;
}

.landing-loop small {
  align-self: end;
  color: #7c8a95;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.landing-progression {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(43, 64, 80, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(229, 237, 241, 0.42)),
    radial-gradient(circle at 0% 0%, rgba(213, 168, 82, 0.14), transparent 32%);
  box-shadow: 0 18px 44px rgba(37, 50, 62, 0.08);
}

.landing-progression::before {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  top: 49px;
  height: 2px;
  background: linear-gradient(90deg, rgba(213, 168, 82, 0.45), rgba(47, 136, 201, 0.32), rgba(54, 90, 116, 0.18));
}

.landing-progression div {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 178px;
  padding: 18px;
  border: 1px solid rgba(43, 64, 80, 0.15);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(237, 243, 246, 0.76)),
    radial-gradient(circle at 18% 18%, rgba(47, 136, 201, 0.1), transparent 38%);
  overflow: hidden;
}

.landing-progression div::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: 3px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: #d5a852;
  box-shadow: 0 0 0 4px rgba(213, 168, 82, 0.12);
}

.landing-progression div::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d5a852, rgba(47, 136, 201, 0.28));
}

.landing-progression div[data-stage="garage"] {
  transform: translateY(-8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 241, 245, 0.82)),
    radial-gradient(circle at 20% 18%, rgba(213, 168, 82, 0.13), transparent 42%);
}

.landing-progression div[data-stage="infra"],
.landing-progression div[data-stage="late"] {
  background:
    linear-gradient(180deg, rgba(247, 251, 253, 0.9), rgba(225, 235, 240, 0.78)),
    radial-gradient(circle at 18% 18%, rgba(47, 136, 201, 0.13), transparent 42%);
}

.landing-progression strong {
  color: #29465f;
  font-size: 0.98rem;
  line-height: 1.3;
}

.landing-progression p {
  margin: 0;
  color: #657684;
  font-size: 0.82rem;
  line-height: 1.45;
}

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

.landing-features article {
  min-height: 172px;
  padding-left: 64px;
}

.landing-features article::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 24px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(43, 64, 80, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(219, 230, 236, 0.7)),
    radial-gradient(circle at 35% 30%, rgba(213, 168, 82, 0.32), transparent 38%);
}

.landing-features article[data-feature="battle"]::before {
  background:
    linear-gradient(180deg, rgba(240, 249, 244, 0.78), rgba(203, 225, 213, 0.72)),
    radial-gradient(circle at 50% 50%, rgba(85, 168, 107, 0.42), transparent 42%);
}

.landing-features article[data-feature="goals"]::before {
  background:
    linear-gradient(180deg, rgba(255, 249, 232, 0.82), rgba(232, 214, 162, 0.72)),
    radial-gradient(circle at 50% 50%, rgba(213, 168, 82, 0.38), transparent 42%);
}

.landing-features article[data-feature="system"]::before {
  background:
    linear-gradient(180deg, rgba(238, 246, 251, 0.82), rgba(203, 219, 229, 0.72)),
    radial-gradient(circle at 50% 50%, rgba(47, 136, 201, 0.32), transparent 42%);
}

.landing-auth {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(43, 64, 80, 0.16);
  border-radius: 30px;
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 239, 243, 0.8)),
    radial-gradient(circle at 12% 0%, rgba(213, 168, 82, 0.18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(47, 136, 201, 0.1), transparent 28%);
  box-shadow: 0 20px 54px rgba(37, 50, 62, 0.1);
}

.landing-auth__copy {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.landing-auth__copy h2 {
  max-width: 11.5ch;
  font-size: clamp(1.86rem, 3.4vw, 2.95rem);
  line-height: 1.04;
}

.landing-auth__copy p:not(.landing-eyebrow) {
  max-width: 410px;
}

.landing-auth .auth-panel {
  background: rgba(255, 255, 255, 0.76);
  padding: clamp(18px, 2vw, 22px);
}

.landing-auth .auth-forms {
  gap: clamp(16px, 2vw, 20px);
}

.landing-auth .auth-form {
  align-content: start;
  padding: clamp(16px, 1.8vw, 19px);
}

.landing-auth .auth-form h2 {
  max-width: 100%;
  font-size: clamp(1.9rem, 2.35vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.landing-auth .auth-form p {
  max-width: 100%;
}

.landing-auth .auth-form input,
.landing-auth .auth-form .auth-button {
  width: 100%;
  max-width: 100%;
}

.landing-auth .auth-session {
  align-content: center;
  min-height: 190px;
}

.landing-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(43, 64, 80, 0.12);
  color: #627482;
}

.landing-footer__brand {
  display: grid;
  gap: 5px;
  max-width: 460px;
}

.landing-footer__brand > span {
  color: #20394f;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.landing-footer__brand p {
  margin: 0;
  color: #6b7b88;
  font-size: 0.84rem;
  line-height: 1.45;
}

.landing-footer nav {
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  position: relative;
  width: min(1230px, calc(100% - 22px));
  margin: 0 auto;
  padding: 14px 0 26px;
}

.topbar,
.ticker-bar,
.account-box,
.coin-card,
.device-card,
.farm-card,
.admin-panel,
.algorithm-group {
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f5f7f9);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #2673aa;
  border-radius: 9px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(180deg, #3f97d6, #2678b2);
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy__overline,
.account-box__label,
.coin-stat__label,
.device-stat__label,
.farm-card__label,
.status-bar__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-copy h1,
.panel-heading h2,
.coin-card__title,
.device-card__title {
  margin: 0;
}

.brand-copy h1 {
  font-size: 1.42rem;
  font-weight: 700;
}

.brand-copy__meta,
.panel-heading p,
.coin-card__subtitle,
.device-card__description,
.farm-card__meta,
.algorithm-group__description,
.device-card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 0.84rem;
}

.status-bar__label:last-of-type {
  color: #8595a3;
}

.status-bar__label:nth-last-of-type(1),
.status-bar__value:last-of-type {
  opacity: 0.88;
}

.status-bar__divider {
  color: #98a8b6;
}

.status-bar__value[data-runtime="deployed"] {
  color: #365f45;
  font-weight: 700;
}

.status-bar__value[data-runtime="local"],
.status-bar__value[data-server="disabled"] {
  color: #6a7884;
}

.status-bar__value[data-server="configured"],
.status-bar__value[data-account="signed-in"] {
  color: #365f45;
  font-weight: 700;
}

.status-bar__value--online {
  flex: 0 0 auto;
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 8px;
  border: 1px solid rgba(137, 163, 180, 0.36);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 242, 247, 0.84)),
    radial-gradient(circle at 10% 0%, rgba(91, 153, 117, 0.13), transparent 48%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 12px rgba(55, 77, 92, 0.08);
  white-space: nowrap;
}

.status-online__segment,
.status-online__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.status-online__label {
  color: #6f7f8c;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-online__count,
.status-online__activity {
  font-family: "Courier New", Consolas, monospace;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.status-online__count {
  min-width: 3ch;
  color: #243f53;
  font-size: 0.9rem;
}

.status-online__trend {
  display: inline-grid;
  place-items: center;
  width: 0.8em;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.status-bar__value[data-online-trend="up"] .status-online__trend {
  color: #2c8b50;
  text-shadow: 0 0 8px rgba(64, 164, 91, 0.24);
}

.status-bar__value[data-online-trend="down"] .status-online__trend {
  color: #b64b43;
  text-shadow: 0 0 8px rgba(190, 76, 68, 0.18);
}

.status-online__divider {
  color: #a3b1bd;
  font-size: 0.62rem;
}

.status-online__activity {
  color: #536b7b;
  font-size: 0.78rem;
}

.status-bar__button {
  border: 1px solid #c7d2db;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff;
  color: #516372;
  font-size: 0.72rem;
  cursor: pointer;
}

.status-bar__button:hover {
  background: linear-gradient(180deg, #ffffff, #e5edf3);
}

.status-profile {
  position: relative;
  display: inline-flex;
}

.status-profile__trigger {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #c7d2db;
  border-radius: 999px;
  padding: 3px 9px;
  color: #3f617d;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(180deg, #ffffff, #e7eef4);
}

.status-profile__trigger::-webkit-details-marker {
  display: none;
}

.status-profile[open] .status-profile__trigger {
  border-color: #9eb8ca;
  background: linear-gradient(180deg, #ffffff, #dfeaf2);
}

.status-profile__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 8px;
  width: min(300px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid #c9d6df;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 245, 249, 0.98)),
    #f4f8fb;
  box-shadow: 0 14px 34px rgba(31, 51, 69, 0.18);
}

.status-profile__field {
  display: grid;
  gap: 4px;
}

.status-profile__label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-profile__message {
  min-height: 1.1em;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 2px;
}

.mode-switch__button {
  border: 1px solid #d3dbe2;
  border-radius: 999px;
  padding: 3px 8px;
  color: #667989;
  background: linear-gradient(180deg, #fbfcfd, #eef2f5);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
}

.mode-switch__button.is-active {
  border-color: #b9cad8;
  color: #35566d;
  background: linear-gradient(180deg, #ffffff, #e7eef3);
}

.ticker-bar {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff, #f5f8fa);
}

.ticker-bar__window {
  overflow: hidden;
  padding: 8px 0;
}

.ticker-bar__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
  will-change: transform;
}

.ticker-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.84rem;
}

.ticker-bar__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 2px;
  border: 1px solid #d2dbe3;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #eef3f7);
  flex: 0 0 18px;
}

.ticker-bar__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ticker-bar__code {
  font-weight: 700;
}

.ticker-bar__price,
.ticker-bar__change,
.coin-card__yield,
.device-stat__value,
.farm-card__value,
.account-box__prefix,
.account-box__suffix,
.coin-stat__prefix {
  font-family: "Courier New", Consolas, monospace;
}

.ticker-bar__change {
  font-size: 0.78rem;
  font-weight: 700;
}

.ticker-bar__change.is-up,
.coin-card[data-trend="up"] .coin-card__status {
  color: var(--success);
}

.ticker-bar__change.is-down,
.coin-card[data-trend="down"] .coin-card__status {
  color: var(--danger);
}

.workspace {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 3.1fr) minmax(286px, 0.9fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 6px;
}

.account-box {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
}

.account-box--wide {
  background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.account-box__value-row,
.coin-stat__value-row,
.device-card__cost-row,
.account-box__coin-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.coin-card__algorithm,
.coin-stat__unit,
.device-card__count {
  color: var(--muted);
  font-size: 0.77rem;
}

.coin-card__algorithm {
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-box--profile {
  padding: 10px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 251, 0.96)),
    linear-gradient(135deg, rgba(77, 133, 181, 0.08), transparent 46%);
}

.miner-profile-compact {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d3dde5;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(244, 248, 251, 0.95)),
    linear-gradient(135deg, rgba(71, 126, 171, 0.06), transparent 44%);
  box-shadow: 0 10px 22px rgba(55, 74, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84);
  align-self: start;
}

.farm-stage {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.panel-heading--inside {
  padding: 0 2px 0 1px;
}

.profile-hub__name-row,
.profile-hub__footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-hub__top {
  display: grid;
  gap: 8px;
}

.profile-hub__identity {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.profile-hub__identity-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.profile-hub__eyebrow,
.profile-hub__rank-label,
.profile-hub__credits-label,
.profile-hub__tech-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-hub__name-row {
  align-items: start;
  justify-content: space-between;
  gap: 6px;
}

.profile-card__name-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.profile-hub__rank-wrap {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 0;
}

.profile-hub__credits-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #1f3d55;
}

.profile-hub__credits-prefix {
  color: #7a5c23;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.98rem;
  font-weight: 700;
}

.profile-hub__wallet {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #dfd2b4;
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 8%, rgba(223, 176, 82, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 245, 229, 0.9)),
    linear-gradient(135deg, rgba(191, 150, 80, 0.1), transparent 52%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 16px rgba(111, 82, 32, 0.07);
}

.profile-hub__wallet-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.profile-hub__credits-side {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 0;
  text-align: right;
}

.profile-hub__wallet-note {
  margin: 0;
  color: #7c6a41;
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: 22ch;
  justify-self: end;
}

.profile-hub__wallet .odometer--large {
  color: #1f5f3b;
  font-size: 1.68rem;
  letter-spacing: -0.02em;
}

.profile-credit-feed {
  display: grid;
  align-content: end;
  gap: 2px;
  min-width: 0;
  max-width: 150px;
  text-align: left;
}

.profile-credit-feed__row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: #788170;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.profile-credit-feed__amount {
  flex: 0 0 auto;
  font-family: "Courier New", Consolas, monospace;
}

.profile-credit-feed__type {
  overflow: hidden;
  color: #7c6a41;
  text-overflow: ellipsis;
}

.profile-credit-feed__row.is-income .profile-credit-feed__amount {
  color: #2f7a45;
}

.profile-credit-feed__row.is-expense .profile-credit-feed__amount {
  color: #a34a3d;
}

.profile-credit-feed__empty {
  color: #8a7a58;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-hub__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.profile-hub__section {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid #e4ebf0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-hub__section--rank,
.profile-hub__section--activity {
  min-width: 0;
}

.profile-hub__section--rank {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 249, 252, 0.8)),
    linear-gradient(135deg, rgba(95, 144, 184, 0.05), transparent 48%);
}

.profile-hub__section--portfolio {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 252, 0.8)),
    linear-gradient(135deg, rgba(77, 133, 181, 0.04), transparent 48%);
}

.profile-hub__section--telemetry {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 252, 0.8)),
    linear-gradient(135deg, rgba(108, 144, 91, 0.05), transparent 48%);
}

.profile-hub__section--activity {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 249, 251, 0.78)),
    linear-gradient(135deg, rgba(118, 136, 151, 0.05), transparent 48%);
}

.profile-hub__footer {
  align-items: stretch;
  justify-content: stretch;
  gap: 5px;
  flex-direction: column;
}

.profile-card__head,
.profile-card__name-row,
.profile-card__progress-row,
.profile-hub__section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-card__head {
  align-items: flex-start;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border: 1px solid #c6d2dc;
  border-radius: 14px;
  background: linear-gradient(180deg, #fefefe, #e7edf2);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.profile-avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar__fallback {
  color: #35536b;
  font-family: "Courier New", Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.profile-card__identity {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.profile-card__name-row {
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.profile-card__name {
  min-width: 0;
  color: #203c52;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.profile-rank-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  padding: 3px 8px 3px 5px;
  border: 1px solid #ccb78c;
  border-radius: 999px;
  color: #6c5625;
  background: linear-gradient(180deg, #fff8e8, #f0dfb6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.profile-rank-chip__icon,
.farm-stage__rank-signature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  flex: 0 0 20px;
}

.profile-rank-chip__icon svg,
.farm-stage__rank-signature-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.profile-card__status-badge {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: none;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.profile-card__meta,
.profile-card__progress-label,
.profile-card__section-label,
.profile-card__activity-algorithm,
.profile-card__message {
  color: var(--muted);
  font-size: 0.76rem;
}

.profile-card__progress {
  display: grid;
  gap: 4px;
}

.profile-card__progress-row {
  justify-content: space-between;
  gap: 8px;
}

.profile-hub__section-head {
  justify-content: space-between;
}

.profile-card__progress-value,
.profile-card__activity-coin,
.profile-portfolio__summary,
.profile-portfolio__usd,
.profile-portfolio__amount {
  color: #334d63;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 700;
}

.profile-card__progress-bar {
  position: relative;
  overflow: hidden;
  height: 8px;
  border: 1px solid #d6dfe6;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbfc, #ecf2f6);
}

.profile-card__progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ba8c9, #4a86b4);
  transition: width 220ms ease;
}

.profile-card__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.profile-card__input {
  grid-column: 1 / -1;
  min-width: 0;
  height: 30px;
  border: 1px solid #cfd8df;
  border-radius: 7px;
  padding: 0 9px;
  color: #294153;
  background: linear-gradient(180deg, #ffffff, #f1f5f8);
}

.profile-card__input:focus {
  outline: none;
  border-color: #8eb4d2;
  box-shadow: 0 0 0 2px rgba(110, 160, 201, 0.16);
}

.profile-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border: 1px solid #a8bfd2;
  border-radius: 7px;
  padding: 0 10px;
  color: #27455d;
  background: linear-gradient(180deg, #ffffff, #e7eef4);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}

.profile-card__button--muted {
  border-color: #c7d2db;
  color: #60717f;
  background: linear-gradient(180deg, #fcfcfd, #edf1f4);
}

.profile-card__message {
  min-height: 1.2em;
  text-align: left;
}

.profile-card__message[data-tone="error"] {
  color: var(--danger);
}

.profile-card__message[data-tone="success"] {
  color: var(--success);
}

.profile-card__message[data-tone="muted"] {
  color: var(--muted);
}

.profile-portfolio {
  display: grid;
  gap: 5px;
}

.profile-portfolio__entry {
  display: grid;
  gap: 3px;
}

.profile-portfolio__row {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 6px;
  padding: 5px 6px;
  border: 1px solid #e3eaef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.profile-portfolio__row:hover,
.profile-portfolio__row:focus-visible,
.profile-portfolio__row.is-open {
  border-color: #b9cad8;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 2px rgba(94, 139, 174, 0.1);
  outline: none;
}

.profile-portfolio__coin {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.profile-portfolio__coin-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.profile-portfolio__meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  justify-items: end;
  white-space: nowrap;
}

.profile-portfolio__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 2px;
  border: 1px solid #d5dfe6;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #edf2f6);
  flex: 0 0 18px;
}

.profile-portfolio__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-portfolio__code {
  color: #2f4f67;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.profile-portfolio__amount {
  font-size: 0.73rem;
  white-space: nowrap;
}

.profile-portfolio__usd {
  color: #556b7f;
  font-size: 0.68rem;
  white-space: nowrap;
}

.profile-portfolio__button {
  position: relative;
  z-index: 2;
  grid-column: 3;
  align-self: center;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #a9bfd1;
  border-radius: 999px;
  padding: 0;
  color: #28475e;
  background: linear-gradient(180deg, #ffffff, #e7eef4);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.profile-portfolio__button:hover,
.profile-portfolio__button:focus-visible {
  border-color: #7fa7c6;
  background: linear-gradient(180deg, #ffffff, #dde7ef);
  box-shadow: 0 0 0 3px rgba(94, 139, 174, 0.16);
  outline: none;
}

.profile-portfolio__button:active {
  transform: translateY(1px) scale(0.97);
}

.profile-portfolio__button svg {
  width: 14px;
  height: 14px;
  display: block;
}

.profile-portfolio__button:disabled {
  color: #8d9aa6;
  border-color: #ccd6de;
  background: linear-gradient(180deg, #f7f8fa, #edf1f4);
  cursor: not-allowed;
}

.profile-portfolio__history {
  display: grid;
  gap: 4px;
  max-height: 148px;
  overflow-y: auto;
  margin: 0 4px 4px;
  padding: 6px;
  border: 1px solid #e2ebf1;
  border-radius: 8px;
  background: rgba(245, 249, 251, 0.82);
}

.profile-portfolio__history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(205, 219, 229, 0.58);
  font-size: 0.68rem;
}

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

.profile-portfolio__history-amount {
  overflow: hidden;
  color: #31546c;
  font-family: "Courier New", Consolas, monospace;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-portfolio__history-type,
.profile-portfolio__history-empty {
  color: #667b8b;
  font-size: 0.67rem;
}

.profile-portfolio__history-type {
  text-align: right;
  white-space: nowrap;
}

.profile-portfolio__empty,
.profile-portfolio__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.42;
}

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

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

.profile-telemetry__item {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #e4ebf0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.profile-telemetry__item--goal {
  grid-column: 1 / -1;
}

.profile-telemetry--farm .profile-telemetry__item--goal {
  grid-column: 1 / -1;
}

.profile-telemetry__daily {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 0 2px;
  color: #607280;
  font-size: 0.72rem;
  line-height: 1.25;
}

.profile-telemetry__daily strong {
  flex: 0 0 auto;
  color: #314d63;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.profile-telemetry__item--goal[data-has-goal="true"] {
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.profile-telemetry__item--goal[data-has-goal="true"]:hover,
.profile-telemetry__item--goal[data-has-goal="true"]:focus-visible {
  border-color: #bfd4e2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(184, 209, 226, 0.52), 0 8px 18px rgba(62, 84, 104, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.profile-telemetry__recommendation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.profile-telemetry__device-media {
  display: grid;
  place-items: center;
  width: 58px;
  height: 44px;
  border: 1px solid rgba(191, 212, 226, 0.78);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.92), transparent 58%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.92), rgba(229, 237, 243, 0.86));
  overflow: hidden;
}

.profile-telemetry__device-media[hidden] {
  display: none;
}

.profile-telemetry__device-image {
  display: block;
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(39, 56, 70, 0.16));
}

.profile-telemetry__device-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-telemetry__device-title {
  color: #28455e;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-telemetry__label {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-telemetry__goal-name,
.profile-telemetry__meta {
  color: var(--muted);
  font-size: 0.73rem;
}

.profile-telemetry__value-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.profile-telemetry__prefix,
.profile-telemetry__suffix {
  color: #556b7f;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-telemetry .odometer {
  color: #29465f;
  font-size: 0.88rem;
}

.profile-portfolio__empty {
  padding: 7px 2px 1px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 1px;
}

.panel-heading h2 {
  font-size: 1.08rem;
}

.panel-heading--tight {
  margin-top: -2px;
}

.panel-heading--farm h2,
.panel-heading--devices h2 {
  color: #23445f;
}

.panel-heading--admin h2 {
  color: #395b35;
}

.panel-heading--service h2 {
  color: #516372;
}

.dashboard-band {
  position: relative;
}

.dashboard-band::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 100%;
  height: 1px;
  opacity: 0.55;
}

.dashboard-band--farm::before {
  background: linear-gradient(90deg, rgba(73, 132, 184, 0.34), rgba(73, 132, 184, 0));
}

.dashboard-band--coins::before {
  background: linear-gradient(90deg, rgba(144, 160, 176, 0.32), rgba(144, 160, 176, 0));
}

.dashboard-band--devices::before {
  background: linear-gradient(90deg, rgba(181, 138, 68, 0.38), rgba(181, 138, 68, 0));
}

.dashboard-band--return::before {
  background: linear-gradient(90deg, rgba(88, 154, 118, 0.34), rgba(88, 154, 118, 0));
}

.dashboard-band--achievements::before {
  background: linear-gradient(90deg, rgba(181, 138, 68, 0.34), rgba(181, 138, 68, 0));
}

.dashboard-band--service::before {
  background: linear-gradient(90deg, rgba(145, 154, 161, 0.28), rgba(145, 154, 161, 0));
}

.dashboard-band--admin::before {
  background: linear-gradient(90deg, rgba(128, 173, 119, 0.34), rgba(128, 173, 119, 0));
}

.farm-card,
.algorithm-group,
.coin-card,
.device-card,
.admin-panel,
.return-panel {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
}

.return-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 251, 0.96)),
    linear-gradient(135deg, rgba(86, 151, 115, 0.06), transparent 44%);
}

.hero-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  margin-top: 8px;
}

.activity-feed {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 10px;
  border: 1px solid rgba(44, 64, 78, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(244, 248, 250, 0.78), rgba(222, 231, 236, 0.62)),
    radial-gradient(circle at 0% 0%, rgba(79, 126, 162, 0.13), transparent 44%);
  box-shadow: 0 10px 22px rgba(35, 45, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}

.hero-rail .hero-hud {
  align-self: stretch;
  justify-self: end;
  margin: 0;
}

.activity-feed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.activity-feed__eyebrow {
  color: #6a7b89;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.activity-feed__pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #55a86b;
  box-shadow: 0 0 0 3px rgba(85, 168, 107, 0.12), 0 0 10px rgba(85, 168, 107, 0.24);
}

.activity-feed__list {
  display: grid;
  gap: 2px;
}

.activity-feed__item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #596c7a;
  font-size: 0.7rem;
  line-height: 1.15;
}

.activity-feed__item.is-primary {
  color: #29465f;
  font-weight: 800;
  font-size: 0.75rem;
}

.activity-feed__item:not(.is-primary) {
  opacity: 0.72;
}

.activity-feed__icon {
  flex: 0 0 auto;
  width: 16px;
  text-align: center;
  filter: saturate(0.86);
}

.activity-feed__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.return-panel__item {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid #dfe7eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
}

.return-panel__item--bonus {
  align-content: start;
}

.return-panel__label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.return-panel__title {
  color: #29465f;
  font-size: 0.94rem;
  font-weight: 700;
}

.return-panel__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.return-panel__button {
  justify-self: start;
  border: 1px solid #9eb8ca;
  border-radius: 7px;
  padding: 7px 11px;
  color: #24425c;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #e7eef4);
}

.return-panel__button:hover {
  background: linear-gradient(180deg, #ffffff, #dde8f0);
}

.return-panel__button:disabled {
  color: #8d9aa6;
  border-color: #ccd6de;
  background: linear-gradient(180deg, #f7f8fa, #edf1f4);
  cursor: not-allowed;
}

.achievements-panel {
  display: grid;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 251, 0.96)),
    var(--panel);
}

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

.achievements-panel__eyebrow,
.achievements-panel__label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievements-panel__title {
  margin: 2px 0 0;
  color: #29465f;
  font-size: 1rem;
}

.achievements-panel__counter {
  padding: 5px 8px;
  border: 1px solid #dbe5eb;
  border-radius: 999px;
  color: #31506a;
  font-size: 0.78rem;
  font-weight: 800;
  background: #f7fafc;
  white-space: nowrap;
}

.achievements-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.82fr);
  gap: 10px;
}

.achievements-panel__card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dfe7eb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.achievement-next {
  display: grid;
  gap: 8px;
}

.achievement-next__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.achievement-next__title {
  margin: 0;
  color: #223e55;
  font-size: 0.98rem;
}

.achievement-next__description,
.achievements-panel__empty {
  margin: 0;
  color: #5c6f7f;
  font-size: 0.82rem;
  line-height: 1.35;
}

.achievement-next__reward,
.achievements-latest__reward {
  color: #2f7a54;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.achievement-next__progress {
  display: grid;
  gap: 5px;
}

.achievement-next__progress-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf1;
}

.achievement-next__progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fa2c8, #8dbb8a);
}

.achievement-next__progress-text {
  color: #496174;
  font-size: 0.78rem;
  font-weight: 800;
}

.achievements-latest {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow: auto;
  padding-right: 2px;
}

.achievements-latest__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 7px;
  border: 1px solid #e4ebef;
  border-radius: 8px;
  background: #fbfdfe;
  cursor: help;
}

.achievements-latest__title {
  min-width: 0;
  overflow: hidden;
  color: #29465f;
  font-size: 0.83rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farm-card {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 251, 0.96)),
    linear-gradient(135deg, rgba(72, 135, 189, 0.05), transparent 42%);
}

.farm-stage__scene {
  --farm-scene-image: none;
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 55vh, 560px);
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.78), rgba(226, 236, 244, 0.94)),
    linear-gradient(135deg, rgba(68, 121, 165, 0.16), rgba(186, 148, 81, 0.08));
  box-shadow: 0 14px 28px rgba(55, 74, 92, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -38px 72px rgba(64, 88, 109, 0.12);
}

.farm-stage__backdrop {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  height: 100%;
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.46), transparent 34%),
    radial-gradient(circle at 70% 100%, rgba(71, 109, 141, 0.18), transparent 36%);
}

.farm-stage__backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--farm-scene-image);
  background-size: cover;
  background-position: center 52%;
  background-repeat: no-repeat;
  opacity: 0.68;
  transform: scale(1.02);
  filter: saturate(1.03) contrast(1.04);
  pointer-events: none;
  z-index: 0;
}

.farm-stage__surface {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.16), rgba(240, 245, 250, 0.03) 22%, transparent 38%),
    linear-gradient(0deg, rgba(10, 16, 24, 0.88), rgba(18, 28, 39, 0.72) 18%, rgba(35, 49, 63, 0.4) 30%, rgba(67, 87, 105, 0.18) 45%, transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 56%);
  pointer-events: none;
  z-index: 1;
}

.farm-stage__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.26;
  pointer-events: none;
  z-index: 1;
}

.farm-stage__overlay-title,
.farm-stage__stat-label,
.farm-stage__mining-algorithm {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.farm-stage__mining-coin {
  margin: 3px 0 0;
  color: #5f7282;
  font-size: 0.78rem;
  line-height: 1.35;
}

.farm-stage__overlay {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(241, 246, 250, 0.34);
  backdrop-filter: blur(8px) saturate(1.02);
  box-shadow: 0 10px 20px rgba(48, 66, 83, 0.1);
}

.farm-stage__overlay--infrastructure {
  top: 16px;
  left: 16px;
  min-width: 248px;
}

.farm-stage__overlay--finance {
  top: 96px;
  left: 16px;
  width: min(100% - 32px, 344px);
  background: rgba(244, 248, 238, 0.38);
}

.farm-stage__overlay--mining {
  top: 16px;
  right: 16px;
  width: min(100%, 326px);
}

.farm-stage__overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.farm-stage__stats-inline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.farm-stage__stat {
  display: grid;
  gap: 3px;
}

.farm-stage__stat + .farm-stage__stat {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.farm-stage__stat-value,
.farm-stage__mining-power {
  display: block;
  color: #28455e;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.farm-stage__mining-rows {
  display: grid;
  gap: 8px;
}

.farm-stage__mining-row {
  display: grid;
  gap: 4px;
}

.farm-stage__mining-row + .farm-stage__mining-row {
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.farm-stage__mining-main {
  display: grid;
  gap: 2px;
}

.farm-stage__rank-signature {
  position: absolute;
  right: 16px;
  bottom: 124px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px 7px 7px;
  border-radius: 999px;
  background: rgba(241, 246, 250, 0.4);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(48, 66, 83, 0.08);
}

.farm-stage__rank-signature-label {
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.farm-stage__objects {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 34px;
  z-index: 1;
  height: 84px;
  pointer-events: none;
}

.farm-stage__zone {
  position: absolute;
  bottom: 0;
  width: max-content;
  max-width: 30%;
}

.farm-stage__zone[data-algorithm="SHA256"] {
  left: 2%;
}

.farm-stage__zone[data-algorithm="SCRYPT"] {
  left: 33%;
}

.farm-stage__zone[data-algorithm="ETCHASH"] {
  right: 2%;
}

.farm-stage__zone-cluster {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  min-height: 46px;
}

.farm-stage__object,
.farm-stage__object-overflow {
  position: relative;
  flex: 0 0 auto;
}

.farm-stage__object {
  width: 38px;
  height: 26px;
  border: 1px solid rgba(76, 99, 116, 0.36);
  border-radius: 5px;
  background:
      linear-gradient(180deg, rgba(224, 233, 239, 0.98), rgba(156, 176, 191, 0.9));
  box-shadow: 0 5px 12px rgba(36, 54, 68, 0.14);
  overflow: visible;
  pointer-events: auto;
}

.farm-stage__object::before {
  content: "";
  position: absolute;
  inset: 4px 4px 8px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(67, 90, 108, 0.28), rgba(67, 90, 108, 0.08)),
    repeating-linear-gradient(90deg, rgba(243, 248, 251, 0.18) 0 3px, transparent 3px 6px);
  opacity: 0.92;
}

.farm-stage__object::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(58, 76, 92, 0.28);
}

.farm-stage__object[data-has-sprite="true"]::before,
.farm-stage__object[data-has-sprite="true"]::after {
  display: none;
}

.farm-stage__object-image {
  position: absolute;
  inset: -3px;
  display: block;
  width: calc(100% + 6px);
  height: calc(100% + 6px);
  object-fit: contain;
  object-position: center bottom;
  filter: contrast(1.04) saturate(1.03) drop-shadow(0 8px 14px rgba(14, 23, 32, 0.34));
  pointer-events: none;
}

.farm-stage__object[data-class="gpu"] {
  width: 46px;
  height: 22px;
  border-radius: 4px;
}

.farm-stage__object[data-class="gpu"]::before {
  inset: 4px 18px 4px 5px;
  background:
    radial-gradient(circle at 6px 7px, rgba(54, 73, 88, 0.64) 0 3px, transparent 3.4px),
    radial-gradient(circle at 16px 7px, rgba(54, 73, 88, 0.64) 0 3px, transparent 3.4px),
    linear-gradient(180deg, rgba(224, 233, 239, 0.14), rgba(70, 92, 109, 0.12));
}

.farm-stage__object[data-class="gpu"]::after {
  left: auto;
  right: 4px;
  width: 8px;
  height: 12px;
  bottom: 5px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(54, 73, 88, 0.46), rgba(54, 73, 88, 0.18)),
    repeating-linear-gradient(180deg, rgba(236, 243, 247, 0.24) 0 1px, transparent 1px 3px);
}

.farm-stage__object[data-class="asic"] {
  width: 30px;
  height: 30px;
}

.farm-stage__object[data-class="asic"]::before {
  inset: 5px 5px 7px;
}

.farm-stage__object-count,
.farm-stage__object-overflow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(92, 119, 141, 0.22);
  border-radius: 999px;
  color: #35556b;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(247, 250, 252, 0.76);
  box-shadow: 0 2px 6px rgba(42, 58, 73, 0.08);
}

.farm-stage__object-count {
  position: absolute;
  right: -8px;
  bottom: -8px;
}

.farm-stage__object[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 5px 8px;
  border: 1px solid rgba(123, 150, 172, 0.3);
  border-radius: 7px;
  background: rgba(13, 23, 31, 0.92);
  color: #edf6fb;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px rgba(7, 13, 18, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 4;
}

.farm-stage__object[data-tooltip]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  background: rgba(13, 23, 31, 0.92);
  border-right: 1px solid rgba(123, 150, 172, 0.24);
  border-bottom: 1px solid rgba(123, 150, 172, 0.24);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 3;
}

.farm-stage__object:hover::before,
.farm-stage__object:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.farm-stage__object:hover::after,
.farm-stage__object:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) rotate(45deg);
}

.farm-stage__object-count--pulse {
  animation: device-count-pop 0.55s ease;
}

.farm-stage__zone[data-algorithm="SHA256"] .farm-stage__object {
  border-color: rgba(173, 134, 65, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 250, 237, 0.96), rgba(222, 199, 151, 0.88));
}

.farm-stage__zone[data-algorithm="SCRYPT"] .farm-stage__object {
  border-color: rgba(104, 132, 156, 0.3);
  background:
    linear-gradient(180deg, rgba(246, 250, 253, 0.96), rgba(196, 212, 225, 0.86));
}

.farm-stage__zone[data-algorithm="ETCHASH"] .farm-stage__object {
  border-color: rgba(97, 130, 120, 0.3);
  background:
    linear-gradient(180deg, rgba(244, 252, 248, 0.96), rgba(183, 212, 198, 0.86));
}

.farm-stage__object--purchased {
  animation: farm-object-pop 0.9s ease;
}

.hero-hud {
  position: relative;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 0 auto;
  padding: 7px;
  border: 1px solid rgba(44, 64, 78, 0.24);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 248, 250, 0.82), rgba(222, 231, 236, 0.72));
  box-shadow: 0 10px 24px rgba(35, 45, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.hero-hud__button {
  position: relative;
  z-index: 1;
  min-width: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(58, 78, 92, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(217, 226, 231, 0.74));
  color: #30495f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
}

.hero-hud__button:hover,
.hero-hud__button:focus-visible {
  border-color: rgba(47, 91, 125, 0.52);
  color: #1f3e56;
}

.hero-hud__button.is-active {
  border-color: rgba(41, 83, 116, 0.64);
  background: linear-gradient(180deg, #31526b, #20394f);
  color: #f4fbff;
  box-shadow: 0 8px 18px rgba(31, 57, 78, 0.28);
}

.hero-mode-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 78px 18px 32px;
  background: linear-gradient(180deg, rgba(13, 23, 32, 0.5), rgba(12, 19, 24, 0.72));
  pointer-events: auto;
}

.hero-mode-overlay--battle-win {
  background: linear-gradient(180deg, rgba(12, 35, 24, 0.48), rgba(8, 22, 17, 0.74));
}

.hero-mode-overlay--battle-lose {
  background: linear-gradient(180deg, rgba(34, 15, 17, 0.54), rgba(13, 12, 15, 0.8));
}

.hero-mode-card,
.battle-panel {
  width: min(620px, 100%);
  border: 1px solid rgba(167, 189, 203, 0.24);
  border-radius: 18px;
  background: rgba(20, 31, 40, 0.86);
  color: #e9f2f6;
  box-shadow: 0 24px 58px rgba(9, 15, 20, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-mode-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.hero-mode-card__eyebrow,
.battle-panel__eyebrow,
.battle-panel__cost {
  color: #91b5c7;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-mode-card h3,
.battle-panel h3,
.hero-mode-card p,
.battle-panel p {
  margin: 0;
}

.hero-mode-card h3,
.battle-panel h3 {
  color: #ffffff;
  font-size: 1.28rem;
}

.hero-mode-card p,
.battle-panel p {
  color: #b9cbd5;
  line-height: 1.45;
}

.battle-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.battle-panel__header {
  display: grid;
  gap: 6px;
}

.battle-panel__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.battle-panel__stats div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(157, 184, 198, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.battle-panel__stats span {
  color: #92aeba;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.battle-panel__stats strong {
  overflow: hidden;
  color: #f6fbff;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battle-panel__hint {
  color: #a9bfca;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

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

.battle-panel__footer div {
  display: grid;
  gap: 5px;
}

.battle-panel__button {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid rgba(147, 197, 158, 0.38);
  border-radius: 12px;
  background: linear-gradient(180deg, #a8d895, #5e995c);
  color: #112415;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.battle-panel__button:disabled {
  border-color: rgba(165, 178, 186, 0.22);
  background: rgba(185, 198, 205, 0.34);
  color: #9fb0ba;
  cursor: not-allowed;
}

.battle-console {
  display: grid;
  gap: 5px;
  min-height: 142px;
  max-height: 174px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(83, 129, 112, 0.34);
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(57, 96, 75, 0.28), transparent 40%), rgba(5, 12, 10, 0.86);
  color: #b7f2c2;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: inset 0 0 24px rgba(14, 50, 32, 0.32);
}

.battle-console span {
  color: #5bd17a;
}

.battle-console__line--success {
  color: #84f29a;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(98, 221, 126, 0.38);
}

.battle-console__line--success span {
  color: #9dffad;
}

.battle-console__line--failure {
  color: #ff7f74;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(229, 79, 68, 0.34);
}

.battle-console__line--failure span {
  color: #ff9a91;
}

.battle-panel[data-result="win"] {
  border-color: rgba(115, 204, 135, 0.34);
  box-shadow: 0 24px 58px rgba(9, 15, 20, 0.38), 0 0 24px rgba(94, 210, 124, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.battle-panel[data-result="lose"] {
  border-color: rgba(220, 156, 122, 0.34);
  background: rgba(27, 24, 28, 0.9);
  box-shadow: 0 24px 58px rgba(9, 15, 20, 0.44), 0 0 24px rgba(210, 87, 75, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.miner-profile-compact[data-rank="mom"] .profile-avatar,
.miner-profile-compact[data-rank="mom"] .profile-hub__wallet {
  border-color: #dcc18f;
}

.miner-profile-compact[data-rank="balcony"] .profile-avatar,
.miner-profile-compact[data-rank="balcony"] .profile-hub__wallet {
  border-color: #b7c5d6;
}

.miner-profile-compact[data-rank="garage"] .profile-avatar,
.miner-profile-compact[data-rank="garage"] .profile-hub__wallet {
  border-color: #95a4b2;
}

.profile-rank-chip[data-rank="mom"] {
  border-color: #d3b57a;
  color: #6f5420;
  background: linear-gradient(180deg, #fff5df, #efd9a9);
}

.profile-rank-chip[data-rank="balcony"] {
  border-color: #aebfce;
  color: #38566f;
  background: linear-gradient(180deg, #f4f8fc, #dbe7f0);
}

.profile-rank-chip[data-rank="garage"] {
  border-color: #9ea9b3;
  color: #394d5e;
  background: linear-gradient(180deg, #f0f3f6, #d5dde4);
}

.profile-card__progress-fill[data-rank="mom"] {
  background: linear-gradient(90deg, #cba25c, #ae7f2f);
}

.profile-card__progress-fill[data-rank="balcony"] {
  background: linear-gradient(90deg, #7ea8c5, #4d7ca0);
}

.profile-card__progress-fill[data-rank="garage"] {
  background: linear-gradient(90deg, #8397a8, #53687a);
}

.farm-stage__scene[data-scene-rank="mom"] {
  box-shadow: 0 14px 28px rgba(77, 63, 34, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -38px 72px rgba(89, 62, 18, 0.12);
}

.farm-stage__scene[data-scene-rank="balcony"] {
  box-shadow: 0 14px 28px rgba(48, 69, 92, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -38px 72px rgba(53, 82, 109, 0.14);
}

.farm-stage__scene[data-scene-rank="garage"] {
  box-shadow: 0 14px 28px rgba(48, 57, 68, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -38px 72px rgba(39, 49, 58, 0.18);
}

.farm-stage__scene[data-scene-rank="mom"] .farm-stage__overlay,
.farm-stage__scene[data-scene-rank="mom"] .farm-stage__rank-signature {
  background: rgba(248, 241, 225, 0.38);
}

.farm-stage__scene[data-scene-rank="balcony"] .farm-stage__overlay,
.farm-stage__scene[data-scene-rank="balcony"] .farm-stage__rank-signature {
  background: rgba(237, 244, 250, 0.36);
}

.farm-stage__scene[data-scene-rank="garage"] .farm-stage__overlay,
.farm-stage__scene[data-scene-rank="garage"] .farm-stage__rank-signature {
  background: rgba(236, 241, 245, 0.32);
}

.farm-stage__rank-signature[data-rank="mom"] {
  color: #6f5420;
}

.farm-stage__rank-signature[data-rank="balcony"] {
  color: #38566f;
}

.farm-stage__rank-signature[data-rank="garage"] {
  color: #394d5e;
}

.farm-card__value {
  color: #28455e;
  font-size: 1.05rem;
  font-weight: 700;
}

.coins-grid,
.devices-panel {
  display: grid;
  gap: 12px;
}

.algorithm-group {
  display: grid;
  gap: 10px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
}

.algorithm-group__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.algorithm-group__summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.algorithm-group__summary-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #d5dee6;
  border-radius: 999px;
  color: #486275;
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff, #eef3f6);
}

.algorithm-group__summary-chip--next {
  border-color: #d7bf8d;
  color: #6d5726;
  background: linear-gradient(180deg, #fff9ec, #f2e1bb);
}

.algorithm-group__title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.algorithm-group__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 4px 10px;
  border: 1px solid #c6d2dc;
  border-radius: 999px;
  color: #35536d;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff, #edf2f6);
}

.algorithm-group[data-algorithm="SHA256"] .algorithm-group__badge {
  border-color: #d7bf8d;
  background: linear-gradient(180deg, #fff8ea, #f3e2bd);
}

.algorithm-group[data-algorithm="SCRYPT"] .algorithm-group__badge {
  border-color: #b9c7de;
  background: linear-gradient(180deg, #f7faff, #dfe8f6);
}

.algorithm-group__title {
  margin: 0;
  font-size: 0.98rem;
}

.algorithm-group__grid,
.devices-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.devices-panel__catalog {
  display: grid;
  gap: 12px;
}

.devices-panel__lane {
  display: grid;
  gap: 8px;
}

.devices-panel__lane--locked {
  padding-top: 2px;
  border-top: 1px dashed #d7e0e7;
}

.devices-panel__lane--future {
  padding-top: 4px;
  border-top: 1px dashed #e0e6eb;
  opacity: 0.88;
}

.devices-panel__lane-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.devices-panel__lane-label {
  display: inline-flex;
  align-items: center;
  color: #35536d;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.devices-panel__lane-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.devices-panel__grid--locked .device-card {
  background: linear-gradient(180deg, rgba(250, 252, 253, 0.98), rgba(244, 247, 250, 0.98));
}

.devices-panel__grid--future .device-card {
  background:
    linear-gradient(180deg, rgba(248, 250, 251, 0.96), rgba(241, 245, 248, 0.94)),
    linear-gradient(135deg, rgba(132, 145, 156, 0.05), transparent 46%);
  opacity: 0.92;
}

.coin-card,
.device-card {
  display: grid;
  gap: 9px;
  padding: 11px;
}

.coin-card.is-active {
  border-color: #79acd4;
  box-shadow: 0 0 0 1px #d8e8f4, var(--shadow);
}

.coin-card.is-powerless {
  opacity: 0.78;
}

.coin-card.is-powerless .coin-card__status {
  color: #87939d;
}

.coin-card.is-powerless .coin-card__status-dot {
  box-shadow: none;
}

.coin-card.is-powerless .coin-stat--wide {
  background: #f5f7f9;
}

.coin-card__top,
.coin-card__footer,
.device-card__footer,
.device-card__head,
.admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.coin-card__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.coin-card__headcopy {
  min-width: 0;
}

.coin-card__title,
.device-card__title {
  font-size: 1rem;
  font-weight: 700;
}

.coin-card__subtitle {
  margin-top: 3px;
  font-size: 0.82rem;
}

.coin-card__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  white-space: nowrap;
}

.coin-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.coin-card__stats,
.device-card__grid {
  display: grid;
  gap: 8px;
}

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

.coin-stat,
.device-stat {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  background: #fafbfd;
}

.coin-stat--wide {
  grid-column: 1 / -1;
}

.coin-card.is-active .coin-stat--wide {
  border-color: #c7d8e7;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 252, 0.98)),
    linear-gradient(135deg, rgba(72, 135, 189, 0.08), transparent 42%);
}

.coin-card.is-active .coin-stat--wide.is-mining {
  box-shadow: 0 0 0 1px rgba(164, 197, 224, 0.46);
  animation: mining-pulse 1.8s ease-in-out infinite;
}

.coin-card__yield,
.device-stat__value {
  color: #35526b;
  font-size: 0.88rem;
  font-weight: 700;
}

.device-card__subtitle {
  margin-top: 3px;
  font-size: 0.78rem;
}

.coin-card__action,
.device-card__button,
.admin-button {
  border: 1px solid #9eb8ca;
  border-radius: 7px;
  padding: 7px 11px;
  color: #24425c;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #e7eef4);
}

.coin-card__action:hover,
.device-card__button:hover,
.admin-button:hover {
  background: linear-gradient(180deg, #ffffff, #dde8f0);
}

.coin-card__action:disabled,
.device-card__button:disabled {
  color: #8d9aa6;
  border-color: #ccd6de;
  background: linear-gradient(180deg, #f7f8fa, #edf1f4);
  cursor: not-allowed;
}

.scroll-top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 1px solid #9eb8ca;
  border-radius: 999px;
  color: #24425c;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(227, 236, 243, 0.96)),
    #eef4f8;
  box-shadow: 0 8px 20px rgba(31, 51, 69, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  background:
    linear-gradient(180deg, #ffffff, #dbe8f1),
    #eef4f8;
  outline: none;
}

.achievement-toasts {
  position: fixed;
  right: 18px;
  bottom: 72px;
  z-index: 45;
  display: grid;
  gap: 8px;
  width: min(310px, calc(100vw - 28px));
  pointer-events: none;
}

.achievement-toast {
  padding: 12px 13px;
  border: 1px solid #b9ccdb;
  border-radius: 10px;
  color: #213a50;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(235, 243, 249, 0.97)),
    #f3f7fa;
  box-shadow: 0 12px 30px rgba(31, 51, 69, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.achievement-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.achievement-toast.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.achievement-toast__label {
  color: #587086;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.achievement-toast__title {
  margin-top: 4px;
  font-size: 0.98rem;
  font-weight: 800;
}

.achievement-toast__description {
  margin-top: 3px;
  color: #516578;
  font-size: 0.82rem;
  line-height: 1.35;
}

.achievement-toast__reward {
  margin-top: 8px;
  color: #2f7a54;
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-tools__button,
.device-card__admin-button {
  border: 1px solid #9eb8ca;
  border-radius: 7px;
  padding: 6px 10px;
  color: #24425c;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, #ffffff, #e7eef4);
}

.admin-tools__button:hover,
.device-card__admin-button:hover {
  background: linear-gradient(180deg, #ffffff, #dde8f0);
}

.admin-panel {
  justify-content: flex-start;
  padding: 10px 11px;
  background: linear-gradient(180deg, #ffffff, #f7f9fb);
}

.admin-tools {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px solid #cfe0cb;
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 242, 0.96)),
    linear-gradient(135deg, rgba(123, 176, 113, 0.08), transparent 46%);
  box-shadow: var(--shadow);
}

.admin-tools__status,
.admin-tools__row,
.device-card__admin {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-tools__group {
  display: grid;
  gap: 6px;
}

.admin-tools__label {
  color: #577054;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-tools__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #aecaab;
  border-radius: 999px;
  color: #41603a;
  background: linear-gradient(180deg, #f9fff6, #e7f3e2);
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-tools__note {
  color: #6b7c69;
  font-size: 0.82rem;
}

.admin-tools__button {
  border-color: #abc59d;
  color: #395c33;
  background: linear-gradient(180deg, #fbfff8, #e2f0db);
}

.admin-button--danger {
  border-color: #d7aaaa;
  color: #8a4242;
  background: linear-gradient(180deg, #fffefe, #f8e9e9);
}

.coin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 6px;
  border: 1px solid #c8d2db;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbfcfd, #e9eef2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.coin-badge--top {
  width: 60px;
  height: 60px;
}

.coin-badge--mini {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 5px;
}

.coin-badge--card {
  width: 58px;
  height: 58px;
  min-width: 58px;
}

.coin-badge__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.coin-badge[data-coin="BTC"] {
  background: linear-gradient(180deg, #fff6df, #f4deb0);
  border-color: #dfbf7d;
}

.coin-badge[data-coin="BCH"] {
  background: linear-gradient(180deg, #f4ffef, #ddf0d7);
  border-color: #90c58c;
}

.coin-badge[data-coin="BSV"] {
  background: linear-gradient(180deg, #fbfde8, #eef0be);
  border-color: #d1d59b;
}

.coin-badge[data-coin="XEC"] {
  background: linear-gradient(180deg, #faf2ff, #eadcf5);
  border-color: #b590c7;
}

.coin-badge[data-coin="LTC"] {
  background: linear-gradient(180deg, #f7f9fb, #dde6ef);
  border-color: #b8c5d4;
}

.coin-badge[data-coin="DOGE"] {
  background: linear-gradient(180deg, #fff8e9, #f3e0b2);
  border-color: #dec183;
}

.devices-panel__group {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 240, 0.96));
}

.device-card__subtitle {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #dfd4b9;
  border-radius: 999px;
  color: #785e2e;
  background: linear-gradient(180deg, #fffaf0, #f7edd2);
  font-size: 0.75rem;
  line-height: 1;
}

.device-card__count {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid #d8c48e;
  border-radius: 999px;
  color: #6c5325;
  background: linear-gradient(180deg, #fff7de, #f2e0ad);
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.device-card__count[data-owned-state="none"] {
  border-color: #d9e2e8;
  color: #738493;
  background: linear-gradient(180deg, #fafbfd, #edf2f5);
}

.device-card__count[data-owned-state="owned"] {
  border-color: #a7cfa7;
  color: #2f5f34;
  background: linear-gradient(180deg, #f3fff3, #ddefdd);
  box-shadow: 0 0 0 1px rgba(167, 207, 167, 0.18);
}

.device-card__count[data-owned-state="stacked"] {
  border-color: #8fc093;
  color: #244f2a;
  background: linear-gradient(180deg, #effeef, #d2ebd2);
  box-shadow: 0 0 0 1px rgba(143, 192, 147, 0.22), 0 4px 10px rgba(69, 110, 73, 0.08);
}

.device-card__count--pulse {
  animation: device-count-pop 0.55s ease;
}

.device-card__description {
  font-size: 0.79rem;
  line-height: 1.38;
}

.device-card__media {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(210, 220, 228, 0.78);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 250, 0.92)),
    radial-gradient(circle at top, rgba(199, 214, 226, 0.18), transparent 62%);
  overflow: hidden;
}

.device-card__image {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 70px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 14px rgba(47, 63, 76, 0.14));
}

.device-card__tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.device-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid #ddd8cb;
  border-radius: 999px;
  color: #66563a;
  background: linear-gradient(180deg, #fffefb, #f4efe3);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.device-card__tag--status {
  border-color: #c7d7e4;
  color: #3a5870;
  background: linear-gradient(180deg, #fbfdff, #e8f0f6);
}

.device-card__admin {
  padding-top: 2px;
}

.device-card__admin-button--danger {
  border-color: #d7aaaa;
  color: #8a4242;
  background: linear-gradient(180deg, #fffefe, #f8e9e9);
}

.device-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 243, 0.95)),
    linear-gradient(135deg, rgba(188, 148, 77, 0.08), transparent 46%);
}

.device-card__head {
  align-items: start;
}

.device-card__title {
  color: #20394d;
}

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

.device-card__footer {
  align-items: flex-end;
}

.device-card__footer-copy {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.device-card__note {
  color: #6c7b88;
  font-size: 0.75rem;
  line-height: 1.3;
}

.device-stat__value {
  color: #31495e;
}

.device-card__cost-row {
  gap: 6px;
  color: #7e5a18;
  font-weight: 700;
}

.device-card__cost-text {
  display: inline-block;
  min-width: 4.2em;
  color: #7e5a18;
  font-family: "Courier New", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
}

.device-card__button {
  border-color: #b99656;
  color: #5b4112;
  background: linear-gradient(180deg, #fff8e8, #efd59c);
}

.device-card__button:hover {
  background: linear-gradient(180deg, #fff9ee, #eccb84);
}

.device-card__button--success,
.device-card__button--success:hover,
.device-card__button--success:disabled {
  border-color: #9cc8a3;
  color: #2d5f35;
  background: linear-gradient(180deg, #f4fff2, #d5ebd0);
}

.device-card[data-access-state="locked"],
.device-card[data-access-state="owned-locked"] {
  background:
    linear-gradient(180deg, rgba(248, 249, 251, 0.98), rgba(239, 243, 247, 0.96)),
    linear-gradient(135deg, rgba(120, 136, 149, 0.07), transparent 46%);
}

.device-card[data-access-state="locked"] .device-card__media,
.device-card[data-access-state="owned-locked"] .device-card__media,
.device-card[data-catalog-layer="future"] .device-card__media {
  background:
    linear-gradient(180deg, rgba(251, 252, 253, 0.92), rgba(242, 246, 249, 0.92)),
    radial-gradient(circle at top, rgba(174, 187, 198, 0.14), transparent 62%);
}

.device-card[data-access-state="locked"] .device-card__image,
.device-card[data-access-state="owned-locked"] .device-card__image,
.device-card[data-catalog-layer="future"] .device-card__image {
  opacity: 0.84;
}

.device-card[data-catalog-layer="future"] {
  filter: saturate(0.84);
}

.device-card[data-catalog-layer="future"] .device-card__button {
  display: none;
}

.device-card[data-catalog-layer="future"] .device-card__footer {
  justify-content: flex-start;
}

.device-card[data-catalog-layer="future"] .device-card__note {
  color: #768694;
}

.device-card[data-access-state="locked"] .device-card__title,
.device-card[data-access-state="owned-locked"] .device-card__title {
  color: #51606d;
}

.device-card[data-access-state="locked"] .device-card__tag--status,
.device-card[data-access-state="owned-locked"] .device-card__tag--status {
  border-color: #c7d1db;
  color: #5d6d7a;
  background: linear-gradient(180deg, #fafbfd, #e8edf2);
}

.device-card[data-access-state="legacy"] .device-card__tag--status {
  border-color: #d8c48e;
  color: #6c5325;
  background: linear-gradient(180deg, #fff8e6, #f1dfb0);
}

.device-card--spotlight {
  animation: device-card-spotlight 1.6s ease;
}

.device-card--purchased {
  animation: device-card-purchase 1s ease;
}

.odometer {
  display: inline-flex;
  align-items: center;
  min-height: calc(var(--digit-height) + 0.14em);
  font-family: "Courier New", Consolas, monospace;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #1f2f3c;
}

.odometer--large {
  font-size: 1.52rem;
}

.odometer__digit,
.odometer__separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.odometer__digit {
  position: relative;
  overflow: hidden;
  width: 0.7em;
  height: var(--digit-height);
  margin-right: 0.02em;
  border: 1px solid #cfd8df;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffffff, #e9eef2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.odometer__window {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.odometer__strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(calc(-1 * var(--digit-height) * 10));
  transition: transform 360ms ease;
}

.odometer__num {
  display: grid;
  place-items: center;
  width: 100%;
  height: var(--digit-height);
}

.odometer__separator {
  min-width: 0.28em;
  color: #4d6070;
}

.admin-panel {
  gap: 8px;
  padding: 9px 10px;
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 250, 0.94));
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes mining-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(164, 197, 224, 0.3);
  }

  50% {
    box-shadow: 0 0 0 1px rgba(164, 197, 224, 0.56), 0 0 0 4px rgba(164, 197, 224, 0.12);
  }
}

@keyframes mining-dot {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes device-card-spotlight {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 196, 219, 0), var(--shadow);
  }

  30% {
    box-shadow: 0 0 0 3px rgba(166, 196, 219, 0.24), 0 18px 30px rgba(54, 76, 95, 0.12);
  }

  100% {
    box-shadow: var(--shadow);
  }
}

@keyframes device-card-purchase {
  0% {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }

  35% {
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(162, 205, 169, 0.28), 0 18px 28px rgba(52, 77, 60, 0.12);
  }

  100% {
    transform: translateY(0);
    box-shadow: var(--shadow);
  }
}

@keyframes device-count-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.16);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes farm-object-pop {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 12px rgba(36, 54, 68, 0.14);
  }

  40% {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 0 0 2px rgba(171, 208, 180, 0.2), 0 12px 18px rgba(36, 54, 68, 0.18);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 5px 12px rgba(36, 54, 68, 0.14);
  }
}

@media (max-width: 1080px) {
  .auth-shell,
  .landing-hero,
  .landing-auth,
  .dashboard-hero,
  .achievements-panel__grid,
  .return-panel,
  .algorithm-group__grid,
  .devices-panel__grid,
  .device-card__grid {
    grid-template-columns: 1fr;
  }

  .landing-header {
    grid-template-columns: auto auto;
  }

  .landing-hero {
    gap: 28px;
  }

  .landing-hero h1 {
    max-width: 12ch;
  }

  .landing-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .landing-loop,
  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .landing-progression::before {
    display: none;
  }

  .landing-progression div[data-stage="garage"] {
    transform: none;
  }

  .miner-profile-compact {
    max-width: 520px;
  }

  .farm-stage__scene {
    min-height: max(420px, 52vh);
  }

  .farm-stage__overlay--mining {
    width: min(100% - 32px, 326px);
    margin-top: 0;
  }

  .farm-stage__rank-signature {
    bottom: 108px;
  }

  .farm-stage__objects {
    left: 16px;
    right: 16px;
    bottom: 26px;
    height: 76px;
  }

  .farm-stage__zone {
    max-width: 31%;
  }

  .farm-stage__zone[data-algorithm="SCRYPT"] {
    left: 32%;
  }

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

@media (max-width: 760px) {
  .auth-page {
    padding: 10px;
  }

  .landing-page.auth-page {
    padding: 0;
  }

  .landing-header {
    position: static;
    grid-template-columns: 1fr;
    width: min(100% - 20px, 100%);
    gap: 10px;
    margin-top: 10px;
    border-radius: 16px;
  }

  .landing-nav,
  .landing-header__actions,
  .landing-footer,
  .landing-footer nav {
    justify-content: flex-start;
  }

  .landing-nav {
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .landing-header__actions {
    flex-wrap: wrap;
  }

  .landing-shell,
  .landing-footer {
    width: min(100% - 20px, 100%);
  }

  .landing-shell {
    gap: 44px;
    padding-top: 10px;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.35rem, 14vw, 4rem);
  }

  .landing-hero__visual {
    min-height: 330px;
    border-radius: 20px;
  }

  .landing-visual__monitor {
    left: 25%;
    width: 46%;
  }

  .landing-visual__chip--income {
    right: 6%;
  }

  .landing-visual__chip--battle {
    left: 7%;
  }

  .landing-visual__console {
    width: 72%;
    font-size: 0.66rem;
  }

  .landing-loop,
  .landing-progression {
    grid-template-columns: 1fr;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .landing-loop article,
  .landing-features article {
    min-height: auto;
  }

  .landing-loop article:not(:last-child)::after {
    top: auto;
    right: auto;
    left: 40px;
    bottom: -12px;
    width: 2px;
    height: 18px;
  }

  .landing-progression {
    padding: 12px;
  }

  .landing-progression div {
    min-height: auto;
  }

  .landing-features article {
    padding-left: 58px;
  }

  .landing-auth {
    padding: 18px;
  }

  .landing-auth .auth-panel {
    padding: 14px;
  }

  .landing-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .auth-shell,
  .auth-forms {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: auto;
  }

  .app-shell {
    width: min(100% - 14px, 100%);
  }

  .dashboard-hero,
  .achievements-panel__grid,
  .return-panel,
  .algorithm-group__grid,
  .devices-panel__grid,
  .coin-card__grid,
  .device-card__grid {
    grid-template-columns: 1fr;
  }

  .coin-card__top,
  .device-card__head,
  .admin-panel {
    align-items: start;
    flex-direction: column;
  }

  .profile-hub__top,
  .profile-hub__footer,
  .profile-card__name-row,
  .profile-card__progress-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hub__body,
  .profile-card__activity-grid {
    grid-template-columns: 1fr;
  }

  .profile-hub__credits {
    min-width: 0;
    width: 100%;
  }

  .profile-hub__wallet-main {
    grid-template-columns: 1fr;
  }

  .profile-credit-feed {
    max-width: none;
  }

  .farm-stage__scene {
    min-height: max(360px, 50vh);
  }

  .farm-stage__overlay--infrastructure,
  .farm-stage__overlay--finance,
  .farm-stage__overlay--mining {
    position: static;
    width: auto;
    margin: 0 0 8px;
  }

  .farm-stage__backdrop {
    display: grid;
    gap: 8px;
    align-content: start;
  }

  .farm-stage__rank-signature {
    position: static;
    width: fit-content;
  }

  .farm-stage__objects {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    display: grid;
    height: auto;
    gap: 6px;
    margin-top: 4px;
  }

  .farm-stage__zone {
    position: static;
    width: auto;
    max-width: none;
  }

  .hero-hud {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
    overflow-x: auto;
  }

  .hero-rail {
    grid-template-columns: 1fr;
  }

  .hero-rail .hero-hud {
    justify-self: start;
    width: 100%;
    margin: 0;
  }

  .hero-mode-overlay {
    position: static;
    padding: 12px 0 8px;
    background: transparent;
  }

  .battle-panel__stats,
  .battle-panel__footer {
    grid-template-columns: 1fr;
  }

  .battle-panel__footer {
    display: grid;
  }

  .profile-card__controls {
    grid-template-columns: 1fr;
  }

  .profile-card__message {
    text-align: left;
  }

  .profile-portfolio__row {
    grid-template-columns: 1fr;
  }

  .profile-portfolio__meta {
    justify-items: start;
  }

  .profile-portfolio__button {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .profile-portfolio__history-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-portfolio__history-type {
    text-align: left;
  }

  .profile-telemetry {
    grid-template-columns: 1fr;
  }
}

.device-card__cost-value {
  font-family: "Courier New", Consolas, monospace;
  font-weight: 700;
  color: #7e5a18;
}
