:root {
  color-scheme: dark;
  --ink: #f7f1df;
  --muted: #b8b8ad;
  --deep: #050a08;
  --surface: #0c1410;
  --surface-soft: #121d17;
  --line: rgba(226, 209, 163, .22);
  --line-strong: rgba(242, 198, 109, .5);
  --gold: #f2c66d;
  --gold-deep: #ad7624;
  --green: #8fcb9b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --ink: #211e17;
  --muted: #625f56;
  --deep: #eee9dd;
  --surface: #fbf7ed;
  --surface-soft: #e7dfcf;
  --line: rgba(56, 47, 29, .23);
  --line-strong: rgba(130, 88, 26, .52);
  --gold: #98671f;
  --gold-deep: #68400f;
  --green: #286b46;
  --shadow: 0 22px 58px rgba(70, 58, 35, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; padding-bottom: 78px; background: var(--deep); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--gold); color: #151008; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.review-ribbon { min-height: 40px; display: flex; align-items: center; gap: 14px; padding: 7px clamp(16px, 4vw, 58px); background: #24190b; border-bottom: 1px solid rgba(242, 198, 109, .35); color: #f7e7bd; font-size: .76rem; }
.review-ribbon strong { color: #ffd985; letter-spacing: .12em; text-transform: uppercase; }
.review-ribbon nav { margin-left: auto; display: flex; gap: 8px; }
.review-ribbon a { padding: 4px 8px; border-radius: 999px; text-decoration: none; }
.review-ribbon a[aria-current="page"] { background: #f2c66d; color: #211608; }

.site-header { position: sticky; z-index: 30; top: 0; min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 10px clamp(16px, 4vw, 58px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--deep) 92%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.45rem var(--serif); }
.brand-seal { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 .72rem var(--serif); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2.5vw, 32px); font-size: .86rem; }
.site-nav a { padding: 8px 0; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--ink); }
.theme-toggle { min-width: 76px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }

.library-page { background: radial-gradient(circle at 78% 0, rgba(122, 99, 46, .16), transparent 28%), var(--deep); }
.library-hero { min-height: 330px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 280px); align-items: end; gap: 50px; padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 74px) 52px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--deep) 86%, transparent)), url("assets/beyond-zork-hero.webp") center 28% / cover; }
[data-theme="light"] .library-hero { background: linear-gradient(115deg, rgba(251, 247, 237, .96), rgba(238, 233, 221, .82)), url("assets/beyond-zork-hero.webp") center 28% / cover; }
.library-intro { max-width: 760px; }
.kicker { margin: 0 0 10px; color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
.library-intro h1 { max-width: 780px; margin: 0; font: 600 clamp(3rem, 6.7vw, 6.7rem)/.9 var(--serif); letter-spacing: -.055em; }
.library-intro > p:last-child { max-width: 690px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.library-count { align-self: center; padding: 25px; border: 1px solid var(--line-strong); border-radius: 50% 50% 44% 56% / 51% 46% 54% 49%; background: color-mix(in srgb, var(--surface) 88%, transparent); text-align: center; transform: rotate(2deg); }
.library-count strong { display: block; color: var(--gold); font: 600 clamp(3rem, 7vw, 5rem)/1 var(--serif); }
.library-count span { display: block; margin-top: 6px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.library-tools { position: relative; z-index: 4; width: min(1380px, calc(100% - 36px)); display: grid; grid-template-columns: minmax(210px, 360px) 1fr auto; align-items: end; gap: 18px; margin: -22px auto 0; padding: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.search-box { display: grid; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.search-box input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; outline: 0; background: var(--deep); color: var(--ink); text-transform: none; }
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.filter-block { min-width: 0; }
.filter-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.filter, .more-filters { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); white-space: nowrap; cursor: pointer; }
.filter.active { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, var(--surface)); color: var(--ink); }
.more-filters { color: var(--ink); }
.filter-drawer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.filter-drawer label { display: flex; gap: 8px; align-items: center; }
.filter-drawer p { flex: 1 1 330px; margin: 0; font-size: .76rem; }

.featured-path { width: min(1380px, calc(100% - 36px)); display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 34px auto 0; padding: 24px 28px; border: 1px solid var(--line); background: linear-gradient(115deg, color-mix(in srgb, var(--gold) 10%, var(--surface)), var(--surface)); }
.featured-path h2 { margin: 0; font: 600 clamp(1.55rem, 2.8vw, 2.35rem) var(--serif); }
.featured-path p:last-child { margin: 7px 0 0; color: var(--muted); }
.featured-path button { min-height: 46px; padding: 0 20px; border: 1px solid var(--gold); background: var(--gold); color: #171109; font-weight: 800; cursor: pointer; }

.catalog-section { width: min(1380px, calc(100% - 36px)); margin: 54px auto 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font: 600 clamp(2rem, 4vw, 3.6rem)/1 var(--serif); }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.6; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.game-card { position: relative; min-height: 390px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.game-card.featured { grid-column: span 2; }
.game-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.game-card:hover > img { transform: scale(1.035); }
.card-wash { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 6, 4, .97) 0, rgba(2, 6, 4, .7) 36%, rgba(2, 6, 4, .08) 72%); }
.card-copy { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; padding: 24px; color: #f7f1df; }
.card-type { display: inline-flex; margin-bottom: 8px; color: #f2c66d; font-size: .67rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.card-copy h3 { margin: 0; font: 600 clamp(1.45rem, 2.3vw, 2.15rem) var(--serif); }
.card-copy p { min-height: 42px; margin: 8px 0 0; color: #d3d4cc; font-size: .84rem; line-height: 1.5; }
.card-actions { display: flex; gap: 8px; margin-top: 17px; }
.primary-action, .secondary-action, .card-actions button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #f2c66d; border-radius: 3px; background: #f2c66d; color: #171109; font-weight: 800; text-decoration: none; cursor: pointer; }
.card-actions button { background: rgba(4, 9, 6, .66); color: #fff8e8; }
.empty-result { padding: 34px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }

.details-dialog { width: min(820px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: auto; border: 1px solid #9f7d3f; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.details-dialog::backdrop, .lightbox::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.details-dialog > img { width: 100%; height: 290px; display: block; object-fit: cover; }
.dialog-content { padding: 28px; }
.dialog-content h2 { margin: 0; font: 600 clamp(2.2rem, 5vw, 4rem)/1 var(--serif); }
.dialog-content > p { color: var(--muted); line-height: 1.65; }
.dialog-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; font-size: 1.5rem; cursor: pointer; }
.quick-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0; }
.quick-facts div { padding: 13px; border: 1px solid var(--line); }
.quick-facts dt { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.quick-facts dd { margin: 5px 0 0; }

.fiction-page { --gold: #9ac59f; --gold-deep: #456d4d; background: radial-gradient(circle at 80% 0, rgba(49, 111, 63, .17), transparent 28%), var(--deep); }
.world-page { --gold: #ebc46f; --gold-deep: #865d1c; background: radial-gradient(circle at 82% 0, rgba(102, 82, 36, .18), transparent 30%), var(--deep); }
.breadcrumbs { width: min(1320px, calc(100% - 36px)); display: flex; flex-wrap: wrap; gap: 9px; margin: 24px auto 13px; color: var(--muted); font-size: .78rem; }
.breadcrumbs a { text-decoration: none; }
.game-hero { position: relative; width: min(1320px, calc(100% - 36px)); min-height: 610px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.game-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fiction-hero > img { object-position: center; }
.world-hero > img { object-position: center 43%; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 8, 5, .98) 0, rgba(2, 8, 5, .9) 37%, rgba(2, 8, 5, .45) 64%, rgba(2, 8, 5, .08) 100%), linear-gradient(0deg, rgba(2, 8, 5, .72), transparent 50%); }
.world-hero .hero-fade { background: linear-gradient(90deg, rgba(6, 10, 7, .98) 0, rgba(6, 10, 7, .88) 42%, rgba(6, 10, 7, .3) 72%, rgba(6, 10, 7, .08) 100%), linear-gradient(0deg, rgba(6, 10, 7, .62), transparent 54%); }
.game-hero-copy { position: relative; z-index: 2; min-height: 610px; max-width: 760px; display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 7vw, 90px); color: #f7f1df; }
.game-hero-copy h1 { margin: 0; font: 600 clamp(3.6rem, 8.5vw, 8rem)/.86 var(--serif); letter-spacing: -.035em; word-spacing: .05em; }
.hero-subtitle { margin: 13px 0 0; color: #d9c88f; font: italic 500 clamp(1.25rem, 2.3vw, 2rem) var(--serif); }
.game-hero-copy > p:not(.kicker, .hero-subtitle) { max-width: 650px; margin: 22px 0 0; color: #d9ded8; font-size: clamp(1rem, 1.45vw, 1.15rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.secondary-action { background: rgba(4, 9, 6, .72); color: #f7f1df; }
.trait-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 20px 0 0; list-style: none; }
.trait-list li { padding: 7px 10px; border: 1px solid rgba(154, 197, 159, .42); background: rgba(10, 29, 15, .52); color: #d6efda; font-size: .74rem; }

.play-layout { width: min(1320px, calc(100% - 36px)); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .58fr); gap: 18px; margin: 28px auto 0; }
.game-stage, .play-guide { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.game-stage > header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.game-stage h2, .play-guide h2, .story-section h2, .materials-section h2, .gallery-section h2, .player-response h2, .world-fit h2, .feature-story h2, .world-media h2, .facts-section h2, .begin-section h2 { margin: 0; font: 600 clamp(2rem, 4.4vw, 4rem)/1 var(--serif); letter-spacing: -.025em; }
.game-stage header button { padding: 9px 13px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.frame-wrap { padding: 14px; background: #000; }
.frame-wrap iframe { width: 100%; aspect-ratio: 4 / 3; min-height: 600px; display: block; border: 0; background: #000; }
.play-guide { padding: 26px; }
.play-guide ol { display: grid; gap: 22px; padding: 0; margin: 28px 0; list-style: none; counter-reset: guide; }
.play-guide li { position: relative; padding-left: 44px; counter-increment: guide; }
.play-guide li::before { position: absolute; top: 0; left: 0; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; content: counter(guide); color: var(--gold); font: 700 .75rem var(--serif); }
.play-guide strong, .play-guide span { display: block; }
.play-guide span { margin-top: 5px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.play-guide > a { color: var(--gold); }

.story-section, .materials-section, .gallery-section, .player-response, .world-fit, .feature-story, .world-media, .facts-section, .begin-section { width: min(1320px, calc(100% - 36px)); margin: 82px auto 0; }
.story-section { display: grid; grid-template-columns: .75fr 1.15fr .7fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: 54px; border-top: 1px solid var(--line); }
.story-copy p { margin: 0 0 18px; color: var(--muted); line-height: 1.8; }
.game-details { margin: 0; }
.game-details div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.game-details dt { color: var(--gold); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.game-details dd { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }

.materials-section { padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--green) 6%, var(--surface))); box-shadow: var(--shadow); }
.book-shelf { position: relative; display: flex; align-items: end; justify-content: center; gap: clamp(14px, 4vw, 55px); min-height: 320px; padding: 46px 20px 54px; }
.book-shelf::after { position: absolute; right: 3%; bottom: 28px; left: 3%; height: 18px; border: 1px solid #6f5530; background: linear-gradient(#8f7145, #4f381e); box-shadow: 0 18px 26px rgba(0, 0, 0, .34); content: ""; }
.book { position: relative; z-index: 2; width: clamp(120px, 17vw, 190px); aspect-ratio: .72; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 14px; border: 4px solid #8f7a4a; background: #392d1a; color: #f4e7be; box-shadow: 10px 15px 30px rgba(0, 0, 0, .4), inset 0 0 0 1px #c3a966; text-align: left; cursor: pointer; transform: rotate(-2deg); }
.book:nth-child(2) { transform: rotate(1deg) translateY(-16px); background: #21382a; }
.book:nth-child(3) { transform: rotate(3deg); background: #3b1720; }
.book span { font: 700 clamp(1.05rem, 2vw, 1.65rem) var(--serif); }
.book small { color: #d8c68f; letter-spacing: .12em; text-transform: uppercase; }
.structure-note { max-width: 820px; margin: 6px auto 0; color: var(--muted); font-size: .8rem; line-height: 1.6; text-align: center; }

.gallery-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 110px); align-items: center; }
.gallery-section > div > p:last-child { color: var(--muted); line-height: 1.7; }
.gallery-item { position: relative; min-height: 400px; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 20px; }
.gallery-item span { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; background: rgba(0, 0, 0, .76); color: #fff; font-size: .75rem; }
.lightbox { max-width: min(1100px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid var(--line-strong); background: #050505; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 40px); display: block; object-fit: contain; }
.lightbox button { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border: 1px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .72); color: #fff; font-size: 1.4rem; cursor: pointer; }

.player-response { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.player-response > div:first-child { max-width: 670px; }
.player-response p:last-child { color: var(--muted); line-height: 1.6; }
.response-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.response-actions button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }

.world-status { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: #f7f1df; }
.status-light { width: 11px; height: 11px; border-radius: 50%; background: #e2b95f; box-shadow: 0 0 17px #e2b95f; }
.world-status span:last-child { display: grid; }
.world-status small { margin-top: 3px; color: #c9c8c0; }
.section-jump { width: min(1100px, calc(100% - 36px)); display: flex; justify-content: center; gap: 0; margin: -1px auto 0; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.section-jump a { flex: 1; padding: 16px 12px; border-right: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-align: center; text-decoration: none; }
.section-jump a:last-child { border-right: 0; }
.section-jump a:hover, .section-jump a:focus-visible { color: var(--ink); background: color-mix(in srgb, var(--gold) 8%, var(--surface)); }

.world-fit > header { max-width: 780px; margin: 0 auto 34px; text-align: center; }
.world-fit > header > p:last-child, .begin-section > header > p:last-child { color: var(--muted); line-height: 1.7; }
.fit-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.fit-grid article { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); background: var(--surface); }
.fit-grid article:last-child { border-right: 0; }
.fit-grid article > span { color: var(--gold); font: 500 1.9rem var(--serif); }
.fit-grid h3 { margin: 48px 0 10px; font: 600 1.4rem var(--serif); }
.fit-grid p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }

.feature-story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 600px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.feature-image { min-height: 560px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { align-self: center; padding: clamp(32px, 6vw, 78px); }
.feature-copy > p:not(.kicker) { color: var(--muted); line-height: 1.75; }
.feature-copy ul { display: grid; gap: 11px; padding: 0; margin: 24px 0 0; list-style: none; }
.feature-copy li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); color: var(--muted); }
.feature-copy li::before { margin-left: -22px; margin-right: 12px; color: var(--gold); content: "◆"; font-size: .55rem; }

.world-media { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(30px, 7vw, 90px); align-items: center; }
.world-media > div:first-child > p:last-child { color: var(--muted); line-height: 1.7; }
.video-wrap { padding: 10px; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.video-wrap iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }

.facts-section { padding-top: 50px; border-top: 1px solid var(--line); }
.facts-section > header { max-width: 820px; margin-bottom: 30px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts-grid article { padding: 26px; border: 1px solid var(--line); background: var(--surface); }
.facts-grid h3 { margin: 0 0 20px; color: var(--gold); font: 600 1.5rem var(--serif); }
.facts-grid dl { margin: 0; }
.facts-grid dl div { padding: 13px 0; border-top: 1px solid var(--line); }
.facts-grid dt { color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.facts-grid dd { margin: 5px 0 0; line-height: 1.5; }

.begin-section { padding: clamp(34px, 6vw, 70px); border: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--gold) 8%, var(--surface)), var(--surface)); box-shadow: var(--shadow); }
.begin-section > header { max-width: 820px; }
.begin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 34px; }
.begin-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 25px; border: 1px solid var(--line); background: var(--deep); }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 .8rem var(--serif); }
.begin-grid h3 { margin: 36px 0 9px; font: 600 1.4rem var(--serif); }
.begin-grid p { flex: 1; color: var(--muted); line-height: 1.65; }
.text-links { display: flex; flex-wrap: wrap; gap: 12px; }
.text-links a { color: var(--gold); }

.site-footer { width: min(1320px, calc(100% - 36px)); display: flex; justify-content: space-between; gap: 28px; margin: 82px auto 0; padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer > div { display: grid; gap: 5px; }
.site-footer strong { color: var(--ink); font: 600 1.1rem var(--serif); }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.site-footer a { text-decoration: none; }

.radio-bar { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; min-height: 78px; display: grid; grid-template-columns: auto auto minmax(150px, 210px) minmax(180px, 1fr) auto auto; align-items: center; gap: 14px; padding: 9px clamp(14px, 4vw, 54px); border-top: 1px solid rgba(242, 198, 109, .3); background: rgba(3, 8, 5, .97); color: #f7f1df; box-shadow: 0 -14px 40px rgba(0, 0, 0, .36); }
.radio-play { width: 50px; height: 50px; border: 0; border-radius: 50%; background: #f2c66d; color: #171109; cursor: pointer; }
.radio-bar > img { width: 44px; height: 44px; object-fit: contain; }
.radio-name, .radio-track { min-width: 0; display: grid; }
.radio-name strong { font: 700 1rem var(--serif); }
.radio-name small { color: #f7c837; }
.radio-track small { color: #90978f; font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.radio-track strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.radio-volume { display: flex; align-items: center; gap: 8px; color: #c4c8c2; font-size: .7rem; }
.radio-volume input { width: 105px; accent-color: #f2c66d; }
.radio-popout { padding: 9px 12px; border: 1px solid #354239; background: transparent; color: #e4e9e3; cursor: pointer; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1100px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .play-layout { grid-template-columns: 1fr; }
  .play-guide { display: grid; grid-template-columns: .65fr 1.35fr; gap: 24px; }
  .play-guide ol { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .play-guide > a { align-self: end; }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid article:nth-child(2) { border-right: 0; }
  .fit-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .radio-bar { grid-template-columns: auto auto minmax(150px, 210px) 1fr auto; }
  .radio-volume { display: none; }
}

@media (max-width: 820px) {
  body { padding-bottom: 72px; }
  .review-ribbon { align-items: flex-start; flex-wrap: wrap; }
  .review-ribbon > span { display: none; }
  .review-ribbon nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .library-hero { grid-template-columns: 1fr; }
  .library-count { width: 190px; }
  .library-tools { grid-template-columns: 1fr; }
  .filter-row { flex-wrap: wrap; overflow-x: visible; }
  .filter-drawer { grid-column: 1; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card.featured { grid-column: span 2; }
  .game-hero, .game-hero-copy { min-height: 540px; }
  .hero-fade, .world-hero .hero-fade { background: linear-gradient(90deg, rgba(2, 8, 5, .96), rgba(2, 8, 5, .72)), linear-gradient(0deg, rgba(2, 8, 5, .82), transparent); }
  .frame-wrap iframe { min-height: 510px; }
  .play-guide { grid-template-columns: 1fr; }
  .play-guide ol { grid-column: 1; grid-row: auto; }
  .story-section, .gallery-section, .feature-story, .world-media { grid-template-columns: 1fr; }
  .game-details { grid-column: 1; }
  .feature-image { min-height: 420px; }
  .facts-grid, .begin-grid { grid-template-columns: 1fr; }
  .player-response { align-items: flex-start; flex-direction: column; }
  .response-actions { justify-content: flex-start; }
  .section-jump { display: grid; grid-template-columns: repeat(2, 1fr); }
  .section-jump a { min-width: 0; border-bottom: 1px solid var(--line); }
  .section-jump a:nth-child(2) { border-right: 0; }
  .section-jump a:nth-child(n+3) { border-bottom: 0; }
  .site-footer { flex-direction: column; }
  .radio-bar { min-height: 72px; grid-template-columns: auto auto 1fr auto; padding: 8px 12px; }
  .radio-track { display: none; }
}

@media (max-width: 560px) {
  .review-ribbon { font-size: .68rem; }
  .review-ribbon strong { width: 100%; }
  .site-header { min-height: 64px; }
  .brand { font-size: 1.2rem; }
  .brand-seal { width: 35px; height: 35px; }
  .theme-toggle { min-width: 48px; }
  .theme-toggle [data-theme-label] { display: none; }
  .library-hero { min-height: 440px; padding-right: 18px; padding-left: 18px; }
  .library-intro h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .library-tools, .featured-path, .catalog-section, .breadcrumbs, .game-hero, .play-layout, .story-section, .materials-section, .gallery-section, .player-response, .world-fit, .feature-story, .world-media, .facts-section, .begin-section, .site-footer { width: calc(100% - 22px); }
  .featured-path { align-items: flex-start; flex-direction: column; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card.featured { grid-column: span 1; }
  .game-card { min-height: 420px; }
  .game-hero { min-height: 620px; }
  .game-hero-copy { min-height: 620px; justify-content: flex-end; padding: 28px 20px 42px; }
  .game-hero-copy h1 { font-size: clamp(3.5rem, 19vw, 6rem); }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .frame-wrap iframe { min-height: 430px; }
  .game-stage > header { align-items: flex-start; flex-direction: column; }
  .story-section { padding-top: 34px; }
  .materials-section { padding: 26px 15px; }
  .book-shelf { gap: 7px; padding-right: 2px; padding-left: 2px; }
  .book { width: 31%; padding: 10px 7px; border-width: 2px; }
  .book span { font-size: .9rem; }
  .book small { font-size: .55rem; }
  .fit-grid { grid-template-columns: 1fr; }
  .fit-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .fit-grid article:last-child { border-bottom: 0; }
  .feature-image { min-height: 340px; }
  .player-response, .begin-section { padding: 26px 20px; }
  .radio-bar { grid-template-columns: auto auto 1fr; }
  .radio-popout { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Approved visual priority revision */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand-image { width: 92px; height: 66px; display: grid; place-items: center; }
.brand-image img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 7px 16px rgba(0, 0, 0, .45)); }
.site-header { min-height: 78px; padding-top: 5px; padding-bottom: 5px; }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: 180px; display: grid; padding: 8px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.mobile-menu a { padding: 12px; color: var(--muted); text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }

.library-v2 { background: #07100e; }
.library-hero-v2 { min-height: 590px; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .72fr); align-items: center; isolation: isolate; overflow: hidden; background: linear-gradient(90deg, rgba(4, 11, 9, .98) 0%, rgba(4, 11, 9, .82) 45%, rgba(4, 11, 9, .25) 77%), url("assets/beyond-zork-hero.webp") center 40% / cover; }
.library-hero-v2::before { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 68% 33%, rgba(245, 195, 90, .18), transparent 22%), linear-gradient(0deg, #07100e 0, transparent 31%); content: ""; }
.library-hero-v2 .library-intro { align-self: center; }
.library-hero-v2 .library-intro h1 { max-width: 850px; color: #fff3cf; text-shadow: 0 12px 40px rgba(0, 0, 0, .65); }
.library-hero-v2 .library-intro > p:last-of-type { max-width: 720px; color: #d8ded8; }
.hero-search { width: min(660px, 100%); min-height: 66px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 32px; padding: 0 18px; border: 1px solid rgba(247, 211, 126, .55); background: rgba(3, 9, 7, .86); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); color: var(--gold); }
.hero-search > span:not(.sr-only) { font-size: 1.55rem; }
.hero-search input { min-width: 0; height: 62px; border: 0; outline: 0; background: transparent; color: #fff8e8; font-size: 1.05rem; }
.hero-search input::placeholder { color: #aeb9b2; }
.hero-search kbd { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; color: #acb5af; font: .72rem var(--sans); }
.hero-feature { position: relative; align-self: end; min-height: 390px; overflow: hidden; border: 1px solid rgba(247, 211, 126, .42); box-shadow: 0 28px 80px rgba(0, 0, 0, .52); transform: translateY(52px); }
.hero-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-feature::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 7, 5, .96), transparent 70%); content: ""; }
.hero-feature div { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid; gap: 5px; padding: 28px; }
.hero-feature span { color: #f6cf78; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-feature strong { color: #fff3cf; font: 600 2.1rem var(--serif); }
.hero-feature a { width: fit-content; margin-top: 7px; color: #f5cf75; font-weight: 750; text-decoration: none; }

.discovery-section { width: min(1380px, calc(100% - 36px)); margin: 76px auto 0; }
.discovery-section > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.discovery-section h2 { margin: 0; font: 600 clamp(2rem, 4vw, 4.2rem)/1 var(--serif); }
.discovery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.discovery-card { position: relative; min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 24px; border: 1px solid rgba(247, 211, 126, .25); background-position: center; background-size: cover; color: #fff; text-align: left; cursor: pointer; box-shadow: 0 18px 50px rgba(0, 0, 0, .24); transition: transform .22s ease, border-color .22s ease; }
.discovery-card::before { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 7, 6, .98), rgba(2, 7, 6, .12)); content: ""; }
.discovery-card > * { position: relative; z-index: 1; }
.discovery-card span { font: 600 1.7rem var(--serif); }
.discovery-card small { margin-top: 7px; color: #d4ddd6; line-height: 1.45; }
.discovery-card:hover, .discovery-card:focus-visible, .discovery-card.active { border-color: #f2c66d; transform: translateY(-5px); }
.discovery-card.world { background-image: url("assets/paths-of-virtue.webp"); }
.discovery-card.mystery { background-image: url("assets/beyond-zork-hero.webp"); }
.discovery-card.together { background-image: url("assets/dungeonsmud.webp"); }
.discovery-card.quick { background-image: url("assets/tale-twisters.avif"); }
.surprise-action { min-height: 44px; margin-top: 16px; padding: 0; border: 0; background: transparent; color: #f3cf7e; font-weight: 800; cursor: pointer; }

.catalog-shell { width: min(1380px, calc(100% - 36px)); display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 40px; margin: 84px auto 90px; }
.catalog-filters { position: sticky; top: 100px; overflow: hidden; border: 1px solid var(--line); background: #0b1612; box-shadow: 0 22px 65px rgba(0, 0, 0, .23); }
.filter-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px; border-bottom: 1px solid var(--line); }
.filter-heading h2 { margin: 0; font: 600 1.45rem var(--serif); }
.filter-heading button { padding: 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; }
.catalog-filters fieldset { display: grid; gap: 5px; margin: 0; padding: 22px 24px; border: 0; border-bottom: 1px solid var(--line); }
.catalog-filters legend { padding: 0 0 10px; color: #f5d58b; font-size: .7rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.catalog-filters label { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #bdc7c0; font-size: .86rem; cursor: pointer; }
.catalog-filters input { accent-color: #e6b94e; }
.catalog-filters label:has(input:checked) { color: #fff6df; }
.catalog-v2 { width: auto; margin: 0; }
.catalog-v2 .section-heading { margin-bottom: 24px; }
.catalog-v2 .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-v2 .game-card { min-height: 430px; border-color: rgba(238, 213, 158, .24); }
.catalog-v2 .game-card.featured { grid-column: span 2; }
.game-card .card-copy ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 14px 0 0; list-style: none; }
.game-card .card-copy li { padding: 5px 8px; border: 1px solid rgba(238, 213, 158, .32); background: rgba(3, 8, 6, .55); color: #d6ddd7; font-size: .66rem; }
.active-filter-summary { margin: -8px 0 18px; color: var(--gold); font-size: .83rem; }

.details-v2 { width: min(940px, calc(100% - 30px)); max-width: 940px; grid-template-columns: .9fr 1.1fr; padding: 0; overflow: hidden; border: 1px solid rgba(242, 198, 109, .65); background: #08110e; color: #f7f1df; box-shadow: 0 36px 100px rgba(0, 0, 0, .7); }
.details-v2[open] { display: grid; }
.details-v2 .dialog-art { min-height: 540px; }
.details-v2 .dialog-art img { width: 100%; height: 100%; object-fit: cover; }
.details-v2 .dialog-content { align-self: center; padding: clamp(30px, 5vw, 58px); }
.details-v2 .dialog-content h2 { margin: 8px 0 18px; font: 600 clamp(2.4rem, 5vw, 4.6rem)/.94 var(--serif); }
.details-v2 .dialog-content > p { color: #c5cec8; line-height: 1.7; }
.details-v2 .quick-facts { grid-template-columns: repeat(2, 1fr); margin: 27px 0; }

/* Each game family owns its own visual identity. */
.world-page { --ink: #fff5d8; --muted: #c7cab8; --deep: #07120c; --surface: #102218; --surface-soft: #183322; --line: rgba(238, 199, 112, .26); --line-strong: rgba(238, 199, 112, .58); --gold: #f2c667; --gold-deep: #a66a18; --green: #6fcf86; background: radial-gradient(circle at 15% 34%, rgba(47, 112, 62, .22), transparent 28%), linear-gradient(145deg, #07120c, #10170c 50%, #07110b); }
.world-page .game-hero { min-height: 720px; width: min(1500px, calc(100% - 44px)); border-color: rgba(242, 198, 103, .44); border-radius: 0 0 180px 0; }
.world-page .world-hero > img { transform: scale(1.04); }
.world-page .world-hero .hero-fade { background: linear-gradient(90deg, rgba(5, 14, 8, .99) 0, rgba(5, 14, 8, .9) 36%, rgba(5, 14, 8, .3) 70%, rgba(5, 14, 8, .04)), linear-gradient(0deg, rgba(5, 14, 8, .78), transparent 58%); }
.world-page .game-hero-copy { min-height: 720px; }
.world-page .game-hero-copy h1 { color: #fff0bf; text-shadow: 0 10px 35px rgba(0, 0, 0, .7); }
.world-page .hero-subtitle { color: #f3c967; }
.world-page .section-jump { margin-top: -35px; position: relative; z-index: 3; border-color: rgba(242, 198, 103, .42); }
.world-page .fit-grid { gap: 12px; border: 0; }
.world-page .fit-grid article { border: 1px solid rgba(242, 198, 103, .22); background: linear-gradient(145deg, rgba(28, 57, 36, .95), rgba(9, 25, 15, .96)); box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.world-page .fit-grid article:nth-child(2n) { transform: translateY(18px); }
.world-page .feature-story { overflow: hidden; border-color: rgba(242, 198, 103, .34); background: #0d1f15; }
.world-page .feature-image { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); }
.world-page .begin-section { background: radial-gradient(circle at 80% 0, rgba(105, 170, 85, .22), transparent 34%), linear-gradient(145deg, #13271b, #09140d); }

.fiction-page { --ink: #f4e8ce; --muted: #c7b99e; --deep: #11100d; --surface: #211d16; --surface-soft: #2c251b; --line: rgba(189, 151, 91, .29); --line-strong: rgba(220, 174, 96, .58); --gold: #d9a84e; --gold-deep: #80561d; --green: #879c74; background-color: #15120e; background-image: linear-gradient(rgba(35, 28, 19, .92), rgba(17, 16, 13, .96)), repeating-linear-gradient(0deg, transparent 0 23px, rgba(115, 89, 53, .14) 24px); }
.fiction-page .game-hero { min-height: 680px; width: min(1500px, calc(100% - 44px)); border: 10px solid #241d13; outline: 1px solid rgba(220, 174, 96, .35); box-shadow: 0 30px 90px rgba(0, 0, 0, .52), inset 0 0 0 1px rgba(255, 235, 190, .16); }
.fiction-page .fiction-hero .hero-fade { background: linear-gradient(90deg, rgba(16, 13, 9, .99) 0, rgba(16, 13, 9, .9) 42%, rgba(16, 13, 9, .3) 77%), linear-gradient(0deg, rgba(16, 13, 9, .8), transparent 58%); }
.fiction-page .game-hero-copy { min-height: 660px; }
.fiction-page .game-hero-copy h1 { color: #f2d596; text-shadow: 0 8px 26px rgba(0, 0, 0, .7); }
.fiction-page .game-stage { border: 8px solid #2b2115; outline: 1px solid #7c5b2c; }
.fiction-page .play-guide { border: 1px solid #6f522c; background: linear-gradient(155deg, #2b2419, #17130e); }
.fiction-page .materials-section { border-width: 8px; border-color: #2d2317; outline: 1px solid #70552e; background: radial-gradient(circle at 50% 25%, rgba(147, 105, 48, .14), transparent 35%), linear-gradient(145deg, #241f17, #15120e); }
.fiction-page .story-section { position: relative; }
.fiction-page .story-section::before { position: absolute; top: -12px; left: 0; color: rgba(218, 171, 86, .2); content: "OPEN MAILBOX"; font: 700 clamp(2rem, 6vw, 6rem) monospace; letter-spacing: .04em; transform: translateY(-70%); }
.fiction-page .gallery-item { border: 8px solid #2d2317; outline: 1px solid #70552e; }

/* Light mode is individually art directed rather than inverted. */
[data-theme="light"] .library-v2 { --ink: #1f271f; --muted: #58645a; --deep: #efe9d8; --surface: #fffaf0; --surface-soft: #e7ddc8; --line: rgba(61, 74, 62, .2); --line-strong: rgba(128, 88, 28, .48); --gold: #8b5b16; --gold-deep: #68400f; --green: #2c6a45; background: #efe9d8; }
[data-theme="light"] .library-hero-v2 { background: linear-gradient(90deg, rgba(250, 245, 229, .98) 0%, rgba(250, 245, 229, .89) 46%, rgba(250, 245, 229, .14) 78%), url("assets/beyond-zork-hero.webp") center 40% / cover; }
[data-theme="light"] .library-hero-v2::before { background: linear-gradient(0deg, #efe9d8 0, transparent 28%); }
[data-theme="light"] .library-hero-v2 .library-intro h1 { color: #213227; text-shadow: none; }
[data-theme="light"] .library-hero-v2 .library-intro > p:last-of-type { color: #47564c; }
[data-theme="light"] .hero-search { border-color: rgba(90, 68, 30, .42); background: rgba(255, 252, 240, .94); box-shadow: 0 18px 50px rgba(72, 61, 39, .15); }
[data-theme="light"] .hero-search input { color: #1d2a21; }
[data-theme="light"] .hero-search input::placeholder { color: #657168; }
[data-theme="light"] .catalog-filters { background: #fffaf0; box-shadow: 0 22px 65px rgba(70, 57, 34, .13); }
[data-theme="light"] .catalog-filters label { color: #4e5b52; }
[data-theme="light"] .catalog-filters label:has(input:checked) { color: #16231a; }
[data-theme="light"] .catalog-filters legend { color: #80561d; }
[data-theme="light"] .catalog-v2 .game-card { box-shadow: 0 18px 42px rgba(64, 50, 30, .17); }
[data-theme="light"] .world-page { --ink: #203126; --muted: #526257; --deep: #eef1e2; --surface: #fffdf1; --surface-soft: #dfe7d3; --line: rgba(46, 79, 52, .21); --line-strong: rgba(116, 83, 27, .48); --gold: #936216; --gold-deep: #68400f; --green: #2f7248; background: radial-gradient(circle at 15% 34%, rgba(126, 166, 108, .19), transparent 28%), linear-gradient(145deg, #f0f1e4, #e3eadc 50%, #f7f1dc); }
[data-theme="light"] .world-page .fit-grid article { border-color: rgba(74, 99, 62, .25); background: linear-gradient(145deg, #fffdf0, #e7ecd9); box-shadow: 0 20px 45px rgba(51, 70, 45, .12); }
[data-theme="light"] .world-page .feature-story { background: #fffdf2; }
[data-theme="light"] .world-page .begin-section { background: radial-gradient(circle at 80% 0, rgba(105, 170, 85, .19), transparent 34%), linear-gradient(145deg, #f8f4df, #e6ecdc); }
[data-theme="light"] .fiction-page { --ink: #2d261b; --muted: #685e4e; --deep: #eee1c8; --surface: #fff7e8; --surface-soft: #e8d7b8; --line: rgba(100, 72, 37, .25); --line-strong: rgba(124, 80, 29, .51); --gold: #85581b; --gold-deep: #5f3a0e; --green: #5c6e4e; background-color: #eee1c8; background-image: linear-gradient(rgba(247, 235, 211, .84), rgba(238, 225, 200, .9)), repeating-linear-gradient(0deg, transparent 0 23px, rgba(115, 89, 53, .16) 24px); }
[data-theme="light"] .fiction-page .play-guide, [data-theme="light"] .fiction-page .materials-section { background: linear-gradient(145deg, #fff8e8, #ead9b9); }

@media (max-width: 1100px) {
  .catalog-v2 .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .brand-image { width: 78px; }
  .brand-image img { width: 68px; height: 68px; }
  .site-header { grid-template-columns: 1fr auto auto; }
  .mobile-menu { display: block; }
  .library-hero-v2 { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-feature { width: min(430px, 100%); min-height: 300px; transform: translateY(30px); }
  .catalog-shell { grid-template-columns: 1fr; }
  .catalog-filters { position: static; }
  .catalog-filters fieldset { grid-template-columns: repeat(2, 1fr); }
  .filter-heading, .catalog-filters legend { grid-column: 1 / -1; }
  .details-v2[open] { grid-template-columns: 1fr; }
  .details-v2 .dialog-art { min-height: 260px; max-height: 330px; }
  .world-page .world-hero, .fiction-page .fiction-hero { width: calc(100% - 22px); border-radius: 0; }
  .world-page .fit-grid article:nth-child(2n) { transform: none; }
  .world-page .feature-image { clip-path: none; }
}
@media (max-width: 560px) {
  .library-hero-v2 { min-height: 650px; }
  .hero-feature { min-height: 260px; }
  .discovery-section, .catalog-shell { width: calc(100% - 22px); }
  .discovery-grid, .catalog-v2 .game-grid { grid-template-columns: 1fr; }
  .discovery-card { min-height: 180px; }
  .catalog-v2 .game-card.featured { grid-column: auto; }
  .catalog-filters fieldset { grid-template-columns: 1fr; }
  .catalog-filters legend { grid-column: 1; }
}

/* Restored owner approved All Games composition */
.restored-brand { width: auto; height: 58px; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 700 1.35rem var(--serif); }
.restored-brand img { width: 54px; height: 54px; flex: 0 0 54px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .38)); }
.restored-hero { position: relative; min-height: 220px; display: block; padding: 24px clamp(24px, 4vw, 76px) 34px; background: linear-gradient(90deg, color-mix(in srgb, var(--surface) 96%, transparent) 0%, color-mix(in srgb, var(--deep) 78%, transparent) 62%, color-mix(in srgb, var(--deep) 48%, transparent)), url("assets/beyond-zork-hero.webp") center 42% / cover; }
.restored-hero .library-intro { width: min(1880px, 100%); max-width: none; margin-inline: auto; }
.restored-hero .library-intro h1 { max-width: 1040px; font-size: clamp(2.8rem, 4.6vw, 4.15rem); line-height: .94; }
.restored-hero .library-intro > p:last-child { max-width: 760px; margin-top: 8px; font-size: 1rem; line-height: 1.42; }
[data-theme="light"] .restored-hero { background: linear-gradient(90deg, rgba(251, 247, 237, .98) 0%, rgba(238, 233, 221, .88) 62%, rgba(238, 233, 221, .52)), url("assets/beyond-zork-hero.webp") center 42% / cover; }

.restored-tools { width: min(1880px, calc(100% - 64px)); grid-template-columns: minmax(280px, 350px) minmax(0, 1fr); align-items: stretch; gap: 12px 24px; margin-top: 16px; padding: 16px 20px 12px; border-color: var(--line-strong); box-shadow: 0 18px 46px rgba(0, 0, 0, .16); }
.restored-tools fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.restored-tools .search-box { align-self: stretch; }
.restored-tools .search-box input { min-height: 58px; padding-inline: 16px; font-size: .9rem; }
.restored-tools .filter-row { flex-wrap: wrap; overflow: visible; }
.restored-tools .filter { position: relative; min-height: 42px; display: inline-flex; align-items: center; padding: 0; overflow: hidden; cursor: pointer; }
.restored-tools .filter input { position: absolute; opacity: 0; pointer-events: none; }
.restored-tools .filter span { min-height: 42px; display: grid; place-items: center; padding: 0 12px; }
.restored-tools .filter:has(input:checked) { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, var(--surface)); color: var(--ink); }
.restored-tools .type-selector { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.restored-tools .type-selector .filter { position: relative; min-width: 0; min-height: 58px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 7px 11px; overflow: hidden; border-color: color-mix(in srgb, var(--line) 82%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--surface-soft) 58%, var(--surface)), var(--surface)); box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 7px 18px rgba(0, 0, 0, .1); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.restored-tools .type-selector .filter:hover { border-color: color-mix(in srgb, var(--type-accent, var(--gold)) 58%, var(--line)); box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 12px 26px rgba(0, 0, 0, .18); transform: translateY(-2px); }
.restored-tools .type-selector .filter::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--type-accent, var(--gold)); content: ""; opacity: .55; transform: scaleX(.3); transform-origin: left; transition: transform .2s ease, opacity .2s ease; }
.restored-tools .type-selector .filter:hover::after, .restored-tools .type-selector .filter:has(input:checked)::after { opacity: 1; transform: scaleX(1); }
.restored-tools .type-selector .filter:has(input:checked) { border-color: color-mix(in srgb, var(--type-accent, var(--gold)) 72%, var(--line)); background: linear-gradient(145deg, color-mix(in srgb, var(--type-accent, var(--gold)) 15%, var(--surface)), var(--surface)); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.restored-tools .type-selector .filter > .type-mark { min-height: 0; display: grid; place-items: center; align-self: center; padding: 0; color: var(--type-accent, var(--gold)); font: 700 1.12rem var(--serif); }
.restored-tools .type-selector .filter > .type-copy { min-width: 0; min-height: 0; display: grid; align-content: center; gap: 2px; padding: 0; }
.restored-tools .type-copy strong, .restored-tools .type-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.restored-tools .type-copy strong { color: var(--ink); font-size: .8rem; }
.restored-tools .type-copy small { color: var(--muted); font-size: .63rem; }
.restored-tools .type-all { --type-accent: #7c2a8a; }
.restored-tools .type-servers { --type-accent: #7dd3fc; }
.restored-tools .type-fiction { --type-accent: #a78bfa; }
.restored-tools .type-classic { --type-accent: #69bde6; }
.restored-tools .type-connected { --type-accent: #69d3c6; }
.restored-tools .type-originals { --type-accent: #d783b7; }
.play-filter-row { grid-column: 1 / -1; min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px 22px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.play-filter-row > span { color: var(--gold); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.play-filter-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.play-filter-row input { accent-color: var(--gold); }
.play-filter-row button { margin-left: auto; padding: 5px 0; border: 0; background: transparent; color: var(--gold); cursor: pointer; }

.restored-path { width: min(1880px, calc(100% - 64px)); min-height: 76px; display: grid; grid-template-columns: minmax(330px, .72fr) minmax(0, 1.5fr); align-items: center; gap: 28px; margin-top: 14px; padding: 12px 20px; }
.restored-path .kicker { margin-bottom: 4px; }
.restored-path h2 { font-size: clamp(1.45rem, 1.8vw, 1.9rem); }
.mood-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.restored-path .mood-row button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-soft) 54%, transparent); color: var(--muted); font-size: .76rem; font-weight: 700; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.restored-path .mood-row button:hover, .restored-path .mood-row button:focus-visible { transform: translateY(-2px); }
.restored-path .mood-row button:hover, .restored-path .mood-row button:focus-visible, .restored-path .mood-row button.active { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); color: var(--ink); }
.restored-path .mood-row .surprise-compact { border-color: var(--gold); color: var(--gold); }

.restored-catalog { width: min(1880px, calc(100% - 64px)); margin-top: 18px; }
.restored-catalog .section-heading { min-height: 58px; align-items: center; margin-bottom: 10px; }
.restored-catalog .section-heading .kicker { margin-bottom: 2px; }
.restored-catalog .section-heading h2 { font-size: clamp(2rem, 2.8vw, 3rem); }
.restored-catalog .game-grid { gap: 20px; }
.restored-catalog .game-card { min-height: 460px; }
.restored-catalog .active-filter-summary { margin: -5px 0 14px; }
.game-group { margin-top: 58px; scroll-margin-top: 95px; }
.game-group:first-of-type { margin-top: 12px; }
.group-heading { display: grid; grid-template-columns: minmax(290px, auto) minmax(300px, 1fr) auto; align-items: center; gap: 32px; min-height: 72px; margin-bottom: 12px; padding: 10px 16px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--surface-soft) 82%, var(--surface)), color-mix(in srgb, var(--surface-soft) 28%, transparent) 65%, transparent); }
.group-heading > div { display: flex; align-items: center; gap: 13px; }
.group-heading .kicker { margin: 0 0 2px; }
.group-heading h3 { margin: 0; font: 600 clamp(1.75rem, 2.2vw, 2.45rem)/1 var(--serif); }
.group-heading > p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.group-heading > a { color: var(--gold); font-size: .76rem; text-decoration: none; white-space: nowrap; }
#interactive-fiction .game-card, #uorealms-originals .game-card, #classic-dos .game-card, #bbs-and-muds .game-card { grid-column: span 2; }

@media (max-width: 1500px) {
  .restored-hero { min-height: 160px; padding-top: 14px; padding-bottom: 18px; }
  .restored-tools .type-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .restored-tools { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 8px 20px; margin-top: 10px; padding-top: 10px; padding-bottom: 8px; }
  .restored-tools .type-selector { gap: 7px; }
  .restored-tools .type-selector .filter { min-height: 50px; padding-block: 5px; }
  .restored-tools .search-box input { min-height: 52px; }
  .play-filter-row { min-height: 28px; padding-top: 6px; }
  .restored-path { min-height: 56px; grid-template-columns: minmax(400px, .72fr) minmax(0, 1.5fr); margin-top: 9px; padding-block: 6px; }
  .restored-path h2 { font-size: 1.4rem; }
  .restored-path .mood-row button { min-height: 36px; padding-inline: 11px; }
  .restored-catalog { margin-top: 10px; }
  .restored-catalog .section-heading { min-height: 38px; margin-bottom: 2px; }
  .restored-catalog .section-heading h2 { font-size: clamp(1.8rem, 2.6vw, 2.35rem); }
  .group-heading { min-height: 60px; margin-bottom: 8px; padding-block: 7px; }
  .restored-catalog .game-card { min-height: 410px; }
}
@media (max-width: 1100px) {
  .restored-tools { grid-template-columns: 1fr; }
  .restored-path { grid-template-columns: 1fr; }
  .mood-row { justify-content: flex-start; }
  .group-heading { grid-template-columns: 1fr auto; }
  .group-heading > p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 820px) {
  .restored-brand { height: 52px; }
  .restored-brand img { width: 48px; height: 48px; flex-basis: 48px; }
  .restored-tools, .restored-path, .restored-catalog { width: calc(100% - 36px); }
  .restored-tools { grid-template-columns: 1fr; }
  .restored-tools .filter-row { flex-wrap: wrap; }
  .restored-tools .type-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-filter-row button { margin-left: 0; }
  .group-heading { grid-template-columns: 1fr; align-items: start; }
  .group-heading > p { grid-column: 1; grid-row: auto; }
  .group-heading > a { display: none; }
}
@media (max-width: 560px) {
  .restored-brand span { display: none; }
  .restored-hero { min-height: 350px; padding: 48px 18px 58px; }
  .restored-hero .library-intro h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .restored-tools, .restored-path, .restored-catalog { width: calc(100% - 22px); }
  .restored-tools .filter { flex: 1 1 calc(50% - 7px); }
  .restored-path { align-items: flex-start; }
  .mood-row { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .restored-path .mood-row button { width: 100%; }
  .restored-tools .type-selector { grid-template-columns: 1fr; }
  .restored-tools .type-selector .filter { min-height: 52px; }
  .game-group .game-grid { grid-template-columns: 1fr; }
  #interactive-fiction .game-card, #uorealms-originals .game-card, #classic-dos .game-card, #bbs-and-muds .game-card { grid-column: auto; }
}

/* All Games expandable visual direction */
body.library-restored {
  --deep: #05070f;
  --surface: #0b1822;
  --surface-soft: #1a1f29;
  --ink: #f8fafc;
  --muted: #9cabb9;
  --line: rgba(51, 68, 89, .68);
  --line-strong: rgba(124, 42, 138, .78);
  --gold: #7c2a8a;
  --gold-deep: #61216c;
  background:
    radial-gradient(circle at 12% 12%, rgba(125, 211, 252, .1), transparent 31%),
    radial-gradient(circle at 88% 32%, rgba(124, 42, 138, .15), transparent 30%),
    var(--deep);
}

[data-theme="light"] body.library-restored {
  --deep: #edf3f8;
  --surface: #ffffff;
  --surface-soft: #dfe8f1;
  --ink: #182635;
  --muted: #586b7c;
  --line: rgba(51, 68, 89, .22);
  --line-strong: rgba(124, 42, 138, .52);
  --gold: #7c2a8a;
  --gold-deep: #61216c;
  background:
    radial-gradient(circle at 10% 10%, rgba(125, 211, 252, .18), transparent 31%),
    radial-gradient(circle at 92% 34%, rgba(124, 42, 138, .1), transparent 30%),
    var(--deep);
}

[data-theme="light"] body.library-restored .restored-hero {
  background:
    linear-gradient(90deg, rgba(248, 250, 252, .98) 0%, rgba(237, 243, 248, .92) 54%, rgba(237, 243, 248, .42)),
    url("assets/beyond-zork-hero.webp") center 42% / cover;
}

[data-theme="light"] body.library-restored .restored-hero .library-intro h1 { color: #182635; text-shadow: none; }
[data-theme="light"] body.library-restored .restored-hero .library-intro > p:last-child { color: #465b6e; }

.library-restored .skip-link { color: #fff; }
.library-restored .card-wash { background: linear-gradient(0deg, rgba(5, 7, 15, .98) 0, rgba(11, 16, 32, .76) 38%, rgba(11, 16, 32, .08) 74%); }
.library-restored .card-copy { color: #f8fafc; }
.library-restored .card-copy p { color: #c9d4e1; }
.library-restored .game-group .card-type { color: var(--group-accent); }
.library-restored .primary-action,
.library-restored .secondary-action,
.library-restored .card-actions button {
  border-color: #7c2a8a;
  background: #7c2a8a;
  color: #fff;
}
.library-restored .card-actions button { background: rgba(5, 7, 15, .78); color: #f8fafc; }
.library-restored .details-v2 {
  border-color: rgba(124, 42, 138, .72);
  background: #0b1020;
  color: #f8fafc;
}
.library-restored .details-v2 .dialog-content > p { color: #b6c3d4; }
.library-restored .details-v2 .card-type { color: #a78bfa; }

.library-restored .restored-hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding-block: 30px;
  border-bottom-color: var(--line-strong);
}

.library-restored .restored-hero .library-intro h1 { max-width: 1500px; font-size: clamp(3.2rem, 4.2vw, 5rem); }
.library-restored .restored-hero .library-intro > p:last-child { max-width: 790px; font-size: 1.05rem; line-height: 1.6; }

.library-restored .restored-tools {
  grid-template-columns: minmax(360px, 1.05fr) minmax(620px, 1.4fr);
  align-items: end;
  gap: 26px;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 72%, var(--surface)), var(--surface));
  box-shadow: 0 24px 65px rgba(0, 0, 0, .22);
}

.library-restored .restored-tools .search-box { gap: 10px; }
.library-restored .restored-tools .search-box input {
  min-height: 64px;
  border-color: color-mix(in srgb, var(--line-strong) 62%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--deep) 82%, transparent);
  font-size: 1rem;
}

.library-restored .play-filter-row {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-column: auto;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.library-restored .play-filter-row legend {
  padding: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.library-restored .filter-options {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--deep) 48%, transparent);
}

.library-restored .filter-options label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.library-restored .filter-options label:has(input:checked) {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--gold) 13%, var(--surface));
  color: var(--ink);
}

.library-restored .filter-options input { accent-color: var(--gold); }
.library-restored .filter-options button {
  min-height: 44px;
  margin-left: auto;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
}

.library-restored .restored-path {
  min-height: 92px;
  margin-top: 22px;
  padding: 20px 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--gold) 15%, transparent), transparent 34%),
    linear-gradient(115deg, color-mix(in srgb, var(--surface-soft) 82%, var(--surface)), var(--surface));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .13);
}

.library-restored .restored-path h2 { font-size: clamp(1.8rem, 2.2vw, 2.65rem); }
.library-restored .restored-path .mood-row button {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 999px;
  font-size: .8rem;
}

.library-restored .restored-catalog { margin-top: 30px; }
.library-restored .restored-catalog .section-heading { min-height: auto; margin-bottom: 24px; }
.library-restored .restored-catalog .section-heading h2 { font-size: clamp(2.7rem, 4vw, 4.7rem); }

.library-restored .game-group {
  --group-accent: #7dd3fc;
  --group-art: url("assets/paths-of-virtue.webp");
  margin-top: 30px;
  overflow: clip;
  border: 1px solid color-mix(in srgb, var(--group-accent) 42%, var(--line));
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 94%, var(--group-accent));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .2);
}

.library-restored .game-group:first-of-type { margin-top: 0; }
.library-restored .group-fiction { --group-accent: #a78bfa; --group-art: url("assets/beyond-zork-hero.webp"); }
.library-restored .group-classic { --group-accent: #7dd3fc; --group-art: url("assets/telengard.webp"); }
.library-restored .group-connected { --group-accent: #69d3c6; --group-art: url("assets/dungeonsmud.webp"); }
.library-restored .group-word { --group-accent: #d783b7; --group-art: url("assets/tale-twisters.avif"); }
.library-restored .group-mystical { --group-accent: #b78ae6; --group-art: url("assets/oracle.webp"); }

.library-restored .group-heading {
  position: relative;
  isolation: isolate;
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(340px, 1.1fr) auto;
  align-items: center;
  gap: 38px;
  margin: 0;
  padding: 26px 30px;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.library-restored .group-heading::-webkit-details-marker { display: none; }
.library-restored .group-heading::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--group-art) center 42% / cover;
  content: "";
  transform: scale(1.01);
  transition: transform .45s ease;
}

.library-restored .group-heading::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, .98) 0%, rgba(11, 16, 32, .93) 44%, rgba(11, 16, 32, .68) 72%, rgba(11, 16, 32, .38)),
    linear-gradient(0deg, rgba(5, 7, 15, .74), transparent 65%);
  content: "";
}

.library-restored .game-group[open] > .group-heading { border-radius: 20px 20px 0 0; }
.library-restored .group-heading:hover::before { transform: scale(1.045); }
.library-restored .group-heading:focus-visible { outline: 3px solid var(--group-accent); outline-offset: -4px; }
.library-restored .group-heading .kicker { color: var(--group-accent); }
.library-restored .group-heading h3 { color: #f8fafc; font-size: clamp(2rem, 2.8vw, 3.25rem); }
.library-restored .group-heading > p { max-width: 650px; color: #b6c3d4; font-size: 1rem; line-height: 1.65; }
.library-restored .group-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 0 17px;
  border: 1px solid color-mix(in srgb, var(--group-accent) 70%, transparent);
  border-radius: 999px;
  background: rgba(5, 7, 15, .68);
  color: var(--group-accent);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background .25s ease;
}

.library-restored .group-action .when-open { display: none; }
.library-restored .game-group[open] .group-action { background: color-mix(in srgb, var(--group-accent) 18%, rgba(5, 7, 15, .74)); }
.library-restored .game-group[open] .group-action .when-closed { display: none; }
.library-restored .game-group[open] .group-action .when-open { display: inline; }
.library-restored .game-group > .game-grid {
  padding: 24px;
  border-top: 1px solid color-mix(in srgb, var(--group-accent) 34%, var(--line));
  background:
    radial-gradient(circle at 10% 0, color-mix(in srgb, var(--group-accent) 9%, transparent), transparent 34%),
    var(--surface);
}

.library-restored .restored-catalog .game-card {
  min-height: 470px;
  border-color: color-mix(in srgb, var(--group-accent) 32%, var(--line));
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
}

.library-restored .dialog-close { width: auto; min-width: 70px; padding: 0 14px; border-radius: 999px; font-size: .78rem; font-weight: 800; }

[data-theme="light"] body.library-restored .restored-tools,
[data-theme="light"] body.library-restored .restored-path,
[data-theme="light"] body.library-restored .game-group { box-shadow: 0 20px 55px rgba(37, 55, 74, .13); }
[data-theme="light"] body.library-restored .restored-tools .search-box input,
[data-theme="light"] body.library-restored .filter-options { background: rgba(248, 250, 252, .92); }

@media (max-width: 1500px) {
  .library-restored .restored-hero { min-height: 165px; padding-block: 18px; }
  .library-restored .restored-tools { grid-template-columns: minmax(300px, .8fr) minmax(0, 1.45fr); }
  .library-restored .filter-options { flex-wrap: wrap; }
  .library-restored .filter-options button { margin-left: 0; }
  .library-restored .restored-path { min-height: 78px; grid-template-columns: minmax(460px, .72fr) minmax(0, 1.5fr); padding-block: 14px; }
  .library-restored .restored-path h2 { font-size: 1.55rem; }
  .library-restored .restored-catalog { margin-top: 24px; }
  .library-restored .group-heading { min-height: 135px; grid-template-columns: minmax(280px, .8fr) minmax(280px, 1fr) auto; gap: 24px; padding: 22px 24px; }
}

@media (max-width: 1050px) {
  .library-restored .restored-tools { grid-template-columns: 1fr; }
  .library-restored .restored-path { grid-template-columns: 1fr; }
  .library-restored .mood-row { justify-content: flex-start; }
  .library-restored .group-heading { grid-template-columns: 1fr auto; }
  .library-restored .group-heading > p { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .library-restored .restored-hero { min-height: 380px; }
  .library-restored .restored-tools,
  .library-restored .restored-path,
  .library-restored .restored-catalog { width: calc(100% - 24px); }
  .library-restored .restored-tools { gap: 20px; padding: 18px; border-radius: 14px; }
  .library-restored .filter-options { align-items: stretch; display: grid; grid-template-columns: repeat(2, 1fr); }
  .library-restored .filter-options label { justify-content: center; padding-inline: 8px; }
  .library-restored .filter-options button { grid-column: 1 / -1; }
  .library-restored .restored-path { padding: 18px; border-radius: 14px; }
  .library-restored .restored-path .mood-row { grid-template-columns: 1fr 1fr; }
  .library-restored .group-heading { min-height: 180px; grid-template-columns: 1fr auto; gap: 16px; padding: 22px 18px; border-radius: 14px; }
  .library-restored .game-group { border-radius: 14px; }
  .library-restored .game-group[open] > .group-heading { border-radius: 14px 14px 0 0; }
  .library-restored .group-heading > div { align-items: flex-start; }
  .library-restored .group-heading > p { font-size: .88rem; }
  .library-restored .group-action { min-height: 42px; padding-inline: 13px; }
  .library-restored .game-group > .game-grid { padding: 12px; }
  .library-restored .restored-catalog .game-card { min-height: 430px; }
}

/* Approved Crossroads library revision, September 23, 2026. */
.crossroads-library {
  background:
    linear-gradient(rgba(5, 9, 20, .9), rgba(5, 9, 20, .96)),
    url("assets/crossroads-fantasy.jpg") center top / cover fixed;
}

.crossroads-library .site-header {
  background: rgba(5, 9, 20, .9);
  border-bottom-color: rgba(143, 119, 187, .34);
}

.crossroads-library .restored-hero {
  min-height: 160px;
  padding: 20px clamp(24px, 5vw, 86px);
  background:
    linear-gradient(90deg, rgba(5, 9, 20, .96) 0%, rgba(5, 9, 20, .68) 47%, rgba(5, 9, 20, .06) 84%),
    url("assets/crossroads-fantasy.jpg") center 38% / cover;
}

.crossroads-library .restored-hero .library-intro,
.crossroads-library .restored-tools,
.crossroads-library .restored-path,
.crossroads-library .restored-catalog {
  width: min(1500px, calc(100% - 64px));
}

.crossroads-library .restored-hero .library-intro { margin-inline: auto; }
.crossroads-library .restored-hero .library-intro h1 {
  max-width: 920px;
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -.025em;
}

.crossroads-library .restored-hero .library-intro > p:last-child {
  max-width: 720px;
  color: #c2ccda;
  font-size: 1rem;
  line-height: 1.7;
}

.crossroads-library .restored-tools {
  grid-template-columns: minmax(320px, .8fr) minmax(620px, 1.4fr);
  gap: 34px;
  margin-top: 16px;
  padding: 14px 18px;
  border-color: rgba(109, 132, 160, .38);
  border-radius: 6px;
  background: rgba(10, 20, 34, .94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.crossroads-library .restored-tools .search-box input,
.crossroads-library .filter-options {
  border-radius: 3px;
  background: rgba(4, 10, 22, .82);
}

.crossroads-library .restored-tools .search-box input { min-height: 48px; }

.crossroads-library .filter-options {
  min-height: 48px;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.crossroads-library .filter-options label {
  min-height: 48px;
  flex: 1 1 auto;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid rgba(109, 132, 160, .25);
  border-radius: 0;
}

.crossroads-library .filter-options label:has(input:checked) {
  border-color: rgba(109, 132, 160, .25);
  background: #28304f;
  box-shadow: inset 0 -3px #a28bc7;
}

.crossroads-library .filter-options button {
  min-height: 48px;
  padding-inline: 18px;
  color: #c6b6df;
}

.crossroads-library .restored-path {
  min-height: auto;
  display: block;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  border-color: rgba(109, 132, 160, .38);
  background: rgba(10, 20, 34, .92);
}

.crossroads-library .restored-path h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.crossroads-library .mood-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.crossroads-library .restored-path .mood-row button {
  position: relative;
  isolation: isolate;
  min-height: 76px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 4px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(151, 169, 191, .35);
  border-radius: 3px;
  background-position: center;
  background-size: cover;
  color: #f8fafc;
  text-align: left;
  box-shadow: inset 0 -85px 70px rgba(3, 7, 16, .9);
}

.crossroads-library .restored-path .mood-row button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 8, 18, .96), rgba(4, 8, 18, .12));
  content: "";
}

.crossroads-library .restored-path .mood-row button:hover,
.crossroads-library .restored-path .mood-row button:focus-visible,
.crossroads-library .restored-path .mood-row button.active {
  border-color: #b19bd0;
  background-color: transparent;
  color: #fff;
  transform: translateY(-3px);
}

.crossroads-library .mood-row button strong { font: 600 1.15rem var(--serif); }
.crossroads-library .mood-row button span { color: #c7d2e0; font-size: .72rem; line-height: 1.4; }
.crossroads-library .mood-explore { background-image: url("assets/paths-of-virtue.webp"); }
.crossroads-library .mood-mystery { background-image: url("assets/beyond-zork-hero.webp"); }
.crossroads-library .mood-together { background-image: url("assets/tale-twisters.avif"); }
.crossroads-library .mood-quick { background-image: url("assets/telengard.webp"); }
.crossroads-library .surprise-compact { background-image: url("assets/oracle.webp"); }

.crossroads-library .restored-catalog { margin-top: 20px; }
.crossroads-library .restored-catalog .section-heading { margin-bottom: 12px; }
.crossroads-library .restored-catalog .section-heading h2 {
  font-size: clamp(2.25rem, 3vw, 3.35rem);
  line-height: 1.05;
}

.crossroads-library .game-group {
  margin-top: 38px;
  border-radius: 6px;
  background: rgba(9, 18, 31, .96);
}

.crossroads-library .group-heading,
.crossroads-library .game-group[open] > .group-heading {
  min-height: 105px;
  grid-template-columns: minmax(300px, .7fr) minmax(340px, 1.1fr) auto;
  gap: 44px;
  padding: 17px 24px;
  border-radius: 5px;
}

.crossroads-library .group-heading h3 { font-size: clamp(2rem, 2.7vw, 3rem); }
.crossroads-library .group-heading > p { color: #c2ccda; line-height: 1.7; }
.crossroads-library .group-action {
  min-width: 112px;
  border-radius: 2px;
  background: rgba(5, 9, 20, .82);
}

.crossroads-library .game-group > .game-grid {
  gap: 26px;
  padding: 28px;
  background: rgba(7, 14, 26, .96);
}

.crossroads-library .restored-catalog .game-card {
  min-height: 500px;
  border-radius: 3px;
}

.crossroads-library .active-filter-summary {
  padding: 12px 16px;
  border-left: 3px solid #9b83be;
  background: rgba(13, 24, 40, .9);
  color: #d5cae5;
}

.crossroads-library .details-v2 {
  width: min(1120px, calc(100% - 48px));
  max-width: 1120px;
  max-height: min(780px, calc(100vh - 48px));
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  border-color: rgba(162, 139, 199, .7);
  border-radius: 4px;
  background: #0b1424;
}

.crossroads-library .details-v2 .dialog-art {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050914;
}

.crossroads-library .dialog-art-backdrop {
  position: absolute;
  inset: -36px;
  width: calc(100% + 72px);
  height: calc(100% + 72px);
  object-fit: cover;
  opacity: .32;
  filter: blur(26px) saturate(.7);
  transform: scale(1.08);
}

.crossroads-library .details-v2 .dialog-art-primary {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: var(--media-position, center);
}

.crossroads-library .details-v2 .dialog-art.media-contain .dialog-art-primary {
  width: calc(100% - 64px);
  height: calc(100% - 64px);
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55));
}

.crossroads-library .details-v2 .dialog-content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.crossroads-library .details-v2 .dialog-art-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050914;
}

.crossroads-library .details-v2 .dialog-content h2 {
  margin: 10px 0 18px;
  font-size: clamp(2.4rem, 3.4vw, 3.8rem);
  line-height: .98;
  overflow-wrap: normal;
  word-break: normal;
}

.crossroads-library .details-v2 .quick-facts {
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid rgba(132, 153, 180, .34);
  border-left: 1px solid rgba(132, 153, 180, .34);
}

.crossroads-library .details-v2 .quick-facts div {
  min-height: 92px;
  padding: 16px;
  border: 0;
  border-right: 1px solid rgba(132, 153, 180, .34);
  border-bottom: 1px solid rgba(132, 153, 180, .34);
}

.crossroads-library .dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crossroads-library .dialog-actions .secondary-action { background: transparent; color: #e5ebf3; }
.crossroads-library .dialog-close { border-radius: 2px; }

.mobile-games-gateway { display: none; }

[data-theme="light"] body.crossroads-library {
  background:
    linear-gradient(rgba(238, 243, 248, .9), rgba(238, 243, 248, .97)),
    url("assets/crossroads-fantasy.jpg") center top / cover fixed;
}

[data-theme="light"] body.crossroads-library .site-header { background: rgba(246, 249, 252, .94); }
[data-theme="light"] body.crossroads-library .restored-hero {
  background:
    linear-gradient(90deg, rgba(246, 249, 252, .96) 0%, rgba(238, 243, 248, .76) 50%, rgba(238, 243, 248, .16) 84%),
    url("assets/crossroads-fantasy.jpg") center 38% / cover;
}
[data-theme="light"] body.crossroads-library .restored-tools,
[data-theme="light"] body.crossroads-library .restored-path { background: rgba(250, 252, 254, .96); }
[data-theme="light"] body.crossroads-library .filter-options { background: #f4f7fa; }
[data-theme="light"] body.crossroads-library .filter-options label:has(input:checked) { background: #e1d9ec; box-shadow: inset 0 -3px #765592; }
[data-theme="light"] body.crossroads-library .game-group { background: #f8fafc; }
[data-theme="light"] body.crossroads-library .game-group > .game-grid { background: #edf2f7; }
[data-theme="light"] body.crossroads-library .active-filter-summary { background: #f3eef7; color: #5e3d78; }

@media (max-width: 1280px) {
  .crossroads-library .restored-hero .library-intro,
  .crossroads-library .restored-tools,
  .crossroads-library .restored-path,
  .crossroads-library .restored-catalog { width: min(1120px, calc(100% - 44px)); }
  .crossroads-library .group-heading { grid-template-columns: minmax(260px, .8fr) minmax(300px, 1fr) auto; gap: 24px; }
  .crossroads-library .details-v2 { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); }
}

@media (max-width: 980px) and (min-width: 701px) {
  .crossroads-library .restored-hero .library-intro,
  .crossroads-library .restored-tools,
  .crossroads-library .restored-path,
  .crossroads-library .restored-catalog { width: calc(100% - 36px); }
  .crossroads-library .restored-tools { grid-template-columns: 1fr; gap: 22px; }
  .crossroads-library .mood-row { grid-template-columns: repeat(2, 1fr); }
  .crossroads-library .group-heading { grid-template-columns: 1fr auto; }
  .crossroads-library .group-heading > p { grid-column: 1 / -1; }
  .crossroads-library .details-v2[open] { grid-template-columns: 1fr; }
  .crossroads-library .details-v2 .dialog-art { min-height: 360px; max-height: 360px; }
  .crossroads-library .details-v2 .dialog-art-primary { max-height: 360px; }
  .crossroads-library .details-v2 .dialog-content { padding: 36px; }
}

@media (max-width: 700px) {
  .crossroads-library #game-library { display: none; }
  .crossroads-library .site-nav,
  .crossroads-library .mobile-menu,
  .crossroads-library .theme-toggle,
  .crossroads-library .site-footer { display: none; }
  .crossroads-library .site-header { position: relative; grid-template-columns: 1fr; justify-items: center; }
  .crossroads-library .restored-brand { height: 64px; }
  .crossroads-library .details-v2 { display: none; }
  .mobile-games-gateway {
    min-height: calc(100vh - 142px);
    display: block;
    padding: 52px 18px 120px;
    background:
      linear-gradient(rgba(5, 9, 20, .44), rgba(5, 9, 20, .96) 58%),
      url("assets/crossroads-fantasy.jpg") 68% top / auto 640px no-repeat;
  }
  .mobile-gateway-intro { max-width: 580px; margin: 0 auto 38px; }
  .mobile-gateway-intro h1 { margin: 8px 0 18px; color: #fff; font: 600 clamp(2.6rem, 13vw, 4.2rem)/.98 var(--serif); }
  .mobile-gateway-intro > p:last-child { color: #d3dce7; font-size: 1rem; line-height: 1.75; }
  .mobile-ready-games { max-width: 580px; display: grid; gap: 18px; margin: 0 auto; }
  .mobile-ready-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 24px;
    border: 1px solid rgba(185, 163, 213, .55);
    border-radius: 4px;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 -155px 100px rgba(4, 8, 18, .98), 0 20px 55px rgba(0, 0, 0, .35);
    color: #fff;
    text-decoration: none;
  }
  .mobile-ready-card span { color: #c6b6df; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-ready-card strong { margin-top: 6px; font: 600 2rem var(--serif); }
  .mobile-ready-card small { margin-top: 8px; color: #d3dce7; font-size: .88rem; line-height: 1.55; }
  .tale-mobile { background-image: url("assets/tale-twisters.avif"); }
  .bored-mobile { background-image: linear-gradient(140deg, rgba(44, 24, 72, .25), rgba(5, 9, 20, .12)), url("assets/genre-casual.png"); }
  .mobile-gateway-links { max-width: 580px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px auto 0; }
  .mobile-gateway-links a { padding: 16px 12px; border: 1px solid rgba(185, 163, 213, .5); background: rgba(7, 14, 26, .9); color: #eef2f7; text-align: center; text-decoration: none; }
  [data-theme="light"] .mobile-games-gateway { background: linear-gradient(rgba(244, 247, 250, .35), rgba(232, 238, 244, .96) 58%), url("assets/crossroads-fantasy.jpg") 68% top / auto 640px no-repeat; }
  [data-theme="light"] .mobile-gateway-intro h1 { color: #182635; }
  [data-theme="light"] .mobile-gateway-intro > p:last-child { color: #465b6e; }
}

/* 2026-09-23 approved All Games structural rebuild */
.crossroads-library .library-command-center {
  min-height: 370px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(142, 112, 169, .42);
  background:
    linear-gradient(90deg, rgba(4, 10, 20, .97) 0%, rgba(7, 14, 27, .88) 42%, rgba(7, 14, 27, .5) 72%, rgba(7, 14, 27, .34) 100%),
    linear-gradient(0deg, rgba(7, 14, 27, .48), rgba(7, 14, 27, .08)),
    url("assets/crossroads-fantasy.jpg") center 44% / cover;
}

.crossroads-library .command-center-inner {
  width: min(1500px, calc(100% - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(520px, 1.08fr);
  gap: clamp(52px, 6vw, 104px);
  align-items: center;
}

.crossroads-library .library-command-center .library-intro {
  width: auto;
  max-width: 680px;
  padding: 0;
}

.crossroads-library .library-command-center .library-intro h1 {
  max-width: 660px;
  margin: 5px 0 14px;
  color: #f4f0e8;
  font-size: clamp(3.2rem, 4.2vw, 4.35rem);
  line-height: .94;
  letter-spacing: -.045em;
}

.crossroads-library .library-command-center .library-intro > p:last-of-type {
  max-width: 610px;
  margin: 0 0 24px;
  color: #c9d4e1;
  font-size: 1.02rem;
  line-height: 1.65;
}

.crossroads-library .hero-game-search {
  display: block;
  max-width: 650px;
}

.crossroads-library .hero-game-search > span,
.crossroads-library .refine-disclosure legend {
  display: block;
  margin-bottom: 7px;
  color: #d9b9ef;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.crossroads-library .hero-game-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(197, 174, 218, .54);
  border-radius: 2px;
  outline: none;
  background: rgba(3, 9, 19, .88);
  color: #f5f7fa;
  font: 600 1rem var(--sans);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .2);
}

.crossroads-library .hero-game-search input:focus {
  border-color: #c7a4df;
  box-shadow: 0 0 0 3px rgba(172, 122, 203, .22), 0 14px 40px rgba(0, 0, 0, .2);
}

.crossroads-library .hero-game-search input::placeholder { color: #8293a7; }

.crossroads-library .refine-disclosure {
  max-width: 650px;
  margin-top: 10px;
  border: 1px solid rgba(154, 174, 197, .28);
  border-radius: 2px;
  background: rgba(3, 9, 19, .72);
}

.crossroads-library .refine-disclosure > summary {
  padding: 12px 16px;
  color: #d1dae5;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 750;
}

.crossroads-library .refine-disclosure[open] > summary {
  border-bottom: 1px solid rgba(154, 174, 197, .25);
}

.crossroads-library .refine-disclosure .play-filter-row {
  padding: 14px 16px 16px;
  border: 0;
}

.crossroads-library .refine-disclosure .filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  padding: 0;
  border: 0;
  background: none;
}

.crossroads-library .refine-disclosure .filter-options label {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #c5d0dc;
  box-shadow: none;
  font-size: .8rem;
}

.crossroads-library .refine-disclosure .filter-options label:has(input:checked) {
  background: none;
  color: #efdafa;
  box-shadow: none;
}

.crossroads-library .refine-disclosure .filter-options input { accent-color: #9e5bc1; }
.crossroads-library .refine-disclosure [data-clear-filters] {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #c7a4df;
  font-size: .76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crossroads-library .experience-chooser {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

.crossroads-library .experience-heading { margin-bottom: 16px; }
.crossroads-library .experience-heading h2 {
  max-width: 610px;
  margin: 3px 0 0;
  color: #f4f0e8;
  font: 600 clamp(2rem, 2.6vw, 2.7rem)/1 var(--serif);
  letter-spacing: -.025em;
}

.crossroads-library .library-command-center .mood-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.crossroads-library .library-command-center .mood-row button {
  position: relative;
  min-height: 92px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  padding: 17px 18px;
  border: 1px solid rgba(211, 224, 237, .24);
  border-radius: 2px;
  background-color: #101b29;
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: left;
  box-shadow: inset 0 -74px 65px rgba(3, 8, 16, .92);
  transition: border-color .22s ease, transform .22s ease, background-size .4s ease;
}

.crossroads-library .library-command-center .mood-row button:hover,
.crossroads-library .library-command-center .mood-row button:focus-visible {
  border-color: rgba(214, 181, 235, .8);
  transform: translateY(-2px);
  background-size: 105%;
}

.crossroads-library .library-command-center .mood-row strong {
  font: 600 1.25rem var(--serif);
  text-shadow: 0 2px 8px #000;
}

.crossroads-library .library-command-center .mood-row span {
  margin-top: 3px;
  color: #d0dae5;
  font-size: .72rem;
  line-height: 1.35;
}

.crossroads-library .mood-explore { background-image: url("assets/paths-of-virtue.webp"); }
.crossroads-library .mood-mystery { background-image: url("assets/beyond-zork-hero.webp"); }
.crossroads-library .mood-together { background-image: url("assets/tale-twisters.avif"); }
.crossroads-library .mood-quick { background-image: url("assets/telengard.webp"); }

.crossroads-library .surprise-choice {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(199, 164, 223, .5);
  border-radius: 2px;
  background: rgba(5, 11, 22, .84);
  color: #f0e6f6;
  text-align: left;
}

.crossroads-library .surprise-choice strong { font: 600 1.05rem var(--serif); }
.crossroads-library .surprise-choice span { color: #b9c6d5; font-size: .76rem; }

.crossroads-library .restored-catalog {
  width: min(1500px, calc(100% - 88px));
  margin: 28px auto 150px;
}

.crossroads-library .restored-catalog .section-heading { margin-bottom: 16px; }
.crossroads-library .restored-catalog .section-heading h2 {
  font-size: clamp(2.55rem, 3.5vw, 4.2rem);
  line-height: .98;
}

.crossroads-library .game-group {
  margin-top: 18px;
  border-radius: 2px;
}

.crossroads-library .game-group[open] > .group-heading { border-radius: 2px 2px 0 0; }
.crossroads-library .group-heading { border-radius: 2px; }
.crossroads-library .game-group > .game-grid { padding: 18px; }
.crossroads-library .restored-catalog .game-card { min-height: 400px; border-radius: 2px; }

[data-theme="light"] body.crossroads-library .library-command-center {
  background:
    linear-gradient(90deg, rgba(247, 250, 253, .98) 0%, rgba(239, 245, 250, .9) 42%, rgba(233, 240, 246, .45) 75%, rgba(233, 240, 246, .24) 100%),
    url("assets/crossroads-fantasy.jpg") center 44% / cover;
}

[data-theme="light"] body.crossroads-library .library-command-center .library-intro h1,
[data-theme="light"] body.crossroads-library .experience-heading h2 { color: #172739; }
[data-theme="light"] body.crossroads-library .library-command-center .library-intro > p:last-of-type { color: #465c70; }
[data-theme="light"] body.crossroads-library .hero-game-search > span,
[data-theme="light"] body.crossroads-library .refine-disclosure legend { color: #684983; }
[data-theme="light"] body.crossroads-library .hero-game-search input,
[data-theme="light"] body.crossroads-library .refine-disclosure,
[data-theme="light"] body.crossroads-library .surprise-choice { background: rgba(250, 252, 254, .95); color: #1a2a3b; }
[data-theme="light"] body.crossroads-library .hero-game-search input { border-color: #9aaec0; color: #182a3c; }
[data-theme="light"] body.crossroads-library .hero-game-search input::placeholder { color: #677b8e; }
[data-theme="light"] body.crossroads-library .refine-disclosure > summary,
[data-theme="light"] body.crossroads-library .refine-disclosure .filter-options label { color: #354c61; }
[data-theme="light"] body.crossroads-library .refine-disclosure .filter-options label:has(input:checked) { color: #684983; }
[data-theme="light"] body.crossroads-library .surprise-choice span { color: #53697c; }

@media (max-width: 1400px) and (min-width: 701px) {
  .crossroads-library .library-command-center { padding: 34px 0; }
  .crossroads-library .command-center-inner {
    width: calc(100% - 52px);
    grid-template-columns: minmax(350px, .9fr) minmax(420px, 1.1fr);
    gap: 38px;
  }
  .crossroads-library .library-command-center .library-intro h1 { font-size: clamp(3rem, 4.8vw, 3.9rem); }
  .crossroads-library .library-command-center .mood-row button { min-height: 86px; }
  .crossroads-library .restored-catalog { width: calc(100% - 52px); }
}

@media (max-width: 900px) and (min-width: 701px) {
  .crossroads-library .library-command-center { min-height: auto; }
  .crossroads-library .command-center-inner { grid-template-columns: 1fr; gap: 30px; }
  .crossroads-library .library-command-center .library-intro { max-width: none; }
  .crossroads-library .hero-game-search,
  .crossroads-library .refine-disclosure { max-width: none; }
  .crossroads-library .library-command-center .mood-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .crossroads-library .library-command-center .mood-row button { min-height: 130px; }
  .crossroads-library .library-command-center .mood-row span { display: none; }
}

/* Player first game shelves, September 23, 2026. */
.crossroads-library .games-findbar {
  min-height: 156px;
  display: flex;
  align-items: center;
  padding: 28px max(40px, calc((100vw - 1700px) / 2));
  border-bottom: 1px solid rgba(124, 92, 153, .42);
  background:
    linear-gradient(90deg, rgba(6, 12, 25, .97) 0%, rgba(7, 14, 28, .88) 50%, rgba(7, 14, 28, .44) 100%),
    url("assets/crossroads-fantasy.jpg") center 48% / cover;
}

.crossroads-library .games-findbar > div {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(360px, 560px);
  gap: 54px;
  align-items: end;
}

.crossroads-library .games-findbar h1 {
  margin: 0;
  color: #f0f4f8;
  font: 750 clamp(2.2rem, 3.2vw, 3.45rem)/1.04 var(--sans);
  letter-spacing: -.04em;
}

.crossroads-library .library-search { display: block; }
.crossroads-library .library-search > label {
  display: block;
  margin-bottom: 7px;
  color: #c9b3dd;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crossroads-library .search-field { position: relative; }

.crossroads-library .library-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 152px 0 16px;
  border: 1px solid rgba(174, 144, 199, .64);
  border-radius: 3px;
  outline: none;
  background: rgba(3, 8, 18, .9);
  color: #edf2f7;
  font: 600 .96rem var(--sans);
}

.crossroads-library .library-search input::-webkit-search-cancel-button { display: none; }

.crossroads-library .search-clear-controls {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: flex;
  align-items: center;
  background: rgba(8, 15, 27, .94);
}

.crossroads-library .search-clear-controls[hidden] { display: none; }

.crossroads-library .search-clear-controls button {
  height: 100%;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid rgba(174, 144, 199, .46);
  background: transparent;
  color: #d6b8e9;
  font: 740 .74rem var(--sans);
  cursor: pointer;
}

.crossroads-library .search-clear-controls button:hover,
.crossroads-library .search-clear-controls button:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.crossroads-library .search-clear-controls > span {
  padding: 0 10px 0 1px;
  color: #8293a5;
  font: 650 .65rem var(--sans);
}

.crossroads-library .library-search input:focus {
  border-color: #d4b7e8;
  box-shadow: 0 0 0 3px rgba(161, 104, 193, .2);
}

.crossroads-library .library-layout {
  width: min(1700px, calc(100% - 80px));
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 42px;
  margin: 0 auto;
  padding: 34px 0 48px;
}

.crossroads-library .category-jump {
  position: sticky;
  top: 108px;
  align-self: start;
  display: grid;
  gap: 0;
  padding: 0 24px 20px 0;
  border-right: 1px solid rgba(123, 145, 171, .34);
}


.crossroads-library .category-jump strong {
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(123, 145, 171, .34);
  color: #f1f4f8;
  font: 750 1rem var(--sans);
}

.crossroads-library .category-jump a {
  padding: 11px 2px;
  border-bottom: 1px solid rgba(123, 145, 171, .16);
  color: #aebdcd;
  font: 650 .88rem/1.35 var(--sans);
  text-decoration: none;
}

.crossroads-library .category-jump a:hover,
.crossroads-library .category-jump a:focus-visible { color: #e1c8ef; }

.crossroads-library .restored-catalog {
  width: auto;
  min-width: 0;
  margin: 0;
}

.crossroads-library .restored-catalog .section-heading {
  min-height: 0;
  margin: 0 0 22px;
}

.crossroads-library .restored-catalog .section-heading h2 {
  margin: 0;
  color: #efe1cc;
  font: 760 clamp(1.8rem, 2.4vw, 2.45rem)/1 var(--sans);
  letter-spacing: -.035em;
}

.crossroads-library .game-group,
.crossroads-library .game-group:first-of-type {
  margin: 0 0 38px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scroll-margin-top: 100px;
}

.crossroads-library .group-heading,
.crossroads-library .game-group[open] > .group-heading {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 5px 2px 15px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #bdc9d5;
  list-style: none;
}

.crossroads-library .group-heading::-webkit-details-marker { display: none; }
.crossroads-library .group-heading::before {
  z-index: 0;
  inset: auto 0 0;
  height: 4px;
  background-color: transparent;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--group-accent) 42%, #8190a0), rgba(116, 130, 146, .32) 72%, transparent);
  transform: none;
}
.crossroads-library .group-heading::after {
  z-index: 0;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(225, 211, 233, .3), rgba(127, 146, 166, .16) 74%, transparent);
}
.crossroads-library .group-heading:hover::before { transform: none; }
.crossroads-library .group-heading h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #bdc9d5;
  font: 740 clamp(1.3rem, 1.8vw, 1.7rem)/1.1 var(--sans);
  letter-spacing: -.025em;
}

.crossroads-library .group-action {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0 7px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ad9bbc;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .025em;
}

.crossroads-library .group-action::after {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.crossroads-library .game-group[open] .group-action {
  background: transparent;
}

.crossroads-library .game-group[open] .group-action::after {
  transform: translateY(2px) rotate(225deg);
}

.crossroads-library .game-group > .game-grid {
  padding: 16px 2px 12px;
  border: 0;
  background: transparent;
}

.crossroads-library .game-group > .shelf-stage {
  position: relative;
  padding: 16px 2px 12px;
}

.crossroads-library .shelf-arrow {
  position: absolute;
  z-index: 8;
  top: calc(50% + 2px);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(9, 16, 27, .38);
  color: #f5eef9;
  font: 400 2.25rem/1 var(--sans);
  box-shadow: none;
  backdrop-filter: blur(8px) saturate(.8);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease, transform .18s ease;
}

.crossroads-library .shelf-arrow-previous { left: 10px; }
.crossroads-library .shelf-arrow-next { right: 10px; }
.crossroads-library .shelf-arrow:hover:not(:disabled),
.crossroads-library .shelf-arrow:focus-visible {
  background: rgba(82, 49, 98, .54);
}
.crossroads-library .shelf-arrow:disabled { opacity: .18; cursor: default; }
.crossroads-library .shelf-arrow[hidden] { display: none; }
[data-theme="light"] body.crossroads-library .shelf-arrow {
  border-color: rgba(91, 57, 112, .5);
  background: rgba(244, 247, 250, .78);
  color: #56376a;
  box-shadow: 0 8px 22px rgba(35, 46, 60, .2);
}
[data-theme="light"] body.crossroads-library .shelf-arrow:hover:not(:disabled),
[data-theme="light"] body.crossroads-library .shelf-arrow:focus-visible {
  border-color: #77538e;
  background: rgba(230, 221, 237, .94);
}

.crossroads-library .game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(225px, 19vw, 290px);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-color: #77538e rgba(31, 43, 58, .55);
  scrollbar-width: thin;
}

.crossroads-library .game-rail::-webkit-scrollbar { height: 9px; }
.crossroads-library .game-rail::-webkit-scrollbar-track { background: rgba(31, 43, 58, .55); }
.crossroads-library .game-rail::-webkit-scrollbar-thumb { background: #77538e; }

.crossroads-library .group-servers .card-media { aspect-ratio: 2.4 / 1; }

.crossroads-library .restored-catalog .game-card,
.crossroads-library #interactive-fiction .game-card,
.crossroads-library #uorealms-originals .game-card,
.crossroads-library #classic-dos .game-card,
.crossroads-library #bbs-and-muds .game-card {
  min-height: 342px;
  grid-column: auto;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(119, 143, 170, .36);
  border-radius: 4px;
  background: #101a29;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .24);
  scroll-snap-align: start;
}

.crossroads-library .game-card .card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070c15;
}

.crossroads-library .game-card .card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .42s ease;
}

.crossroads-library .group-fiction .card-media img,
.crossroads-library .group-classic .card-media img { object-fit: contain; }
.crossroads-library .game-card:hover .card-media img { transform: scale(1.045); }

.crossroads-library .game-card .card-type {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border: 1px solid rgba(221, 204, 234, .38);
  background: rgba(5, 8, 15, .86);
  color: #f4eaf9;
  font: 800 .64rem/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #000;
  backdrop-filter: blur(7px);
}

.crossroads-library .game-card .card-copy {
  position: static;
  z-index: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: linear-gradient(145deg, #142234, #0d1725);
  color: #eef3f8;
}

.crossroads-library .game-card .card-copy h3 {
  margin: 0;
  color: #f4f6f9;
  font: 740 1.14rem/1.15 var(--sans);
  letter-spacing: -.02em;
}

.crossroads-library .game-card .card-copy p {
  margin: 8px 0 15px;
  color: #afbdcb;
  font-size: .79rem;
  line-height: 1.48;
}

.crossroads-library .game-card .card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.crossroads-library .game-card .card-actions a,
.crossroads-library .game-card .card-actions button {
  min-height: 37px;
  padding: 8px 13px;
  border-radius: 2px;
  font: 760 .78rem var(--sans);
}

.crossroads-library .game-card .card-actions .primary-action {
  background: #8a3aa8;
  color: #fff;
}

.crossroads-library .game-card .card-actions button {
  border: 1px solid rgba(174, 144, 199, .58);
  background: transparent;
  color: #e1d5e9;
}

.crossroads-library .empty-result {
  padding: 34px;
  border: 1px solid rgba(137, 110, 160, .5);
  background: rgba(17, 27, 42, .86);
}

.crossroads-library .empty-result h3 { margin: 0 0 6px; font: 740 1.45rem var(--sans); }
.crossroads-library .empty-result p { margin: 0 0 18px; color: #aebdca; }
.crossroads-library .empty-result div { display: flex; flex-wrap: wrap; gap: 8px; }
.crossroads-library .empty-result button { padding: 10px 13px; border: 1px solid #76538d; border-radius: 2px; background: #111c2c; color: #ece4f2; }

.crossroads-library .details-v2 {
  width: min(1180px, calc(100% - 54px));
  grid-template-columns: minmax(420px, 1fr) minmax(420px, .92fr);
  border: 1px solid rgba(164, 116, 190, .74);
  border-radius: 4px;
  background: #090f1d;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .72);
}

.crossroads-library .details-v2 .dialog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 68px);
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 67, 151, .2), transparent 45%),
    #0d1626;
}

.crossroads-library .details-v2 .dialog-content h2 {
  margin: 8px 0 16px;
  color: #f5f6f8;
  font: 780 clamp(2.3rem, 4vw, 4.25rem)/.96 var(--sans);
  letter-spacing: -.05em;
}

.crossroads-library .details-v2 .dialog-lead {
  margin: 0;
  color: #c5d0dc;
  font-size: 1.02rem;
  line-height: 1.65;
}

.crossroads-library .details-v2 .dialog-hook {
  margin: 28px 0 18px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid #a85cc1;
}

.crossroads-library .details-v2 .dialog-hook strong {
  color: #e6c8ef;
  font: 780 .76rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crossroads-library .details-v2 .dialog-hook p {
  margin: 7px 0 0;
  color: #eef2f7;
  font: 650 1rem/1.55 var(--sans);
}

.crossroads-library .details-v2 .dialog-play-note {
  margin: 0 0 25px;
  color: #aebdca;
  font-size: .82rem;
  line-height: 1.5;
}

[data-theme="light"] body.crossroads-library .games-findbar {
  background:
    linear-gradient(90deg, rgba(247, 250, 253, .98) 0%, rgba(239, 245, 250, .9) 54%, rgba(239, 245, 250, .45) 100%),
    url("assets/crossroads-fantasy.jpg") center 48% / cover;
}
[data-theme="light"] body.crossroads-library .games-findbar h1,
[data-theme="light"] body.crossroads-library .restored-catalog .section-heading h2,
[data-theme="light"] body.crossroads-library .group-heading h3,
[data-theme="light"] body.crossroads-library .category-jump strong { color: #1d2d3d; }
[data-theme="light"] body.crossroads-library .library-search > label { color: #684a7d; }
[data-theme="light"] body.crossroads-library .library-search input { border-color: #879caf; background: rgba(255, 255, 255, .94); color: #1c2c3c; }
[data-theme="light"] body.crossroads-library .search-clear-controls { background: rgba(255, 255, 255, .96); }
[data-theme="light"] body.crossroads-library .search-clear-controls button { color: #684a7d; }
[data-theme="light"] body.crossroads-library .search-clear-controls > span { color: #687d90; }
[data-theme="light"] body.crossroads-library .category-jump a { color: #52687c; }
[data-theme="light"] body.crossroads-library .game-card { border-color: #bcc9d5; background: #f7f9fb; box-shadow: 0 12px 30px rgba(39, 57, 75, .14); }
[data-theme="light"] body.crossroads-library .game-card .card-copy { background: #f7f9fb; }
[data-theme="light"] body.crossroads-library .game-card .card-copy h3 { color: #1c2c3c; }
[data-theme="light"] body.crossroads-library .game-card .card-copy p { color: #52687a; }
[data-theme="light"] body.crossroads-library .game-card .card-actions button { color: #604276; }
[data-theme="light"] body.crossroads-library .group-action { background: #f5f7fa; color: #604276; }

@media (max-width: 1100px) and (min-width: 701px) {
  .crossroads-library .games-findbar { padding-inline: 28px; }
  .crossroads-library .games-findbar > div { grid-template-columns: minmax(290px, .8fr) minmax(330px, 1fr); gap: 34px; }
  .crossroads-library .library-layout { width: calc(100% - 52px); grid-template-columns: 160px minmax(0, 1fr); gap: 28px; }
  .crossroads-library .category-jump { padding-right: 17px; }
  .crossroads-library .game-rail { grid-auto-columns: clamp(220px, 30vw, 260px); }
}

@media (max-width: 860px) and (min-width: 701px) {
  .crossroads-library .games-findbar > div { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .crossroads-library .games-findbar { min-height: 210px; }
  .crossroads-library .library-layout { grid-template-columns: 1fr; }
  .crossroads-library .category-jump {
    position: static;
    grid-template-columns: repeat(6, max-content);
    overflow-x: auto;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(123, 145, 171, .34);
  }
  .crossroads-library .category-jump strong { display: none; }
  .crossroads-library .category-jump a { padding: 9px 16px 9px 0; border: 0; }
  .crossroads-library .details-v2[open] { grid-template-columns: 1fr; }
}

/* Owner approved card labels and complete card shelf paging, September 23, 2026. */
.crossroads-library .game-card .card-media { overflow: visible; }

.crossroads-library .game-card .card-type {
  top: calc(100% + 14px);
  bottom: auto;
  left: 16px;
  max-width: calc(100% - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--group-accent);
  font-size: .66rem;
  letter-spacing: .075em;
  text-shadow: none;
  backdrop-filter: none;
}

.crossroads-library .game-card .card-copy { padding-top: 40px; }

.crossroads-library .game-rail {
  grid-auto-columns: calc((100% - 48px) / 4);
  scroll-snap-type: inline proximity;
  scroll-behavior: smooth;
}

.crossroads-library .game-group .game-rail { gap: 16px; }

.crossroads-library .game-card { scroll-snap-stop: normal; }

.crossroads-library .shelf-navigation {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin: 8px 2px 2px;
}

.crossroads-library .shelf-navigation[hidden] { display: none; }

.crossroads-library .shelf-navigation button {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(156, 126, 178, .72);
  border-radius: 2px;
  background: rgba(15, 25, 39, .9);
  color: #e8dfee;
  font: 740 .75rem var(--sans);
  cursor: pointer;
}

.crossroads-library .shelf-navigation button:hover,
.crossroads-library .shelf-navigation button:focus-visible { border-color: var(--group-accent); color: #fff; }
.crossroads-library .shelf-navigation button:disabled { opacity: .38; cursor: default; }
.crossroads-library .shelf-navigation span { min-width: 74px; color: #aebdca; font: 650 .72rem var(--sans); text-align: center; }

[data-theme="light"] body.crossroads-library .shelf-navigation button { background: #f7f9fb; color: #604276; }
[data-theme="light"] body.crossroads-library .shelf-navigation span { color: #52687a; }

@media (max-width: 1500px) and (min-width: 1101px) {
  .crossroads-library .game-rail { grid-auto-columns: calc((100% - 32px) / 3); }
}

@media (max-width: 1100px) and (min-width: 701px) {
  .crossroads-library .game-rail { grid-auto-columns: calc((100% - 16px) / 2); }
}

/* The temporary site shell owns the persistent public header and UORadio player. */
html.shell-embedded .site-header,
html.shell-embedded .radio-bar { display: none; }

html.shell-embedded body { padding-bottom: 0; }

/* Games owns a stationary backdrop in the outer scrolling shell. */
html.games-shell-surface,
html.games-shell-surface body.crossroads-library { background: transparent; }

html.shell-embedded .skip-link { top: 12px; }

/* Approved UORealms action treatment. */
.crossroads-library .game-card .card-actions button,
.crossroads-library .details-v2 .dialog-actions .primary-action,
.crossroads-library .details-v2 .dialog-actions .secondary-action {
  border-color: #8a3aa8;
  background: #8a3aa8;
  color: #fff;
}

.crossroads-library .game-card .card-actions a:hover,
.crossroads-library .game-card .card-actions a:focus-visible,
.crossroads-library .game-card .card-actions button:hover,
.crossroads-library .game-card .card-actions button:focus-visible,
.crossroads-library .details-v2 .dialog-actions a:hover,
.crossroads-library .details-v2 .dialog-actions a:focus-visible,
.crossroads-library .details-v2 .dialog-actions button:hover,
.crossroads-library .details-v2 .dialog-actions button:focus-visible { background: #a54ac2; }

/* All Games inside the site: a dark frosted-glass panel behind the shelves, so the cards read cleanly while the
   starry background still shows around and faintly through it (Jason, 30 Sep 2026). */
html.games-shell-surface .crossroads-library .catalog-section {
  padding: 26px clamp(18px, 2.4vw, 34px) 34px;
  border: 1px solid rgba(255, 236, 190, .10);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(10, 14, 30, .78), rgba(6, 9, 20, .70));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Inside the site the shell shows the one site-wide footer. */
html.shell-embedded .site-footer { display: none; }

/* Breadcrumbs inside the search banner at the top of All Games. */
.games-findbar .breadcrumbs { width: auto; margin: 0 0 12px; grid-column: 1 / -1; }

/* Footer: the short legal line under the copyright (Jason, 30 Sep 2026). */
.site-footer { flex-wrap: wrap; }
.site-footer .footer-legal { flex: 1 0 100%; margin: 4px 0 0; font-size: .74rem; line-height: 1.5; opacity: .78; }
.site-footer .footer-legal a { color: inherit; }

/* Inside the site the page footer is hidden (the site footer shows under the frame); keep the room it gave so the last shelf can still scroll up to the top when picked in Jump to, exactly as before. */
html.shell-embedded body.crossroads-library { padding-bottom: 120px; }

/* Less empty space under the last shelf inside the site (Jason, 4 Oct 2026; spacing only). The 120 px Jump to room above stays. */
html.games-shell-surface .crossroads-library .library-layout { padding-bottom: 0; }
