/* ═══════════════ THE ALMS · the outlaw's oath ═══════════════ */

#oath-veil {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: safe center; justify-content: center;
  background: radial-gradient(70% 70% at 50% 45%, rgba(5,10,7,0.94), rgba(5,10,7,0.99));
  padding: 24px 18px;
  overflow-y: auto; overscroll-behavior: contain;
}
#oath-box {
  margin: auto;
  width: min(520px, 96vw);
  background:
    radial-gradient(120% 90% at 25% 0%, rgba(44,74,56,0.24), transparent 62%),
    rgba(13,24,18,0.99);
  border: 1px solid #8a6a2f;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px),
                     calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  padding: 26px 28px 24px;
  box-shadow: 0 0 70px rgba(233,184,84,0.13);
}

.oath-head { text-align: center; margin-bottom: 18px; }
.oath-crest { width: 150px; height: 16px; opacity: 0.85; --fletch: #4e8f5c; }
.oath-title {
  font-family: 'IM Fell English SC', serif; font-weight: 400;
  font-size: 30px; color: #dbe7dc; letter-spacing: 0.05em; margin-top: 2px;
}
.oath-sub {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 13.5px; color: #6f9a7d; margin-top: 3px; line-height: 1.5;
}

.oath-tasks { list-style: none; margin: 0 0 18px; padding: 0; }
.oath-task {
  display: grid; grid-template-columns: 30px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(44,74,56,0.35);
}
.oath-task:last-child { border-bottom: none; }
.oath-n {
  font-family: 'IM Fell English SC', serif; font-size: 13px; color: #8a6a2f; letter-spacing: 0.08em;
  border: 1px solid #8a6a2f; border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.oath-task.is-done .oath-n { color: #4e8f5c; border-color: #4e8f5c; }
.oath-copy { display: flex; flex-direction: column; min-width: 0; }
.oath-copy b { font-size: 15px; color: #dbe7dc; font-weight: 500; }
.oath-copy i {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 12.5px; color: #6f9a7d;
}

.oath-state { display: flex; align-items: center; justify-content: flex-end; min-width: 104px; }
.oath-go {
  background: linear-gradient(to bottom, #243c2d, #17291e);
  border: 1px solid #2c4a38; border-radius: 3px;
  color: #e9b854;
  font-family: 'Alegreya SC', Georgia, serif; font-size: 12.5px; letter-spacing: 0.08em;
  padding: 7px 16px;
  transition: filter 0.15s;
}
.oath-go:hover { filter: brightness(1.35); }
.oath-wait {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 12.5px; color: #9cc7d9;
}
.oath-spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(156,199,217,0.3);
  border-top-color: #9cc7d9;
  animation: oath-turn 0.85s linear infinite;
}
@keyframes oath-turn { to { transform: rotate(360deg); } }
.oath-tick {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Alegreya SC', Georgia, serif; font-size: 12.5px; letter-spacing: 0.08em;
  color: #4e8f5c;
}
.oath-tick svg { width: 15px; height: 15px; }

#oath-enter { width: 100%; }
#oath-box .seal-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(to bottom, #1a2f22, #12221a);
  border: 1px solid #2c4a38;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px),
                     calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  padding: 11px 0;
  transition: filter 0.15s;
}
#oath-box .seal-btn:disabled { opacity: 0.45; cursor: default; }
#oath-box .seal-btn:not(:disabled) { border-color: #8a6a2f; }
#oath-box .seal-btn:not(:disabled):hover { filter: brightness(1.3); }
#oath-box .seal-wax { width: 24px; height: 24px; }
#oath-box .seal-label {
  font-family: 'IM Fell English SC', serif; font-size: 17px; color: #e9b854; letter-spacing: 0.05em;
}

@media (max-width: 560px) {
  #oath-box { padding: 22px 18px 20px; }
  .oath-title { font-size: 25px; }
  .oath-task { grid-template-columns: 26px 1fr; row-gap: 8px; }
  .oath-state { grid-column: 1 / -1; justify-content: flex-start; padding-left: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .oath-spin { animation: none; }
}

/* ═══════════════ allowlist status line (shared by every wallet field) ═══════════════ */

.wl-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  padding: 7px 11px;
  border-left: 3px solid #6f9a7d;
  background: rgba(5,10,7,0.55);
  border-radius: 0 3px 3px 0;
  font-size: 13px; color: #b9cabb; text-align: left;
}
.wl-status b { font-weight: 500; }
.wl-status.good { border-left-color: #4e8f5c; }
.wl-status.good b { color: #5da26b; }
.wl-status.bad  { border-left-color: #a13327; }
.wl-status.bad b  { color: #c4574a; }
.wl-status.wait { border-left-color: #9cc7d9; font-family: 'IM Fell English', serif; font-style: italic; color: #9cc7d9; }
.wl-status.dim  { border-left-color: #2c4a38; color: #6f9a7d; font-style: italic; }
.wl-spin {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid rgba(156,199,217,0.3); border-top-color: #9cc7d9;
  animation: oath-turn 0.85s linear infinite;
}
