/* Web3 game shutdown tracker: /games/shutdowns/. Tokens from jrpg-design.css. */

.sd-page {
	--sd-line: color-mix(in oklch, var(--fg-1) 12%, transparent);
	--sd-ctl-line: color-mix(in oklch, var(--fg-1) 30%, transparent);
	--sd-line-strong: color-mix(in oklch, var(--fg-1) 16%, transparent);
	--sd-panel: color-mix(in oklch, var(--bg-1) 70%, var(--bg-0));
	--sd-row-hover: color-mix(in oklch, var(--fg-1) 4%, var(--bg-1));
	--sd-row-open: color-mix(in oklch, var(--jrpg-purple) 10%, var(--bg-1));
	--sd-ease: cubic-bezier(.16, 1, .3, 1);
	max-width: 1280px;
	margin: 0 auto 88px;
	padding: 0;
	color: var(--fg-1);
	font-family: var(--font-body);
}
.sd-page ::selection { background: color-mix(in oklch, var(--jrpg-purple) 55%, transparent); color: var(--fg-1); }
.sd-page a:focus-visible,
.sd-page button:focus-visible,
.sd-page select:focus-visible,
.sd-page input:focus-visible { outline: 2px solid var(--jrpg-purple-bright); outline-offset: 2px; }

/* Head */
.sd-head { padding: 28px 0 0; max-width: 72ch; }
.sd-head .fastest-breadcrumbs { margin-bottom: 18px; }
.sd-title {
	font-family: var(--font-display) !important;
	font-size: clamp(2rem, 4.2vw, var(--fs-3xl)) !important;
	line-height: 1.05 !important;
	letter-spacing: -.01em;
	margin: 0 0 14px !important;
	color: var(--fg-1) !important;
	text-wrap: balance;
}
.sd-lead {
	font-size: var(--fs-md);
	line-height: 1.65;
	color: var(--fg-2);
	margin: 0;
	max-width: 62ch;
	text-wrap: pretty;
}

/* Figures strip: one card, equal cells split by hairlines, figure over label. */
.sd-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin: 32px 0 0;
	padding: 0;
	border: 1px solid var(--bg-line);
	border-radius: var(--r-card);
	background: var(--bg-1);
	overflow: hidden;
}
.sd-stat {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 8px;
	align-content: start;
	margin: 0;
	padding: 20px 24px 22px;
	box-shadow: inset 1px 0 0 var(--sd-line);
}
.sd-stat:first-child { box-shadow: none; }
.sd-stat[hidden] { display: none; }
.sd-stat dd { margin: 0; }
.sd-stat-n {
	order: 1;
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-size: 2.125rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.02em;
	color: var(--fg-1);
}
.sd-stat-n time { font: inherit; }
.sd-stat dt { order: 2; font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--fg-2); text-wrap: balance; }
.sd-stat-sub { order: 3; font-size: .8125rem; line-height: 1.4; color: var(--fg-3); }

.sd-soon {
	display: inline-flex;
	align-items: center;
	height: 20px;
	margin-left: 8px;
	padding: 0 8px;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 500;
	white-space: nowrap;
	vertical-align: middle;
	border-radius: var(--r-pill);
	color: var(--jrpg-warn);
	background: color-mix(in oklch, var(--jrpg-warn) 12%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--jrpg-warn) 30%, transparent);
}
.sd-stat-sub .sd-soon { margin-left: 2px; }

/* Toolbar */
.sd-tool { margin-top: 24px; }
.sd-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 14px;
}
.sd-bar[hidden] { display: none; }
.sd-search { position: relative; flex: 1 1 260px; max-width: 360px; }
.sd-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	fill: none;
	stroke: var(--fg-3);
	stroke-width: 2;
	stroke-linecap: round;
	pointer-events: none;
}
.sd-search input {
	width: 100%;
	height: 40px;
	padding: 0 14px 0 38px;
	font: inherit;
	font-size: var(--fs-body);
	color: var(--fg-1);
	background: var(--bg-1);
	border: 1px solid var(--sd-ctl-line);
	border-radius: var(--r-ctl);
	caret-color: var(--jrpg-purple-bright);
	transition: border-color .15s, background-color .15s;
}
.sd-search input::placeholder { color: var(--fg-3); opacity: 1; }
.sd-search input:hover { border-color: var(--sd-line-strong); }
.sd-search input:focus { border-color: var(--jrpg-purple-bright); outline: none; background: var(--bg-2); }
.sd-search input::-webkit-search-cancel-button { filter: invert(.7); cursor: pointer; }

