:root, html[data-theme="light"] {
  --dl-paper: #F8F6F1;
  --dl-paper2: #EFEAE0;
  --dl-paper3: #E9E3D6;
  --dl-ink: #1E2436;
  --dl-ink-soft: #5B6478;
  --dl-ink-faint: #8890A0;
  --dl-line: #E1DBCC;
  --dl-logo: #1E2436;
}
html[data-theme="dark"] {
  --dl-paper: #10141c;
  --dl-paper2: #161b25;
  --dl-paper3: #1c2230;
  --dl-ink: #EDEAE3;
  --dl-ink-soft: #A8B0C0;
  --dl-ink-faint: #7E8798;
  --dl-line: #2a3142;
  --dl-logo: #BFDBFE;
}
html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01"; background: var(--dl-paper); color: var(--dl-ink); }
::selection { background: #C3D0E8; color: #171F35; }
.devlooper-logo { color: var(--dl-logo); }
.devlooper-logo svg { display: block; height: 1.375rem; width: auto; }
#siteHeader .devlooper-logo svg { height: 36px; }
.hub-aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hub-aurora span {
  position: absolute; width: 48vw; height: 48vw; border-radius: 50%;
  filter: blur(70px); opacity: .42; will-change: transform, opacity;
}
.hub-aurora span:nth-child(1) {
  background: rgba(78,102,164,.55);
  top: -18%; left: -14%;
  animation: aurora-a 18s ease-in-out infinite;
}
.hub-aurora span:nth-child(2) {
  background: rgba(31,122,114,.45);
  top: -4%; right: -16%;
  animation: aurora-b 22s ease-in-out infinite;
}
.hub-aurora span:nth-child(3) {
  background: rgba(180,140,80,.28);
  bottom: -22%; left: 18%;
  animation: aurora-c 16s ease-in-out infinite;
}
.hub-aurora span:nth-child(4) {
  width: 34vw; height: 34vw;
  background: rgba(78,102,164,.32);
  top: 38%; left: 42%;
  animation: aurora-d 20s ease-in-out infinite;
}
html[data-theme="dark"] .hub-aurora span:nth-child(1) { background: rgba(90,120,200,.38); opacity: .55; }
html[data-theme="dark"] .hub-aurora span:nth-child(2) { background: rgba(40,160,150,.32); opacity: .5; }
html[data-theme="dark"] .hub-aurora span:nth-child(3) { background: rgba(212,181,106,.18); opacity: .45; }
html[data-theme="dark"] .hub-aurora span:nth-child(4) { background: rgba(120,150,220,.28); opacity: .4; }
@keyframes aurora-a {
  0%   { transform: translate(0, 0) scale(1); opacity: .38; }
  25%  { transform: translate(22vw, 18vh) scale(1.22); opacity: .55; }
  50%  { transform: translate(8vw, 34vh) scale(.92); opacity: .32; }
  75%  { transform: translate(28vw, 8vh) scale(1.18); opacity: .5; }
  100% { transform: translate(0, 0) scale(1); opacity: .38; }
}
@keyframes aurora-b {
  0%   { transform: translate(0, 0) scale(1.05); opacity: .4; }
  30%  { transform: translate(-24vw, 16vh) scale(1.28); opacity: .52; }
  55%  { transform: translate(-10vw, 32vh) scale(.88); opacity: .3; }
  80%  { transform: translate(-28vw, 4vh) scale(1.15); opacity: .48; }
  100% { transform: translate(0, 0) scale(1.05); opacity: .4; }
}
@keyframes aurora-c {
  0%   { transform: translate(0, 0) scale(1); opacity: .28; }
  20%  { transform: translate(16vw, -22vh) scale(1.2); opacity: .42; }
  45%  { transform: translate(-12vw, -28vh) scale(1.08); opacity: .34; }
  70%  { transform: translate(20vw, -10vh) scale(.9); opacity: .26; }
  100% { transform: translate(0, 0) scale(1); opacity: .28; }
}
@keyframes aurora-d {
  0%   { transform: translate(0, 0) scale(.85); opacity: .22; }
  35%  { transform: translate(-18vw, -16vh) scale(1.25); opacity: .4; }
  60%  { transform: translate(14vw, 12vh) scale(1.05); opacity: .3; }
  100% { transform: translate(0, 0) scale(.85); opacity: .22; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-aurora span { animation: none; }
}
.games-subheader {
  position: relative; z-index: 40;
  border-bottom: 1px solid var(--dl-line);
  background: color-mix(in srgb, var(--dl-paper) 82%, transparent);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  line-height: 1.4;
}
.games-subheader__text { margin: 0; color: var(--dl-ink-soft); }
.games-subheader__text a { color: var(--dl-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.games-subheader__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 1.85rem; padding: 0 .85rem; border-radius: 999px;
  background: var(--dl-ink); color: var(--dl-paper); font-weight: 650; font-size: 12px;
  white-space: nowrap;
}
html[data-theme="dark"] .games-subheader__cta { background: #BFDBFE; color: #171F35; }
.games-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: #2E3F6E; background: #F1F4FA; padding: .15rem .5rem; border-radius: 999px;
}
html[data-theme="dark"] .games-badge { color: #BFDBFE; background: rgba(191,219,254,.12); }
.theme-toggle {
  width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--dl-line);
  background: var(--dl-paper2); color: var(--dl-ink); cursor: pointer;
  display: grid; place-items: center;
}
.theme-toggle__icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: inline; }
.infinity-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--dl-line), transparent); }
.legal-article h2 { font-size: 1.15rem; margin: 1.75rem 0 .6rem; }
.legal-article p, .legal-article li { color: var(--dl-ink-soft); font-size: 15px; line-height: 1.65; }
.legal-article ul { margin: .4rem 0 1rem 1.1rem; list-style: disc; }
.legal-kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dl-ink-faint); }
.legal-intro { font-size: 1.05rem !important; color: var(--dl-ink) !important; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid #4E66A4; outline-offset: 2px;
}

