/* Celestial Lexi illustrated interface v3
   Hybrid art + CSS translation of the saved Moonlit Azure and Lavender Tea studies.
   Painted assets stay decorative; real content, controls and layout remain HTML/CSS. */

body.lexi-backdrop {
  --lx-v3-ink: #505783;
  --lx-v3-ink-deep: #3e3b68;
  --lx-v3-body: #62647c;
  --lx-v3-line: #7f9fdf;
  --lx-v3-line-soft: rgba(127, 159, 223, 0.42);
  --lx-v3-lavender: #d8d4fb;
  --lx-v3-sky: #b8ddf8;
  --lx-v3-pink: #f2b7d4;
  --lx-v3-gold: #d4ad64;
  --lx-v3-glass: rgba(255, 255, 255, 0.78);
  --lx-v3-glass-strong: rgba(255, 255, 255, 0.92);
  --lx-v3-shadow: rgba(69, 75, 139, 0.2);
  --lx-v3-shell:
    0 0 0 4px rgba(255, 255, 255, 0.94),
    0 0 0 7px rgba(118, 153, 222, 0.48),
    0 24px 70px rgba(75, 82, 148, 0.2);
  --lx-heading: var(--lx-v3-ink-deep);
  --text: var(--lx-v3-ink-deep);
  --ink: var(--lx-v3-ink);
  --muted: var(--lx-v3-body);
  min-height: 100vh;
  overflow-x: clip;
  font-family: ui-rounded, "Avenir Next", "Segoe UI Variable", "Trebuchet MS", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(176, 217, 250, 0.72), transparent 29%),
    radial-gradient(circle at 88% 14%, rgba(241, 190, 220, 0.55), transparent 28%),
    radial-gradient(ellipse at 52% 72%, rgba(208, 203, 249, 0.68), transparent 52%),
    linear-gradient(145deg, #f5fbff 0%, #eef1ff 43%, #fbf2fb 75%, #fffaf5 100%);
  background-size: auto;
}

