.lexi-games-page [hidden] { display: none !important; }
.lexi-games-page :focus-visible { outline: 3px solid #52649d; outline-offset: 4px; }
.games-shell { position: relative; width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.games-skip { position: fixed; left: 16px; top: -100px; z-index: 30; padding: 12px; border: 2px solid var(--ink); background: var(--lemon); }
.games-skip:focus { top: 16px; }
.games-intro { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); gap: 60px; align-items: center; padding: 62px 0 42px; }
.games-intro h1 { margin: 0 0 18px; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.1; }
.games-intro h1 span { color: #c95882; }
.games-lede { max-width: 540px; margin-bottom: 24px; color: var(--muted); font-size: 1.12rem; line-height: 1.6; }
.games-intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.games-text-link { font-size: .85rem; font-weight: 900; text-decoration: underline; text-underline-offset: 5px; }
.games-shelf-note { position: relative; border: 2px solid var(--ink); border-radius: 12px; padding: 28px; background: #fff4c9; box-shadow: 4px 4px 0 var(--ink); transform: rotate(1deg); }
.games-note-star { position: absolute; right: 20px; top: 12px; color: #ae6a56; font-size: 2.5rem; }
.games-kicker { margin: 0 0 9px; font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.games-note-number { margin: 0 0 16px; font-size: 1rem; font-weight: 800; }
.games-note-number strong { display: block; font-size: 3.4rem; line-height: 1.15; }
.games-note-next { margin: 0; padding-top: 14px; border-top: 1px dashed #a49472; font-size: .83rem; line-height: 1.6; }
.games-status { margin: 0 0 25px; padding: 15px 18px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); font-size: .85rem; line-height: 1.6; }
.games-status.error { background: #fff0eb; }
.games-status button { margin-left: 12px; border: 0; background: transparent; font-weight: 900; text-decoration: underline; cursor: pointer; }
.games-discovery { margin-bottom: 42px; }
.games-section-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.games-section-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.25; }
.games-tabs { display: flex; gap: 4px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--paper); }
.games-tabs button { min-height: 38px; border: 0; padding: 8px 13px; border-radius: 5px; color: var(--ink); background: transparent; font-size: .78rem; font-weight: 900; cursor: pointer; }
.games-tabs button:hover { background: var(--momo); }
.games-tabs button[aria-pressed="true"] { color: white; background: var(--ink); }
.games-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.games-highlight { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 4px 4px 0 var(--sakura); }
.games-highlight-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--genre-color, #d5b4fa); }
.games-highlight-media::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, #fff8 0 4%, transparent 4.5%), radial-gradient(circle at 90% 80%, #fff8 0 9%, transparent 9.5%), repeating-linear-gradient(-45deg, #fff3 0 1px, transparent 1px 22px); }
.games-highlight-initials { position: relative; max-width: 80%; overflow-wrap: anywhere; font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 900; letter-spacing: .04em; text-align: center; color: #30242c; }
.games-highlight-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.games-trailer-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: #241b2140; cursor: pointer; }
.games-trailer-play span { display: flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1.5px solid white; border-radius: 999px; background: #30242cdd; color: white; font-size: .8rem; font-weight: 900; }
.games-trailer-play:hover span { background: #30242c; transform: translateY(-2px); }
.games-highlight-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.games-highlight-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 16px; }
.games-highlight-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.games-genre-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border: 1px solid #3a2c3580; border-radius: 999px; background: var(--genre-color, #dcd8e0); color: #30242c; font-size: .66rem; line-height: 1.35; font-weight: 900; }
.games-kind-badge { font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.games-highlight h3 { margin: 0; font-size: 1.08rem; line-height: 1.32; overflow-wrap: anywhere; }
.games-release-date { margin: 0; font-size: .88rem; font-weight: 900; color: var(--ink); }
.games-release-date.upcoming { color: #644980; }
.games-platforms { margin: -6px 0 0; font-size: .7rem; color: var(--muted); line-height: 1.5; }
.games-highlight-summary { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); font-size: .79rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.games-highlight-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.games-highlight-actions a { display: inline-flex; align-items: center; min-height: 36px; font-size: .74rem; font-weight: 900; text-decoration: underline; text-underline-offset: 4px; }
.games-source-checked { margin: 0; font-size: .63rem; line-height: 1.5; color: var(--muted); }
.games-library { scroll-margin-top: 130px; border: 2px solid var(--ink); border-radius: 14px; padding: 28px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.games-library-count { font-size: .78rem; font-weight: 800; color: var(--muted); }
.games-library-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.games-library-toolbar label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.games-library-toolbar label > span { font-size: .72rem; font-weight: 900; }
.games-search { flex: 1; min-width: 210px !important; }
.games-library-toolbar input, .games-library-toolbar select { width: 100%; min-height: 44px; border: 1.5px solid var(--ink); border-radius: 8px; padding: 10px 12px; background: white; color: var(--ink); font-size: .85rem; }
.games-library-toolbar select { cursor: pointer; }
.games-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 14px; }
.games-library-card { position: relative; min-width: 0; aspect-ratio: 2 / 3; overflow: hidden; isolation: isolate; border: 1.5px solid #6f77a7; border-radius: 16px; padding: 0; background: linear-gradient(145deg, var(--genre-color, #d5b4fa), #303756); box-shadow: 0 10px 22px rgba(51, 57, 105, .16); transition: transform 180ms ease, box-shadow 180ms ease; }
.games-library-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(51, 57, 105, .22); }
.games-library-card.favorite { border-color: #d7aa45; }
.games-library-media { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; color: white; background: linear-gradient(145deg, var(--genre-color, #d5b4fa), #303756); text-decoration: none; }
.games-library-media::before { content: ""; position: absolute; inset: -9%; z-index: 0; opacity: 0; background-image: var(--game-art, none); background-position: center; background-size: cover; filter: blur(16px) saturate(.9) brightness(.7); transform: scale(1.08); }
.games-library-media.has-banner::before { opacity: .94; filter: blur(14px) saturate(1.08) brightness(.82); }
.games-library-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(14, 18, 40, .14) 0%, transparent 44%, rgba(16, 18, 38, .2) 64%, rgba(13, 16, 34, .88) 100%); pointer-events: none; }
.games-library-media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.games-library-media.has-banner img { inset: 0 -9%; width: 118%; object-fit: contain; object-position: center; filter: drop-shadow(0 8px 18px rgba(12, 15, 34, .34)); }
.games-library-media.has-banner::after { background: linear-gradient(180deg, rgba(14, 18, 40, .08) 0%, transparent 58%, rgba(13, 16, 34, .66) 100%); }
.games-library-media:hover img { transform: scale(1.025); }
.games-library-media:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.games-library-fallback-title { position: relative; z-index: 1; display: none; max-width: 84%; padding: 12px; overflow-wrap: anywhere; color: white; font-size: 1rem; font-weight: 900; line-height: 1.35; text-align: center; text-shadow: 0 2px 12px rgba(20, 22, 48, .58); }
.games-library-media--fallback .games-library-fallback-title { display: block; }
.games-library-card-body { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; pointer-events: none; }
.games-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
.games-pick-badge { display: inline-flex; font-size: .58rem; font-weight: 900; padding: 4px 7px; border: 1px solid #ad9563; border-radius: 999px; background: #fff1bc; color: #614720; box-shadow: 0 3px 12px rgba(15, 18, 38, .22); }
.games-pick-badge.occasional { border-color: #b2a1b6; background: #f2edf6; color: #5e5067; }
.games-card-badges { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; pointer-events: none; }
.games-library-card .games-genre-badge { box-shadow: 0 3px 12px rgba(15, 18, 38, .22); }
.games-library-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; pointer-events: auto; }
.games-library-links:empty { display: none; }
.games-library-links a { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid rgba(255, 255, 255, .72); border-radius: 999px; padding: 5px 8px; color: white; background: rgba(31, 35, 70, .7); backdrop-filter: blur(8px); font-size: .62rem; font-weight: 900; text-decoration: none; box-shadow: 0 4px 14px rgba(10, 12, 29, .24); }
.games-scheduled-link { color: white; }
.games-empty { grid-column: 1 / -1; border: 1.5px dashed #b69daa; border-radius: 9px; padding: 28px; text-align: center; background: #fff8fc; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.games-empty button { border: 0; padding: 8px; background: transparent; color: var(--ink); font-weight: 900; text-decoration: underline; cursor: pointer; }
.games-load-more { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 24px; }
.games-load-more button { min-height: 42px; border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 18px; color: white; background: var(--ink); font: inherit; font-size: .78rem; font-weight: 900; cursor: pointer; }
.games-load-more button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.games-load-more button:disabled { opacity: .58; cursor: default; filter: none; transform: none; }
.games-load-more span { color: var(--muted); font-size: .7rem; font-weight: 800; }
.games-load-more span:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.games-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 18px; padding: 26px 0 40px; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.games-noscript { padding: 20px; border: 2px solid var(--ink); border-radius: 8px; background: #fff4c9; }
.games-noscript a { text-decoration: underline; }
@media (max-width: 980px) {
  .games-intro { gap: 32px; }
  .games-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .games-highlight-initials { font-size: 2rem; }
}
@media (max-width: 650px) {
  .games-shell { width: calc(100% - 28px); }
  .games-intro { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 36px 0; }
  .games-intro h1 { font-size: 2.6rem; }
  .games-lede { font-size: 1rem; }
  .games-intro-links { gap: 18px; }
  .games-shelf-note { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; align-items: center; padding: 20px; transform: none; }
  .games-shelf-note .games-kicker { grid-column: 1 / -1; margin-bottom: 12px; }
  .games-note-number { margin: 0; font-size: .75rem; }
  .games-note-number strong { font-size: 2.4rem; }
  .games-note-next { border-top: 0; border-left: 1px dashed #a49472; padding: 0 0 0 20px; font-size: .75rem; }
  .games-note-star { font-size: 1.5rem; top: 7px; right: 12px; }
  .games-discovery { margin-bottom: 32px; }
  .games-section-heading { align-items: flex-start; gap: 12px; margin-bottom: 14px; }
  .games-tabs { width: fit-content; }
  .games-tabs button { min-height: 42px; }
  .games-highlights { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .games-highlight-body { gap: 8px; padding: 14px; }
  .games-library { padding: 22px 16px; }
  .games-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .games-library-card-body { padding: 8px; }
  .games-library-toolbar { gap: 12px; }
  .games-library-toolbar label { flex: 1; }
  .games-library-toolbar .games-search { flex: 1 0 100%; }
  .games-library-toolbar select { font-size: .78rem; padding: 10px 8px; }
  .games-bottom { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .games-trailer-play:hover span, .games-load-more button:hover, .games-library-card:hover, .games-library-media:hover img { transform: none; } }
