/* ============================================================
   Fortzone Operator · 1.0
   A dark, high-contrast operator workspace.
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-soft: #0b0d10;
  --surface: rgba(18, 21, 26, 0.82);
  --surface-solid: #12151a;
  --surface-2: #171b21;
  --surface-3: #1c2128;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f2f5f3;
  --muted: #909aa6;
  --faint: #5d6673;
  --acid: #c8ff3d;
  --acid-deep: #9fd41c;
  --acid-soft: rgba(200, 255, 61, 0.12);
  --mint: #4ee4b0;
  --violet: #a78bfa;
  --orange: #ffb86b;
  --danger: #ff6b81;
  --blue: #67d8ff;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --sidebar: 266px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--acid);
  color: #08090b;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #2a3038;
  border: 3px solid var(--bg);
  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a424c;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.hidden {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Background
   ============================================================ */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.ambient-glow--a {
  top: -22vw;
  left: 22vw;
  width: 48vw;
  height: 40vw;
  background: rgba(200, 255, 61, 0.09);
}

.ambient-glow--b {
  right: -18vw;
  top: 34vh;
  width: 45vw;
  height: 45vw;
  background: rgba(103, 216, 255, 0.06);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

/* ============================================================
   Type & utilities
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span:empty {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 13px rgba(200, 255, 61, 0.7);
}

.text-acid {
  color: var(--acid);
}

.grad {
  color: var(--acid);
}

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

h1 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.page-sub {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200, 255, 61, 0.8);
}

.help {
  margin: 10px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.55;
}

.hint {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tone-ok { color: var(--mint) !important; }
.tone-bad { color: var(--danger) !important; }
.tone-warn { color: var(--orange) !important; }
.tone-info { color: var(--blue) !important; }
.tone-acid { color: var(--acid) !important; }
.tone-gold { color: var(--orange) !important; }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.08);
  animation: livePulse 2.4s ease-in-out infinite;
}

.dot-sep {
  color: var(--faint);
}

/* ============================================================
   Brand
   ============================================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: var(--acid);
  color: #0a0b0a;
  box-shadow: 0 0 30px rgba(200, 255, 61, 0.18);
}

.brand-mark .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-text span {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-version {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:focus-visible,
.input:focus-visible,
.select:focus-visible,
.lang-btn:focus-visible,
.reveal-btn:focus-visible,
.icon-btn:focus-visible,
.nav-tab:focus-visible,
.wing-chip:focus-visible,
.char-card:focus-visible,
.quick-action:focus-visible,
.link-btn:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.btn-primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #0a0b0a;
  box-shadow: 0 10px 30px rgba(200, 255, 61, 0.12);
}

.btn-primary:hover:not(:disabled) {
  background: #d5ff68;
  border-color: #d5ff68;
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.btn-ghost:hover:not(:disabled) {
  border-color: rgba(200, 255, 61, 0.35);
  background: rgba(200, 255, 61, 0.06);
}

.btn-danger {
  border-color: rgba(255, 107, 129, 0.3);
  background: rgba(255, 107, 129, 0.1);
  color: #ff9aa9;
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 107, 129, 0.18);
}

.btn-lg {
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13.5px;
}

.btn-sm {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.link-btn {
  padding: 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 4px;
}

.link-btn:hover {
  color: var(--acid);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

/* ============================================================
   Form controls
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0a0c0f;
  color: var(--ink);
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  appearance: none;
}

.input::placeholder {
  color: #444d58;
}

.input:hover,
.select:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.input:focus,
.select:focus {
  border-color: rgba(200, 255, 61, 0.55);
  background: #0c0f11;
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.07);
  outline: none;
}

.select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.select option {
  background: #12151a;
  color: var(--ink);
}

.input--mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: var(--faint);
  pointer-events: none;
}

.input--with-icon {
  padding-left: 42px;
}

.input--token {
  padding-right: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.reveal-btn {
  position: absolute;
  right: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}

.reveal-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.reveal-btn .eye-hide {
  display: none;
}

.reveal-btn.is-on .eye-show {
  display: none;
}

.reveal-btn.is-on .eye-hide {
  display: block;
}

.reveal-btn .icon {
  width: 16px;
  height: 16px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.check-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--acid);
  cursor: pointer;
}

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

.gap-sm {
  gap: 8px;
}

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

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

.stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

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

.inline-field--spaced {
  margin-top: 16px;
}

.inline-field .input {
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .btn {
  flex: 1;
}

/* ============================================================
   Login
   ============================================================ */

.login-screen {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 32px);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  width: min(1180px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(13, 15, 19, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.login-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(700px 480px at 10% 0%, rgba(200, 255, 61, 0.11), transparent 62%),
    radial-gradient(620px 520px at 100% 100%, rgba(103, 216, 255, 0.055), transparent 66%),
    #0c0f12;
}

.login-intro::before {
  content: "FZ";
  position: absolute;
  right: -28px;
  bottom: 28px;
  color: transparent;
  font-family: var(--font-display);
  font-size: 250px;
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 0.7;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.login-intro-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand--login .brand-mark {
  width: 42px;
  height: 42px;
}

.login-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.login-hero {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 40px 0;
}

.login-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 5.6vw, 5.1rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.login-hero > p {
  max-width: 460px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.login-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.login-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.login-chips .icon {
  width: 13px;
  height: 13px;
  color: var(--acid);
}

.login-intro-bottom {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, auto) minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.login-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.login-stat strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.login-stat span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-note {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
  background: rgba(15, 18, 22, 0.9);
}

.login-card-head h2 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.login-card-head p {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

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

.login-submit {
  margin-top: 4px;
  justify-content: space-between;
}

.login-submit .icon {
  width: 18px;
  height: 18px;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 107, 129, 0.28);
  border-radius: 9px;
  background: rgba(255, 107, 129, 0.08);
  color: #ff9aa9;
  font-size: 11.5px;
  line-height: 1.45;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.login-steps {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.login-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 13px;
  background: #0d1013;
}

.login-step > span {
  flex: none;
  padding-top: 1px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 9px;
}

.login-step p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.login-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.4;
}

.login-foot .icon {
  width: 12px;
  height: 12px;
  flex: none;
}

/* ============================================================
   App shell
   ============================================================ */

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px 20px;
  border-right: 1px solid var(--line);
  background: rgba(9, 11, 13, 0.72);
  backdrop-filter: blur(20px);
  overflow-y: auto;
}

.sidebar > .brand {
  padding: 0 6px;
}

.workspace-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 24px 0 22px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.workspace-meta {
  margin-left: auto;
  color: var(--faint);
  font-size: 8px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-tab {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-tab::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: transparent;
  transform: translateY(-50%);
  transition: background 160ms ease;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.nav-tab.is-active {
  border-color: var(--line);
  background:
    linear-gradient(90deg, rgba(200, 255, 61, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.nav-tab.is-active::before {
  background: var(--acid);
  box-shadow: 0 0 12px rgba(200, 255, 61, 0.55);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.nav-tab.is-active .nav-icon {
  border-color: rgba(200, 255, 61, 0.22);
  background: var(--acid-soft);
  color: var(--acid);
}

.nav-icon .icon {
  width: 16px;
  height: 16px;
}

.nav-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.nav-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
}

.nav-copy small {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tab.is-active .nav-copy small {
  color: var(--muted);
}

.nav-arrow {
  display: grid;
  place-items: center;
  color: var(--faint);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-tab:hover .nav-arrow,
.nav-tab.is-active .nav-arrow {
  opacity: 1;
}

.nav-tab.is-active .nav-arrow {
  color: var(--acid);
}

.nav-arrow .icon {
  width: 13px;
  height: 13px;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 22px;
}

.foot-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
}

.foot-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-card p {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.version {
  display: block;
  margin-top: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-align: center;
}

.app-column {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 12px clamp(20px, 3.2vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.76);
  backdrop-filter: blur(18px);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.crumb-root {
  color: var(--faint);
}

.crumb-sep {
  color: #333a43;
}

.crumb strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(200, 255, 61, 0.16);
  border-radius: 20px;
  background: rgba(200, 255, 61, 0.05);
  color: #c9dd96;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.lang-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.session-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.session-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--acid), #6d9412);
  color: #0a0b0a;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.session-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.session-meta strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta small {
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  white-space: nowrap;
}

.content {
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  padding: clamp(26px, 3.4vw, 46px) clamp(20px, 3.2vw, 42px) 30px;
}

.tab-content {
  animation: fadeUp 380ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
}

.page-code {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* ============================================================
   Cards, tags, pills
   ============================================================ */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.026), transparent 45%),
    var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-glyph {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.panel-glyph .icon {
  width: 14px;
  height: 14px;
}

.panel-body {
  padding: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--live {
  border-color: rgba(200, 255, 61, 0.2);
  background: rgba(200, 255, 61, 0.06);
  color: var(--acid);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pill--accent {
  border-color: rgba(200, 255, 61, 0.2);
  background: rgba(200, 255, 61, 0.07);
  color: var(--acid);
}

.pill > span {
  color: inherit;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
}

.status-pill[data-tone="ok"] {
  border-color: rgba(78, 228, 176, 0.2);
  color: var(--mint);
}

.status-pill[data-tone="ok"]::before {
  background: var(--mint);
}

.status-pill[data-tone="warn"] {
  border-color: rgba(255, 184, 107, 0.2);
  color: var(--orange);
}

.status-pill[data-tone="warn"]::before {
  background: var(--orange);
}

.status-pill[data-tone="bad"] {
  border-color: rgba(255, 107, 129, 0.2);
  color: var(--danger);
}

.status-pill[data-tone="bad"]::before {
  background: var(--danger);
}

.status-pill[data-tone="running"] {
  border-color: rgba(200, 255, 61, 0.2);
  color: var(--acid);
}

.status-pill[data-tone="running"]::before {
  background: var(--acid);
  animation: livePulse 1.2s ease-in-out infinite;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
}

.note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
  color: var(--muted);
}

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

.empty-state {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--faint);
  font-size: 11px;
  text-align: center;
}

/* ============================================================
   Account
   ============================================================ */

.account-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(720px 280px at 4% -40%, rgba(200, 255, 61, 0.11), transparent 65%),
    radial-gradient(520px 300px at 92% 130%, rgba(103, 216, 255, 0.055), transparent 70%),
    linear-gradient(120deg, #14181c, #0d1013);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.account-hero::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -60px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  pointer-events: none;
}

.account-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.account-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 84px);
  height: clamp(64px, 8vw, 84px);
  flex: none;
  border: 1px solid rgba(200, 255, 61, 0.35);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(200, 255, 61, 0.95), rgba(86, 122, 18, 0.95));
  color: #0a0b0a;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  box-shadow: 0 16px 46px rgba(200, 255, 61, 0.12);
}

.account-identity-copy {
  min-width: 0;
}

.account-identity-copy h2 {
  margin: 0 0 6px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
}

.account-identity-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-hero-side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.level-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(200, 255, 61, 0.24);
  border-radius: 9px;
  background: rgba(200, 255, 61, 0.07);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.delta-chip > span {
  color: var(--faint);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent), var(--surface);
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.metric-card--coin::after { background: var(--acid); }
.metric-card--gem::after { background: var(--blue); }
.metric-card--win::after { background: var(--mint); }

.metric-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 7px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.metric-foot {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 16px;
  align-items: start;
}

.record-grid {
  display: grid;
  gap: 0;
}

.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

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

.record-row > span {
  color: var(--muted);
  font-size: 11px;
}

.record-row > strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
  overflow: hidden;
}

.diag-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  background: #0e1114;
}

.diag-item span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.diag-item strong {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.quick-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.quick-action:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 255, 61, 0.22);
  background: rgba(200, 255, 61, 0.04);
}

.quick-action > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--acid);
}

.quick-action .icon {
  width: 14px;
  height: 14px;
}

.quick-action strong {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
}

.quick-action small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 8.5px;
}

/* ============================================================
   Farm
   ============================================================ */

.farm-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 16px;
  align-items: start;
}