.sd-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	font: inherit;
	font-size: var(--fs-meta);
	font-weight: 500;
	color: var(--fg-2);
	background: transparent;
	border: 1px solid var(--sd-ctl-line);
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: color .15s, background-color .15s, border-color .15s, transform .1s;
}
.sd-chip:hover { color: var(--fg-1); border-color: var(--sd-line-strong); background: var(--bg-1); }
.sd-chip:active { transform: translateY(1px); }
.sd-chip[aria-pressed="true"] {
	color: var(--fg-1);
	background: color-mix(in oklch, var(--jrpg-purple) 28%, var(--bg-1));
	border-color: color-mix(in oklch, var(--jrpg-purple-bright) 60%, transparent);
}
.sd-chip-n {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-size: .8125rem;
	color: var(--fg-3);
}
.sd-chip[aria-pressed="true"] .sd-chip-n { color: var(--fg-2); }

.sd-sort {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: var(--fs-meta);
	color: var(--fg-3);
}
.sd-sort select {
	height: 40px;
	padding: 0 34px 0 14px;
	font: inherit;
	font-size: var(--fs-meta);
	color: var(--fg-1);
	background: var(--bg-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
	border: 1px solid var(--sd-ctl-line);
	border-radius: var(--r-pill);
	appearance: none;
	cursor: pointer;
}
.sd-sort select:hover { border-color: var(--sd-line-strong); }

/* Table */
.sd-frame {
	background: var(--bg-1);
	border: 1px solid var(--bg-line);
	border-radius: var(--r-card);
	overflow: clip;
}
.sd-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	font-size: var(--fs-ui);
	background: none;
	border: 0;
	table-layout: fixed;
}
.sd-table th,
.sd-table td {
	border: 0;
	background: none;
	text-align: left;
	vertical-align: middle;
}
.sd-table thead th {
	padding: 12px 16px;
	font-size: .8125rem;
	font-weight: 500;
	color: var(--fg-3);
	white-space: nowrap;
	border-bottom: 1px solid var(--bg-line);
	background: var(--sd-panel);
	position: sticky;
	top: var(--sd-sticky-top, 64px);
	z-index: 2;
}
/* The site header slides away on scroll-down; the column headers follow it up. */
body:has(#masthead.nav-up) .sd-page { --sd-sticky-top: 0px; }
.admin-bar .sd-page { --sd-sticky-top: 96px; }
.admin-bar:has(#masthead.nav-up) .sd-page { --sd-sticky-top: 32px; }
.sd-table thead th { transition: top .3s ease; }
.sd-th-sub { margin-left: 6px; font-weight: 400; color: var(--fg-3); opacity: .8; }
.sd-table thead th:first-child { padding-left: 20px; }
.sd-c-game { width: auto; }
/* Date and token columns are sized to their content; the game column takes the rest. */
.sd-c-date { width: 19.5rem; }
.sd-c-token { width: 18.5rem; }
.sd-c-num { text-align: right !important; }
.sd-c-x { width: 76px; padding-right: 20px !important; }

.sd-entry + .sd-entry .sd-row > * { border-top: 1px solid var(--sd-line); }
.sd-row > th,
.sd-row > td { padding: 16px; vertical-align: top; }
.sd-row > .sd-c-x { vertical-align: top; padding-top: 8px !important; }
.sd-row > th:first-child { padding-left: 20px; }
.sd-js .sd-row { cursor: pointer; }
.sd-js .sd-row:hover > * { background: var(--sd-row-hover); }
.sd-entry.is-open .sd-row > *,
.sd-js .sd-entry.is-open .sd-row:hover > * { background: var(--sd-row-open); }

.sd-game { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.sd-logo {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	background: var(--bg-2);
	box-shadow: inset 0 0 0 1px var(--sd-line);
}
.sd-logo--mono {
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 400;
	color: var(--fg-3);
	background: var(--bg-2);
}
.sd-game-text { display: grid; gap: 6px; min-width: 0; padding-top: 1px; }
.sd-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.sd-name {
	font-weight: 600;
	font-size: var(--fs-body);
	color: var(--fg-1);
	line-height: 1.3;
	text-decoration: none;
}
a.sd-name:hover { color: var(--jrpg-purple-bright); text-decoration: underline; text-underline-offset: 3px; }
.sd-studio { font-size: var(--fs-meta); font-weight: 400; color: var(--fg-3); }
.sd-excerpt { display: grid; justify-items: start; gap: 6px; min-width: 0; max-width: 68ch; font-weight: 400; }
.sd-excerpt-q {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: var(--fs-meta);
	line-height: 1.55;
	color: var(--fg-2);
	quotes: "\201C" "\201D";
	text-wrap: pretty;
}
.sd-entry.is-open .sd-excerpt-q { -webkit-line-clamp: unset; display: block; }

.sd-date,
.sd-sym,
.sd-chg {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	font-size: .875rem;
	white-space: nowrap;
}
.sd-date { color: var(--fg-1); }
/* Not recorded: nothing visible, read out as "Not recorded". */
.sd-nil { display: inline; }

/* Token line: status, symbol, change in fixed columns so every row lines up. */
.sd-token {
	display: grid;
	grid-template-columns: 92px auto minmax(0, 1fr);
	align-items: center;
	column-gap: 12px;
	min-height: 21px;
}
.sd-token-status { display: flex; }
.sd-token .sd-tag { width: 100%; justify-content: center; }
.sd-token .sd-chg { justify-self: end; }
.sd-sym { color: var(--fg-1); font-weight: 600; font-size: .9375rem; }
.sd-sym::before { content: "$"; color: var(--fg-3); font-weight: 500; }
.sd-tag {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 10px;
	font-size: .8125rem;
	font-weight: 500;
	border-radius: var(--r-pill);
	white-space: nowrap;
	color: var(--fg-2);
	background: color-mix(in oklch, var(--fg-1) 7%, transparent);
	box-shadow: inset 0 0 0 1px var(--sd-line);
}
.sd-tag--trading { color: var(--jrpg-success); background: color-mix(in oklch, var(--jrpg-success) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--jrpg-success) 30%, transparent); }
.sd-tag--none { color: var(--fg-3); background: transparent; box-shadow: inset 0 0 0 1px var(--sd-line-strong); }
.sd-tag--delisted { color: var(--jrpg-danger); background: color-mix(in oklch, var(--jrpg-danger) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--jrpg-danger) 30%, transparent); }
.sd-tag--migrated { color: var(--jrpg-warn); background: color-mix(in oklch, var(--jrpg-warn) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--jrpg-warn) 30%, transparent); }