body.lexi-backdrop[data-style="lavender-tea"] {
  --lx-v3-ink: #66639b;
  --lx-v3-ink-deep: #4a456f;
  --lx-v3-body: #69677c;
  --lx-v3-line: #8b90dd;
  --lx-v3-line-soft: rgba(139, 144, 221, 0.42);
  --lx-v3-lavender: #ddd6fb;
  --lx-v3-sky: #c5e4f8;
  --lx-v3-pink: #f2bed8;
  --lx-v3-glass: rgba(255, 252, 255, 0.78);
  --lx-v3-shadow: rgba(100, 86, 153, 0.2);
  background:
    radial-gradient(circle at 10% 7%, rgba(196, 222, 248, 0.74), transparent 29%),
    radial-gradient(circle at 90% 15%, rgba(242, 192, 220, 0.54), transparent 28%),
    radial-gradient(ellipse at 52% 70%, rgba(214, 204, 247, 0.72), transparent 55%),
    linear-gradient(145deg, #f9fbff 0%, #f0ecfb 43%, #fbf2fa 76%, #fffaf4 100%);
}

body.lexi-backdrop[data-style="moonlit-azure"] {
  --lx-v3-ink: #4e6f9f;
  --lx-v3-ink-deep: #38577f;
  --lx-v3-body: #5c6b7e;
  --lx-v3-line: #70a4df;
  --lx-v3-line-soft: rgba(112, 164, 223, 0.44);
  --lx-v3-lavender: #d1dcfa;
  --lx-v3-sky: #a9d9f7;
  --lx-v3-glass: rgba(250, 254, 255, 0.78);
  --lx-v3-shadow: rgba(59, 105, 153, 0.2);
}

body.lexi-backdrop[data-style="midnight-aurora"] {
  --lx-v3-ink: #6078b2;
  --lx-v3-ink-deep: #38416f;
  --lx-v3-body: #60677c;
  --lx-v3-line: #788fd6;
  --lx-v3-line-soft: rgba(120, 143, 214, 0.46);
  --lx-v3-lavender: #c9cef3;
  --lx-v3-sky: #a6d5eb;
  --lx-v3-glass: rgba(250, 251, 255, 0.84);
  --lx-v3-shadow: rgba(25, 32, 78, 0.28);
  background:
    radial-gradient(circle at 10% 7%, rgba(103, 171, 220, 0.45), transparent 29%),
    radial-gradient(circle at 90% 15%, rgba(196, 116, 184, 0.38), transparent 28%),
    radial-gradient(ellipse at 52% 70%, rgba(115, 113, 190, 0.4), transparent 55%),
    linear-gradient(145deg, #182342 0%, #24345d 44%, #47325d 78%, #1b2545 100%);
}

/* Illustrated page frame: the rich pieces sit outside reading zones. */
body.lexi-backdrop::before,
body.lexi-backdrop::after {
  content: "";
  position: fixed;
  z-index: 0;
  display: block;
  pointer-events: none;
  user-select: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.lexi-backdrop::before {
  top: 72px;
  left: -175px;
  width: clamp(420px, 40vw, 650px);
  aspect-ratio: 1;
  background-image: url("backdrop/illustrated/moon-sakura-corner-v3.webp");
  opacity: 0.64;
  filter: drop-shadow(0 18px 38px rgba(74, 112, 180, 0.22));
}

body.lexi-backdrop::after {
  top: 36px;
  right: -130px;
  width: clamp(430px, 43vw, 700px);
  aspect-ratio: 3 / 2;
  background-image: url("backdrop/illustrated/sakura-branch-right-v3.webp");
  opacity: 0.72;
  filter: drop-shadow(0 18px 32px rgba(107, 83, 145, 0.18));
}

body.lexi-backdrop[data-style="midnight-aurora"]::before,
body.lexi-backdrop[data-style="midnight-aurora"]::after {
  opacity: 0.48;
  filter: saturate(0.88) drop-shadow(0 18px 38px rgba(4, 8, 30, 0.36));
}

body.lexi-backdrop > .site-header,
body.lexi-backdrop > main,
body.lexi-backdrop > .site-footer {
  position: relative;
  z-index: 2;
}

body.lexi-backdrop > main::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 50%;
  z-index: 0;
  width: min(1500px, 100vw);
  height: min(820px, 78vw);
  background: url("backdrop/illustrated/petals-sparkles-v3.webp") center / contain no-repeat;
  opacity: 0.5;
  transform: translateX(-50%);
  pointer-events: none;
}

body.lexi-backdrop > main > * {
  position: relative;
  z-index: 1;
}

/* Retire the faint monochrome placeholders now that painted pieces exist. */
.lexi-backdrop .lx-backdrop-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lexi-backdrop .lx-backdrop-scene .lx-piece { display: none; }

/* Premium single-rail navigation with a luminous inset line. */
.lexi-backdrop .site-header {
  top: 12px;
  width: min(1420px, calc(100% - 34px));
  margin: 14px auto 0;
  padding: 11px clamp(16px, 2.2vw, 30px);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  background:
    linear-gradient(110deg, rgba(199, 226, 250, 0.9), rgba(226, 218, 252, 0.88) 48%, rgba(247, 207, 229, 0.86)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 2px var(--lx-v3-line),
    0 0 0 6px rgba(255, 255, 255, 0.58),
    0 16px 42px var(--lx-v3-shadow);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.lexi-backdrop .site-header::before {
  content: "";
  position: absolute;
  inset: 5px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  pointer-events: none;
}

.lexi-backdrop .site-header > * { position: relative; z-index: 1; }

.lexi-backdrop .brand {
  padding: 7px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--lx-v3-ink-deep);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.lexi-backdrop .brand-mark,
.lexi-backdrop .brand::after { display: none; }

.lexi-backdrop .brand span:last-child { color: var(--lx-v3-ink-deep); }

.lexi-backdrop .nav-links { gap: 5px; }

.lexi-backdrop .nav-links a,
.lexi-backdrop .artifact-shortcuts a {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  color: var(--lx-v3-body);
  font-size: 0.8rem;
  font-weight: 800;
}

.lexi-backdrop .nav-links a:hover,
.lexi-backdrop .nav-links a[aria-current="page"],
.lexi-backdrop .artifact-shortcuts a:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--lx-v3-ink-deep);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px var(--lx-v3-line-soft);
}

.lexi-backdrop .style-picker,
.lexi-backdrop .visit-counter {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 0 1px var(--lx-v3-line-soft);
}

.lexi-backdrop .style-picker select { background: rgba(255, 255, 255, 0.72); }

.lexi-backdrop .homepage-header {
  grid-template-columns: auto auto minmax(0, 1fr);
  grid-template-areas: "brand visits primary" "artifacts artifacts artifacts";
  row-gap: 8px;
}

.lexi-backdrop .artifact-shortcuts {
  padding: 7px 4px 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.lexi-backdrop .shortcut-label { color: var(--lx-v3-ink); }
.lexi-backdrop .artifact-shortcuts a:nth-of-type(n) { background: rgba(255, 255, 255, 0.46); }

/* Shared luminous shells and buttons. */
.lexi-backdrop h1,
.lexi-backdrop h2,
.lexi-backdrop h3 { color: var(--lx-v3-ink-deep); }

.lexi-backdrop p,
.lexi-backdrop .lede,
.lexi-backdrop .games-lede { color: var(--lx-v3-body); }

.lexi-backdrop .eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  background: linear-gradient(105deg, #7a85d2, #758fcf 56%, #88badc);
  box-shadow: 0 0 0 1px var(--lx-v3-line), 0 8px 22px rgba(91, 103, 174, 0.2);
}

.lexi-backdrop .button {
  min-height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--lx-v3-ink-deep);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 0 0 1px var(--lx-v3-line-soft), 0 9px 22px rgba(80, 88, 151, 0.13);
}

.lexi-backdrop .button.primary {
  border-color: rgba(255, 255, 255, 0.94);
  color: #fff;
  background: linear-gradient(105deg, #6c79c6, #788fd4 58%, #76a9d0);
  box-shadow: 0 0 0 1px #6678bd, 0 12px 25px rgba(77, 90, 160, 0.22);
}

.lexi-backdrop .button.secondary { background: rgba(255, 255, 255, 0.7); }
.lexi-backdrop .button:hover { box-shadow: 0 0 0 1px var(--lx-v3-line), 0 14px 28px rgba(80, 88, 151, 0.2); }

/* Home hero: scenic image, broad diagonal light, real content above it. */
.lexi-backdrop[data-backdrop-layout="home"] .hero {
  min-height: clamp(500px, 57vh, 620px);
  margin: 40px auto 48px;
  padding: clamp(34px, 4.2vw, 62px);
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 34px;
  background:
    linear-gradient(94deg, rgba(255, 255, 255, 0.97) 0 38%, rgba(253, 251, 255, 0.83) 52%, rgba(230, 235, 255, 0.22) 75%, rgba(180, 207, 250, 0.08) 100%),
    url("backdrop/illustrated/moonlit-lake-v3.webp") 64% 50% / cover no-repeat;
  box-shadow: var(--lx-v3-shell);
}

.lexi-backdrop[data-backdrop-layout="home"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(160deg, transparent 0 55%, rgba(188, 221, 250, 0.25) 55% 65%, transparent 65%),
    linear-gradient(160deg, transparent 0 64%, rgba(179, 170, 239, 0.22) 64% 71%, transparent 71%);
  pointer-events: none;
}

.lexi-backdrop[data-backdrop-layout="home"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  border: 0;
  background: url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
  opacity: 0.38;
  transform: none;
  pointer-events: none;
}

.lexi-backdrop[data-backdrop-layout="home"] .hero > :not(.lx-backdrop-scene) { position: relative; z-index: 1; }

.lexi-backdrop[data-backdrop-layout="home"] .hero-copy {
  max-width: 620px;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.83), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 0 0 1px rgba(132, 150, 212, 0.2), 0 16px 44px rgba(73, 84, 147, 0.12);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.lexi-backdrop[data-backdrop-layout="home"] .hero-copy h1 {
  max-width: 590px;
  margin-bottom: 17px;
  font-size: clamp(2.45rem, 4.3vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lexi-backdrop[data-backdrop-layout="home"] .hero-copy .lede {
  max-width: 520px;
  font-size: 1rem;
}

.lexi-backdrop[data-backdrop-layout="home"] .hero-live-panel {
  padding: clamp(18px, 2.2vw, 26px);
  overflow: visible;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(233, 242, 255, 0.84), rgba(241, 229, 252, 0.76)),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  box-shadow:
    0 0 0 2px var(--lx-v3-line-soft),
    inset 0 0 0 5px rgba(255, 255, 255, 0.35),
    0 22px 48px rgba(61, 73, 140, 0.22);
}

.lexi-backdrop[data-backdrop-layout="home"] .hero-live-panel::before { content: none; }

.lexi-backdrop[data-backdrop-layout="home"] .hero-live-panel::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  top: auto;
  z-index: 3;
  width: 122px;
  height: 120px;
  border: 0;
  background: url("schedule/lexi-teacup.png") center bottom / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px rgba(65, 72, 132, 0.22));
  transform: rotate(4deg);
  pointer-events: none;
}

.lexi-backdrop[data-backdrop-layout="home"] .compact-live-copy {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.lexi-backdrop[data-backdrop-layout="home"] .hero-twitch {
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 0 0 2px var(--lx-v3-line-soft), 0 15px 36px rgba(58, 67, 126, 0.18);
}

.lexi-backdrop[data-backdrop-layout="home"] .homepage-oracle-strip {
  gap: 24px;
  padding-bottom: 44px;
}

.lexi-backdrop[data-backdrop-layout="home"] .oracle-card,
.lexi-backdrop[data-backdrop-layout="home"] .feature-card {
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(230, 234, 255, 0.78));
  box-shadow: 0 0 0 2px var(--lx-v3-line-soft), 0 20px 44px rgba(67, 75, 139, 0.16);
}

.lexi-backdrop[data-backdrop-layout="home"] .card-of-day {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.95) 0 38%, rgba(240, 246, 255, 0.72) 56%, rgba(219, 220, 252, 0.22) 100%),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center 58% / cover no-repeat;
}

