/* JoyStats theme additions.
   Base component styles live in joystats-base.css (extracted from the design
   mockup). This file holds: the self-hosted font, the container-query root,
   editing-mode visibility, and small WordPress-specific glue. */

/* Self-hosted Nine By Five (CC BY-SA 3.0, see assets/fonts/FONT-LICENSE.txt). */
@font-face {
	font-family: 'Nine By Five';
	src: url('../fonts/NineByFive.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Continuous page background: html matches body so there's no dropoff
   on the sides or bottom. data-skin/data-mode are set on <html>. */
html {
	background: var(--ink-1);
}

/* The page wrapper is the container-query root ("profile"), so the
   mockup's @container profile (...) breakpoints keep working. */
.js-page {
	container: profile / inline-size;
}
/* Mobile/responsive is not in scope yet: disable the container queries
   so the desktop layout always applies. */
.js-page {
	container: none;
}
/* Capped centered column: the page keeps one width on wide windows
   instead of stretching, and stays full width on narrow windows. */
.js-page {
	width: 100% !important;
	max-width: 1600px !important;
	min-width: 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
/* One continuous background: .js-page matches the --ink-3 body instead of
   --ink-1, so there are not three different colors behind the boxes. */
.js-page {
	background: var(--ink-3) !important;
}
/* Date input: calendar picker indicator stays clickable and right-aligned. */
.sheet input[type="date"].sel::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 1;
	pointer-events: auto;
	margin-left: auto;
}
/* Log sheet: when and how-long sit side by side. */
/* Log sheet chips (replaces dropdowns). */
.chip-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.chip {
	font-family: "Nine By Five", monospace;
	font-size: var(--fs-secondary);
	padding: 6px 12px;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	color: var(--ink-7);
	cursor: pointer;
}
.chip[aria-pressed="true"] {
	background: var(--cy);
	border-color: var(--cy);
	color: var(--ink-1);
}
.chip:hover {
	border-color: var(--cy);
}
.sheet__when-dur {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 16px;
	align-items: start;
}
/* The when/duration fields were full-width grid rows before the wrapper
   existed; inside the wrapper they must take one column each. */
.sheet__when-dur > .sheet__when,
.sheet__when-dur > .sheet__dur {
	grid-column: auto;
}
.sheet__dur .dur__hm {
	display: flex;
	gap: 8px;
}
.sheet__dur .sel--sm {
	max-width: 170px;
	margin-top: 8px;
	font-size: var(--fs-secondary);
	min-height: 40px;
}

/* The mockup wraps template sections in .profile (grid, 44px gaps); the theme
   renders them inside .js-page > .profile > main.js-main, so the section grid
   goes on main. Without this the boxes touch each other ("bleeding"). */
.js-page {
	display: grid;
	gap: 20px;
	align-content: start;
	/* Round 20 item 230: the page fills the viewport, so the footer
	   sits at the bottom on short pages instead of floating above
	   an empty band of background. The middle row stretches; content
	   stays top aligned inside it. */
	min-height: 100vh;
	min-height: 100dvh;
	grid-template-rows: auto 1fr auto;
}
.js-main {
	display: grid;
	gap: 20px;
	align-content: start;
}
/* Belt and suspenders: direct-child boxes always keep vertical rhythm even
   if something nests them oddly. */
.js-page > .box,
.js-page > header.box,
.js-page > section.box {
	margin-top: 0;
	margin-bottom: 0;
}
/* Tighter under the nav bar (the mockup keeps the headline close). */
.js-page > .sitebar {
	margin-top: 20px;
	margin-bottom: -16px;
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-bottom: 4px;
	font: 400 var(--fs-secondary)/1.4 var(--f-display);
	color: var(--ink-5);
}
.crumbs a {
	color: var(--ink-5);
	text-decoration: none;
}
.crumbs a:hover {
	color: var(--cy-t);
}
.crumbs [aria-current="page"] {
	color: var(--ink-7);
	text-transform: none;
}

/* Game page: halve the space below the breadcrumbs (the .js-page grid gap). */
.show-detail .crumbs {
	margin-bottom: -10px;
}
/* Profile page: same tightening below breadcrumbs. */
.show-profile .crumbs {
	margin-bottom: -10px;
}

/* Safety: never let a display rule override [hidden]. Applies globally because
   fixed overlays (log sheet, share card) live outside .js-page. */
[hidden] {
	display: none !important;
}

/* Pixel mask icons. The mockup referenced these mask variables but never
   defined them; without a mask the icons rendered as solid squares. */
:root {
	--m-trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 9'%3E%3Crect x='3' y='0' width='4' height='5'/%3E%3Crect x='1' y='1' width='1' height='2'/%3E%3Crect x='8' y='1' width='1' height='2'/%3E%3Crect x='4' y='5' width='2' height='2'/%3E%3Crect x='2' y='7' width='6' height='2'/%3E%3C/svg%3E");
	--m-pad: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Crect x='2' y='2' width='10' height='6'/%3E%3Crect x='0' y='4' width='2' height='6'/%3E%3Crect x='12' y='4' width='2' height='6'/%3E%3Crect x='4' y='4' width='1' height='3'/%3E%3Crect x='3' y='5' width='3' height='1'/%3E%3Crect x='9' y='4' width='1' height='1'/%3E%3Crect x='10' y='5' width='1' height='1'/%3E%3Crect x='8' y='5' width='1' height='1'/%3E%3C/svg%3E");
	--m-edit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Crect x='2' y='0' width='4' height='2'/%3E%3Crect x='2' y='2' width='4' height='5'/%3E%3Crect x='3' y='7' width='2' height='2'/%3E%3Crect x='4' y='9' width='1' height='3'/%3E%3C/svg%3E");
}

/* Steam art is portrait (library_600x900) but frames vary; crop to fill. */
.gcard__art, .pile__c, .ghead__art{
	object-fit: cover;
}

/* Square game logos (transparent PNGs): contain; cover fallback crops. */
.logo-img--contain {
	object-fit: contain;
}
.logo-img--cover {
	object-fit: cover;
}

/* Editing-mode-only controls: hidden until the owner toggles customize. */
.js-page .js-edit-only {
	display: none !important;
}
.js-page.is-editing button.js-edit-only {
	display: inline-flex !important;
}
.js-page.is-editing div.js-edit-only {
	display: block !important;
}

/* Fallback layout for generic WP content (index.php, game picker state). */
.container {
	max-width: 1080px;
	margin-inline: auto;
	padding: 28px;
}
.container--narrow {
	max-width: 640px;
}

/* Site header logo. */
.sitebar__logo {
	display: inline-flex;
	align-items: center;
}
.sitebar__logo img {
	display: block;
	height: 57px;
	width: auto;
	transform: translateY(3px);
}

/* WP menu items rendered into the mockup nav. */
.nav .menu-item {
	list-style: none;
}
.nav a.nav__b {
	text-decoration: none;
}

/* Card/row links reuse button-styled classes; kill link underlines. */
a.gcard__open {
	text-decoration: none;
}

/* Round 10 item 24: universal footer links (privacy policy, terms).
   Round 20 item 230: the footer closes the page as an ink-2 strip
   with a 2px ink-4 top border, the same border treatment as chips
   and boxes, with more breathing room. */
.sitefoot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; padding: 24px 20px; background: var(--ink-2); border-top: 2px solid var(--ink-4); }
.sitefoot a { color: var(--ink-5); font-size: var(--fs-secondary); text-decoration: none; }
.sitefoot a:hover, .sitefoot a:focus-visible { color: var(--ink-7); text-decoration: underline; text-underline-offset: 3px; }

/* Entry (fallback loop) styling in the pixel chrome. */
.entry {
	background: var(--ink-1);
	clip-path: var(--c2);
	padding: 28px;
}
.entry__head {
	margin-bottom: 16px;
}
.entry__title {
	margin: 0;
	text-transform: none;
}
.entry__content {
	font-size: var(--fs-lead);
	text-transform: none;
}
/* Round 36 item 375: post lists indent so wrapped lines sit under the
   text, not under the bullet or number. */
.entry__content ul,
.entry__content ol {
	padding-left: 28px;
	margin: 12px 0;
}
.entry__content li {
	margin-bottom: 6px;
}
/* Round 38 item 380: links in the post body use the theme color,
   not underlined, instead of the browser default. */
.entry__content a {
	color: var(--cy-t);
	text-decoration: none;
}
/* Round 38 item 381: post body headings in the colors of the
   selected theme, via variables so they follow the skin.
   Round 39 item 385: h1 too, the post subheadings are h1 elements,
   so they rendered white while h2 and h3 got theme colors. */
.entry__content h1 {
	color: var(--cy-t);
}
.entry__content h2 {
	color: var(--cy-t);
}
.entry__content h3 {
	color: var(--mg-t);
}
/* Round 39 item 390: paragraph and heading spacing matches the
   editor. The base reset zeroes every paragraph and heading margin,
   so front-end paragraphs and headings ran together with no gap
   while the editor shows the WordPress block gap between elements.
   Every block in the post body gets the same 24px gap the editor
   shows, including paragraphs nested inside Media & Text content
   and the paragraph that follows a Media & Text block. */
.entry__content p {
	margin: 0 0 24px;
}
.entry__content h1,
.entry__content h2,
.entry__content h3 {
	margin: 24px 0;
}
.entry__content .wp-block-media-text + * {
	margin-top: 24px;
}
/* Round 38 item 384: post body blocks match the editor. The theme
   carried no block layout rules, so Media & Text, aligned images,
   and columns fell back to cramped defaults on the front end while
   the editor shows them with the WordPress core spacing. These
   rules give the front end the same spacing as the editor, so what
   she builds in the editor is what the published post looks like.
   Media & Text stays side by side like the editor, it does not
   stack. */
.entry__content .wp-block-media-text {
	display: grid;
	grid-template-columns: 50% 1fr;
	margin: 24px 0;
}
.entry__content .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 50%;
}
.entry__content .wp-block-media-text__media {
	margin: 0;
}
.entry__content .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: auto;
}
.entry__content .wp-block-media-text__content {
	padding: 0 8%;
}
.entry__content .alignleft,
.entry__content .wp-block-image .alignleft {
	float: left;
	margin: 0.5em 1em 0.5em 0;
}
.entry__content .alignright,
.entry__content .wp-block-image .alignright {
	float: right;
	margin: 0.5em 0 0.5em 1em;
}
.entry__content .aligncenter,
.entry__content .wp-block-image .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.entry__content .wp-block-columns {
	display: flex;
	gap: 24px;
	margin: 24px 0;
}
/* Round 37 item 378: author and date share one row, author first
   (left), date after. The author keeps the profile link and 32px
   avatar from round 36 item 375. */
.entry__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 12px;
}
.entry__meta .entry__author {
	margin-top: 0;
}
.entry__meta .label {
	margin: 0;
}
.entry__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 12px;
	font-size: var(--fs-body);
}
.entry__author-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--mg-t);
	text-decoration: none;
	text-transform: none;
}
.entry__author-link:hover .entry__author-name,
.entry__author-link:focus-visible .entry__author-name {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.entry__author-av {
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
	box-shadow: 0 0 0 2px var(--ink-4);
	background: var(--ink-2);
	flex: none;
}
.entry__author-name {
	color: var(--mg-t);
	text-transform: none;
}
.pager {
	display: flex;
	gap: 12px;
	justify-content: center;
	padding: 20px 0;
}


/* Light/dark switch row inside the theme menu. */
.menu__modes {
	display: flex;
	gap: 8px;
	padding: 12px 16px;
	border-top: 2px solid var(--ink-3);
	justify-content: center;
}
.menu__modes .chip-btn {
	padding: 6px 10px;
}

/* Carousel slides: only one visible at a time (hidden attribute). */
.car__slide[hidden] {
	display: none;
}

/* Avatar picker on the profile header (owner only). */
.avatar-wrap {
	position: relative;
	display: inline-block;
}
.avatar-edit {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	border-radius: 0;
	color: var(--ink-6);
	cursor: pointer;
	padding: 0;
	line-height: 0;
	opacity: 0;
	transition: opacity .15s ease;
}
.avatar-wrap:hover .avatar-edit,
.avatar-wrap:focus-within .avatar-edit {
	opacity: 1;
}
.avatar-edit:hover {
	color: var(--cy-t);
	border-color: var(--cy);
}
.avatar-file {
	font-size: var(--fs-secondary);
	color: var(--ink-5);
	word-break: break-all;
}

/* "add review" opt-in: chip-sized, like the genre tag pill. */
.js-rating-optin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	font: 400 var(--fs-secondary)/1.3 var(--f-display);
	background: var(--ink-3);
	color: var(--ink-6);
	border: 0;
	cursor: pointer;
}
.js-rating-optin:hover {
	color: var(--cy-t);
}
.js-rating-optin .star--sm svg {
	width: 14px;
	height: 14px;
}

/* Landing page: no nav, large centered logo, buttons below. */
.landing {
	min-height: 100vh;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 48px;
	padding: 32px;
}
.landing__logo {
	display: inline-block;
	width: min(480px, 80vw);
	/* The stacked SVG viewBox is cropped to the art (40 units of
	   padding each side), so the box ends at the art and no pull-up
	   compensation is needed. */
	margin-bottom: 0;
}

/* === Batch 2026-10-15: popup/button/dropdown fixes === */

/* 1. Background consistent on whole page: darker --ink-3 for one continuous field. */
html, body {
	background: var(--ink-3) !important;
}
/* Round 20 item 230: the UA default 8px body margin left a strip of
   background showing around the page, including below the footer.
   The page edge is the viewport edge now. */
body {
	margin: 0;
}

/* 2. Connectors button bevel (profile + welcome popup). */
/* Round 20 item 228: #js-connectors-open is gone with the profile
   connectors button; the bevel stays for the welcome prompt. */
#welcome-connectors {
	box-shadow: var(--up) !important;
}

/* 3. Welcome message copy larger. */
#welcomebg .sheet p{
	font-size: var(--fs-heading) !important;
	line-height: 1.4;
}

/* 4. Welcome popup: narrower, block shadow (not blurred), centered button. */
#welcomebg .sheet {
	width: min(560px, 100%) !important;
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45) !important;
}
#welcomebg .sheet__act{
	text-align: center;
}
#welcome-connectors {
	margin: 0 auto;
	display: inline-block;
	box-shadow: var(--up) !important;
}

/* 8. Plus button: square button shape. */
.ag-plus-toggle,
[data-ag-toggle] {
	border-radius: 0 !important;
	width: 36px;
	height: 36px;
	box-shadow: var(--up) !important;
}

/* 9. X buttons: square button shape on all popups (style guide). */
.sheet__x {
	border-radius: 0 !important;
	box-shadow: var(--up) !important;
}

/* 10. Dropdown arrow not running into the edge. */
.sel, select.sel,
#ag-platform, #ag-curated-sel {
	padding-right: 36px !important;
}

/* 11. Platform and games dropdowns equal widths. */
#ag-platform, #ag-curated-sel {
	width: 100%;
	max-width: 320px;
	flex: 1 1 0;
}

/* 12. Curation message text larger. */
/* 13. Steam persists capitalized after selection. */
#ag-platform {
	text-transform: none !important;
}
#ag-platform option {
	text-transform: none;
}

/* 16. Add-game popup block shadow. */
#addgamebg .sheet{
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45) !important;
}
.landing__logo img {
	width: 100%;
	height: auto;
}
.landing__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
}
.landing__actions .btn {
	text-decoration: none;
}
/* Round 116 item 3: the logged-out homepage names the alpha.
   Nine By Five, gold to match the alpha badge (#ffc933 in the
   badge art); light mode takes the badge's darker gold so the
   words stay readable on a light page. Round 120 item 1: much
   larger, heavy weight, with the site title's steady glow in
   the badge gold (no pulse, same as the title glow). */
