/* purrl whitelist: the website's room (onyx and pearl, the same three faces) on a plain ground, the portraits bringing the colour */
:root {
  color-scheme: dark;
  --ground: #0B0B0D; --paper: #111114; --paper-solid: #111114; --paper-2: #18181C;
  --ink: #F3EFE7; --ink-2: rgba(243, 239, 231, 0.76); --muted: rgba(243, 239, 231, 0.5);
  --hair: rgba(243, 239, 231, 0.14); --hair-2: rgba(243, 239, 231, 0.07);
  --accent: #F3EFE7; --accent-ink: #0B0B0D; --glow: rgba(243, 239, 231, 0.55);
  --red: #FF7A68; --green: #8BE3A6;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 16px;
}
*, *::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; -moz-osx-font-smoothing: grayscale; }
main, .login { position: relative; z-index: 1; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.mono { font-family: var(--mono); }
.small { font-size: 14px; color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* bar: the website's header */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(11, 11, 13, 0.94);
       border-bottom: 1px solid var(--hair-2); }
.bar .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 22px; height: auto; display: block; shape-rendering: crispEdges; }
.brand b { font: 600 20px/1 var(--sans); letter-spacing: -.025em; }
.bar .eyebrow { padding-left: 16px; border-left: 1px solid var(--hair); }
.bar nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.bar nav a { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.bar nav a:hover { color: var(--ink); }
.bar nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 7px; }
.count { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count b { color: var(--ink); font-weight: 500; }

/* buttons, fields */
.btn { font: 500 14px/1 var(--sans); letter-spacing: .01em; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
       gap: 9px; height: 44px; padding: 0 20px; color: var(--ink); background: rgba(11, 11, 13, 0.4); border: 1px solid var(--hair);
       border-radius: 999px; cursor: pointer; white-space: nowrap;
       transition: transform .45s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn:hover { border-color: var(--muted); transform: translateY(-1px); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.gold:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn.done { background: rgba(243, 239, 231, 0.08); border-color: var(--hair); color: var(--ink); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.field { display: grid; gap: 7px; }
.field input { width: 100%; height: 48px; padding: 0 16px; font-family: var(--mono); font-size: 14px; color: var(--ink); background: rgba(11, 11, 13, 0.6);
               border: 1px solid var(--hair); border-radius: 12px; transition: border-color .2s; }
.field input::placeholder { color: rgba(243, 239, 231, 0.32); }
.field input:focus { border-color: var(--ink-2); 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; padding: 0 14px; font-size: 12.5px; }
.btn.h40 { height: 40px; }

/* the whitelist page */
.hero { padding: 72px 0 36px; display: grid; gap: 16px; }
.hero .eyebrow::before, .board-head .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--ink); margin-right: 10px; vertical-align: 0; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6.2vw, 92px); line-height: .94; letter-spacing: -.02em; text-wrap: balance; }
.display em, .h2 em { font-style: italic; color: var(--ink-2); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 58ch; }
.meter { display: grid; gap: 9px; max-width: 520px; margin-top: 8px; }
.meter-track { height: 4px; background: var(--hair-2); border-radius: 2px; overflow: hidden; }
.meter-track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.2s var(--ease); }
.layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: start; padding-bottom: 96px; }
.who { display: flex; gap: 12px; align-items: center; }
.who img { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair); }
.who b { font-weight: 600; }
.demo-note { font-size: 13px; color: var(--ink-2); border: 1px dashed var(--hair); border-radius: 10px; padding: 9px 13px; }
:root { --stepper-h: 60px; --stage-h: 600px; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; height: calc(var(--stepper-h) + 12px + var(--stage-h)); }
.panel { padding: 22px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); display: grid; gap: 12px; }
.panel.grow { flex: 1; display: flex; flex-direction: column; align-content: start; }
.panel.grow .btn { margin-top: auto; align-self: flex-start; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.02; }
.refbox { position: relative; overflow: hidden; }
.refbox > :not(.lock) { transition: filter .7s ease, opacity .7s ease; }
.refbox.locked > :not(.lock) { filter: blur(5px); opacity: .4; pointer-events: none; user-select: none; }
.lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 20px; text-align: center;
        background: rgba(11, 11, 13, 0.3); transition: opacity .6s ease, transform .6s ease; }
