﻿/* CSS: ARC SHARK generator-specific layout and stepper styles. */

/* ===== ARC SHARK generator-specific styles ===== */
  .gen-wrap { max-width: min(2200px, 96vw); margin: 0 auto; padding: clamp(20px,3vw,40px) 0 90px; position: relative; z-index: 1; }
  .gen-head { text-align: center; margin-bottom: 30px; }
  .gen-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold, #ffd76a); }
  .gen-title {
    font-size: clamp(32px, 5.5vw, 60px); font-weight: 800; line-height: 1.02; margin: 12px 0 10px;
    background: linear-gradient(92deg, #ffe9a8, #ffc04d 45%, #ffe9a8 90%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
  .gen-sub { color: var(--text-soft); font-size: 15px; max-width: 720px; margin: 0 auto; line-height: 1.55; }

  /* в”Ђв”Ђ two-column layout: big badge (left) / one step at a time (right) в”Ђв”Ђ */
  .gen-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 0.95fr); gap: 32px; align-items: stretch; }
  @media (max-width: 980px) { .gen-layout { grid-template-columns: 1fr; } }
  .gen-col { position: relative; display: flex; align-items: flex-start; }
  .steps-col {
    display: flex; flex-direction: column;
    background: var(--bg-soft); border: 1px solid var(--border); border-radius: 0; padding: 24px;
  }

  /* wallet gate: dim + disable a region until connected */
  .gate { position: relative; }
  .gate.locked-wallet .auto-id,
  .gate.locked-wallet .fld-row,
  .gate.locked-wallet .gen-btns,
  .gate.locked-wallet .traits { opacity: 0.45; filter: saturate(0.6); pointer-events: none; }
  .wallet-gate-note {
    display: none; align-items: center; gap: 10px; justify-content: center;
    margin-bottom: 16px; padding: 12px 16px; border-radius: 0;
    background: rgba(0,240,214,0.06); border: 1px dashed var(--neon); color: var(--neon);
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; cursor: pointer;
  }
  .wallet-gate-note.show { display: flex; }
  .wallet-gate-note:hover { background: rgba(0,240,214,0.12); }

  /* в”Ђв”Ђ Badge stage: fills the left column, single frame, whole-badge shine в”Ђв”Ђ */
  .gen-col { perspective: 1100px; }
  .badge-stage {
    position: relative; width: 97%; border-radius: 0; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    background: #07111f;
    transform-style: preserve-3d;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    will-change: transform;
  }
  .badge-stage.tilting { transition: transform 0.05s linear, box-shadow 0.18s ease; }
  .badge-stage.idle { transition: transform 0.12s linear, box-shadow 0.18s ease; }
  @media (max-width: 980px), (prefers-reduced-motion: reduce) {
    .badge-stage { transform: none !important; transition: none; }
  }
  canvas#badgeCanvas {
    display: block; width: 100%; height: auto; background: #07111f; image-rendering: auto;
  }
  .badge-stage::after {
    content: ''; position: absolute; top: -50%; left: -75%; width: 50%; height: 200%;
    background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.13) 50%, transparent 100%);
    transform: rotate(8deg); pointer-events: none; z-index: 2;
    animation: badgeShine 5.5s ease-in-out infinite;
  }
  @keyframes badgeShine { 0% { left: -75%; } 60% { left: 130%; } 100% { left: 130%; } }
  @media (prefers-reduced-motion: reduce) { .badge-stage::after { animation: none; opacity: 0; } }

  /* в”Ђв”Ђ Stepper (dots + count) в”Ђв”Ђ */
  .stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .quest-done-banner { display: none; align-items: center; gap: 10px; margin-bottom: 16px; padding: 13px 15px; border-radius: 0; border: 1px solid rgba(16,185,129,0.55); background: linear-gradient(92deg, rgba(52,211,153,0.16), rgba(16,185,129,0.10)); color: #d6ffe9; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
  .quest-done-banner.show { display: flex; }
  .quest-done-banner.verified { border-color: rgba(255,215,106,0.6); background: linear-gradient(92deg, rgba(255,215,106,0.16), rgba(255,179,71,0.10)); color: #ffe9b8; }
  .quest-done-banner .qd-icon { font-size: 18px; flex: none; }
  .stepper-dots { display: flex; align-items: center; gap: 8px; }
  .dot {
    width: 30px; height: 30px; border-radius: 0; font-family: var(--font-mono); font-weight: 800; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-hover); color: var(--text-dim); border: 1px solid var(--border);
    cursor: pointer; transition: all 0.15s;
  }
  .dot.active { background: linear-gradient(135deg, var(--neon), var(--neon-dim)); color: var(--bg); border-color: transparent; }
  .dot.done { background: var(--green); color: var(--bg); border-color: transparent; }
  .dot.done span { display: none; }
  .dot.done::after { content: 'вњ“'; }
  .dot:disabled { cursor: not-allowed; opacity: 0.55; }
  .dot-line { width: 26px; height: 2px; background: var(--border); border-radius: 0; }
  .stepper-count { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-dim); text-transform: uppercase; }

  /* в”Ђв”Ђ Step panels: one visible at a time в”Ђв”Ђ */
  .step-panel { display: none; flex: 1; }
  .step-panel.active { display: block; animation: stepIn 0.25s ease; }
  @keyframes stepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
  .step-panel h4 { margin: 0 0 6px; font-size: 19px; }
  .step-panel .step-desc { margin: 0 0 16px; font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
  .step-panel .mini { margin-top: 12px; font-size: 11.5px; color: var(--text-dim); line-height: 1.45; }

  /* nav */
  .step-nav { display: flex; gap: 10px; margin-top: 22px; }
  .step-nav .gbtn { flex: 1; }

  .reward-banner { margin-top: 18px; border-radius: 0; padding: 14px 16px; background: radial-gradient(120% 160% at 0% 0%, rgba(255,200,80,0.10), transparent 60%), var(--bg-card); border: 1px solid rgba(255,200,90,0.30); font-size: 12.5px; color: var(--text-soft); line-height: 1.5; text-align: center; }
  .reward-banner b { color: var(--gold,#ffd76a); }

  /* fields/buttons reused inside steps */
  .auto-id { display: inline-flex; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 0; padding: 8px 12px; margin-bottom: 14px; }
  .auto-id span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--text-dim); }
  .auto-id b { font-family: var(--font-mono); font-size: 16px; color: var(--gold, #ffd76a); }
  .fld { margin-bottom: 14px; }
  .fld label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-soft); margin-bottom: 6px; font-weight: 600; }
  .fld .cnt { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); font-weight: 400; }
  .fld input, .fld textarea { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; padding: 11px 12px; color: var(--text); font-size: 14px; outline: none; resize: none; }
  .fld input:focus, .fld textarea:focus { border-color: var(--neon); }
  .fld textarea { min-height: 60px; }
  .fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 620px) { .fld-row { grid-template-columns: 1fr; } }
  .gen-btns { display: flex; gap: 10px; flex-wrap: wrap; }
  .gbtn { padding: 11px 18px; border-radius: 0; font-weight: 700; font-size: 13.5px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); transition: all 0.15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
  .gbtn:hover { border-color: var(--neon); }
  .gbtn.ghost { background: transparent; }
  .gbtn.gold { background: linear-gradient(92deg, #ffd76a, #ffb347); color: #1a1200; border: none; }
  .gbtn.gold:hover { filter: brightness(1.08); }
  .gbtn.x { background:#000; color:#fff; border-color:#000; }
  .gbtn.x:hover { filter: brightness(1.2); }
  .gbtn.block { width: 100%; }
  .gbtn:disabled { opacity: 0.5; cursor: not-allowed; }
  .gbtn.is-done, .gbtn.gold.is-done { background: linear-gradient(92deg, #34d399, #10b981); color: #062a1d; border: none; opacity: 1; cursor: default; }
  .traits { margin-top: 16px; }
  .traits > b { font-size: 12px; color: var(--text-soft); display: block; margin-bottom: 8px; }
  .pillrow { display: flex; flex-wrap: wrap; gap: 6px; }
  .pillrow .pill { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 0; background: var(--bg-card); border: 1px solid var(--border-soft); color: var(--text-soft); }
  .proof-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
  .proof-row input { flex: 1; min-width: 220px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 0; padding: 11px 12px; color: var(--text); font-size: 13.5px; outline: none; font-family: var(--font-mono); }
  .proof-row input:focus { border-color: var(--neon); }
  .ghint { margin-top: 12px; font-size: 11.5px; color: var(--text-dim); line-height: 1.45; }
  /* в”Ђв”Ђ Step-1 guided hints в”Ђв”Ђ */
  .step-hint {
    display: none; align-items: center; gap: 10px; margin-bottom: 16px;
    padding: 11px 14px; border-radius: 0;
    background: rgba(0,240,214,0.07); border: 1px solid rgba(0,240,214,0.30);
    font-size: 13px; color: var(--text); line-height: 1.4;
  }
  .step-hint.show { display: flex; }
  .step-hint .hint-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bg); background: var(--neon); padding: 3px 7px; border-radius: 0; flex-shrink: 0; }
  .step-hint b { color: var(--neon); }
  .step-hint.done-hint { background: rgba(38,217,125,0.08); border-color: rgba(38,217,125,0.35); }
  .step-hint.done-hint .hint-badge { background: var(--green); }
  .step-hint.done-hint b { color: var(--green); }
  /* current target gets a pulsing ring */
  .hint-target { position: relative; }
  .hint-target::after {
    content: ''; position: absolute; inset: -4px; border-radius: 0; pointer-events: none;
    border: 2px solid var(--neon); box-shadow: 0 0 0 4px rgba(0,240,214,0.12);
    animation: hintPulse 1.4s ease-in-out infinite;
  }
  @keyframes hintPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .hint-target::after { animation: none; } }

  :root { --gold: #ffd76a; }
/* ===== ARC SHARK current design overrides ===== */
:root { --gold: #ffd76a; --main-control-width: min(100%, 254px); --main-control-height: 46px; }
.gen-wrap { max-width: min(2200px, 96vw); padding: clamp(8px,2vw,24px) 0 clamp(120px,9vw,150px); }
.gen-head { margin-bottom: 42px; }
.gen-title { margin: 0 0 28px; color: #ffd76a; background: none; -webkit-text-fill-color: currentColor; }
.gen-title-gradient { display: inline-block; background: linear-gradient(100deg,#fff1b8 0%,#ffc647 24%,#00f0d6 48%,#6ad4ff 66%,#ffd76a 84%,#fff4c8 100%); background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: titleGradientFlow 4.8s ease-in-out infinite; text-shadow: 0 0 22px rgba(255,215,106,.22); }
@keyframes titleGradientFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.gen-sub { color: #d8fbff; font-size: clamp(24px,2.75vw,30px); font-weight: 700; max-width: 900px; line-height: 1.35; }
.gen-layout { align-items: start; margin-top: clamp(48px,6vh,84px); }
.gen-col { perspective: 1450px; perspective-origin: 50% 42%; }
.badge-stage { border-color: rgba(106,212,255,.28); border-radius: 0; box-shadow: 0 38px 92px rgba(0,0,0,.58), 0 10px 26px rgba(0,240,214,.08), inset 0 0 0 1px rgba(0,240,214,.08); transform-origin: center center; transform: translate3d(0,0,0); transition: box-shadow .24s ease, filter .18s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; isolation: isolate; }
.badge-stage.tilting { box-shadow: 0 46px 110px rgba(0,0,0,.66), 0 18px 40px rgba(0,240,214,.12), inset 0 0 0 1px rgba(0,240,214,.11); }
.badge-stage.idle { filter: saturate(1.03); }
canvas#badgeCanvas { position: relative; z-index: 1; transform: translateZ(16px); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.badge-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(circle at var(--tilt-glare-x,52%) var(--tilt-glare-y,28%), rgba(255,255,255,.18), rgba(255,255,255,.05) 18%, transparent 38%), linear-gradient(90deg, transparent 0%, transparent 92%, rgba(106,212,255,.16) 100%), linear-gradient(180deg, transparent 0%, transparent 91%, rgba(0,240,214,.16) 100%); mix-blend-mode: screen; opacity: var(--tilt-glare-opacity,.42); transform: translateZ(34px); }
.badge-stage::after { left: 0; transform: translate3d(-170%,0,42px) rotate(8deg); animation: badgeShineCurrent 5.5s ease-in-out infinite; }
@keyframes badgeShineCurrent { 0% { transform: translate3d(-170%,0,42px) rotate(8deg); } 60%,100% { transform: translate3d(290%,0,42px) rotate(8deg); } }
.steps-col { box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-self: start; overflow: visible; height: var(--badge-panel-height,auto); max-height: none; padding: 22px; border-radius: 8px; border: 1px solid rgba(0,240,214,.42); background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 30%, rgba(0,240,214,.045) 100%), radial-gradient(120% 84% at 12% 0%, rgba(0,240,214,.18), transparent 46%), radial-gradient(90% 80% at 100% 6%, rgba(255,215,106,.12), transparent 50%), linear-gradient(180deg, rgba(8,28,39,.98), rgba(3,10,18,.99)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.035), inset 0 -28px 52px rgba(0,0,0,.26), 0 30px 70px rgba(0,0,0,.42), 0 0 40px rgba(0,240,214,.09); }
.steps-col::before { content: ''; position: absolute; inset: 0 0 auto; height: 66px; pointer-events: none; z-index: 0; background: linear-gradient(180deg, rgba(255,255,255,.08), transparent), linear-gradient(90deg, transparent 0%, rgba(0,240,214,.20) 46%, rgba(255,215,106,.12) 58%, transparent 100%); opacity: .72; }
.steps-col::after { content: ''; position: absolute; inset: 10px; pointer-events: none; z-index: 0; border-radius: 7px; border: 1px solid rgba(255,255,255,.055); background: linear-gradient(90deg, rgba(0,240,214,.42), transparent 18%, transparent 82%, rgba(255,215,106,.32)), linear-gradient(180deg, rgba(255,255,255,.055), transparent 20%, transparent 80%, rgba(0,240,214,.09)); box-shadow: inset 0 0 34px rgba(0,240,214,.03), inset 0 0 0 1px rgba(0,0,0,.20); }
.steps-col > * { position: relative; z-index: 1; }
.steps-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(12px,1.25vh,18px); height: 100%; transform: scale(var(--right-panel-scale,1)); transform-origin: top left; transition: transform .18s ease; will-change: transform; }
.steps-inner::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 2px; pointer-events: none; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(0,240,214,.58), rgba(255,215,106,.38), transparent); opacity: .72; }
.steps-inner::after { content: ''; position: absolute; left: 8%; right: 8%; bottom: -10px; height: 2px; pointer-events: none; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(255,215,106,.50), rgba(0,240,214,.42), transparent); opacity: .58; }
.steps-col .quest-done-banner { padding: 14px 16px; border-radius: 8px; border-color: rgba(0,240,214,.50); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.014)), linear-gradient(92deg, rgba(0,240,214,.16), rgba(16,185,129,.10)), rgba(2,12,19,.92); color: #f1fffb; font-size: 16.5px; font-weight: 800; line-height: 1.24; box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 12px 26px rgba(0,0,0,.16), 0 0 20px rgba(0,240,214,.10); }
.steps-col .quest-done-banner.show { position: absolute; left: 0; right: 0; top: -14px; z-index: 7; display: flex; margin: 0; transform: translateY(-100%); }
.steps-col .quest-done-banner.verified { border-color: rgba(255,215,106,.62); background: linear-gradient(180deg, rgba(255,255,255,.080), rgba(255,255,255,.014)), linear-gradient(92deg, rgba(255,215,106,.17), rgba(255,179,71,.09)), rgba(16,12,5,.92); color: #fff3cf; }
.steps-col .quest-done-banner .qd-icon { font-size: 22px; }
.steps-col .reward-banner { position: absolute; left: 0; right: 0; top: calc(100% + 16px); z-index: 5; margin: 0; overflow: hidden; padding: 13px 14px; border-radius: 8px; border-color: rgba(255,200,90,.42); background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.012)), radial-gradient(105% 155% at 0% 0%, rgba(255,200,80,.20), transparent 62%), radial-gradient(90% 120% at 100% 0%, rgba(0,240,214,.09), transparent 58%), rgba(10,16,18,.92); color: #fff2cf; font-size: 18.4px; font-weight: 700; line-height: 1.16; text-wrap: balance; box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 12px 24px rgba(0,0,0,.14), 0 0 20px rgba(255,215,106,.065); }
.steps-col .reward-banner::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,215,106,.72), rgba(0,240,214,.38), transparent); opacity: .86; }
.steps-col .reward-banner b { color: #ffd76a; text-shadow: 0 0 14px rgba(255,215,106,.34); background: rgba(255,215,106,.08); border-radius: 5px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.steps-col .stepper { flex: 0 0 auto; min-height: 44px; margin: 0; padding: 7px 11px; border-radius: 7px; border: 1px solid rgba(106,212,255,.26); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)), linear-gradient(90deg, rgba(0,240,214,.08), rgba(255,215,106,.045)), rgba(2,10,17,.62); box-shadow: inset 0 1px 0 rgba(255,255,255,.075), inset 0 -12px 18px rgba(0,0,0,.24), 0 8px 18px rgba(0,0,0,.12); }
.steps-col .dot { width: 32px; height: 32px; border-radius: 7px; font-size: 14px; background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.012)), rgba(7,23,33,.92); border-color: rgba(106,212,255,.24); color: #a8dce4; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.steps-col .dot.active { background: linear-gradient(135deg,#00f0d6,#8eefff 54%,#ffd76a); color: #02110f; box-shadow: 0 0 20px rgba(0,240,214,.30), inset 0 1px 0 rgba(255,255,255,.30); }
.steps-col .dot.active span { color: #02110f !important; }
.steps-col .dot.done { background: linear-gradient(135deg,#00f0d6,#21d67b); color: #02110f; box-shadow: 0 0 16px rgba(0,240,214,.20), inset 0 1px 0 rgba(255,255,255,.20); }
.steps-col .dot.done::after { content: '\2713'; color: #02110f; }
.steps-col .dot-line { background: linear-gradient(90deg, rgba(0,240,214,.28), rgba(255,215,106,.22)); opacity: .82; border-radius: 999px; }
.steps-col .stepper-count { color: #d8fbff; opacity: .88; }
.steps-col .step-panel.active { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: clamp(9px,1.1vh,14px); padding: 10px 0 2px; border-radius: 8px; }
.steps-col .step-panel h4 { margin: 0; padding: 9px 12px; border-radius: 8px; border: 1px solid rgba(106,212,255,.18); background: linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.010)), linear-gradient(90deg, rgba(0,240,214,.09), rgba(255,215,106,.045)), rgba(2,11,18,.56); color: #f7ffff; font-size: 20px; line-height: 1.16; text-align: center; text-shadow: 0 0 16px rgba(0,240,214,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(0,0,0,.12); }
.steps-col #step-1 > h4 { font-size: 22px; }
.steps-col .step-panel .step-desc { margin: 0; color: #d8fbff; opacity: .92; }
.steps-col #step-1 > .step-desc { max-width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(106,212,255,.22); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012)), radial-gradient(110% 140% at 12% -28%, rgba(0,240,214,.12), transparent 58%), rgba(2,12,19,.52); color: #f0ffff; font-size: 20px; line-height: 1.18; font-weight: 800; text-align: center; text-shadow: 0 0 14px rgba(0,240,214,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 10px 20px rgba(0,0,0,.12); text-wrap: balance; }
.steps-col #step-1.active .gate { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: clamp(8px,1vh,12px); }
.steps-col #step-1.active .gate > * { margin: 0; }
.steps-col #step-2.active, .steps-col #step-3.active { justify-content: space-between; }
.steps-col .mini { color: #bfeff4; font-size: 13px; line-height: 1.35; text-align: center; }
.steps-col .wallet-gate-note, .steps-col .step-hint, .steps-col .auto-id, .steps-col .fld input, .steps-col .fld textarea, .steps-col .proof-row input { border-radius: 8px; }
.steps-col .wallet-gate-note { padding: 13px 16px; border: 1px solid rgba(0,240,214,.48); background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.018)), radial-gradient(120% 180% at 16% -28%, rgba(0,240,214,.18), transparent 48%), linear-gradient(180deg, rgba(9,28,39,.92), rgba(5,13,20,.96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -14px 22px rgba(0,0,0,.20), 0 9px 18px rgba(0,0,0,.22); }
.steps-col .step-hint { justify-content: center; padding: 12px 15px; border-color: rgba(0,240,214,.34); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.014)), linear-gradient(90deg, rgba(0,240,214,.075), rgba(255,215,106,.035)), rgba(3,14,22,.76); color: var(--text); font-size: 17px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.16); }
.steps-col .hint-badge { border-radius: 6px; font-size: 13px; padding: 4px 8px; box-shadow: 0 0 14px rgba(0,240,214,.18); }
.steps-col .auto-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 44px; max-width: 100%; padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,215,106,.50); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.012)), linear-gradient(90deg, rgba(0,240,214,.16), rgba(255,215,106,.14)), rgba(2,11,18,.86); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -14px 20px rgba(0,0,0,.20), 0 12px 24px rgba(0,0,0,.18), 0 0 20px rgba(255,215,106,.10); }
.steps-col .auto-id span { color: #e5ffff; font-size: 13.6px; font-weight: 900; }
.steps-col .auto-id b { color: #ffd76a; font-size: 22px; text-shadow: 0 0 14px rgba(255,215,106,.30); }
.steps-col .fld-row { padding: 5px; gap: 10px; border-radius: 9px; border: 1px solid rgba(106,212,255,.22); background: linear-gradient(180deg, rgba(255,255,255,.046), rgba(255,255,255,.008)), linear-gradient(135deg, rgba(0,240,214,.055), rgba(255,215,106,.030)), rgba(2,10,17,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.steps-col .fld { margin: 0; }
.steps-col .fld label { padding-left: 2px; color: #e9ffff; text-shadow: 0 0 10px rgba(0,240,214,.10); }
.steps-col .fld input, .steps-col .fld textarea, .steps-col .proof-row input { border-color: rgba(106,212,255,.34); background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.012)), rgba(1,9,16,.92); }
.steps-col .gen-btns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-items: center; flex: 1 1 auto; align-content: space-between; gap: clamp(8px,1vh,12px); min-height: 0; padding: 6px; border-radius: 9px; border: 1px solid rgba(106,212,255,.22); background: linear-gradient(180deg, rgba(255,255,255,.046), rgba(255,255,255,.008)), linear-gradient(135deg, rgba(0,240,214,.055), rgba(255,215,106,.030)), rgba(2,10,17,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -14px 22px rgba(0,0,0,.12); }
.steps-col .gbtn { min-height: var(--main-control-height); padding: 11px 16px; border-radius: 8px; border: 1px solid rgba(106,212,255,.38); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.018)), linear-gradient(92deg, rgba(0,240,214,.14), rgba(106,212,255,.085) 54%, rgba(255,215,106,.08)), linear-gradient(180deg, rgba(9,30,41,.98), rgba(2,10,17,.99)); color: var(--text); font-size: 17.4px; font-weight: 800; text-align: center; text-shadow: 0 0 10px rgba(216,251,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.13), inset 0 -14px 20px rgba(0,0,0,.20), 0 8px 18px rgba(0,0,0,.20); }
.steps-col .gbtn:hover { border-color: rgba(0,240,214,.64); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -14px 20px rgba(0,0,0,.20), 0 11px 24px rgba(0,240,214,.10), 0 8px 18px rgba(0,0,0,.24); }
.steps-col .gbtn .btn-ico { width: 26px; height: 26px; display: inline-grid; place-items: center; flex: none; border-radius: 7px; font-size: 18px; line-height: 1; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)), rgba(255,255,255,.055); }
.steps-col .gbtn .btn-change { color: #fff; }
.steps-col .gbtn .btn-trait, .steps-col .gbtn .trait-random { color: var(--trait-color,#00f0d6); font-weight: 900; }
#randomBtn, #changeBackgroundBtn, #downloadBtn { grid-column: 1 / -1; justify-self: center; width: var(--main-control-width); max-width: 100%; height: var(--main-control-height); }
.steps-col .trait-btn:not(#changeBackgroundBtn) { justify-self: center; justify-content: center; width: min(92%,172px); min-width: 0; text-align: center; }
.steps-col .trait-btn { --trait-color: #00f0d6; gap: 8px; border-color: color-mix(in srgb, var(--trait-color) 42%, rgba(106,212,255,.22)); background: linear-gradient(90deg, color-mix(in srgb,var(--trait-color) 30%,transparent) 0 4px, transparent 4px), linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.012)), radial-gradient(120% 160% at 12% -32%, color-mix(in srgb,var(--trait-color) 16%,transparent), transparent 54%), linear-gradient(180deg, rgba(5,20,29,.98), rgba(2,10,17,.99)); }
.steps-col .trait-btn .btn-ico { color: var(--trait-color); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)), color-mix(in srgb,var(--trait-color) 9%, rgba(255,255,255,.05)); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--trait-color) 22%,rgba(255,255,255,.08)), 0 0 14px color-mix(in srgb,var(--trait-color) 10%,transparent); }
.steps-col .trait-btn .btn-trait { text-shadow: 0 0 10px color-mix(in srgb,var(--trait-color) 22%,transparent); }
#randomBtn { --trait-color: #ffd76a; } .trait-background { --trait-color: #00f0d6; } .trait-head { --trait-color: #ffd76a; } .trait-colour { --trait-color: #ff6bd6; } .trait-item { --trait-color: #6ad4ff; } .trait-clothing { --trait-color: #8cff7a; } .trait-mouth { --trait-color: #ff7a59; } .trait-eyes { --trait-color: #b78cff; }
.steps-col #randomBtn, .steps-col #changeBackgroundBtn, .steps-col #downloadBtn, .steps-col .step-nav #nextBtn { border-color: rgba(0,240,214,.58); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02)), linear-gradient(96deg, rgba(0,240,214,.24), rgba(106,212,255,.16) 52%, rgba(255,215,106,.15)), linear-gradient(180deg,#082635,#04111b); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -14px 22px rgba(0,0,0,.18), 0 10px 22px rgba(0,240,214,.08), 0 8px 16px rgba(0,0,0,.20); }
.steps-col .gbtn.gold { background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,.04)), linear-gradient(94deg,#ffd76a,#ffb347); color: #1a1200; }
.steps-col .gbtn.x { background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.02)), linear-gradient(135deg,#050607,#121920 56%,#06202d); }
.steps-col .gbtn.is-done, .steps-col .gbtn.gold.is-done { color: #02110f; text-shadow: none; border-color: rgba(0,240,214,.70); box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 0 20px rgba(0,240,214,.18), 0 9px 18px rgba(0,0,0,.20); }
.steps-col .step-nav { flex: 0 0 auto; justify-content: center; gap: 10px; margin-top: 0; padding-top: 2px; }
.steps-col .step-nav .gbtn { flex: 0 0 var(--main-control-width); width: var(--main-control-width); max-width: 100%; height: var(--main-control-height); }
.steps-col .step-nav #nextBtn { color: #02110f; }
.steps-col .step-nav #nextBtn:disabled { background: rgba(255,255,255,.08); color: rgba(216,251,255,.46); border: 1px solid rgba(216,251,255,.14); box-shadow: none; opacity: 1; }
.proof-row { align-items: stretch; } .proof-row input { min-height: var(--main-control-height); }

/* Final right-panel tightening */
.steps-col {
  --trait-button-width: clamp(150px, 45%, 174px);
  --panel-gap-tight: clamp(7px, 0.75vh, 11px);
}
.steps-inner {
  gap: var(--panel-gap-tight);
}
.steps-col .step-panel.active {
  gap: var(--panel-gap-tight);
  padding-top: 0;
}
.steps-col .step-panel h4 {
  padding: 7px 12px;
}
.steps-col #step-1 > .step-desc {
  padding: 10px 13px;
  line-height: 1.14;
}
.steps-col #step-1.active .gate {
  gap: var(--panel-gap-tight);
}
.steps-col .auto-id {
  width: var(--main-control-width);
  min-width: 0;
  height: 42px;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 13px;
}
.steps-col .auto-id span {
  font-size: 13px;
}
.steps-col .auto-id b {
  font-size: 21px;
}
.steps-col .gen-btns {
  grid-template-columns: repeat(2, minmax(0, var(--trait-button-width)));
  justify-content: center;
  align-content: start;
  flex: 0 0 auto;
  gap: 8px 10px;
}
.steps-col #randomBtn,
.steps-col #changeBackgroundBtn {
  grid-column: 1 / -1;
}
.steps-col #downloadBtn {
  grid-column: auto;
  width: auto;
}
.steps-col .trait-btn:not(#changeBackgroundBtn) {
  width: var(--trait-button-width);
  max-width: 100%;
  justify-content: center;
  white-space: nowrap;
  font-size: clamp(13.4px, 0.95vw, 15.6px);
  padding-left: 10px;
  padding-right: 10px;
}
.steps-col .trait-btn .btn-ico {
  width: 24px;
  height: 24px;
  font-size: 16px;
}
.steps-col .step-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
}
.steps-col .step-nav .gbtn {
  flex: 1 1 0;
  width: auto;
  max-width: var(--main-control-width);
  min-width: 0;
}
.steps-col.step-current-1 .step-nav {
  justify-content: center;
}
.steps-col.step-current-1 #downloadBtn,
.steps-col.step-current-1 #nextBtn {
  flex-basis: min(48%, 230px);
}
.steps-col.step-current-2 #downloadBtn,
.steps-col.step-current-3 #downloadBtn {
  display: none !important;
}
.steps-col #step-2.active,
.steps-col #step-3.active {
  display: block;
  flex: 1;
  padding: 10px 0 2px;
}
.steps-col #step-2.active .step-desc,
.steps-col #step-3.active .step-desc {
  margin: 0 0 16px;
  font-size: 13.8px;
  line-height: 1.48;
}
.steps-col #step-2.active .step-hint,
.steps-col #step-3.active .step-hint {
  margin-bottom: 16px;
}
.steps-col #tweetBtn {
  width: 100%;
}
.steps-col .proof-row {
  margin-top: 10px;
}
.steps-col .reward-banner {
  border-color: rgba(255,200,90,.62);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025)),
    linear-gradient(92deg, rgba(255,215,106,.20), rgba(255,179,71,.13)),
    rgba(20,14,5,.98);
  color: #fff7df;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 14px 28px rgba(0,0,0,.24),
    0 0 24px rgba(255,215,106,.10);
}
.steps-col .step-hint.done-hint .hint-badge {
  color: #020807;
  background: linear-gradient(135deg, #ffd76a, #00f0d6 70%, #21d67b);
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255,215,106,.30), 0 0 12px rgba(0,240,214,.22);
}
.steps-col .gbtn.is-done,
.steps-col .gbtn.gold.is-done {
  color: #020807;
  background: linear-gradient(135deg, #ffd76a, #00f0d6 62%, #21d67b);
  border-color: rgba(255,215,106,.72);
}

/* Final space-fill and hint glow tuning */
.steps-col {
  --trait-button-width: min(480px, calc((100% + 76px) / 2));
  --panel-gap-tight: clamp(9px, 1vh, 14px);
  --main-control-height: 52px;
  --compact-gen-height: 40px;
  --trait-button-height: 44px;
}
.steps-col #step-1.active .gate {
  gap: clamp(9px, 1.05vh, 14px);
}
.steps-col .auto-id {
  align-self: center;
  flex: 0 0 auto;
  width: 278px;
  max-width: 100%;
  height: 48px;
  justify-content: center;
  text-align: center;
  gap: 12px;
  margin-left: auto;
  margin-right: auto;
}
.steps-col .auto-id span,
.steps-col .auto-id b {
  text-align: center;
}
.steps-col .auto-id span {
  font-size: 14px;
}
.steps-col .auto-id b {
  font-size: 22px;
}
.steps-col .gen-btns {
  align-content: stretch;
  grid-auto-rows: minmax(var(--compact-gen-height), 1fr);
  align-items: stretch;
  gap: clamp(9px, 1.05vh, 14px) 4px;
  padding: 6px 4px 8px;
}
.steps-col .gbtn {
  min-height: 52px;
  font-size: 18.6px;
}
.steps-col .gen-btns .gbtn {
  padding-top: 7px;
  padding-bottom: 7px;
}
.steps-col .trait-btn:not(#changeBackgroundBtn) {
  width: var(--trait-button-width);
  min-height: var(--trait-button-height);
  font-size: clamp(14.6px, 1.02vw, 16px);
  gap: 9px;
  padding-left: 22px;
  padding-right: 22px;
  letter-spacing: 0;
}
.steps-col .trait-btn .btn-ico {
  width: 23px;
  height: 23px;
  font-size: 15px;
  flex: 0 0 23px;
}
.steps-col.step-current-1 #downloadBtn,
.steps-col.step-current-1 #nextBtn {
  flex-basis: min(48%, 238px);
  min-height: 52px;
}
.steps-col #randomBtn,
.steps-col #changeBackgroundBtn,
.steps-col .gen-btns #downloadBtn {
  min-height: var(--compact-gen-height);
  height: auto;
}
.steps-col .step-nav {
  margin-top: 7px;
  padding-top: 7px;
}
.steps-col .step-nav .gbtn {
  min-height: 48px;
  height: 48px;
  border-color: rgba(106,212,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 -10px 16px rgba(0,0,0,.16),
    0 7px 14px rgba(0,0,0,.16);
}
.steps-col.step-current-1 .step-nav #downloadBtn,
.steps-col.step-current-1 .step-nav #nextBtn {
  min-height: 48px;
}
.steps-col .hint-target {
  position: relative;
}
.steps-col .hint-target::after {
  inset: -6px;
  border: 2px solid rgba(0,240,214,.82);
  border-radius: 16px;
  background: transparent;
  box-shadow:
    0 0 0 4px rgba(0,240,214,.12),
    0 0 18px rgba(0,240,214,.28),
    0 0 28px rgba(255,215,106,.12);
  filter: none;
  opacity: .82;
  animation: hintGlowPulse 1.35s ease-in-out infinite;
  z-index: 4;
}
@keyframes hintGlowPulse {
  0%, 100% {
    opacity: .58;
    transform: scale(.99);
  }
  50% {
    opacity: 1;
    transform: scale(1.01);
  }
}
@media (max-width: 980px) { .gen-layout { margin-top: 36px; } .steps-col { height: auto; overflow: visible; } .steps-inner { width: auto !important; height: auto; transform: none !important; } .steps-col .quest-done-banner.show, .steps-col .reward-banner { position: relative; inset: auto; transform: none; margin-bottom: 14px; } .steps-col .reward-banner { margin: 14px 0 0; } }