.sd-chg { font-weight: 600; font-size: .875rem; }
.sd-chg--down { color: var(--jrpg-danger); }
.sd-chg--up { color: var(--jrpg-success); }
.sd-chg--flat { color: var(--fg-2); }

.sd-toggle {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-left: auto;
	padding: 0;
	color: var(--fg-3);
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	transition: color .15s, background-color .15s, border-color .15s;
}
.sd-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .25s var(--sd-ease);
}
.sd-row:hover .sd-toggle,
.sd-toggle:hover { color: var(--fg-1); border-color: var(--sd-line); background: var(--bg-1); }
.sd-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sd-toggle { display: none; }
.sd-js .sd-toggle { display: grid; }

/* Detail row: cells sit under the table's own columns. */
.sd-js .sd-detail[hidden] { display: none; }
.sd-detail > td {
	padding: 4px 16px 24px;
	vertical-align: top;
	background: var(--sd-row-open);
}
.sd-detail > .sd-d-links { padding-left: 74px; }
.sd-js .sd-entry.is-open .sd-detail > td > * { animation: sd-open .2s ease-out; }
@keyframes sd-open { from { opacity: 0; } }

.sd-ext,
.sd-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: var(--fs-meta);
	font-weight: 500;
	color: var(--jrpg-purple-bright);
	text-decoration: underline;
	text-decoration-color: color-mix(in oklch, currentColor 40%, transparent);
	text-underline-offset: 3px;
}
.sd-ext::after {
	content: "";
	flex-shrink: 0;
	width: 13px;
	height: 13px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sd-ext:hover,
.sd-more:hover { color: var(--fg-1); text-decoration-color: currentColor; }
.sd-facts dd .sd-ext { margin-left: 6px; }

.sd-facts { margin: 0; display: grid; gap: 18px; min-width: 0; align-content: start; }
.sd-fact { display: grid; gap: 4px; }
.sd-fact dt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .875rem;
	font-weight: 500;
	color: var(--fg-3);
}
.sd-fact dt .sd-sym { font-size: .8125rem; color: var(--fg-2); }
.sd-fact dd {
	margin: 0;
	font-size: var(--fs-ui);
	line-height: 1.6;
	color: var(--fg-2);
	text-wrap: pretty;
}
.sd-links { display: grid; justify-items: start; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sd-links li { margin: 0; }

/* Footer line and empty states */
.sd-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 14px 0 0;
	font-size: var(--fs-meta);
	color: var(--fg-3);
}
.sd-method {
	max-width: 72ch;
	margin: 40px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--sd-line);
	font-size: var(--fs-ui);
	line-height: 1.65;
	color: var(--fg-2);
}
.sd-method-title {
	margin: 0 0 10px !important;
	font-family: var(--font-body) !important;
	font-size: var(--fs-md) !important;
	font-weight: 600 !important;
	color: var(--fg-1) !important;
}
.sd-method p { margin: 0 0 10px; }
.sd-foot [data-sd-count] { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg-2); }