.lexi-backdrop[data-backdrop-layout="home"] .random-game-card {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.93), rgba(225, 236, 255, 0.64)),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
}

.lexi-backdrop[data-backdrop-layout="home"] .sealed-artifact-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(237, 220, 249, 0.78)),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
}

.lexi-backdrop[data-backdrop-layout="home"] .content-grid { gap: 24px; }

.lexi-backdrop[data-backdrop-layout="home"] .feature-card:first-child {
  min-height: 250px;
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.94) 0 50%, rgba(226, 233, 255, 0.36)),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
}

.lexi-backdrop[data-backdrop-layout="home"] .feature-card:nth-child(2) {
  background: linear-gradient(145deg, rgba(250, 254, 255, 0.94), rgba(196, 228, 249, 0.72));
}

.lexi-backdrop[data-backdrop-layout="home"] .feature-card:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 252, 255, 0.94), rgba(234, 207, 240, 0.72));
}

body.lexi-backdrop[data-style="midnight-aurora"] > .site-footer,
body.lexi-backdrop[data-style="midnight-aurora"] .games-bottom {
  color: rgba(248, 246, 255, 0.9);
}

body.lexi-backdrop[data-style="midnight-aurora"] .games-bottom a {
  color: #ffffff;
  text-decoration-color: rgba(190, 210, 255, 0.74);
}
/* Schedule: scenic title, detached lavender dock, protected calendar surface. */
.lexi-backdrop.calendar-page::before {
  top: 108px;
  left: -120px;
  width: clamp(300px, 30vw, 460px);
  opacity: 0.52;
}

.lexi-backdrop.calendar-page::after {
  top: 52px;
  right: -110px;
  width: clamp(360px, 36vw, 560px);
  opacity: 0.62;
}

.lexi-backdrop.calendar-page .calendar-intro {
  min-height: 280px;
  margin: 42px 0 26px;
  padding: clamp(34px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  background:
    linear-gradient(95deg, rgba(255, 255, 255, 0.96) 0 48%, rgba(245, 239, 255, 0.72) 65%, rgba(198, 220, 252, 0.2)),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  box-shadow: var(--lx-v3-shell);
}

.lexi-backdrop.calendar-page .calendar-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, transparent 0 57%, rgba(184, 220, 249, 0.26) 57% 68%, transparent 68%),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
  opacity: 0.65;
  pointer-events: none;
}

