/* ============ THE HOUSE BRAND ============
 *
 * ari3izseries, in one stylesheet, shared by every tool in the suite. A tool's own
 * app.css is appended to this at build time, so a brand change lands everywhere in one
 * commit rather than being re-typed per app and drifting.
 *
 * The colour decisions here were computed, not chosen by eye: the accent is separated
 * from the categorical chart palette by lightness in light mode and by chroma in dark,
 * and every ink passes WCAG AA on both grounds. test/brand.test.mjs re-checks the maths
 * on every run, so a retune that breaks contrast fails the build rather than shipping.
 */
:root{
  color-scheme: light;
  --surface-1:#fcfcfb; --page:#f9f9f7;
  --ink-1:#0b0b0b; --ink-2:#52514e; --ink-3:#74726b;
  --grid:#e1e0d9; --baseline:#c3c2b7; --border:rgba(11,11,11,0.10);
  --s1:#2a78d6; --s2:#eb6834; --s3:#1baf7a; --s4:#eda100;
  --s5:#e87ba4; --s6:#008300; --s7:#4a3aa7; --s8:#e34948;
  --other:#c3c2b7;
  --good:#087a08; --warning:#fab219; --serious:#ec835a; --critical:#d03b3b;
  --delta-up:#006300; --delta-down:#d03b3b;
  --neutral-mid:#f0efec;
  --accent:#8F3620; --accent-ink:#ffffff; --sun:#F2A93B; --live:#006300;
}
@media (prefers-color-scheme: dark){
  :root:where(:not([data-theme="light"])){
    color-scheme: dark;
    --surface-1:#1a1a19; --page:#0d0d0d;
    --ink-1:#ffffff; --ink-2:#c3c2b7; --ink-3:#898781;
    --grid:#2c2c2a; --baseline:#383835; --border:rgba(255,255,255,0.10);
    --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500;
    --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
    --other:#52514e;
    --good:#0ca30c; --delta-up:#0ca30c; --delta-down:#e35d5d; --critical:#e35d5d;
    --neutral-mid:#383835;
    --accent:#E3BCA8; --accent-ink:#14110F; --sun:#F2A93B; --live:#3fbf5f;
  }
}
:root[data-theme="dark"]{
  color-scheme: dark;
  --surface-1:#1a1a19; --page:#0d0d0d;
  --ink-1:#ffffff; --ink-2:#c3c2b7; --ink-3:#898781;
  --grid:#2c2c2a; --baseline:#383835; --border:rgba(255,255,255,0.10);
  --s1:#3987e5; --s2:#d95926; --s3:#199e70; --s4:#c98500;
  --s5:#d55181; --s6:#008300; --s7:#9085e9; --s8:#e66767;
  --other:#52514e;
  --good:#0ca30c; --delta-up:#0ca30c; --delta-down:#e35d5d; --critical:#e35d5d;
  --neutral-mid:#383835;
  --accent:#E3BCA8; --accent-ink:#14110F; --sun:#F2A93B; --live:#3fbf5f;
}
*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--page); color:var(--ink-1);
  font-size:14px; line-height:1.45;
}

/* ---- links and controls ---- */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button, select, input[type="text"], input[type="number"]{
  font:inherit;color:var(--ink-1);background:var(--surface-1);
  border:1px solid var(--border);border-radius:8px;padding:6px 11px;
}
button{cursor:pointer}
button:hover{border-color:var(--baseline)}
button.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-weight:550}
button.ghost{background:transparent}
button:disabled{opacity:.5;cursor:default}

/* ---- house brand: ari3izseries ----
   The sun is a flat disc, no rays: it belongs to Flat Sun and is an identity mark only.
   It is never a data colour, and nothing is ever set in text on top of it. */
.sun{display:inline-block;width:.62em;height:.62em;border-radius:50%;background:var(--sun);
  margin-right:.42em;vertical-align:baseline;flex:none}
h1 .sun{width:.5em;height:.5em;margin-right:.34em}
.house-line{font-size:11px;letter-spacing:.14em;color:var(--ink-3);margin-bottom:10px;
  display:flex;align-items:center}