.lock b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.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='%23F3EFE7' d='M3 0h5v1H3zM2 1h1v4H2zM8 1h1v4H8zM0 5h11v8H0z'/%3E%3Cpath fill='%230B0B0D' 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 var(--glow); border-color: var(--ink); } 100% { box-shadow: 0 0 0 18px rgba(243, 239, 231, 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 12px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); background: rgba(11, 11, 13, 0.6);
             border: 1px solid var(--hair); border-radius: 10px; }
.status { display: grid; gap: 12px; padding: 30px; border: 1px solid var(--hair); background: var(--paper); border-radius: var(--r); }
.status.in { border-color: rgba(243, 239, 231, 0.42); box-shadow: 0 0 0 1px rgba(243, 239, 231, 0.08), 0 30px 80px rgba(0, 0, 0, 0.45); }
.status.no { border-color: rgba(255, 122, 104, 0.5); }
.status .badge { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.status h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: .98; }
.status h2 em { font-style: italic; color: var(--ink-2); }
.card-img { width: 100%; height: auto; display: block; border: 1px solid var(--hair); border-radius: 10px; image-rendering: auto; -webkit-touch-callout: default; }
.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(--green); }
.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 12px;
                  background: var(--paper); border: 1px solid var(--hair); border-radius: 12px; color: var(--muted); cursor: pointer;
                  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: border-color .25s, color .25s, background-color .25s; }
.stepper .num { font-size: 12px; }
.stepper .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .06em; }
.stepper button.done { color: var(--ink-2); }
.stepper button.done .num::after { content: " \2713"; color: var(--green); }
.stepper button.now { border-color: var(--ink-2); color: var(--ink); background: rgba(24, 24, 28, 0.92); }
.stepper button:disabled { opacity: .38; cursor: default; }
.stage { display: grid; gap: 16px; padding: 34px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r);
         height: var(--stage-h); overflow: auto; align-content: start; }
.stage h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 62px); line-height: .98; letter-spacing: -.01em; }
.stage h2 em { font-style: italic; color: var(--ink-2); }
.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 .5s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } }
.stage-nav { display: flex; justify-content: space-between; gap: 10px; }
.quote { margin: 0; display: grid; gap: 6px; padding: 14px 16px; border-left: 2px solid var(--ink-2); background: rgba(11, 11, 13, 0.55); border-radius: 0 10px 10px 0; }
.quote .eyebrow { color: var(--green); }
.quote p { margin: 0; font-size: 15px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }

/* the board of 4444: the website's frame, 88 across and 51 down around the plaque; each approved entry's X picture in its spot */
main.board-page { max-width: 1440px; display: grid; justify-items: center; align-content: center; gap: 26px;
                  min-height: calc(100svh - 69px); padding-top: 30px; padding-bottom: 30px; }
.board-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.board-head .display { font-size: clamp(44px, 4.4vw, 72px); }
.board-head .lede { font-size: 17px; max-width: 72ch; }
.board-frame { --cols: 88; --gap: 1px;
               --cell: max(7px, min(14px, calc((min(100vw, 1440px) - 140px) / 88 - 1px), calc((100svh - 430px) / 51 - 1px)));
               display: grid; gap: 14px; padding: 18px; border-radius: 6px; background: #050506; border: 1px solid rgba(243, 239, 231, 0.12);
               box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); }