.panel--form .panel-body {
  padding: 20px;
}

.form-section + .form-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--acid);
  font-size: 7px;
}

.section-label em {
  margin-left: auto;
  color: var(--faint);
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.info-strip {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 10px 11px;
  border: 1px solid rgba(200, 255, 61, 0.13);
  border-radius: 9px;
  background: rgba(200, 255, 61, 0.04);
}

.info-strip-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--acid-soft);
  color: var(--acid);
}

.info-strip-icon .icon {
  width: 12px;
  height: 12px;
}

.info-strip p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.info-strip strong {
  color: var(--ink);
}

.form-section .actions {
  margin-top: 18px;
}

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

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.stat-card span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.stat-card strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.panel--console .panel-head {
  background: rgba(255, 255, 255, 0.012);
}

.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.dots {
  display: inline-flex;
  gap: 3px;
}

.dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #333a43;
}

.dots i:first-child { background: #5c4a32; }

.console-body {
  min-height: 220px;
  max-height: 300px;
  padding: 12px 14px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    #090b0d;
  background-size: 100% 24px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.console-body--lg {
  min-height: 300px;
  max-height: 360px;
}

.console-body--sm {
  min-height: 180px;
  max-height: 240px;
}

.log-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  color: #9ba6b1;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.log-time {
  flex: none;
  padding-top: 1px;
  color: #414a55;
  font-size: 8px;
}

.log-text {
  min-width: 0;
}

.log-success { color: var(--mint); }
.log-error { color: #ff8797; }
.log-warn { color: var(--orange); }
.log-info { color: #a6b3bf; }
.log-accent { color: var(--acid); }
.log-muted { color: var(--faint); }

/* ============================================================
   Collection pages
   ============================================================ */

.collection-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 16px;
  align-items: start;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wing-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.legend-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.legend-ice { color: #8fcce9; }
.legend-ice::before { background: var(--blue); }
.legend-fire { color: #e6a97b; }
.legend-fire::before { background: var(--orange); }

.wing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 7px;
}

.wing-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  aspect-ratio: 1 / 1.04;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.wing-chip--ice {
  background: linear-gradient(160deg, rgba(103, 216, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.wing-chip--fire {
  background: linear-gradient(160deg, rgba(255, 184, 107, 0.05), rgba(255, 255, 255, 0.012));
}

.wing-chip:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.wing-chip.is-selected {
  border-color: rgba(200, 255, 61, 0.65);
  background: rgba(200, 255, 61, 0.09);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.12), 0 8px 22px rgba(200, 255, 61, 0.06);
  color: var(--ink);
}

.wing-chip-emoji {
  font-size: 19px;
  line-height: 1;
}

.wing-chip-id {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.wing-chip.is-owned .wing-chip-id::after {
  content: " ·";
  color: var(--mint);
}

.wing-chip.is-equipped::after {
  content: "E";
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--acid);
  color: #0a0b0a;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 600;
}

.wing-preview {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 138px;
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(240px 170px at 16% 50%, rgba(200, 255, 61, 0.1), transparent 70%),
    linear-gradient(130deg, #171c21, #0e1114);
  overflow: hidden;
}

.wing-preview-emoji {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  border: 1px solid rgba(200, 255, 61, 0.18);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 38px;
  line-height: 1;
}

.wing-preview-copy {
  min-width: 0;
}

.wing-preview-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wing-preview .eyebrow {
  margin-bottom: 8px;
  font-size: 8.5px;
}

.panel-body > .btn-block + .btn-block {
  margin-top: 9px;
}

.panel-body > .grid-even {
  margin-top: 9px;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 9px;
}

.char-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #13171c;
  color: var(--ink);
  text-align: left;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.char-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.char-card.is-selected {
  border-color: rgba(200, 255, 61, 0.7);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.15), 0 12px 26px rgba(0, 0, 0, 0.25);
}

.char-card.is-equipped {
  border-color: rgba(103, 216, 255, 0.35);
}

.char-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 142px;
  background:
    radial-gradient(130px 100px at 50% 40%, rgba(200, 255, 61, 0.09), transparent 72%),
    linear-gradient(150deg, #1a2027, #0d1014);
  overflow: hidden;
}

.char-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.65), transparent);
  pointer-events: none;
}

.char-initial {
  position: absolute;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.char-thumb img {
  position: relative;
  z-index: 1;
  width: 82%;
  height: 92%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.35));
}

.char-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(8, 9, 11, 0.7);
  color: transparent;
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.char-check svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.char-card.is-selected .char-check {
  opacity: 1;
  border-color: var(--acid);
  background: var(--acid);
  color: #0a0b0a;
}

.char-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px 12px;
}

.char-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.char-name {
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.char-id {
  flex: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
}

.char-title {
  overflow: hidden;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.char-card.is-owned .char-title::after {
  content: " · owned";
  color: var(--mint);
}

.char-card.is-equipped .char-title::after {
  content: " · equipped";
  color: var(--blue);
}

/* ============================================================
   Nickname
   ============================================================ */

.nick-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.badge-idle,
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.badge-live {
  border-color: rgba(200, 255, 61, 0.24);
  background: rgba(200, 255, 61, 0.07);
  color: var(--acid);
}

.term-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
  overflow: hidden;
}

.term-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  background: #0e1114;
}

.term-stat span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term-stat strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.terminal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.018), transparent 40%),
    #0b0d0f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}

