:root {
  color-scheme: dark;
}

html,
body {
  min-height: 100%;
  background: #17120c;
}

body.deposit-page {
  margin: 0;
  color: #dcdfe5;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
}

.deposit-page #app {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: #17120c;
}

.deposit-header,
.deposit-footer {
  flex: 0 0 auto;
}

.deposit-header {
  z-index: 1000 !important;
  border-bottom-color: rgba(92, 37, 37, 0.6) !important;
}

.deposit-header .menu-toggle-btn {
  display: none !important;
}

.deposit-header a:focus-visible,
.deposit-header button:focus-visible,
.deposit-page input:focus-visible {
  outline: 2px solid #f0c775;
  outline-offset: 3px;
}

.deposit-main {
  flex: 1 0 auto !important;
  min-height: 0 !important;
}

.deposit-scene,
.deposit-content {
  min-height: 100% !important;
}

.deposit-content {
  padding: 40px 20px !important;
}

.deposit-panels {
  width: 100%;
  max-width: 1100px;
}

.deposit-panel {
  min-width: 0 !important;
}

.deposit-form-panel {
  flex: 0 1 420px;
}

.deposit-history-panel {
  flex: 1 1 620px;
}

.deposit-form-panel img[alt="Runeverse Logo"] {
  aspect-ratio: 1;
  object-fit: contain;
}

.deposit-footer {
  position: sticky !important;
  bottom: 0;
  z-index: 500 !important;
  border-top-color: rgba(92, 37, 37, 0.6) !important;
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
}

@media (max-width: 768px) {
  .deposit-header {
    position: sticky !important;
    padding: 8px 12px !important;
  }

  .deposit-header > div:first-child > span {
    padding: 3px 8px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
  }

  .deposit-header .menu-toggle-btn {
    display: flex !important;
    flex-direction: column;
    order: 2;
    margin-right: 0 !important;
  }

  .deposit-header nav {
    position: absolute;
    top: 100%;
    right: 12px;
    z-index: 1001;
  }

  .deposit-header .nav-list {
    display: none !important;
    min-width: 170px;
    margin-top: 8px !important;
    padding: 10px 14px !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
    border: 1px solid rgba(92, 37, 37, 0.6);
    border-radius: 12px;
    background: #17120c;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  }

  .deposit-header .menu-toggle-btn.open + nav .nav-list {
    display: flex !important;
  }

  .deposit-header .nav-list a {
    display: block;
    width: 100%;
    text-align: right;
  }

  .deposit-main {
    overflow: visible !important;
  }

  .deposit-content {
    min-height: auto !important;
    padding: 20px 12px !important;
    align-items: flex-start !important;
  }

  .deposit-panels {
    gap: 16px !important;
  }

  .deposit-panel {
    width: 100%;
    max-width: 100% !important;
    flex-basis: 100%;
    padding: 22px 18px 20px !important;
  }

  .deposit-form-panel img[alt="Runeverse Logo"] {
    width: 190px !important;
  }

  .deposit-page input {
    font-size: 16px !important;
  }

  .deposit-footer {
    position: relative !important;
    padding: 8px 12px !important;
    font-size: 0.7rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deposit-page video {
    display: none;
  }
}