.lexi-backdrop.calendar-page .calendar-intro::after {
  content: "";
  position: absolute;
  top: -82px;
  right: 4%;
  bottom: auto;
  z-index: 0;
  width: 105px;
  height: 315px;
  border: 0;
  background: url("backdrop/illustrated/celestial-charm-v3.webp") center top / contain no-repeat;
  opacity: 0.88;
  filter: drop-shadow(0 12px 20px rgba(80, 74, 143, 0.2));
  transform: rotate(2deg);
  pointer-events: none;
}

.lexi-backdrop.calendar-page .calendar-intro-copy { position: relative; z-index: 1; max-width: 720px; }
.lexi-backdrop.calendar-page .calendar-intro h1 { font-size: clamp(2.7rem, 5vw, 4.4rem); }

.lexi-backdrop.calendar-page .calendar-next {
  gap: 26px;
  min-height: 108px;
  margin: 0 auto 34px;
  padding: 20px clamp(24px, 4vw, 44px);
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(170, 176, 239, 0.92), rgba(186, 207, 249, 0.9) 52%, rgba(236, 207, 236, 0.88));
  box-shadow: 0 0 0 2px var(--lx-v3-line-soft), 0 16px 36px rgba(70, 77, 143, 0.18);
}

.lexi-backdrop.calendar-page .calendar-next-mascot {
  width: 104px;
  height: 122px;
  margin: -28px 0 -20px;
  border: 0;
  background: transparent;
}

.lexi-backdrop.calendar-page .calendar-next-copy,
.lexi-backdrop.calendar-page .calendar-next-copy p,
.lexi-backdrop.calendar-page .calendar-next h2 { color: #3f426b; }

.lexi-backdrop.calendar-page .calendar-next .button { background: rgba(255, 255, 255, 0.72); }

.lexi-backdrop.calendar-page .calendar-workspace {
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--lx-v3-shell);
}

.lexi-backdrop.calendar-page .calendar-toolbar {
  padding: 28px 28px 20px;
  background:
    linear-gradient(104deg, rgba(239, 246, 255, 0.98), rgba(242, 235, 253, 0.94) 56%, rgba(255, 241, 248, 0.94)),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
  border-bottom: 1px solid rgba(130, 145, 204, 0.2);
}

.lexi-backdrop.calendar-page .calendar-meta,
.lexi-backdrop.calendar-page .calendar-genre-key { background: rgba(250, 249, 255, 0.96); }

.lexi-backdrop.calendar-page .calendar-meta { padding-top: 15px; }

.lexi-backdrop.calendar-page .calendar-status {
  border-color: rgba(130, 145, 204, 0.2);
  background: linear-gradient(90deg, #edf5ff, #f4effc 54%, #fff2f7);
}

.lexi-backdrop.calendar-page .calendar-weekdays,
.lexi-backdrop.calendar-page .lexi-calendar-grid { background: #fff; }

.lexi-backdrop.calendar-page .calendar-cell { background: rgba(255, 255, 255, 0.995); }
.lexi-backdrop.calendar-page .calendar-cell.outside-month { background: #f8f8fc; }

.lexi-backdrop.calendar-page .calendar-sticker-garden {
  display: block;
  height: 96px;
  background:
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / 820px auto no-repeat,
    linear-gradient(90deg, #eef7ff, #f3effe 52%, #fff1f7);
}

.lexi-backdrop.calendar-page .calendar-sticker-anubis { left: 38px; height: 118px; bottom: -30px; }
.lexi-backdrop.calendar-page .calendar-sticker-casual { right: 38px; height: 112px; bottom: -28px; }

/* Games: scenic opening shell and image-led bento highlights. */
.lexi-backdrop.lexi-games-page::before {
  top: 90px;
  left: -145px;
  width: clamp(340px, 33vw, 520px);
  opacity: 0.56;
}

.lexi-backdrop.lexi-games-page::after {
  top: 45px;
  right: -95px;
  width: clamp(400px, 40vw, 620px);
  opacity: 0.67;
}

.lexi-backdrop.lexi-games-page .games-intro {
  min-height: 330px;
  margin: 42px 0 40px;
  padding: clamp(36px, 4.5vw, 60px);
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  background:
    linear-gradient(96deg, rgba(255, 255, 255, 0.96) 0 45%, rgba(244, 238, 255, 0.74) 61%, rgba(193, 218, 251, 0.2)),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  box-shadow: var(--lx-v3-shell);
}

.lexi-backdrop.lexi-games-page .games-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(160deg, transparent 0 56%, rgba(176, 213, 247, 0.24) 56% 66%, transparent 66%),
    url("backdrop/illustrated/petals-sparkles-v3.webp") center / cover no-repeat;
  opacity: 0.64;
  pointer-events: none;
}

.lexi-backdrop.lexi-games-page .games-intro::after { content: none; }
.lexi-backdrop.lexi-games-page .games-intro > :not(.lx-backdrop-scene) { position: relative; z-index: 1; }

.lexi-backdrop.lexi-games-page .games-shelf-note {
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  color: var(--lx-v3-ink-deep);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(218, 230, 255, 0.68));
  box-shadow: 0 0 0 2px var(--lx-v3-line-soft), 0 18px 42px rgba(64, 74, 139, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lexi-backdrop.lexi-games-page .games-shelf-note::after {
  top: auto;
  right: -22px;
  bottom: -30px;
  width: 170px;
  height: 100px;
  background: url("backdrop/illustrated/petals-sparkles-v3.webp") right bottom / 420px auto no-repeat;
  clip-path: none;
  opacity: 0.75;
}

.lexi-backdrop.lexi-games-page .games-status {
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(90deg, rgba(235, 246, 255, 0.94), rgba(242, 234, 252, 0.94), rgba(255, 239, 247, 0.94));
  box-shadow: 0 0 0 1px var(--lx-v3-line-soft), 0 10px 25px rgba(76, 84, 146, 0.12);
}

.lexi-backdrop.lexi-games-page .games-discovery {
  padding: clamp(18px, 2.5vw, 28px);
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(231, 235, 254, 0.68));
  box-shadow: 0 0 0 2px var(--lx-v3-line-soft), 0 22px 52px rgba(67, 75, 139, 0.16);
}

.lexi-backdrop.lexi-games-page .games-highlight {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px var(--lx-v3-line-soft), 0 18px 38px rgba(64, 73, 137, 0.16);
}

.lexi-backdrop.lexi-games-page .games-highlight-media {
  min-height: 150px;
  border-bottom: 1px solid rgba(126, 145, 205, 0.26);
  background:
    linear-gradient(135deg, rgba(121, 144, 217, 0.12), rgba(239, 187, 218, 0.12)),
    url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
}

.lexi-backdrop.lexi-games-page .games-highlight-media::before {
  background: linear-gradient(180deg, transparent 56%, rgba(47, 53, 96, 0.28));
  opacity: 1;
}

.lexi-backdrop.lexi-games-page .games-highlight-initials {
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  color: #fff;
  background: rgba(63, 67, 117, 0.48);
  text-shadow: 0 2px 10px rgba(29, 35, 75, 0.42);
  backdrop-filter: blur(8px);
}

.lexi-backdrop.lexi-games-page .games-library {
  border: 2px solid rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--lx-v3-shell);
}

.lexi-backdrop.lexi-games-page .games-library-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 145, 205, 0.56);
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.99), rgba(116, 127, 177, 0.96));
  box-shadow: 0 11px 25px rgba(66, 76, 139, 0.16);
}

