@font-face {
  font-family: "Geist";
  src: url("./Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("./Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== Сброс ===== */
*,
*::before,
*::after { box-sizing: border-box; border-width: 0; border-style: solid; }
button, input, select, textarea {
  font: inherit;
}

html, body {
   margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden; 
}

/* ===== Layout ===== */
.layout {
  display: flex;
  flex-direction: row;       /* десктоп: контент слева, app справа */
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

 
.content {
  flex: 1;
  min-width: 0;
  font: 16px/1.5 "Geist", "Helvetica Neue", Arial, sans-serif;
}

.content.is-open {
 border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.06);      /* тонкая обводка */
  box-shadow:
    0 2px 3px rgba(0,0,0,0.08),            /* ближняя мягкая тень */
    0 3px 5px rgba(0,0,0,0.10);           /* дальняя, чуть заметнее */
  margin: 6px;                             /* отступ, чтобы тень не обрезалась */
}


.btn-open {
  width: auto;
  height: 40px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--textfr);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  border: 0;
  transition: background .15s ease, transform .1s ease;
}
.btn-open:hover { background: #2a2b2c; }
.btn-open:active { transform: scale(.97); }

/* ===== Токены (только нужные) ===== */
:root {
  --bgxx:            #ffffff;
  --bgxx-hover:      #f3f3f4;
  --bgxx-pressed:    #ededed;
  --textfr:          #131416;
  --textfr-muted:    #66676a;
  --borderde:        #949596;
  --borderde-muted:  #b4b4b566;
  --primarydexs:       #4459ff;
  --primarydexs-hover: #384df5;
  --primarydexs-press: #2b3eda;
  --radiussw:        8px;
  --radiussw-lg:     12px;
}

/* ===== Каркас ===== */
.app {
  position: relative;                 /* якорь для .fox */
  overflow: hidden;                   /* лиса не вылезает за колонку */

  flex: 0 0 30%;                      /* ширина колонки */
  max-width: 30%;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: var(--bgxx);
  color: var(--textfr);

  font: 16px/1.5 "Geist", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
   display: none;    
}

.app.is-open {
  display: flex;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;      /* ← центрирует форму по вертикали, пока лиса не заняла место */
  width: 100%;
  max-width: 400px;
  min-height: calc(90vh - 48px);
  min-height: calc(90dvh - 48px);
  padding: 0 16px 0;       /* ← отступ сверху до SVG */

}
/* ===== SVG-лого ===== */
.logo {
  width: 180px;                 /* ← размер SVG */
  height: 180px;
  margin-bottom: 24px;
  margin-top: 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) { .logo { margin-top: 0;}}


.logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Форма ===== */
.unlock {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  margin-bottom: 24px;
}

/* ===== Поле ввода ===== */

/* ===== Поле ввода ===== */
.field {
  width: 100%;
  margin-bottom: 16px;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--borderde);        /* ← рамка потемнее */
  border-radius: var(--radiussw);           /* ← скругление */
  background: var(--bgxx);
  color: var(--textfr);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.field input:hover {
  border-color: var(--textfr);        /* тёмная при наведении */
}

.field input:focus {
  border-color: var(--textfr);        /* и при фокусе тоже тёмная */
  border-width: 2px;                /* толще */
  padding: 0 15px;                  /* компенсируем 1px, чтобы текст не дёргался */
}

/* Автозаполнение — сохраняем и радиус, и рамку */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-box-shadow:
    0 0 0 1000px var(--bgxx) inset,
    0 0 0 1px var(--borderde) inset;         /* ← имитируем рамку изнутри */
  box-shadow:
    0 0 0 1000px var(--bgxx) inset,
    0 0 0 1px var(--borderde) inset;
  -webkit-text-fill-color: var(--textfr);
  border-radius: var(--radiussw) !important;
  border-color: var(--borderde) !important;
  transition: background-color 5000s ease-in-out 0s;
}




/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--radiussw-lg);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .1s ease, transform .1s ease;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--textfr);
  color: #fff;
  margin-bottom: 24px;
}
.btn-primary:hover:not(:disabled) { background: #2a2b2c; }
.btn-primary:disabled {
 background: #b4b4b5;       /* серый */
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}

/* ===== Ссылка «Forgot password?» ===== */
.btn-link {
  background: transparent;
  color: var(--primarydexs);
  height: auto;
  border-radius: 0;
  padding: 0;
  margin-bottom: 16px;
  
  font-weight: 500;                    
  font-size: 16px;
}
.btn-link:hover {
  color: var(--primarydexs-hover);
  text-decoration: underline;
}
/* ===== Лиса ===== */


.fox {
  position: relative;        /* ← было fixed */
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /*width: 100%;*/
  
  pointer-events: none;
  /*overflow: hidden;*/
  z-index: 1;
  
    
  margin-top: auto;
  height: 20vh;
 
}
.fox canvas {
  margin-bottom: -20%; /* Увеличивайте число, чтобы сдвинуть ниже */
}

@media (max-width: 768px) {
    .fox canvas {
        margin-bottom: -20% !important; /* Увеличивайте число, чтобы сдвинуть ниже */
    }
    .navigation {display:none;}
}

.fox__canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
   margin-bottom: -30%;
}