.landing__alpha {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	font: 700 var(--fs-display)/1.4 var(--f-display);
	color: #ffc933;
	text-transform: none;
	text-shadow: 0 0 12px color-mix(in srgb, #ffc933 40%, transparent);
}
[data-mode="light"] .landing__alpha {
	color: #b87400;
	text-shadow: 0 0 12px color-mix(in srgb, #b87400 40%, transparent);
}
@media (prefers-reduced-motion: reduce) {
	.landing__alpha {
		text-shadow: none;
	}
}
/* Hide WordPress admin bar on landing/login/signup */
body.landing #wpadminbar {
	display: none !important;
}

/* Breadcrumbs: whitespace below (merged into main .crumbs rule) */

/* Mode-aware custom icons */
.js-icon {
	vertical-align: -2px;
}
.badge .js-icon {
	margin-right: 4px;
}

/* Avatar modal: floating popup, not inline */
.avatar-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
}
.avatar-modal[hidden] {
	display: none;
}
.avatar-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}
.avatar-modal__box {
	position: relative;
	background: var(--bg, #1a1d24);
	border: 2px solid var(--line, #333);
	padding: 24px;
	min-width: 280px;
	max-width: 90vw;
	display: grid;
	gap: 12px;
}
.avatar-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: var(--fs-lead);
	line-height: 1;
	cursor: pointer;
	color: inherit;
}
.avatar-modal__box label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

/* Icon picker grids: avatar modal and playthrough forms. The radio
   itself is hidden; the picked icon gets the cyan outline. */
.avatar-icons,
.js-iconpick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.avatar-icons {
	margin: 4px 0;
}
.avatar-modal__box label.avatar-icon,
.js-iconpick label.js-iconpick__opt {
	display: grid;
	place-items: center;
	padding: 2px;
}
.avatar-icon input,
.js-iconpick__opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.avatar-icon img,
.js-iconpick__opt img {
	width: 32px;
	height: 32px;
	image-rendering: pixelated;
}
.avatar-icon input:checked + img,
.js-iconpick__opt input:checked + img {
	outline: 3px solid var(--cy, #19cbee);
	outline-offset: 1px;
}
.js-iconpick__opt span {
	font-size: var(--fs-secondary);
}

.ghead__art {
	position: relative;
}

/* User search in the header. */
.usearch {
	position: relative;
	flex: 0 1 240px;
	min-width: 160px;
}
.usearch__input {
	width: 100%;
	font: inherit;
	font-size: var(--fs-body);
	padding: 8px 12px;
	background: var(--well);
	color: var(--ink-7);
	border: 2px solid var(--ink-4);
	clip-path: none;
}
.usearch__input:focus {
	outline: none;
	border-color: var(--cy);
}
.usearch__input::placeholder {
	color: var(--ink-5);
}
.usearch__drop {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 200;
	box-shadow: 8px 8px 0 rgba(0,0,0,0.45);
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	max-height: 320px;
	overflow-y: auto;
}
.usearch__row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	background: none;
	border: 0;
	color: var(--ink-7);
	font: inherit;
	font-size: var(--fs-secondary);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.usearch__row:hover {
	background: var(--ink-3);
}
.usearch__group {
	padding: 8px 10px 4px;
	font-family: var(--f-display);
	font-size: var(--fs-secondary);
	color: var(--ink-5);
}
.usearch__none {
	padding: 12px;
	color: var(--ink-5);
}
.usearch__av {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	object-fit: cover;
}
.usearch__av--ph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--ink-4);
	color: var(--ink-7);
	font-size: var(--fs-secondary);
}
.usearch__none {
	padding: 10px 12px;
	font-size: var(--fs-secondary);
	color: var(--ink-5);
}

/* Preserve original case for game and achievement names (override body lowercase). Round 15 item 152: feed game links (.fev__t .g), library card titles (.gcard__t) and highlight game names (.ip__game) join the list; the rest were already exempt. */
.lately a, .lately .t, [data-game-name], .ev__t .g, .ev__t .a, .ev__t .pname, .fev__t .g, .gcard__t, .ip__game, .wrow__t, .achmodal__gtitle, .achmodal__name {
	text-transform: none;
}

/* Achievement detail modal */
.achmodal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: grid;
	place-items: center;
	padding: 20px;
}
.achmodal[hidden] {
	display: none;
}
.achmodal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}
.achmodal__box {
	position: relative;
	background: var(--ink-2);
	border: 3px solid var(--ink-4);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
	max-width: 480px;
	width: 100%;
	padding: 28px;
	text-align: center;
}
.achmodal__box::before,
.achmodal__box::after {
	display: none !important;
}
.achmodal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: var(--fs-heading);
	line-height: 1;
	color: var(--ink-dim);
	cursor: pointer;
	padding: 4px 8px;
}
.achmodal__close:hover {
	color: var(--ink);
}
/* Share-this-achievement button in the achievement popup. */
.achmodal__share {
	position: absolute;
	bottom: 8px;
	right: 8px;
}
.achmodal__game {
	display: flex;
	align-items: center;
	/* Round 84 item 17: the game header is left-aligned, icon on
	   the left and the name next to it, not centered. */
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}
.achmodal__logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
	image-rendering: auto;
}
/* Locked achievements read grayed out in the popup. */
.achmodal--locked .achmodal__logo {
	filter: grayscale(1);
	opacity: 0.55;
}
.achmodal--locked .achmodal__gtitle {
	opacity: 0.6;
}
.achmodal--locked .achmodal__name,
.achmodal--locked .achmodal__desc {
	color: var(--ink-5);
}
.achmodal__gtitle {
	font-size: var(--fs-heading);
	color: var(--ink-dim);
}
.achmodal__name {
	font-size: var(--fs-title);
	margin: 0 0 12px;
}
.achmodal__desc {
	font-size: var(--fs-lead);
	line-height: 1.5;
	color: var(--ink);
	margin: 0 0 16px;
}
.achmodal__meta {
	font-size: var(--fs-body);
	color: var(--ink-dim);
	margin: 0;
}

#js-hero-value {
	text-transform: none;
}
/* Clickable achievement tiles */
.js-ach-tile {
	cursor: pointer;
}
.js-ach-tile:hover {
	border-color: var(--cy);
}
.js-ach-tile:focus {
	outline: 2px solid var(--cy);
	outline-offset: 2px;
}

/* Logo: show white version in dark mode{ display: none; }

/* Game page header: one flowing "how X plays Y" headline. The player name
   becomes a dropdown when followed players share the game. */
.gtitle--one {
	font-family: var(--f-display);
	font-size: var(--fs-title);
	line-height: 1.3;
	/* Pinned, not inherited: no theme rule sets an h1 weight, so the
	   headline renders at the browser default bold 700, and .uname
	   is now also 700. */
	font-weight: 700;
}
.gtitle__who {
	color: var(--mg-t);
}
/* Round 17 item 193: the username link in the game page header
   ("how X plays Y") is never underlined, like other usernames. */
.gtitle__who,
.gtitle__who:hover,
.gtitle__who:focus {
	text-decoration: none;
}
/* Round 32 item 360: hours and achievements and nothing else, on a
   non-owner game page, the achievements sit left with the empty
   block right. The row drops the fixed duo height floor, so it is
   as tall as the taller side, and both panels share that height
   like every other duo. Full width again below the 820px
   breakpoint, where the duo itself collapses to one column. */
.duo.duo--ach360 .box {
	height: auto;
	min-height: 0;
	overflow: visible;
}
/* Round 63 item 3, round 64 item 1: title glow is constant, not a
   pulse. The game page username (pink) and game name (cyan) carry a
   steady text-shadow glow in dark and light mode. Text-shadow only,
   so the jsSpotFade bevel (var(--up), untouched in
   joystats-ui-kit.css) is unaffected. */
.gtitle__who {
	text-shadow: 0 0 12px color-mix(in srgb, var(--mg-t) 40%, transparent);
}
.gtitle__game {
	color: var(--cy-t);
	text-transform: none;
	text-shadow: 0 0 12px color-mix(in srgb, var(--cy-t) 40%, transparent);
}
/* Round 68 item 7: in light mode the glow uses the brighter theme
   accents, so it reads as a true glow, not a dark shadow. Text
   color stays on the -t tokens. Dark mode unchanged. */
[data-mode="light"] .gtitle__who {
	text-shadow: 0 0 12px color-mix(in srgb, var(--mg) 40%, transparent);
}
[data-mode="light"] .gtitle__game {
	text-shadow: 0 0 12px color-mix(in srgb, var(--cy) 40%, transparent);
}
@media (prefers-reduced-motion: reduce) {
	.gtitle__who,
	.gtitle__game {
		text-shadow: none;
	}
}
@container profile (max-width:520px) {
	.gtitle--one { font-size: var(--fs-title); }
}

/* Session rows now live in the widget package timeline (.tl .ev);
   these are the surviving pieces: note, playthrough badge, edit actions.
   Long notes clamp to one line; hovering the note expands it to the
   full text and leaving it returns to the clamp (hover rule on
   .sess__m--clamp below). There is no see more button. Theme JS adds
   the clamp class. */
.sess__noterow {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.sess__m {
	font-size: var(--fs-body);
	line-height: 1.35;
	color: var(--ink-5);
}
.sess__m--clamp {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
	min-width: 0;
}
.sess__m--clamp.is-open {
	white-space: normal;
	overflow: visible;
}
/* Full note on hover: the clamped line expands to the whole text while
   hovering and returns to the one-line clamp when not hovering.
   Round 52 item 5: hovering anywhere on the feed row expands the
   note, not just hovering the note itself. */
.sess__m--clamp:hover,
.sess__noterow:hover .sess__m--clamp,
.tl .ev:hover .sess__m--clamp {
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}
/* The playthrough a session is tagged to: a badge at the box's top
   right, replacing the old ' - (name)' headline suffix. The badge
   sits alone up there, right-aligned with padding above it; the
   edit pencil lives at the end of the event text instead, hidden
   until the row is hovered or focused. */
.tl .ev__box {
	position: relative;
}
.sess__top {
	position: absolute;
	top: 0;
	padding-top: 8px;
	left: 16px;
	right: 0;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	align-items: flex-start;
	z-index: 1;
	pointer-events: none;
}
.sess__top .sess__ptbadge {
	position: static;
	flex: 0 1 auto;
	min-width: 0;
	max-width: 35%;
	margin-right: 12px;
}
.sess__ptbadge {
	font-size: var(--fs-secondary);
	line-height: 1.2;
	color: var(--ink-5);
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	padding: 2px 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Round 11 item 61, round 14 item 144: the session headline wraps to
   the next line instead of truncating into the playthrough badge.
   Scoped to session rows that carry a badge; Lately and feed rows keep
   their truncation. The headline reserves the badge width on the right
   so no wrapped line runs under it. The 45% reserve wrapped headlines
   to many lines, so the badge was capped at 25% and the headline
   reserved only that. Round 43 item 1: the cap is raised to 35%, so
   the badge only ellipsizes when the name is genuinely too long for
   the space, and the headline reserve widens to match. Round 54
   item 2: the cap is raised to 55% and the badge row moves into the
   reaction strip (right 12px instead of 116px), so the name uses
   the empty space to its right and only ellipsizes when genuinely
   too long. The like and comment icons live in that strip but stay
   invisible until the row is hovered or focused, so at rest the
   badge has the strip to itself. Round 55 item 2: that move put
   the badge on top of the comment button (badge ending 24px from
   the box edge, comment button starting 43px out with a count),
   so the cap goes back to 35% and the badge row ends 96px from
   the box edge, clear of the like and comment buttons even with
   two-digit counts. The headline reserve stays 55% + 20px: with
   the box padding below gone, a normal headline fits in the room
   it leaves. */
.tl .ev__box:has(.sess__top) .ev__t{white-space:normal;padding-right:calc(55% + 20px)}
/* Round 55 item 2a: a session row with a badge does not need the
   116px box padding (joystats-widgets.css). That padding stacked
   with the headline reserve above and left ~185px for the
   headline, so "played on Blizzard for 3.8 hrs" wrapped after
   "3.8". The badge is absolutely positioned and the headline
   reserve already keeps text out from under it, so the box goes
   back to its 16px padding and the headline uses the freed room.
   Feed and Lately rows keep the 116px: their headlines have no
   reserve, so the padding is what keeps text clear of the icons. */
li.ev:has(> .evreact):has(.sess__top) .ev__box{padding-right:16px}
/* Round 55 item 2b: the badge row ends 96px from the box edge
   instead of 12px. The acts strip is 84px wide with two-digit
   like and comment counts, starting 96px out from the edge, so
   the badge (ending 108px out with its 12px margin) clears the
   like button by 12px and the comment button by more. */
li.ev:has(> .evreact) .sess__top{right:96px}
.sess__edit {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--ink-5);
	display: inline-flex;
	align-items: center;
	/* Hidden until the row is hovered or the pencil itself is
	   keyboard-focused: out of the text flow, so it reserves no
	   space, but still focusable, so keyboard users can reach it
	   and focus-visible reveals it. Round 52 item 6b: focus-within
	   is gone here, because a mouse click focuses the pencil and
	   kept it revealed after hover ended. focus-visible only
	   matches keyboard focus, so a clicked pencil hides again once
	   the mouse leaves the row. */
	position: absolute;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}
.sess__edit:hover {
	color: var(--cy-t);
}
/* Round 116 item 16: the session delete button and the controls
   span holding a session's pencil + delete pair. The span is
   absolute (out of flow, like the pencil was); the buttons inside
   it sit side by side in flow, so grouped sessions never stack
   their pencils on one spot. In note sublines and aggregate
   expansions the span is inline instead (joystats-widgets.css).
   The delete mark is a text times sign: the theme set has no
   trash icon, and no substitute is invented. */
.sess__controls {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s;
}
.sess__controls .sess__edit,
.sess__controls .sess__del {
	position: static;
	opacity: 1;
	pointer-events: auto;
}
.sess__del {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: var(--ink-5);
	display: inline-flex;
	align-items: center;
	font-family: var(--f-display, 'Nine By Five');
	font-size: 20px;
	line-height: 1;
}
.sess__del:hover {
	color: var(--mg-t, var(--mg));
}
.tl .ev:hover .sess__controls,
.sess__controls:focus-within {
	opacity: 1;
	pointer-events: auto;
}
/* Round 56 item 8: the game feed edit pencil is back (removed round
   54 item 12). The base rule above hides it out of the text flow;
   row hover or keyboard focus reveals it, still out of flow at the
   end of the headline text, so it never shifts the layout or lands
   on the date line. No focus-within: a mouse click focuses the
   pencil and would keep it revealed after hover ended. */
.tl .ev:hover .sess__edit,
.sess__edit:focus-visible {
	opacity: 1;
	pointer-events: auto;
}
/* Round 44 items 8 and 9: user stats box. The stats reuse the
   aggregate tile style; the add button reuses the site pulse. */
/* Round 49 item 1: the counters container above the game feed
   puts hours and achievements side by side in one container,
   hours left, achievements right, for owner and visitor alike.
   The container hugs the counters, with no extra height below
   them. A lone counter spans the full width. Counter sizes
   are unchanged. The old visitor strip wrapper is gone. */
.userstats__counters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; align-content: start; }
.userstats__counters > .aggstat:only-child { grid-column: 1 / -1; }
/* Round 54 item 8: the counter tiles keep their grid tracks. A tile's
   automatic minimum is its widest content, and the full-size odometer
   plus the 36px label are wider than a half-width track, so the tiles
   forced their tracks wider than the counters container and the
   numbers sat offset from where the tiles belong. The tile's single
   grid column also sizes to its widest item, so a label wider than
   the tile (achievements at 36px) stretched the column and pushed
   the number off center; the column is fixed to the tile width and
   the label overflows into the padding instead. Round 55 item 3:
   the centering is stated on the tile itself, not left to the
   aggstat--num rule alone, so the number and label both center in
   the fixed column; the number size is restored by dropping the
   odometer tiers for these counters (below), not by this rule. */
.userstats__counters > .aggstat { min-width: 0; grid-template-columns: minmax(0, 1fr); justify-items: center; }
/* Round 56 item 6: the odometer digits center in the tile. The tile
   centers the .aggstat__n box, but the box is wider than its
   inline-flex odometer child, so the digits sat left while the label
   centered. The number span stretches the tile width and flex-centers
   its odometer, so a decimal like "26.3" and a single digit like "7"
   both sit visibly centered at the full 48px size. */
.userstats__counters .aggstat__n { display: flex; justify-content: center; justify-self: stretch; }
/* Round 119 item 7: the second counter is a link to Top Players
   for the game in stats. It reads in the glowing headline highlight
   color (cyan, like a game name) and pulses. The pulse animates
   the text glow, never a box, so the link stays a text link.
   Round 120 item 5: display size, the same size as the hours
   number beside it, so the link fills its box. */
.userstats__counters > .aggstat--statslink { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--cy-t); font-size: var(--fs-display); font-weight: 700; line-height: 1.1; text-decoration: none; text-shadow: 0 0 12px color-mix(in srgb, var(--cy-t) 40%, transparent); animation: jsStatsLinkPulse 4.4s ease-in-out infinite; }
[data-mode="light"] .userstats__counters > .aggstat--statslink { text-shadow: 0 0 12px color-mix(in srgb, var(--cy) 40%, transparent); }
@keyframes jsStatsLinkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .userstats__counters > .aggstat--statslink { animation: none; } }
/* Round 48 item 6: the log session button sits at the top right of
   the game feed header. Scoped to the sessions box, so the arcade
   prompt's own log button keeps its place. */
section[data-slot="sessions"] .wdg__head .js-arcade-log { margin-left: auto; }
.userstats__sub { margin: 16px 0 8px; }
/* Round 66 item 27: the feed session edit pencil is hover-only
   like the game page pencil, reversing round 39 item 389. The base
   .sess__edit rule hides it out of the text flow; row hover or
   keyboard focus reveals it at the end of the header text. No
   focus-within, matching the game page rule: a mouse click focuses
   the pencil and would keep it revealed after hover ended. */
.fev:hover .fev__edit,
.fev__edit:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

/* Landing / login / signup: the wrap centers the logo and the form
   on one axis. (Round 66 item 8: this comment was unterminated, so
   it swallowed the whole .landing__wrap rule and the login page fell
   back to left-aligned blocks, with the 360px form reading left of
   the 480px logo. The stacked SVG art itself is centered in its
   viewBox, 40 units of padding each side, so the CSS was the cause.) */