.lexi-backdrop.lexi-games-page .games-library-card::before { display: none; }

.lexi-backdrop.lexi-games-page .games-library-card.favorite {
  background: linear-gradient(150deg, #fffdf8, #f8f0ff 74%, #edf6ff);
}

/* Responsive composition keeps the artwork but protects controls. */
@media (max-width: 1100px) {
  body.lexi-backdrop::before { left: -190px; opacity: 0.5; }
  body.lexi-backdrop::after { right: -180px; opacity: 0.55; }

  .lexi-backdrop[data-backdrop-layout="home"] .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    background:
      linear-gradient(100deg, rgba(255, 255, 255, 0.95), rgba(244, 242, 255, 0.72)),
      url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  }

  .lexi-backdrop[data-backdrop-layout="home"] .hero-copy { max-width: 760px; }
}

@media (max-width: 900px) {
  .lexi-backdrop .homepage-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand visits" "primary primary" "artifacts artifacts";
  }

  .lexi-backdrop.lexi-games-page .games-discovery { padding: 22px; }
}

@media (min-width: 651px) and (max-width: 900px) {
  .lexi-backdrop.lexi-games-page .games-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lexi-backdrop.lexi-games-page .games-highlight {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 760px) {
  body.lexi-backdrop {
    background:
      radial-gradient(circle at 8% 5%, rgba(180, 218, 248, 0.62), transparent 25%),
      radial-gradient(circle at 92% 12%, rgba(242, 192, 220, 0.42), transparent 24%),
      linear-gradient(150deg, #f7fbff, #f0edfb 52%, #fff4f9);
  }

  body.lexi-backdrop::before {
    top: 112px;
    left: -86px;
    width: 230px;
    opacity: 0.54;
  }

  body.lexi-backdrop::after {
    top: 116px;
    right: -76px;
    width: 220px;
    opacity: 0.58;
  }

  body.lexi-backdrop > main::before {
    top: 150px;
    width: 760px;
    height: 520px;
    opacity: 0.34;
  }

  .lexi-backdrop .site-header {
    position: relative;
    top: 0;
    width: calc(100% - 20px);
    margin: 12px auto 0;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    box-shadow: 0 0 0 2px var(--lx-v3-line), 0 12px 30px var(--lx-v3-shadow);
  }

  .lexi-backdrop .site-header::before { inset: 4px; border-radius: 19px; }
  .lexi-backdrop .brand { padding: 6px 8px; font-size: 0.95rem; }
  .lexi-backdrop .nav-links { width: 100%; }

  .lexi-backdrop[data-backdrop-layout="home"] .hero,
  .lexi-backdrop.calendar-page .calendar-intro,
  .lexi-backdrop.lexi-games-page .games-intro {
    margin-top: 28px;
    padding: 26px 20px;
    border-radius: 26px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.86), 0 0 0 5px var(--lx-v3-line-soft), 0 18px 40px var(--lx-v3-shadow);
  }

  .lexi-backdrop[data-backdrop-layout="home"] .hero {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(235, 235, 255, 0.74)),
      url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  }

  .lexi-backdrop[data-backdrop-layout="home"] .hero-copy {
    padding: 20px;
    border-radius: 22px;
  }

  .lexi-backdrop[data-backdrop-layout="home"] .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.05rem);
  }

  .lexi-backdrop[data-backdrop-layout="home"] .hero-live-panel { border-radius: 22px; }

  .lexi-backdrop[data-backdrop-layout="home"] .hero-live-panel::after {
    right: -16px;
    bottom: -22px;
    width: 84px;
    height: 84px;
  }

  .lexi-backdrop[data-backdrop-layout="home"] .oracle-card,
  .lexi-backdrop[data-backdrop-layout="home"] .feature-card { border-radius: 23px; }

  .lexi-backdrop.calendar-page .calendar-intro,
  .lexi-backdrop.lexi-games-page .games-intro {
    min-height: 250px;
    background:
      linear-gradient(105deg, rgba(255, 255, 255, 0.94), rgba(235, 234, 255, 0.7)),
      url("backdrop/illustrated/moonlit-lake-v3.webp") center / cover no-repeat;
  }

  .lexi-backdrop.calendar-page .calendar-intro::after {
    top: -32px;
    right: 8px;
    width: 64px;
    height: 196px;
    opacity: 0.6;
  }

  .lexi-backdrop.calendar-page .calendar-intro {
    min-height: 0;
    margin: 18px 0;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .lexi-backdrop.calendar-page .calendar-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 11vw, 2.65rem);
  }

  .lexi-backdrop.calendar-page .calendar-intro-links { gap: 12px; }

  .lexi-backdrop.calendar-page .calendar-next {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 12px;
    min-height: 0;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  .lexi-backdrop.calendar-page .calendar-next-mascot {
    grid-column: 1;
    width: 60px;
    height: 70px;
    margin: -8px 0 -4px;
  }

  .lexi-backdrop.calendar-page .calendar-next-copy {
    grid-column: 2;
    min-width: 0;
  }

  .lexi-backdrop.calendar-page .calendar-next .button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    margin-left: 0;
  }

  .lexi-backdrop.calendar-page .calendar-kicker { margin-bottom: 5px; }
  .lexi-backdrop.calendar-page .calendar-next h2 { margin-bottom: 4px; font-size: 1.12rem; }
  .lexi-backdrop.calendar-page .calendar-next-copy > p:last-child { font-size: .82rem; line-height: 1.4; }
  .lexi-backdrop.calendar-page .calendar-next-games { gap: 6px; margin-top: 7px; }

  .lexi-backdrop.calendar-page .calendar-workspace,
  .lexi-backdrop.lexi-games-page .games-library { border-radius: 24px; }

  .lexi-backdrop.calendar-page .calendar-toolbar { padding: 20px 14px 16px; }

  .lexi-backdrop.calendar-page #monthView {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .lexi-backdrop.calendar-page #monthView .calendar-weekdays,
  .lexi-backdrop.calendar-page #monthView .lexi-calendar-grid { min-width: 760px; }

  .lexi-backdrop.calendar-page .calendar-sticker-garden { display: block; height: 76px; }
  .lexi-backdrop.calendar-page .calendar-sticker-anubis { left: 14px; height: 88px; }
  .lexi-backdrop.calendar-page .calendar-sticker-casual { right: 14px; height: 84px; }

  .lexi-backdrop.lexi-games-page .games-discovery {
    padding: 14px 10px;
    border-radius: 22px;
  }

  .lexi-backdrop.lexi-games-page .games-highlights { gap: 14px; }
  .lexi-backdrop.lexi-games-page .games-highlight { border-radius: 18px; }
  .lexi-backdrop.lexi-games-page .games-highlight-media { min-height: 0; }
  .lexi-backdrop.lexi-games-page .games-library { padding: 22px 16px; }
}