/* ===== FIX: right column overflow / "съезд" — natural height, no forced scale ===== */
/* Bug: JS forced .steps-col height = badge height and scaled .steps-inner with
   width:100/scale%, which pushed the panel content past its frame on many widths.
   Here we restore a natural, responsive layout that adapts to the screen. */
.gen-layout { align-items: start; }
.steps-col {
  /* drop the forced height tied to the badge */
  height: auto !important;
  max-height: none !important;
  align-self: start;
  overflow: visible;
  min-width: 0;
}
.steps-inner {
  /* kill the scale/width hack that caused horizontal overflow */
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  min-width: 0;
}
.steps-col,
.steps-inner,
.steps-col * {
  /* never let any child exceed the column width */
  box-sizing: border-box;
}
.steps-col .step-panel.active { height: auto; }

/* Banners back into normal flow at every width (were absolutely positioned) */
.steps-col .quest-done-banner.show {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 0 0 14px !important;
}
.steps-col .reward-banner {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  margin: 16px 0 0 !important;
}

/* Field row / buttons must wrap inside the column, not spill out */
.steps-col .fld-row { width: 100%; min-width: 0; }
.steps-col .fld { min-width: 0; }
.steps-col .fld input,
.steps-col .fld textarea,
.steps-col .proof-row input { max-width: 100%; }
.steps-col .gen-btns { width: 100%; min-width: 0; }
.steps-col .proof-row { flex-wrap: wrap; }
.steps-col .proof-row input { min-width: 0; }

