/* Base layout and components. Colours, fonts and ornaments come from the page's theme tokens and its kit (kits.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55;
  --radius: 6px; --radius-lg: 10px; --wrap: 1240px; --gut: 24px; --d-case: none; --d-track: 0; --l-case: uppercase; --l-track: .12em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.prose a, a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; margin: 0; text-transform: var(--d-case); letter-spacing: var(--d-track); }
h1 { font-size: clamp(30px, 4.2vw, 50px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.ic { width: 18px; height: 18px; flex: none; }
.mark { width: 26px; height: 26px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); }
.muted { color: var(--mute); }
.soft { color: var(--ink2); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrapit { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section { margin: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head a.more { font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.section-head a.more:hover { color: var(--accent); }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 21px; letter-spacing: .02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .mark { color: var(--accent); }
.switch { position: relative; }
.switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--ink2); white-space: nowrap; }
.switch summary::-webkit-details-marker { display: none; }
.switch[open] summary, .switch summary:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.sw-panel { position: absolute; top: calc(100% + 8px); left: 0; width: 340px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.sw-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--radius); color: var(--ink2); font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; }
.sw-item:hover, .sw-item.on { background: var(--glow); color: var(--ink); }
.sw-dot { width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 35%, var(--a) 0 32%, var(--b) 34% 100%); box-shadow: 0 0 0 1px var(--line); }
.sw-dot.hub { --a: var(--accent); --b: var(--bg); }
.find { flex: 1; max-width: 440px; position: relative; display: flex; align-items: center; }
.find .ic { position: absolute; left: 12px; color: var(--mute); z-index: 1; pointer-events: none; } /* over the box's own background */
.find input { width: 100%; height: 40px; padding: 0 14px 0 40px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); outline: none; }
.find input:focus { border-color: var(--accent); }
/* the header search's "/" key hint sits inside the box: the words stop before it, with … when they don't fit (Seth, 8 Nov) */
.find:has(kbd) input { padding-right: 42px; text-overflow: ellipsis; }
.mainnav { display: flex; gap: 20px; font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--ink2); }
.userbox { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); background: none; border: 1px solid transparent; cursor: pointer; color: var(--ink2); }
.iconbtn:hover { color: var(--ink); border-color: var(--line); }
.iconbtn .ic { width: 20px; height: 20px; }
.pip { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 600 10px/17px var(--f-label); text-align: center; }
.themebtn .moon { display: none; }
:root[data-theme="light"] .themebtn .sun { display: none; } :root[data-theme="light"] .themebtn .moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .themebtn .sun { display: none; } :root:not([data-theme="dark"]) .themebtn .moon { display: block; } }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; }
.me summary::-webkit-details-marker { display: none; }
.me-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.me-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.me-head span { color: var(--mute); font-size: 13px; }
.me-panel a, .me-panel button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius); background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink2); font-size: 15px; }
.me-panel a:hover, .me-panel button:hover { background: var(--glow); color: var(--ink); }
.av { --h: 30; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: hsl(var(--h) 28% 30%); color: #fff; font: 600 14px var(--f-label); box-shadow: 0 0 0 1px var(--line); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.sm { width: 34px; height: 34px; font-size: 12px; }
.av.lg { width: 96px; height: 96px; font-size: 30px; }
.av.xs { width: 24px; height: 24px; font-size: 10px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-family: var(--f-label); font-size: 14px; font-weight: 600; letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.on { background: var(--glow); color: var(--accent); border-color: var(--accent); }
.btn.big { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled], .btn.off { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink2); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.linkbtn:hover { color: var(--accent); }

/* ---------- panels and the kit's frame */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.panel.tight { padding: 16px; }
.orn { display: flex; align-items: center; gap: 10px; margin: 26px 0; color: var(--line); }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.orn i { width: 8px; height: 8px; border: 1px solid var(--mute); transform: rotate(45deg); }

/* ---------- tags and badges */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); font-family: var(--f-label); font-size: 12px; letter-spacing: .04em; color: var(--ink2); white-space: nowrap; }
.tag.accent { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); }
.tag.sample { border-style: dashed; color: var(--mute); }
.tag .ic { width: 13px; height: 13px; }
.tag.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }

/* ---------- mod cards */
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr)); gap: 22px; }
.modcard { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.modcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); color: inherit; }
.modcard .cover { aspect-ratio: 16 / 9; background: var(--bg2) center / cover no-repeat; position: relative; }
.modcard .cover .flags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.modcard .cover .flags .tag { background: rgba(0,0,0,.62); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(4px); }
.modcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.modcard .name { font-family: var(--f-display); font-size: 19px; line-height: 1.2; text-transform: var(--d-case); letter-spacing: var(--d-track); }
.modcard .by { font-size: 13px; color: var(--mute); }
.modcard .sum { font-size: 14px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.modcard .nums { margin-top: auto; padding-top: 10px; display: flex; gap: 14px; font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); }
.modcard .nums span { display: inline-flex; align-items: center; gap: 5px; }
.modcard .nums .ic { width: 15px; height: 15px; }
.modcard .nums .sc { margin-left: auto; color: var(--ink); font-family: var(--f-label); }

.modrow { display: grid; grid-template-columns: 148px 1fr auto; gap: 16px; align-items: center; padding: 12px; border-radius: var(--radius-lg); border: 1px solid transparent; }
.modrow:hover { background: var(--glow); border-color: var(--line); color: inherit; }
.modrow .thumb { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--bg2) center / cover; }
.modrow .name { font-family: var(--f-display); font-size: 18px; text-transform: var(--d-case); letter-spacing: var(--d-track); }
.modrow .right { text-align: right; font-size: 13px; color: var(--mute); }
.rank { font-family: var(--f-display); font-size: 28px; color: var(--mute); width: 34px; text-align: center; }

/* ---------- score meter: ten notches */
.score { display: inline-flex; align-items: center; gap: 8px; }
.score .n { font-family: var(--f-display); font-size: 22px; line-height: 1; }
.notches { display: inline-flex; gap: 2px; }
.notches i { width: 6px; height: 14px; background: var(--line); border-radius: 1px; }
.notches i.on { background: var(--accent); }
.notches i.half { background: linear-gradient(90deg, var(--accent) 50%, var(--line) 50%); }
.score-pick { display: flex; gap: 4px; flex-wrap: wrap; }
.score-pick button { width: 34px; height: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); cursor: pointer; font-family: var(--f-label); }
.score-pick button:hover, .score-pick button.on { border-color: var(--accent); color: var(--accent); }
.score-pick button.on { background: var(--glow); }

/* ---------- hero (game pages) */
.ghero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.ghero .art { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .55; }
.ghero .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 8%, color-mix(in srgb, var(--bg) 60%, transparent) 50%, transparent 100%), linear-gradient(0deg, var(--bg) 0%, transparent 40%); }
.ghero .in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gut) 52px; }
.ghero h1 { max-width: 760px; }
.ghero .lede { max-width: 560px; color: var(--ink2); font-size: 18px; margin: 14px 0 26px; }
.ghero .cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ghero .cats a { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; color: var(--ink2); background: color-mix(in srgb, var(--bg) 50%, transparent); }
.ghero .cats a:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- mod page */
.modhead { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.modhead .art { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .35; filter: blur(2px) saturate(.9); transform: scale(1.04); }
.modhead .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, color-mix(in srgb, var(--bg) 40%, transparent)); }
.modhead .in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gut) 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mute); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.modhead .top2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: end; }
.modhead h1 { font-size: clamp(30px, 4vw, 48px); }
.modhead .sum { font-size: 18px; color: var(--ink2); margin: 12px 0 16px; max-width: 720px; }
.modhead .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.authorline { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.authorline b { font-weight: 500; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.numbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); }
.numbar > div { padding: 14px 16px 16px 0; }
.numbar b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 500; line-height: 1.1; }
.numbar span { font-family: var(--f-label); font-size: 11px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 14px 14px 13px; font-family: var(--f-label); font-size: 13px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); }
.tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent); }
.tabs a .cnt { color: var(--mute); font-size: 12px; }
.modbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin: 34px auto 70px; }
.side .panel + .panel { margin-top: 18px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; margin: 0; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; text-align: right; }

.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink2); max-width: 760px; }
.prose h1, .prose h2, .prose h3 { color: var(--ink); margin: 1.6em 0 .6em; }
.prose h1 { font-size: 30px; } .prose h2 { font-size: 24px; } .prose h3 { font-size: 19px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; padding: .1em .35em; background: var(--bg2); border-radius: 4px; }
.prose pre { background: var(--bg2); padding: 14px; border-radius: var(--radius); overflow: auto; }
.prose blockquote { margin: 1em 0; padding: .2em 0 .2em 1em; border-left: 2px solid var(--accent); color: var(--ink2); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

/* files */
.filegroup + .filegroup { margin-top: 30px; }
.file { display: grid; grid-template-columns: 1fr auto; gap: 14px 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.file + .file { margin-top: 12px; }
.file .fn { font-family: var(--f-display); font-size: 19px; text-transform: var(--d-case); letter-spacing: var(--d-track); }
.file .fm { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--mute); margin-top: 4px; }
.file .fnotes { grid-column: 1 / -1; font-size: 14px; color: var(--ink2); margin: 0; }
.file .hash { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: var(--mute); word-break: break-all; }
.check { display: inline-flex; align-items: center; gap: 5px; } td.check { display: table-cell; } /* in a table it stays a cell, so the row lines run the full width */
.check.clean { color: var(--good); } .check.flagged { color: var(--bad); } .check.waiting { color: var(--warn); }

/* media */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.gallery a { display: block; aspect-ratio: 16/9; border-radius: var(--radius); background: var(--bg2) center / cover; border: 1px solid var(--line); }
.gallery a:hover { border-color: var(--accent); }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius-lg); background: #000; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.9); display: none; place-items: center; padding: 24px; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 88vh; border-radius: var(--radius); }
.lightbox p { color: #ddd; text-align: center; margin-top: 12px; }

/* talk */
.cmt { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cmt .who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.cmt .who b { font-weight: 600; }
.cmt .who .role { font-family: var(--f-label); font-size: 11px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--accent); }
.cmt .txt { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink2); }
.cmt .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--mute); }
/* editing your comment: the box opens on its own line under the buttons, full width */
.cmt .acts .cmt-edit[open] { order: 99; flex-basis: 100%; }
.cmt .acts .cmt-edit textarea { width: 100%; }
.cmt .kids { grid-column: 2; margin-top: 4px; }
.cmt .kids .cmt { border-bottom: 0; padding: 12px 0 0; }
.cmt.pinned { background: linear-gradient(90deg, var(--glow), transparent 70%); padding-left: 10px; margin-left: -10px; border-radius: var(--radius); }
.cmt .hiddenby { font-size: 13px; color: var(--mute); font-style: italic; }
.liked { color: var(--accent) !important; }

/* forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); }
.field small { color: var(--mute); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); outline: none; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=file] { color: var(--ink2); font-size: 14px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink2); }
.checkline input { margin-top: 4px; accent-color: var(--accent); }
.notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glow); font-size: 15px; }
.notice.bad { border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.notice.good { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, transparent); } /* success notes: plain text with the site's gold edge, not green */

/* filters */
.browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; margin: 34px auto 70px; }
/* four mods a row beside the filters on a normal desktop, and the list uses a big screen's width (Tan, 8 Nov) */
.browse .modgrid { gap: 18px; }
@media (min-width: 1240px) { .browse .modgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1560px) { .wrap.browse { max-width: 1500px; } }
.filters { position: sticky; top: 86px; align-self: start; display: grid; gap: 22px; }
.filters h3 { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); margin-bottom: 8px; }
.filters a.opt, .filters label.opt { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; margin: 0 -8px; border-radius: var(--radius); font-size: 15px; color: var(--ink2); cursor: pointer; }
.filters a.opt:hover, .filters label.opt:hover { background: var(--glow); color: var(--ink); }
.filters a.opt.on { color: var(--accent); }
.filters a.opt .c { color: var(--mute); font-size: 13px; }
/* the panel can be taller than the screen now (tags and more): it scrolls on its own instead of being cut off */
@media (min-width: 901px) { .filters { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 6px; scrollbar-width: thin; } }
.finer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.finer > summary::-webkit-details-marker { display: none; }
.finer > summary::after { content: '+'; color: var(--mute); font-size: 18px; line-height: 1; margin-bottom: 8px; }
.finer[open] > summary::after { content: '−'; }
.finer > summary h3 .cnt { color: var(--accent); }
.finerform { display: grid; gap: 10px; }
.finerform label { display: grid; gap: 4px; }
.finerform label span { font-size: 13px; color: var(--ink2); }
.finerform input { width: 100%; padding: 8px 10px; font-size: 14px; }
.finerform .btn { justify-self: start; }
.tagchips, .toptags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.toptags { margin: 12px 0 0; }
.tagchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--accent); border-radius: 999px; font-size: 12.5px; color: var(--ink); }
.tagchip.out { border-color: var(--line); color: var(--ink2); border-style: dashed; }
.tagchip span[aria-hidden] { color: var(--mute); }
.tagchip.ghost { border-color: var(--line); color: var(--ink2); }
.tagchip.ghost:hover { border-color: var(--accent); color: var(--ink); }
.tagchip .c { color: var(--mute); font-size: 11.5px; }
@media (max-width: 900px) { .finer { grid-column: 1 / -1; } }
.sortbar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sortbar a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink2); }
.sortbar a.on { border-color: var(--accent); color: var(--accent); background: var(--glow); }
.empty { padding: 48px 24px; text-align: center; color: var(--mute); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }

/* stats */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.tile span { font-family: var(--f-label); font-size: 11px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); }
.tile b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.15; margin-top: 4px; }
.tile i { font-style: normal; font-size: 13px; color: var(--mute); }
.tile i.up { color: var(--good); } .tile i.down { color: var(--bad); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .gridl { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--mute); font: 11px var(--f-label); }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .ln2 { fill: none; stroke: var(--ink2); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .8; }
.chart .bar { fill: var(--accent); opacity: .85; }
.chart .hot { fill: transparent; }
.chart .dot { fill: var(--bg); stroke: var(--accent); stroke-width: 2; opacity: 0; }
.chartbox:hover .chart .dot { opacity: 1; }
.chartbox { position: relative; }
.chartbox .tip { position: absolute; pointer-events: none; padding: 6px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; white-space: nowrap; transform: translate(-50%, -110%); display: none; }
.chartbox .tip b { font-family: var(--f-display); font-weight: 500; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--mute); margin-top: 8px; }
.legend i { display: inline-block; width: 14px; height: 2px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.legend i.l2 { background: var(--ink2); }
.rangebar { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rangebar a { padding: 5px 12px; font-size: 13px; color: var(--ink2); }
.rangebar a.on { background: var(--glow); color: var(--accent); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font-family: var(--f-label); font-size: 11px; letter-spacing: var(--l-track); text-transform: var(--l-case); color: var(--mute); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

/* profile */
.phead { position: relative; border-bottom: 1px solid var(--line); }
.phead .banner { height: 220px; background: var(--bg2) center / cover; }
.phead .banner::after { content: ""; display: block; height: 100%; background: linear-gradient(0deg, var(--bg), transparent 70%); }
.phead .in { max-width: var(--wrap); margin: -64px auto 0; padding: 0 var(--gut) 26px; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: end; }
.phead .av.lg { box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.tier .price { font-family: var(--f-display); font-size: 30px; }
.tier .price small { font-size: 14px; color: var(--mute); font-family: var(--f-body); }
.tier ul { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 14.5px; }
.tier .btn { margin-top: auto; }

/* lists */
.list > * + * { border-top: 1px solid var(--line); }
.note { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 14px 4px; align-items: start; }
.note.unread .txt { color: var(--ink); font-weight: 500; }
.note .txt { color: var(--ink2); }
.note .when { font-size: 13px; color: var(--mute); white-space: nowrap; }
.msgs { display: grid; gap: 14px; }
.msg { max-width: 640px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.msg.mine { margin-left: auto; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.msg .who { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }

/* steward */
.ask { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: var(--panel); }
.ask .stw { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ask .stw .lamp { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ask .stw .lamp .ic { width: 22px; height: 22px; }
.qa { padding: 16px 0; border-bottom: 1px solid var(--line); }
.qa .q { font-weight: 500; }
.qa .a { margin-top: 8px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--glow); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink2); white-space: pre-wrap; }
.qa .by { font-size: 12.5px; color: var(--mute); margin-top: 6px; }

/* hub: a game library, then what is moving */
.shelf { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.shelf-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.shelf-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.shelf-head .more { margin-left: auto; font-family: var(--f-label); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.covers { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
.gcover { display: flex; flex-direction: column; gap: 8px; }
.gcover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); transition: transform .16s ease, box-shadow .16s ease; }
.gcover:hover img { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 18px 34px rgba(0,0,0,.45); }
.gcover:hover { color: inherit; }
.gc-meta { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; padding: 0 2px; }
.gc-meta b { font-weight: 600; } .gc-meta i { font-style: normal; color: var(--mute); font-size: 12px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 30px; margin: 34px 0 10px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ft-pic { display: block; aspect-ratio: 16 / 9; align-self: center; border-radius: 8px; background: var(--bg2) center / cover; }
.ft-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 4px 6px 4px 0; }
.ft-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ft-logo { height: 30px; max-width: 150px; object-fit: contain; object-position: left; }
.feature h2 { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.feature h2 a:hover { color: var(--accent); }
.feature p { margin: 0; font-size: 15px; }
.ft-nums { display: flex; gap: 22px; font-size: 12.5px; color: var(--mute); }
.ft-nums b { display: block; font-size: 20px; color: var(--ink); font-weight: 600; }
.ft-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ft-shots a { aspect-ratio: 16 / 9; border-radius: 6px; background: var(--bg2) center / cover; box-shadow: 0 0 0 1px var(--line); }
.hubcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
.hubcol-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px; }
.hubcol-head h2 { font-size: 17px; font-weight: 700; }
.hubcol-head a { font-size: 13px; color: var(--ink2); } .hubcol-head a:hover { color: var(--accent); }
.hublist { list-style: none; margin: 0; padding: 0; }
/* the small lists' rows, bigger so they read at a glance (Tan, Seth's OK 8 Nov) */
.hublist a { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 6px; border-radius: 8px; }
.hublist a:hover { background: var(--glow); color: inherit; }
.hublist.ranked a { grid-template-columns: 20px 112px minmax(0, 1fr) auto; }
.hl-rank { width: 20px; text-align: center; font-weight: 700; color: var(--mute); font-size: 15px; }
.hl-thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--bg2) center / cover; }
.hl-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-text b { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-text span { font-size: 13.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-num { font-size: 14px; color: var(--ink2); display: inline-flex; gap: 4px; align-items: center; }
@media (max-width: 600px) { .hublist a { grid-template-columns: 88px minmax(0, 1fr) auto; } .hublist.ranked a { grid-template-columns: 18px 88px minmax(0, 1fr) auto; } .hl-thumb { width: 88px; } .hl-text b { font-size: 15px; } }
/* "See all" under a small list, as a button you can't miss (Tan, 8 Nov) */
.hubcol-more { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: 600 12.5px var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.hubcol-more:hover { color: var(--ink); border-color: var(--accent); }
.hubcol-more .ic { width: 15px; height: 15px; }
.hl-num i .ic { width: 14px; height: 14px; color: var(--mute); }
.hubauthors { margin-top: 44px; }
.authorchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 10px; margin-top: 10px; }
.achip { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.achip:hover { border-color: var(--accent); color: inherit; }
.achip > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.achip b { font-weight: 600; font-size: 14.5px; } .achip span span { font-size: 12.5px; color: var(--mute); }
.hubwhy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); }
.hubwhy p { margin: 0; font-size: 14px; color: var(--ink2); }
.hubwhy b { color: var(--ink); }
.ghero .glogo img { max-height: 120px; max-width: min(460px, 90%); object-fit: contain; object-position: left; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
@media (max-width: 1100px) { .covers { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .feature, .hubcols, .hubwhy { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .covers { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .covers::-webkit-scrollbar { display: none; }
  .gcover { flex: 0 0 132px; scroll-snap-align: start; }
  .ghero .glogo img { max-height: 80px; }
}

/* phone and tablet */
@media (max-width: 1100px) {
  .mainnav { display: none; }
}
@media (max-width: 900px) {
  body { --gut: 16px; }
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modhead .top2, .modbody, .browse { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .phead .in { grid-template-columns: auto 1fr; }
  .phead .in > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top-in { gap: 8px; height: 58px; }
  .brand span { display: none; }
  .switch .sw-label { max-width: 76px; overflow: hidden; text-overflow: ellipsis; }
  .switch summary { padding: 7px 9px; }
  header.top .find { display: none; } /* the header's search only (it opens from its icon); a page's own search box stays */
  .userbox .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .sw-panel { position: fixed; left: 12px; right: 12px; top: 62px; width: auto; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .modrow { grid-template-columns: 96px 1fr; }
  .modrow .right { display: none; }
  .numbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .file { grid-template-columns: minmax(0, 1fr); }
  .phead .banner { height: 150px; }
  .section { margin: 40px 0; }
}

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 80px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 34px var(--gut) 40px; display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand .mark { color: var(--accent); width: 30px; height: 30px; }
.foot-brand div { display: flex; flex-direction: column; }
.foot-brand span { font-size: 13px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; font-size: 14px; color: var(--ink2); }
.fine { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--mute); }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } }
.score { flex-wrap: nowrap; white-space: nowrap; }
.score .n { letter-spacing: 0; }
@media (max-width: 640px) { .numbar > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { [data-stack] { grid-template-columns: minmax(0, 1fr) !important; } }
.phone-only { display: none; }
@media (max-width: 640px) { .phone-only { display: inline-grid; } }

/* BBCode pages, as authors write them */
.bb { overflow-wrap: anywhere; }
.bb .bb-center { text-align: center; }
.bb .bb-right { text-align: right; }
.bb img { display: inline-block; max-width: 100%; height: auto; border-radius: var(--radius); margin: 10px 0; }
.bb .bb-center img { margin-left: auto; margin-right: auto; display: block; }
.bb ul { margin: .5em 0 1em; }
.bb iframe.video { margin: 12px 0; max-width: 760px; }
.bb-spoiler summary { cursor: pointer; color: var(--accent); }

.modhead h1.long { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.ft-logo { background: #0d0d0d; padding: 4px 8px; border-radius: 4px; box-sizing: content-box; }

/* mod page side column: more by the author, more in the category, related */
.more-list { padding: 16px 16px 8px; }
.sidemod { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.sidemod:hover { color: inherit; } .sidemod:hover b { color: var(--accent); }
.sm-pic { aspect-ratio: 16 / 9; background: var(--bg2) center / cover; border-radius: var(--radius); }
.sm-text { min-width: 0; display: flex; flex-direction: column; }
.sm-text b { font-weight: 500; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sm-text span { font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .panel + .panel { margin-top: 18px; }

/* sign in / join: the newest mods' pictures beside the form */
.authpage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.authwall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 3px; overflow: hidden; background: #000; }
.authwall span { background: #111 center / cover; filter: saturate(.85) brightness(.7); }
.authwall p { position: absolute; left: 28px; bottom: 22px; margin: 0; color: #fff; font: 700 15px var(--f-label); letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.authform { padding: 70px clamp(24px, 5vw, 80px); max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.authform h1 { font-size: 34px; font-weight: 700; }
.authform p { margin: 0 0 8px; }
@media (max-width: 900px) { .authpage { grid-template-columns: minmax(0, 1fr); } .authwall { height: 180px; grid-template-columns: repeat(6, 1fr); } .authwall span:nth-child(n+7) { display: none; } .authform { padding: 30px var(--gut); } }

/* authors: each card led by the author's own mod pictures */
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 22px; }
.acard { display: flex; flex-direction: column; background: var(--bg2); }
.acard:hover { color: inherit; box-shadow: inset 0 -3px 0 var(--accent); }
.ac-pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 7; }
.ac-pics span { background: var(--bg) center / cover; }
.ac-pics span:first-child { grid-row: 1 / 3; }
.ac-pics.n1 span { grid-column: 1 / 3; } .ac-pics.n2 span:nth-child(2) { grid-row: 1 / 3; }
.ac-body { display: flex; gap: 12px; align-items: center; padding: 14px 16px 4px; }
.ac-body .av { width: 44px; height: 44px; margin-top: -30px; box-shadow: 0 0 0 3px var(--bg2); }
.ac-name { display: flex; flex-direction: column; min-width: 0; }
.ac-name b { font-size: 17px; font-weight: 700; }
.ac-name > span:last-child { font-size: 12.5px; color: var(--mute); }
.ac-nums { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 16px 14px; gap: 8px; font-size: 12px; color: var(--mute); }
.ac-nums b { display: block; font-size: 17px; color: var(--ink); font-weight: 600; }
.signin { white-space: nowrap; }
@media (max-width: 640px) { .switch .sw-label { display: none; } .switch summary { gap: 6px; } .feature { border-radius: 0; } }

/* game page: mods in the main column, bids on the right */
.gamebody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.gameside { position: sticky; top: 84px; margin-top: 34px; }
.modgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hubcols.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.gamemain .hubcol-head h2 { font-size: 18px; }
@media (max-width: 1100px) { .gamebody { grid-template-columns: minmax(0, 1fr); } .gameside { position: static; } .modgrid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .modgrid.three, .hubcols.two { grid-template-columns: minmax(0, 1fr); } }

/* bids */
.bidlist { display: flex; flex-direction: column; }
.bidrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); }
.bidrow:hover { color: inherit; background: var(--glow); }
.br-title { min-width: 0; display: flex; flex-direction: column; }
.br-title b { font-weight: 600; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br-title span { font-size: 12px; color: var(--mute); margin-top: 2px; }
.br-nums { display: flex; gap: 14px; text-align: right; font-size: 11.5px; color: var(--mute); }
.br-nums b { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.bl-game { font-family: var(--f-label); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin-top: 14px; }
.bidpage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin: 34px auto 70px; align-items: start; }
.bidside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
.bid-title { font-size: clamp(26px, 3vw, 38px); margin-top: 12px; }
.bid-body { white-space: pre-wrap; }
.offers { display: flex; flex-direction: column; gap: 14px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px; padding: 18px 20px; background: var(--bg2); border: 1px solid var(--line); }
.offer.won { box-shadow: inset 3px 0 0 var(--accent); }
.of-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.of-who b { font-size: 16px; }
.of-standing { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.of-standing b { color: var(--ink); font-weight: 600; }
.of-price { text-align: right; }
.of-price b { display: block; font-size: 24px; font-weight: 600; line-height: 1.1; }
.of-price span { font-size: 12.5px; color: var(--mute); }
.of-msg { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; color: var(--ink2); font-size: 15px; }
.of-foot { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.of-foot form { margin-left: auto; }
@media (max-width: 900px) { .bidpage { grid-template-columns: minmax(0, 1fr); } .bidside { position: static; } }

/* graph tiles: a number with its last 30 days drawn under it */
.gtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gtile { display: flex; flex-direction: column; padding: 16px 18px 12px; background: var(--bg2); border: 1px solid var(--line); }
a.gtile:hover { color: inherit; border-color: var(--accent); }
.gt-label { font-family: var(--f-label); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.gt-num { font-size: 28px; font-weight: 600; line-height: 1.15; margin-top: 4px; }
.gt-note { font-size: 12.5px; color: var(--mute); margin-bottom: 8px; }
.gt-chart { height: 84px; }
.gt-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--mute); margin-top: 4px; }
@media (max-width: 640px) { .gtiles { grid-template-columns: minmax(0, 1fr); } }

/* profile boards: top 3 supporters, downloaders, commenters */
#tiers > .panel + .panel, #tiers > .stack + .panel, #tiers > p + .panel { margin-top: 16px; }
.board h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.board li a { display: flex; gap: 10px; align-items: center; min-width: 0; }
.board li b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-rank { font-weight: 700; color: var(--mute); text-align: center; }
.bd-rank.r1 { color: var(--accent); }
.bd-v { font-size: 13px; color: var(--ink2); white-space: nowrap; }
#chart { scroll-margin-top: 84px; }

.modgrid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .modgrid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .modgrid.four { grid-template-columns: minmax(0, 1fr); } }
.btn .cnt { font-size: .82em; opacity: .7; margin-left: 2px; }
/* long titles on cards stop at three lines */
.modcard .name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ghero .in > .eyebrow { margin-bottom: 18px; }

/* links that leave the site get a small arrow */
.prose a.ext::after { content: ""; display: inline-block; width: .62em; height: .62em; margin-left: .22em; vertical-align: .08em; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1h6v6M9 1 1 9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1h6v6M9 1 1 9' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* names: level chip and the badge the person picked */
.nametag { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; min-width: 0; }
.nametag a, .nametag b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvl { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; font: 700 11px/1 var(--f-label); color: var(--accent-ink); background: var(--accent);
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px); }
.nt-badge { display: inline-flex; flex: none; }

/* medals: a cut-corner plate in its metal */
.medal { flex: none; display: block; }

/* profile: name with badge, level bar, badges */
.ph-name { font-size: clamp(30px, 4vw, 44px); margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.ph-badge { display: inline-flex; }
.levelbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px 20px; background: var(--bg2); margin-bottom: 18px; }
.lv-num { text-align: center; padding-right: 20px; border-right: 1px solid var(--line); }
.lv-num span { display: block; font: 600 11px var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.lv-num b { display: block; font-size: 38px; line-height: 1; font-weight: 700; color: var(--accent); }
.lv-track .spread { font-size: 14px; margin-bottom: 8px; }
.lv-bar { height: 10px; background: color-mix(in srgb, var(--ink) 10%, transparent); clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px); }
.lv-bar i { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #000), var(--accent)); }
.badges { margin-bottom: 22px; }
.badgegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; margin-top: 12px; }
.bdg { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--bg2); }
.bdg span { display: flex; flex-direction: column; min-width: 0; }
.bdg b { font-size: 14.5px; font-weight: 700; } .bdg i { font-style: normal; font-size: 12px; color: var(--accent); font-weight: 600; }
.bdg small { font-size: 12px; color: var(--mute); }
.bdg.locked b, .bdg.locked i { color: var(--mute); }

/* notifications: a card each, with a little of the thing itself */
.notes { display: flex; flex-direction: column; gap: 8px; }
.note2 { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 14px; background: var(--bg2); }
.note2:hover { color: inherit; box-shadow: inset 0 -2px 0 var(--accent); }
.note2.unread { box-shadow: inset 3px 0 0 var(--accent); }
.n-pic { width: 64px; height: 44px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--mute); }
.n-pic span { width: 100%; height: 100%; background: center / cover; }
.n-pic .ic { width: 22px; height: 22px; }
.n-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.n-kind { display: inline-flex; gap: 5px; align-items: center; font: 600 11px var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.n-kind .ic { width: 13px; height: 13px; }
.note2 b { font-weight: 600; font-size: 15px; }
.n-detail { font-size: 13.5px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border-left: 2px solid var(--line); padding-left: 10px; margin-top: 3px; }
.note2 time { font-size: 12.5px; color: var(--mute); white-space: nowrap; }
@media (max-width: 640px) { .note2 { grid-template-columns: 48px minmax(0, 1fr); } .n-pic { width: 48px; height: 36px; } .note2 time { grid-column: 2; } }

/* the menu head opens your profile */
a.me-head { flex-direction: row; gap: 10px; align-items: center; }
a.me-head:hover { background: var(--glow); }
a.me-head > span { display: flex; flex-direction: column; min-width: 0; }
a.me-head > span span { color: var(--mute); font-size: 13px; }

/* messages: like texting */
body.chat-page .foot { display: none; }
.chat { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 64px); height: calc(100dvh - 64px); max-width: var(--wrap); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.chat-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: 0; }
.chat-list-head { padding: 18px 16px 8px; } .chat-list-head h1 { font-size: 24px; font-weight: 700; }
.chat-find { position: relative; margin: 0 12px 10px; display: flex; }
.chat-find input { padding-right: 36px !important; }
.chat-find .ic { position: absolute; right: 10px; top: 50%; margin-top: -9px; color: var(--mute); }
.chat-convs { overflow-y: auto; flex: 1; }
.conv { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; }
.conv:hover, .conv.on { background: var(--glow); color: inherit; }
.conv.on { box-shadow: inset 3px 0 0 var(--accent); }
.conv-text { display: flex; flex-direction: column; min-width: 0; }
.conv-text b { font-weight: 600; } .conv-text span { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread .conv-text span { color: var(--ink); font-weight: 600; }
/* an unread conversation has to be found at a glance (the mail icon's number points at it): a bar, a dot, the time in gold */
.conv.unread { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.conv.unread:hover { background: var(--glow); }
.conv.unread time { color: var(--accent); font-weight: 600; }
.conv.unread time::after { content: ''; display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin: 7px 0 0 auto; }
.conv time { font-size: 11.5px; color: var(--mute); align-self: start; margin-top: 3px; }
.chat-main { display: flex; flex-direction: column; min-height: 0; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-head > div { display: flex; flex-direction: column; }
.chat-head .muted { font-size: 12.5px; }
.chat-back { display: none; color: var(--ink2); } .chat-back .ic { transform: rotate(180deg); }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 3px; }
.chat-empty { margin: auto; text-align: center; color: var(--mute); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-empty .ic { width: 34px; height: 34px; }
.bub { max-width: min(560px, 78%); display: flex; flex-direction: column; gap: 4px; }
.bub.first { margin-top: 10px; }
.bub.mine { align-self: flex-end; align-items: flex-end; }
.bub-text { padding: 9px 13px; background: var(--bg2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bub.mine .bub-text { background: var(--accent); color: var(--accent-ink); }
.bub.mine .bub-text a { color: inherit; text-decoration: underline; }
.bub-text a { color: var(--accent); text-decoration: underline; }
.bub.theirs .bub-text { border-radius: 0 12px 12px 12px; } .bub.mine .bub-text { border-radius: 12px 0 12px 12px; }
.bub-img img { max-width: 320px; max-height: 320px; border-radius: 8px; display: block; }
.bub-file { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); }
.bub-file span { display: flex; flex-direction: column; } .bub-file i { font-style: normal; font-size: 12px; color: var(--mute); }
.bub time { font-size: 11px; color: var(--mute); display: none; }
.bub:last-child time, .bub:hover time { display: block; }
.chat-compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-attach { width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--ink2); background: var(--bg2); flex: none; }
.chat-attach:hover { color: var(--accent); }
.chat-input { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.chat-input textarea { min-height: 42px; max-height: 160px; resize: none; padding: 10px 12px; }
.chat-filename { font-size: 12.5px; color: var(--accent); }
.chat-compose .btn { height: 42px; width: 48px; padding: 0; }
@media (max-width: 760px) {
  .chat { grid-template-columns: minmax(0, 1fr); border: 0; height: calc(100vh - 58px); height: calc(100dvh - 58px); }
  .chat.has-open .chat-list { display: none; }
  .chat:not(.has-open) .chat-main { display: none; }
  .chat-back { display: inline-flex; }
}

/* the checkout pop-up */
body.co-open { overflow: hidden; }
.co-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); animation: co-in .14s ease-out; }
@keyframes co-in { from { opacity: 0; } }
.co { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px 22px 18px; background: var(--bg2); color: var(--ink);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); box-shadow: 0 30px 80px rgba(0,0,0,.6); font-family: "Archivo", system-ui, sans-serif; letter-spacing: 0; text-transform: none; }
.co h2 { font-family: "Archivo", system-ui, sans-serif; font-size: 22px; font-weight: 700; letter-spacing: 0; text-transform: none; margin-top: 8px; }
.co-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 0; color: var(--mute); cursor: pointer; }
.co-x:hover { color: var(--ink); }
.co-item { display: flex; gap: 14px; padding: 14px 0; margin: 12px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.co-pic { width: 64px; height: 64px; flex: none; background: var(--bg) center / cover; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.co-item b { display: block; font-size: 16px; } .co-item > div > span { font-size: 13.5px; color: var(--mute); }
.co-item ul { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; color: var(--ink2); }
.co-item li { display: flex; gap: 6px; align-items: center; } .co-item li .ic { width: 14px; height: 14px; color: var(--good); }
.co-label { font: 600 11.5px var(--f-label, sans-serif); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); margin: 14px 0 7px; }
.co-form input[type=text], .co-form input[type=number] { width: 100%; padding: 10px 12px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
.co-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.co-amounts .co-custom { grid-column: 1 / -1; }
.co-amounts label { cursor: pointer; }
.co-amounts input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.co-amounts label > span { display: grid; place-items: center; height: 44px; background: var(--bg); border: 1px solid var(--line); font-weight: 700; }
.co-amounts input:checked + span { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.co-custom { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); padding-left: 8px; }
.co-custom span { color: var(--mute); }
.co-custom input { border: 0 !important; padding: 0 6px !important; height: 42px; background: none !important; }
.co-full { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.co-full .ic { width: 16px; height: 16px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 0; }
.co-total span { color: var(--mute); } .co-total b { font-size: 28px; } .co-total small { font-size: 14px; color: var(--mute); }
.co-methods { display: grid; gap: 8px; }
.co-method { cursor: pointer; }
.co-method input { position: absolute; opacity: 0; pointer-events: none; }
.co-method > span { display: grid; grid-template-columns: 22px auto; gap: 2px 10px; align-items: center; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); }
.co-method > span .ic { grid-row: 1 / 3; color: var(--mute); }
.co-method b { font-size: 15px; } .co-method i { font-style: normal; font-size: 12.5px; color: var(--mute); grid-column: 2; }
.co-method input:checked + span { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.co-method input:checked + span .ic { color: var(--accent); }
.co-pay { width: 100%; margin-top: 16px; }
.co-pay[disabled] { opacity: .6; }
.co-fine { font-size: 12px; color: var(--mute); margin: 10px 0 0; text-align: center; }
.co-err { margin: 10px 0 0; padding: 8px 10px; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); font-size: 14px; }
.co-done { text-align: center; padding: 34px 26px 24px; }
.co-done p { color: var(--ink2); }
.co-check { width: 64px; height: 64px; margin: 0 auto 6px; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.co-check .ic { width: 30px; height: 30px; }
.co-done .btn { width: 100%; margin-top: 10px; }

/* the Pass: button in the top bar, stamp by holders' names */
.passbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 9px; font: 700 12.5px var(--f-label, sans-serif); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  color: #e0a84e; background: rgba(224,168,78,.1); box-shadow: inset 0 0 0 1px rgba(224,168,78,.45); clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.passbtn svg { width: 13px; height: 13px; fill: currentColor; }
.passbtn:hover { color: #141209; background: #e0a84e; }
.passbtn.on { color: #141209; background: #e0a84e; box-shadow: none; }
.passstamp { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 18px; padding: 0 6px 0 4px; font: 800 10px/1 "Archivo Narrow", sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: #141209; background: linear-gradient(135deg, #f3cf7a, #c98b2c); clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px); }
.passstamp svg { width: 9px; height: 9px; fill: #141209; }
.passstamp:hover { color: #141209; filter: brightness(1.08); }
.passstamp.big { height: 22px; font-size: 11.5px; padding: 0 8px 0 6px; }
.passstamp.big svg { width: 11px; height: 11px; }

/* tip box on a mod page */
.tipbox { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.tipbox b { display: block; font-size: 15px; } .tipbox span { font-size: 13px; color: var(--mute); }

/* ad spaces: where ads will sit for people without the Pass */
.adslot { position: relative; display: grid; place-items: center; margin: 34px 0; min-height: 110px; border: 1px dashed var(--line); background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--ink) 3%, transparent) 10px 20px); }
.adslot.side { margin: 18px 0 0; min-height: 250px; }
.ad-label { position: absolute; left: 10px; top: 8px; font: 600 10.5px var(--f-label, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ad-body { color: var(--mute); font-size: 14px; }
.ad-pass { position: absolute; right: 10px; bottom: 8px; font-size: 12.5px; color: var(--accent); }
@media (max-width: 640px) { .passbtn span { display: none; } .passbtn { padding: 0 9px; } }
.co-custom input { box-shadow: none !important; }
.achip .nametag, .ac-name .nametag, .board .nametag { flex-wrap: wrap; row-gap: 3px; } .achip .nametag b, .ac-name .nametag b { overflow: visible; }
[hidden] { display: none !important; }

/* hover cards for level, Pass and badge */
.lvl[data-go], .passstamp[data-go], .nt-badge[data-go] { cursor: pointer; }
.lvl[data-go]:hover, .lvl[data-go]:focus-visible { filter: brightness(1.12); outline: none; }
.nt-badge[data-go]:hover .medal, .nt-badge[data-go]:focus-visible .medal { transform: scale(1.15); }
.nt-badge .medal { transition: transform .12s ease; }
.tipcard { position: absolute; z-index: 120; display: flex; gap: 12px; align-items: flex-start; width: max-content; max-width: 280px; padding: 12px 14px; background: #17181a; color: #ece8df;
  font: 14px/1.4 "Archivo", system-ui, sans-serif; letter-spacing: 0; text-transform: none; box-shadow: 0 16px 40px rgba(0,0,0,.55), inset 0 0 0 1px rgba(236,232,223,.12);
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); animation: co-in .1s ease-out; }
.tipcard b { display: block; font-size: 15px; font-weight: 700; }
.tipcard i { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; color: #e0a84e; margin-top: 1px; }
.tipcard ul { list-style: none; margin: 6px 0 8px; padding: 0; color: #bdb7aa; font-size: 13px; }
.tipcard a { color: #e0a84e; font-size: 13px; font-weight: 600; }
.tc-medal { flex: none; }
.tc-pass b { color: #f3cf7a; }

/* posting a mod */
body.upload-page .foot { display: none; }
.upload { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; max-width: 1100px; margin: 30px auto 0; padding: 0 var(--gut) 110px; }
.up-nav { position: sticky; top: 84px; align-self: start; }
.up-nav h1 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.up-nav ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.up-nav a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--ink2); }
.up-nav a span { width: 22px; height: 22px; display: grid; place-items: center; font: 700 12px var(--f-label); background: var(--bg2); color: var(--mute); }
.up-nav a.done span { background: var(--accent); color: #141209; }
.up-nav a:hover { background: var(--glow); color: var(--ink); }
.up-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.up-import { display: grid; gap: 10px; padding: 16px 18px; background: color-mix(in srgb, var(--accent) 10%, var(--bg2)); box-shadow: inset 3px 0 0 var(--accent); }
.up-import b { display: block; font-size: 16px; } .up-import span { font-size: 14px; color: var(--ink2); }
.up-import-row { display: flex; gap: 10px; } .up-import-row input { flex: 1; }
.up-import-msg { margin: 0; font-size: 14px; } .up-import-msg.bad { color: var(--bad); } .up-import-msg.good { color: var(--good); }
.up-sec { padding: 20px 22px; background: var(--bg2); scroll-margin-top: 84px; display: grid; gap: 14px; }
.up-sec-head { display: flex; gap: 14px; align-items: flex-start; }
.up-n { flex: none; width: 30px; height: 30px; display: grid; place-items: center; font: 700 14px var(--f-label); background: var(--accent); color: var(--accent-ink); clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px); }
.up-sec-head h2 { font-size: 19px; font-weight: 700; } .up-sec-head p { margin: 2px 0 0; font-size: 14px; color: var(--mute); }
.drop { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; text-align: center; cursor: pointer; border: 1.5px dashed var(--line); background: var(--bg); color: var(--ink2); transition: border-color .12s, background .12s; }
.drop .ic { width: 28px; height: 28px; color: var(--mute); }
.drop b { font-size: 15px; } .drop span { font-size: 13px; color: var(--mute); }
.drop em { font-style: normal; font-size: 13px; color: var(--good); font-weight: 600; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--glow); }
.drop.has { border-style: solid; border-color: color-mix(in srgb, var(--good) 60%, transparent); }
.drop.small { padding: 12px; grid-auto-flow: column; justify-content: start; align-items: center; gap: 10px; text-align: left; }
.extras { display: grid; gap: 8px; }
.extra { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg) center / cover; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.thumb.cover { box-shadow: inset 0 0 0 3px var(--accent); }
.thumb span { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; font: 700 11px var(--f-label); text-transform: uppercase; letter-spacing: .04em; background: rgba(0,0,0,.7); color: #fff; }
.thumb.cover span { background: var(--accent); color: var(--accent-ink); }
.thumb button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.up-tabs { display: flex; gap: 6px; align-items: center; }
.up-tabs label input, .up-choice label input { position: absolute; opacity: 0; pointer-events: none; }
.up-tabs label span { display: inline-block; padding: 6px 12px; background: var(--bg); cursor: pointer; font-size: 14px; }
.up-tabs label input:checked + span { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.up-preview { padding: 16px; background: var(--bg); max-height: 560px; overflow-y: auto; max-width: none; }
.up-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.up-choice label span { display: grid; gap: 4px; height: 100%; padding: 14px; background: var(--bg); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.up-choice b { font-size: 15px; } .up-choice i { font-style: normal; font-size: 13px; color: var(--mute); }
.up-choice label input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); }
.up-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: flex-end; gap: 12px; align-items: center; padding: 12px max(var(--gut), calc((100vw - 1100px) / 2 + var(--gut)));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.up-progress { flex: 1; max-width: 420px; position: relative; height: 30px; background: var(--bg2); }
.up-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: color-mix(in srgb, var(--accent) 35%, transparent); transition: width .2s; }
.up-progress span { position: relative; display: block; line-height: 30px; padding: 0 10px; font-size: 13px; }
.up-err { margin: 0 auto 0 0; color: var(--bad); font-size: 14px; }
@media (max-width: 900px) { .upload { grid-template-columns: minmax(0, 1fr); } .up-nav { position: static; } .up-nav ol { flex-direction: row; flex-wrap: wrap; } .up-choice { grid-template-columns: minmax(0, 1fr); } .extra { grid-template-columns: minmax(0, 1fr); } }

/* picture frames: a ring around the picture, in the picture's own shape */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.avf { position: relative; display: inline-grid; place-items: center; flex: none; padding: 3px; border-radius: 50%; background: #555; }
.avf.sm, .avf.xs { padding: 2px; } .avf.lg { padding: 5px; }
.avf > .av { box-shadow: 0 0 0 2px #0c0d0e; }
[data-kit="hub"] .avf { border-radius: 0; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }
[data-kit="hub"] .avf.lg { clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); }
.fr-iron { background: linear-gradient(135deg, #a3a8ad, #4a4e53 55%, #2a2d30); }
.fr-bronze { background: linear-gradient(135deg, #d39a78, #93522f 45%, #4a2413); }
.fr-silver { background: linear-gradient(135deg, #ffffff, #b7bec4 45%, #5b6268); }
.fr-gold { background: linear-gradient(135deg, #fff0b8, #e8b94a 45%, #8a5d0d); }
.fr-platinum { background: linear-gradient(135deg, #ffffff, #e4f3f7 40%, #9fbcc5); box-shadow: 0 0 10px rgba(220,245,255,.55); }
.fr-trusted { background: linear-gradient(135deg, #e9ecee, #a4abb1 30%, #22344a 31%, #1a2a3d 70%, #a4abb1 71%); }
.fr-pass { background: repeating-linear-gradient(45deg, #f3cf7a 0 4px, #c98b2c 4px 8px); }
.fr-founder { background: linear-gradient(135deg, #fff0b8, #e8b94a 35%, #b0701a 65%, #5b1d12); box-shadow: 0 0 12px rgba(232,185,74,.45); }
.fr-ember { background: conic-gradient(from var(--spin), #ff7b2c, #ffd27a, #b3361a, #ff9a3c, #ff7b2c); animation: spin 6s linear infinite; box-shadow: 0 0 12px rgba(255,120,40,.45); }
.fr-frost { background: conic-gradient(from var(--spin), #ffffff, #9fd8ff, #3d7fb8, #dff4ff, #ffffff); animation: spin 9s linear infinite; box-shadow: 0 0 12px rgba(160,215,255,.45); }
.fr-arcane { background: conic-gradient(from var(--spin), #c59bff, #4b2a8a, #6f8bff, #e3d2ff, #c59bff); animation: spin 4s linear infinite; box-shadow: 0 0 14px rgba(150,110,255,.5); }
.fr-blood { background: linear-gradient(135deg, #ff6b5b, #b3122b 50%, #3a0510); animation: pulse 2.6s ease-in-out infinite; }
@keyframes spin { to { --spin: 360deg; } }
@keyframes pulse { 50% { box-shadow: 0 0 14px rgba(220,30,50,.7); } }
@media (prefers-reduced-motion: reduce) { .fr-ember, .fr-frost, .fr-arcane, .fr-blood { animation: none; } }
/* name colours */
.nc { font-weight: 700; }

/* the Looks page */
.looks-head { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.looks-h { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.look { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--bg2); }
.look.on { box-shadow: inset 0 0 0 2px var(--accent); }
.look-pic { flex: none; width: 108px; display: grid; place-items: center; min-height: 96px; }
.look.locked .look-pic { filter: grayscale(.85) brightness(.75); }
.nc-preview { font-size: 17px; text-align: center; }
.look-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; min-width: 0; }
.look-body > b { font-size: 16px; } .look-body > span:not(.tag) { font-size: 13px; color: var(--mute); }
.look-need { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; color: var(--ink2); }
.look-need i { font-style: normal; color: var(--mute); }
.look-need .ic { width: 14px; height: 14px; }
.look { flex-direction: column; align-items: stretch; text-align: center; padding: 18px 14px 14px; }
.look-pic { width: auto; min-height: 104px; }
.look-body { align-items: center; }
.look-body form, .look-body .btn { width: 100%; }
.look-need { display: block; text-align: center; line-height: 1.4; }
.look-need .ic { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.looks { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.look-body > .btn, .look-body > form { align-self: stretch; } .look-body > form .btn { width: 100%; }
.avf { width: max-content; height: max-content; align-self: start; justify-self: start; aspect-ratio: 1; line-height: 0; }
.cmt > .avf { margin: -3px 0 0 -3px; }
/* a framed picture: the frame carries the offsets and shadows the bare picture would have had */
.avf > .av { margin: 0 !important; }
.ac-body .avf { margin-top: -30px; }
.ac-body .avf > .av { width: 44px; height: 44px; }
.phead .avf.lg > .av.lg { box-shadow: 0 0 0 2px #0c0d0e; }
.phead .avf.lg { box-shadow: 0 0 0 4px var(--bg); }

/* numbers that come from Nexus Mods */
.nxline { display: flex; gap: 8px; align-items: center; margin-top: 18px; font-size: 13.5px; color: var(--ink2); }
.nxline .ic { width: 15px; height: 15px; color: var(--mute); }
.nxline a { color: var(--accent); text-decoration: underline; }
.nxpanel h3 { font-size: 16px; display: inline-flex; gap: 8px; align-items: center; }
.nxpanel .tile { background: var(--bg); }

.mcp-key { margin-top: 8px; padding: 10px 12px; background: var(--bg); overflow-x: auto; }
.mcp-key code { font-size: 13px; white-space: nowrap; }

/* the seal: what just happened (saved, scored, sent, or what went wrong), in the middle under the header, framed by the
   site's diamond ornaments in the game's own colour; it fades by itself, or with a click (public/js/app.js window.seal) */
.seal { --sc: var(--accent); position: fixed; top: 78px; left: 50%; z-index: 2000; display: flex; align-items: center; gap: 14px; max-width: min(760px, calc(100vw - 24px));
  padding: 10px 26px; background: color-mix(in srgb, var(--bg) 86%, var(--sc)); border-top: 1px solid var(--sc); border-bottom: 1px solid var(--sc);
  box-shadow: 0 12px 30px rgba(0,0,0,.4); cursor: pointer; transform: translate(-50%, -8px); opacity: 0;
  animation: seal-in .35s ease forwards, seal-out .6s ease 5s forwards; }
.seal.bad { --sc: var(--bad); }
.seal .d { flex: none; color: var(--sc); font-size: 10px; }
.seal .ln { flex: none; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--sc)); }
.seal .ln.r { background: linear-gradient(270deg, transparent, var(--sc)); }
.seal .m { font-family: var(--f-display); font-size: 17px; line-height: 1.35; color: var(--ink); letter-spacing: .02em; text-align: center; }
.seal .m .inline, .seal .m a { color: var(--sc); }
.seal:hover { animation-play-state: running, paused; }
@keyframes seal-in { to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes seal-out { to { opacity: 0; transform: translate(-50%, -8px); visibility: hidden; } }
@media (max-width: 640px) { .seal { top: 64px; padding: 9px 14px; gap: 8px; } .seal .ln { display: none; } .seal .m { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .seal { animation: seal-in .01s forwards, seal-out .01s 5s forwards; } }
/* small note after an in-place action */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 130; transform: translateX(-50%); padding: 11px 16px; background: #17181a; color: #ece8df; font: 14px "Archivo", sans-serif;
  box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 3px 0 0 #e0a84e; transition: opacity .4s, transform .4s; }
.toast.bad { box-shadow: 0 12px 30px rgba(0,0,0,.5), inset 3px 0 0 #e07a62; }
.toast.out { opacity: 0; transform: translate(-50%, 8px); }

.up-choice label.off { opacity: .45; pointer-events: none; }
/* Pass button: the outline follows the cut corner too (an outer gold shape, an inner fill 1px smaller) */
.passbtn { position: relative; isolation: isolate; box-shadow: none; background: rgba(224,168,78,.5); }
.passbtn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg); clip-path: polygon(5.6px 0, 100% 0, 100% 100%, 0 100%, 0 5.6px); }
.passbtn::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: rgba(224,168,78,.1); clip-path: polygon(5.6px 0, 100% 0, 100% 100%, 0 100%, 0 5.6px); }
.passbtn:hover, .passbtn.on { background: #e0a84e; }
.passbtn:hover::before, .passbtn:hover::after, .passbtn.on::before, .passbtn.on::after { display: none; }
:root[data-theme="light"] .passbtn:not(.on):not(:hover) { color: #8a5508; background: rgba(154,95,14,.55); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .passbtn:not(.on):not(:hover) { color: #8a5508; background: rgba(154,95,14,.55); } }

/* a frame takes the shape of the picture it holds: round for photos, square for maker's marks */
.avf:has(> .av.mark) { border-radius: 0; }
.avf:has(> .av.mark) > .av { border-radius: 0; }

.qa-tools { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; }

.installbox { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.installbox > div:first-child { flex: 1; min-width: 260px; }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.demo-card h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.3; }
.demo-nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.demo-nums b { color: var(--text); }
.demo-out { font-size: 13px; margin: 8px 0 0; }
.bigprompt h2 { font-size: 24px; }
.bp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.bp-bar { height: 6px; background: var(--line); }
.bp-bar i { display: block; height: 100%; background: var(--accent); }
dialog.bigdialog { max-width: 680px; width: calc(100% - 32px); background: var(--bg2, var(--panel)); color: inherit; border: 1px solid var(--line); padding: 24px; }
dialog.bigdialog::backdrop { background: rgba(0,0,0,.6); }

.tag.adult { background: #8b1e1e; color: #fff; border-color: #8b1e1e; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: var(--bg2, var(--panel)); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.45); max-height: 320px; overflow: auto; }
.suggest button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; color: inherit; font: inherit; font-size: 14.5px; cursor: pointer; }
.suggest button small { color: var(--muted, #888); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.suggest button:hover, .suggest button.on { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.suggest:not([data-kind=tags]) button { flex-direction: column; gap: 2px; }
.suggest:not([data-kind=tags]) button small { max-width: none; }
.extrow { grid-template-columns: 1fr auto !important; }
.by-author { cursor: pointer; }
.by-author:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.locard { padding-top: 0; overflow: hidden; }
.lo-pic { display: block; margin: 0 -22px 16px; aspect-ratio: 16 / 9; background: center / cover no-repeat var(--bg2); }
.lo-head.has-pic { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.lo-thumb { width: 200px; aspect-ratio: auto; display: block; }
@media (max-width: 640px) { .lo-head.has-pic { grid-template-columns: 1fr; } .lo-thumb { width: 140px; } }
/* pictures with see-through parts are shown whole, on the page itself, never cropped onto a box */
.see-through { background-size: contain !important; background-color: transparent !important; background-repeat: no-repeat !important; background-position: center !important; }
.usercard { width: 300px; padding: 16px; }
.usercard .uc-top { display: flex; gap: 12px; align-items: center; }
.usercard .uc-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.usercard .uc-tag { margin: 10px 0 0; font-size: 14px; color: var(--soft); }
.usercard .uc-nums { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted, #888); }
.usercard .uc-nums span { display: flex; flex-direction: column; }
.usercard .uc-nums b { font-size: 16px; color: var(--text); }
.usercard .uc-acts { display: flex; gap: 8px; margin-top: 14px; }
.avwrap { display: inline-flex; }
.tipcard.usercard { display: block; width: 320px; max-width: calc(100vw - 16px); }
.usercard .uc-bio { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted, #9a958a); }
.ownerpanel { margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px 22px; margin-top: 14px; }
.ow-grid .ow-wide { grid-column: 1 / -1; }
.ow-l { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8a857b); margin-bottom: 6px; }
.ow-grid form { gap: 8px; align-items: center; }
.btn.danger { background: #8b1e1e; color: #fff; border-color: #8b1e1e; }
.ow-grid form { flex-wrap: nowrap; }
.ow-grid .ow-wide form { flex-wrap: wrap; }
.ow-grid select { width: auto !important; min-width: 130px; flex: 0 1 auto; }
.ow-grid input[type=text], .ow-grid input[type=number] { flex: 1 1 auto; }
.ow-grid .btn { flex: none; }
.btn.danger, .btn.danger:hover { background: #8b1e1e !important; color: #fff !important; border-color: #8b1e1e !important; }
dialog.cropdialog { background: var(--bg2, var(--panel)); color: inherit; border: 1px solid var(--line); padding: 22px; }
dialog.cropdialog::backdrop { background: rgba(0,0,0,.65); }
dialog.cropdialog canvas { display: block; width: 320px; height: 320px; cursor: grab; touch-action: none; background: #0b0b0c; }
dialog.cropdialog input[type=range] { width: 320px; margin-top: 12px; accent-color: var(--accent); }

/* Share menu */
.sharebox { position: relative; }
.sharebox > summary { list-style: none; width: 100%; cursor: pointer; }
.sharebox > summary::-webkit-details-marker { display: none; }
.sharemenu { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); width: 280px; max-width: calc(100vw - 32px); background: linear-gradient(var(--panel), var(--panel)), var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.sharemenu a, .sharemenu button { display: block; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.sharemenu a:hover, .sharemenu button:hover { background: var(--glow); color: var(--accent); }
.sharemenu input { width: 100%; font-size: 13px; }
.sharemenu p { font-size: 13px; margin: 2px 4px 0; }

/* Followers / following */
.folcount { display: flex; gap: 16px; margin-top: 6px; font-size: 14.5px; }
.folcount a { color: var(--soft, var(--mute)); }
.folcount a:hover { color: var(--accent); }
.folcount b { color: var(--ink); }
a.tile { display: block; color: inherit; }
a.tile:hover { border-color: var(--accent); }
.follist { margin-top: 10px; }
.folrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 4px; border-bottom: 1px solid var(--line); }

/* Salute (about 1.8 s): the figure grows, holds the hand at the brow, slowly brings it out, holds, then settles */
.ic-arm { transform-box: view-box; transform-origin: 13.6px 15.8px; }
.saluting svg { overflow: visible; animation: salute-grow 1.8s ease-in-out both; transform-origin: 50% 60%; }
.saluting .ic-arm { animation: salute-out 1.8s ease-in-out both; }
@keyframes salute-grow { 0% { transform: scale(1); } 12%, 84% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes salute-out {
  0%, 14% { transform: rotate(0); }                      /* hand at the brow */
  22% { transform: rotate(-5deg); }                      /* firm it up */
  30%, 40% { transform: rotate(0); }                     /* hold the salute */
  68% { transform: rotate(45deg) translate(1.5px, -.5px); } /* slowly bring it out */
  80% { transform: rotate(45deg) translate(1.5px, -.5px); } /* hold out */
  100% { transform: rotate(0); }                         /* back to rest */
}
@media (prefers-reduced-motion: reduce) { .saluting svg, .saluting .ic-arm { animation: none; } }
.saluting[disabled] { opacity: 1; }

/* Supporter tiers: rows that open a pop-up */
.tierrow { display: flex; justify-content: space-between; gap: 10px; padding: 10px 8px; margin: 0 -8px; border-top: 1px solid var(--line); color: inherit; border-radius: 6px; cursor: pointer; }
.tierrow:hover { background: var(--glow); }
.tierrow:hover b { color: var(--accent); }
a.tiername { color: inherit; } a.tiername:hover b { color: var(--accent); }
.tierpop { max-width: 440px; }
.tp-who { display: flex; align-items: center; gap: 12px; }
.tp-who span { display: block; font-size: 12px; } .tp-who b { font-size: 16px; }
.tp-name { margin: 18px 0 4px; font-size: 26px; }
.tp-price { font-size: 22px; margin-bottom: 16px; } .tp-price small { font-size: 13px; color: var(--mute); }
.tp-join { width: 100%; }
.tp-perks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.tp-perks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.tp-perks .ic { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.tp-foot { font-size: 12.5px; margin: 18px 0 0; }

/* Download speed note on the Files tab */
.speedline { display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; color: var(--soft, var(--ink)); }
.speedline .ic { flex: none; color: var(--accent); }
.speedline.out { border-color: var(--accent); }
.tier.held { border-color: var(--accent); }

/* Author's Pass: badge, highlighted mod cards, its card on the Pass page */
.passstamp.ap { background: linear-gradient(135deg, #f3d27a, #c98b2b); }
.modcard.ap { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 26px var(--glow); }
.tag.apflag { background: var(--accent); color: #141209; border-color: var(--accent); }
.tag.apflag .ic { width: 12px; height: 12px; }
.modrow.ap { box-shadow: inset 3px 0 0 var(--accent); background: linear-gradient(90deg, var(--glow), transparent 60%); }

/* Payouts */
.lockbox { display: flex; gap: 14px; align-items: flex-start; }
.lockbox > .ic { flex: none; width: 26px; height: 26px; color: var(--accent); margin-top: 2px; }
.paymethod .ic { color: var(--accent); }
.tile small { display: block; margin-top: 4px; font-size: 12.5px; }

/* Time range on mod search: a dropdown at the end of the sort bar */
.sortrow { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sortrow .sortbar { flex: 1; }
.timepick { display: flex; gap: 6px; align-items: center; margin-left: auto; margin-bottom: 20px; }
.timepick select { width: auto; padding: 8px 10px; font-size: 13px; }
.timepick .tp-dates { display: flex; gap: 6px; align-items: center; }
.timepick .tp-dates[hidden] { display: none; }
.timepick input[type=date] { width: auto; padding: 7px 8px; font-size: 13px; }
.n-pic.face { width: 44px; height: 44px; margin-left: 10px; border-radius: 4px; overflow: hidden; }
.n-pic.medal { background: none; }

/* Requirements on a mod page: each one linked, with a Download when it is on the site */
.reqlist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.reqlist li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reqlist a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.reqlist a:not(.btn):hover { color: var(--accent); text-decoration-color: var(--accent); }
.reqlist .rq-where { font-size: 12.5px; } .reqlist .rq-where .ic { width: 12px; height: 12px; vertical-align: -1px; }
.reqlist .rq-note { font-size: 14px; margin-top: 2px; }
.reqlist .btn { flex: none; }

/* the "card details go straight to Stripe/PayPal" line wherever money is paid */
.co-safe, .paysafe { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.co-safe { margin: 14px 0 12px; color: var(--ink2); }
.co-safe .ic, .paysafe .ic { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }

/* My mods: a card per mod */
.mm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 18px; }
.mm-bar .find { flex: 1; min-width: 220px; max-width: none; margin: 0; }
.mm-bar select { width: auto; padding: 9px 10px; font-size: 14px; }
.mm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.mm-card { position: relative; display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); }
.mm-head { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.mm-link { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; color: inherit; }
.mm-link:hover b { color: var(--accent); }
.mm-pic { flex: none; width: 92px; height: 52px; background: var(--bg) center / cover; }
.mm-title { min-width: 0; }
.mm-title b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.3; }
.mm-title i { display: block; font-style: normal; font-size: 12.5px; color: var(--mute); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-edit { flex: none; }
.mm-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; padding: 12px 14px; flex: 1; }
.mm-body h4 { margin: 0 0 6px; font: 600 11px var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.mm-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.mm-links a { color: var(--accent); } .mm-links a:hover { text-decoration: underline; }
.mm-links span { color: var(--mute); font-size: 13px; }
.mm-links .mm-alert { color: #e0805a; }
.mm-vis { display: grid; gap: 4px; margin-top: 8px; font-size: 14px; } .mm-vis label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.mm-note { font-size: 13px; margin: 8px 0 0; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.mm-foot span { display: inline-flex; gap: 5px; align-items: center; } .mm-foot .ic { width: 14px; height: 14px; color: var(--mute); }
.mm-foot small { color: var(--mute); } .mm-foot .mm-when { margin-left: auto; font-size: 12px; }
@media (max-width: 420px) { .mm-grid { grid-template-columns: 1fr; } .mm-body { grid-template-columns: 1fr; } }

/* Author desk tracking: who downloaded, and activity */
.actlist { list-style: none; margin: 10px 0 0; padding: 0; }
.act { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.act em { display: block; font-style: normal; color: var(--ink2); font-size: 13.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.act time { font-size: 12.5px; white-space: nowrap; }

/* a state as a word with a dot (Live, Waiting for staff, Draft...), no boxed badge */
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink2); white-space: nowrap; }
.state i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); flex: none; }
.state.s-published, .state.s-fixed { color: var(--ink); } .state.s-published i, .state.s-fixed i { background: var(--accent); }
.state.s-waiting i, .state.s-open i, .state.s-confirmed i { background: var(--accent); }
.state.s-declined i { background: #d0644e; }
/* the numbers on a My mods card open what they count */
.mm-foot a { display: inline-flex; gap: 5px; align-items: center; color: inherit; }
.mm-foot a:hover { color: var(--accent); } .mm-foot a:hover .ic { color: var(--accent); }
.desk-cols .mm-grid { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
/* the ⋯ menu on a profile (gift a Pass, copy link, report) */
.moremenu > summary { padding-left: 12px; padding-right: 12px; }
.moremenu .sharemenu { width: 300px; }
.moremenu .sharemenu .ic { width: 15px; height: 15px; vertical-align: -2px; color: var(--accent); }
.moremenu .mm-h { font: 600 11px var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); padding: 4px 10px 0; }
.giftbtn { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 13.5px; color: var(--accent); }
.giftbtn .ic { width: 14px; height: 14px; }
.co-passes { grid-template-columns: 1fr; } .co-passes span { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; height: 46px; } .co-passes small { color: var(--mute); font-size: 12.5px; }

/* light / dark switch: shows the mode you'd switch to */
.th-dark { display: none; }
:root[data-theme="light"] .th-light { display: none; } :root[data-theme="light"] .th-dark { display: inline; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .th-light { display: none; } :root:not([data-theme="dark"]) .th-dark { display: inline; } }

/* Settings */
.setlinks { display: grid; gap: 2px; margin-top: 10px; }
.setlinks a { display: flex; gap: 10px; align-items: center; padding: 9px 8px; color: var(--ink); border-radius: 6px; }
.setlinks a:hover { background: var(--glow); color: var(--accent); }
.setlinks .ic { color: var(--accent); }

/* Settings: welcome banner, tabs, rows that open */
.set-hero { position: relative; padding: 46px 16px 34px; text-align: center; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.75)), var(--hero, none) center / cover, var(--bg2); border-bottom: 1px solid var(--line); }
.set-hero-in { display: grid; justify-items: center; gap: 8px; }
.set-hero h1 { font-size: clamp(26px, 4vw, 40px); color: #fff; margin: 6px 0 0; }
.set-hero p { margin: 0; color: rgba(255,255,255,.75); } .set-hero p b { color: #fff; }
.set-tabs { justify-content: center; border-bottom: 1px solid var(--line); }
.set-list { display: grid; }
.set-item { display: grid; gap: 6px; padding: 18px 2px; border-bottom: 1px solid var(--line); }
.set-item > b { font-size: 16px; } .set-item > i { font-style: normal; color: var(--mute); font-size: 13.5px; }
.set-item select { max-width: 260px; }
.set-row { border-bottom: 1px solid var(--line); }
.set-row > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 2px; }
.set-row > summary::-webkit-details-marker { display: none; }
.set-row > summary:hover { background: var(--glow); }
.set-row > summary span { display: grid; gap: 4px; } .set-row > summary b { font-size: 16px; } .set-row > summary i { font-style: normal; color: var(--mute); font-size: 13.5px; }
.set-row > summary .ic { color: var(--mute); transition: transform .15s; } .set-row[open] > summary .ic { transform: rotate(90deg); }
.set-body { padding: 4px 2px 20px; }
.set-body .panel { border: 0; padding: 0; background: none; }
.set-bill { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.set-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; margin-top: 12px; border: 1px solid var(--line); }
.set-plan span { display: grid; gap: 3px; } .set-plan b { color: var(--accent); font-size: 17px; } .set-plan i { font-style: normal; color: var(--mute); font-size: 13px; }
.set-h { margin: 18px 0 6px; font: 600 11px var(--f-label); letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.set-sub { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.btn.danger { background: #b5452f; color: #fff; }
@media (max-width: 720px) { .set-bill { grid-template-columns: 1fr; } }
/* two-factor set-up and recovery codes */
.twofa-setup { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.twofa-setup .qr { background: #fff; padding: 8px; line-height: 0; } .twofa-setup .qr svg { width: 100%; height: auto; }
.twofa-key { display: inline-block; padding: 6px 10px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; letter-spacing: .05em; word-break: break-all; }
.twofa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.twofa-codes code { padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); text-align: center; font-size: 15px; letter-spacing: .06em; }
@media (max-width: 560px) { .twofa-setup { grid-template-columns: 1fr; } }

/* Settings: a menu on the left, one section on the right */
.set-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; margin-top: 34px; max-width: 1100px; align-items: start; }
.set-side { position: sticky; top: 84px; }
.set-me { display: flex; gap: 12px; align-items: center; color: inherit; }
.set-me span { display: grid; gap: 4px; } .set-me b { font-size: 16px; } .set-me i { font-style: normal; color: var(--mute); font-size: 13px; } .set-me .tag { justify-self: start; }
.set-hello { margin: 10px 0 0; color: var(--accent); font-family: var(--f-display); font-size: 15px; }
.set-side h2 { font-size: 24px; margin: 22px 0 10px; }
.set-side nav { display: grid; gap: 2px; }
.set-side nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; color: var(--ink2); border-left: 2px solid transparent; }
.set-side nav a .ic { width: 18px; height: 18px; color: var(--mute); }
.set-side nav a:hover { background: var(--glow); color: var(--ink); }
.set-side nav a.on { background: var(--glow); color: var(--ink); border-left-color: var(--accent); } .set-side nav a.on .ic { color: var(--accent); }
.set-side hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.set-main { padding: 26px 28px; }
.set-title { display: flex; gap: 10px; align-items: center; font-size: 24px; margin: 0 0 6px; } .set-title .ic { width: 22px; height: 22px; color: var(--accent); }
.set-sec { padding: 20px 0; border-bottom: 1px solid var(--line); }
.set-sec:last-child { border-bottom: 0; }
.set-sec h3 { font-size: 17px; margin: 0 0 4px; } .set-sec > p.muted { margin: 0 0 12px; font-size: 14px; }
.set-sec .field { margin-bottom: 12px; } .set-sec textarea { width: 100%; }
.set-save { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; }
.set-pic { display: flex; gap: 18px; align-items: center; } .set-pic > div { display: grid; gap: 8px; } .set-pic i { font-style: normal; font-size: 13px; }
.set-radio { display: grid; gap: 8px; }
.set-radio label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; }
.set-radio label:has(input:checked) { border-color: var(--accent); background: var(--glow); }
.set-radio span { display: grid; gap: 2px; } .set-radio i { font-style: normal; color: var(--mute); font-size: 13px; }
.tagpick { display: flex; flex-wrap: wrap; gap: 6px; }
.tagpick label { padding: 5px 10px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; color: var(--ink2); user-select: none; }
.tagpick label input { display: none; }
.tagpick label:has(input:checked) { border-color: #d0644e; color: #e9a08f; text-decoration: line-through; background: color-mix(in srgb, #d0644e 12%, transparent); }
.set-people { display: grid; } .set-people form { padding: 8px 0; border-top: 1px solid var(--line); }
.set-toggles { display: grid; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle:first-child { border-top: 0; }
.toggle span { display: grid; gap: 2px; } .toggle em { font-style: normal; color: var(--mute); font-size: 13px; }
.toggle input { display: none; }
.toggle i { flex: none; position: relative; width: 40px; height: 22px; border-radius: 11px; background: var(--line); transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink2); transition: transform .15s; }
.toggle input:checked + i { background: var(--accent); } .toggle input:checked + i::after { transform: translateX(18px); background: #141209; }
.toggle.off { opacity: .6; cursor: default; }
.set-key { padding: 10px 0; border-top: 1px solid var(--line); }
.set-reports { display: grid; gap: 8px; }
.set-report { padding: 10px 12px; border: 1px solid var(--line); } .set-report.bad { border-color: #d0644e; } .set-report p { margin: 6px 0 0; font-size: 14px; }
@media (max-width: 820px) { .set-wrap { grid-template-columns: 1fr; } .set-side { position: static; } .set-main { padding: 18px; } }

/* legal pages */
.legal-list { display: grid; gap: 10px; margin-top: 20px; }
.legal-list a { display: grid; gap: 4px; color: inherit; } .legal-list a:hover b { color: var(--accent); }
.legal-doc h2 { font-size: 20px; margin: 26px 0 8px; }
.legal-doc li { margin: 4px 0; }
mark.todo { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); padding: 0 3px; }
.co-terms { font-size: 12.5px; margin: 0 0 10px; text-align: center; }

/* issues: fixed and won't-fix ones wait behind a small button at the bottom of the Issues tab */
.issue-archive { margin-top: 22px; }
.issue-archive > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-size: 13px; color: var(--mute); padding: 6px 10px; border: 1px solid var(--line); }
.issue-archive > summary::-webkit-details-marker { display: none; }
.issue-archive > summary .ic { width: 15px; height: 15px; }
.issue-archive > summary:hover { color: var(--ink); }

/* Talk: the Post button and a small search for comments and names, on one line */
.talkbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.talksearch { position: relative; width: min(280px, 100%); }
.talksearch .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--mute); pointer-events: none; }
.talksearch input[type=search] { padding: 8px 10px 8px 32px; font-size: 14px; }
#talk { scroll-margin-top: 110px; } /* the search lands here, under the top bar, not at the top of the page */
.tabs a.locked { opacity: .45; } /* Ask the Steward before the author unlocks it */
.ask-locked { opacity: .85; }
/* the Author Payout Agreement: read in a scroll box, signed below; a signed copy shows who signed and when */
.signdoc { max-height: 420px; overflow-y: auto; margin-top: 14px; padding: 16px 20px; border: 1px solid var(--line); background: var(--panel); }
.signbox h2 { display: flex; align-items: center; gap: 8px; }
.signed-box { margin-top: 14px; display: grid; gap: 4px; }
.signed-box b { display: flex; align-items: center; gap: 6px; }
/* How authors earn */
.earn h2 { font-size: 26px; }
.earn-table td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.earn-rules { padding-left: 20px; display: grid; gap: 6px; max-width: 720px; }
/* the import's list of the mod's files on Nexus, the key and the drop-by-size box */
.up-nxfiles { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.up-nxfiles ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.up-nxfiles li.placed a { text-decoration: line-through; }
.up-nxfiles li.placed span { color: var(--good, var(--ink2)); }
.up-nxway { display: grid; gap: 8px; font-size: 14px; }
.up-nxdrop { padding: 14px; }
/* the welcome pop-up (home page, first visit) */
dialog.welcome { max-width: 640px; width: calc(100% - 32px); padding: 30px 30px 26px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--accent); clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px); }
dialog.welcome::backdrop { background: rgba(0,0,0,.62); backdrop-filter: blur(2px); }
dialog.welcome h2 { font-size: 30px; margin: 8px 0 18px; }
.welcome-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.welcome-who { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--accent); }
.welcome-cols ul { margin: 8px 0 0; padding: 0 0 0 18px; display: grid; gap: 7px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.welcome-why { margin: -6px 0 20px; padding: 0 0 16px 18px; display: grid; gap: 5px; font-size: 16px; line-height: 1.45; color: var(--ink); border-bottom: 1px solid var(--line); }
.welcome-end { margin: 20px 0 16px; font-weight: 600; font-size: 15.5px; line-height: 1.5; }
@media (max-width: 560px) { .welcome-cols { grid-template-columns: 1fr; gap: 14px; } dialog.welcome { padding: 24px 18px 20px; } dialog.welcome h2 { font-size: 25px; } }
/* live activity bubbles (public/js/live.js): each one is the person's picture inside a soap bubble with a glowing rim
   in its colour (--hue), moved frame by frame by the script; only the bubble itself takes clicks */
.livebubbles { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.lb { position: absolute; left: 0; top: 100%; display: flex; align-items: center; gap: 10px; pointer-events: auto; text-decoration: none; color: var(--ink); opacity: 0; will-change: transform, opacity; }
.lb-bubble { position: relative; flex: none; width: var(--size); height: var(--size); margin-top: calc(var(--size) / -2); border-radius: 50%;
  transform: scale(var(--sx, 1), var(--sy, 1)); transition: transform .12s linear;
  /* the rim: a thin bright edge, a soft halo in the bubble's colour, and a faint rainbow sheen like a real soap film */
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--hue) 85%, #fff), 0 0 14px 2px color-mix(in srgb, var(--hue) 55%, transparent), 0 8px 22px rgba(0,0,0,.16); }
.lb-bubble::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; padding: 3px; pointer-events: none;
  background: conic-gradient(from 210deg, color-mix(in srgb, var(--hue) 90%, #fff), rgba(255,255,255,.75), color-mix(in srgb, var(--hue) 40%, #8fd3ff), rgba(255,170,220,.6), color-mix(in srgb, var(--hue) 90%, #fff));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .85; }
.lb-bubble > img, .lb-bubble > .lb-mark { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; opacity: .9; }
.lb-mark { display: grid; place-items: center; background: color-mix(in srgb, var(--hue) 22%, var(--panel)); }
.lb-mark svg { width: 62%; height: 62%; }
.lb-someone::after { content: ""; width: 34%; height: 40%; border-radius: 50% 50% 46% 46%; background: color-mix(in srgb, var(--hue) 70%, #fff); box-shadow: 0 calc(var(--size) * .3) 0 calc(var(--size) * .1) color-mix(in srgb, var(--hue) 70%, #fff); transform: translateY(-18%); opacity: .8; }
/* the shine on the glass: a bright spot top left and a small glint lower right */
.lb-sheen { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse 22% 14% at 32% 20%, rgba(255,255,255,.7), transparent 100%),
              radial-gradient(circle at 74% 80%, rgba(255,255,255,.45) 0 4%, transparent 12%),
              radial-gradient(circle at 50% 50%, transparent 58%, color-mix(in srgb, var(--hue) 30%, transparent) 100%); }
.lb-line { max-width: 250px; padding: 6px 11px; font-size: 13px; line-height: 1.35; border-radius: 14px; margin-top: calc(var(--size) / -2);
  background: color-mix(in srgb, var(--panel) 96%, transparent); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--hue) 35%, transparent); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.lb-line b { font-weight: 600; }
.lb-rise { flex-direction: row-reverse; }                 /* rise: the line sits left of the bubble */
.lb-scatter { flex-direction: column; gap: 8px; }          /* scatter: the line sits under the bubble */
.lb-scatter .lb-line { margin-top: 0; max-width: 200px; text-align: center; font-size: 12.5px; }
.lb-stream .lb-line { font-size: 12.5px; }
/* the pop: the bubble swells and vanishes, a ring spreads out and a few droplets fly off */
.lb-line { opacity: 0; } /* the script fades it in and out */
.lb.popping .lb-line { opacity: 0 !important; }
.lb.popping .lb-bubble > img, .lb.popping .lb-bubble > .lb-mark, .lb.popping .lb-sheen, .lb.popping .lb-bubble::before { animation: lb-gone .28s ease-out forwards; }
.lb.popping .lb-bubble { box-shadow: none; transition: box-shadow .2s; }
@keyframes lb-gone { to { transform: scale(1.3); opacity: 0; } }
.lb-burst { position: absolute; inset: 0; pointer-events: none; }
.lb-burst .lb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--hue) 80%, #fff); animation: lb-ring .45s ease-out forwards; }
.lb-burst .lb-drop { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: color-mix(in srgb, var(--hue) 70%, #fff); animation: lb-drop .5s ease-out forwards; }
@keyframes lb-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@keyframes lb-drop { from { transform: translate(0, 0) scale(1); opacity: .9; } to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.lb-switch { position: fixed; left: 16px; bottom: 16px; z-index: 61; width: auto; max-width: 220px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
@media (max-width: 560px) { .lb-line { max-width: 170px; font-size: 12px; } }
/* the description editor toolbar */
.edbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-bottom: 0; background: var(--bg2, var(--panel)); }
.edbar button, .edbar select, .edbar .edcolor { height: 32px; min-width: 32px; padding: 0 8px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.edbar button:hover, .edbar select:hover, .edbar .edcolor:hover { border-color: var(--line); background: var(--panel); }
.edbar select { width: auto; min-width: 84px; height: 32px !important; padding: 0 26px 0 8px !important; line-height: 30px; font-size: 13.5px; } /* the site-wide form padding would clip its text */
.edbar :disabled, .edbar .edcolor:has(:disabled) { opacity: .35; cursor: default; }
.edbar .edcolor { position: relative; display: inline-grid; place-items: center; font-weight: 700; }
.edbar .edcolor input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.edbar .edcolor span { border-bottom: 3px solid var(--accent); line-height: 1.1; }
.edbar .edsep { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
select.needs { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
/* a game with no mods yet */
.firsthere { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px; }
.firsthere .fh-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.firsthere .fh-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.firsthere h2 { margin: 0 0 10px; }
@media (max-width: 760px) { .firsthere { grid-template-columns: 1fr; } }
/* a game with no logo file: its name as the title */
.ghero .gtitle { font-family: var(--f-display); font-size: clamp(34px, 5vw, 64px); line-height: 1.02; margin: 6px 0 14px; max-width: 14ch; text-shadow: 0 2px 18px color-mix(in srgb, var(--bg) 70%, transparent); }
.ft-gname { font-family: var(--f-display); font-size: 20px; }
/* the game picker in the header: a long game name ends in "..." so the search box keeps its room */
.switch .sw-label { flex-shrink: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.find { min-width: 170px; }
.ghero .gtitle-full { font-family: var(--f-label); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin-top: 6px; }
/* the game picker: a filter box on top, the list scrolls (there are many games) */
.sw-panel .sw-filter { width: 100%; margin: 0 0 6px; height: 36px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.sw-panel .sw-list { max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
/* the home page's game wheel: one row of every game, nine in view, scroll sideways (arrows, wheel, drag on touch) */
.coverwheel { position: relative; }
/* room around the covers inside the scroller, taken back with a negative margin, so a cover's hover lift, gold ring and
   shadow show in full like they did in the old grid (a scroller cuts off anything drawn past its edge) */
.coverwheel .covers { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 12px; scrollbar-width: none;
  padding: 10px 6px 26px; margin: -10px -6px -26px; scroll-padding: 0 6px; }
.coverwheel .covers::-webkit-scrollbar { display: none; }
.coverwheel .gcover { flex: 0 0 calc((100% - 8 * 12px) / 9); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1100px) { .coverwheel .gcover { flex-basis: calc((100% - 4 * 12px) / 5); } }
@media (max-width: 640px) { .coverwheel .gcover { flex-basis: 132px; } .cw-btn { display: none; } }
.cw-btn { position: absolute; top: calc(50% - 40px); z-index: 2; width: 40px; height: 56px; display: grid; place-items: center; border: 0; cursor: pointer; background: color-mix(in srgb, var(--bg) 82%, transparent); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(0,0,0,.25); }
.cw-btn:hover { color: var(--accent); }
.cw-btn.prev { left: -14px; } .cw-btn.prev .ic { transform: rotate(180deg); }
.cw-btn.next { right: -14px; }
.cw-btn[hidden] { display: none; }
/* the desktop app's Install link, under a file's Download button */
.appinstall { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink2); text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.appinstall:hover { color: var(--accent); }
/* every game: the full list */
.allgames-head { align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.allgames-head h1 { margin: 0 0 4px; }
.allgames-tools { gap: 10px; }
.allgames-tools .allgames-find { width: 240px; }
.allgames-tools select { width: auto; }
.allgames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; margin-top: 18px; }
.allgames .gcover[hidden] { display: none; }
.allgames-none { margin-top: 18px; }
.filters select.gamepick { width: 100%; margin-top: 4px; }
/* a dropdown you can tick several things in (Games you mod) */
.multipick { position: relative; }
.multipick summary { list-style: none; cursor: pointer; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.multipick summary::-webkit-details-marker { display: none; }
.multipick summary::after { content: "▾"; color: var(--mute); margin-left: 10px; }
.multipick .mp-panel { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,.25); padding: 8px; }
.multipick .mp-panel input[type=search] { width: 100%; margin-bottom: 6px; }
.multipick .mp-list { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.multipick .mp-list label[hidden] { display: none; }

/* a game's home: the sort shortcuts, a tab strip of their own below the game's banner (apart from the category tags), each game's kit styles it */
.gsorts { margin: 30px 0 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.gsorts a { font-size: 15px; }
.gsorts a:hover { color: var(--accent); }
.gamemain > .gsorts + .section { margin-top: 26px !important; }

/* the Modhold app, advertised: a line under a mod's download button, a panel under its files */
.appad-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink2); text-decoration: none; padding: 2px 2px 0; }
.appad-line .ic { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--accent); }
.appad-line b { color: var(--accent); font-weight: 600; }
.appad-line:hover span { color: var(--ink); }
.appad { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; margin-top: 22px; text-decoration: none; color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.appad:hover { border-color: var(--accent); }
.appad-ic { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--accent); }
.appad-ic .ic { width: 22px; height: 22px; }
.appad > span:nth-child(2) { display: grid; gap: 3px; } .appad .soft { font-size: 14.5px; }
.appad-go { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-label); font-size: 12.5px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) { .appad { grid-template-columns: auto 1fr; } .appad-go { grid-column: 1 / -1; } }
.apppage .panel h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.apppage .panel h3 .ic { color: var(--accent); }

/* a mod card's rising score: a flame in the accent colour when the mod is rising now */
.modcard .nums .rise.hot { color: var(--accent); }
.modcard .nums .rise.hot .ic { fill: color-mix(in srgb, var(--accent) 35%, transparent); }

/* a file's Edit menu on the mod edit page: opens a small panel under the button */
.filemenu { position: relative; }
.filemenu > summary { list-style: none; cursor: pointer; }
.filemenu > summary::-webkit-details-marker { display: none; }
.filemenu-pop { margin-top: 8px; width: 300px; padding: 14px; text-align: left; } /* opens inside its row (a scrolling table would cut a pop-up off) */
.filemenu[open] > summary { color: var(--accent); }
.linkbtn.danger { color: var(--bad); }
/* a comment's own Edit box */
.cmt-edit > summary { list-style: none; display: inline-flex; }
.cmt-edit > summary::-webkit-details-marker { display: none; }
.cmt-edit[open] { flex-basis: 100%; }

/* chats: older messages link, the conversation's ... menu, a sent message's delete button (shows on hover) */
.chat-older { display: block; text-align: center; font-size: 13px; color: var(--ink2); margin: 4px 0 12px; }
.chat-older:hover { color: var(--accent); }
.chat-head { position: relative; }
.chat-head .chat-more { margin-left: auto; }
.bub { position: relative; }
.bub .bub-del { position: absolute; top: 2px; left: -26px; opacity: 0; transition: opacity .15s; }
.bub:hover .bub-del, .bub .bub-del:focus-within { opacity: 1; }
.bub .bub-del .ic { width: 13px; height: 13px; }

/* the "Delete this mod" panel at the bottom of the edit page */
.dangerzone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 14%, transparent); }

/* changelog entries on the edit page */
.cl-entry { padding: 10px 0; border-top: 1px solid var(--line); }
.cl-entry > summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.cl-entry > summary::-webkit-details-marker { display: none; }
.cl-entry > summary .soft { font-size: 14px; }

/* the edit page's pictures: a caption box under each, arrows to move it */
.media-cap { width: 100%; margin-top: 6px; font-size: 13.5px; padding: 6px 8px; }
.ic.flip { transform: rotate(180deg); }

/* picture tiles on the edit page: move arrows on the picture's top corner, the two actions on one line under the caption */
#media .gallery > div { position: relative; }
#media .gallery .row { font-size: 12px; white-space: nowrap; gap: 6px !important; justify-content: space-between; flex-wrap: nowrap; min-width: 0; }
#media .gallery .row > * { min-width: 0; }
.media-move { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; }
.media-move button { display: grid; place-items: center; width: 26px; height: 26px; border: 0; cursor: pointer; background: rgba(10,10,12,.72); color: #f1ece2; }
.media-move button:hover { background: var(--accent); color: #141209; }
.media-move .ic { width: 14px; height: 14px; }

/* sort and show choices: one dropdown with a small label, never a row of pills (Seth's rule) */
.sortpick { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.sortpick > span { font-family: var(--f-label); font-size: 12px; letter-spacing: var(--l-track); text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.sortpick select { width: auto; min-width: 170px; padding: 8px 10px; font-size: 13px; } /* the same size as the "All time" picker beside it */

/* a notification about a person shows their profile picture, filling the square (made pictures too) */
.n-pic.face .avwrap, .n-pic.face .avf { display: block; width: 100%; height: 100%; }
.n-pic.face .av { width: 100%; height: 100%; border-radius: 0; }

/* suspended or banned: a plain bar under the top bar on every page */
.restrictbar { position: relative; z-index: 2; padding: 10px 16px; text-align: center; font-size: 14px; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
.restrictbar a { color: var(--accent); text-decoration: underline; }

/* staff: the copy of what was reported, folded */
.rep-copy summary { font-size: 13.5px; }

/* pictures on the edit page: drag to reorder */
.media-sort .media-tile { cursor: grab; user-select: none; transition: opacity .12s; }
.media-sort .media-tile > a { touch-action: none; } /* on a phone, drag by the picture itself; the rest of the page still scrolls */
.media-sort .media-tile input, .media-sort .media-tile button { cursor: auto; }
.media-sort .media-tile.dragging { opacity: .55; outline: 2px dashed var(--accent); outline-offset: 2px; cursor: grabbing; }
.media-sort.order-saved { outline: 1px solid var(--accent); outline-offset: 6px; transition: outline-color .6s; }

/* the description editor's live preview */
.edpreview { margin-top: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.edpreview-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.edpreview-head .linkbtn { margin-left: auto; }
.edpreview-body { padding: 14px 16px; max-height: 520px; overflow: auto; }

/* phones and narrow screens: the menu button (the top links are hidden there) and the search box that opens under the header */
.narrow-only { display: none; }
@media (max-width: 1100px) { .narrow-only { display: inline-grid; } }
.navmenu { position: relative; }
.navmenu > summary { list-style: none; }
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu[open] > summary { color: var(--ink); border-color: var(--line); }
.navmenu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 230px; display: grid; padding: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.navmenu-panel a { padding: 11px 12px; border-radius: var(--radius); color: var(--ink); font-family: var(--f-label); font-size: 14px; letter-spacing: var(--l-track); text-transform: var(--l-case); }
.navmenu-panel a:hover { background: var(--glow); }
.navmenu-sep { height: 1px; margin: 6px 4px; background: var(--line); }
@media (max-width: 640px) {
  .top-in { position: relative; }
  header.top.searching .find { display: flex; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 8px 12px 10px; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 90; }
  header.top.searching .find kbd { display: none; }
}
@media (max-width: 640px) {
  .userbox > .signin, .userbox > a.btn[href="/join"] { display: none; } /* in the menu on phones, so the header fits */
}
.navmenu-panel { z-index: 1000; }
@media (max-width: 640px) {
  header.top.searching .find { left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; }
  header.top.searching .find input { width: 100% !important; }
}
@media (max-width: 640px) { header.top.searching .find { position: absolute !important; top: 100% !important; display: flex !important; } }

/* "From the Watchtower": a game's mods in their authors' own videos (src/routes/browse.js watchtower) */
.vidshow .section-head h2 { margin: 0; }
.vidsub { margin: 4px 0 0; font-size: 14px; color: var(--mute); }
.vidnav { display: flex; gap: 8px; }
.vidarrow { width: 38px; height: 38px; display: grid; place-items: center; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.vidarrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.vidarrow:disabled { opacity: .35; cursor: default; }
.vidarrow .ic { width: 18px; height: 18px; }
.vidarrow.back .ic { transform: rotate(180deg); }
.vidrail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.vidrail::-webkit-scrollbar { display: none; }
.vidcard { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .18s ease, transform .18s ease; }
.vidcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.vidthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--bg2); cursor: pointer; overflow: hidden; }
.vidthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vidthumb:hover img { transform: scale(1.04); }
.vidplay { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.62); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); transition: background .15s ease, transform .15s ease; }
.vidplay svg { width: 26px; height: 26px; margin-left: 3px; }
.vidthumb:hover .vidplay { background: var(--accent); color: var(--accent-ink, #141209); transform: scale(1.06); }
.vidinfo { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 5px; color: inherit; }
.vidinfo:hover { color: inherit; }
.vidinfo .name { font-family: var(--f-display); font-size: 17px; line-height: 1.2; text-transform: var(--d-case); letter-spacing: var(--d-track); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vidinfo:hover .name { color: var(--accent); }
.vidinfo .by { font-size: 13px; color: var(--mute); }
.vidinfo .sum { font-size: 14px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .vidrail { grid-auto-columns: calc((100% - 22px) / 2); } }
@media (max-width: 620px) { .vidrail { grid-auto-columns: 82%; } .vidnav { display: none; } }
/* the video, large */
body.vidopen { overflow: hidden; }
.vidbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.88); display: grid; grid-template-columns: minmax(0, 1100px); justify-content: center; align-content: center; padding: 24px; }
.vidbox-in { width: 100%; min-width: 0; }
.vidbox iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: #000; }
.vidbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: #eee; }
.vidbar b { flex: 1; min-width: 0; font-family: var(--f-display); font-size: 18px; text-transform: var(--d-case); letter-spacing: var(--d-track); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vidinfo .vidviews { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 13px; color: var(--mute); }
.vidinfo .vidviews svg { width: 12px; height: 12px; }
/* narrow phones, signed in: search, menu, Pass, bell, mail and your picture all fit the header (Seth, 8 Nov 2026: the
   page scrolled sideways). The game picker shows its picture without the words; the icons sit a little closer. */
@media (max-width: 440px) {
  .top-in { gap: 6px; }
  .switch .sw-label { display: none; }
  .userbox { gap: 2px; min-width: 0; }
  .userbox .iconbtn, .userbox > details > summary.iconbtn { width: 34px; height: 34px; }
  .ph-name { font-size: 27px; } /* a long name fits beside the picture instead of breaking mid-word */
}

/* phones, every page (Seth, 8 Nov 2026: "a logic review for mobile on the entire site"; checked with tools/mobile_check.mjs) */
@media (max-width: 640px) {
  /* boxes in a grid or a row shrink to the screen instead of pushing the page sideways */
  main :where(div, section, article, aside, form, fieldset, label, header, footer, nav, ul, ol, li, p, h1, h2, h3, h4, dl, dd, dt) { min-width: 0; }
  main :where(code, p, h1, h2, h3, td, .ph-name) { overflow-wrap: break-word; }
  main code { overflow-wrap: anywhere; }
  .looks-head { flex-wrap: wrap; }
  /* a button never runs past the screen: a long label wraps onto a second line inside it */
  main .btn { max-width: 100%; white-space: normal; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; line-height: 1.25; }
  input[type=file] { max-width: 100%; }
  /* iPhones zoom the whole page in when you tap a text box under 16px */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
  /* big enough to tap */
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; }
  .linkbtn { min-height: 32px; }
}
/* "This mod needs other mods", before a download (src/reqpop.js) */
.reqpop { width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg, 10px); background: var(--bg2); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.reqpop::backdrop { background: rgba(0,0,0,.6); }
.reqpop-in { padding: 22px 22px 18px; overflow-y: auto; }
.reqpop h2 { margin: 6px 0 8px; font-size: 24px; }
.reqpop .reqlist { margin: 14px 0 18px; }
.reqpop .reqlist li { padding: 10px 0; border-top: 1px solid var(--line); }
.reqpop-go { justify-content: flex-end; gap: 10px; }
/* the Watchtower's Most views / Newest, beside its arrows */
.vidtools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; max-width: 100%; }
.section-head:has(> .vidtools) { flex-wrap: wrap; row-gap: 10px; } /* on a phone the buttons drop under the heading instead of past the screen's edge */
.vidsort { display: flex; gap: 4px; }
.vidsort button { font: 600 12px var(--f-label); letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--mute); cursor: pointer; min-height: 32px; }
.vidsort button:hover { color: var(--ink); }
.vidsort button.on { color: var(--ink); border-color: var(--accent); }
/* a list loading its next page as you scroll (public/js/app.js) */
.pager.loading { opacity: .6; }
.pager.loading::after { content: 'Loading more…'; color: var(--mute); font-size: 14px; align-self: center; margin-left: 10px; }

/* the few lines of words at the foot of a game page (src/routes/browse.js gameAbout): quiet, under the cards */
.gameabout h2 { font-size: clamp(15px, 1.4vw, 18px); margin-bottom: 8px; }
.gameabout p { max-width: 920px; font-size: 15px; margin: 0 0 8px; }

/* the Bids list filters: one row of dropdowns, wrapping on a phone (Tan, 8 Nov) */
.bidfilters { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 14px; }
.bidfilters .sortpick { margin: 0; }
@media (max-width: 600px) { .bidfilters .sortpick { width: 100%; justify-content: space-between; } .bidfilters .sortpick select { flex: 1; min-width: 0; } }
/* Settings, Past watched (src/routes/people.js): a picture, the mod and when, and Watch again */
.pastwatch { display: grid; gap: 4px; }
.pw-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.pw-row:first-child { border-top: 0; }
.pw-pic { width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--bg2) center / cover; }
.pw-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pw-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pw-text i { font-style: normal; font-size: 13px; color: var(--mute); }
@media (max-width: 600px) { .pw-row { grid-template-columns: 72px minmax(0, 1fr); } .pw-pic { width: 72px; } .pw-row > :last-child { grid-column: 2; justify-self: start; } }
.watchpick .sharemenu button { width: 100%; }
.wl-item { display: grid; gap: 6px; }
.wl-until { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); padding-left: 2px; }
.wl-until .ic { width: 14px; height: 14px; }
/* the home page's game art (src/routes/browse.js): behind the top of the page, scrolls away with it, fades into the
   page colour so every word on it stays readable in both themes; it crossfades to the game cover you point at */
.homeart { position: absolute; left: 0; right: 0; top: 0; height: 760px; z-index: -1; pointer-events: none; overflow: hidden; }
.homeart i { position: absolute; inset: 0; background: center 20% / cover no-repeat; opacity: 0; transition: opacity .6s ease; }
.homeart i.on { opacity: 1; }
.homeart::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 45%, var(--bg) 92%); }
body.hub-home .shelf { background: transparent; border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }
body.hub-home .shelf-head h1, body.hub-home .shelf-head .muted, body.hub-home .shelf-head .more { text-shadow: 0 1px 10px var(--bg), 0 0 2px var(--bg); }
body.hub-home .shelf-head .muted { color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .homeart i { transition: none; } }
/* the top bar's menus (src/layout.js navDrops): the link works as before; on a desktop with a mouse a panel opens when
   you point at it or tab into it, drawn like the account menu. A short pause before it opens and before it shuts, so
   moving across the bar doesn't flash panels; the gap under the link is bridged so the pointer can reach the panel */
.navdrop { position: relative; display: flex; align-items: center; }
.navpanel { display: none; }
@media (hover: hover) and (min-width: 1101px) {
  .navpanel { display: block; position: absolute; top: 100%; left: -14px; padding-top: 12px; z-index: 95; visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .15s ease .12s, transform .15s ease .12s, visibility 0s linear .27s; }
  .navdrop:hover > .navpanel, .navdrop:focus-within > .navpanel { visibility: visible; opacity: 1; transform: none; transition-delay: .12s, .12s, 0s; }
  .navdrop:hover > a, .navdrop:focus-within > a { color: var(--ink); }
}
.navpanel > .np-cols, .navpanel > .np-col { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.45); padding: 8px; }
.navpanel > .np-cols { display: grid; grid-template-columns: 190px 230px; gap: 4px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.navpanel > .np-col { width: 260px; }
.np-col { display: flex; flex-direction: column; font-family: var(--f-body, inherit); text-transform: none; letter-spacing: normal; font-weight: 400; }
.np-title { padding: 8px 10px 6px; font: 600 11.5px var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.np-col a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius); color: var(--ink2); font-size: 15px; text-transform: none; letter-spacing: normal; }
.np-col a:hover, .np-col a:focus-visible { background: var(--glow); color: var(--ink); }
.np-n { font-size: 12.5px; color: var(--mute); }
.np-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 18px; background: var(--bg2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.45); font: 600 12.5px var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.np-foot:hover { color: var(--accent); }
.np-foot .ic { width: 15px; height: 15px; }
/* the home page's author boards (src/routes/browse.js authorBoards) */
.authboards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.ab-box { padding: 16px 18px; display: flex; flex-direction: column; }
.ab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.ab-head h2 { font-size: 18px; font-weight: 700; }
.ab-head .muted { font-size: 13px; }
.ab-head select { width: auto; min-width: 0; padding: 6px 10px; font-size: 13px; }
.ab-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.ab-list a { display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line); color: inherit; border-radius: 0; }
.ab-list li:first-child a { border-top: 0; }
.ab-list a:hover { background: var(--glow); }
.ab-rank { text-align: center; font-weight: 700; color: var(--mute); }
.ab-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.ab-n { font-size: 13px; color: var(--mute); white-space: nowrap; }
.ab-empty { padding: 14px 6px; font-size: 14px; }
@media (max-width: 900px) { .authboards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .ab-list a { grid-template-columns: 18px 36px minmax(0, 1fr); } .ab-n { grid-column: 3; font-size: 12.5px; } }
/* "From players" on a mod's Media tab (src/playermedia.js) */
.pmedia { margin-top: 34px; }
.pm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.pm-head h2 { font-size: 20px; }
.pm-head p { margin: 4px 0 0; font-size: 13.5px; }
.pm-add { position: relative; }
.pm-add > summary { list-style: none; cursor: pointer; }
.pm-add > summary::-webkit-details-marker { display: none; }
.pm-form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 340px; max-width: calc(100vw - 32px); display: grid; gap: 10px; padding: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.4); background: linear-gradient(var(--panel), var(--panel)), var(--bg); }
.pm-form label { display: grid; gap: 4px; } .pm-form label span { font-size: 13px; color: var(--ink2); }
.pm-form .btn { justify-self: start; }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.pm-tile { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pm-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--bg2) center / cover; box-shadow: 0 0 0 1px var(--line); }
.pm-vid .vidplay { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
.pm-tile figcaption { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.pm-cap { color: var(--ink); }
.pm-btns { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.pm-wait { margin-bottom: 22px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.pm-wait h3 { font-size: 15px; margin-bottom: 10px; }
/* a mod description's Contents list (src/toc.js) */
.toc { float: none; margin: 0 0 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--bg2) 70%, transparent); max-width: 520px; }
.toc b { display: block; font: 600 12px var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.toc a { color: var(--ink2); }
.toc a:hover { color: var(--accent); }
.toc-anchor { display: block; position: relative; top: -90px; visibility: hidden; height: 0; } /* lands below the sticky top bar */
.prose .toc ol, .toc ol { margin: 0; padding-left: 22px; gap: 2px; }
.prose .toc li, .toc li { margin: 0; font-size: 15px; line-height: 1.45; }
.prose .toc a, .toc a { text-decoration: none; }
.prose .toc a:hover, .toc a:hover { text-decoration: underline; }
/* what an author makes, with counts: on their profile (chips) and on the Authors page's cards (src/routes/people.js) */
.makes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ac-makes { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 14px 10px; font-size: 12.5px; color: var(--mute); }
.ac-makes b { color: var(--ink2); font-weight: 600; }
/* the free frames earned by playing a part (src/cosmetics.js, 8 Nov 2026) */
.fr-oak { background: linear-gradient(135deg, #b08158, #6b4426 45%, #3a2414); }
.fr-obsidian { background: linear-gradient(135deg, #3b3150, #0d0b12 45%, #000 60%, #6e55b8); box-shadow: 0 0 8px rgba(130,100,220,.35); }
.fr-runic { background: repeating-conic-gradient(from 0deg, #2b2a28 0 18deg, #d8b45a 18deg 22deg); box-shadow: 0 0 8px rgba(216,180,90,.35); }
.fr-seal { background: radial-gradient(circle at 30% 30%, #ff7a6a, #a3161f 55%, #4a0710); box-shadow: inset 0 0 0 1px #e8b94a; }
.fr-bard { background: linear-gradient(135deg, #ffd27a, #c98b2c 40%, #3d7fb8 41%, #1f4f7a); }
.fr-hoard { background: radial-gradient(circle at 25% 25%, #fff0b8 0 10%, transparent 11%), radial-gradient(circle at 70% 60%, #fff0b8 0 8%, transparent 9%), linear-gradient(135deg, #f3cf7a, #c98b2c 50%, #7a4f12); }
.fr-dragonhoard { background: conic-gradient(from var(--spin), #fff0b8, #e8b94a, #8a5d0d, #ffd27a, #fff0b8); animation: spin 7s linear infinite; box-shadow: 0 0 14px rgba(232,185,74,.55); }
.fr-judge { background: linear-gradient(135deg, #e9ecee, #a4abb1 30%, #233a6a 31%, #142447 70%, #a4abb1 71%); }
.fr-banner { background: repeating-linear-gradient(90deg, #b3122b 0 6px, #f3e6cf 6px 9px); }
.fr-crest { background: linear-gradient(135deg, #e8b94a, #6a2c91 40%, #3b1557 70%, #e8b94a); }
.fr-forge { background: linear-gradient(135deg, #ffb35c, #e0472f 35%, #3a2a24 65%, #1d1714); box-shadow: 0 0 10px rgba(255,120,40,.4); }
.fr-guild { background: linear-gradient(135deg, #d9b36a, #8a6a2e 30%, #1d2b4a 31%, #121c33 70%, #d9b36a 71%); }
@media (prefers-reduced-motion: reduce) { .fr-dragonhoard { animation: none; } }
/* Guides (src/guides.js) */
.guidegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.guidecard { display: flex; flex-direction: column; gap: 8px; color: inherit; }
.guidecard h3 { font-size: 18px; }
.guidecard p { margin: 0; font-size: 15px; flex: 1; }
.guidecard .more { font-size: 13px; color: var(--ink2); display: inline-flex; gap: 6px; align-items: center; }
.guidecard:hover { border-color: var(--accent); }
.guideback { display: inline-flex; align-items: center; gap: 6px; } .guideback .ic { transform: rotate(180deg); }
/* the download window's Required and Optional parts (src/reqpop.js) */
.rq-head { display: flex; align-items: baseline; gap: 8px; font-size: 15px; margin: 14px 0 0; }
.rq-optional { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.rq-optional > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rq-optional > summary::-webkit-details-marker { display: none; }
.rq-optional > summary > span { font-size: 13px; }
.rq-optional > summary h3::after { content: ' +'; color: var(--mute); }
.rq-optional[open] > summary h3::after { content: ' −'; }
.rq-optional .reqlist { margin-top: 6px; }
/* Watch: one click; pointing at it shows "or just for a while" under it (src/routes/mod.js) */
.watchpick { position: relative; }
.watch-for { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; padding: 8px; margin-top: 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.45); flex-wrap: wrap; gap: 6px; align-items: center; }
.watch-for::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* the pointer can cross the gap */
.watch-for .muted { width: 100%; font-size: 12.5px; padding: 0 2px 2px; }
.watch-for button { flex: 1; padding: 6px 8px; border-radius: var(--radius); border: 1px solid var(--line); background: none; color: var(--ink2); font: inherit; font-size: 13.5px; cursor: pointer; }
.watch-for button:hover { color: var(--ink); border-color: var(--accent); }
@media (hover: hover) { .watchpick:hover .watch-for, .watchpick:focus-within .watch-for { display: flex; } }
/* a person's own links under their name, and the Settings fields for them (src/sociallinks.js) */
.soclinks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.soclinks a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink2); }
.soclinks a:hover { color: var(--accent); border-color: var(--accent); }
.soclinks .ic { width: 18px; height: 18px; }
.soc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px 16px; }
.soc-field { display: grid; gap: 4px; }
.soc-field > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink2); }
.soc-field .ic { width: 16px; height: 16px; }
/* the home page's featured mod as a slideshow (src/routes/browse.js; switched on from the test copy's Options for now) */
.featshow { position: relative; }
.fs-ctrl { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.fs-ctrl[hidden] { display: none; }
.fs-ctrl .cw-btn { position: static; transform: none; }
.fs-ctrl .cw-btn.prev .ic { transform: rotate(180deg); }
.fs-dots { display: flex; gap: 8px; }
.fs-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--ink2); background: none; cursor: pointer; }
.fs-dots button.on { background: var(--accent); border-color: var(--accent); }
/* My games (src/mygames.js): the star on a game's page, the mark on your games' covers and in the game picker */
.gstar-form { display: contents; }
.gstar-big .ic { width: 18px; height: 18px; }
.gstar-big.on { color: var(--accent); border-color: var(--accent); }
.gcover { position: relative; }
.gc-mine { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,10,12,.78); color: var(--accent); font-size: 14px; line-height: 1; }
.sw-mine { margin-left: auto; color: var(--accent); font-size: 13px; }
/* the search bar's drop-down when empty: My games and Recent searches (public/js/app.js) */
.suggest .sg-sec { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 4px; font: 600 11px var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.suggest .sg-sec a { font: 500 12px var(--f-body); letter-spacing: normal; text-transform: none; color: var(--ink2); }
.suggest .sg-sec a:hover { color: var(--accent); }
.suggest button .sg-cover { width: 22px; height: 30px; object-fit: cover; border-radius: 3px; flex: none; margin-right: 10px; vertical-align: middle; display: inline-grid; place-items: center; }
.suggest .sg-clock { color: var(--mute); width: 22px; height: auto; }
.suggest button:has(.sg-cover) { justify-content: flex-start; align-items: center; gap: 0; }
header .suggest button:has(.sg-cover), .suggest button:has(.sg-cover) { flex-direction: row; align-items: center; justify-content: flex-start; }
/* the quick look at a mod's pictures from its card (public/js/app.js) */
.modcard .cover { position: relative; }
.peek { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(10,10,12,.72); color: #fff; border: 1px solid rgba(255,255,255,.2); opacity: 0; transition: opacity .15s; cursor: zoom-in; }
.peek .ic { width: 18px; height: 18px; }
.modcard:hover .peek, .modcard:focus-within .peek, .peek:focus-visible { opacity: 1; }
.peek:hover { border-color: var(--accent); color: var(--accent); }
@media (hover: none) { .peek { opacity: 1; } }
.peekbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.82); display: grid; place-items: center; padding: 16px; }
.pk-in { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.pk-top { display: flex; align-items: center; gap: 12px; }
.pk-top b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.pk-x { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: none; color: var(--ink2); font-size: 22px; line-height: 1; cursor: pointer; }
.pk-x:hover { color: var(--ink); border-color: var(--accent); }
.pk-stage { position: relative; display: grid; place-items: center; background: #000; border-radius: var(--radius); min-height: 200px; }
.pk-stage img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; display: block; }
.pk-stage .cw-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.pk-stage .cw-btn.prev { left: 8px; } .pk-stage .cw-btn.next { right: 8px; }
.pk-stage .cw-btn.prev .ic { transform: rotate(180deg); }
.pk-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
/* an import's progress (public/js/app.js): a bar and what it is doing, with the seconds */
.up-import-msg.working { display: grid; gap: 6px; }
.imp-bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.imp-bar i { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
/* the game on a mod card, in gold (Seth's pick B, 8 Nov 2026): shown where games mix (home, search, every-game lists,
   profiles); a game's own pages are all one game, so it is left out there */
.by-game b { color: var(--accent); font-weight: 600; }
[data-kit]:not([data-kit="hub"]) .by-game { display: none; }
/* anything put straight into the upload form spans its full width, never taking the side column (8 Nov 2026) */
.upload > .notice, .upload > .seal { grid-column: 1 / -1; }

/* Requirements in the mod forms (src/routes/author.js reqEditor, public/js/app.js [data-reqedit]): the same list as on the mod page */
.reqedit .reqhelp { display: block; color: var(--ink2); font-size: 14px; margin: 2px 0 10px; line-height: 1.45; }
.reqedit .reqrows { list-style: none; padding: 0; margin: 0 0 10px; border-top: 1px solid var(--line); }
.reqedit .reqrows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.reqedit .rq-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reqedit .rq-main a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.reqedit .rq-main a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.reqedit .rq-where { font-size: 12.5px; }
.reqedit .reqrows select { width: auto; flex: none; padding: 6px 28px 6px 10px; font-size: 14px; }
.reqedit .reqrows .linkbtn { flex: none; }
.reqedit .reqadd { position: relative; display: flex; gap: 8px; align-items: center; }
.reqedit .reqadd input { flex: 1; min-width: 0; }
.reqedit .reqadd .btn { flex: none; white-space: nowrap; }
.reqedit .reqlink { margin-top: 10px; padding: 14px; border: 1px solid var(--line); background: var(--bg2, var(--panel)); }
.reqedit .reqlink .field { margin: 0 0 10px; }
.suggest button.sg-addlink { flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--ink2); }
.suggest button.sg-addlink b { color: var(--accent); }
@media (max-width: 560px) {
  .reqedit .reqrows li { flex-wrap: wrap; gap: 8px 12px; }
  .reqedit .rq-main { flex-basis: 100%; }
  .reqedit .reqadd { flex-wrap: wrap; }
  .reqedit .reqadd .btn { width: 100%; }
}
.reqedit .rq-nolink { font-size: 12.5px; color: var(--accent); }

/* the description box's Preview (public/js/app.js): the same box shows the description formatted, and you keep writing in it */
.edbar .edpv { margin-left: auto; height: 32px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 13px var(--f-label, inherit); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.edbar .edpv:hover { border-color: var(--accent); color: var(--accent); }
.edbar .edpv[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg, #111); }
.edbar [data-off] { opacity: .35; pointer-events: none; }
.sceditor-container { position: relative; width: 100% !important; border: 1px solid var(--line); background: var(--panel, var(--bg2)); box-sizing: border-box; }
.sceditor-container iframe, .sceditor-container textarea { display: block; width: 100% !important; height: 100% !important; border: 0; background: transparent; box-sizing: border-box; }
.sceditor-container .sceditor-toolbar, .sceditor-container .sceditor-grip, .sceditor-dropdown { display: none !important; }
.edmd { min-height: 300px; max-height: 70vh; overflow: auto; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel, var(--bg2)); }
/* the Post a mod form's pictures can be dragged into order, like the edit page's */
.thumbs .thumb { cursor: grab; touch-action: none; user-select: none; }
.thumbs .thumb.dragging { opacity: .55; outline: 2px dashed var(--accent); outline-offset: 2px; cursor: grabbing; }

/* Mod ideas (src/routes/ideas.js): the vote box beside each idea, and the "already here" box when you share one */
.ib-row { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 14px; }
.ib-vote { margin: 0; }
.ib-vote button, span.ib-vote { display: grid; justify-items: center; width: 56px; padding: 6px 0; border: 1px solid var(--line); background: transparent; color: var(--ink2); font: inherit; font-size: 13px; cursor: pointer; line-height: 1.2; }
span.ib-vote { cursor: default; }
.ib-vote b { font-size: 17px; color: var(--ink); }
.ib-vote button:hover { border-color: var(--accent); color: var(--accent); }
.ib-vote.on button { border-color: var(--accent); color: var(--accent); }
.ib-vote.on b { color: var(--accent); }
.ib-row .br-title { min-width: 0; color: inherit; text-decoration: none; }
.ib-sim { border: 1px solid var(--accent); padding: 14px 16px; margin: 4px 0 6px; }
.ib-sim .ib-row { border-bottom: 1px solid var(--line); padding: 10px 0; }
.ib-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 10px; }
.ib-side { display: flex; flex-direction: column; gap: 10px; width: 250px; flex: none; }
@media (max-width: 700px) { .ib-head { flex-direction: column; } .ib-side { width: 100%; } .ib-row { grid-template-columns: 56px 1fr; } .ib-row .br-nums { grid-column: 2; } }

/* the big buttons beside a mod: a long label wraps inside the button instead of running out of it (Seth, 10 Nov 2026) */
.actions .btn.big { white-space: normal; text-align: center; line-height: 1.35; min-height: 48px; height: auto; padding-top: 10px; padding-bottom: 10px; }
