.catalog-page { --library-ink: #3d352b; color: var(--library-ink); }
.catalog-page a { color: inherit; }
.catalog-header .menu-logo { text-decoration: none; white-space: nowrap; }
.catalog-header nav { display: flex; gap: 1.5rem; align-items: center; }
.catalog-header nav a { font-size: .9rem; text-decoration: none; padding: .65rem 0; }
.catalog-header nav a[aria-current] { border-bottom: 2px solid #754e35; font-weight: 700; }
.catalog-header-note { font-size: .8rem; color: #644d39; }
.catalog-main { max-width: 1420px; margin: 0 auto; padding: 3.2rem clamp(1rem, 4vw, 4rem) 2rem; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.library-intro { display: flex; justify-content: space-between; align-items: center; gap: 3rem; margin-bottom: 2.7rem; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; color: #79543a; }
.library-intro h1 { font-family: "Alegreya", Georgia, serif; font-size: clamp(2.7rem, 5.5vw, 4.7rem); line-height: 1.05; font-weight: 700; letter-spacing: -.045em; }
.library-intro h1 span { color: #b96944; }
.library-description { max-width: 660px; line-height: 1.7; font-size: 1rem; margin-top: 1.15rem; color: #64503e; }
.library-stamp { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; transform: rotate(4deg); flex-shrink: 0; }
.library-stamp > span { width: 64px; height: 70px; border: 1px solid #bc9c74; border-radius: 13px; display: grid; place-content: center; background: #f9edd7; box-shadow: 0 4px 0 #c6a481; font-size: 2rem; font-family: Georgia, serif; }
.library-stamp > span:nth-child(2) { background: #dbe2c9; transform: translateY(-8px); }
.library-stamp > span:nth-child(3) { background: #f0d0b4; }
.library-stamp small { grid-column: 1/-1; text-align: center; text-transform: uppercase; letter-spacing: .17em; font-size: .6rem; margin-top: .6rem; }
.preview-notice { padding: .8rem 1rem; background: #f6e7c3; border: 1px dashed #96724a; border-radius: 10px; margin-bottom: 1rem; font-size: .85rem; line-height: 1.5; }
.private-lock { flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid #927961; border-radius: 50%; background: #fff8ec; color: #5c4634; cursor: pointer; }
.private-lock svg { display: block; width: 23px; height: 23px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.private-lock .open-shackle { display: none; }
.private-lock[data-unlocked="true"] .closed-shackle { display: none; }
.private-lock[data-unlocked="true"] .open-shackle { display: block; }
.private-lock[data-unlocked="true"] { background: #e1efe7; color: #326448; border-color: #619174; }
.private-lock:hover { background: #f2e4cf; }
.private-dialog { position: fixed; width: min(420px,calc(100vw - 2rem)); max-height: min(80vh,700px); overflow: auto; margin: auto; padding: 1.35rem 1.4rem; border: 1px solid #9fb8aa; border-radius: 14px; background: #f5f9f4; box-shadow: 0 24px 80px #14251c66; color: #334b3d; }
.private-dialog::backdrop { background: #17201bb5; }
.private-dialog .eyebrow { margin: 0 0 .25rem; color: #426153; }
.private-dialog h2 { font-family: "Alegreya",Georgia,serif; font-size: 1.5rem; }
.private-dialog p { font-size: .81rem; line-height: 1.55; color: #46584d; }
.private-dialog label { display: block; margin: .8rem 0 .35rem; font-size: .75rem; font-weight: 700; }
.private-close { position: absolute; right: .6rem; top: .5rem; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #3b5846; font: 1.5rem system-ui; cursor: pointer; }
.private-login-controls { display: flex; gap: .5rem; }
.private-login-controls input { min-width: 0; flex: 1; min-height: 44px; padding: .55rem .7rem; border: 1px solid #839d90; border-radius: 7px; font: inherit; }
.private-login-controls button,.private-dialog > button#private-logout { min-height: 44px; padding: .55rem .8rem; border: 1px solid #3c5e50; border-radius: 7px; background: #466f5a; color: white; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.private-login-controls button:disabled { opacity: .6; cursor: wait; }
#private-status { margin: .7rem 0 0; min-height: 1.2rem; }
.asset-card[data-private="true"] { border-color: #88ad98; }
.asset-card[data-private="true"] .asset-kicker span:first-child { background: #dcebe2; }
.library-window { border: 1px solid #bd9b74; border-radius: 18px; background: #fffbf3; overflow: hidden; box-shadow: 0 14px 34px #78533419; }
.library-title-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.2rem; background: linear-gradient(#f3e1c9,#e8cdaa); border-bottom: 1px solid #c6a780; font-size: .8rem; font-weight: 700; }
.library-title-bar #collection-size { margin-left: auto; font-size: .75rem; font-weight: 600; }
.window-dots { display: flex; gap: 6px; }
.window-dots i { display: block; height: 9px; width: 9px; border-radius: 50%; background: #c58061; border: 1px solid #9e6247; }
.window-dots i:nth-child(2) { background: #e1bc70; border-color: #b5914d; }.window-dots i:nth-child(3) { background: #9eaf87; border-color: #7a8c61; }
.catalog-filters { padding: 1.5rem 1.5rem 1.1rem; display: grid; grid-template-columns: minmax(220px,2fr) repeat(4,minmax(112px,1fr)); gap: 1rem; }
.catalog-filters label { display: block; font-size: .75rem; font-weight: 700; margin-bottom: .5rem; color: #66513e; }
.catalog-filters input,.catalog-filters select { width: 100%; min-width: 0; min-height: 46px; font: inherit; font-size: .84rem; padding: .7rem .8rem; color: #44372a; border: 1px solid #cbb698; border-radius: 8px; background: #fffdf8; }
.search-input { position: relative; }.search-input span { position: absolute; left: .85rem; top: .6rem; font-size: 1.3rem; }.search-input input { padding-left: 2.4rem; }
.catalog-page :focus-visible { outline: 3px solid #547b83; outline-offset: 3px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 1.5rem; border-top: 1px solid #e8dccb; padding: .8rem 0; font-size: .8rem; }
.text-button { background: none; border: 0; font: inherit; color: #70482f; text-decoration: underline; cursor: pointer; min-height: 44px; padding: .4rem; }
.text-button:disabled { opacity: .45; cursor: default; text-decoration: none; }
.asset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; padding: 0 1.5rem 1.5rem; }
@media(min-width: 601px) { .asset-grid:has(> .asset-card[data-type="vfx"]:only-child) { grid-template-columns: minmax(0,640px); justify-content: center; } }
.asset-card { border: 1px solid #d6c5ad; border-radius: 12px; overflow: hidden; background: #fffef9; display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 5.25rem; }
.asset-preview { min-height: 185px; height: 200px; background: #ede8dc; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid #dfd0ba; }
.asset-preview img { height: 100%; width: 100%; object-fit: contain; padding: 1rem; }.asset-preview[data-media="image"] { background-color: #ece9df; background-image: linear-gradient(45deg,#fff5 25%,transparent 25%),linear-gradient(-45deg,#fff5 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#fff5 75%),linear-gradient(-45deg,transparent 75%,#fff5 75%); background-size: 24px 24px; background-position: 0 0,0 12px,12px -12px,-12px 0; }
.asset-preview[data-media="audio"] { flex-direction: column; gap: .7rem; background: #e1e7d7; padding: 1rem; }.asset-card[data-type="music"] .asset-preview { background: #dfe8ea; }
.audio-mark { font-family: Georgia,serif; font-size: 2.4rem; color: #526754; line-height: 1; }.audio-caption { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #566054; }
.audio-controls { display: grid; grid-template-columns: 44px minmax(24px,1fr) auto; align-items: center; gap: .35rem; width: 100%; padding: .15rem .6rem .15rem .2rem; border: 1px solid #c1cbbb; border-radius: 99px; background: #f4f5ef; }
.audio-toggle { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: #435943; font: inherit; font-size: 1rem; cursor: pointer; }
.audio-toggle:hover { background: #dce5d5; }
.audio-toggle:disabled { opacity: .5; cursor: default; }
.audio-seek { width: 100%; min-width: 0; min-height: 44px; margin: 0; accent-color: #58745f; cursor: pointer; }
.audio-time { font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: #3d352b; }
.effect-preview { background: linear-gradient(145deg,#e9efe9,#f4e7d7); }
.effect-preview canvas { display: block; width: 100%; height: 100%; }
.effect-restart { position: absolute; right: .8rem; bottom: .7rem; min-height: 44px; padding: .45rem .75rem; border: 1px solid #8b775d; border-radius: 8px; background: #fffbf3ed; color: #493526; font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.effect-restart:disabled { opacity: .5; cursor: default; }
.effect-source-details { border-top: 1px solid #eee4d6; padding-top: .3rem; }
.effect-source-details summary { font-size: .76rem; cursor: pointer; min-height: 40px; display: list-item; align-content: center; color: #71543b; }
.effect-use { font-size: .75rem; line-height: 1.55; color: #645340; margin: .35rem 0 .7rem; }
.effect-copy { min-height: 44px; padding: .45rem .75rem; border: 1px solid #b99b75; border-radius: 7px; background: #faf4e9; color: #493526; font: inherit; font-size: .75rem; cursor: pointer; }
.effect-copy:disabled { opacity: .5; cursor: default; }
.effect-code { max-height: 18rem; max-width: 100%; overflow: auto; margin-top: .6rem; padding: .8rem; border: 1px solid #e0d1bc; border-radius: 6px; background: #f7f2e9; color: #3e382e; font-size: .7rem; line-height: 1.45; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; }

.asset-preview[data-media="font"] { flex-direction: column; gap: .8rem; background: #f0dec8; padding: 1.2rem; }.font-specimen { font-size: clamp(2.2rem,4vw,3.5rem); text-align: center; line-height: 1.1; overflow-wrap: anywhere; }.font-alphabet { font-size: .8rem; letter-spacing: .04em; }
.asset-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex: 1; flex-direction: column; gap: .65rem; }.asset-kicker { display: flex; gap: .65rem; align-items: baseline; font-size: .75rem; text-transform: uppercase; letter-spacing: .055em; font-weight: 700; color: #755a40; }.asset-kicker span:first-child { background: #f0e7d7; padding: .25rem .4rem; border-radius: 4px; white-space: nowrap; }.asset-kicker span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-card h2 { font-family: "Alegreya",Georgia,serif; font-size: 1.4rem; line-height: 1.15; }.asset-games { font-size: .75rem; line-height: 1.5; color: #645340; }.asset-description { font-size: .82rem; line-height: 1.65; color: #645340; }.asset-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .1rem; }.asset-tags button { font: inherit; font-size: .75rem; border: 1px solid #d9cbb6; border-radius: 99px; background: #faf4e9; color: #655541; padding: .4rem .6rem; cursor: pointer; min-height: 32px; }.asset-tags button:hover { background: #eadcc4; }
.asset-bottom { margin-top: auto; padding-top: .5rem; }.asset-license-line { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .75rem; color: #5b6350; margin-bottom: .65rem; }.asset-file { font-size: .75rem; text-decoration: none; border-bottom: 1px solid #876247; font-weight: 700; padding: .4rem 0; min-height: 44px; display: inline-flex; align-items: center; }
.asset-file[type="button"] { background: none; border: 0; border-bottom: 1px solid #876247; color: #70482f; font: inherit; font-weight: 700; cursor: pointer; }
.asset-file[type="button"]:disabled { opacity: .6; cursor: wait; }
.asset-usage { font-size: .75rem; line-height: 1.55; color: #645340; margin: .15rem 0 .8rem; }
.asset-details { border-top: 1px solid #eee4d6; padding-top: .3rem; }.asset-details summary { font-size: .76rem; cursor: pointer; min-height: 40px; display: list-item; align-content: center; color: #71543b; }.asset-details dl { font-size: .74rem; line-height: 1.6; overflow-wrap: anywhere; }.asset-details dt { font-weight: 700; margin-top: .5rem; }.asset-details dd { color: #645441; }.asset-details a { text-underline-offset: 2px; }
.preview-error { padding: 1rem; text-align: center; font-size: .85rem; }.catalog-state { text-align: center; padding: 3rem 1.5rem; color: #67543f; line-height: 1.7; }.catalog-state h2 { font-family: "Alegreya",Georgia,serif; font-size: 1.7rem; margin-bottom: .5rem; }.library-button { background: #edcfac; border: 1px solid #aa8156; border-radius: 8px; color: #493526; font: inherit; font-weight: 700; padding: .8rem 1.3rem; cursor: pointer; }.show-more { display: block; margin: 0 auto 1.5rem; }.library-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem .2rem; font-size: .75rem; color: #67533e; line-height: 1.6; }.library-footer a { white-space: nowrap; text-underline-offset: 3px; }
[hidden] { display: none !important; }
@media(max-width: 1000px) { .catalog-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }.search-field { grid-column: 1/-1; }.asset-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.catalog-header-note { display: none; }.library-stamp > span { width: 46px; height: 56px; font-size: 1.5rem; } }
@media(max-width: 600px) {
  .private-login-controls { flex-wrap: wrap; }
  .private-login-controls button { flex: 0 0 auto; }
  .catalog-header { padding: .65rem 1rem; gap: .8rem; flex-wrap: wrap; }
  .catalog-header nav { gap: 1rem; }
  .catalog-header nav a { font-size: .75rem; padding: .4rem 0; }
  .catalog-header .menu-logo { font-size: .95rem; }
  .catalog-main { padding-top: .5rem; }
  .library-intro { gap: 0; margin-bottom: .3rem; }
  .library-intro h1 { font-size: 2.4rem; }
  .library-stamp { display: none; }
  .library-description { font-size: .875rem; line-height: 1.5; margin-top: .5rem; }
  .eyebrow { font-size: .65rem; margin-bottom: .6rem; }
  .preview-notice { padding: .6rem .8rem; font-size: .8rem; margin-bottom: .8rem; }
  .library-title-bar { padding: .8rem 1rem; gap: .6rem; }
  .library-title-bar > :last-child { font-size: .75rem; }
  .catalog-filters { padding: .7rem 1rem; gap: .5rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .catalog-filters .game-field { grid-column: 1/-1; }
  .catalog-filters label { margin-bottom: .35rem; }
  .catalog-filters select { padding-inline: .45rem; font-size: .8rem; }
  .results-bar { margin: 0 1rem; padding: .4rem 0; }
  .asset-grid { grid-template-columns: minmax(0,1fr); padding: 0 1rem 1rem; gap: 1rem; }
  .asset-preview { height: 125px; min-height: 125px; }
  .library-footer { flex-direction: column; gap: .7rem; }
  .asset-tags button { min-height: 44px; }
}
