/* z4ts whitelist: the site's dark room, its type and its gold */
:root {
  color-scheme: dark;
  --ground: #0F0E12; --paper: #17161B; --paper-2: #1D1C22;
  --ink: #EFECE6; --ink-2: #CFCCC6; --muted: #8F8D99;
  --hair: rgba(239, 236, 230, 0.16); --hair-2: rgba(239, 236, 230, 0.07);
  --gold: #F4B728; --red: #E85D4A; --green: #7FC98B;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
       cursor: url("/static/paw.svg") 13 4, auto; }
a, button, summary, label, input[type="checkbox"], .btn, .grid999 i, .wallet { cursor: url("/static/paw-gold.svg") 13 4, pointer; }
input[type="text"], input:not([type]), input[type="password"] { cursor: text; }
.btn:disabled { cursor: url("/static/paw.svg") 13 4, default; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .login { position: relative; z-index: 1; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 14px; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* bar */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(15, 14, 18, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.bar .mark { width: 58px; height: auto; image-rendering: pixelated; display: block; }
.bar nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.bar nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.count { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.count b { color: var(--gold); font-weight: 500; }

/* buttons, fields */
.btn { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; display: inline-flex;
       align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; color: var(--ink); background: transparent;
       border: 1px solid var(--hair); cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #121015; }
.btn.gold:hover { background: #FFC93F; border-color: #FFC93F; }
.btn.done { border-color: rgba(244, 183, 40, 0.6); color: var(--gold); }
.btn:disabled { opacity: .45; }
.field { display: grid; gap: 6px; }
.field input { width: 100%; height: 46px; padding: 0 14px; font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--paper-2);
               border: 1px solid var(--hair); }
.field input:focus { border-color: var(--gold); outline: none; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .hint.bad { color: var(--red); }
.field .hint.good { color: var(--green); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mt { margin-top: 10px; }
.grow { flex: 1; min-width: 180px; }
.btn.sm { justify-self: start; height: 34px; font-size: 10px; }
.btn.h40 { height: 40px; }

/* the whitelist page */
.hero { padding: 64px 0 36px; display: grid; gap: 16px; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 84px); line-height: .98; }
.display em, .h2 em { font-style: italic; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; }
.meter { display: grid; gap: 8px; max-width: 520px; margin-top: 8px; }
.meter-track { height: 6px; background: var(--hair-2); border: 1px solid var(--hair); }
.meter-track i { display: block; height: 100%; width: 0; background: var(--gold); }
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; padding-bottom: 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 20px; background: var(--paper); border: 1px solid var(--hair); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); width: 44px; height: 44px; display: grid; place-items: center;
                font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--hair); }
.step.ok::before { content: ""; background: var(--gold) no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23121015' d='M7 0h2v2H7zM6 2h2v1H6zM5 3h2v1H5zM1 3h2v1H1zM2 4h4v1H2zM3 5h2v1H3z'/%3E%3C/svg%3E"); border-color: var(--gold); }
.step.locked { opacity: .5; }
.step-body { display: grid; gap: 10px; min-width: 0; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; }
.step p { color: var(--ink-2); font-size: 15px; }
.who { display: flex; gap: 12px; align-items: center; }
.who img { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); }
.who b { font-weight: 600; }
.demo-note { font-size: 13px; color: var(--gold); border: 1px dashed rgba(244, 183, 40, 0.5); padding: 8px 12px; }
:root { --stepper-h: 58px; --stage-h: 590px; }
.side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; height: calc(var(--stepper-h) + 12px + var(--stage-h)); }
.panel.grow { flex: 1; align-content: start; }
.panel.grow .btn { margin-top: auto; }
.panel.grow { display: flex; flex-direction: column; }
.panel { padding: 20px; background: var(--paper); border: 1px solid var(--hair); display: grid; gap: 12px; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.refbox { position: relative; overflow: hidden; }
.refbox > :not(.lock) { transition: filter .7s ease, opacity .7s ease; }
.refbox.locked > :not(.lock) { filter: blur(5px); opacity: .45; pointer-events: none; user-select: none; }
.lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 20px; text-align: center;
        background: rgba(15, 14, 18, 0.35); transition: opacity .6s ease, transform .6s ease; }
.lock b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.lock span { font-size: 14px; color: var(--ink-2); max-width: 26ch; }
.lock-icon { width: 33px; height: 39px; display: block; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13' shape-rendering='crispEdges'%3E%3Cpath fill='%23F4B728' d='M3 0h5v1H3zM2 1h1v4H2zM8 1h1v4H8zM0 5h11v8H0z'/%3E%3Cpath fill='%230F0E12' d='M5 7h1v3H5z'/%3E%3C/svg%3E") no-repeat center / contain; image-rendering: pixelated; }
.refbox:not(.locked) .lock { opacity: 0; transform: scale(1.08); pointer-events: none; }
.refbox.opened { animation: unlocked 1.2s ease-out; }
@keyframes unlocked { 0% { box-shadow: 0 0 0 0 rgba(244, 183, 40, 0.7); border-color: var(--gold); } 100% { box-shadow: 0 0 0 18px rgba(244, 183, 40, 0); } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
.ref { display: flex; gap: 8px; }
.ref input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: var(--paper-2);
             border: 1px solid var(--hair); }
.status { display: grid; gap: 14px; padding: 20px; border: 1px solid rgba(244, 183, 40, 0.5); background: rgba(244, 183, 40, 0.05); }
.status.in { border-color: var(--gold); background: rgba(244, 183, 40, 0.1); }
.status.no { border-color: rgba(232, 93, 74, 0.6); background: rgba(232, 93, 74, 0.06); }
.status .badge { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.status h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1; }
.card-img { width: 100%; height: auto; display: block; border: 1px solid var(--hair); image-rendering: auto; -webkit-touch-callout: default; }
.status { gap: 12px; }
.status .card-img { width: auto; max-width: 100%; max-height: 262px; }
.st-hint { color: var(--ink-2); min-height: 1.5em; }
.st-hint.good { color: var(--gold); }
.msg { font-size: 14px; }
.msg.bad { color: var(--red); }

/* one step at a time */
.flow { display: grid; gap: 12px; min-width: 0; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stepper button { width: 100%; height: var(--stepper-h); display: grid; gap: 4px; align-content: center; text-align: left; padding: 8px 10px; background: var(--paper); border: 1px solid var(--hair);
                  color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.stepper .num { font-size: 12px; }
.stepper .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .06em; }
.stepper button.done { border-color: rgba(244, 183, 40, 0.6); color: var(--gold); }
.stepper button.done .num::after { content: " \2713"; }
.stepper button.now { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.stepper button:disabled { opacity: .4; cursor: url("/static/paw.svg") 13 4, default; }
.stage { display: grid; gap: 16px; padding: 30px; background: var(--paper); border: 1px solid var(--hair); height: var(--stage-h); overflow: auto; align-content: start; }
.stage h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.4vw, 56px); line-height: 1; }
.stage h2 em { font-style: italic; }
.stage-body { display: grid; gap: 14px; }
.stage-body p { color: var(--ink-2); max-width: 60ch; }
.stage-body b { color: var(--ink); font-weight: 600; }
.stage.enter { animation: step-in .38s cubic-bezier(.2, .7, .2, 1); }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } }
.stage-nav { display: flex; justify-content: space-between; gap: 10px; }
.quote { margin: 0; display: grid; gap: 6px; padding: 12px 16px; border-left: 2px solid var(--gold); background: var(--paper-2); }
.quote .eyebrow { color: var(--gold); }
.quote p { margin: 0; font-size: 15px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* the board of 999: one centred column, title over the frame, all on one screen */
main.board-page { display: grid; justify-items: center; align-content: center; gap: 28px;
                  min-height: calc(100svh - 65px); padding-top: 32px; padding-bottom: 32px; }
.board-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.board-head .display { font-size: clamp(44px, 4.4vw, 68px); }
.board-head .lede { font-size: 17px; max-width: 72ch; }
.board-frame { --cell: clamp(9px, calc((100svh - 540px) / 27), 18px); --gap: 2px;
               display: grid; gap: 14px; background: var(--paper); border: 1px solid var(--hair); padding: 16px; }
.frame-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.frame-head { flex-wrap: wrap; }
.frame-head .btn.sm { height: 32px; padding: 0 14px; }
.grid999 { display: grid; grid-template-columns: repeat(37, var(--cell)); grid-auto-rows: var(--cell); gap: var(--gap); }
.grid999 i { display: block; background: var(--paper-2); border: 1px solid var(--hair-2); position: relative; overflow: hidden; }
.grid999 i.on { background: var(--gold); border-color: var(--gold); }
.grid999 i img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .6s ease; }
/* the viewer's own spot lights up; the other pictures step back so it shows */
.board-page.has-me #grid i.on:not(.me) img { filter: brightness(.5) saturate(.6); }
.grid999 i.on.me { border-color: #FFF1C2; z-index: 2; box-shadow: 0 0 0 2px var(--gold), 0 0 14px 4px rgba(244, 183, 40, 0.7); animation: my-spot 1.8s ease-in-out infinite; }
@keyframes my-spot { 50% { box-shadow: 0 0 0 2px #FFF1C2, 0 0 26px 9px rgba(244, 183, 40, 0.95); } }
@media (pointer: fine) { .board-page .grid999, .board-page .grid999 i { cursor: none; } }
.board-page .grid999 { touch-action: none; }
/* the loupe */
.lens { position: fixed; left: 0; top: 0; z-index: 20; width: 188px; height: 188px; pointer-events: none; }
.lens-glass { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: var(--paper); border: 3px solid var(--gold);
              box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 7px rgba(244, 183, 40, 0.14), inset 0 0 22px rgba(0, 0, 0, 0.45); }
.lens-glass::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
                     border: 1px solid rgba(255, 241, 194, 0.85); border-radius: 50%; }
.lens::after { content: ""; position: absolute; left: calc(50% - 7px); top: 50%; width: 14px; height: 64px; border-radius: 3px;
               background: linear-gradient(90deg, #B8861A, var(--gold) 45%, #8A6414); transform-origin: 7px 0; transform: rotate(-45deg) translateY(97px); }
.lens-grid { position: absolute; left: 0; top: 0; }
.lens-grid i { border-width: 2px; }
.lens-grid i img { filter: none !important; }
.lens-grid i.on.me { animation: none; box-shadow: inset 0 0 0 3px #FFF1C2; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 12px; height: 12px; display: inline-block; background: var(--paper-2); border: 1px solid var(--hair); }
.legend i.on { background: var(--gold); border-color: var(--gold); }
.legend i.me-key { background: #FFF1C2; border-color: #FFF1C2; }
.board-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); padding-top: 12px; }
.board-stats div { display: grid; gap: 6px; justify-items: center; text-align: center; min-width: 0; padding: 0 8px; }
.board-stats div + div { border-left: 1px solid var(--hair); }
.board-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.board-stats b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; color: var(--ink);
                 max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-stats b.gold-num { color: var(--gold); }
.tip { position: fixed; z-index: 9; pointer-events: none; font-family: var(--mono); font-size: 12px; padding: 5px 9px; background: var(--ink); color: var(--ground); }

/* admin */
.admin .wrap { max-width: 1680px; }
.admin-top { display: grid; gap: 18px; padding: 40px 0 20px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--hair); }
.stats div { padding: 16px 18px; border-right: 1px solid var(--hair); display: grid; gap: 2px; }
.stats div:last-child { border-right: 0; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tools .field input { height: 40px; width: 260px; }
.tabs { display: flex; border: 1px solid var(--hair); }
.tabs button { height: 40px; padding: 0 14px; background: none; border: 0; border-right: 1px solid var(--hair); font-family: var(--mono); font-size: 11px;
               letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.table-wrap { overflow-x: auto; border: 1px solid var(--hair); margin-bottom: 80px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { position: sticky; top: 0; text-align: left; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
     color: var(--muted); padding: 10px 9px; background: var(--paper); border-bottom: 1px solid var(--hair); white-space: nowrap; }
td { padding: 10px 9px; border-bottom: 1px solid var(--hair-2); vertical-align: top; color: var(--ink-2); white-space: nowrap; }
td .h div { white-space: normal; }
tr:hover td { background: rgba(239, 236, 230, 0.02); }
td .h { display: flex; gap: 10px; align-items: center; min-width: 150px; }
td .h img { width: 28px; height: 28px; border-radius: 50%; }
td .h b { color: var(--ink); font-weight: 600; }
.ticks { display: flex; gap: 4px; }
.ticks .tk { font-family: var(--mono); font-size: 10px; width: 22px; height: 22px; padding: 0; display: grid; place-items: center; background: transparent;
             border: 1px solid var(--hair); color: var(--muted); transition: border-color .15s ease, color .15s ease; }
.ticks .tk:hover { border-color: var(--ink-2); color: var(--ink); }
.ticks .tk.on { border-color: var(--gold); color: var(--gold); }
/* the dialog for editing an entry's tasks */
dialog.edit { width: min(480px, calc(100vw - 32px)); padding: 28px; background: var(--paper); color: var(--ink); border: 1px solid var(--hair); }
dialog.edit::backdrop { background: rgba(8, 7, 10, 0.72); backdrop-filter: blur(3px); }
dialog.edit form, dialog.edit .share-in { display: grid; gap: 16px; }
dialog.share-box { width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto; }
dialog.share-box .card-img { max-height: none; width: 100%; }
dialog.edit h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.checks { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; }
.e-text { color: var(--muted); word-break: break-word; }
.e-text:empty, dialog.edit .msg:empty { display: none; }
.wallet { font-family: var(--mono); font-size: 11px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; cursor: copy; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px solid var(--hair); white-space: nowrap; }
.chip.pending { border-color: rgba(244, 183, 40, 0.6); color: var(--gold); }
.chip.approved { background: var(--gold); border-color: var(--gold); color: #121015; }
.chip.rejected { border-color: rgba(232, 93, 74, 0.6); color: var(--red); }
.acts { display: flex; gap: 6px; }
.acts .btn { height: 30px; padding: 0 10px; font-size: 10px; }
.login { max-width: 380px; margin: 12vh auto; display: grid; gap: 16px; padding: 28px; background: var(--paper); border: 1px solid var(--hair); }

@media (max-width: 900px) {
  .side { height: auto; }
  .stage { height: auto; min-height: 0; overflow: visible; }
  .board-frame { --cell: max(8px, min(18px, calc((100vw - 152px) / 37), calc((100svh - 540px) / 27))); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { border-bottom: 1px solid var(--hair); }
  .bar nav { gap: 14px; }
  .bar .count { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .stepper .lbl { display: none; }
  .stage { padding: 20px; min-height: 0; }
  .bar .eyebrow { display: none; }
  .bar .wrap { gap: 14px; }
  .step { grid-template-columns: minmax(0, 1fr); }
  .board-frame { --gap: 1px; --cell: max(7px, min(16px, calc((100vw - 84px) / 27), calc((100svh - 470px) / 37))); padding: 12px; gap: 12px; }
  main.board-page { gap: 18px; padding-top: 20px; padding-bottom: 20px; align-content: start; }
  .board-head .display { font-size: 44px; }
  .board-head .lede { font-size: 15px; }
  .board-stats b { font-size: 20px; }
  .grid999 { grid-template-columns: repeat(27, var(--cell)); }
}
@media (max-height: 780px) and (min-width: 561px) {      /* a short laptop screen: a smaller title, so the board keeps its size */
  main.board-page { gap: 18px; padding-top: 16px; padding-bottom: 16px; }
  .board-head { gap: 8px; }
  .board-head .display { font-size: 48px; }
  .board-head .lede { font-size: 15px; }
  .board-frame { --cell: clamp(8px, calc((100svh - 460px) / 27), 18px); padding: 14px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .stage.enter { animation: none; } }