.terminal-body {
  padding: 16px;
}

.terminal-output {
  min-height: 480px;
  max-height: 600px;
  padding: 2px 0;
  overflow-y: auto;
}

.terminal-output .log-line {
  font-size: 10px;
}

/* ============================================================
   Footer
   ============================================================ */

.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.mini-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--acid-soft);
  color: var(--acid);
}

.mini-mark .icon {
  width: 11px;
  height: 11px;
}

/* ============================================================
   Modals
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 5, 6, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 160ms ease both;
}

.modal-card {
  width: min(540px, 100%);
  max-height: min(750px, calc(100vh - 40px));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(600px 220px at 10% -20%, rgba(200, 255, 61, 0.07), transparent 70%),
    #111418;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  animation: modalIn 220ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head .eyebrow {
  margin-bottom: 8px;
}

.modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.modal-sub {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.modal-body {
  padding: 20px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.modal-actions .btn-block {
  flex: 1;
}

.steps {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--line);
  overflow: hidden;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  background: #0e1114;
}

.step-num {
  flex: none;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 9px;
}

.step-text {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.step-text strong {
  color: var(--ink);
}

.confirm-message {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-line;
}

/* ============================================================
   Toasts
   ============================================================ */

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #171c22;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  animation: toastIn 220ms ease both;
}