.landing__wrap {
	min-height: 100vh;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 24px;
	padding: 32px;
}

/* Login / signup forms. */
.landing__title {
	margin: 0;
	font: 400 var(--fs-title)/1.1 var(--f-display);
	color: var(--ink-7);
}
.landing__err {
	margin: 0;
	color: #ff7a7a;
	font-size: var(--fs-body);
}
.landing__form {
	display: grid;
	gap: 14px;
	width: min(360px, 90vw);
}
.landing__form label {
	display: grid;
	gap: 6px;
	font: 400 var(--fs-secondary)/1.4 var(--f-display);
	color: var(--ink-5);
}
.landing__form input:not([type=checkbox]) {
	min-height: 44px;
	padding: 10px 12px;
	border: 2px solid var(--ink-4);
	background: var(--ink-2);
	color: var(--ink-7);
	font-size: var(--fs-body);
}
/* Round 112 item 12: signup platform picks. Chips are .chip-btn
   toggles, cyan when checked like the .btn; the checkbox itself is
   visually hidden but stays focusable. */
.landing__platforms {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 6px;
}
.landing__platforms legend {
	font: 400 var(--fs-secondary)/1.4 var(--f-display);
	color: var(--ink-5);
	padding: 0;
}
.landing__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.landing__form .landing__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 10px 14px;
	cursor: pointer;
	font-size: var(--fs-body);
	/* Round 116 item 2: the site body lowercases everything, so
	   platform names rendered "steam" and "nintendo switch".
	   Chips keep their original case. */
	text-transform: none;
}
.landing__chip img {
	width: 24px;
	height: 24px;
	flex: none;
}
.landing__chip input[type=checkbox] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.landing__chip:has(input:checked) {
	background: var(--cy);
	color: var(--on-accent);
	box-shadow: var(--down);
}
.landing__chip:has(input:focus-visible) {
	box-shadow: inset 0 0 0 4px var(--ink-7), inset 0 0 0 7px var(--mg);
}

.landing__remember {
	display: flex !important;
	align-items: center;
	gap: 8px;
}
.landing__alt {
	margin: 0;
	color: var(--ink-5);
	font-size: var(--fs-body);
}
.landing__alt a {
	color: var(--cy-t);
}
/* Round 116 item 4: social log in buttons under the form. The
   buttons keep their original case ("Discord", "Google") against
   the site-wide lowercase, and the Discord icon rides in its
   button. */
.landing__social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.landing__social .btn {
	text-transform: none;
}
.landing__social .btn img {
	width: 24px;
	height: 24px;
	flex: none;
}
/* Round 120 item 3: the official Discord button, not the JoyStats
   ghost style: Discord blurple (#5865F2), white logo and text,
   rounded corners per Discord branding. The pixel clip-path and
   inset shadows of .btn are off for this button; hover is
   Discord's darker blurple. The same button is used in the
   logged-out popup (item 8). The radius needs !important: the
   site-wide square-corner rule (base.css:328) sets
   border-radius:0!important on every .btn. */
.landing__social .btn--discord,
.loggedout-modal .btn--discord {
	background: #5865F2;
	color: #fff;
	clip-path: none;
	border-radius: 4px !important;
	box-shadow: none;
}
.landing__social .btn--discord:hover,
.loggedout-modal .btn--discord:hover {
	background: #4752C4;
}

/* ---------- customize: highlight selector + pin icon ---------- */
.slidebar {
	flex-wrap: nowrap;
}
.slidebar select {
	min-height: 40px;
	padding: 6px 10px;
	background: var(--ink-3);
	border: 0;
	clip-path: var(--c1);
	color: var(--ink-6);
	font-size: var(--fs-secondary);
	max-width: 240px;
}
/* Favorites stat select: sized down to fit the highlight header without
   changing its height. Scoped to this select only; .sel elsewhere keeps
   the standard 44px treatment. */
#js-favstat-select {
	font-size: var(--fs-secondary);
	min-height: 32px;
	padding: 4px 8px;
	width: max-content;
	max-width: 100%;
}
.pinb--icon {
	display: inline-grid;
	place-items: center;
	width: 44px;
	min-height: 40px;
	padding: 2px;
}
.pinb--icon svg,
.pinb--icon img {
	width: 20px;
	height: 20px;
	display: block;
}
.car__slide {
	position: relative;
}
/* ---------- header theme picker (icon button left of search) ---------- */
.iconbtn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: var(--ink-3);
	color: var(--ink-7);
	cursor: pointer;
	clip-path: var(--c1);
}
.iconbtn:hover {
	background: var(--ink-4);
}
.iconbtn svg,
.iconbtn img {
	display: block;
}
/* The header dropdown opens right-aligned under the icon. */


/* ---------- highlight header pin ---------- */
.pinb--head {
	width: 40px;
	min-width: 40px;
	min-height: 40px;
	clip-path: none !important;
	border-radius: 0 !important;
	margin-left: 0;
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	padding: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------- header theme picker: left of search, dropdown above content ---------- */
.js-page > .sitebar {
	position: relative;
	z-index: 30;
}
.sitebar__r {
	flex-wrap: nowrap;
}


/* Pin by the highlight header: matches the heart format, grey to color. */
.pinb--head img {
	width: 20px;
	height: 20px;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.15s, opacity 0.15s;
}
.pinb--head[aria-pressed="true"] img {
	filter: none;
	opacity: 1;
}
/* Pin: never pink. Standard boxed format only. */
.pinb--head,
.pinb--head[aria-pressed="true"],
.pinb--head:hover,
.pinb--head[aria-pressed="true"]:hover {
	background: var(--ink-3) !important;
	border-color: var(--ink-4) !important;
}
.pinb--head:hover img {
	opacity: 0.8;
}
.pinb--head[aria-pressed="true"]:hover img {
	opacity: 1;
}

/* Game header: center the title block vertically against covers of any shape. */
.ghead {
	align-items: center;
}
/* Round 9 item 24: header top right column, a stack holding the
   add-to-library button and the other-titles-in-this-series section.
   Round 76 item 1: the side column is top-aligned, not centered
   with the header. .ghead centers its items against the 168px cover,
   so a centered side column started partway down the header and its
   dropdown list (head plus 8px plus up to 132px of rows) poked 18px
   below the header with a series beside it, 50px without one. Top
   aligned, the list bottom lands inside the header. Round 96 item
   3: the lists are in flow now, so the open list pushes the box
   below it down and the header grows with it, instead of the list
   floating over the content below. */
.ghead__side { grid-column: 3; grid-row: 1; display: grid; gap: 28px; align-content: start; align-self: start; justify-items: end; min-width: 0; }
.ghead__side .ghead__addlib { grid-column: auto; grid-row: auto; }
/* Round 16 item 174: 320px, so the series head fits on one line.
   Measured in the shipped Nine By Five (assets/fonts/NineByFive.ttf):
   "related titles in joystats" is shorter than the old "related
   titles in joystats library" at 244.5px at lead 24, plus the 36px
   toggle and the 10px head gap, so 320px leaves room. */
.series { width: 320px; max-width: 100%; display: grid; gap: 8px; }
.series__title { margin: 0; font: 400 var(--fs-lead)/1.2 var(--f-display, 'Nine By Five'); color: var(--ink-7); }
/* Round 73 item 32: header side accordion. Round 96 item 3: the
   lists sit in normal flow inside their asides, so an open list
   pushes the box below it down instead of floating over it, and
   the header grows with the open list. The panel styling and the
   existing scroll caps stay, so a long list scrolls inside its
   panel. */
.ghead__side .series__list { width: 320px; max-width: 100%; background: var(--ink-2); border: 2px solid var(--ink-4); padding: 8px; }
.series__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.series__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.series__row:hover .series__name, .series__row:focus-visible .series__name { color: var(--cy-t, var(--cy)); }
.series__art { width: 36px; height: 54px; object-fit: cover; display: block; }
.series__name { min-width: 0; font-size: var(--fs-secondary); color: var(--ink-7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
/* Round 98 item 10: an ellipsised series name expands on row hover
   (or keyboard focus on the row) to show the full title. */
.series__row:hover .series__name,.series__row:focus-visible .series__name{white-space:normal;overflow:visible;text-overflow:clip}

/* Lately: show 5 rows before scrolling, matching the highlight box. */
/* Log sheet: hide the empty hint bar, bigger field labels. */
.sheet__hint:empty {
	display: none;
}
/* Gray X close button for sheets/popups. */
.sheet__x {
	background: var(--ink-3);
	color: var(--ink-6);
	border: 0;
	border-radius: 0;
	width: 36px;
	height: 36px;
	font-size: var(--fs-lead);
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}
.sheet__x:hover {
	background: var(--ink-4);
}
.sheet .label {
	font-size: var(--fs-lead);
}

/* Onboarding tour: dim overlay, pulsing highlights, guide popups. */
.tour-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(8, 10, 14, 0.55);
	pointer-events: none;
}
.tour-sheet-lift {
	z-index: 65 !important;
}
@keyframes tour-pulse {
	0% { box-shadow: 0 0 0 0 var(--cy); }
	70% { box-shadow: 0 0 0 16px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}
.tour-pulse {
	position: relative;
	z-index: 61;
	animation: tour-pulse 1.6s ease-out infinite;
	border-radius: 4px;
}
.tour-tip {
	position: fixed;
	z-index: 70;
	max-width: min(320px, 86vw);
	background: var(--ink-1);
	color: var(--ink-7);
	border: 2px solid var(--ink-7);
	clip-path: var(--c2);
	padding: 18px 18px 16px;
	display: grid;
	gap: 10px;
}
.tour-tip--modal {
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
}
.tour-tip h3 {
	margin: 0;
	font: 400 var(--fs-lead)/1.2 var(--f-display);
	color: var(--mg-t);
}
.tour-tip p {
	margin: 0;
	font-size: var(--fs-secondary);
	line-height: 1.5;
}
.tour-tip__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

/* Add game sheet. */
.ag-curated {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

/* Star rating: PNG icons, grayscale for empty. */
.star img {
	display: block;
}
.star__bg img {
	filter: grayscale(1);
	opacity: 0.35;
}

/* Achievement modal: bigger text, cyan game title, preserve desc case.
   Round 70 item 9: the game name is heavy weight with the title glow,
   like other game names, and never underlines on hover. */
.achmodal__gamelink {
	display: flex;
	align-items: center;
	/* Round 84 item 17: left-aligned, icon then name, with the
	   16px gap as the padding between them. */
	justify-content: flex-start;
	gap: 16px;
	text-decoration: none;
}
.achmodal__gtitle {
	font-size: var(--fs-heading);
	font-weight: 700;
	color: var(--cy);
	text-transform: none;
	text-align: left;
	text-shadow: 0 0 12px color-mix(in srgb, var(--cy-t) 40%, transparent);
}
[data-mode="light"] .achmodal__gtitle {
	text-shadow: 0 0 12px color-mix(in srgb, var(--cy) 40%, transparent);
}
@media (prefers-reduced-motion: reduce) {
	.achmodal__gtitle {
		text-shadow: none;
	}
}
.achmodal__gamelink:hover .achmodal__gtitle {
	text-decoration: none;
}
/* Round 86 item 14: the achievement name, description and meta
   lines are left-aligned, like the game header above them (round
   84 item 17); without this they inherit the box's centering. */
.achmodal__name {
	font-size: var(--fs-title);
	margin: 0 0 16px;
	text-align: left;
}
.achmodal__desc {
	font-size: var(--fs-lead);
	line-height: 1.5;
	text-transform: none;
	margin: 0 0 20px;
	text-align: left;
}
.achmodal__meta {
	font-size: var(--fs-body);
	text-align: left;
}

/* Favorite heart button. */


/* How I play description. */
.howplay {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	max-width: 900px;
	/* Round 13 item 129: without min-width: 0 the box's automatic
	   minimum is the full note width and the text runs off the
	   right edge. Zero lets it shrink to the track, and the text
	   then wraps within it. Round 105 item 19: the block lives
	   inside .ghead__b again, right below the rating (the round
	   104 item 8 move below the header is reverted). */
	min-width: 0;
}
.howplay__text {
	font-size: var(--fs-body);
	line-height: 1.35;
	margin: 0;
	/* Round 58 item 13: the note wraps and shows in full. Round 11
	   item 63 used to clamp it to one line with an ellipsis; the
	   full note is still the title tooltip, shown on hover. */
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
}
.howplay__edit {
	background: none;
	border: none;
	padding: 2px;
	margin-left: 0;
	cursor: pointer;
	line-height: 0;
	flex-shrink: 0;
	vertical-align: middle;
	opacity: 0;
	transition: opacity 0.15s ease;
}
.howplay__display:hover .howplay__edit,
.howplay__edit:focus {
	opacity: 1;
}
/* Round 11 item 63: the pencil sits in the display row after the
   text, not inside the clamped span, so the truncation cannot clip
   it. The row is one line: the label never shrinks, the text takes
   only its natural width and truncates when long, the pencil sits
   right after the visible text. Round 50: flex-grow was 1, which
   stretched short notes across the row and pushed the pencil to
   the far right; grow 0 keeps it beside the text. */
.howplay__display > .howplay__edit {
	position: static;
	display: inline-block;
	margin: 0;
	vertical-align: middle;
	flex-shrink: 0;
}
.howplay__display .howplay__label-static {
	flex-shrink: 0;
}
.howplay__display {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}
/* Long notes start on the label's line and wrap within the space left
   beside it instead of dropping whole to the next line. */
.howplay__display .howplay__text {
	flex: 0 1 auto;
	min-width: 0;
}
.howplay__edit img {
	image-rendering: pixelated;
	opacity: 0.6;
}
.howplay__edit:hover img {
	opacity: 1;
}
.howplay__form {
	flex: 1;
}
.howplay__input {
	width: 100%;
	font: inherit;
	padding: 8px;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	color: var(--ink);
	resize: vertical;
}
.howplay__actions {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

/* Favorites slide heart. */
.ip__heart {
	image-rendering: pixelated;
	vertical-align: -2px;
	margin-left: 6px;
}

/* Section visibility prefs. */
.hide-ratings .rating{
	display: none;
}
.hide-achpct .gcard__a {
	display: none;
}

/* Customize mode: section highlights and toggles. */
.is-editing [data-show-key] {
	outline: 2px dashed var(--cy);
	outline-offset: 4px;
}
/* Customize mode: hidden sections appear as dashed placeholders. */
.is-editing [data-show-key][hidden] {
	display: block;
	opacity: 0.6;
	outline: 2px dashed var(--cy);
	outline-offset: 4px;
	min-height: 80px;
	position: relative;
}
.is-editing [data-show-key][hidden]::before {
	content: attr(data-show-key);
	position: absolute;
	top: 8px;
	left: 12px;
	font-size: var(--fs-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--ink-dim);
}

/* Game header: heart aligned to title. */
.who__row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.who__row .favbtn {
	flex-shrink: 0;
}
/* Heart more visible when grayed out. */
.favbtn img {
	filter: grayscale(1);
	opacity: 0.6;
}

/* Game header: notes + rating buttons side by side. */
.ghead__btnrow {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 12px 0;
	flex-wrap: wrap;
}
.ghead__btnrow .btn--sm {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
/* Rating row: "their rating" label + stars + followed avg. */
.rating__row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
/* Half-star input: two click zones per star, so each zone is half
   the star wide (base sets 25% for the old quarter zones). */
.rating .star__q {
	width: 50%;
}
/* Their notes display. */
.howplay__display {
	margin-top: 12px;
}
.howplay__text {
	margin: 0;
}
/* Smaller notes input with placeholder. */
.howplay__input {
	width: 100%;
	max-width: 520px;
	font-size: var(--fs-body);
	line-height: 1.4;
	padding: 10px 12px;
}

/* Log sheet: headers in accent pink. */
.sheet .label {
	color: var(--pk);
}

/* Library card: favorite heart in top left corner. */
.gcard {
	position: relative;
}
.gcard__art {
	border: 3px solid #000 !important;
	transition: transform 0.15s ease;
	image-rendering: auto;
}
/* 0-hour games should not be dimmed. */
.gcard--zero {
	opacity: 1 !important;
}
.gcard:hover .gcard__art {
	transform: scale(1.05);
}
.gcard__fav {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	pointer-events: none;
}
.gcard__fav img {
	display: block;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}

/* Brand words keep their proper case everywhere, never overridden by
   the body lowercase rule: Steam, Nintendo, PlayStation travel in
   .pname spans (whole-element text-transform none where the element
   is just the brand). Connector row labels and paste inputs, and
   popup selects, render as authored for the same reason. */
.pname {
	text-transform: none;
}
.sheet select,
.sheet .sel {
	text-transform: none;
}
/* A game named inside a slide line takes the game-name treatment.
   Round 66 item 25: bold plus the cyan title glow, so it reads as
   clickable like feed and leaderboard game names. */
.ip__game {
	color: var(--cy-t);
	font-weight: 700;
	text-shadow: 0 0 12px color-mix(in srgb, var(--cy-t) 40%, transparent);
}
/* Round 68 item 7: light-mode glow uses the brighter cyan. */
[data-mode="light"] .ip__game {
	text-shadow: 0 0 12px color-mix(in srgb, var(--cy) 40%, transparent);
}
@media (prefers-reduced-motion: reduce) {
	.ip__game {
		text-shadow: none;
	}
}



/* Header dropdowns: ensure they are not clipped. */
.js-page > .sitebar {
	overflow: visible;
}
.usearch__drop{
	color: var(--cy);
	text-decoration: none;
}

.sess__ach {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--fs-secondary);
	color: var(--ink-6);
	text-transform: none;
}



#js-howplay-edit {
	font: 400 var(--fs-body)/1.3 var(--f-display);
}

/* ---------- Typography scale: consistent font sizes ---------- */
:root {
	--fs-xs: var(--fs-secondary);
	--fs-sm: var(--fs-secondary);
	--fs-md: var(--fs-body);
	--fs-lg: var(--fs-lead);
	--fs-xl: var(--fs-heading);
	--fs-2xl: var(--fs-display);
}

/* Base: all interactive text uses the scale. */
body {
	font-size: var(--fs-md);
}
.btn,
.btn--sm,
button,
input,
select,
textarea,
.sel {
	font-size: var(--fs-md);
}
/* Form fields: breathing room so text and selection highlights aren't cramped. */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea,
select,
.sel {
	padding: 10px 14px;
}
.btn--sm {
	font-size: var(--fs-md);
}
.label,
.hint,
small {
	font-size: var(--fs-sm);
}
.h2 {
	font-size: var(--fs-lg);
	font-weight: 400;
}

/* Larger profile box headers. */
.box__head .h2,
.box .h2 {
	font-size: var(--fs-heading);
}

.car__foot--center {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.howplay__label-static {
	font-size: var(--fs-lead);
	color: var(--cy);
	font-weight: 700;
}
.howplay__text {
	font-size: var(--fs-body);
	line-height: 1.5;
	margin: 8px 0 0 0;
}

.howplay__display {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}
.howplay__label-static {
	font-size: var(--fs-body);
	color: var(--pk);
	font-weight: 700;
}
.howplay__text {
	font-size: var(--fs-lead);
	line-height: 1.5;
	margin: 0;
	color: var(--pk);
}
.rating__label {
	color: var(--pk);
	font-weight: 700;
}

/* Fill boxes to remove whitespace. */
.duo > .box {
	display: flex;
	flex-direction: column;
}

/* Share icon top right. */
.box__head {
	position: relative;
}

/* Profile header: all elements vertically centered. */
.phead {
	display: flex !important;
	align-items: center !important;
	gap: 20px;
	/* Center the 162px hero stat in the 210px header: remove vertical padding
	   so the content box is the full height, floor it at 210px. */
	padding-top: 0;
	padding-bottom: 0;
	min-height: 210px;
}
.phead > * {
	align-self: center !important;
}
/* Profile header: hero stat vertically centered via a stretched wrapper.
   (align-self:center + auto margins did not hold, so the wrapper now fills
   the header height and centers the stat within itself, whichever side is taller.) */
header.box.phead > div.p-right,
.phead .p-right {
	margin-left: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	align-self: stretch !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	min-width: 400px;
	flex: 0 0 400px;
}
/* Game images: smooth rendering, exempt from global pixelated. */
.wrow__logo, .pile__c, .gcard__art, .ghead__art, .ev__ico img{
	image-rendering: auto !important;
}
/* Hero stat: center via auto margins (align-items quirk workaround). */
.phead .p-right .js-stat {
	margin-top: auto !important;
	margin-bottom: auto !important;
}
/* Hero stat absolute centering (flexbox-proof). */
.phead .p-right {
	position: relative !important;
}
.phead .p-right .js-stat {
	position: absolute !important;
	top: 50% !important;
	right: 0 !important;
	transform: translateY(-50%) !important;
	margin: 0 !important;
}
/* Import modal: OS chips sit directly right of the header title. */
#importbg .sheet__head {
	justify-content: flex-start;
}
#importbg .sheet__x {
	margin-left: auto;
}
/* Hero stat interior: the wrap spans both designer grid rows so the 108px
   content centers in the full 162px box. */
.phead .p-right .js-stat > .js-s-wrap {
	grid-row: 1 / -1;
}
/* Hero stat sizing: the box grows to its content and the value area
   never clips it (tall views were cut at top and bottom where the
   fixed slot height met the hidden overflow). */
.phead .p-right .js-stat {
	display: flex;
	align-items: center;
}
.phead .p-right .js-stat > .js-s-wrap {
	flex: 1;
	grid-row: auto;
}
.phead .p-right .js-s-val {
	overflow: visible;
}
/* Hero stat panel: darker in light mode for definition. */
[data-mode="light"] .phead .p-right {
	--joystats-panel: var(--ink-3);
}
/* Hero stat panel: meadow dark reads washed out at ink-3, so the body
   drops to the well color; the pale accent label keeps its dark text. */
[data-skin="meadow"][data-mode="dark"] .phead .p-right {
	--joystats-panel: var(--well);
}
.uname {
	font-size: var(--fs-title) !important;
	/* Profile username is bold by rule, synthesized 700 like the
	   game page headline, since Nine By Five ships one weight. */
	font-weight: 700 !important;
	text-shadow: none !important;
	color: var(--mg-t) !important;
	text-decoration: none !important;
	border-bottom: 0 !important;
}
/* Round 63 item 3: profile header username carries the same constant
   pink glow as the game page title username. Scoped to .phead so the
   feed minihead username (.minihead__name) keeps its own rule below.
   The !important beats the text-shadow: none !important above on
   specificity. Dark and light mode, same as the game page titles
   (round 64 item 1). Round 66 item 24: the other username
   renderings on the profile (who-link, comment authors, follow
   rows) carry the same glow from their own rules now. */
.phead .uname {
	text-shadow: 0 0 12px color-mix(in srgb, var(--mg-t) 40%, transparent) !important;
}
/* Round 68 item 7: light-mode glow uses the brighter magenta. */
[data-mode="light"] .phead .uname {
	text-shadow: 0 0 12px color-mix(in srgb, var(--mg) 40%, transparent) !important;
}
@media (prefers-reduced-motion: reduce) {
	.phead .uname {
		text-shadow: none !important;
	}
}
/* Round 64 item 3: the My Feed page title username carries the same
   constant pink glow as the profile header username. Scoped to
   .minihead__name, which is only the feed page title username
   (template-feed.php), so feed event usernames keep their own
   rule (.fwho, round 66 item 18). The !important beats the
   text-shadow: none !important on .uname above. Dark and light
   mode, same as the game page titles. */
.minihead__name {
	text-shadow: 0 0 12px color-mix(in srgb, var(--mg-t) 40%, transparent) !important;
}
/* Round 68 item 7: light-mode glow uses the brighter magenta. */
[data-mode="light"] .minihead__name {
	text-shadow: 0 0 12px color-mix(in srgb, var(--mg) 40%, transparent) !important;
}
@media (prefers-reduced-motion: reduce) {
	.minihead__name {
		text-shadow: none !important;
	}
}
.summary {
	color: var(--pk) !important;
	font-family: var(--f-display);
}

.phead {
	align-items: center !important;
}
/* Platform labels keep their case (EA, Steam, Switch): exempt from the
   ui-kit's blanket lowercase on hero stat text. */
.p-right .js-stat .js-pick {
	text-transform: none !important;
}
/* Hero stat: label sits directly under the number, no extra whitespace. */
.p-right .js-lab {
	gap: 2px !important;
}
.p-right .js-lab .js-t {
	line-height: 1.2 !important;
}
/* Favorites counter: the dot has both a "." character and a background square;
   hide the text so only the crisp square renders, no stray pixel. */
.js-dot {
	font-size: 0 !important;
	line-height: 0 !important;
}
.p-right {
	margin-left: auto;
	background: none !important;
	clip-path: none !important;
	padding: 0;
	overflow: visible;
}

/* Header spacing. */
.phead .who {
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
}
.phead .who__row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.phead .avatar-wrap {
	flex-shrink: 0;
}

.rating__label,
.howplay__label-static {
	font-size: var(--fs-lead) !important;
	font-weight: 700;
	color: var(--pk) !important;
}

.howplay {
	margin-top: 4px;
}
.howplay__display {
	margin: 0;
}
.rating {
	margin-bottom: 2px;
}

.sitebar, .sitebar__r, .usearch{
	overflow: visible !important;
}

.js-page {
	overflow: visible !important;
}

.duo {
	align-items: stretch !important;
}
.duo > .hi { order: 1; }
.duo > .lately { order: 2; }
/* Streak fire icon. */
.streak {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	vertical-align: middle;
}
.streak__n {
	font-family: var(--f-data);
	font-size: var(--fs-secondary);
	color: var(--cy);
}
.streak--off {
	filter: grayscale(1);
	opacity: 0.5;
}
.streak--off .streak__n {
	color: var(--tx-dim);
}


.ghead__b .ghead__btnrow,
.ghead__b .howplay,
.ghead__b .rating {
	margin: 0 !important;
	padding: 0 !important;
}
.ghead__b .ghead__btnrow + .howplay {
	margin-top: -4px !important;
}

/* .phead centering consolidated into the primary rule above. */
.phead .avatar-wrap {
	flex-shrink: 0;
	align-self: center;
}
.phead .who {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.phead .who__row {
	display: flex;
	align-items: center;
	gap: 12px;
}


/* .phead centering consolidated into the primary rule above. */
.phead .who {
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
}


/* Boxed share icon button, always full color. */
.sharebtn {
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	padding: 8px;
	cursor: pointer;
	line-height: 0;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
}
.sharebtn img {
	width: 20px;
	height: 20px;
	display: block;
}
.sharebtn:hover img {
	opacity: 0.85;
}


/* Log sheet: collapsed sections (edit mode with values filled). */
.sheet__when.is-collapsed > .seg, .sheet__when.is-collapsed > .row, .sheet__when.is-collapsed > .hint{
	display: none;
}
/* Synced indicator: when/how-long came from automatic sync. */
.sheet__when.is-synced > .label::before,
.sheet__dur.is-synced > .label::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 6px;
	background: var(--cy);
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	vertical-align: -2px;
}

/* Share icon button: boxed like heart/pin, always full color. */
.sharebtn {
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	padding: 8px 12px 8px 8px;
	cursor: pointer;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
}
.sharebtn:hover img {
	opacity: 0.8;
}

/* Game highlights pencil: a normal boxed button, not a bare icon.
   Round 11 item 19: always visible, never hover-gated like the notes
   pencil (the base .howplay__edit rule hides it at opacity 0).
   Round 75 item 17: the button carries no howplay__edit class, so
   its boxed look comes from this rule alone, and the Wargaming
   button sits directly to its left in the header actions. The icon
   keeps the notes pencil's dim-at-rest treatment. */
#js-hl-edit {
	opacity: 1;
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	padding: 8px;
	cursor: pointer;
	line-height: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
}
#js-hl-edit img {
	image-rendering: pixelated;
	opacity: 0.6;
}
#js-hl-edit:hover img {
	opacity: 1;
}

