:root {
  --navy: #10233f;
  --navy-soft: #1b3558;
  --brass: #b08a3c;
  --brass-deep: #8d6c2b;
  --paper: #f7f4ee;
  --card: rgba(255, 252, 246, 0.94);
  --ink: #162033;
  --muted: #5d6b80;
  --line: rgba(16, 35, 63, 0.12);
  --warn: #a12b22;
  --shadow: 0 22px 50px rgba(10, 22, 40, 0.16);
  --radius: 22px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

.lang-switcher {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 28px rgba(10, 22, 40, 0.18);
  backdrop-filter: blur(10px);
}

.lang-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.lang-switcher select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 1.7rem 0.4rem 0.7rem;
  background-color: #10233f;
  background-image:
    linear-gradient(180deg, #1b3558, #10233f),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23f4efe4' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-size: 100% 100%, 0.55rem 0.35rem;
  background-position: center, right 0.55rem center;
  background-repeat: no-repeat;
  color: #f4efe4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  max-width: 11rem;
}

.lang-switcher select:focus-visible {
  box-shadow: 0 0 0 2px rgba(176, 138, 60, 0.7);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.92), rgba(27, 53, 88, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, var(--paper), transparent);
}

.shell {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.8rem 0 3.5rem;
  animation: enter 0.65s ease both;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.brand-block {
  text-align: center;
  color: #f4efe4;
  margin-bottom: 1.6rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.72);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #f4efe4;
}

.brand-en {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: rgba(244, 239, 228, 0.72);
  letter-spacing: 0.04em;
}

.lead {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(244, 239, 228, 0.78);
}

.wallet-head h2 .tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  vertical-align: middle;
}

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.94);
  border: 1px solid rgba(161, 43, 34, 0.18);
  color: #7a2a24;
  box-shadow: var(--shadow);
  animation: enter 0.65s ease 0.1s both;
}

.notice-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(161, 43, 34, 0.45);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(161, 43, 34, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(161, 43, 34, 0);
  }
}

.notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.wallets {
  display: grid;
  gap: 0.85rem;
}

.wallet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: enter 0.65s ease both;
}

.wallet:nth-child(1) { animation-delay: 0.15s; }
.wallet:nth-child(2) { animation-delay: 0.22s; }
.wallet:nth-child(3) { animation-delay: 0.29s; }
.wallet:nth-child(4) { animation-delay: 0.36s; }

.wallet:hover {
  transform: translateY(-2px);
  border-color: rgba(176, 138, 60, 0.4);
}

.wallet-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.coin {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(16, 35, 63, 0.14);
}

.coin svg,
.coin img {
  width: 100%;
  height: 100%;
  display: block;
}

.wallet-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.wallet-head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.address-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.address {
  flex: 1;
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: clamp(0.72rem, 2.5vw, 0.86rem);
  word-break: break-all;
  line-height: 1.45;
  color: var(--ink);
}

.copy-btn {
  border: 0;
  border-radius: 14px;
  padding: 0 0.9rem;
  min-width: 6.2rem;
  background: linear-gradient(180deg, #1b3558, #10233f);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(16, 35, 63, 0.22);
  transition: filter 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.copy-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: none;
}

.copy-btn.copied {
  background: linear-gradient(180deg, #1e6b4a, #15543a);
}

.tips {
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: enter 0.65s ease 0.42s both;
}

.tips h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--navy);
}

.tips ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 20;
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.28);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1.2rem, 760px);
    padding-top: 2.8rem;
  }

  .lang-label {
    display: none;
  }

  .address-row {
    flex-direction: column;
  }

  .copy-btn {
    min-height: 2.7rem;
  }
}
