/* PHOENIX (phoenix/ARCHITECTURE.md): the entry page and the dashboard share this sheet. Ember on night: a near-black
   warm ground, fire for the things you press, gold for the things that matter. System fonts only (the site's CSP
   allows no font host), so the display face is a serif stack set wide and in capitals. */

:root {
  --ink: #0b0608;
  --night: #140a1c;
  --panel: rgba(28, 12, 18, 0.62);
  --panel-solid: #1a0c12;
  --line: rgba(255, 170, 90, 0.18);
  --line-hot: rgba(255, 150, 60, 0.55);
  --text: #fff3e6;
  --muted: #c9b3a6;
  --dim: #8f7a70;
  --ember: #ff6a1a;
  --flame: #ffb23e;
  --gold: #ffd27a;
  --crimson: #c4161c;
  --good: #7be0a0;
  --warn: #ffcf6b;
  --bad: #ff7a6b;
  --display: 'Trajan Pro', 'Cinzel', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(120% 80% at 70% 0%, #2a0d12 0%, var(--ink) 55%) fixed, var(--ink);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--gold); }
a:hover { color: #fff0c8; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ the bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(11, 6, 8, 0.85), rgba(11, 6, 8, 0));
  transition: background 0.3s;
}
.bar.solid { background: rgba(11, 6, 8, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(255, 120, 40, 0.6)); }
.brand span { font: 700 18px/1 var(--display); letter-spacing: 0.32em; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.bar nav a.plain { color: var(--muted); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; }
.bar nav a.plain:hover { color: var(--text); }
@media (max-width: 640px) { .bar nav a.plain { display: none; } .brand span { font-size: 15px; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 700 15px/1 var(--sans); letter-spacing: 0.02em;
  color: #2a0a02;
  background: linear-gradient(180deg, #ffd27a 0%, #ff9a2e 48%, #ff6a1a 100%);
  box-shadow: 0 0 0 1px rgba(255, 220, 160, 0.4) inset, 0 8px 28px rgba(255, 106, 26, 0.35), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 230, 180, 0.6) inset, 0 12px 36px rgba(255, 106, 26, 0.5), 0 2px 0 rgba(255, 255, 255, 0.4) inset; color: #2a0a02; }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.off { filter: grayscale(0.85) brightness(0.7); cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px var(--line-hot) inset; }
.btn.ghost:hover { background: rgba(255, 140, 60, 0.12); color: #fff; }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.discord { background: linear-gradient(180deg, #7983f5 0%, #5865f2 100%); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 8px 28px rgba(88, 101, 242, 0.45); }
.btn.discord:hover { color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 36px rgba(88, 101, 242, 0.6); }
.btn.danger { color: var(--bad); background: transparent; box-shadow: 0 0 0 1px rgba(255, 122, 107, 0.4) inset; }
.btn.danger:hover { background: rgba(255, 122, 107, 0.12); color: #ffd2cc; }
.btn svg { width: 20px; height: 20px; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line); }
.chip.good { color: var(--good); border-color: rgba(123, 224, 160, 0.35); background: rgba(123, 224, 160, 0.08); }
.chip.warn { color: var(--warn); border-color: rgba(255, 207, 107, 0.35); background: rgba(255, 207, 107, 0.08); }
.chip.hot { color: var(--flame); border-color: var(--line-hot); background: rgba(255, 106, 26, 0.1); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ------------------------------------------------------------------ the hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-art {
  position: absolute; inset: -4% 0 0 0; width: 100%; height: 108%; object-fit: cover; object-position: 62% 40%;
  z-index: -3; will-change: transform; transform-origin: 62% 40%;
  animation: rise 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
@keyframes rise { from { opacity: 0; transform: scale(1.08) translateY(2%); filter: brightness(0.4); } to { opacity: 1; transform: none; filter: none; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(11, 6, 8, 0.92) 0%, rgba(11, 6, 8, 0.7) 32%, rgba(11, 6, 8, 0.05) 62%, rgba(11, 6, 8, 0) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(11, 6, 8, 0) 28%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-copy { position: relative; max-width: 700px; padding: 120px max(24px, 6vw) 90px; }
.eyebrow { margin: 0 0 18px; color: var(--flame); font-weight: 700; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; animation: fadeUp 1s 0.4s both; }
h1.title {
  display: inline-block; white-space: nowrap; margin: 0; padding-right: 0.1em;
  font: 700 clamp(44px, 12.5vw, 112px)/0.98 var(--display); letter-spacing: 0.1em;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe3a0 38%, #ffb23e 62%, #ff6a1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 120, 40, 0.45)) drop-shadow(0 4px 0 rgba(90, 14, 4, 0.6));
  animation: fadeUp 1.1s 0.55s both, glow 4s 2s ease-in-out infinite;
}
@keyframes glow { 50% { filter: drop-shadow(0 0 40px rgba(255, 140, 50, 0.7)) drop-shadow(0 4px 0 rgba(90, 14, 4, 0.6)); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lede { margin: 22px 0 30px; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; color: #f3dfd0; max-width: 34em; animation: fadeUp 1s 0.8s both; }
.lede b { color: var(--gold); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; animation: fadeUp 1s 1s both; }
.chains { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; animation: fadeUp 1s 1.2s both; }
.chains li { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); background: rgba(11, 6, 8, 0.5); }
.status-line { margin: 18px 0 0; font-size: 13px; color: var(--dim); animation: fadeUp 1s 1.3s both; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 210, 122, 0.5); border-radius: 14px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
/* A phone: the painting takes the top of the screen with the bird in it, and the words sit below on the dark. */
@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: 0; padding-top: 46vh; }
  .hero-art { inset: 0 0 auto 0; height: 62vh; object-position: 70% 35%; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 6, 8, 0.55) 0%, rgba(11, 6, 8, 0) 14%, rgba(11, 6, 8, 0) 34%, rgba(11, 6, 8, 0.85) 54%, var(--ink) 64%); }
  .hero-copy { padding: 0 20px 56px; }
  .eyebrow { letter-spacing: 0.2em; }
  .scroll-cue { display: none; }
}
/* A phone held sideways: the screen is short, so the words go small and to the left, the bird keeps the right, and
   the buttons stay on the first screen. */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { align-items: center; min-height: 100vh; min-height: 100svh; padding-top: 0; }
  .hero-art { inset: 0; height: 100%; object-position: 70% 30%; }
  .hero::before { background: linear-gradient(90deg, rgba(11, 6, 8, 0.94) 0%, rgba(11, 6, 8, 0.78) 40%, rgba(11, 6, 8, 0.05) 70%, rgba(11, 6, 8, 0) 100%); }
  .hero-copy { max-width: 62%; padding: 64px 20px 18px max(20px, env(safe-area-inset-left)); }
  .eyebrow { margin-bottom: 8px; font-size: 11px; letter-spacing: 0.2em; }
  h1.title { font-size: clamp(36px, 15vh, 64px); }
  .lede { margin: 10px 0 14px; font-size: 14px; line-height: 1.45; }
  .chains { margin-top: 12px; }
  .chains li { padding: 4px 10px; font-size: 11px; }
  .status-line { margin-top: 8px; font-size: 12px; }
  .scroll-cue { display: none; }
  main section.band { padding: 56px max(20px, env(safe-area-inset-left)); }
  main .band .sub { margin-bottom: 26px; font-size: 16px; }
  .sheet-back { padding: 8px; }
  .sheet { width: min(760px, 100%); max-height: calc(100vh - 16px); padding: 18px 22px; }
  .bar { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .brand img { width: 30px; height: 30px; }
  .dash { padding-top: 70px; }
  .dash .dash-head { margin-bottom: 14px; gap: 12px; }
  .dash .dash-head .avatar { width: 40px; height: 40px; }
  .dash .dash-head h1 { font-size: 22px; }
  .dash .tabs { margin-bottom: 14px; padding-bottom: 8px; }
}

/* ------------------------------------------------------------------ sections */
section.band { position: relative; padding: 110px max(24px, 6vw); }
.band h2 { margin: 0 0 12px; font: 700 clamp(30px, 4.4vw, 48px)/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #ffe9c4; }
.band .sub { margin: 0 0 46px; max-width: 46em; color: var(--muted); font-size: 18px; }
.kicker { display: block; margin-bottom: 12px; color: var(--ember); font-weight: 800; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 28px 24px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.25s ease, border-color 0.25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-hot); }
.step::before { counter-increment: step; content: counter(step); position: absolute; right: 14px; top: -10px; font: 700 96px/1 var(--display); color: rgba(255, 140, 50, 0.08); }
.step .ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: radial-gradient(circle at 50% 35%, rgba(255, 178, 62, 0.35), rgba(255, 106, 26, 0.08)); border: 1px solid var(--line-hot); }
.step .ico svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 0 0 8px; font-size: 19px; color: #fff; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step .where { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--flame); }

.vault { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .vault { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vault { grid-template-columns: 1fr; } }
.vault .card { padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 140, 50, 0.07), rgba(28, 12, 18, 0.6) 40%); border: 1px solid var(--line); }
.vault .card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; color: #fff; }
.vault .card h3 svg { width: 22px; height: 22px; flex: none; stroke: var(--flame); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vault .card p { margin: 0; color: var(--muted); font-size: 15px; }

.owners { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .owners { grid-template-columns: 1fr; } }
.owners ul { margin: 0 0 30px; padding: 0; list-style: none; }
.owners ul li { position: relative; padding: 10px 0 10px 34px; color: #f0dccd; border-bottom: 1px solid rgba(255, 170, 90, 0.08); }
.owners ul li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, var(--flame) 45%, rgba(255, 106, 26, 0) 72%); }
.rollout { padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.rollout h3 { margin: 0 0 14px; font: 700 15px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.rollout ol { margin: 0; padding: 0; list-style: none; }
.rollout li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; color: var(--muted); font-size: 15px; }
.rollout li .chip { flex: none; min-width: 64px; justify-content: center; }
.rollout li b { color: var(--text); font-weight: 600; }

footer.foot { padding: 50px max(24px, 6vw) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer.foot img { width: 28px; height: 28px; }
footer.foot .grow { flex: 1; }

/* ------------------------------------------------------------------ toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 50; opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(120px); max-width: min(92vw, 520px); padding: 14px 20px; border-radius: 14px; background: #24100f; border: 1px solid var(--line-hot); color: var(--text); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); font-size: 15px; }
.toast.show { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.toast.bad { border-color: rgba(255, 122, 107, 0.6); }
.toast.good { border-color: rgba(123, 224, 160, 0.55); }

/* ------------------------------------------------------------------ the dashboard */
.dash { max-width: 1180px; margin: 0 auto; padding: 96px max(18px, 4vw) 60px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 28px; }
.dash-head .who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--flame); box-shadow: 0 0 22px rgba(255, 120, 40, 0.45); object-fit: cover; background: #2a1216; display: grid; place-items: center; font: 700 22px/1 var(--display); color: var(--gold); overflow: hidden; }
.dash-head h1 { margin: 0; font: 700 clamp(24px, 3.6vw, 34px)/1.1 var(--display); letter-spacing: 0.06em; }
.dash-head .handle { color: var(--muted); font-size: 14px; }
.dash-head .grow { flex: 1; }
.grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); padding: 24px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel + .panel { margin-top: 20px; }
.panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 700 15px/1.2 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.panel h2 .count { margin-left: auto; letter-spacing: 0.04em; color: var(--dim); font-size: 13px; }
.panel .note { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 170, 90, 0.1); }
.row .badge { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; font: 800 12px/1 var(--sans); letter-spacing: 0.04em; }
.row .badge.evm { background: linear-gradient(160deg, #6f7cff, #3b3fae); color: #fff; }
.row .badge.solana { background: linear-gradient(160deg, #19fb9b, #8c4dff); color: #10061a; }
.row .badge img { width: 40px; height: 40px; border-radius: 11px; }
.row .badge.guild { background: #2a1216; color: var(--gold); font-family: var(--display); font-size: 16px; overflow: hidden; }
.row .main { min-width: 0; flex: 1; }
.row .main b { display: block; font-size: 15px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .main small { color: var(--dim); font-size: 12px; }
.row code { font: 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #f5d9c2; word-break: break-all; }
.row .main code { display: block; }
.empty { padding: 22px; text-align: center; color: var(--dim); border: 1px dashed rgba(255, 170, 90, 0.2); border-radius: 12px; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.signin-card { max-width: 560px; margin: 16vh auto 0; text-align: center; padding: 40px 28px; }
.signin-card img.mark { width: 110px; filter: drop-shadow(0 0 24px rgba(255, 120, 40, 0.6)); }
.signin-card h1 { font: 700 34px/1.1 var(--display); letter-spacing: 0.1em; margin: 14px 0 10px; }
.signin-card p { color: var(--muted); margin: 0 0 26px; }
.promise { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 16px; }
.promise svg { width: 18px; height: 18px; flex: none; stroke: var(--good); fill: none; stroke-width: 2; margin-top: 1px; }

/* the link-a-wallet sheet */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(5, 2, 4, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 18px; }
.sheet-back.open { display: flex; }
.sheet { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; border-radius: 20px; background: linear-gradient(170deg, #2a1012 0%, #150a0f 60%); border: 1px solid var(--line-hot); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 106, 26, 0.15); padding: 26px; animation: sheetIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
.sheet h3 { margin: 0 0 4px; font: 700 22px/1.2 var(--display); letter-spacing: 0.06em; }
.sheet .close { float: right; background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.track { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.track .st { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid rgba(255, 170, 90, 0.1); background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s, background 0.3s; }
.track .st .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--dim); border: 2px solid rgba(255, 170, 90, 0.25); }
.track .st.now { border-color: var(--line-hot); background: rgba(255, 106, 26, 0.07); }
.track .st.now .dot { color: var(--flame); border-color: var(--flame); box-shadow: 0 0 14px rgba(255, 140, 40, 0.5); animation: pulse 1.2s ease-in-out infinite; }
.track .st.done .dot { color: #10200f; background: var(--good); border-color: var(--good); }
.track .st.fail .dot { color: #fff; background: #a3271d; border-color: var(--bad); }
@keyframes pulse { 50% { box-shadow: 0 0 2px rgba(255, 140, 40, 0.2); } }
.track .st b { display: block; color: #fff; font-size: 15px; }
.track .st small { color: var(--muted); font-size: 13px; }
.meter { height: 6px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ember), var(--gold)); transition: width 0.25s; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.pick button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font: 600 14px/1.2 var(--sans); cursor: pointer; text-align: left; }
.pick button:hover { border-color: var(--line-hot); background: rgba(255, 106, 26, 0.08); }
.pick button img { width: 28px; height: 28px; border-radius: 7px; }
pre.msg { margin: 10px 0 0; padding: 12px; max-height: 180px; overflow: auto; white-space: pre-wrap; word-break: break-word; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 170, 90, 0.12); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #f3d8c4; }
.burst { text-align: center; padding: 10px 0 4px; }
.burst img { width: 120px; animation: reborn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; filter: drop-shadow(0 0 30px rgba(255, 140, 40, 0.9)); }
@keyframes reborn { 0% { transform: scale(0.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: none; } }

/* ------------------------------------------------------------------ forms, and the admin panel */
.field { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); color: var(--text); font: 15px/1.3 var(--sans); }
.field:focus { outline: none; border-color: var(--line-hot); box-shadow: 0 0 0 3px rgba(255, 140, 40, 0.18); }
select.field { width: auto; min-width: 220px; max-width: 100%; }
.searchbar { display: flex; gap: 10px; margin: 0 0 12px; }
.searchbar .field { flex: 1; min-width: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--muted); font: 600 14px/1 var(--sans); letter-spacing: 0.04em; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--ink); background: linear-gradient(180deg, var(--gold), var(--flame)); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-card { padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat-card b { display: block; font: 700 30px/1.1 var(--display); color: var(--gold); }
.stat-card span { color: var(--muted); font-size: 13px; }
.row.rowbtn { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.row.rowbtn:hover { border-color: var(--line-hot); background: rgba(255, 106, 26, 0.06); }
.row .chip { flex: none; }
.pager { align-items: center; justify-content: space-between; }
.pager .note { margin: 0; }
.avatar.mark { padding: 6px; background: #1d0a0d; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 16px 0; }
.facts div { min-width: 0; }
.facts span { display: block; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }
.facts b, .facts code { font-size: 14px; color: var(--text); word-break: break-all; }
.sheet h4 { margin: 20px 0 10px; font: 700 13px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  /* The four tabs stay on one line on a phone, and slide sideways if a narrow one needs it. */
  .tabs { flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 9px 9px; font-size: 13px; letter-spacing: 0.01em; }
  select.field { width: 100%; min-width: 0; }
}

/* ------------------------------------------------------------------ the second step (phoenix-twofactor.js) */
.two-step { max-width: 620px; margin: 4vh auto 0; padding: 30px 30px 22px; }
.two-step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.two-step-head .kicker { margin-bottom: 4px; }
.two-step-head h1 { margin: 0; font: 700 clamp(24px, 4vw, 32px)/1.1 var(--display); letter-spacing: 0.06em; }
.lede-sm { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.tfa-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0 8px; }
.code-input { width: 11.5ch; flex: none; text-align: center; font: 700 24px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.22em; padding: 10px 12px; }
.code-input.wide { width: 15ch; font-size: 19px; letter-spacing: 0.1em; }
.code-input::placeholder { color: rgba(201, 179, 166, 0.35); }
.tfa-out { min-height: 1.4em; margin: 4px 0 0; color: var(--warn); font-size: 14px; }
.tfa-out:empty { min-height: 0; }
.tfa-swap { margin: 12px 0 0; }
.linkish { appearance: none; border: 0; background: none; padding: 0; color: var(--gold); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: #fff0c8; }
.two-step-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.tfa-steps { margin: 0; padding: 0; list-style: none; counter-reset: tfa; display: flex; flex-direction: column; gap: 14px; }
.tfa-steps > li { position: relative; padding: 14px 14px 14px 56px; border-radius: 12px; border: 1px solid rgba(255, 170, 90, 0.12); background: rgba(255, 255, 255, 0.02); counter-increment: tfa; }
.tfa-steps > li::before { content: counter(tfa); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--flame); border: 2px solid var(--flame); }
.tfa-steps > li > b { display: block; color: #fff; font-size: 15px; margin: 3px 0 6px; }
.tfa-steps > li .note { margin: 0 0 8px; }
.tfa-steps.compact { gap: 8px; margin-bottom: 4px; }
.tfa-steps.compact > li { padding: 10px 12px 10px 50px; color: var(--muted); font-size: 14px; }
.tfa-steps.compact > li::before { left: 12px; top: 8px; width: 24px; height: 24px; font-size: 12px; }
.tfa-add { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.qr { width: 184px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line-hot), 0 0 26px rgba(255, 140, 40, 0.25); }
.qr svg { display: block; width: 100%; height: auto; }
.tfa-ways { min-width: 0; }
.tfa-ways .note { margin: 0 0 10px; }
.tfa-ways .btn { margin: 0 0 12px; line-height: 1.25; text-align: center; }
.tfa-key { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tfa-key code { padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 170, 90, 0.15); font: 600 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; color: #f5d9c2; word-break: normal; overflow-wrap: anywhere; }
.tfa-codes-wrap { margin-top: 6px; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0 0 16px; padding: 16px 16px 16px 40px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-hot); }
.tfa-codes li { color: var(--dim); font-size: 12px; }
.tfa-codes code { font: 700 16px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.08em; color: var(--gold); }
.tfa-tick { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; color: var(--text); font-size: 14px; cursor: pointer; }
.tfa-tick input { width: 20px; height: 20px; flex: none; accent-color: var(--flame); }
.warn-text { color: var(--warn) !important; }
.small-print { font-size: 13px !important; color: var(--dim) !important; margin: 14px 0 0 !important; }
.panel.alert { margin-bottom: 20px; border-color: rgba(255, 207, 107, 0.45); background: linear-gradient(160deg, rgba(255, 207, 107, 0.1), rgba(28, 12, 18, 0.62) 50%); }
.panel.alert h2 { color: var(--warn); }
/* A phone held upright: the QR code goes above the words, the codes stay two across. */
@media (max-width: 560px) {
  .two-step { margin-top: 0; padding: 22px 16px 18px; }
  .two-step-head .avatar { width: 46px; height: 46px; }
  .tfa-steps > li { padding: 12px 12px 12px 48px; }
  .tfa-steps > li::before { left: 10px; }
  .tfa-add { grid-template-columns: 1fr; justify-items: center; }
  .tfa-ways { justify-self: stretch; }
  .qr { width: min(220px, 70vw); }
  .tfa-codes { gap: 6px 10px; padding: 14px 12px 14px 32px; }
  .tfa-codes code { font-size: 14px; letter-spacing: 0.04em; }
}
/* A phone held sideways: the card uses the width, so the QR code sits beside the words and stays scannable. */
@media (orientation: landscape) and (max-height: 520px) {
  .two-step { max-width: 760px; margin-top: 0; padding: 18px 22px 14px; }
  .two-step-head { margin-bottom: 4px; }
  .two-step-head .avatar { width: 40px; height: 40px; }
  .lede-sm { margin-bottom: 12px; font-size: 14px; }
  .tfa-steps { gap: 10px; }
  .tfa-add { grid-template-columns: auto minmax(0, 1fr); }
  .qr { width: 160px; }
  .tfa-codes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .two-step-foot { margin-top: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---- holder rules, the server page, results and the admin Activity tab (2026-10-05) ---- */
.results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.results li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.results li b { color: var(--text); }
.results li.good { border-color: rgba(123, 224, 160, 0.35); }
.results li.warn { border-color: rgba(255, 207, 107, 0.4); }
.mini { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 8px 12px 0 0; }
h3.mini { display: block; font-family: var(--display); color: var(--gold); font-size: 15px; letter-spacing: 0.06em; margin: 22px 0 8px; }
.cond-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.cond-row .field { flex: 1 1 160px; min-width: 0; }
.cond { border-left: 2px solid var(--line-hot); padding: 4px 0 6px 12px; margin: 12px 0; }
.rule-card { margin-top: 14px; }
textarea.field { width: 100%; margin-top: 10px; font-family: var(--sans); resize: vertical; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.act-card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.act-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.act-head b { color: var(--text); }
.act-chart { width: 100%; height: auto; display: block; }
.act-base { stroke: var(--line); stroke-width: 1; }
.act-axis { fill: var(--dim); font-size: 10px; font-family: var(--sans); }
.act-tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); border: 1px solid var(--line-hot); color: var(--text); font-size: 12px; padding: 4px 8px; border-radius: 8px; opacity: 0; transition: opacity 0.12s; }
.act-tip.show { opacity: 1; }
.act-bars { display: grid; gap: 6px; }
.act-bar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.act-bar i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: #e0561a; }
.act-bar b { color: var(--text); font-variant-numeric: tabular-nums; }
.act-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; display: block; overflow-x: auto; }
.act-table th, .act-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.act-table th { color: var(--gold); font-weight: 600; }
.act-more { margin-top: 16px; color: var(--muted); }
.act-more summary { cursor: pointer; color: var(--flame); }
.row.wrap { flex-wrap: wrap; }
.row.wrap .main { flex: 1 1 180px; }
.fl { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; min-width: 0; font-size: 12px; color: var(--dim); }
.fl .field { flex: none; width: 100%; }
.fl textarea.field { margin-top: 0; }