/* Hover pop: subtle scale for interactive elements. */
.ev, .ghead__art, .sharebtn, .favbtn, .pinb--head{
	transition: transform .15s ease;
}
.sharebtn:hover, .favbtn:hover, .pinb--head:hover{
	transform: scale(1.05);
}
/* Add-your prompts pop. */
#js-howplay-edit,
.js-rating-optin {
	transition: transform .15s ease;
}
#js-howplay-edit:hover,
.js-rating-optin:hover {
	transform: scale(1.05);
}

/* Round 11 item 2: icons pop on hover in Sessions and Lately. Both use
   .ev rows, so Highlights (no .ev rows) stays out of scope. Only the
   icon scales, never the row, so no scrollbar flicker; the plate and
   halo scale with it, so the spine stays masked. */
.ev__ico {
	transition: transform .15s ease;
}
.ev:hover .ev__ico {
	transform: scale(1.15);
}
/* Same icon-only pop for the profile Highlights rows and the game
   page block icons: the icon scales, never the row, so no scrollbar
   flicker. */
.wrow__ico,
.fchip__icon {
	transition: transform .15s ease;
}
.wrow:hover .wrow__ico,
.fchip:hover .fchip__icon {
	transform: scale(1.15);
}

/* Connectors sheet: header aligns with content (no empty pointer icon offset). */
#connT .ptr {
	display: none;
}

/* Profile summary genres: distinct colors. */
.summary .genre {
	text-transform: none;
}
.usearch {
	position: relative;
}

/* Hero stat: gold frame replaces the cyan box. */
/* Hero stat: no gold frame (removed with old design). */

/* Press Start 2P for all numbers site-wide. */
@font-face {
	font-family: 'Press Start 2P';
	src: url('../fonts/press-start-2p-latin-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.rating__n{
	font-family: var(--f-display);
}
/* Header counts: Press Start 2P, highlighted, aligned with header text. */
.h2 small,
.h3 small {
	font-family: 'Press Start 2P', monospace;
	color: var(--cy);
	font-size: 0.7em;
	vertical-align: baseline;
	position: relative;
	top: 2px;
	margin-left: 8px;
}

/* Theme dropdown: native <details> element, no JS toggle needed. */
.themedrop {
	position: relative;
	flex: none;
}
.themedrop__btn {
	list-style: none;
	cursor: pointer;
}
.themedrop__btn::-webkit-details-marker {
	display: none;
}
.themedrop__btn::marker {
	display: none;
	content: '';
}
.themedrop__menu {
	display: none;
	position: fixed;
	top: 64px;
	right: 16px;
	z-index: 99999;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	min-width: 0;
	width: 320px;
	max-width: 90vw;
	padding: 8px;
	/* Block shadow + opposite-mode background so the picker stands out. */
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45) !important;
}
[data-mode="dark"] .themedrop__menu {
	background: #f7f4ec;
	color: #2a2822;
	border-color: #b3ad9c;
}
/* Theme picker names follow the page mode (the buttons render in page-mode
   colors, not the popup's opposite-mode background), so no overrides here:
   light mode names are dark, dark mode names are light. */
[data-mode="light"] .themedrop__menu {
	background: #1a1e25;
	color: #bcc4d0;
	border-color: #3a424f;
}

