.res-tabs {
display: flex;
padding: 0 48px;
border-bottom: 1px solid var(--border);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.res-tab {
padding: 12px 2px;
margin-right: 28px;
font-size: var(--fs-ui);
font-weight: 600;
color: var(--text-soft);
text-decoration: none;
white-space: nowrap;
transition: color 0.15s var(--ease-out);
}
.res-tab:hover {
color: var(--text);
}
.res-tab[aria-current="page"] {
color: var(--text);
box-shadow: inset 0 -2px 0 var(--accent);
}
.res-tab:focus-visible {
outline: var(--focus-ring);
outline-offset: -3px;
border-radius: var(--radius-xs);
}
.res-cats {
border-bottom: 1px solid var(--border);
overflow-x: auto;
}
.res-cats ul {
display: flex;
gap: 22px;
margin: 0;
padding: 0 48px;
list-style: none;
}
.res-cats a {
display: inline-block;
padding: 10px 1px;
font-family: var(--font-mono);
font-size: var(--fs-label);
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-soft);
text-decoration: none;
white-space: nowrap;
transition: color 0.15s var(--ease-out);
}
.res-cats a:hover {
color: var(--text);
}
.res-cats a[aria-current="page"] {
color: var(--text);
box-shadow: inset 0 -2px 0 var(--accent);
}
.res-cats a:focus-visible {
outline: var(--focus-ring);
outline-offset: -3px;
border-radius: var(--radius-xs);
}
.res-cat-count {
margin-left: 6px;
font-weight: 400;
letter-spacing: 0;
}
.page-main--res {
max-width: 920px;
padding-top: 28px;
}
.res-usage {
font-family: var(--font-mono);
font-size: 0.85em;
background: var(--code-bg-inline);
color: var(--code-inline);
padding: 2px 7px;
border-radius: var(--radius-code);
white-space: nowrap;
}
.res-count {
font-family: var(--font-mono);
font-size: var(--fs-label);
font-weight: 400;
color: var(--text-soft);
flex-shrink: 0;
}
.res-filter {
margin-bottom: 20px;
}
.res-filter-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.res-filter .filter-input {
max-width: 360px;
}
.res-toggle {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: var(--fs-ui);
color: var(--text-soft);
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
.res-toggle input {
accent-color: var(--accent);
width: 15px;
height: 15px;
margin: 0;
}
.res-toggle input:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
}
@media (max-width: 48em) {
.res-toggle {
min-height: 44px;
}
.res-toggle input {
width: 20px;
height: 20px;
}
}
.res-filter-count {
margin-top: 6px;
}
.res-filter-empty {
padding: 24px 0;
color: var(--text-soft);
}
.res-list {
list-style: none;
margin: 0;
padding: 0;
border-top: 1px solid var(--border);
}
.res-row {
display: flex;
align-items: center;
gap: 18px;
padding: 10px 0;
border-bottom: 1px solid var(--border);
}
.res-row[hidden] {
display: none;
}
.res-row:target {
background: var(--target-bg);
}
.res-thumb {
display: flex;
align-items: center;
justify-content: center;
width: 192px;
height: 108px;
flex-shrink: 0;
background: var(--bg-light);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
overflow: hidden;
text-decoration: none;
}
.res-thumb img {
display: block;
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
}
a.res-thumb {
transition: border-color 0.15s var(--ease-out);
}
a.res-thumb:hover {
border-color: var(--accent);
}
a.res-thumb:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
}
.res-thumb--sprite {
width: 96px;
height: 144px;
}
.res-thumb--none {
border-style: dashed;
font-family: var(--font-mono);
font-size: var(--fs-label);
color: var(--text-soft);
}
.res-meta {
flex: 1;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
row-gap: 2px;
}
.res-name-line {
min-width: 0;
overflow-wrap: break-word;
}
.res-name {
font-family: var(--font-mono);
font-size: var(--fs-ui);
font-weight: 600;
color: var(--text);
overflow-wrap: break-word;
}
.res-desc {
font-size: var(--fs-ui);
line-height: var(--lh-ui);
color: var(--text-soft);
}
.res-flag {
display: inline-block;
vertical-align: 1px;
margin-left: 6px;
padding: 1px 6px;
border: 1px solid var(--border);
border-radius: var(--radius-xs);
font-family: var(--font-mono);
font-size: var(--fs-label);
font-weight: 400;
letter-spacing: 0.04em;
color: var(--text-soft);
white-space: nowrap;
}
.res-row[data-nsfw] .res-thumb img {
filter: blur(18px);
transform: scale(1.15);
}
.res-row[data-nsfw] a.res-thumb::after {
content: '18+';
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-mono);
font-size: var(--fs-label);
font-weight: 600;
letter-spacing: 0.08em;
color: var(--text);
}
.res-row[data-nsfw] .res-thumb {
position: relative;
}
.res-file {
font-family: var(--font-mono);
font-size: var(--fs-label);
color: var(--text-soft);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
a.res-file {
text-decoration: none;
justify-self: start;
max-width: 100%;
transition: color 0.15s var(--ease-out);
}
a.res-file:hover {
color: var(--accent);
text-decoration: underline;
}
a.res-file:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
border-radius: var(--radius-xs);
}
.res-actions {
display: flex;
align-items: center;
gap: 18px;
flex-shrink: 0;
margin-left: auto;
}
.res-copy,
.res-play,
.res-dl {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
flex-shrink: 0;
padding: 0;
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-soft);
cursor: pointer;
text-decoration: none;
transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.res-copy:hover,
.res-play:hover,
.res-dl:hover {
color: var(--accent);
border-color: var(--accent);
}
.res-copy:focus-visible,
.res-play:focus-visible,
.res-dl:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
}
.res-copy svg + svg,
.res-play svg + svg {
display: none;
}
.res-copy.copied {
color: var(--pine);
border-color: var(--pine);
}
.res-copy.copied svg:first-child,
.res-play[aria-pressed="true"] svg:first-child {
display: none;
}
.res-copy.copied svg + svg,
.res-play[aria-pressed="true"] svg + svg {
display: block;
}
.res-play {
border-radius: var(--radius-full);
}
.res-play[aria-pressed="true"] {
color: var(--accent);
border-color: var(--accent);
}
.res-icon::before {
content: '';
flex: none;
width: 14px;
height: 14px;
background-color: currentColor;
-webkit-mask: var(--res-icon) center / contain no-repeat;
mask: var(--res-icon) center / contain no-repeat;
forced-color-adjust: none;
}
.res-copy.res-icon { --res-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.3'%3E%3Crect x='4.5' y='4.5' width='8' height='8' rx='1.5'/%3E%3Cpath d='M9.5 3V2.5A1.5 1.5 0 0 0 8 1H2.5A1.5 1.5 0 0 0 1 2.5V8a1.5 1.5 0 0 0 1.5 1.5H3'/%3E%3C/svg%3E"); }
.res-copy.res-icon.copied { --res-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7.5L5.5 11L12 3.5'/%3E%3C/svg%3E"); }
.res-dl.res-icon { --res-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 1.5v6.8M4.2 5.6 7 8.4l2.8-2.8'/%3E%3Cpath d='M1.8 10.2v.8a1.5 1.5 0 0 0 1.5 1.5h7.4a1.5 1.5 0 0 0 1.5-1.5v-.8'/%3E%3C/svg%3E"); }
.res-play.res-icon { --res-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 2.2a.6.6 0 0 1 .9-.52l7.2 4.3a.6.6 0 0 1 0 1.04l-7.2 4.3a.6.6 0 0 1-.9-.52z'/%3E%3C/svg%3E"); }
.res-play.res-icon[aria-pressed="true"] { --res-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='2.8' y='2' width='3.2' height='10' rx='0.8'/%3E%3Crect x='8' y='2' width='3.2' height='10' rx='0.8'/%3E%3C/svg%3E"); }
.res-swatch {
width: 36px;
height: 36px;
flex-shrink: 0;
background: var(--char-day);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
}
.res-swatch--none {
background: none;
border-style: dashed;
}
@supports (color: light-dark(#000, #fff)) {
.res-swatch {
background: light-dark(var(--char-day), var(--char-night));
}
.res-swatch--none {
background: none;
}
}
.res-chip {
display: inline-block;
width: 9px;
height: 9px;
margin-right: 4px;
border: 1px solid var(--border);
border-radius: var(--radius-full);
vertical-align: 1px;
}
.res-hex {
display: inline-flex;
align-items: center;
width: auto;
height: auto;
padding: 1px 5px 1px 4px;
margin: 0 1px;
border-radius: var(--radius-xs);
font-family: var(--font-mono);
font-size: var(--fs-label);
color: var(--text-soft);
}
.res-jump {
margin-bottom: 8px;
}
.res-jump ul {
display: flex;
flex-wrap: wrap;
gap: 4px 18px;
margin: 0;
padding: 0;
list-style: none;
}
.res-jump a {
display: inline-block;
padding-block: 6px;
font-size: var(--fs-ui);
font-weight: 600;
color: var(--text-soft);
text-decoration: none;
transition: color 0.15s var(--ease-out);
}
.res-jump a[style],
.res-group-code[style] {
color: color-mix(in oklab, var(--char) 35%, var(--text));
}
@supports (color: light-dark(#000, #fff)) {
.res-jump a[style],
.res-group-code[style] {
color: light-dark(color-mix(in oklab, var(--char) 35%, var(--text)),
color-mix(in oklab, var(--char) 70%, var(--text)));
}
}
.res-jump a:hover {
color: var(--accent);
}
.res-jump a:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
border-radius: var(--radius-xs);
}
.res-jump code {
font-family: var(--font-mono);
font-size: var(--fs-label);
}
.res-group[hidden] {
display: none;
}
.res-group-title {
display: flex;
align-items: baseline;
gap: 12px;
margin: 40px 0 10px;
font-family: var(--font-serif);
font-size: var(--fs-lead);
font-weight: 700;
line-height: var(--lh-heading);
color: var(--text);
}
.res-jump + .res-group .res-group-title {
margin-top: 20px;
}
.res-group-code {
font-family: var(--font-mono);
font-size: var(--fs-label);
font-weight: 400;
color: var(--text-soft);
border: 1px solid var(--border);
border-radius: var(--radius-xs);
padding: 1px 6px;
}
.res-lightbox {
padding: 0;
border: 1px solid transparent;
border-radius: var(--radius-md);
background: var(--bg-elevated);
box-shadow: var(--shadow-modal);
max-width: min(92vw, 1200px);
max-height: 92vh;
max-height: 92dvh;
}
.res-lightbox::backdrop {
background: var(--scrim);
}
.res-lightbox img {
display: block;
max-width: 100%;
max-height: calc(92vh - 58px);
max-height: calc(92dvh - 58px);
width: auto;
height: auto;
margin: 0 auto;
}
.res-lightbox-bar {
display: flex;
align-items: center;
gap: 16px;
padding: 10px 14px;
border-top: 1px solid var(--border);
background: var(--bg-surface);
border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}
.res-lightbox-name {
flex: 1;
min-width: 0;
font-family: var(--font-mono);
font-size: var(--fs-ui);
font-weight: 600;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.res-lightbox-raw {
flex-shrink: 0;
font-size: var(--fs-ui);
color: var(--accent);
text-decoration: none;
}
.res-lightbox-raw:hover {
text-decoration: underline;
}
.res-lightbox-raw:focus-visible,
.res-lightbox-close:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
border-radius: var(--radius-xs);
}
.res-lightbox-close {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
flex-shrink: 0;
padding: 0;
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
color: var(--text-soft);
cursor: pointer;
transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.res-lightbox-close:hover {
color: var(--accent);
border-color: var(--accent);
}
@media (max-width: 40em) {
.res-lightbox-bar {
gap: 12px;
padding: 4px 12px;
}
.res-lightbox-raw {
display: inline-flex;
align-items: center;
min-height: 44px;
}
.res-lightbox-close {
width: 44px;
height: 44px;
}
}
@media (prefers-reduced-motion: no-preference) {
.res-lightbox[open] {
animation: res-zoom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.res-lightbox[open]::backdrop {
animation: res-fade 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
}
@keyframes res-zoom {
from {
opacity: 0;
transform: scale(0.88);
}
}
@keyframes res-fade {
from {
opacity: 0;
}
}
.fb-crumbs {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 8px;
margin-bottom: 14px;
font-family: var(--font-mono);
}
.fb-crumbs-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
align-items: baseline;
}
.fb-crumbs-list li {
display: inline-flex;
align-items: baseline;
}
.fb-crumbs-list li:not(:first-child)::before {
content: '›' / '';
margin: 0 8px;
color: var(--text-soft);
font-size: var(--fs-ui);
}
.fb-crumbs a {
color: var(--text-soft);
text-decoration: none;
transition: color 0.15s var(--ease-out);
}
.fb-crumbs a:hover {
color: var(--accent);
text-decoration: underline;
}
.fb-crumbs a:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
border-radius: var(--radius-xs);
}
.fb-crumbs [aria-current] {
color: var(--text);
font-weight: 600;
}
.fb-stats {
margin-left: auto;
font-size: var(--fs-label);
color: var(--text-soft);
}
.fb-ico {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
flex-shrink: 0;
color: var(--text-soft);
}
.fb-ico--dir {
color: color-mix(in oklab, var(--sunset) 55%, var(--text));
}
.fb-link {
color: var(--text);
text-decoration: none;
padding-block: 14px;
transition: color 0.15s var(--ease-out);
}
.fb-link:hover {
color: var(--accent);
text-decoration: underline;
}
.fb-link:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
border-radius: var(--radius-xs);
}
.res-copy--label {
width: auto;
max-width: 100%;
padding: 0 10px;
gap: 6px;
font-family: var(--font-mono);
font-size: var(--fs-label);
}
.res-copy--label span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.fb-view-title {
overflow-wrap: break-word;
}
.fb-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px 18px;
margin-bottom: 18px;
}
.fb-action {
font-size: var(--fs-ui);
color: var(--accent);
text-decoration: none;
}
.fb-action:hover {
text-decoration: underline;
}
.fb-action:focus-visible {
outline: var(--focus-ring);
outline-offset: 2px;
border-radius: var(--radius-xs);
}
@media (max-width: 48em) {
.fb-action {
display: inline-flex;
align-items: center;
min-height: 44px;
}
}
.fb-code {
margin: 0;
padding: 16px;
background: var(--code-bg);
border: 1px solid var(--border);
border-radius: var(--radius-block);
font-family: var(--font-mono);
font-size: var(--fs-ui);
line-height: var(--lh-ui);
}
.fb-code {
display: flex;
gap: 16px;
}
.fb-code code {
background: none;
padding: 0;
color: var(--code-name);
font-family: inherit;
}
.fb-gutter {
display: flex;
flex-direction: column;
flex-shrink: 0;
text-align: right;
user-select: none;
-webkit-user-select: none;
}
.fb-code .code-scroll {
display: block;
overflow-x: auto;
min-width: 0;
flex: 1 1 auto;
}
.fb-gutter a {
color: var(--code-comment);
text-decoration: none;
line-height: inherit;
}
.fb-gutter a:hover,
.fb-gutter a:focus-visible {
color: var(--code-inline);
}
.fb-line:target {
background: var(--target-bg);
box-shadow: 0 0 0 2px var(--target-bg);
border-radius: 2px;
}
.fb-gutter a.is-target {
color: var(--code-inline);
font-weight: 700;
}
.fb-media {
display: block;
max-width: 100%;
height: auto;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-light);
}
video.fb-media {
width: min(900px, 100%);
}
.fb-media--audio {
width: min(560px, 100%);
border: none;
background: none;
}
.fb-specimen {
padding: 24px;
border: 1px solid var(--border);
border-radius: var(--radius-block);
background: var(--bg-light);
font-family: 'fb-specimen', sans-serif;
overflow-wrap: break-word;
}
.fb-specimen p {
margin: 0;
line-height: var(--lh-prose);
}
.fb-specimen p + p {
margin-top: 14px;
}
.fb-specimen-lg {
font-size: 1.7rem;
}
.res-links {
margin-top: 48px;
}
.res-links-title {
margin: 0;
font-family: var(--font-serif);
font-size: var(--fs-lead);
font-weight: 700;
line-height: var(--lh-heading);
}
.res-links-lead {
margin: 6px 0 16px;
max-width: 55ch;
color: var(--text-soft);
}
.res-links .section-name {
min-width: 0;
flex-shrink: 1;
white-space: normal;
overflow: visible;
text-overflow: clip;
}
.res-links .section-row {
flex-wrap: wrap;
}
@media (max-width: 40em) {
.res-tabs {
padding: 0 20px;
}
.res-tab {
margin-right: 20px;
}
.res-cats ul {
padding: 0 20px;
}
.res-row {
flex-wrap: wrap;
gap: 12px;
}
.res-meta {
min-width: 180px;
}
.res-actions {
gap: 12px;
}
.res-thumb {
width: 144px;
height: 81px;
}
.res-thumb--sprite {
width: 76px;
height: 114px;
}
.res-file {
display: none;
}
.res-copy,
.res-dl,
.res-play {
min-width: 44px;
min-height: 44px;
}
}
@media (prefers-reduced-motion: reduce) {
.res-tab,
.res-cats a,
a.res-thumb,
a.res-file,
.res-copy,
.res-play,
.res-dl,
.res-jump a,
.fb-crumbs a,
.fb-link {
transition: none;
}
}
@media (forced-colors: active) {
.res-tab[aria-current="page"],
.res-cats a[aria-current="page"] {
text-decoration: underline 2px;
text-underline-offset: 0.35em;
}
}