.sd-none-match td { padding: 44px 24px; text-align: center; color: var(--fg-2); }
.sd-none-match p { margin: 0 auto; max-width: 56ch; }
.sd-none-title { color: var(--fg-1); font-weight: 600; font-size: var(--fs-md); }
.sd-none-why { margin-top: 6px !important; font-size: var(--fs-ui); color: var(--fg-3); }
.sd-none-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 18px; }
.sd-copy {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 14px;
	font: inherit;
	font-size: .875rem;
	font-weight: 500;
	color: var(--fg-2);
	background: transparent;
	border: 1px solid var(--sd-ctl-line);
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: color .15s, border-color .15s, background-color .15s;
}
.sd-copy:hover { color: var(--fg-1); background: var(--bg-1); }
.sd-copy.is-done { color: var(--jrpg-success); border-color: color-mix(in oklch, var(--jrpg-success) 40%, transparent); }
.sd-copy[hidden] { display: none; }
.sd-csv {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 14px;
	font: inherit;
	font-weight: 500;
	color: var(--fg-1);
	background: var(--bg-1);
	border: 1px solid var(--sd-ctl-line);
	border-radius: var(--r-pill);
	cursor: pointer;
	transition: border-color .15s, background-color .15s, opacity .15s;
}
.sd-csv:hover:not(:disabled) { border-color: var(--fg-3); background: var(--bg-2); }
.sd-csv:disabled { opacity: .45; cursor: default; }
.sd-csv[hidden] { display: none; }
.sd-foot { align-items: center; }
:target.sd-entry:not(.is-open) .sd-row > * { background: var(--sd-row-open); }
.sd-entry { scroll-margin-top: 96px; }
.sd-empty {
	margin-top: 36px;
	padding: 40px 28px;
	border: 1px dashed var(--sd-line-strong);
	border-radius: var(--r-card);
	color: var(--fg-3);
}
.sd-empty p { margin: 0; }
.sd-empty-title { color: var(--fg-1); font-weight: 600; margin-bottom: 6px !important; }

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

/* Timeline: the dated events of one shutdown, oldest first. */
.sd-tl { list-style: none; margin: 0; padding: 2px 0 0; display: grid; gap: 6px; }
.sd-tl li {
	display: grid;
	grid-template-columns: 9.5rem auto;
	align-items: baseline;
	column-gap: 12px;
	margin: 0;
	padding: 0 0 0 16px;
	position: relative;
	line-height: 21px;
}
.sd-tl li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--fg-mute);
}
.sd-tl li + li::after {
	content: "";
	position: absolute;
	left: 2.5px;
	top: -14px;
	width: 1px;
	height: 21px;
	background: var(--sd-line-strong);
}
.sd-tl li:last-child::before { background: var(--jrpg-purple-bright); }
.sd-tl-label { font-size: .875rem; color: var(--fg-3); }
.sd-tl .sd-soon { justify-self: start; grid-column: 2; margin: 2px 0 0; }