/* Mid widths: give the right column a bit more room so traits/buttons breathe */
@media (max-width: 1200px) and (min-width: 981px) {
  .gen-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr); gap: 24px; }
}

/* Stacked layout safety */
@media (max-width: 980px) {
  .gen-layout { grid-template-columns: 1fr; }
  .steps-col { height: auto !important; overflow: visible; }
  .steps-inner { transform: none !important; width: 100% !important; }
}

/* ===== FIX: scale down ALL fonts/sizes in the right panel so labels fit ===== */
/* The trait buttons (e.g. "Change Background", "Change Clothing") were clipping
   because type/control sizes were too large for the column. This block reduces
   font sizes and control heights across the whole steps panel uniformly. */
.steps-col {
  --main-control-height: 44px;
  --compact-gen-height: 36px;
  --trait-button-height: 38px;
}

/* headings + descriptions */
.steps-col .step-panel h4 { font-size: 16px !important; padding: 7px 11px !important; }
.steps-col #step-1 > h4 { font-size: 17px !important; }
.steps-col #step-1 > .step-desc { font-size: 15px !important; padding: 9px 12px !important; line-height: 1.2 !important; }
.steps-col .step-panel .step-desc { font-size: 14px !important; }

/* badge id */
.steps-col .auto-id { height: 40px !important; }
.steps-col .auto-id span { font-size: 12px !important; }
.steps-col .auto-id b { font-size: 17px !important; }