.fox__canvas canvas {
  display: block;
  vertical-align: top;
}






/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  background: var(--bgxx);
  /*border-bottom: 1px solid var(--borderde-muted);*/
  position: sticky;      /* прилипает к верху при скролле */
  top: 0;
  z-index: 10;
}

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

.topbar__icon {
  flex-shrink: 0;
  display: block;
}

.topbar__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--textfr);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Иконка-кнопка ===== */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--textfr);
  cursor: pointer;
  transition: background .15s ease;
}

.icon-btn:hover {
  background: var(--bgxx-hover);
}

.icon-btn:active {
  background: var(--bgxx-pressed);
}

.icon-btn svg {
  display: block;
  pointer-events: none;
}

/* ===== Мобилка ===== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column-reverse;   /* app оказывается СВЕРХУ */
  }

  .content {
    flex: 1;
  }

  .app {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* ===== Модал ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] { display: none; }

/* ===== Токены темы (light по умолчанию) ===== */
.modal__dialog {
  --modal-bg:        #ffffff;
  --modal-border:    rgba(0, 0, 0, 0.08);
  --modal-shadow-1:  rgba(0, 0, 0, 0.08);
  --modal-shadow-2:  rgba(0, 0, 0, 0.12);
  --modal-title:     #131416;
  --modal-text:      #131416;
  --modal-text-mute: #66676a;
  --modal-hover:     #f3f3f4;
  --modal-active:    #ededed;
  --modal-close-bg:  #ffffff;

  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  border-radius: 12px;
  box-shadow:
    0 4px 12px var(--modal-shadow-1),
    0 12px 32px var(--modal-shadow-2);
  overflow: hidden;
  animation: modalSlide .18s ease-out;
}

/* ===== Тёмная тема ===== */
.modal__dialog.modal--dark {
  --modal-bg:        #1c1d1f;
  --modal-border:    rgba(255, 255, 255, 0.08);
  --modal-shadow-1:  rgba(0, 0, 0, 0.4);
  --modal-shadow-2:  rgba(0, 0, 0, 0.55);
  --modal-title:     #ffffff;
  --modal-text:      #ffffff;
  --modal-text-mute: #a3a4a7;
  --modal-hover:     #252628;
  --modal-active:    #2f3033;
  --modal-close-bg:  #1c1d1f;

  color-scheme: dark;                 /* чтобы нативные элементы были тёмными */
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: modalFade .15s ease-out;
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlide {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Шапка ===== */
.modal__header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px 16px 12px;
}

.modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--modal-title);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--modal-border);
  border-radius: 50%;
  background: var(--modal-close-bg);
  color: var(--modal-text);
  cursor: pointer;
  transition: background .15s ease;
}
.modal__close:hover  { background: var(--modal-hover); }
.modal__close:active { background: var(--modal-active); }

/* ===== Список кошельков ===== */
.modal__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}
.wallet:hover  { background: var(--modal-hover); }
.wallet:active { background: var(--modal-active); }

.wallet__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.wallet__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wallet__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--modal-text);
}

.wallet__desc {
  font-size: 13px;
  color: var(--modal-text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step__hint {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}


/* ===== About: типографика для безклассового HTML ===== */
.about {
  font: 16px/1.6 "Geist", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
}

/* Заголовки */
.about h1 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.about h2 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

.about h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
}

/* Параграфы */
.about p {
  margin: 0 0 12px;
  color: var(--text);
}

.about p:last-child {
  margin-bottom: 0;
}

/* Списки */
.about ul,
.about ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.about li {
  margin-bottom: 6px;
}

.about li::marker {
  color: var(--text-muted);
}

/* Ссылки */
.about a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.about a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

/* Выделение */
.about strong {
  font-weight: 600;
  color: var(--text);
}

.about em {
  font-style: italic;
}

/* Код */
.about code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f3f3f4;
  color: #131416;
}

.about pre {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f3f3f4;
  overflow-x: auto;
}

.about pre code {
  padding: 0;
  background: transparent;
}

/* Цитата */
.about blockquote {
  margin: 0 0 16px;
  padding: 8px 16px;
  border-left: 3px solid var(--border);
  color: var(--text-muted);
  font-style: italic;
}

/* Разделитель */
.about hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Картинки */
.about img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 0 16px;
}

/* Таблицы (на всякий случай) */
.about table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.about th,
.about td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.about th {
  font-weight: 600;
  color: var(--text);
}

/* ===== Тёмная тема для About ===== */
.about.about--dark {
  color: #ffffff;
}

.about.about--dark h1,
.about.about--dark h2,
.about.about--dark h3,
.about.about--dark strong {
  color: #ffffff;
}

.about.about--dark p,
.about.about--dark li {
  color: #d0d0d0;
}

.about.about--dark code,
.about.about--dark pre {
  background: #1c1d1f;
  color: #ffffff;
}

.about.about--dark hr,
.about.about--dark th,
.about.about--dark td {
  border-color: rgba(255, 255, 255, 0.08);
}

.about.about--dark blockquote {
  border-left-color: rgba(255, 255, 255, 0.2);
  color: #a3a4a7;
}


.about {
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-sizing: border-box;       /* чтобы padding не ломал высоту */
}