a.house{color:var(--ink-2);border-bottom:1px solid var(--grid)}
a.house:hover{color:var(--accent);border-bottom-color:var(--accent)}
.house-foot{display:grid;grid-template-columns:1.3fr 1.1fr .8fr .9fr;gap:26px;
  margin:44px 0 24px;padding-top:22px;border-top:1px solid var(--grid)}
@media(max-width:980px){.house-foot{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.house-foot{grid-template-columns:1fr;gap:20px}}
.hf-mark{font-size:12px;letter-spacing:.14em;font-weight:600;color:var(--ink-1);
  display:flex;align-items:center;margin-bottom:6px}
.hf-tag{font-size:12.5px;color:var(--ink-2);font-style:italic;margin-bottom:8px;max-width:34ch}
.hf-home{font-size:12px;color:var(--ink-2)}
.hf-home:hover{color:var(--accent)}
.hf-h{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-3);margin-bottom:9px}
.hf-col a,.hf-here{display:block;font-size:13px;color:var(--ink-2);margin-bottom:9px}
.hf-chain{display:block;font-size:11px;color:var(--ink-2);margin-top:2px}
.hf-col a:hover{color:var(--accent)}
.hf-tagchip{font-size:10px;letter-spacing:.04em;text-transform:uppercase;padding:1px 6px;
  border-radius:99px;border:1px solid var(--grid);color:var(--ink-2);margin-left:5px}
.hf-tagchip.live{border-color:var(--live);color:var(--live)}
.hf-tagchip.here{border-color:var(--accent);color:var(--accent)}
.hf-tagchip.done{border-color:var(--baseline)}
.hf-home{display:block;margin-bottom:3px}
.hf-note{font-size:11.5px;color:var(--ink-3);line-height:1.5;margin-top:4px;max-width:30ch}

/* ---- shared components ----
   Small pieces every tool in the suite needs, so a card in the mine is the same card as
   a card in Profitboox. */
.card{background:var(--surface-1);border:1px solid var(--border);border-radius:12px;padding:18px 20px;margin-bottom:16px}
.card h3{font-size:13px;font-weight:600;color:var(--ink-2);margin-bottom:12px}
.tbl-scroll{overflow-x:auto}
.warn-inline{font-size:12px;color:var(--ink-2);background:color-mix(in srgb, var(--warning) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--warning) 40%, transparent);border-radius:8px;padding:8px 12px;margin-bottom:14px}
.is-hidden{display:none !important}
.msg{border-radius:8px;padding:9px 13px;font-size:13px;margin-top:12px}
.msg:empty{display:none}
.msg.ok{color:var(--ink-1);background:color-mix(in srgb, var(--live) 12%, transparent);
  border:1px solid color-mix(in srgb, var(--live) 45%, transparent)}
