/* Account pages (/account/*). Loaded after the site's stylesheet and uses its tokens (--ink, --bone, --hazard, ...).
   No animations or flashing; focus rings match the site (--hazard = the site's link colour).
   18 Nov 2026 (site logo v4): the site's /site.css may set --acct-card-top, --acct-me-top, --acct-danger-text and --acct-msg-*-bg
   so cards, messages and the danger button follow its light and dark themes; the fallbacks are the old dark values. */

/* The `hidden` attribute must win over the display rules below (cards are grids). */
.acct [hidden] { display: none !important; }

main.acct { max-width: 980px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.acct-head { display: grid; gap: 12px; }
#dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.acct-head h1 { font-size: clamp(38px, 6vw, 64px); text-shadow: 4px 4px 0 var(--blood-deep); }
.acct a:not(.btn) { color: var(--hazard); }
.acct h2 { font-size: clamp(24px, 3vw, 30px); text-shadow: 2px 2px 0 var(--blood-deep); }
.acct h3 { font-size: 20px; }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.acct-card { background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--acct-card-top, var(--tile)); border-radius: 6px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.acct-narrow { max-width: 620px; width: 100%; }
.acct-card > .btn, .acct-card > .cta { justify-self: start; }
.acct-danger { border-top-color: var(--blood); }
.acct-soon { border-style: dashed; border-top-style: solid; border-top-color: var(--line); background: transparent; }
.acct-tag { font: var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--hazard); border: 1px solid var(--hazard); border-radius: 3px; padding: 5px 9px 4px; width: fit-content; }

.acct-form { display: grid; gap: 10px; min-width: 0; }
.acct-form + .acct-form { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 4px; }
.acct-form label { font-weight: 700; font-size: 15px; }
.acct-form input[type="email"], .acct-form input[type="text"] {
  width: 100%; min-width: 0; font: 500 17px/1.3 var(--body); color: var(--bone); background: var(--ink); border: 2px solid var(--line);
  border-radius: 4px; padding: 11px 12px; }
.acct-form input:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; border-color: var(--hazard); }
.acct-form input:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.acct-form .btn { justify-self: start; }
.acct-code { font-family: var(--mono) !important; letter-spacing: .2em; max-width: 16ch; }
.acct-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-row input { flex: 1 1 220px; }
.acct-check { display: flex; gap: 10px; align-items: flex-start; }
.acct-check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--hazard); }
.acct-check label { font-weight: 700; }
.acct-turnstile { min-height: 65px; }

button.btn { cursor: pointer; }
.btn.danger { border-color: var(--blood); color: var(--acct-danger-text, #ffd9d6); }
.btn.danger:hover { background: rgba(208, 58, 49, .18); }

.acct-msg { border: 1px solid var(--blood); border-left-width: 6px; background: var(--acct-msg-bg, #1c0f0e); border-radius: 4px; padding: 12px 14px; }
.acct-msg.ok { border-color: var(--tile); background: var(--acct-msg-ok-bg, #0e1a16); }
.acct-msg.info { border-color: var(--hazard); background: var(--acct-msg-info-bg, #1b170c); }
.acct-dev { font-family: var(--mono); border: 2px dashed var(--hazard); color: var(--hazard); padding: 10px 14px; border-radius: 4px; }

.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acct-list li { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; background: var(--ink-3); }
.acct-list li > div:first-child { display: grid; gap: 2px; min-width: 0; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.acct-dl dt { font-weight: 700; color: var(--fog); }
.acct-dl dd { margin: 0; overflow-wrap: anywhere; }

.acct-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.acct-secret { font-family: var(--mono); background: var(--ink); border: 1px solid var(--line); padding: 2px 6px; border-radius: 3px; overflow-wrap: anywhere; user-select: all; }
.acct-qr { width: min(240px, 100%); background: #fff; border-radius: 4px; padding: 0; }
.acct-qr svg { display: block; width: 100%; height: auto; }
.acct-recovery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.acct-recovery li { font: 700 16px/1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; background: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; text-align: center; }

@media (max-width: 430px) { .acct-list li { align-items: flex-start; } }

/* v16 link: connected accounts, the reward line, the link code box */
.acct-platform { display: flex !important; gap: 12px; align-items: center; }
.acct-platform img { flex: none; image-rendering: pixelated; }
.acct-platform > div { display: grid; gap: 2px; min-width: 0; }
.acct-reward { border-top-color: var(--hazard); }
.acct-reward-line { font: var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--hazard); }
.acct-linkcode { text-transform: uppercase; font-size: 24px !important; max-width: 12ch; }

/* PROFILE PICTURES (22 Oct 2026): round crops of our own preset pictures; the chosen one ringed in hazard yellow. */
.acct-visually-hidden, .pfp-radio { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.acct-avatar { display: block; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink)); border: 2px solid var(--line); aspect-ratio: 1; }
.acct-me { border-top-color: var(--acct-me-top, var(--hazard)); }
.acct-me-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.acct-avatar-big { width: 128px; height: 128px; border: 3px solid var(--hazard); box-shadow: 0 0 0 4px var(--ink-2), 0 0 0 5px var(--line); flex: none; }
.acct-me-text { display: grid; gap: 4px; min-width: 0; }
.acct-me-text .eyebrow { margin: 0; }
.acct-me-name { margin: 0; font: 700 clamp(26px, 4vw, 34px)/1.1 var(--pixel); overflow-wrap: anywhere; }
.pfp-form { gap: 18px; }
.pfp-set { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 12px; min-width: 0; }
.pfp-set legend { font: 700 18px/1.2 var(--pixel); letter-spacing: .08em; text-transform: uppercase; padding: 0 8px; color: var(--bone); }
.pfp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 96px), 1fr)); gap: 14px 10px; }
.pfp-opt { display: grid; justify-items: center; gap: 6px; cursor: pointer; text-align: center; font-weight: 400 !important; padding: 4px 2px; border-radius: 6px; min-width: 0; }
.pfp-opt .acct-avatar { width: 88px; height: 88px; max-width: 100%; height: auto; }
.pfp-name { font: 700 12px/1.2 var(--body); letter-spacing: .04em; color: var(--fog); overflow-wrap: anywhere; }
.pfp-opt:hover .acct-avatar { border-color: var(--fog); }
.pfp-radio:focus-visible + .acct-avatar { outline: 3px solid var(--hazard); outline-offset: 3px; }
.pfp-radio:checked + .acct-avatar { border-color: var(--hazard); box-shadow: 0 0 0 3px var(--ink-2), 0 0 0 6px var(--hazard); }
.pfp-radio:checked ~ .pfp-name { color: var(--hazard); }
.pfp-radio:disabled + .acct-avatar { opacity: .6; }
.pfp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#pfp-status:empty { display: none; }

/* the picture in the site header's Account link (account pages only: the rest of the site runs no script) */
.nav .links a.has-avatar { display: inline-flex; align-items: center; gap: 8px; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hazard); background: var(--ink-3); flex: none; }
@media (max-width: 430px) { .acct-avatar-big { width: 104px; height: 104px; } .pfp-set { padding: 12px 8px; } .pfp-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 78px), 1fr)); gap: 12px 4px; } .pfp-opt .acct-avatar { width: 68px; height: 68px; } .pfp-name { font-size: 11px; } }
/* phones: the header has no room for the picture next to "Account" (the page shows it big anyway) */
@media (max-width: 430px) { .nav-avatar { display: none; } .nav .links a.has-avatar { display: inline; } }