/* field labels + inputs */
.steps-col .fld label { font-size: 12.5px !important; }
.steps-col .fld input,
.steps-col .fld textarea,
.steps-col .proof-row input { font-size: 13.5px !important; padding-top: 9px !important; padding-bottom: 9px !important; }
.steps-col .fld .cnt { font-size: 10px !important; }

/* all action buttons */
.steps-col .gbtn { font-size: 14px !important; min-height: var(--main-control-height) !important; padding: 8px 12px !important; }
.steps-col .gen-btns .gbtn { padding-top: 6px !important; padding-bottom: 6px !important; }
.steps-col #randomBtn,
.steps-col #changeBackgroundBtn,
.steps-col .gen-btns #downloadBtn { min-height: var(--compact-gen-height) !important; height: auto !important; }

/* trait buttons: smaller text + tighter padding, full-cell width, no clipping */
.steps-col .gen-btns { gap: 8px 8px !important; }
.steps-col .trait-btn:not(#changeBackgroundBtn) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: var(--trait-button-height) !important;
  font-size: clamp(11.5px, 0.9vw, 13px) !important;
  gap: 5px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  white-space: nowrap;
}
.steps-col .trait-btn .btn-ico,
.steps-col .gbtn .btn-ico { width: 20px !important; height: 20px !important; font-size: 13px !important; flex: 0 0 20px !important; }
.steps-col #randomBtn .btn-ico,
.steps-col #downloadBtn .btn-ico { width: 22px !important; height: 22px !important; }