@media (max-width: 520px) {
  .lexi-backdrop .homepage-header { grid-template-areas: "brand visits" "primary primary" "artifacts artifacts"; }
  .lexi-backdrop .visit-counter { font-size: 0.72rem; padding-inline: 8px; }
  .lexi-backdrop .nav-links a,
  .lexi-backdrop .artifact-shortcuts a { font-size: 0.74rem; padding-inline: 10px; }

  .lexi-backdrop[data-backdrop-layout="home"] .hero-actions .button,
  .lexi-backdrop.lexi-games-page .games-intro-links .button { width: 100%; }

  .lexi-backdrop.calendar-page .calendar-next-copy { min-width: 0; }
  .lexi-backdrop.calendar-page .calendar-next .button { width: 100%; }
  .lexi-backdrop.calendar-page .calendar-sticker-sparkles { display: none; }
}


/* Wide schedules use a horizontal overview; short desktop screens switch the
   month grid to an at-a-glance treatment so the complete month stays visible. */
@media (min-width: 1100px) {
  .lexi-backdrop.calendar-page .calendar-overview {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(420px, 2fr);
    gap: 20px;
    align-items: stretch;
    margin: 24px 0 20px;
  }

  .lexi-backdrop.calendar-page .calendar-intro {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 210px;
    margin: 0;
    padding: 24px 32px;
    border-radius: 28px;
  }

  .lexi-backdrop.calendar-page .calendar-intro h1 {
    margin-bottom: 14px;
    font-size: clamp(2.8rem, 3.6vw, 3.45rem);
  }

  .lexi-backdrop.calendar-page .calendar-intro::after {
    top: -46px;
    right: 3%;
    width: 78px;
    height: 235px;
  }

  .lexi-backdrop.calendar-page .calendar-next {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 16px;
    row-gap: 10px;
    min-width: 0;
    min-height: 210px;
    margin: 0;
    padding: 20px 22px;
    border-radius: 28px;
  }

  .lexi-backdrop.calendar-page .calendar-next-mascot {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 72px;
    height: 88px;
    margin: 0;
  }

  .lexi-backdrop.calendar-page .calendar-next-copy { grid-column: 2; min-width: 0; }
  .lexi-backdrop.calendar-page .calendar-next-copy > p:last-child { font-size: .82rem; line-height: 1.4; }
  .lexi-backdrop.calendar-page .calendar-next-games { gap: 5px; margin-top: 6px; }
  .lexi-backdrop.calendar-page .calendar-next-games .calendar-game-chip { gap: 5px; padding: 4px 7px; }

  .lexi-backdrop.calendar-page .calendar-next .button {
    grid-column: 2;
    justify-self: start;
    min-height: 44px;
    margin-left: 0;
  }

  .lexi-backdrop.calendar-page .calendar-toolbar { gap: 14px; padding: 14px 20px 12px; }
  .lexi-backdrop.calendar-page .calendar-toolbar .calendar-meta { justify-content: center; padding: 0; }
  .lexi-backdrop.calendar-page .calendar-icon-button,
  .lexi-backdrop.calendar-page .calendar-small-button { min-width: 40px; height: 40px; }
  .lexi-backdrop.calendar-page .calendar-view-switch button { min-height: 34px; }
  .lexi-backdrop.calendar-page .calendar-meta select { min-height: 40px; }
  .lexi-backdrop.calendar-page .calendar-genre-key { padding: 0 20px 10px; }
  .lexi-backdrop.calendar-page .calendar-weekdays { padding: 8px 0 6px; }
}

