/* burn page — vault terminal */

.burn-page {
  background: var(--ink);
  color: var(--pale);
}

.burn-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(var(--mid) 1px, transparent 1px),
    linear-gradient(90deg, var(--mid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.burn-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px 72px;
  position: relative;
  z-index: 2;
}

.burn-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.intro-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.global-banner {
  background: var(--ink);
  color: var(--pale);
  border: 4px solid var(--bg);
  padding: 16px 20px;
  box-shadow: 6px 6px 0 var(--mid);
}

.burn-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--bg);
  margin-bottom: 14px;
}

.burn-page h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(22px, 5vw, 42px);
  line-height: 1.15;
  color: var(--pale);
  text-shadow: 4px 4px 0 var(--mid), 8px 8px 0 #1a2f38;
}

.burn-page .sub {
  margin-top: 16px;
  max-width: 520px;
  font-size: 22px;
  color: #b8d4a8;
  opacity: 0.92;
}

.pending-banner {
  background: var(--bg);
  color: var(--ink);
  border: 4px solid var(--pale);
  padding: 16px 20px;
  max-width: 380px;
  box-shadow: 6px 6px 0 var(--mid);
  animation: pendingpulse 2.4s steps(2) infinite;
}

.pending-label {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

@keyframes pendingpulse {
  50% {
    box-shadow: 6px 6px 0 var(--ink);
  }
}

.burn-stage {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

.burn-console {
  padding: 22px 18px;
  position: sticky;
  top: 72px;
}

.console-label {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  margin: 18px 0 10px;
  color: var(--ink);
}

.console-label:first-child {
  margin-top: 0;
}

.connect-slot {
  padding: 4px 0 8px;
}

.connect-btn {
  width: 100%;
  font-size: 11px;
  padding: 18px 14px;
  letter-spacing: 0.5px;
  text-align: center;
  border: var(--px) solid var(--ink);
}

.burn-page .walletbar {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 4px;
}

.wallet-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wallet-chip-label {
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  color: var(--mid);
  letter-spacing: 1px;
}

.burn-page .walletaddr {
  width: 100%;
  text-align: center;
  font-size: 10px;
  line-height: 1.6;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.wallet-actions .btn {
  width: 100%;
  text-align: center;
}

.hint.tight {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.btn.mini {
  font-size: 8px;
  padding: 10px 12px;
  box-shadow: 0 4px 0 0 var(--mid);
}

.burn-page .tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.burn-page .tier {
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 14px 12px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--mid);
}

.burn-page .tier.on {
  background: var(--ink);
  color: var(--pale);
  box-shadow: 0 4px 0 rgba(214, 243, 199, 0.35);
}

.burn-page .tier .num {
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
}

.burn-page .tier .when {
  font-size: 17px;
  opacity: 0.85;
}

.burn-page .legend {
  margin-top: 18px;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
  color: var(--ink);
  opacity: 0.8;
}

.burn-page .legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 2px solid var(--ink);
}

.dot.hidden {
  background: var(--bg);
}

.dot.pending {
  background: #c45c26;
}

.dot.revealed {
  background: var(--ink);
}

.burn-vault {
  padding: 22px 20px 26px;
  min-height: 520px;
}

.vault-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.vault-head h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  color: var(--ink);
}

.owned-total {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.7;
}

.load-panel {
  margin-bottom: 18px;
  padding: 14px;
  background: var(--bg);
  border: 3px solid var(--ink);
}

.load-label {
  display: flex;
  justify-content: space-between;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--ink);
  margin-bottom: 10px;
}

.load-bar {
  height: 18px;
  border: 3px solid var(--ink);
  background: var(--pale);
  padding: 3px;
}

.load-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.25s steps(6);
}

.burn-page .token.hidden-state,
.burn-page .token.hidden {
  /* unrevealed pickable */
}

.burn-page .token.hidden.burnpick:hover {
  transform: translateY(-2px);
}

.spotlight-state.hidden {
  background: var(--pale);
  color: var(--ink);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(10, 27, 35, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.confirm-modal[hidden] {
  display: none !important;
}

.confirm-box {
  width: min(520px, 100%);
  padding: 28px 24px;
  background: var(--pale);
}

.confirm-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--mid);
  margin-bottom: 12px;
}

.confirm-box h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.5;
}

.confirm-body {
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 22px;
}