.msg.err{color:var(--ink-1);background:color-mix(in srgb, var(--critical) 10%, transparent);
  border:1px solid color-mix(in srgb, var(--critical) 45%, transparent)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.note{color:var(--ink-2);font-size:13px}
.nobody{color:var(--ink-3);font-size:13px;font-style:italic}


/* King Solomon Mine's own rules. The house tokens, base elements, shared components and
   footer come from shared/brand.css and are prepended at build time.
 *
 * The original page was gold on near-black with two Google Fonts. The gold survives, as
 * the house sun token, but the fonts do not: loading them would mean opening two more
 * origins in the content security policy for the sake of a typeface, on a page whose one
 * job is to receive wallet addresses safely. The display voice is carried by weight,
 * scale and letter-spacing on the system stack instead, and the page now follows the
 * reader's light or dark preference like the rest of the suite.
 */

body.mine{font-size:15px;line-height:1.5}
.wrap{max-width:820px;margin:0 auto;padding:0 20px 40px}
.wrap.narrow{max-width:720px}

/* ---- the ticker ----
   Full bleed, and it wraps rather than scrolling. The original marquee clipped its own
   text on a desktop width and a moving strip is a poor place to put the sentence about
   seed phrases. */
.ticker{background:var(--sun);color:#171008;padding:7px 20px;margin-bottom:30px;
  font-size:12px;font-weight:600;letter-spacing:.04em;text-align:center;line-height:1.6}

/* ---- masthead ---- */
.mine-top{text-align:center;padding:26px 0 8px}
.mine-top.left{text-align:left}
.mine-top .house-line{justify-content:center}
.mine-top.left .house-line{justify-content:flex-start}
.pit-tag{display:inline-block;border:1px solid var(--accent);color:var(--accent);
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  padding:3px 12px;border-radius:99px;margin-bottom:14px}
.mine-top h1{font-size:clamp(2.1rem,7vw,3.4rem);font-weight:750;letter-spacing:-0.02em;
  line-height:1.02;color:var(--ink-1)}
.mine-top h1 .shaft{color:var(--accent)}
.mine-top h1.small{font-size:1.5rem;letter-spacing:-0.01em;margin-bottom:2px}
.lede{color:var(--ink-2);max-width:58ch;margin:14px auto 0;font-size:14.5px}
.mine-top .sub{margin-top:10px;font-size:12.5px;color:var(--ink-3)}
.mine-top.left .sub{color:var(--ink-2);font-size:13px}

/* ---- stats ---- */
.statbar{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:26px 0 6px}
.stat{background:var(--surface-1);border:1px solid var(--border);border-radius:12px;
  padding:13px 22px;min-width:168px;text-align:center}
.stat .num{font-size:1.7rem;font-weight:700;letter-spacing:-0.02em;color:var(--ink-1)}
.stat .lbl{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin-top:2px}
.stat.closed .num{color:var(--critical)}

/* ---- sections ---- */
section{margin:26px 0}
.card h2,.rules h2{font-size:1.15rem;font-weight:700;letter-spacing:-0.01em;margin-bottom:8px}
.card .note{margin-bottom:14px;max-width:62ch}
.card.enter{padding:24px}

form{display:flex;flex-direction:column;gap:10px}
input[type="password"],textarea,input[type="datetime-local"]{
  font:inherit;color:var(--ink-1);background:var(--surface-1);
  border:1px solid var(--border);border-radius:8px;padding:6px 11px}
.card.enter input[type="text"]{padding:12px 14px;font-size:15px;border-radius:10px}
input:focus-visible,textarea:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
textarea{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;min-height:104px;width:100%;font-size:13px}
button.big{padding:12px 18px;font-size:15px;font-weight:650}
button.danger{color:var(--critical);border-color:color-mix(in srgb, var(--critical) 45%, transparent)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---- taking your wallet back out ---- */
.purge{margin-top:18px;padding-top:14px;border-top:1px solid var(--grid)}
.purge #purge-panel{margin-top:12px}
.purge form{flex-direction:row;flex-wrap:wrap;gap:8px}
.purge input{flex:1;min-width:240px}

/* ---- rules ---- */
.rule-list{list-style:none;counter-reset:step}
.rule-list li{counter-increment:step;position:relative;padding:13px 16px 13px 46px;
  background:var(--surface-1);border:1px solid var(--border);border-radius:10px;
  margin-bottom:8px;color:var(--ink-2);font-size:13.5px}
.rule-list li::before{content:counter(step);position:absolute;left:14px;top:12px;
  width:20px;height:20px;border-radius:50%;background:var(--sun);color:#171008;
  font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.rule-list b{color:var(--ink-1)}

/* ---- lists of partners and winners ---- */
.row-item{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:baseline;
  border:1px solid var(--border);border-radius:9px;padding:9px 13px;margin-bottom:7px;
  background:var(--page);font-size:13px}
.row-item .who{font-weight:650;color:var(--ink-1)}
.row-item .note{color:var(--ink-3);font-size:12px}
.row-item .mono{color:var(--ink-2);font-size:12px}

/* ---- the safety notice ----
   Not decorative: this is the paragraph that stops someone being drained by a page
   pretending to be this one. */
.safety{border:1px dashed color-mix(in srgb, var(--critical) 55%, transparent);
  border-radius:12px;padding:16px 20px}
.safety h3{color:var(--critical);font-size:14px;font-weight:700;margin-bottom:6px}
.safety p{color:var(--ink-2);font-size:13px;max-width:70ch}

/* ---- the vault ---- */
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--grid)}
th{color:var(--ink-3);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.08em}
td.addr{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all}
.row{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.count{color:var(--ink-3);font-weight:400;font-size:13px}
.vault code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;
  background:var(--neutral-mid);padding:1px 5px;border-radius:4px}