@media (min-width: 1100px) and (max-height: 1100px) {
  .lexi-backdrop.calendar-page .calendar-overview {
    gap: 20px;
    margin: 18px 0 16px;
  }

  .lexi-backdrop.calendar-page .calendar-intro {
    min-height: 190px;
    padding: 20px 28px;
  }

  .lexi-backdrop.calendar-page .calendar-intro h1 {
    margin-bottom: 12px;
    font-size: clamp(2.75rem, 3.5vw, 3.4rem);
  }

  .lexi-backdrop.calendar-page .calendar-next {
    min-height: 190px;
    padding: 16px 20px;
  }

  .lexi-backdrop.calendar-page .calendar-next-mascot { width: 64px; height: 76px; }
  .lexi-backdrop.calendar-page .calendar-toolbar { padding: 10px 18px 8px; }
  .lexi-backdrop.calendar-page .calendar-meta { font-size: .69rem; }
  .lexi-backdrop.calendar-page .calendar-meta select { min-height: 36px; padding-block: 4px; }
  .lexi-backdrop.calendar-page .calendar-genre-key { padding: 0 18px 6px; }
  .lexi-backdrop.calendar-page .calendar-weekdays { padding: 6px 0 4px; }

  .lexi-backdrop.calendar-page .lexi-calendar-grid { grid-auto-rows: 82px; }
  .lexi-backdrop.calendar-page .lexi-calendar-grid[data-weeks="6"] { grid-auto-rows: 76px; }
  .lexi-backdrop.calendar-page .calendar-cell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 5px 7px;
  }

  .lexi-backdrop.calendar-page .calendar-cell-number { width: 22px; height: 22px; font-size: .72rem; }
  .lexi-backdrop.calendar-page .calendar-cell-time { margin: 1px 0 3px; font-size: .65rem; }
  .lexi-backdrop.calendar-page .calendar-cell-event { margin-top: 2px; padding: 3px 5px; font-size: .7rem; }
  .lexi-backdrop.calendar-page .calendar-cell-event.has-art { display: block; }
  .lexi-backdrop.calendar-page .calendar-cell-event-art,
  .lexi-backdrop.calendar-page .calendar-cell-event-overflow { display: none; }
  .lexi-backdrop.calendar-page .calendar-cell-event.calendar-cell-event-overflow { display: none; }
  .lexi-backdrop.calendar-page .calendar-cell-event-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px;
  }
  .lexi-backdrop.calendar-page .calendar-cell-event-label {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .lexi-backdrop.calendar-page .calendar-cell-event-genre { margin: 0; font-size: .6rem; white-space: nowrap; }
  .lexi-backdrop.calendar-page .calendar-cell-more {
    position: absolute;
    top: 7px;
    right: 7px;
    display: block;
    margin: 0;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(239, 234, 251, .96);
    color: #5f577c;
    font-size: .62rem;
    font-weight: 900;
  }

  .lexi-backdrop.calendar-page .calendar-sticker-garden { display: none; }
  .lexi-backdrop.calendar-page .calendar-bottom { padding: 9px 18px; }
}

/* Wide game shelves use compact landscape cards in one discovery board.
   This keeps the artwork prominent while putting the library within the first
   desktop screen instead of making each item behave like a feature poster. */