/* BLOOD BANANA v2 (BB-NET v2): /account/blood-banana/ (custom clothing) + /account/moderation/ (staff). Pixel textures stay crisp. */
.bb-tex { image-rendering: pixelated; image-rendering: crisp-edges; background: repeating-conic-gradient(var(--ink-3) 0 25%, var(--ink) 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); border-radius: 4px; max-width: 100%; height: auto; }
.bb-garments { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.bb-card .bb-tex { width: 256px; }
.bb-file { max-width: 100%; }
.bb-state { font: var(--label); letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 3px; padding: 2px 6px; }
.bb-live { color: var(--tile); } .bb-checking, .bb-hidden { color: var(--hazard); } .bb-rejected, .bb-removed { color: var(--blood); } .bb-old { color: var(--fog); }
main.acct:has(.mod-app) { max-width: 1280px; }
.mod-who { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.mod-scope { color: var(--fog); border-color: var(--fog); }
.mod-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-tabs .btn[aria-selected="true"] { outline: 2px solid var(--hazard); outline-offset: 2px; }
.mod-panel { display: grid; gap: 14px; }
.mod-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.mod-filter select, .mod-actions select, .mod-actions input, .mod-actions textarea, #r-form select, #r-form input { font: 500 15px/1.3 var(--body); color: var(--bone); background: var(--ink); border: 2px solid var(--line); border-radius: 4px; padding: 8px 10px; max-width: 100%; }
.mod-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .mod-split { grid-template-columns: minmax(0, 1fr); } }
.mod-list li { align-items: center; }
.mod-case.p3, .mod-case.p2 { border-left: 4px solid var(--blood); }
.mod-case.p1 { border-left: 4px solid var(--hazard); }
.mod-detail { display: grid; gap: 12px; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.mod-detail:empty { display: none; }
.mod-tex { width: min(512px, 100%); }
.mod-thumb { width: 64px; height: 64px; flex: none; }
.mod-gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.mod-fig { margin: 0; display: grid; gap: 4px; width: 140px; }
.mod-fig .mod-thumb { width: 128px; height: 128px; }
.mod-badge { padding: 2px 7px 1px; font-size: 11px; }
.mod-bad { color: var(--blood); border-color: var(--blood); }
.mod-ok { color: var(--tile); border-color: var(--tile); }
.mod-mini { margin: 0; padding-left: 18px; display: grid; gap: 6px; overflow-wrap: anywhere; }
.mod-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.mod-actions textarea { width: 100%; resize: vertical; }
.mod-inline { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mod-mins { width: 8ch; }
.mod-link { background: none; border: 0; padding: 0; color: var(--hazard); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.mod-tablewrap { overflow-x: auto; }
.mod-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.mod-table th, .mod-table td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.mod-detailcell { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; max-width: 40ch; }