/* Theme dropdown palettes: per-skin colors (dark mode). */
.pal[data-skin="classic"] i:nth-child(1){background:#12151a}
.pal[data-skin="classic"] i:nth-child(2){background:#3fe8ff}
.pal[data-skin="classic"] i:nth-child(3){background:#ff4fd8}
.pal[data-skin="classic"] i:nth-child(4){background:#3a424f}
.pal[data-skin="classic"] i:nth-child(5){background:#f0f3f8}
.pal[data-skin="arcade"] i:nth-child(1){background:#14161d}
.pal[data-skin="arcade"] i:nth-child(2){background:#5b8cff}
.pal[data-skin="arcade"] i:nth-child(3){background:#ff5a4d}
.pal[data-skin="arcade"] i:nth-child(4){background:#3f4658}
.pal[data-skin="arcade"] i:nth-child(5){background:#f6f7fb}
.pal[data-skin="meadow"] i:nth-child(1){background:#211b33}
.pal[data-skin="meadow"] i:nth-child(2){background:#9cc8f2}
.pal[data-skin="meadow"] i:nth-child(3){background:#f5a6cf}
.pal[data-skin="meadow"] i:nth-child(4){background:#6b5f99}
.pal[data-skin="meadow"] i:nth-child(5){background:#fff8fd}
.pal[data-skin="forest"] i:nth-child(1){background:#0c1510}
.pal[data-skin="forest"] i:nth-child(2){background:#5fe08a}
.pal[data-skin="forest"] i:nth-child(3){background:#b8e86a}
.pal[data-skin="forest"] i:nth-child(4){background:#365a47}
.pal[data-skin="forest"] i:nth-child(5){background:#f2fbf5}
.pal[data-skin="stealth"] i:nth-child(1){background:#0a0a0b}
.pal[data-skin="stealth"] i:nth-child(2){background:#ff2b3a}
.pal[data-skin="stealth"] i:nth-child(3){background:#c4131f}
.pal[data-skin="stealth"] i:nth-child(4){background:#3a3a3f}
.pal[data-skin="stealth"] i:nth-child(5){background:#f7f7f8}

.theme-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	margin-bottom: 8px;
}
.theme-grid .theme {
	padding: 6px;
	gap: 4px;
}
.theme-grid .theme__name {
	font-size: var(--fs-secondary);
	color: var(--ink-6);
}
[data-mode="dark"] .theme-grid .theme__name {
	color: var(--ink-6);
}
[data-mode="light"] .theme-grid .theme__name {
	color: #2a2822;
}
/* Selected theme/mode highlight chip. */
.theme-grid .theme[aria-pressed="true"],
.theme-grid .theme[aria-checked="true"] {
	background: var(--cy) !important;
	border-color: var(--cy) !important;
}
.theme-grid .theme[aria-pressed="true"] .theme__name,
.theme-grid .theme[aria-checked="true"] .theme__name {
	color: #fff !important;
}
.menu__modes .chip-btn[aria-pressed="true"] {
	background: var(--cy) !important;
	border-color: var(--cy) !important;
	color: #fff !important;
}
.theme-grid .theme .pal {
	height: 20px;
}
.themedrop[open] .themedrop__menu {
	display: block;
}

/* Game header: consistent size, no artificial resizing on edit. */
.ghead {
	min-height: 200px;
}
.ghead__b {
	min-height: 120px;
}

/* Hero stat container: no border. */
.p-right {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	background: none !important;
}

.rating__n{
	font-size: 0.6em;
	letter-spacing: 0;
}


/* Icons: no boxes, just the icon itself. */
.iconbtn,
.pinb--head,
.sharebtn {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 4px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
}
.iconbtn img,
.pinb--head img,
.sharebtn img {
	width: 32px !important;
	height: 32px !important;
}

/* Round 11 item 7: every share button takes the profile share
   treatment: 40px box, 20px icon. Positions unchanged. */
.sharebtn {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	padding: 0 !important;
}
.sharebtn img {
	width: 20px !important;
	height: 20px !important;
}

/* H2 small counts: smaller to match header. */
.h2 small,
.h3 small {
	font-size: 0.4em !important;
}

/* H2 small: vertical alignment with header. */
.h2 small,
.h3 small {
	vertical-align: baseline;
	position: relative;
	top: 2px;
}

/* Add playthrough modal: fields side by side{
	display: flex;
	gap: 12px;
}

/* BG3 importer: radio left of label, standard dropdowns. */
/* Round 11 item 16: Veilguard details rows get spacing and aligned
   selects, so the dropdowns no longer run into each other. */
.js-vg-party p {
	margin: 8px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}
.js-vg-party .js-vg-plabel {
	flex: 0 0 110px;
}
.js-vg-party select {
	flex: 1 1 auto;
	min-width: 0;
}


/* Form inputs: standard square corners, no pixel-clip. */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select,
.sel {
	clip-path: none !important;
	border-radius: 0 !important;
}

/* Text inputs: a little letter-spacing so word gaps read clearly.
   Nine By Five advances a space at 128/1024em, exactly the same as a
   capital I, while normal letters advance 384; the fixed spacing widens
   the narrow word gap proportionally more than the letters. */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea {
	letter-spacing: 0.05em;
}

/* Split form row: platform and hours side by side. */
.splitform__row {
	display: flex;
	gap: 12px;
}
.splitform__row .field {
	flex: 1;
	min-width: 0;
}



/* Game page cover: black border matching library. */
.ghead__art,
.ghead__art img {
	border: 4px solid #000 !important;
}

/* Hero stat arrows. */
.js-s-wrap {
	display: flex;
	align-items: center;
	gap: 4px;
	max-width: 100%;
}
.js-s-val {
	flex: 1;
	min-width: 0;
	max-width: 400px;
}
.js-arrow {
	background: none !important;
	border: none !important;
	padding: 4px;
	cursor: pointer;
	flex-shrink: 0;
}
.js-arrow img {
	display: block;
}



/* Notes field: preserve user capitalization. */
.howplay__text{
	text-transform: none !important;
}

/* Pencil icon: aligned to end of notes. */
.howplay__edit{
	vertical-align: baseline !important;
	margin-left: 6px !important;
	position: relative !important;
	top: 2px !important;
}

/* Profile share icon: closer to username{
	margin-left: 8px !important;
	vertical-align: middle !important;
	position: relative !important;
	top: 0 !important;
}

/* Pulsing highlight for connectors button on empty profiles. */
@keyframes js-pulse {
	0%, 100% { box-shadow: var(--up), 0 0 0 0 transparent; }
	50% { box-shadow: var(--up), 0 0 0 4px color-mix(in srgb, var(--cy) 35%, transparent); }
}
.btn--pulse {
	animation: js-pulse 2.4s ease-in-out infinite;
}
.btn--pulse:hover {
	animation-play-state: paused;
}

/* Collapsible search: icon only until clicked. */
.usearch--collapsed .usearch__input[hidden] { display: none; }
.usearch--expanded .usearch__input { display: block; }
.usearch--expanded #js-search-toggle { display: none; }
.usearch--expanded #js-feed-inline-search-btn { display: none; }
.icon-btn { background: none; border: none; padding: 4px; cursor: pointer; display: inline-flex; align-items: center; }
.icon-btn img { display: block; }

/* Share button closer to username. */

/* Header icons: uniform size, adjacent, slide for search. */
.sitebar__r { display: flex; align-items: center; gap: 8px; }
.sitebar__r .icon-btn,
.sitebar__r .themedrop__btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.sitebar__r .icon-btn img,
.sitebar__r .themedrop__btn img { width: 32px; height: 32px; }

/* Round 11 item 64: the four header buttons sit in four different
   wrappers (details, search div, notif div, bare link), so their tops
   landed 2px apart. One common 40px box for every wrapper, button
   centered inside, so all four tops line up. The search wrapper gets
   the shared alignment but no fixed height, so its expanded input
   (taller than 40px) still grows the row as before. */
.sitebar__r > .themedrop,
.sitebar__r > .usearch,
.sitebar__r > .notif,
.sitebar__r > .acctmenu { display: flex; align-items: center; justify-content: center; }
.sitebar__r > .themedrop,
.sitebar__r > .notif,
.sitebar__r > .acctmenu { height: 44px; flex: none; }
/* Round 105 item 1, corrected round 106 items 9/22: the header
   icon row reads as standard buttons (the same cyan background
   and bevel as .btn), not bare icons. Round 106: the ui-kit
   stylesheet loads AFTER theme.css and its .sitebar__r .icon-btn
   rule (same specificity, both !important, later wins) painted
   the buttons gray (var(--k-quiet), the quiet fill), which is
   what Jessica saw as gray boxes. This selector is
   header.sitebar-qualified, so it outranks the ui-kit rule and
   the cyan wins. The clip is none and the shadow is var(--up),
   matching the rendered .btn exactly: square corners, raised
   bevel. Icon buttons elsewhere (game page pencil, feed search,
   share card) keep the bare treatment. The badge and dot on the
   bell and gear keep their -6px corner against the 44px box. */
header.sitebar .sitebar__r .icon-btn,
header.sitebar .sitebar__r .themedrop__btn {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	padding: 6px !important;
	background: var(--cy) !important;
	border: 0 !important;
	box-shadow: var(--up) !important;
	clip-path: none !important;
}

/* Round 20 items 222/227: account (gear) menu in the site header. The
   gear button keeps the shared 40px icon-btn box; the dropdown mirrors
   .notif__drop (ink-2 panel, 2px ink-4 border, block shadow). JS
   relocates the menu to <body> and positions it fixed while open,
   mirroring the theme picker. */
.acctmenu { position: relative; }
/* Round 75 item 4: the dot on the connectors menu entry sits in
   the flow directly after the "connectors" word, not at the link's
   top-right corner (the old absolute -6px corner put it 110px past
   the word). The round 34 relative positioning on the link is gone
   with it; the dropdown positions against .acctmenu, not the link. */
#js-menu-connectors .notif__dot {
	position: static;
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-left: 8px;
	vertical-align: middle;
}
.acctmenu__drop {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 200;
	width: 220px;
	max-width: 90vw;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
	padding: 8px;
	display: grid;
}
.acctmenu__drop a,
.acctmenu__drop button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	font-size: var(--fs-body);
	line-height: 1.3;
	color: var(--ink-6);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}
.acctmenu__drop a:hover,
.acctmenu__drop button:hover {
	background: var(--ink-3);
	color: var(--ink-7);
}
.acctmenu__drop button[disabled] {
	color: var(--ink-5);
	cursor: default;
	background: none;
}
.usearch { display: flex; align-items: center; transition: all 0.3s ease; flex: none; }
.usearch--collapsed { width: auto; min-width: 0 !important; }
.usearch--expanded { flex: 1; }
.usearch--expanded .usearch__input { flex: 1; margin-left: 8px; }

/* Username edit pencil: hover-only, larger, no background. Hidden it
   takes no layout space (width 0, no margin, clipped), so the badge
   shelf sits right next to the username; on username hover it opens
   to 20px and pushes the badge over. No visibility:hidden, so the
   button stays keyboard-focusable and appears on focus as before. */
.uname { position: relative; display: inline-flex; align-items: center; }
.uname #js-uname-text { min-width: 0; }
.uname-edit { display: inline-flex; align-items: center; justify-content: center; width: 0; overflow: hidden; flex: none; background: none; border: none; padding: 0; cursor: pointer; opacity: 0; transition: opacity 0.2s, width 0.2s, margin-left 0.2s; margin-left: 0; }
.uname:hover .uname-edit, .uname:focus-within .uname-edit { opacity: 1; width: 20px; margin-left: 4px; }
.uname-edit:focus-visible { opacity: 1; width: 20px; margin-left: 4px; }
.uname-edit img, .uname-edit svg { width: 20px; height: 20px; display: block; flex: none; }


.btn.btn--danger {
	--bg: var(--mg);
	--fg: var(--on-accent);
	background: var(--mg);
	color: var(--on-accent);
}
/* Clear all data: always red, regardless of theme (destructive action). */
#js-clear-data.btn.btn--danger {
	--bg: #cc0000;
	--fg: #ffffff;
	background: #cc0000 !important;
	color: #ffffff !important;
	border-color: #990000 !important;
}

/* Add game: platform + curated side by side. */
.ag-duo {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.ag-duo .field {
	flex: 1;
	min-width: 0;
}
/* Add-game selects: equal sizing. */
.ag-sel {
	min-height: 48px;
	font-size: var(--fs-body);
	padding-right: 40px;
}
/* Add-game manual input: normal size (not oversized .sel). */
.ag-input {
	min-height: 40px;
	padding: 8px 12px;
	font-size: var(--fs-body);
	border: 2px solid var(--ink-4);
	background: var(--ink-2);
	color: var(--ink-7);
	border-radius: 0;
	flex: 1 1 auto;
	min-width: 0;
}
/* Connector warning interstitial. */
.ag-warn {
	margin: 12px 0;
	padding: 14px 16px;
	background: color-mix(in srgb, var(--cy), transparent 88%);
	border: 3px solid var(--cy);
	box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}
.ag-warn p {
	margin: 0 0 10px 0;
}
.ag-warn .btn {
	margin-right: 8px;
}
#ag-warn-connectors {
	box-shadow: var(--up) !important;
}
/* Curated game dropdown: preserve original case. */
#ag-curated-sel,
#ag-curated-sel option {
	text-transform: none;
}


/* Greyed-out unverified badge next to genre. */
.badge--grey {
	opacity: 0.5;
	filter: grayscale(1);
}

/* Game header log session button: vertically centered, right-aligned. */
.ghead__log {
	margin-left: auto;
	align-self: center;
}

/* Page background: one continuous --ink-3 (overrides --ink-1 in base). */
.js-page,
.js-page.px {
	background-color: var(--ink-3) !important;
}

/* Log sheet duration: hrs, min{
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Dropdown arrows: padding so arrow doesn't overlap border. */
.sel {
	padding-right: 36px !important;
}

/* Custom pixel dropdown arrow. The native arrow ignores padding and sits on
   the edge, so it is replaced with a pixel chevron parked 14px off the edge. */
[data-mode="dark"] select.sel,
[data-mode="light"] select.sel,
[data-mode="dark"] .sheet select.sel,
[data-mode="light"] .sheet select.sel {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	cursor: pointer;
}
[data-mode="dark"] select.sel,
[data-mode="dark"] .sheet select.sel {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><rect width='12' height='2' fill='%23cfd6e4'/><rect y='2' x='2' width='8' height='2' fill='%23cfd6e4'/><rect y='4' x='4' width='4' height='2' fill='%23cfd6e4'/><rect y='6' x='5' width='2' height='2' fill='%23cfd6e4'/></svg>") !important;
}
[data-mode="light"] select.sel,
[data-mode="light"] .sheet select.sel {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><rect width='12' height='2' fill='%232a2822'/><rect y='2' x='2' width='8' height='2' fill='%232a2822'/><rect y='4' x='4' width='4' height='2' fill='%232a2822'/><rect y='6' x='5' width='2' height='2' fill='%232a2822'/></svg>") !important;
}

/* Highlight slide headers: consistent height. */
.box__head {
	min-height: 56px;
}

/* Heart button: same boxed treatment as the share button, always. */
.favbtn {
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	padding: 8px;
	cursor: pointer;
	line-height: 0;
	border-radius: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	min-width: 40px;
	box-shadow: none;
}
.favbtn.is-fav img {
	filter: none;
	opacity: 1;
}
.favbtn img {
	display: block;
}

/* Rating X (clear, and the opt-in flow's cancel): only visible on hover,
   no matter what, including right after a rating is added in place. */
.rating .rbtn--clear,
.rating .rbtn--cancel {
	opacity: 0;
	transition: opacity 0.15s ease;
}
.rating:hover .rbtn--clear,
.rating:hover .rbtn--cancel {
	opacity: 1;
}

/* Theme picker selected button: ensure readable text (override ui-kit). */
.theme-grid .theme[aria-checked="true"] .theme__name,
.theme-grid .theme[aria-pressed="true"] .theme__name {
	color: #1a1a1a !important;
}
[data-mode="dark"] .theme-grid .theme[aria-checked="true"] .theme__name,
[data-mode="dark"] .theme-grid .theme[aria-pressed="true"] .theme__name {
	color: #ffffff !important;
}

/* Highlight distinguishability in light modes. */
[data-skin="cosmos"][data-mode="light"] {
	--mg: #b87f00;
}
[data-skin="stealth"][data-mode="light"] {
	--mg: #a01018;
}
[data-skin="butter"][data-mode="light"] {
	--cy: #b8860b;
}
/* Round 11 item 4: butter light only, the aggregate headline game name
   takes the red highlight text token instead of the gold cyan token. */
[data-skin="butter"][data-mode="light"] .gtitle__game {
	color: var(--mg-t);
}

/* Share card: controls above the preview, left aligned. No field
   headers; the theme icon centers vertically with the dropdowns. */
.share-bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}
.share-bar .field {
	margin: 0;
}
/* Playthrough-specific fields populate under the control row. */
.share-pt-field {
	margin: 0 0 20px;
}
/* Static on purpose: the theme popup anchors to the share bar (the
   positioned ancestor), so it opens inside the sheet, not centered on
   this small field where it spilled past the sheet's edge. */
.share-theme {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.share-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
/* Preview window with a superimposed note in the top-left corner. */
.share-preview-wrap {
	position: relative;
}
/* Share preview at the sheet's full content width.
   The preview flag anchors to this box, not the full-width wrap. */
.share-preview {
	position: relative;
	width: 100%;
	margin-inline: auto;
}
/* The preview is the actual card PNG from the core endpoint. It is a
   rendered card, not pixel art: the base pixelated image rule would
   granulate its text, so it renders smooth. */
#js-card-preview-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1200 / 630;
	background: var(--ink-2);
	box-shadow: 0 0 0 4px var(--ink-4);
	image-rendering: auto;
}
.share-preview-note {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	font-size: var(--fs-secondary);
	line-height: 1;
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	padding: 4px 8px;
	pointer-events: none;
}
/* Card theme picker: floating popup anchored to the share bar's left
   edge, wide enough for the swatch labels to fit in full. */
.card-theme-pop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 60;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
	padding: 12px;
	width: min(430px, 90vw);
}
.card-theme-pop[hidden] {
	display: none;
}
/* Card theme swatches: 3x3 grid, no scrolling. */
.card-theme-pop .swatches {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}
.card-theme-pop .sw {
	min-width: 0;
}
.card-theme-pop .field + .field {
	margin-top: 12px;
}
/* Share actions sit below the preview, left aligned. */
.share-actions {
	justify-content: flex-start;
	margin-top: 20px;
}

/* Cosmos light: the username reads as a blue shade (distinct from the
   game name blue), and the pulse highlight is a lighter warm gold. The
   two no longer share the muddy gold text token. */
[data-skin="cosmos"][data-mode="light"] {
	--spot-ink: #ffd24a;
}
[data-skin="cosmos"][data-mode="light"] .gtitle__who,
[data-skin="cosmos"][data-mode="light"] .uname {
	color: #364c82 !important;
}
/* Stealth light sets the magenta text token to near-black, so the game
   page username vanishes into the headline; it takes the skin's red
   text accent instead, the colour the game title already uses. */
[data-skin="stealth"][data-mode="light"] .gtitle__who {
	color: var(--cy-t);
}
[data-skin="stealth"][data-mode="light"] .uname {
	color: var(--cy-t) !important;
}

/* Add game sheet: the direct-connector flag reads as a highlight box,
   like the find box on the import sheet. */
.ag-warn {
	border: 3px solid var(--cy);
	padding: 12px 14px;
	margin-bottom: 12px;
}
.ag-warn p {
	margin: 0;
}



/* Platform selects keep label case (EA) in the edit form + split popup. */
[data-pt-platform-sel],
#js-split-platform {
	text-transform: none !important;
}
[data-pt-platform-sel] option,
#js-split-platform option {
	text-transform: none;
}

/* General game page: cross-user stats in the hero-stat style. */
.aggstats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}
.aggstat {
	background: var(--ink-2);
	padding: 20px;
	display: grid;
	gap: 8px;
	align-content: start;
}
.aggstat--wide {
	grid-column: span 2;
}
.aggstat__n {
	font: 400 var(--fs-display)/1 var(--f-data);
	color: var(--cy);
}
.aggstat__l {
	font-size: var(--fs-secondary);
	color: var(--ink-5);
}
.aggstat__sub {
	margin: 0;
	font-size: var(--fs-secondary);
}
/* Round 11 item 5: numeric stat containers double in size (wide
   word-cloud and highlight-field containers excluded). The odometer
   geometry doubles with them, including the roll distance. */
.aggstat--num {
	padding: 40px;
	gap: 16px;
	/* Round 50 item 2: the number and its label center in the tile,
	   matching the hero stat, instead of sitting at the left. */
	justify-items: center;
}
.aggstat--num .aggstat__l {
	font-size: var(--fs-title);
}
.aggstat--num .odo {
	gap: 6px;
}
.aggstat--num .odo i {
	width: 52px;
	height: 76px;
	font-size: var(--fs-display);
}
.aggstat--num .odo i.d {
	width: 24px;
	padding-bottom: 16px;
	/* Round 58 item 3: the Press Start 2P full stop ink sits right of
	   center in its advance (measured: 7.9px right at display size with
	   no shift), so the dot landed jammed against the following digit
	   with a wide gap to the one before it. The round 50 1/16em right
	   shift pushed it further right. A 0.165em left shift centers the
	   ink in its cell. */
	transform: translateX(-0.165em);
}
.aggstat--num .odo__strip b {
	height: 76px;
}
.aggstat--num .odo--roll.go .odo__strip {
	transform: translateY(-760px);
}
/* Aggregate tiles: long numbers shrink
   their odometer cells so the number fits its tile instead of
   spilling over the next tile. The tier class comes from
   joystats_odometer by character count; the strip height and roll
   distance follow the cell height. Round 55 item 3: the tiers
   cover the aggregate tiles only. They used to cover the game
   page counters too, and that shrank them: a 4-character value
   like "20.8" dropped to the mid tier (38px cells, 36px font)
   and a 7-character value to the tight tier (28px cells, 24px
   font), while the numbers used to render full size (52px cells,
   48px font). The game page counters keep the original size at
   any length, centered in their tiles, overflowing the padding
   symmetrically when a very long number is wider than its tile. */
.aggstats .odo--mid { gap: 4px; }
.aggstats .odo--mid i { width: 38px; height: 56px; font-size: var(--fs-title); }
.aggstats .odo--mid i.d { width: 20px; padding-bottom: 12px; transform: translateX(.0625em); }
.aggstats .odo--mid .odo__strip b { height: 56px; }
.aggstats .odo--mid.odo--roll.go .odo__strip { transform: translateY(-560px); }
.aggstats .odo--tight { gap: 4px; }
.aggstats .odo--tight i { width: 28px; height: 40px; font-size: var(--fs-lead); }
.aggstats .odo--tight i.d { width: 16px; padding-bottom: 8px; transform: translateX(.0625em); }
.aggstats .odo--tight .odo__strip b { height: 40px; }
.aggstats .odo--tight.odo--roll.go .odo__strip { transform: translateY(-400px); }
.aggstats .odo--xtight { gap: 3px; }
.aggstats .odo--xtight i { width: 20px; height: 30px; font-size: var(--fs-secondary); }
.aggstats .odo--xtight i.d { width: 12px; padding-bottom: 6px; transform: translateX(.0625em); }
.aggstats .odo--xtight .odo__strip b { height: 30px; }
.aggstats .odo--xtight.odo--roll.go .odo__strip { transform: translateY(-300px); }
.aggcloud {
	margin: 0;
	line-height: 1.6;
}
.aggcloud__w {
	margin-right: 10px;
	color: var(--ink-7);
}
.aggbar {
	display: flex;
	align-items: center;
	gap: 10px;
}
.aggbar__l {
	flex: 0 0 30%;
	font-size: var(--fs-secondary);
	/* Round 75 item 14: an aggregate bar label is a highlight
	   field value (a Top Aircraft / Top Ships name), so it keeps
	   its original case instead of inheriting the body lowercase. */
	text-transform: none;
}
.aggbar__t {
	flex: 1;
	height: 12px;
	background: var(--ink-3);
}
.aggbar__f {
	display: block;
	height: 100%;
	background: var(--cy);
}
.aggbar__n {
	font-size: var(--fs-secondary);
	min-width: 24px;
	text-align: right;
}

/* Buttons from the package, used by the empty state. */
.sbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 6px 18px;
	border: 0;
	cursor: pointer;
	background: var(--ink-3);
	color: var(--ink-7);
	font: 400 var(--fs-body)/1 var(--f-display);
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .22);
}
.sbtn:hover {
	background: var(--ink-4);
}
.sbtn:active {
	transform: translateY(2px);
}
.sbtn--accent {
	background: var(--cy);
	color: var(--on-accent);
}
.sbtn--accent:hover {
	background: var(--cy);
	filter: brightness(1.1);
}

/* =====================================================================
   Game page playthroughs / save file / highlights block, ported
   literally from the designer package joystats-playthroughs-block
   (1-reference/playthroughs-block.css). Class prefix: ptb (block), run, fchip, pill, not both.
   ===================================================================== */
.ptb{box-sizing:border-box;width:100%;background:var(--ink-2);padding:28px 32px;display:flex;flex-direction:column;gap:20px;color:var(--ink-7)}
.ptb__head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.ptb__title{margin:0;font-size:var(--fs-title);font-weight:400}
/* Round 49 item 2: the "no ..." owner heading is one size smaller. */
.ptb__title--no-hl{font-size:var(--fs-heading)}
.ptb__count{color:var(--ink-5);font-size:var(--fs-lead)}
.ptb__actions{margin-left:auto;display:flex;align-items:center;gap:10px}
/* Round 54 item 11: the add playthrough button fits its text. The base
   sheet gives #js-split-open a 192px min-width (round 12 item 84, so
   it matches the import-save button), which leaves the button wider
   than a short label and can wrap its text onto two lines. The
   import-save button keeps its own min-width. */
#js-split-open{min-width:0;white-space:nowrap;flex:none}
.ptb__runs{display:flex;flex-direction:column;gap:14px;margin:0;padding:0;list-style:none}
/* Round 67 item 19: a character list (WoW, Level field present) scrolls
   inside its box instead of stretching the page as one long list. */
.ptb__runs--chars{max-height:420px;overflow-y:auto}
/* Round 70 item 13: in the duo the character list fills the box down
   to its normal bottom padding instead of stopping at the 420px cap,
   which cut the scroll off too high and left dead space below it.
   The 420px cap stays for any box outside the duo. Round 73 item
   24: the cap is back in the duo too, with its internal scroll, so
   the container never extends endlessly down the page; the flex
   fill stays so the list still fills the box up to the cap.
   Non-character lists scroll inside the stretched duo box instead
   of being clipped by .duo.box overflow hidden. Round 95 item 5:
   the cap is gone in the duo again, but the flex basis is 0, so the
   list fills the stretched box to its bottom padding without sizing
   the row: a long list scrolls inside the box instead of stretching
   the page (28 characters stay 640px tall, verified in a render).
   A bare cap removal stretched the page to the full list height. */
.duo .ptb__runs--chars{max-height:none;overflow-y:auto;flex:1 1 0;min-height:0}
.duo .ptb__runs{min-height:0;overflow-y:auto}
/* Round 116 item 12: a save files list is cut off at normal height
   with a scroll bar inside instead of showing every save file at
   full height. The duo box keeps 640px as a floor, not a fixed
   height (theme.css below overrides .duo .box to height auto), so
   a long list used to stretch the whole box. Outside the duo the
   420px cap matches the character list; inside the duo the list
   fills the box and scrolls, the same treatment the character
   list already has. */
.ptb__runs--saves{max-height:420px;overflow-y:auto}
.duo .ptb__runs--saves{max-height:none;overflow-y:auto;flex:1 1 0;min-height:0}
/* Round 116 item 15: the save file edit popup is wider, and the
   five skill level fields share one row instead of pairing off
   down a tall popup. The sheet widens to the manual-total width;
   the body becomes a five-column grid where every section spans
   the full width, except the rows holding level fields, which
   dissolve (display contents) so the five level fields auto-place
   across one row. The Combat row also holds Save date, which spans
   the full width on its own row below the levels. The level field
   ids are the seeded labels (farming_level and friends), so the
   rule only fires on Stardew save rows; every other game keeps
   its single-column layout. */
#js-editbg .sheet{width:min(1160px,100%)}
#js-editbg .sheet__body{grid-template-columns:repeat(5,minmax(0,1fr))}
#js-editbg .sheet__body > *{grid-column:1/-1}
#js-editbg .sheet__body > .splitform__row:has(input[data-cf-id="farming_level"],input[data-cf-id="mining_level"],input[data-cf-id="foraging_level"],input[data-cf-id="fishing_level"],input[data-cf-id="combat_level"]){display:contents}
#js-editbg .sheet__body > .splitform__row:has(input[data-cf-id="farming_level"],input[data-cf-id="mining_level"],input[data-cf-id="foraging_level"],input[data-cf-id="fishing_level"],input[data-cf-id="combat_level"]) > .field{grid-column:auto}
#js-editbg .sheet__body .field:has(input[data-cf-id="save_date"]){grid-column:1/-1}
/* Round 116 item 21: an unconfirmed Stardew save waits on its row
   for Confirm / Not mine. The block sits below the chips, always
   visible (never hover-gated like the row tools), with the name
   picker, typed name, and the two buttons on one wrapping row. */
.run__unconfirmed{margin-top:10px;padding:10px 12px;border:1px dashed var(--ink-4);display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.run__unconfirmed-note{flex:1 1 100%;margin:0}
.run__unconfirmed-label{display:flex;align-items:center;gap:8px}
.run__unconfirmed select{max-width:220px}
.run__unconfirmed input[type=text]{max-width:220px;padding:6px 8px}
/* Round 71 item 2: the .ptb__charstats rules were removed with the
   right-side character counters; the counters now render as aggstat
   counters in the left counters box. */
/* Round 67 item 22: rank numbers are gone from every leaderboard row,
   so the rows drop the 36px rank column from the base grid. Round 73
   item 36: the hours column aligns vertically across rows. The list
   is one grid with the three columns (icon, name, value); each row
   spans the full width on the same columns via subgrid, so the hours
   counters start at the same x in every row. The value reads
   left-aligned in its column, so the counters share a start, not
   just an end. Non-game rows have no icon, so their first cell spans
   the icon and name columns. Browsers without subgrid fall back to
   each row's own grid. The list gap is 4px, so the column gap is set
   here (subgrid inherits the parent's gap otherwise). Round 74
   item 3: the icon column is 60px, not 48px. The parent's 12px
   column gap never opens between the icon and the name on a
   subgrid row: the row's own 12px side padding swallows it, so
   the icon sat tight against the name (measured 0px). The extra
   12px rides in the icon column instead, 48px icon plus the
   12px gap, and the hours column start is unchanged. The
   fallback row grid below keeps its 48px column, its own 12px
   gap still applies there. */
.fside__row{grid-template-columns:minmax(0,1fr) auto}
.fside__row--game{grid-template-columns:48px minmax(0,1fr) auto}
/* Round 106 item 8: the popular lists are carousel slides again;
   the row grid rides on .lb-car. */
.lb-car .fside__rows{grid-template-columns:60px minmax(0,1fr) auto;column-gap:12px}
.lb-car .fside__row{grid-template-columns:subgrid;grid-column:1/-1}
.lb-car .fside__row:not(.fside__row--game) > :first-child{grid-column:1/3}
.lb-car .fside__row .fside__vl{justify-content:flex-start}
.lb-car .fside__empty{grid-column:1/-1}
/* run card */
.run{background:var(--well);padding:18px 20px;display:flex;flex-direction:column;gap:16px;position:relative}
/* Round 70 item 16: the moderation hide button (core JS appends it
   as a child of the playthrough card) must take no layout space: it
   sits absolutely in the card's bottom right corner, overlapping
   content, instead of landing as a full-width grey bar at the
   bottom of the panel. Round 75 item 18 moved it from the top
   right corner to the bottom right, because the pencil and
   "+ log session" buttons now sit at the top right and the hide
   button must never overlap them or shift the card. The core only
   injects the button for admins (admin bar present), so non-admins
   get no button in the DOM at all and no layout change. The
   !important margin clears the core inline margin. The hover-only
   show/hide still runs in core JS. */
.run > .js-mod-hide-btn{position:absolute;bottom:8px;right:8px;z-index:2;margin:0 !important;width:auto}
/* Same treatment for the feed fallback: when a feed row has no date
   line the core appends the button to the reactions row, which is
   display contents inside the row, so it would land as a grid item
   of its own. Absolutely positioned against the row instead, which
   is already position relative. The date-line branch keeps its own
   inline placement from joystats-widgets.css and is untouched. */
li.ev > .evreact > .js-mod-hide-btn{position:absolute;top:8px;right:8px;z-index:2;margin:0 !important;width:auto}
/* Round 58 item 5: a suggested playthrough from a co-player reads
   as a placeholder until saved, so it carries the dashed outline
   the site uses for suggested content instead of a solid card. */
.run--suggested{border:2px dashed var(--cy);background:transparent}
.run__top{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.run__tile{position:relative;flex:0 0 auto;width:56px;height:56px;background:var(--ink-1);display:grid;place-items:center}
.run__tile img{width:36px;height:36px;image-rendering:pixelated}
.run__tile img.run__tile-img{width:48px;height:48px;image-rendering:auto;object-fit:cover}
.run__tile svg{width:56px;height:56px}   /* marks the run currently filtered in lately; no such filter exists yet, so no card carries it today */
.run__name{font-size:var(--fs-heading);line-height:1}
/* Round 75 item 18: the pencil and "+ log session" buttons sit at
   the top right of the card, not below the character name on the
   left. The tools span is the last item in the .run__top flex row,
   so margin-left:auto pushes it to the row's right end. Scoped to
   .run__top so the suggested card's save/dismiss tools (a separate
   .run__tools below the top row) are untouched. */
.run__top .run__tools{margin-left:auto;display:flex;align-items:center;gap:8px;opacity:0;transition:opacity .15s}
.run:hover .run__tools,
.run:focus-within .run__tools{opacity:1}
@media (hover:none){.run__tools{opacity:1}}
.run__hours{font-family:"Press Start 2P",monospace;font-size:14px;color:var(--cy);background:#151a26;box-shadow:inset 0 0 0 3px #232b3b;padding:7px 10px}  /* dark cell in dark mode; light mode override below */
[data-mode="light"] .run__hours{background:var(--ink-3);color:var(--cy-t);box-shadow:inset 0 0 0 3px var(--ink-4)}
.run__note{color:var(--ink-6);font-size:var(--fs-body)}
.run__mp{color:var(--ink-6);font-size:var(--fs-body)}
/* per-run image edit: the old tile-corner button, kept on the new tile */
/* status pill */
.pill{font-size:16px;padding:1px 10px;color:var(--ink-5);box-shadow:inset 0 0 0 2px currentColor;white-space:nowrap}
.pill--progress{color:var(--cy-t)}
.pill--dropped{color:var(--ink-5)}
/* field chips: bare icon + value. label is the tooltip (title) and the img alt; the full value is the tooltip on the value span */
.fchips{display:flex;flex-wrap:wrap;gap:12px 22px;margin:0;padding:0;list-style:none}
.fchip{display:flex;align-items:center;gap:10px;min-width:0}
.fchip__icon{flex:0 0 auto;display:grid;place-items:center}
.fchip__icon img{width:30px;height:30px;image-rendering:pixelated}
.fchip__val{font-size:var(--fs-lead);color:var(--ink-7);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:260px}
/* Round 75 item 13: highlight field values show in full, not cut off
   with an ellipsis. Scoped to the highlights box (#js-hl-view);
   playthrough field chips keep the 260px clamp above. The value
   wraps onto as many lines as it needs, and the icon aligns to the
   top of a wrapped value. */
#js-hl-view .fchip{align-items:flex-start}
#js-hl-view .fchip__val{overflow:visible;text-overflow:clip;white-space:normal;max-width:none;overflow-wrap:anywhere}
/* Round 95 item 11: a truncated playthrough field value expands on
   hover (and keyboard focus) to show the full value, so no value
   is unreadable. Same unwrap the highlights box uses, on hover
   only, so the card keeps its one-line clamp at rest. The icon
   aligns to the top of a wrapped value. Spoiler-flagged chips
   stay covered: the rule never applies to them. */
.run .fchip:not(.fchip--spoiler):hover{align-items:flex-start}
.run .fchip:not(.fchip--spoiler):hover .fchip__val,.run .fchip:not(.fchip--spoiler):focus-within .fchip__val{overflow:visible;text-overflow:clip;white-space:normal;max-width:none;overflow-wrap:anywhere}
/* Round 112 item 16: a field value with line breaks (the WoW raid
   list, one raid per line grouped under expansion headings) shows
   in full, one line per line, instead of the one-line clamp above.
   pre-line keeps the stored line breaks and wraps long lines; the
   icon aligns to the top of the list. */
.fchip--multiline{align-items:flex-start}
.fchip--multiline .fchip__val{white-space:pre-line;overflow:visible;text-overflow:clip;max-width:none;overflow-wrap:anywhere}
.fchip__suf{font-size:var(--fs-lead);color:var(--ink-7);white-space:nowrap}
.fchip__pre{font-size:var(--fs-lead);color:var(--ink-7);white-space:nowrap}
.fchips--lg .fchip__icon img{width:36px;height:36px}
/* Playthrough field spoiler mark: the label tag in the add/edit
   forms, shown before the dropdown is opened. */
.cf-spoiler-mark{background:var(--ink-4);color:var(--ink-7);font-size:var(--fs-secondary);padding:0 6px;white-space:nowrap}
.sheet .field>.label .cf-spoiler-mark{color:var(--ink-7)}
/* Spoiler-flagged field values on someone else's game page: the
   value rides in the theme spoiler bar (button.spoiler, tap to
   reveal). Covered is the default: the bar hides the value until
   the viewer actively clicks it to reveal (button gains .is-open,
   aria-pressed flips). There is no theme-tray switch for this. */
.fchip--spoiler .spoiler{background:var(--ink-4);color:transparent}
.fchip--spoiler .spoiler span{visibility:hidden}
.fchip--spoiler .spoiler:hover{background:var(--ink-5)}
.fchip--spoiler .spoiler.is-open{background:color-mix(in srgb,var(--ink-4) 40%,transparent);color:inherit}
.fchip--spoiler .spoiler.is-open span{visibility:visible}
/* highlights (non-narrative games) */
.hl{background:var(--well);padding:14px 16px;display:flex;align-items:center;gap:14px;min-width:0}
/* Round 42 item 5: OSRS efficient hours placeholder popup. Same
   colors as the badge tooltip; the popup sits flush on the chip or
   card so the Wise Old Man link stays clickable on the way up.
   The chip and the card are the positioning context. */
.fchip, .hl{position:relative}
.osrs-tip{display:none;position:absolute;left:0;bottom:100%;background:var(--ink-2);color:var(--ink-7);border:2px solid var(--ink-4);padding:6px 10px;font-size:var(--fs-secondary);line-height:24px;width:max-content;max-width:320px;white-space:normal;text-align:left;z-index:20}
.fchip:hover .osrs-tip, .fchip:focus-within .osrs-tip, .hl:hover .osrs-tip, .hl:focus-within .osrs-tip{display:block}
.osrs-tip a{color:var(--cy-t);text-decoration:underline}
/* empty state */
.ptb__empty{padding:30px 22px;box-shadow:inset 0 0 0 2px var(--ink-4);display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;color:var(--ink-6)}
.ptb__empty img{width:48px;height:48px;image-rendering:pixelated;opacity:.6}
/* footer: unassigned hours. The import button itself is appended by
   the core importer JS (id js-import-save) into the playthroughs
   header; the template renders only the unassigned line here. */
.ptb__foot{display:flex;flex-direction:column;gap:10px}
.ptb__unassigned{color:var(--ink-5);font-size:var(--fs-body);font-style:italic;margin:0}
@media (max-width:700px){.ptb{padding:20px}.run__top .run__tools{margin-left:auto;width:auto}.run > .run__tools{width:100%}}
/* Import save button: lives in the user-stats header next to the
   add button (the theme renders it there in round 48 item 5; the
   core importer JS wires its click to open the import sheet); a
   plain header button, not the old full-width teal bar. */
.ptb__head #js-import-save,.ptb__actions #js-import-save{flex:none;margin:0;padding:8px 14px;font-size:var(--fs-body);color:var(--ink-7);border:0;font-family:inherit;cursor:pointer}

/* Themed scrollbar for scrolling regions (.js-scroll), from the
   designer's package: accent thumb with a pixel inset and grip
   lines, accent 2 on hover, solid colours in Firefox. */
.js-scroll { overflow-y: auto; }
@supports not selector(::-webkit-scrollbar) { .js-scroll { scrollbar-width: auto; scrollbar-color: var(--cy) var(--ink-1); } }
.js-scroll::-webkit-scrollbar { width: 20px; height: 20px; }
.js-scroll::-webkit-scrollbar-track { background: var(--ink-1); }
.js-scroll::-webkit-scrollbar-thumb {
	min-height: 56px;
	border: 4px solid var(--ink-1);
	background-clip: padding-box;
	background:
		linear-gradient(to bottom, var(--grip) 0 4px, transparent 4px 8px, var(--grip) 8px 12px, transparent 12px 16px, var(--grip) 16px 20px) center/8px 20px no-repeat,
		var(--cy);
	--grip: color-mix(in srgb, var(--on-accent) 55%, transparent);
}
.js-scroll::-webkit-scrollbar-thumb:hover { background-color: var(--mg); }
.js-scroll::-webkit-scrollbar-thumb:active { background-color: var(--ink-7); }
.js-scroll::-webkit-scrollbar-button, .js-scroll::-webkit-scrollbar-corner { display: none; }

/* Log sheet: the when/how-long pair spans the form grid's full width
   (it was squeezed into one half-width column), and the date input
   keeps the select's dropdown-arrow padding off so its calendar icon
   reaches the right edge like a normal field. */
.sheet__grid > .sheet__when-dur {
	grid-column: 1 / -1;
}
.sheet input[type="date"].sel {
	padding-right: 10px !important;
}

/* Widget package integration (joystats-final): the profile duo panels
   and the game page sessions panel are .wdg widgets now. */
.duo > .wdg {
	min-width: 0;
}
.tl .ev {
	position: relative;
}
.ev__t a.g {
	text-decoration: none;
}
.ev__t button.a, .fev__t button.a {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

/* ---------- round 6 widget fixes ---------- */
/* Timeline spine icons float transparent: no plate, no ring, no border.
   Only the dotted spine runs behind them; each icon carries its own
   negative-space disc (below) in the panel colour. An earlier build
   backed the whole icon column with a full-height strip in --ink-1,
   which read as an unwelcome solid bar beside the icons. */
.tl .ev__ico {
	background: transparent;
	box-shadow: none;
}
.tl {
	background-image: linear-gradient(var(--spine) 0 4px, transparent 4px 8px);
	background-size: 4px 8px;
	background-repeat: repeat-y;
	background-position: 22px 2px;
	background-attachment: local;
}
/* The base stylesheet's legacy timeline rules (.tl as a grid, its rows
   at 28px columns aligned to the start) leak into the widget lists:
   short lists had their rows stretched across the panel and the icons
   sat at the top of each row. The widget lists keep the package layout:
   a flex column, 48px icon columns, icons centred on their row. */
.wdg__list.tl {
	display: flex;
}
.wdg__list.tl::before {
	content: none;
}
.wdg__list.tl > li.ev {
	/* Round 18 items 215/216: two columns, not four. The old auto auto
	   tracks were the dead inflow columns; this rule beats the widgets
	   overlay grid on specificity and load order, so the extra tracks
	   plus their two gaps shrank the body column (the computed 48px
	   150px 0px 0px in the round 18 report). Overlay everywhere now. */
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
}
/* Highlight carousel keeps one steady height: all slides share the
   second grid row, so the track sizes to the tallest slide, and
   inactive slides hide with visibility (still sizing the track)
   instead of display none. The JS hidden toggling is unchanged. */
.hi .car__slide { grid-column: 1; grid-row: 2; }
.hi .car__slide[hidden] { display: block; visibility: hidden; }
.hi .car__bottom { grid-column: 1; grid-row: 3; }
/* Highlight slides size to their content: the arrows sit directly under
   the slide instead of floating at the box bottom with dead space above
   them. The leftover height lands below the arrows. Scoped to .hi only;
   the shared duo height and the .wdg grid are untouched, so Lately is
   unchanged. */
.wdg.hi { grid-template-rows: auto auto 1fr; }
/* Lately list fills its duo track: the box has a definite height
   (see .duo > .wdg), so the list grows to the box bottom and scrolls
   instead of stopping at 432px and leaving dead space. */
.duo > .lately .wdg__list { max-height: none; }
/* Negative space around each spine icon: a disc in the colour directly
   behind the icon (the list's icon strip), above the dotted spine and
   below the icon itself, so the dots stop short of the icon without
   the disc ever showing as an element. */
.tl .ev__ico::before {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: var(--ink-2);
	z-index: -1;
}
/* Odometer cells theme like the hero stat counter cells (light in light
   mode, dark in dark mode) instead of the package's fixed dark navy. */
.odo i {
	background: var(--ink-3);
	box-shadow: inset 0 0 0 2px var(--ink-4);
	color: var(--cy-t);
}
/* Odometer roll: JS swaps each digit cell for a strip that rolls up to
   its digit, staggered like the hero stat counter. Only strip-bearing
   digit cells are restyled; the decimal cell keeps its baseline dot. */
.odo--roll i.odo__cell {
	display: block;
	overflow: hidden;
	padding: 0;
}
.odo--roll.odo--reset .odo__strip {
	transition: none;
	transform: translateY(0);
}
.odo__strip {
	display: flex;
	flex-direction: column;
	transform: translateY(0);
	transition: transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.odo__strip b {
	height: 38px;
	display: grid;
	place-items: center;
	font: inherit;
	color: inherit;
	font-style: normal;
}
.odo--roll.go .odo__strip {
	transform: translateY(-380px);
}
/* End-screen odometer: black and white, follows the mode (the
 * .ar__over --ob/--of variables). Same 26x38px cells as the site
 * .odo, only the colors change. */
.ar__over .odo i {
	background: color-mix(in srgb, var(--of) 12%, transparent);
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--of) 28%, transparent);
	color: var(--of);
}
@media (prefers-reduced-motion: reduce) {
	.odo__strip { transition: none; }
}
/* Library cards: cover and text column side by side; the rating and the
   notes live in the column under the name and subheads, and the column
   never extends past the bottom of the cover. Notes wrap and truncate
   with an ellipsis when they do not fit. */
.gcard {
	grid-template-columns: 112px 1fr;
	column-gap: 14px;
}
.gcard__open {
	display: block;
}
.gcard__body {
	max-height: 168px;
	overflow: hidden;
}
/* Cards with a rating lift the cap: the stars wrap to a second flex
   line inside the rating row, and the cap cut them off so only the
   label showed. The game page header has no such cap, which is why
   stars showed there. */
.gcard:has(.rating) .gcard__body { max-height: none; }
.gcard__tlink {
	text-decoration: none;
	color: inherit;
}
.gcard .rating {
	margin-left: 0;
}
/* Their notes on library cards{
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 6px 0 0;
	font-size: var(--fs-secondary);
	line-height: 1.25;
	color: var(--ink-6);
}
/* Substitute stat text on widget rows (no odometer). */
.wrow__v--text {
	font: 400 var(--fs-body)/1 var(--f-display);
	color: var(--ink-5);
	white-space: nowrap;
}

/* Duo panels share the row height: the playthroughs box keeps 640px as
   a floor, not a fixed height, so its bottom aligns with the sessions
   panel when that side runs taller (e.g. the suggestions bar). */
.duo .box {
	height: auto;
	min-height: var(--duo-h);
}

/* Round 10: session badge case, session notes, their notes, cover. */
.sess__ptbadge { text-transform: none !important; font-size: var(--fs-secondary) !important; }
.sess__m { font-size: var(--fs-body) !important; line-height: 1.2 !important; text-transform: none !important; }
.howplay { max-width: none !important; width: 100%; }
.howplay__display { display: flex !important; flex-wrap: nowrap !important; align-items: baseline !important; gap: 8px !important; }
.howplay__label-static { display: inline !important; margin: 0 !important; flex: none !important; }
.howplay__display .howplay__text { flex: 0 1 auto !important; min-width: 0 !important; margin: 0 !important; }
.ghead__art { image-rendering: auto !important; }

/* Notifications bell (header, logged-in only). Dropdown follows the
   header search treatment: panel below the button, block shadow. */
.notif {
	position: relative;
}
.notif__badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	background: var(--mg-t);
	color: var(--ink-1);
	font-size: var(--fs-secondary);
	line-height: 20px;
	text-align: center;
}
/* Round 34 item 370: plain dot, same magenta and corner as
   the bell badge. On the gear button, the connectors menu entry,
   and each disconnected connector card. Round 75 item 4: 12px
   with a glow, so the dot reads bright instead of a dim speck;
   the background stays var(--mg-t) so it keeps its contrast in
   light mode, where the full --mg is lighter than the text-safe
   variant on a white surface. */
.notif__dot {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 12px;
	height: 12px;
	background: var(--mg-t);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--mg);
}
/* Round 16 item 186: 480px wide, so a notification line fits on
   one line. Measured in the shipped Nine By Five: "TragicLoss liked
   your post" is 201px at lead 24, plus the 40px avatar, the two 10px
   gaps, a "3 days ago" timestamp at 58.5px at secondary 18, and the
   16px row plus 16px drop padding is 351.5px; 480px also covers the
   longer lines ("commented on your post" needs about 437px). */
.notif__drop {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 200;
	width: 480px;
	max-height: 320px;
	overflow-y: auto;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
	padding: 8px;
}
.notif__row {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 8px;
	color: var(--ink-6);
	text-decoration: none;
	/* Round 75 item 14: notification text carries platform
	   names (the curation notice), badge names, and
	   admin-authored broadcast messages, so it keeps its
	   original case instead of inheriting the body lowercase.
	   The fixed strings are already lowercase, so only the
	   embedded names change. */
	text-transform: none;
}
.notif__row img {
	width: 40px;
	height: 40px;
	display: block;
	flex: none;
}
.notif__row span:nth-child(2) {
	flex: 1 1 auto;
}
.notif__row span:last-child {
	font-size: var(--fs-secondary);
	color: var(--ink-5);
	flex: none;
}
/* Round 43 item 6: a split notification row is a div holding two
   links, actor (avatar + name) to the profile and body (text +
   relative time) to the post. The links carry the row's flex
   layout, so no inline styles are needed. */
.notif__row .notif__actor {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	flex: none;
}
.notif__row .notif__body {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 auto;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}
.notif__row .notif__body span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}

/* Highlights form: fields fill the full-width highlights box. Scoped
   to #js-hl-form, so the shared .qa 110px popup layout is untouched. */
#js-hl-form .qa__row label {
	flex: 1 1 100%;
}
#js-hl-form input,
#js-hl-form select {
	width: 100%;
}

/* ================= Round 13 (theme 0.5.171) ================= */

/* Item 87: 50% less whitespace below the profile header block.
   The gap below the header is the 20px .js-main grid gap; a -10px
   bottom margin on the header halves it. Same negative-margin
   pattern as .sitebar above. */
.js-main > header.box.phead { margin-bottom: -10px; }

/* Item 106: the playthrough box hugs its content; less bottom
   padding and less gap between the name and the field chips. */
.run { padding-bottom: 12px; gap: 12px; }

/* Item 105: series toggle sits right of the series title. Round 43
   item 5: the toggle moved after the title so it takes no space on
   the left and the title lines up with the network-users title.
   Round 96 item 5: the head is not editable, so it takes no text
   selection and no caret: a click on the title left a collapsed
   selection in the title text, which paints as a blinking caret
   beside the toggle in caret-browsing mode. */
.series__head { display: flex; align-items: center; gap: 10px; -webkit-user-select: none; user-select: none; caret-color: transparent; }
.series__toggle {
	flex: none;
	width: 36px;
	height: 36px;
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
	color: var(--ink-7);
	font-size: var(--fs-lead);
	line-height: 1;
	cursor: pointer;
}

/* Item 107: series titles use the game-title cyan, always, not
   just on hover. Size stays the secondary size, smaller than the
   36px game title on the page. */
/* Item 148: series game title uses the same weight as the network
   username (700). */
.series__name { color: var(--cy-t, var(--cy)); font-weight: 700; }

/* Item 108: series covers get the game cover's black border,
   a little thinner (game cover is 4px). */
.series__art { border: 2px solid #000; }

/* Item 109: lists over 3 items scroll. Series rows are 54px with
   an 8px gap, so 3 rows are 178px. Network rows are 32px pics with
   an 8px gap, so 3 rows are 112px. */
.series__list--scroll {
	max-height: 178px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--cy) var(--ink-1);
}
.netusers__list.series__list--scroll { max-height: 112px; }
/* Round 70 item 8: the related-titles list is capped at two rows
   (124px) with an internal scroll. Round 96 item 3: the list sits
   in flow now, so the aside grows with the open list instead of the
   list floating over the content below; the cap only limits the
   panel height. The higher specificity beats the 178px
   scroll cap above when the list carries it. */
.series--related .series__list {
	max-height: 124px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--cy) var(--ink-1);
}

/* Round 29 item 339: follow button in a network row. The row link
   takes the free width; the button sits to its right, always visible
   for users not yet followed. Reuses the feed follow action via
   .fev__follow.
   Round 76 item 1 refinement: the user rows sat centered in the
   box, not flush left. The li was a three-column grid with equal
   flexible gutters either side of the row, so the avatar-plus-name
   row was centered whatever its width; a follow button, when present,
   sat in the right gutter at the box edge instead of pushing the
   row off center. The head centered the same way, so the title and
   toggle sat over the centered rows. Round 82 item 28 correction:
   in round 76 she asked for vertical centering only, not
   horizontal; the refinement over-applied by centering the rows
   horizontally. Item 28 restores horizontal left alignment and
   keeps the vertical centering (align-items: center on the head,
   the li, and the row). The li is now a two-column grid, row first
   taking the free width, follow button second at the box edge. The
   related-titles list keeps its left-aligned rows. */
.netusers .series__head { justify-content: flex-start; }
.netusers__list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.netusers__list > li > .series__row { grid-column: 1; min-width: 0; max-width: 100%; }
.netusers__list .fev__follow { display: inline-flex; grid-column: 2; justify-self: end; }
/* The avatar column matches the 32px pic, so the row's left edge
   is the pic's left edge, not 4px of slack. */
.netusers__row { grid-template-columns: 32px minmax(0, 1fr); }

/* Item 110, round 14 item 146: network user rows. Pics use the framed avatar
   treatment (cyan frame, 1px at this size, round 73 item 31), names use the
   game-page username pink at weight 700, secondary size. Names keep
   their entered case (SassySensei, TragicLoss), not the body lowercase. */
.netusers__pic {
	width: 32px;
	height: 32px;
	flex: none;
	display: block;
	box-shadow: 0 0 0 1px var(--cy);
}
.netusers__name {
	font-weight: 700;
	color: var(--mg-t);
	font-size: var(--fs-secondary);
	text-transform: none;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
/* Round 98 item 10: an ellipsised username in the libraries list
   expands on row hover (or keyboard focus on the row) to show the
   full name. */
.netusers__row:hover .netusers__name,.netusers__row:focus-visible .netusers__name{white-space:normal;overflow:visible;text-overflow:clip}

/* Item 115: badge and ticket alignment next to feed usernames.
   base.css sets .bdg to vertical-align: middle, which centers the
   16px box on the x-height middle, about 2px below the cap-height
   center of the 24px username. Round 66 item 30: baseline puts the
   box center 8px above the baseline, but Nine By Five's cap center
   is 6.75px up (cap height 576 of 1024 units), so the badge sat
   about a pixel high. A 1px drop lands its center on the cap
   center, level with the username text.
   Round 76 item 10: the badges sit in one inline-flex run with a
   single even 6px gap, like the profile header .bshelf, and the
   run carries 6px between badges and 6px before "played" whatever
   the badge count. The old per-badge asymmetric margins (6px left,
   2px right) made the gaps 6/8/2 and count-dependent, and the
   competing base.css .fev__t .bdg margin rule is gone, so this is
   the only margin rule on feed badges.
   Round 85 item 2: the run carries no left margin. The username
   (.fwho, base.css, round 84 item 13) already has a 6px right
   margin, which supplies the gap after the name, so a left margin
   here doubled it to 12px while the no-badges gap was 6px. With
   the left margin gone, all three gaps are 6px: username to
   badges, badges to text, username to text.
   Round 77 item 1: the run's vertical-align was -1px, which hangs
   the run from its bottom edge (an inline-flex box baselines at
   its bottom), so the 16px badges sat 2.5px above the avatar's
   center line and poked above the username's cap top in the round
   76 item 11 layout, where the 32px avatar now sits in the same
   line. Measured in headless Chromium with the shipped font:
   badge center 2.5px above avatar center, badge top above the cap
   top, size a correct 16px, nothing clipped (the 34px line box
   holds the run with room). vertical-align middle puts the run's
   center on the same line as the avatar's (both align to the
   x-height middle), so the badges sit level with the avatar and
   the username. Size stays 16px: badges render at 16, 32 and 64
   only, so the size was never the defect. */
.fev__t .fev__badges { display: inline-flex; gap: 6px; align-items: center; vertical-align: middle; margin: 0 6px 0 0; }
.fev__t .bdg { margin: 0; }

/* Round 15 item 170: feed badges render smooth, not grainy. The
   16px badge <img> is already on the base opt-out list (.bdg img),
   but this feed-scoped rule states it again after every other sheet,
   so no pixelated rule can win for badges next to feed usernames. */
.fev__t .bdg img { image-rendering: auto; }

/* Item 117: the pile stack's bottom cover border sits exactly flush
   with the .pile__st bottom edge (144px cover + 3 x 10px offsets =
   174px container), so rounding at that edge can eat the 1px
   border. 2px of clearance keeps the bottom border painted. */
.pile__st { height: calc(144px + 3*10px + 2px); }

/* Item 120: a genre tray opens in grid flow right below its pile. */
.piles > .shelf { grid-column: 1 / -1; }

/* Item 128: settings gear dropdown, mirroring .notif__drop. */
.settings { position: relative; }
.settings__drop {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 200;
	width: 280px;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
	padding: 12px;
}

/* Item 129: the "their notes" row stays on one flex line. The
   .howplay__display flex-wrap: wrap rule lets the label, text,
   and pencil wrap; nowrap keeps them on one line while the text
   itself wraps inside its own flex item (round 58 item 13). */
.howplay__display { flex-wrap: nowrap; }

/* Round 51 items 7 and 8: manual-total hours popup. The popup reuses
   the connectors two-column classes, but joystats-connectors.css is
   only loaded on the connectors page and its rules are scoped to
   #js-connectors-page, so the game page never got them. These
   popup-scoped rules mirror the connectors values. The sheet is
   widened so the Scribe column lands at about 640px, the same width
   it has on the connectors page: a 1160px sheet minus 48px padding
   leaves 1112px, split 3:2 over the 380px and 280px bases with a
   20px gap, giving the Scribe about 639px and the fields about 453px.
   Narrow screens still stack: the columns wrap below their bases. */
#js-manual-total-bg .sheet{width:min(1160px,100%)}
#js-manual-total-bg .cnc-twocol,#js-historic-total-bg .cnc-twocol{display:flex;gap:20px;flex-wrap:wrap;align-items:stretch}
#js-manual-total-bg .cnc-embed,#js-historic-total-bg .cnc-embed{flex:3 1 380px;min-height:480px;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:24px;background:var(--well);border:2px dashed var(--ink-4)}
#js-manual-total-bg .cnc-embed iframe,#js-historic-total-bg .cnc-embed iframe{flex:1 1 auto;width:100%;min-height:480px;aspect-ratio:640 / 551;border:0;display:block;background:var(--well)}
/* Round 54 item 4: the full dashed border renders around the Scribe
   embed. The embed can shrink below its content width (min-width 0)
   and anything inside it is clipped to its padding box, so the
   iframe can never paint over the border. The sticky save bar below
   the form is a direct child of the sheet, so its -24px side margins
   (meant to span the sheet's padding) reached 24px left past the
   form column, across the 20px gap and 4px over the embed's right
   border, hiding the dashes where the bar meets the embed. Scoped
   to this popup, the bar spans only the form column. */
#js-manual-total-bg .cnc-embed,#js-historic-total-bg .cnc-embed{min-width:0;overflow:hidden}
#js-manual-total-bg .cnc-embed iframe,#js-historic-total-bg .cnc-embed iframe{min-width:0}
#js-manual-total-bg .cnc-paste > .sheet__act,#js-historic-total-bg .cnc-paste > .sheet__act{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
#js-manual-total-bg .cnc-paste,#js-historic-total-bg .cnc-paste{flex:2 1 280px;display:flex;flex-direction:column;justify-content:center;gap:14px}
/* Round 59 manual-total popup: the tracked-source checkboxes have no
   bullets, the baseline duration fields lay out in one row, and the
   elsewhere instruction reads at lead size. The add button and its
   entry lines are gone (single character, single baseline, single
   save), so the add-row and entry-line rules went with them. */
#js-manual-total-bg #js-mt-sources{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#js-manual-total-bg #js-mt-sources li{list-style:none}
#js-manual-total-bg .dur__hm,#js-historic-total-bg .dur__hm{display:flex;gap:8px;flex-wrap:wrap}
/* Round 105 item 3: the historic-total popup is twice the base sheet
   width (1520px), so days, hrs and min sit on one row. The Scribe
   column is capped at 640px so the 640/551 iframe never grows the
   popup taller than the viewport: uncapped, the embed at 1520px
   would be about 880px wide and 758px tall, and the sheet's sticky
   save bar would paint over the Discord note at the bottom. The
   intro reads at body size and body color (ink-6), not the muted
   lead. The duration row stays on one row at desktop widths; below
   1000px it may wrap, as on a phone. The manual-total popup keeps
   its 1160px width: Jessica asked for the historic window only.
   Round 120 item 7: the window narrows to the same 1160px as the
   manual-total popup. The 3:2 split over the 380px and 280px bases
   gives the Scribe about 639px and the fields about 453px, so the
   right column is about 44% smaller than the 812px it had at
   1520px, and the duration row still fits on one row. */
#js-historic-total-bg .sheet{width:min(1160px,100%)}
/* Round 105 item 17: with no Scribe column (Where Winds Meet)
   the popup is a single form column at the base sheet width. */
#js-historic-total-bg.ht--no-scribe .sheet{width:min(760px,100%)}
/* Round 105 item 21: the stats games combobox input fills its box
   like the selects it replaces (a bare text input would size to
   its content instead). */
#js-explore .ms #gm{width:100%}
#js-historic-total-bg .cnc-embed{max-width:640px}
#js-historic-total-bg .cnc-paste > p.lead{font-size:var(--fs-body);color:var(--ink-6)}
@media (min-width:1000px){#js-historic-total-bg .dur__hm{flex-wrap:nowrap}}
#js-manual-total-bg #js-mt-elsewhere{font-size:var(--fs-lead)}
/* Round 56 item 4: the log sheet save bar aligns its buttons to
   the right, so save session sits at the bottom right corner.
   Scoped to the log sheet so the manual-total popup and welcome
   sheet keep their own bar alignment. */
#sheetbg .sheet__act { justify-content: flex-end; }

/* Round 76 item 12: library filter, search, and sort controls in the
 * top right corner of the added-games and My Library sections. The
 * box head already wraps, so the controls drop below the title on
 * narrow screens.
 * Round 85 item 12: compact row. Search is an icon until clicked,
 * genre and platform are compact controls reading "genres" and
 * "platform", and sort is a button opening a tray. Every control
 * keeps the standard dropdown style: 44px, 2px border, ink-3
 * background.
 * Round 86 item 10: the genre and platform dropdowns live in a
 * tray opened by one filter button, and the sort button carries a
 * sort icon. The fixed 44px heights are gone: with the 20px font
 * at a 1.3 line-height, 44px minus the .sel padding and 2px border
 * left only 20px of content height, so the labels clipped at the
 * bottom. The controls now size from their padding and line-height
 * with a 44px minimum, so the labels render fully. */
.libfilter {
	margin-left: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.libfilter__search {
	display: flex;
	align-items: center;
}
.libfilter .libfilter__search-btn {
	width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	/* Round 105 item 1, corrected round 106 item 22: standard
	   button style, like "add to your library": square corners,
	   cyan background, raised bevel. The ui-kit .sel rule does not
	   touch this button, but the square + bevel must match the
	   rendered .btn, not the pixel clip the round 105 rule used. */
	background: var(--cy);
	border: 0;
	box-shadow: var(--up);
	clip-path: none;
	cursor: pointer;
	line-height: 1;
}
.libfilter__search-btn img {
	width: 32px;
	height: 32px;
	display: block;
}
.libfilter__search--expanded .libfilter__search-btn {
	display: none;
}
.libfilter__search input[type="search"][hidden] {
	display: none;
}
.libfilter__search--expanded input[type="search"] {
	display: block;
	width: 180px;
	min-height: 44px;
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
}
.libfilter__filter {
	position: relative;
}
/* Filter button: the same standard control styling as the .sel
   dropdowns (ink-3 background, 2px ink-4 border, 44px minimum),
   carrying the genre tag icon and the platform controller icon
   side by side. */
.libfilter .libfilter__filter-btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 12px;
	/* Round 105 item 1, corrected round 106 item 22: standard
	   button style, like "add to your library": square corners,
	   cyan background, raised bevel. */
	background: var(--cy);
	border: 0;
	box-shadow: var(--up);
	clip-path: none;
	cursor: pointer;
	line-height: 1;
}
.libfilter__filter-btn img {
	width: 24px;
	height: 24px;
	display: block;
}
/* A genre or platform is selected: the button highlights with an
   inset ring (round 105 item 1: the button has no border now, so
   the old border-color highlight has nothing to color). Round 106
   item 22: the ring sits on the standard bevel, not the old
   inset shadows. */
.libfilter__filter-btn.is-active {
	box-shadow: var(--up), inset 0 0 0 2px var(--cy-t);
}
.libfilter select {
	width: 140px;
	min-height: 44px;
	background: var(--ink-3);
	border: 2px solid var(--ink-4);
}
.libfilter__sort {
	position: relative;
}
.libfilter .libfilter__sort-btn {
	min-height: 44px;
	height: 44px;
	max-width: 220px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 8px 12px;
	border: 0 !important;
	/* Round 105 item 1, corrected round 106 item 22: standard
	   button style, like "add to your library": square corners,
	   cyan background, raised bevel. The .libfilter parent in the
	   selector outranks the ui-kit .sel rule (same property, later
	   sheet), so the cyan wins instead of the quiet gray; the
	   explicit height and padding keep it 44px (the .sel padding
	   and border had pushed it to 48px). background-color stays a
	   longhand so the pixel chevron background-image rules below
	   still apply (they set background-image only, after this
	   rule). The button also carries .sel from the template, and
	   .sel sets clip-path: none !important in base.css, so the
	   clip needs !important here too; and line-height: 1 keeps it
	   44px tall like the search and filter buttons. */
	background-color: var(--cy);
	box-shadow: var(--up);
	clip-path: none !important;
	cursor: pointer;
	line-height: 1;
	text-align: left;
	white-space: nowrap;
}
.libfilter__sort-btn svg {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}
.libfilter__sort-btn [data-libfilter-sort-label] {
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Pixel chevron on the sort button, same as select.sel. */
[data-mode="dark"] .libfilter__sort-btn,
[data-mode="light"] .libfilter__sort-btn {
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
}
[data-mode="dark"] .libfilter__sort-btn {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><rect width='12' height='2' fill='%23cfd6e4'/><rect y='2' x='2' width='8' height='2' fill='%23cfd6e4'/><rect y='4' x='4' width='4' height='2' fill='%23cfd6e4'/><rect y='6' x='5' width='2' height='2' fill='%23cfd6e4'/></svg>");
}
[data-mode="light"] .libfilter__sort-btn {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><rect width='12' height='2' fill='%232a2822'/><rect y='2' x='2' width='8' height='2' fill='%232a2822'/><rect y='4' x='4' width='4' height='2' fill='%232a2822'/><rect y='6' x='5' width='2' height='2' fill='%232a2822'/></svg>");
}
/* Sort tray, mirroring .notif__drop (ink-2 panel, 2px ink-4 border,
   block shadow). */
.libfilter__tray {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	z-index: 200;
	min-width: 180px;
	background: var(--ink-2);
	border: 2px solid var(--ink-4);
	box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
	padding: 8px;
}
.libfilter__tray button {
	display: block;
	width: 100%;
	padding: 10px 12px;
	background: none;
	border: 0;
	color: var(--ink-7);
	font-size: var(--fs-md);
	text-align: left;
	cursor: pointer;
}
.libfilter__tray button:hover {
	background: var(--ink-3);
}
.libfilter__tray button[aria-pressed="true"] {
	color: var(--cy-t);
}
/* Round 116 item 9: the current sort option shows a checkmark
   next to it in the dropdown, not just the accent color. The
   mark rides on aria-pressed, which the filter script already
   sets on the active option, so no markup change is needed. */
.libfilter__tray button[aria-pressed="true"]::before {
	content: "\2713";
	margin-right: 8px;
}
/* Filter tray: opens to the left under the filter button, and its
   two dropdowns fill the tray width. */
.libfilter__tray--filter {
	left: 0;
	right: auto;
	min-width: 220px;
}
.libfilter .libfilter__tray--filter .libfilter__field {
	display: block;
	margin: 0 0 8px;
}
.libfilter .libfilter__tray--filter .libfilter__field:last-child {
	margin-bottom: 0;
}
.libfilter .libfilter__tray--filter select {
	width: 100%;
}
.libfilter__empty {
	margin: 16px 0 0;
}
@media (max-width: 640px) {
	.libfilter {
		width: 100%;
	}
	.libfilter__search--expanded input[type="search"] {
		flex: 1 1 160px;
		width: auto;
	}
}

/* Round 107 item 1: logged-out game-name popup. The box reuses the
   achievement modal chrome (.achmodal); only the logo and the
   spacing under the line are its own. Round 120 item 8: the social
   log in row sits below the main button with a gap; the two
   buttons wrap to two centered rows in the 480px box. */
.loggedout-modal__logo {
	display: block;
	width: 120px;
	height: auto;
	margin: 0 auto 16px;
}
.loggedout-modal .landing__social {
	margin-top: 16px;
}
