/* dracoo. in the dotted family's look: paper (or near-black) with one loud red (#ed1c24), Outfit
   (Rizumu's font), spaced-out JetBrains Mono // labels, dotted leaders, dashed rules, corner marks
   and halftone dots. Hatching only ever means "not here yet". */

:root {
  color-scheme: light;
  --paper: #f1f1ee;
  --paper-2: #e7e7e3;
  --panel: #fff;
  --well: #f1f1ee;
  --line: #dadad5;
  --line-2: #c3c3bd;
  --ink: #191919;
  --ink-2: #35373c;
  --soft: #4a4a47;
  --muted: #7f7f79;
  --muted-2: #a6a6a0;
  --block: #191919;
  --on-block: #fff;
  --grid: rgba(25, 25, 25, .045);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144'%3E%3Cpath d='M72 65v14M65 72h14' stroke='%23191919' stroke-opacity='.3' stroke-width='1.2'/%3E%3C/svg%3E");
  --hatch: repeating-linear-gradient(-45deg, rgba(25, 25, 25, .07) 0 1.5px, transparent 1.5px 9px);
  --halftone: rgba(25, 25, 25, .42);
  --reticle: rgba(25, 25, 25, .12);
  --reticle-2: rgba(25, 25, 25, .16);
  --backdrop: rgba(241, 241, 238, .7);
  --shadow: rgba(0, 0, 0, .45);

  --red: #ed1c24;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

/* the dark look, after Rizumu's black and red */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0d0f;
  --paper-2: #1c1c20;
  --panel: #141417;
  --well: #1b1b1f;
  --line: #27272c;
  --line-2: #3a3a41;
  --ink: #ecebe8;
  --ink-2: #c6c6c2;
  --soft: #a3a39f;
  --muted: #8c8c92;
  --muted-2: #606068;
  --block: #222227;
  --on-block: #fff;
  --grid: rgba(255, 255, 255, .035);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144'%3E%3Cpath d='M72 65v14M65 72h14' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.2'/%3E%3C/svg%3E");
  --hatch: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .055) 0 1.5px, transparent 1.5px 9px);
  --halftone: rgba(255, 255, 255, .26);
  --reticle: rgba(255, 255, 255, .1);
  --reticle-2: rgba(255, 255, 255, .13);
  --backdrop: rgba(8, 8, 10, .72);
  --shadow: rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  overflow: hidden;
  color: var(--ink);
  font: 400 13px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    var(--plus) -1px -1px / 144px 144px,
    linear-gradient(var(--grid) 1px, transparent 1px) -1px -1px / 72px 72px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) -1px -1px / 72px 72px,
    var(--paper);
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
img { display: block; }
.dim { color: var(--muted); }
.red { color: var(--red); }
.ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, .45); } 50% { box-shadow: 0 0 0 6px rgba(237, 28, 36, 0); } }
@keyframes eq { from { height: 2px; } to { height: 10px; } }

/* ---- the frame around everything ---- */
.deco { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.crop { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line-2); }
.crop.tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop.tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop.bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop.br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.side-txt {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font: 700 10px/1 var(--mono); letter-spacing: .34em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap;
}
.side-txt b { color: var(--red); }

/* ---- the stage: laid out at 1360 x 770, scaled to fit by index.html's script ---- */
#stage {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 1360px; height: 770px;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 264px;
  grid-template-rows: 184px minmax(0, 1fr) 12px;
  grid-template-areas: "server banner side" "board board side" "foot foot foot";
  gap: 14px;
}
#stage > * { animation: rise .6s var(--ease) both; }
#server { animation-delay: .06s; }
#side { animation-delay: .12s; }
#board { animation-delay: .18s; }
#foot { animation-delay: .3s; }

/* panels with the dotted family's cut corner */
.box {
  position: relative;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.box::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; pointer-events: none;
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--line) calc(50% - 1px), var(--line) calc(50% + 1px), transparent calc(50% + 1px));
}