/* step nav buttons */
.steps-col .step-nav .gbtn { min-height: var(--main-control-height) !important; height: var(--main-control-height) !important; font-size: 13.5px !important; }
.steps-col.step-current-1 .step-nav #downloadBtn,
.steps-col.step-current-1 .step-nav #nextBtn { min-height: var(--main-control-height) !important; }
.steps-col.step-current-1 #downloadBtn,
.steps-col.step-current-1 #nextBtn { min-height: var(--main-control-height) !important; }

/* hints + banners */
.steps-col .step-hint { font-size: 13.5px !important; padding: 9px 12px !important; }
.steps-col .hint-badge { font-size: 11px !important; padding: 3px 7px !important; }
.steps-col .wallet-gate-note { font-size: 13px !important; padding: 10px 13px !important; }
.steps-col .quest-done-banner { font-size: 13.5px !important; }
.steps-col .quest-done-banner .qd-icon { font-size: 17px !important; }
.steps-col .reward-banner { font-size: 13.5px !important; padding: 11px 13px !important; line-height: 1.3 !important; }
.steps-col .mini { font-size: 11.5px !important; }
.steps-col .stepper-count { font-size: 11px !important; }
.steps-col .dot { width: 28px !important; height: 28px !important; font-size: 12.5px !important; }