@media (min-width: 1180px) {
  .lexi-backdrop.lexi-games-page .games-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(390px, .95fr);
    gap: 20px;
    align-items: start;
    width: min(1420px, calc(100% - 40px));
  }

  .lexi-backdrop.lexi-games-page .games-intro {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, .72fr);
    gap: 32px;
    min-height: 0;
    margin: 18px 0 0;
    padding: 24px 30px;
    border-radius: 28px;
  }

  .lexi-backdrop.lexi-games-page .games-intro h1 {
    margin-bottom: 8px;
    font-size: clamp(3rem, 3.7vw, 3.6rem);
  }

  .lexi-backdrop.lexi-games-page .games-lede {
    margin: 0 0 14px;
    font-size: .96rem;
    line-height: 1.45;
  }

  .lexi-backdrop.lexi-games-page .games-intro-links { gap: 14px; }
  .lexi-backdrop.lexi-games-page .games-shelf-note { padding: 16px 20px; }

  .lexi-backdrop.lexi-games-page .games-note-number {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 0 0 8px;
    font-size: .78rem;
  }

  .lexi-backdrop.lexi-games-page .games-note-number strong {
    display: inline;
    font-size: 2.3rem;
  }

  .lexi-backdrop.lexi-games-page .games-note-next {
    padding-top: 8px;
    font-size: .76rem;
    line-height: 1.4;
  }

  .lexi-backdrop.lexi-games-page .games-status {
    grid-column: 1 / -1;
    margin: 0;
  }

  .lexi-backdrop.lexi-games-page .games-discovery {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    border-radius: 24px;
  }

  .lexi-backdrop.lexi-games-page .games-library {
    grid-column: 1 / -1;
    padding: 20px 24px 22px;
  }

  .lexi-backdrop.lexi-games-page .games-bottom,
  .lexi-backdrop.lexi-games-page noscript { grid-column: 1 / -1; }

  .lexi-backdrop.lexi-games-page .games-section-heading {
    gap: 12px;
    margin-bottom: 12px;
  }

  .lexi-backdrop.lexi-games-page .games-section-heading h2 { font-size: 1.45rem; }

  .lexi-backdrop.lexi-games-page .games-highlights {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 12px;
  }

  .lexi-backdrop.lexi-games-page .games-highlights .games-highlight {
    grid-column: auto !important;
    grid-row: auto !important;
    display: grid;
    grid-template-columns: minmax(140px, 43%) minmax(0, 1fr);
    min-height: 178px;
    border-radius: 17px;
  }

  .lexi-backdrop.lexi-games-page .games-highlight-media {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid rgba(126, 145, 205, .26);
    border-bottom: 0;
  }

  .lexi-backdrop.lexi-games-page .games-highlight-body {
    gap: 5px;
    min-width: 0;
    padding: 11px 12px;
  }

  .lexi-backdrop.lexi-games-page .games-highlight h3 {
    font-size: .94rem;
    line-height: 1.25;
  }

  .lexi-backdrop.lexi-games-page .games-highlight-summary {
    font-size: .74rem;
    line-height: 1.35;
  }

  .lexi-backdrop.lexi-games-page .games-release-date { font-size: .8rem; }
  .lexi-backdrop.lexi-games-page .games-platforms { margin: -2px 0 0; font-size: .67rem; }
  .lexi-backdrop.lexi-games-page .games-highlight-actions { gap: 7px; }
  .lexi-backdrop.lexi-games-page .games-highlight-actions a { min-height: 30px; font-size: .7rem; }
  .lexi-backdrop.lexi-games-page .games-source-checked { display: none; }
  .lexi-backdrop.lexi-games-page .games-trailer-play span { padding: 8px 11px; font-size: .7rem; }

  .lexi-backdrop.lexi-games-page .games-library-toolbar {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(170px, 220px) minmax(170px, 220px);
    gap: 10px;
    margin-bottom: 14px;
  }

  .lexi-backdrop.lexi-games-page .games-library-toolbar label { gap: 5px; }

  .lexi-backdrop.lexi-games-page .games-library-toolbar input,
  .lexi-backdrop.lexi-games-page .games-library-toolbar select {
    min-height: 40px;
    padding-block: 7px;
  }

  .lexi-backdrop.lexi-games-page .games-library-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
  }

  .lexi-backdrop.lexi-games-page .games-library-card {
    aspect-ratio: 5 / 7;
    border-radius: 15px;
  }

  .lexi-backdrop.lexi-games-page .games-library-card-body { padding: 8px; }
  .lexi-backdrop.lexi-games-page .games-load-more { margin-top: 16px; }
  .lexi-backdrop.lexi-games-page .games-bottom { padding: 14px 0 20px; }
}

@media (max-width: 1099px) {
  .lexi-backdrop.calendar-page .calendar-toolbar { flex-wrap: wrap; }
  .lexi-backdrop.calendar-page .calendar-toolbar .calendar-meta {
    flex: 1 0 100%;
    padding: 8px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lexi-backdrop .button,
  .lexi-backdrop .nav-links a,
  .lexi-backdrop .artifact-shortcuts a,
  .lexi-backdrop .oracle-card,
  .lexi-backdrop .feature-card { transition: none; }
}

@media (prefers-contrast: more) {
  body.lexi-backdrop::before,
  body.lexi-backdrop::after,
  body.lexi-backdrop > main::before { opacity: 0.18; }

  .lexi-backdrop .hero-copy,
  .lexi-backdrop .hero-live-panel,
  .lexi-backdrop .calendar-workspace,
  .lexi-backdrop .games-library { background-color: #fff; }
}

@media print {
  body.lexi-backdrop { background: #fff; }
  body.lexi-backdrop::before,
  body.lexi-backdrop::after,
  body.lexi-backdrop > main::before,
  .lexi-backdrop .hero-live-panel::after { display: none; }

  .lexi-backdrop .site-header,
  .lexi-backdrop .hero,
  .lexi-backdrop .calendar-intro,
  .lexi-backdrop .calendar-workspace,
  .lexi-backdrop .games-intro,
  .lexi-backdrop .games-library { box-shadow: none; }
}