.confirm-body .burn-ids {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  line-height: 2;
  background: var(--bg);
  border: 3px solid var(--ink);
  padding: 12px;
  margin: 12px 0;
  word-break: break-all;
}

.confirm-body .warn-line {
  color: var(--warn);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  margin-top: 14px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.confirm-actions .btn {
  flex: 1;
  font-size: 10px;
  padding: 16px 12px;
}

.confirm-go {
  background: var(--warn) !important;
  color: var(--pale) !important;
}

.vault-head h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 14px;
  color: var(--ink);
}

.spotlight {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--bg);
  border: 4px solid var(--ink);
}

.spotlight-frame {
  position: relative;
  width: 200px;
  height: 200px;
  background: var(--ink);
  border: 4px solid var(--ink);
  box-shadow: inset 0 0 0 4px var(--pale);
}

.spotlight-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.spotlight-scan {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(214, 243, 199, 0.12) 50%,
    transparent 100%
  );
  animation: spotscan 3s linear infinite;
}

@keyframes spotscan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

.spotlight-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spotlight-id {
  font-family: "Press Start 2P", monospace;
  font-size: 18px;
  color: var(--ink);
}

.spotlight-state {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  display: inline-block;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  width: fit-content;
}

.spotlight-state.locked {
  background: var(--pale);
  color: var(--ink);
}

.spotlight-state.hidden {
  background: var(--pale);
  color: var(--ink);
}

.spotlight-state.pending {
  background: #c45c26;
  color: var(--pale);
}

.spotlight-state.revealed {
  background: var(--ink);
  color: var(--pale);
}

.spotlight-name {
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
}

.burn-page .tokengrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 12px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px;
  margin-bottom: 18px;
}

.burn-page .token {
  position: relative;
  border: 3px solid var(--ink);
  background: var(--bg);
  padding: 0;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s steps(2);
}

.burn-page .token:focus-visible {
  outline: 3px solid var(--warn);
  outline-offset: 2px;
}

.burn-page .token.focus {
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--bg);
}

.burn-page .token-art {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  background: var(--ink);
}

.burn-page .token-art.loading {
  background: repeating-linear-gradient(
    45deg,
    var(--ink),
    var(--ink) 6px,
    #1a2f38 6px,
    #1a2f38 12px
  );
  animation: loadstripes 0.6s steps(4) infinite;
}

@keyframes loadstripes {
  to {
    background-position: 24px 0;
  }
}

.burn-page .token-foot {
  padding: 8px 6px 10px;
  background: var(--pale);
}

.burn-page .token .id {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  display: block;
}

.burn-page .token .st {
  font-size: 14px;
  margin-top: 4px;
  line-height: 1.2;
  opacity: 0.85;
}

.burn-page .token.hidden.burnpick:hover {
  transform: translateY(-2px);
}

.burn-page .token.burn-on {
  outline: 4px solid var(--warn);
  outline-offset: -4px;
}

.burn-page .token.burn-on::after {
  content: "BURN";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  background: var(--warn);
  color: var(--pale);
  padding: 8px 10px;
  border: 3px solid var(--ink);
  pointer-events: none;
}

.burn-page .token.pending,
.burn-page .token.revealed,
.burn-page .token.readonly {
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.burn-page .token.pending {
  opacity: 0.72;
}

.burn-page .token.revealed {
  border-color: var(--mid);
}

.burn-page .token.revealed .token-foot {
  background: var(--ink);
  color: var(--pale);
}

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 12px;
  color: var(--ink);
  opacity: 0.7;
}

.burn-page .burncta {
  width: 100%;
  font-size: 12px;
  padding: 20px;
}

.burn-page .status.ok {
  background: var(--ink);
  color: var(--pale);
}

.burn-page .status.bad {
  background: var(--warn);
  color: var(--pale);
}

.burn-page footer {
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .burn-stage {
    grid-template-columns: 1fr;
  }

  .burn-console {
    position: static;
  }

  .spotlight {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .spotlight-frame {
    margin: 0 auto;
  }

  .spotlight-meta {
    align-items: center;
  }
}

@media (max-width: 640px) {
  .burn-page .tokengrid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .connect-btn {
    font-size: 9px;
    padding: 16px 10px;
  }

  .wallet-actions .btn.mini {
    font-size: 7px;
    padding: 12px 8px;
  }
}