.frame-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.grid4444 { display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-auto-rows: var(--cell); gap: var(--gap); }
.grid4444 i { display: block; background: #16161A; position: relative; overflow: hidden; }
.grid4444 i.on { background: var(--accent); }
.grid4444 i img { display: block; width: 100%; height: 100%; object-fit: cover; }
.grid4444 .plaque { grid-column: 39 / span 11; grid-row: 24 / span 4; background: var(--ground); display: flex; align-items: center; justify-content: center;
                    gap: calc(var(--cell) * .6); outline: 1px solid rgba(243, 239, 231, 0.2); outline-offset: -3px; }
.plaque svg { height: calc(var(--cell) * 1.9); width: auto; shape-rendering: crispEdges; }
.plaque b { font: 600 calc(var(--cell) * 1.9) / 1 var(--sans); letter-spacing: -.025em; }
/* the viewer's own spot lights up; the other pictures step back so it shows */
.board-page.has-me #grid i.on:not(.me)::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 13, 0.55); }
.grid4444 i.on.me { z-index: 2; box-shadow: 0 0 0 2px var(--ink), 0 0 14px 4px var(--glow); animation: my-spot 1.8s ease-in-out infinite; overflow: visible; }
@keyframes my-spot { 50% { box-shadow: 0 0 0 2px #FFFFFF, 0 0 26px 9px rgba(243, 239, 231, 0.8); } }
@media (pointer: fine) { .board-page .grid4444, .board-page .grid4444 i { cursor: none; } }
.board-page .grid4444 { touch-action: none; }
/* the board on one canvas: whole-pixel spots, even gaps; the viewer's spot a ring laid over it */
.board-canvas { position: relative; line-height: 0; justify-self: center; }
.board-canvas canvas { display: block; touch-action: none; image-rendering: pixelated; }
@media (pointer: fine) { .board-canvas canvas { cursor: none; } }
.me-ring { position: absolute; z-index: 2; pointer-events: none; box-shadow: 0 0 0 2px var(--ink), 0 0 14px 4px var(--glow);
           animation: my-spot 1.8s ease-in-out infinite; }
.lens-glass canvas { display: block; }
/* 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: #050506; border: 2px solid var(--ink);
              box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 7px rgba(243, 239, 231, 0.1), 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(243, 239, 231, 0.85); border-radius: 50%; }
.lens::after { content: ""; position: absolute; left: calc(50% - 6px); top: 50%; width: 12px; height: 62px; border-radius: 3px;
               background: linear-gradient(90deg, #8E8A83, var(--ink) 45%, #6D6A64); transform-origin: 6px 0; transform: rotate(-45deg) translateY(96px); }
.lens-grid { position: absolute; left: 0; top: 0; }
.lens-grid i::after { display: none; }
.lens-grid i.on.me { animation: none; box-shadow: inset 0 0 0 3px #FFFFFF; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.legend span { display: inline-flex; gap: 8px; align-items: center; }
.legend i { width: 12px; height: 12px; display: inline-block; background: #16161A; border: 1px solid var(--hair); }
.legend i.on { background: var(--accent); border-color: var(--accent); }
.legend i.me-key { background: #FFFFFF; box-shadow: 0 0 8px 2px var(--glow); }
.board-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair-2); 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-2); }
.board-stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.board-stats b { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
                 max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tip { position: fixed; z-index: 9; pointer-events: none; font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 6px;
       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); border-radius: 12px; overflow: hidden; }
.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; font-variant-numeric: tabular-nums; }
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tools .field input { height: 42px; width: 260px; }
.tabs { display: flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; }
.tabs button { height: 40px; padding: 0 15px; 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); border-radius: 12px; 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-solid); 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(243, 239, 231, 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); border-radius: 5px; color: var(--muted); cursor: pointer; 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(--green); color: var(--green); }
/* the dialog for editing an entry's tasks */
dialog.edit { width: min(480px, calc(100vw - 32px)); padding: 28px; background: var(--paper-solid); color: var(--ink); border: 1px solid var(--hair); border-radius: var(--r); }
dialog.edit::backdrop { background: rgba(5, 5, 6, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
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: 36px; line-height: 1; }
dialog.edit h2 em { font-style: italic; color: var(--ink-2); }
.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(--ink); 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; }
.wallet.old { color: var(--red); text-decoration: line-through; }
.chip { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--hair); border-radius: 999px; white-space: nowrap; }
.chip.pending { border-color: var(--ink-2); color: var(--ink); }
.chip.approved { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.chip.rejected { border-color: rgba(255, 122, 104, 0.6); color: var(--red); }
.acts { display: flex; gap: 6px; }
.acts .btn { height: 30px; padding: 0 12px; font-size: 12px; }
.login { max-width: 400px; margin: 12vh auto; display: grid; gap: 16px; padding: 30px; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--r); }

@media (max-width: 900px) {
  .side { height: auto; }
  .stage { height: auto; min-height: 0; overflow: visible; }
  .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; }
  .hero { padding-top: 44px; }
  .stepper .lbl { display: none; }
  .stage { padding: 22px; min-height: 0; }
  .bar .eyebrow { display: none; }
  .bar .wrap { gap: 14px; }
  /* the phone: the same 4444 spots, 44 across and 101 down, without the plaque */
  .board-frame { --cols: 44; --cell: max(5px, calc((100vw - 58px) / 44 - 1px)); padding: 10px; gap: 12px; }
  .grid4444 .plaque { display: none; }
  main.board-page { gap: 18px; padding-top: 22px; padding-bottom: 22px; align-content: start; }
  .board-head .display { font-size: 46px; }
  .board-head .lede { font-size: 15px; }
  .board-stats b { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .btn, .meter-track i { transition: none; } .stage.enter { animation: none; } }