.toast.is-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast--success { border-color: rgba(78, 228, 176, 0.3); }
.toast--warn { border-color: rgba(255, 184, 107, 0.3); }
.toast--error { border-color: rgba(255, 107, 129, 0.32); }
.toast--info { border-color: rgba(103, 216, 255, 0.22); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1240px) {
  :root { --sidebar: 236px; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card:nth-child(n + 4) { border-top-color: var(--line); }
}

@media (max-width: 1080px) {
  :root { --sidebar: 82px; }
  .sidebar { padding: 18px 12px; align-items: center; }
  .sidebar > .brand { padding: 0; }
  .sidebar .brand-text,
  .sidebar .brand-version,
  .workspace-chip,
  .nav-copy,
  .nav-arrow,
  .sidebar-foot { display: none; }
  .nav { width: 100%; margin-top: 26px; gap: 6px; }
  .nav-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px;
  }
  .nav-tab::before { left: -12px; }
  .nav-icon { width: 38px; height: 38px; }
  .app-shell { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .account-grid,
  .farm-grid,
  .collection-grid,
  .nick-grid { grid-template-columns: minmax(0, 1fr); }
  .farm-grid .stack,
  .collection-grid .stack,
  .account-grid .stack { grid-row: auto; }
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
    min-height: 0;
  }
  .login-intro {
    min-height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .login-hero { padding: 34px 0 20px; }
  .login-hero h1 { font-size: clamp(2.8rem, 8vw, 4rem); }
  .login-intro-bottom { display: none; }
  .login-card { padding: 30px; }
  .login-intro::before { font-size: 180px; }
}

@media (max-width: 760px) {
  :root { --sidebar: 100%; }
  .app-shell { display: block; }
  .sidebar {
    position: relative;
    top: 0;
    z-index: 30;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    height: auto;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .sidebar > .brand .brand-text { display: flex; }
  .sidebar > .brand .brand-text span { display: none; }
  .sidebar .brand-mark { width: 32px; height: 32px; }
  .sidebar .nav {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
    margin: 0;
    overflow-x: auto;
  }
  .nav-tab {
    width: 38px;
    height: 38px;
    flex: none;
    padding: 4px;
  }
  .nav-tab::before,
  .nav-icon { display: none; }
  .nav-tab {
    display: grid;
    place-items: center;
    color: var(--muted);
  }
  .nav-tab::after {
    content: attr(data-tab);
    display: block;
    max-width: 20px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-overflow: ellipsis;
  }
  .nav-tab.is-active { color: var(--acid); }
  .topbar {
    min-height: 60px;
    padding: 9px 16px;
  }
  .crumb-root,
  .crumb-sep,
  .live-pill,
  .session-meta { display: none; }
  .session-badge { padding: 3px; border-radius: 8px; }
  .session-avatar { width: 29px; height: 29px; }
  .content { padding: 24px 16px 24px; }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  .page-side { padding-bottom: 0; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .account-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .account-hero-side { justify-content: flex-start; width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid,
  .field-grid--three,
  .grid-even { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wing-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .char-thumb { height: 124px; }
  .site-foot { align-items: flex-start; flex-direction: column; gap: 8px; }
  .modal { padding: 12px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; align-items: stretch; max-width: none; }
}

@media (max-width: 440px) {
  .login-screen { padding: 0; }
  .login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
  .login-intro {
    min-height: 300px;
    padding: 22px;
  }
  .login-status { display: none; }
  .login-card { padding: 24px 22px; }
  .login-hero h1 { font-size: 2.8rem; }
  .login-chips span:nth-child(3) { display: none; }
  .account-identity { align-items: flex-start; }
  .account-avatar { width: 58px; height: 58px; border-radius: 17px; font-size: 24px; }
  .account-identity-copy h2 { font-size: 1.7rem; }
  .metric-grid { gap: 7px; }
  .metric-card { padding: 12px; }
  .panel-body { padding: 14px; }
  .panel-head { padding: 11px 14px; }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .char-grid { grid-template-columns: minmax(0, 1fr); }
  .char-thumb { height: 150px; }
  .terminal-body { padding: 12px; }
  .terminal-output { min-height: 340px; }
}

/* ============================================================
   Motion
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.07); }
  50% { opacity: 0.55; box-shadow: 0 0 0 7px rgba(200, 255, 61, 0.02); }
}

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

/* ============================================================
   Account analytics
   ============================================================ */

.panel--analytics {
  margin-bottom: 18px;
}

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

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.025), transparent 55%);
}

.chart-card--wide {
  grid-column: 1 / -1;
}

.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chart-head em {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.chart-donut {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 2px auto 0;
}

.chart-donut svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 10;
}

.donut-arc {
  fill: none;
  stroke: var(--acid);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 0 302;
  filter: drop-shadow(0 0 8px rgba(200, 255, 61, 0.35));
  transition: stroke-dasharray 0.55s ease;
}

.chart-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.chart-donut-center strong {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.chart-donut-center span {
  margin-top: 4px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.chart-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chart-dot--win { background: var(--mint); }
.chart-dot--loss { background: var(--danger); }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding-top: 5px;
  border-bottom: 1px solid var(--line);
}

.chart-bar {
  flex: 1;
  min-height: 5px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--acid), rgba(159, 212, 28, 0.14));
  opacity: 0.8;
  transition: opacity 0.16s ease;
}

.chart-bar:hover {
  opacity: 1;
}

.chart-empty {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
}

.chart-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
}

