@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");
:root {
  --bg: #000000;
  --surface: #111111;
  --text-primary: #ffffff;
  --text-secondary: #8b8b8b;
  --text-muted: #666666;
  --accent-blue: #009dff;
  --accent-yellow: #ffcc00;
  --accent-yellow-bright: #ffda23;
  --page-width: 375px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #050505;
}

body {
  margin: 0;
  color: var(--text-primary);
  font-family:
    "OPlusSans 3.0", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    sans-serif;
}

#body {
  max-width: var(--page-width);
  min-height: 100vh;
  background: var(--bg);
  margin: 0 auto;
  position: relative;
  font-size: 14px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ── Status bar ── */
.status-bar {
  width: 100%;
  height: 50px;
  background: var(--bg);
  position: relative;
  flex-shrink: 0;
}

.status-bar-inner {
  position: absolute;
  top: 19px;
  left: 21px;
  right: 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  display: block;
}

/* ── Logo area ── */
.logo-area {
  display: flex;
  justify-content: center;
  padding-top: 31px;
  padding-bottom: 0;
}

.logo-wrap {
  position: relative;
  width: 120px;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

/* ── QR section ── */
.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 23px;
}

.qr-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.2px;
  text-align: center;
}

.qr-box {
  width: 108px;
  height: 108px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-box img,
.qr-box canvas,
.qr-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ── Save reminder ── */
.save-reminder {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.save-reminder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 306px;
}

.divider-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #333, transparent);
}

.save-reminder-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Domain rows ── */
.domain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 15px;
  margin-top: 20px;
}

.domain-row {
  width: 100%;
  height: 38px;
  background: var(--surface);
  border-radius: 39px;
  padding: 0 56px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.domain-row-content {
  max-width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.domain-row-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.domain-row-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-left: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-row-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0;
}

.copy-trigger {
  border: 0;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: fit-content;
  margin: 0;
  transform: translate(-50%, calc(-50% + 16px));
  min-width: 120px;
  max-width: calc(100vw - 48px);
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.92);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  z-index: 1000;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* ── Countdown ── */
.countdown-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-top: 26px;
  height: 34px;
}

.countdown-num {
  font-size: 24px;
  font-weight: 500;
  color: var(--accent-yellow-bright);
  line-height: 1;
  text-align: right;
}

.countdown-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

/* ── Enter button ── */
.enter-btn-wrap {
  padding: 0 3px;
  margin-top: 15px;
  margin-bottom: 35px;
}

.enter-btn {
  width: 100%;
  height: 42px;
  background: var(--accent-yellow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.enter-btn:active {
  opacity: 0.85;
  transform: scale(0.97);
}

.enter-btn span {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.5px;
}

/* ── Info rows ── */
.info-section {
  padding: 0 19px;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.info-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
  margin-top: 7px;
}

.info-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
  flex: 1;
}

.info-text-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.info-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* word content override styles */
#wordContent {
  display: block;
}

/* domain content */
#domainContent {
  display: contents;
}

/* page bottom padding */
.page-bottom {
  height: 40px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-1 {
  animation: fadeUp 0.45s ease both;
}
.anim-2 {
  animation: fadeUp 0.45s 0.08s ease both;
}
.anim-3 {
  animation: fadeUp 0.45s 0.16s ease both;
}
.anim-4 {
  animation: fadeUp 0.45s 0.24s ease both;
}
.anim-5 {
  animation: fadeUp 0.45s 0.32s ease both;
}
.anim-6 {
  animation: fadeUp 0.45s 0.4s ease both;
}
.anim-7 {
  animation: fadeUp 0.45s 0.48s ease both;
}