/* ---- shared bits ---- */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 12px; margin-bottom: 11px; }
.k { font: 700 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.k i { margin-right: .6em; font-style: normal; letter-spacing: 0; color: var(--red); }
.meta { font: 700 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meta.red { color: var(--red); }
.btn-k { transition: color .15s ease; }
.btn-k:hover { color: var(--red); }
.btn-k.red:hover { color: var(--ink); }
.arr { display: inline-block; transition: transform .18s var(--ease); }
.btn-k:hover .arr, .btn:hover .arr { transform: translateX(3px); }

.live, .chip-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 3px 6px;
  background: var(--red); color: #fff;
  font: 700 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.live::before, .chip-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }

/* key .......... value, the dotted leader sitting on the baseline like full stops */
.row { display: flex; align-items: baseline; gap: 8px; min-width: 0; font: 500 11px/1.8 var(--mono); }
.row .rk { flex: none; color: var(--muted); }
.row .dots { flex: 1; min-width: 12px; height: 2px; background: radial-gradient(circle, var(--line-2) .9px, transparent 1.15px) 0 0 / 5px 2px repeat-x; }
.row .rv { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.row .rv a { transition: color .15s ease; }
.row .rv a:hover { color: var(--red); }
.bar { height: 3px; margin: 0 0 5px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--red); transition: width .6s var(--ease); }

/* "nothing here": a dashed slot with an x in it */
.none { display: flex; align-items: center; gap: 14px; min-height: 68px; font: 500 11px/1.5 var(--mono); color: var(--muted); }
.none::before {
  content: "×"; flex: none; display: grid; place-items: center; width: 68px; height: 68px;
  border: 1px dashed var(--line-2); color: var(--muted-2); font: 400 22px/1 var(--mono);
}
.none.slim { min-height: 0; }
.none.slim::before { display: none; }

/* ---- server (top left) ---- */
#server { grid-area: server; display: flex; flex-direction: column; padding: 15px 16px 14px; }
.sv-body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
#server.soon .sv-body { margin: -4px -16px -14px; padding: 4px 16px 14px; background: var(--hatch); }
#server.soon .sv-body .row, #server.soon .sv-body .bar { opacity: .5; }
.stamp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 13px 8px; background: var(--panel);
  box-shadow: inset 0 0 0 1.5px var(--red), 4px 4px 0 rgba(237, 28, 36, .14);
  white-space: nowrap;
}
.stamp b { font: 800 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.stamp span { font: 600 8.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---- banner: the name, sitting right on the paper ---- */
#banner { grid-area: banner; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 2px 0 0 2px; overflow: hidden; }
#banner .fig { position: absolute; top: 0; right: 0; bottom: 0; width: 330px; pointer-events: none; }
.disc {
  position: absolute; left: 76px; top: 4px; width: 186px; height: 186px; border-radius: 50%;
  background: radial-gradient(circle, var(--halftone) 1.3px, transparent 1.7px) 0 0 / 9px 9px;
  -webkit-mask-image: linear-gradient(45deg, #000 8%, rgba(0, 0, 0, .35) 45%, transparent 78%);
  mask-image: linear-gradient(45deg, #000 8%, rgba(0, 0, 0, .35) 45%, transparent 78%);
}
.reticle { position: absolute; left: 59px; top: -13px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid var(--reticle); }
.reticle::before, .reticle::after { content: ""; position: absolute; }
.reticle::before { left: 50%; top: -8px; bottom: -8px; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--red) 0 16px, transparent 16px calc(100% - 16px), var(--red) calc(100% - 16px)); }
.reticle::after { top: 50%; left: -8px; right: -8px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, var(--red) 0 16px, transparent 16px calc(100% - 16px), var(--red) calc(100% - 16px)); }
.reticle b { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed var(--reticle-2); }
.kick { position: relative; display: flex; align-items: center; gap: 10px; }
.sq { flex: none; width: 8px; height: 8px; background: var(--red); }
.theme { display: inline-flex; margin: 0 2px 0 auto; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.theme button { padding: 4px 8px 3px; font: 700 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .15s ease; }
.theme button:hover { color: var(--red); }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mark { position: relative; margin: 9px 0 0 -4px; font: 800 90px/.74 var(--sans); letter-spacing: -.045em; color: var(--ink); }
.mark .dot { display: inline-block; width: .16em; height: .16em; margin-left: .06em; background: var(--red); }
.rule { position: relative; display: flex; align-items: center; gap: 10px; width: 300px; margin-top: 12px; }
.rule::before { content: ""; flex: none; width: 34%; height: 4px; background: var(--red); }
.rule i { flex: 1; height: 3px; background: radial-gradient(circle, var(--line-2) 1.1px, transparent 1.5px) 0 50% / 7px 3px repeat-x; }
.rule::after { content: ""; flex: none; width: 8px; height: 8px; border: 1.5px solid var(--line-2); transform: rotate(45deg); }
.tagline { position: relative; margin: 9px 0 0; max-width: 48ch; font-size: 14px; font-weight: 450; color: var(--soft); }

/* the "now" strip: the one-line answer to "what's he doing" */
.now {
  position: relative; display: flex; align-items: stretch; height: 30px; margin-top: auto;
  background: var(--block); color: var(--on-block); clip-path: var(--cut);
}
.now-l {
  flex: none; display: flex; align-items: center; gap: 7px; padding: 0 12px 0 11px; background: var(--red); color: #fff;
  font: 800 10px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase;
}
.now-l::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
.now-t { flex: 1; min-width: 0; padding: 0 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/30px var(--sans); }
.now-t .sub { font-weight: 450; color: rgba(255, 255, 255, .55); }
.now-r { flex: none; display: flex; align-items: center; padding: 0 20px 0 6px; font: 700 10.5px/1 var(--mono); letter-spacing: .08em; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.now-r:empty { display: none; }

/* ---- sidebar ---- */
#side { grid-area: side; display: flex; flex-direction: column; padding-top: 16px; }
.me { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 18px 16px; }
.av { position: relative; flex: none; width: 160px; height: 160px; display: grid; place-items: center; }
.av .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); }
.av .ring::before, .av .ring::after { content: ""; position: absolute; }
.av .ring::before { left: 50%; top: -6px; bottom: -6px; width: 2px; transform: translateX(-50%); background: linear-gradient(var(--red) 0 11px, transparent 11px calc(100% - 11px), var(--red) calc(100% - 11px)); }
.av .ring::after { top: 50%; left: -6px; right: -6px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, var(--red) 0 11px, transparent 11px calc(100% - 11px), var(--red) calc(100% - 11px)); }
.av img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.st { position: absolute; right: 26px; bottom: 26px; width: 19px; height: 19px; border-radius: 50%; border: 3px solid var(--panel); background: var(--muted-2); }
.st.unknown { display: none; }
.st.online { background: var(--red); animation: pulse 2.2s ease-in-out infinite; }
.st.idle { background: linear-gradient(90deg, var(--red) 50%, var(--panel) 50%); box-shadow: 0 0 0 1.5px var(--red) inset; }
.st.dnd { background: var(--ink); }
.st.offline { background: var(--panel); box-shadow: 0 0 0 2px var(--muted-2) inset; }
.who { text-align: center; }
.who b { display: block; font: 800 26px/1 var(--sans); letter-spacing: -.03em; }
.who span { display: block; margin-top: 7px; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.sec { padding: 13px 18px 12px; border-top: 1px dashed var(--line-2); }
.sec > .k { margin-bottom: 10px; }
.clock { font: 700 38px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock small { margin-left: 3px; font-size: .5em; font-weight: 700; color: var(--muted-2); }
.date { margin-top: 8px; font: 700 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status { display: flex; align-items: center; gap: 9px; font: 600 13px/1.3 var(--sans); }
.pip { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); }
.pip.online { background: var(--red); animation: pulse 2.2s ease-in-out infinite; }
.pip.idle { background: linear-gradient(90deg, var(--red) 50%, transparent 50%); box-shadow: 0 0 0 1.5px var(--red) inset; }
.pip.dnd { background: var(--ink); }
.pip.offline { background: transparent; box-shadow: 0 0 0 1.5px var(--muted-2) inset; }
.custom { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.custom:empty { display: none; }
.custom img { display: inline-block; width: 15px; height: 15px; margin-right: 5px; vertical-align: -3px; }
.status .for { color: var(--muted); font-weight: 450; }
.cur { display: flex; align-items: baseline; gap: 10px; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); font: 600 11px/1.4 var(--mono); }
.cur:empty { display: none; }
.cur b { flex: none; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
/* today, like imouto's: time on each thing (bars against the longest), then the counts */
.today .bar { margin-bottom: 3px; }
.td-none { font: 500 11px/1.6 var(--mono); color: var(--muted); }
.td-counts { margin-top: 7px; padding-top: 5px; border-top: 1px dashed var(--line); }
.td-counts:empty { display: none; }
.visits {
  position: relative; margin: auto 14px 14px; padding: 14px 16px 13px; overflow: hidden;
  background: var(--block); color: var(--on-block);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.visits::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .22) 1.2px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask-image: linear-gradient(225deg, #000 0%, rgba(0, 0, 0, .4) 38%, transparent 66%);
  mask-image: linear-gradient(225deg, #000 0%, rgba(0, 0, 0, .4) 38%, transparent 66%);
}
.visits b { position: relative; display: block; font: 700 34px/1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.visits span { position: relative; display: block; margin-top: 8px; font: 700 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.visits span i { margin-right: 4px; font-style: normal; color: var(--red); }

/* ---- the board: three columns of cells ---- */
#board { grid-area: board; display: flex; }
#board .col { display: flex; flex-direction: column; min-width: 0; border-left: 1px dashed var(--line-2); }
#board .col:first-child { border-left: 0; }
.c1 { flex: none; width: 430px; }
.c2 { flex: none; width: 300px; }
.c3 { flex: 1; }
.cell { min-height: 0; padding: 15px 18px 14px; border-top: 1px dashed var(--line-2); }
.col > .cell:first-child { border-top: 0; }
.cell.grow { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* playing */
.act { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 15px; align-items: center; }
.art { position: relative; width: 68px; height: 68px; }
.art .big { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); clip-path: var(--cut); }
.art .ph { display: grid; place-items: center; background: var(--block); color: var(--on-block); font: 800 28px/1 var(--sans); text-transform: uppercase; }
.art .small { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--panel); background: var(--paper-2); object-fit: cover; }
.act .verb { font: 700 9px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.act .nm { margin-top: 5px; font: 700 18px/1.15 var(--sans); letter-spacing: -.01em; }
.act a.nm:hover { color: var(--red); }
.act .d1 { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }
.act .d2 { font-size: 12px; color: var(--muted); }

/* listening: the song, then the ones before it */
#listening .none { min-height: 52px; }
#listening .none::before { width: 52px; height: 52px; font-size: 18px; }
.song { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 15px; align-items: center; }
.song .cover { width: 52px; height: 52px; object-fit: cover; background: var(--paper-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.song .ph { display: grid; place-items: center; background: var(--block); color: var(--on-block); font: 700 18px/1 var(--mono); }
.song .t { display: block; font: 700 14px/1.25 var(--sans); }
.song a.t:hover { color: var(--red); }
.song .a { margin-top: 1px; font-size: 12px; color: var(--muted); }
.song .when { margin-top: 6px; font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.prog { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin-top: 7px; font: 600 10px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.prog .bar { margin: 0; }
.prog .bar i { transition: none; }
.prog.paused .bar i { background: var(--muted-2); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; margin-right: 7px; vertical-align: -1px; }
.eq i { width: 2px; height: 4px; background: var(--red); animation: eq .8s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.45s; }
.eq i:nth-child(3) { animation-delay: -.2s; }
.eq i:nth-child(4) { animation-delay: -.65s; }
.tracks { margin-top: 11px; }
.tracks:empty { display: none; }
.trk { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 3px 0; border-top: 1px dashed var(--line); font-size: 12.5px; }
.trk img, .trk > i { width: 18px; height: 18px; object-fit: cover; background: var(--paper-2); }
.trk .t { transition: color .15s ease; }
a.trk:hover .t { color: var(--red); }
.trk .ago { font: 500 10px/1 var(--mono); color: var(--muted-2); }

/* guestbook */
.gb-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.gb-ln {
  display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  width: 100%; padding: 4px 0 3px; border-bottom: 1px dashed var(--line);
}
.gb-ln .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px/1.5 var(--mono); color: var(--red); }
.gb-ln .m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; transition: color .15s ease; }
.gb-ln .at { font: 500 10px/1 var(--mono); color: var(--muted-2); white-space: nowrap; }
.gb-ln:hover .m { color: var(--red); }
.gb-empty { padding: 5px 0; font: 500 11px/1.5 var(--mono); color: var(--muted); }

/* rizumu */
.rz { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rz-id { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rz-id img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--paper-2); }
.rz-nm { display: inline-flex; align-items: center; gap: 7px; font: 800 23px/1 var(--sans); letter-spacing: -.02em; transition: color .15s ease; }
.rz-nm:hover { color: var(--red); }
.tag { padding: 3px 5px 2px; background: var(--block); color: var(--on-block); font: 700 9px/1 var(--mono); letter-spacing: .1em; }
.rz-sub { margin-top: 6px; font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rz-rank { text-align: right; }
.rz-rank b { display: block; font: 800 28px/1 var(--sans); letter-spacing: -.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.rz-rank span { display: block; margin-top: 5px; font: 700 8.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rz-doing { margin-top: 12px; padding: 6px 9px; background: var(--well); box-shadow: inset 2px 0 0 var(--red); font: 600 11px/1.4 var(--mono); }
.tile span, .rp-k { display: block; font: 700 8.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* the RP graph: a red line over halftone dots, and what a day was when pointed at */
.rp { margin-top: 14px; padding: 9px 12px 8px; background: var(--well); box-shadow: inset 2px 0 0 var(--red); }
.rp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rp-read { font: 700 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rp-v { display: block; margin-top: 6px; font: 700 24px/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rp-chart { position: relative; height: 46px; margin-top: 8px; cursor: crosshair; touch-action: pan-y; }
.rp-chart svg { display: block; overflow: visible; }
.rp-chart .area { fill: url(#rp-dots); }
.rp-chart .halftone { fill: var(--red); opacity: .38; }
.rp-chart .base { stroke: var(--line-2); stroke-dasharray: 2 3; }
.rp-chart .ln { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rp-chart .end { fill: var(--red); }
.rp-chart .xline { stroke: var(--ink); stroke-dasharray: 2 2; opacity: 0; }
.rp-chart .xpt { fill: var(--panel); stroke: var(--red); stroke-width: 2; opacity: 0; }
.rp-chart.hover .xline, .rp-chart.hover .xpt { opacity: 1; }
.rp-axis { display: flex; justify-content: space-between; margin-top: 6px; font: 600 8.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 9px; }
.tile { padding: 8px 10px 9px 12px; background: var(--well); box-shadow: inset 2px 0 0 var(--red); }
.tile b { display: block; margin-top: 6px; font: 700 20px/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tile .bar { margin: 6px 0 0; }
.plays { margin-top: 13px; }
.plays > .k { margin-bottom: 7px; }
.pl {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto 24px; gap: 7px; align-items: baseline;
  padding: 3px 0 2px; border-bottom: 1px dashed var(--line); font-size: 12px;
}
.pl .g { font: 800 14px/1 var(--sans); color: var(--ink-2); }
.pl .g-SS { color: var(--red); }
.pl .g-S { color: var(--ink); }
.pl .g-B, .pl .g-C, .pl .g-D, .pl .g-F { color: var(--muted-2); }
.pl a:hover { color: var(--red); }
.pl .mods { padding: 1px 4px; box-shadow: inset 0 0 0 1px var(--line-2); font: 700 8.5px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.pl .mods:empty { padding: 0; box-shadow: none; }
.pl .acc { font: 700 10.5px/1 var(--mono); font-variant-numeric: tabular-nums; }
.pl .ago { font: 500 10px/1 var(--mono); color: var(--muted-2); text-align: right; }

/* about */
#about-body h2 { margin: 0 0 7px; font: 700 20px/1.1 var(--sans); letter-spacing: -.02em; }
#about-body p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-2); }
/* the links, in the about box's header (under it, on a narrow phone): dottedstrap's menu, red dots between */
#about .hd { flex-wrap: wrap; row-gap: 9px; }
.hd-links { display: flex; align-items: center; min-width: 0; font: 700 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hd-links a { color: var(--muted); transition: color .15s ease; }
.hd-links a:hover { color: var(--red); }
.hd-links a + a::before { content: "•"; padding: 0 6px; color: var(--red); }

/* anime: cover, title, how far along */
.an-list { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.an { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 11px; align-items: center; }
.an img, .an > i { width: 24px; height: 34px; object-fit: cover; background: var(--paper-2); }
.an-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.an-top .t { font-size: 12.5px; transition: color .15s ease; }
.an:hover .t { color: var(--red); }
.an-tag { flex: none; font: 600 9.5px/1 var(--mono); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.an.completed .an-tag { color: var(--ink); }
.an .bar { margin: 6px 0 0; }
.an.on_hold .bar i, .an.dropped .bar i { background: var(--muted-2); }

/* things i made */
.projects { display: flex; flex-direction: column; gap: 8px; }
.proj { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; padding: 7px; background: var(--well); }
.proj .th { width: 84px; height: 54px; object-fit: cover; background: var(--paper-2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); filter: grayscale(.4); transition: filter .2s ease; }
.proj:hover .th { filter: none; }
:root[data-theme="dark"] .proj .th { filter: grayscale(.4) brightness(.78); }
:root[data-theme="dark"] .proj:hover .th { filter: none; }
.proj .nm { display: flex; align-items: center; gap: 8px; font: 700 15px/1 var(--sans); letter-spacing: -.01em; }
.proj .ix { font: 700 9px/1 var(--mono); letter-spacing: .12em; color: var(--red); }
.proj .nm .arr { margin-left: auto; color: var(--red); font: 700 13px/1 var(--mono); }
.proj:hover .nm .arr { transform: translate(2px, -2px); }
.proj .ds { margin-top: 5px; font-size: 11.5px; color: var(--ink-2); }
.proj .lv { margin-top: 5px; font: 600 9.5px/1.3 var(--mono); color: var(--muted); }

/* corner brackets when pointed at, drawn just outside the box */
.proj::after, .pop::before {
  content: ""; position: absolute; pointer-events: none; --c: var(--red); --b: 2px; --len: 12px;
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / var(--len) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / var(--b) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--len) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / var(--b) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--len) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / var(--b) var(--len) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--len) var(--b) no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / var(--b) var(--len) no-repeat;
}
.proj::after { inset: -5px; opacity: 0; transform: scale(1.03); transition: opacity .2s ease, transform .26s var(--ease); }
.proj:hover::after, .proj:focus-visible::after { opacity: 1; transform: scale(1); }

/* ---- footer ---- */
#foot {
  grid-area: foot; display: flex; align-items: center; justify-content: flex-end; padding: 0 2px;
  font: 700 9px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
}
#sync { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
#sync::before { content: ""; width: 6px; height: 6px; background: var(--muted-2); }
#sync.ok::before { background: var(--red); }

/* ---- the guestbook's pop-up (a native <dialog>, so Esc and focus just work) ---- */
.pop {
  position: fixed; width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 48px); margin: auto; padding: 18px 20px 24px;
  border: 0; overflow: visible; background: var(--panel); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -28px var(--shadow);
}
.pop[open] { animation: rise .28s var(--ease) both; }
.pop::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pop::before { inset: 6px; }
.pop .hd { margin-bottom: 15px; }
.pop .x { padding: 0 2px; font: 400 20px/1 var(--mono); color: var(--muted); transition: color .15s ease; }
.pop .x:hover { color: var(--red); }
.pop .who { margin-bottom: 9px; font: 700 12px/1 var(--mono); color: var(--red); overflow-wrap: anywhere; }
.pop .msg { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.pop .when { margin-top: 14px; font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); text-align: right; }
.pop .back { margin-bottom: 12px; font: 700 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pop .back:hover { color: var(--red); }
.hist { min-height: 40px; }
.hist .gb-ln:last-child { border-bottom: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font: 700 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager button { color: var(--red); letter-spacing: inherit; }
.pager button:hover { color: var(--ink); }
.pager button:disabled { visibility: hidden; }
.pager:empty { display: none; }
form.sign label { display: block; margin-bottom: 12px; }
form.sign label > span { display: block; margin-bottom: 6px; font: 700 9.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
form.sign input, form.sign textarea {
  display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 0; outline: none; resize: none;
  background: var(--well); box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); font: 13px/1.45 var(--sans);
}
form.sign input:focus, form.sign textarea:focus { box-shadow: inset 0 0 0 1.5px var(--red); }
form.sign input::placeholder { color: var(--muted-2); }
form.sign .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.end { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.say { flex: 1; font: 600 11px/1.3 var(--mono); color: var(--red); }
.count { font: 500 10px/1 var(--mono); color: var(--muted-2); font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 18px;
  background: var(--red); color: #fff; clip-path: var(--cut);
  font: 700 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  transition: background-color .18s ease;
}
.btn:hover { background: var(--block); }
.btn:disabled { opacity: .5; cursor: default; }

/* ---- small screens: the same boxes in one column ---- */
html.flow, html.flow body { height: auto; }
html.flow body { overflow: auto; }
html.flow .side-txt { display: none; }
html.flow #stage {
  position: relative; left: auto; top: auto; transform: none;
  width: auto; height: auto; max-width: 620px; margin: 0 auto; padding: 30px 16px 34px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  grid-template-areas: "banner" "side" "board" "server" "foot";
}
html.flow #banner { padding-top: 0; }
html.flow #banner .fig { right: -90px; opacity: .7; }
html.flow .mark { font-size: clamp(60px, 19vw, 90px); }
html.flow .now { margin-top: 20px; }
html.flow #side { padding-top: 0; }
html.flow .me { flex-direction: row; gap: 16px; padding: 16px 18px; }
html.flow .av { width: 104px; height: 104px; }
html.flow .av img { width: 84px; height: 84px; }
html.flow .st { right: 13px; bottom: 13px; }
html.flow .who { text-align: left; }
html.flow .visits { margin-top: 4px; }
html.flow #board { flex-direction: column; }
html.flow #board .col { width: auto; border-left: 0; }
html.flow #board .col + .col { border-top: 1px dashed var(--line-2); }
html.flow .cell.grow { flex: none; overflow: visible; }
html.flow .gb-list, html.flow .an-list { overflow: visible; }
html.flow #server { min-height: 184px; }
@media (max-width: 440px) {
  .kick > .k { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