.chart-totals span {
  display: grid;
  gap: 2px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-totals strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}

.chart-line {
  position: relative;
  min-height: 130px;
}

.chart-line svg {
  display: block;
  width: 100%;
  height: 130px;
}

.chart-line-area {
  fill: rgba(200, 255, 61, 0.09);
  stroke: none;
}

.chart-line-path {
  fill: none;
  stroke: var(--acid);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(200, 255, 61, 0.25));
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chart-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .chart-card {
    padding: 12px;
  }

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

/* ============================================================
   Public guide
   ============================================================ */

.guide-page {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.guide-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: blur(18px);
}

.guide-top .brand {
  text-decoration: none;
}

.guide-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.guide-link {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.guide-link:hover {
  color: var(--acid);
}

.guide-nav .btn {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px;
}

.guide-hero {
  max-width: 900px;
  padding: clamp(56px, 9vw, 110px) 0 clamp(34px, 5vw, 58px);
}

.guide-hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.guide-lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.75;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.guide-fact {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.guide-fact span {
  display: block;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.guide-fact strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.guide-section {
  padding: clamp(38px, 5.5vw, 64px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 86px;
}

.guide-section h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.guide-section > p {
  max-width: 800px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.guide-section > p strong {
  color: var(--ink);
  font-weight: 600;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.guide-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.026), transparent 45%),
    var(--surface);
}

.guide-card-index {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.guide-card h3 {
  margin: 11px 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.guide-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.guide-step > span {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.guide-step h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.guide-faq {
  display: grid;
  gap: 8px;
  max-width: 840px;
  margin-top: 24px;
}

.guide-faq details {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.guide-faq summary::after {
  content: "+";
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 16px;
}

.guide-faq details[open] summary::after {
  content: "−";
}

.guide-faq p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.guide-note {
  max-width: 840px;
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid rgba(200, 255, 61, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(200, 255, 61, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.guide-note strong {
  color: var(--ink);
}

.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
}

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

.guide-footer a:hover {
  color: var(--acid);
}

.login-guide-link {
  margin: 14px 0 0;
  font-size: 10px;
  line-height: 1.5;
}

.login-guide-link a {
  color: var(--acid);
  text-decoration: none;
}

.login-guide-link a:hover {
  text-decoration: underline;
}

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

  .guide-steps {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 640px) {
  .guide-top {
    flex-wrap: wrap;
    gap: 10px;
  }

  .guide-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .guide-nav .guide-link {
    font-size: 10px;
  }

  .guide-nav .btn {
    padding: 7px 10px;
    font-size: 10px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
}