.lib-shelf { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .lib-shelf { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .lib-shelf { grid-template-columns: repeat(3, 1fr); } }
.lib-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.35rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px -24px rgba(30, 36, 54, .35);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.lib-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -22px rgba(30, 36, 54, .4); }
.lib-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.lib-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-body { padding: 1.15rem 1.25rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.lib-card h3 { margin: 0 0 8px; font-size: 1.7rem; line-height: 1.15; }
.lib-card p { margin: 0; font-size: 14.5px; line-height: 1.5; flex: 1; }
.lib-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-size: 13.5px;
  font-weight: 700;
}
.lib-card--scorepad {
  background: #143028;
  color: #fff8ea;
  border: 1px solid #2a4a3c;
}
.lib-card--scorepad h3 { font-family: Fraunces, Georgia, serif; font-weight: 650; color: #f0d99a; }
.lib-card--scorepad p { color: rgba(255, 248, 234, .72); }
.lib-card--scorepad .lib-cta { color: #e8b84a; }
.lib-card--unmask {
  background: #1a1022;
  color: #f4ead6;
  border: 1px solid rgba(212, 181, 106, .28);
}
.lib-card--unmask h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; font-size: 1.9rem; color: #f0d99a; }
.lib-card--unmask p { color: rgba(244, 234, 214, .7); }
.lib-card--unmask .lib-cta { color: #d4b56a; }
.lib-card--lottobouse {
  background: #143d28;
  color: #f8f2d5;
  border: 1px solid rgba(246, 231, 162, .28);
}
.lib-card--lottobouse h3 { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-weight: 800; color: #f6e7a2; }
.lib-card--lottobouse p { color: rgba(248, 242, 213, .72); }
.lib-card--lottobouse .lib-cta { color: #e8c46b; }
