:root {
  --green: #000000;
  --green-dark: #333333;
  --blue: #000000;
  --border: #000000;
  --gray-light: #f2f2f2;
  --gray-mid: #7a7a7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", Arial, sans-serif;
}

body.no-select {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}


#dots {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.page {
  position: relative;
  z-index: 1;
  width: 900px;
  margin: 0 auto;
  padding: 18px 24px 30px;
}

.lang-row {
  text-align: center;
  font-size: 14px;
  color: var(--blue);
  line-height: 1.4;
}

.lang-row a {
  color: var(--blue);
  text-decoration: none;
}

.translate-hidden {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.logo-link {
  display: block;
  text-decoration: none;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 2px;
}

.coin {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f7f7f7, #cfcfcf 55%, #7a7a7a 90%);
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #000000;
  font-size: 28px;
}

.logo-text {
  font-size: 54px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-bit {
  color: #805aec;
}

.logo-address {
  color: var(--green);
}

.logo-dot {
  color: var(--green);
}

.tagline {
  text-align: center;
  font-size: 14px;
  margin-bottom: 14px;
}

.progress {
  position: relative;
  height: 44px;
  background: var(--green);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--green-dark);
}

.progress-row {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  color: #cfcfcf;
  font-size: 14px;
  z-index: 2;
}

.progress-cell {
  flex: 1;
  text-align: center;
}

.progress-right {
  flex: 1;
  font-size: 12px;
}

.panel {
  margin-top: 10px;
  border: 2px solid var(--border);
  padding: 10px;
  background: #ffffff;
}

.panel-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.panel-line {
  font-size: 13px;
  margin-bottom: 8px;
}

#random-input {
  width: 240px;
  height: 22px;
  margin-left: 8px;
  border: 1px solid var(--gray-mid);
}

#random-output {
  width: 100%;
  height: 150px;
  border: 1px solid var(--gray-mid);
  resize: none;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  padding: 6px;
}

.nav-bar {
  background: var(--green);
  border-radius: 4px 4px 0 0;
  padding: 6px 8px 4px;
  margin-top: 12px;
}

.nav-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.nav-row:last-child {
  margin-bottom: 0;
}

.nav-tab {
  flex: 1;
  text-align: center;
  font-size: 12px;
  padding: 3px 4px;
  color: #fff;
  text-decoration: none;
}

.nav-tab.active {
  background: #ffffff;
  border-radius: 3px;
  font-weight: 600;
  color: #000000;
}

.wallet-panel {
  border: 2px solid var(--border);
  border-top: 0;
  padding: 10px;
}

.wallet-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wallet-actions.center {
  justify-content: center;
}

.wallet-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-top: solid 2px #000000;
  border-bottom: solid 2px #000000;
  padding: 12px 10px;
  margin: 0 -10px 10px;
}

.qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.btn {
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid var(--gray-mid);
  background: var(--gray-light);
  cursor: pointer;
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  border-top: solid 2px #000000;
  padding: 10px 10px 0px 10px;
  margin-left: -10px;
  margin-right: -10px;
}

.wallet-content {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  align-items: flex-start;
  border-bottom: solid 2px #000000;
  padding: 0px 10px 10px 10px;
  margin-left: -10px;
  margin-right: -10px;
}

.wallet-col {
  flex: 1;
}

.qr-col {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.qr-box {
  width: 148px;
  height: 148px;
  border: 1px solid #000000;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.qr-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.wallet-label {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.wallet-label.share {
  color: #000000;
}

.wallet-label.secret {
  color: #333333;
}

.wallet-address {
  font-size: 12px;
  word-break: break-all;
}

.wallet-copy {
  font-size: 12px;
  line-height: 1.3;
}

.wallet-copy p {
  margin: 8px 0;
}

.footer {
  margin-top: 16px;
  font-size: 12px;
  color: #000000;
  position: relative;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
}

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

.footer-bottom {
  text-align: center;
  margin-top: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  position: absolute;
  opacity: 0.95;
}

@media (max-width: 980px) {
  .page {
    width: 100%;
  }

  .logo-text {
    font-size: 40px;
  }

  .wallet-content {
    flex-direction: column;
    align-items: center;
  }

  .wallet-header {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