/* Below 1280px a timeline label sits over its date, and the token badge over its symbol and change. */
@media (max-width: 1279px) {
	.sd-c-date { width: 12.5rem; }
	.sd-c-token { width: 10.5rem; }
	.sd-c-x { width: 60px; }
	.sd-th-sub { display: none; }
	.sd-tl li { grid-template-columns: none; }
	.sd-tl li + li::after { top: -35px; height: 42px; }
	.sd-tl .sd-soon { grid-column: auto; }
	.sd-token { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
	.sd-token-status { flex: 0 0 100%; }
	.sd-token-status:empty { display: none; }
	.sd-token .sd-tag { width: 92px; }
}

/* Mid widths: tighter cells. */
@media (max-width: 1023px) {
	.sd-row > th, .sd-row > td, .sd-table thead th { padding-left: 10px; padding-right: 10px; }
	.sd-c-date { width: 11.5rem; }
	.sd-c-token { width: 9.5rem; }
	.sd-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q sort" "chips chips"; gap: 12px; }
	.sd-bar[hidden] { display: none; }
	.sd-search { grid-area: q; max-width: none; }
	.sd-sort { grid-area: sort; margin: 0; }
	.sd-filters { grid-area: chips; }
}

/* Phones: one card per game. The header row is dropped; each block labels itself. */
@media (max-width: 767px) {
	.sd-lead { font-size: var(--fs-ui); line-height: 1.6; }
	.sd-stats { grid-template-columns: 1fr 1fr; margin-top: 24px; }
	.sd-stat { row-gap: 6px; padding: 14px 16px 16px; }
	.sd-stat:nth-child(odd) { box-shadow: none; }
	.sd-stat:nth-child(n+3) { border-top: 1px solid var(--sd-line); }
	.sd-stat-n { font-size: 1.625rem; }
	.sd-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.sd-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q sort" "chips chips"; gap: 10px; }
	.sd-bar[hidden] { display: none; }
	.sd-search { grid-area: q; max-width: none; }
	.sd-sort { grid-area: sort; }
	.sd-sort select { height: 40px; width: 116px; }
	.sd-filters { grid-area: chips; margin-right: -16px; }
	.sd-filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-left: -16px;
		padding: 4px 28px 4px 16px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
		        mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	}
	.sd-filters::-webkit-scrollbar { display: none; }
	.sd-chip { flex: none; }
	.sd-sort { margin: 0; }
	.sd-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

	.sd-frame { background: none; border: 0; border-radius: 0; overflow: visible; }
	.sd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sd-table, .sd-entry, .sd-detail, .sd-detail > td, .sd-none-match, .sd-none-match tr, .sd-none-match td { display: block; }
	.sd-entry[hidden], .sd-none-match[hidden], .sd-js .sd-detail[hidden] { display: none; }

	.sd-entry {
		margin-bottom: 12px;
		background: var(--bg-1);
		border: 1px solid var(--bg-line);
		border-radius: var(--r-card);
		overflow: hidden;
	}
	.sd-entry + .sd-entry .sd-row > * { border-top: 0; }
	.sd-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 14px 16px;
		padding: 16px;
		position: relative;
	}
	.sd-row > th, .sd-row > td { display: block; padding: 0 !important; width: auto !important; min-width: 0; background: none !important; }
	.sd-row > .sd-c-game { grid-column: 1 / -1; }
	.sd-js .sd-row > .sd-c-game .sd-name-line { padding-right: 32px; }
	.sd-row > .sd-c-x { position: absolute; top: 4px; right: 8px; padding: 0 !important; }
	.sd-row > td:has(> .sd-nil) { display: none; }
	.sd-row > .sd-c-date, .sd-row > .sd-c-token { grid-column: 1 / -1; padding-top: 14px !important; border-top: 1px solid var(--sd-line) !important; }
	/* Events side by side, label over date; no dots or connector. */
	.sd-tl { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 2px; padding: 0; }
	.sd-tl li { grid-row: span 3; grid-template-columns: none; grid-template-rows: subgrid; padding: 0; line-height: 1.4; }
	.sd-tl .sd-tl-label { align-self: end; font-size: .8125rem; }
	.sd-tl .sd-soon { grid-column: auto; }
	.sd-tl li::before, .sd-tl li + li::after { content: none; }

	/* The quote and source span the card under the logo and name. */
	.sd-game { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
	.sd-game-text { display: contents; }
	.sd-name-line { grid-column: 2; }
	.sd-excerpt { grid-column: 1 / -1; max-width: none; }
	.sd-table thead th { position: static; }
	.sd-token { display: grid; grid-template-columns: 92px auto minmax(0, 1fr); column-gap: 12px; }
	.sd-token-status:empty { display: flex; }
	.sd-token .sd-chg { grid-column: auto; justify-self: start; }
	.sd-excerpt-q { display: block; -webkit-line-clamp: unset; }
	.sd-toggle { width: 44px; height: 44px; }
	.sd-js .sd-row:hover { background: var(--sd-row-hover); }
	.sd-entry.is-open .sd-row { background: var(--sd-row-open); }
	.sd-js .sd-detail:not([hidden]) { display: flex; flex-direction: column; gap: 16px; padding: 0 16px 18px; background: var(--sd-row-open); }
	.sd-detail > td { padding: 0 !important; }
	.sd-d-facts { order: -1; }
	:target.sd-entry { border-color: color-mix(in oklch, var(--jrpg-purple-bright) 70%, transparent); }
	.sd-d-facts:not(:has(.sd-facts)) { display: none !important; }
	.sd-none-match { border: 1px dashed var(--sd-line-strong); border-radius: var(--r-card); }
}
