/* Lucid Lux game info pages. Native system fonts only; no web-font requests. */
:root { --bg: #0E0D12; --panel: #17161D; --panel2: #1D1C24; --line: #2A2833; --ink: #F3F1F7; --soft: #A9A5B5; --accent: #FF5A4E; --tint: #FF5A4E; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
a { color: var(--ink); }
img { max-width: 100%; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.bar { padding: calc(env(safe-area-inset-top, 0px) + 14px) 0 10px; }
.bar .wrap { display: flex; align-items: center; gap: 12px; }
.home { font-weight: 900; letter-spacing: -0.02em; text-decoration: none; font-size: 20px;
  background: linear-gradient(90deg, #FF2D55, #FFB000 30%, #2BD46B 55%, #2B8CFF 78%, #A23BFF);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.crumb { color: var(--soft); font-size: 14px; }

/* hero / cover banner */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center;
  filter: blur(28px) saturate(1.3) brightness(0.45); transform: scale(1.1); }
.hero.cover .hero-bg { inset: 0; filter: brightness(0.55); transform: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg)); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; padding: 56px 0 40px; }
.hero-in img.icon { width: 132px; height: 132px; border-radius: 30px; display: block; box-shadow: 0 10px 40px rgba(0,0,0,0.5); background: var(--panel); }
.hero h1 { margin: 0; font-size: clamp(36px, 8vw, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 900; }
.hero .tagline { margin: 10px 0 18px; color: #E4E1EC; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.play { display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: #fff; text-decoration: none; font-weight: 800;
  padding: 14px 28px; border-radius: 16px; font-size: 18px; min-height: 52px; }
.play:active { transform: scale(0.98); }
.ghost { display: inline-flex; align-items: center; padding: 12px 18px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; background: rgba(23,22,29,0.7); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(14,13,18,0.6); }
.note { color: var(--soft); font-size: 14px; margin: 12px 0 0; }

/* screenshot gallery */
.gallery { display: flex; gap: 12px; overflow-x: auto; padding: 22px 0 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery button { flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); cursor: zoom-in; scroll-snap-align: start; }
.gallery img { display: block; height: 340px; width: auto; }
.gallery.wide img { height: 300px; }
@media (max-width: 560px) { .gallery img { height: 300px; } .gallery.wide img { height: 200px; } }

/* body columns */
.cols { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding: 18px 0 30px; align-items: start; }
.desc h2 { font-size: 24px; letter-spacing: -0.01em; margin: 30px 0 8px; }
.desc h2:first-child { margin-top: 8px; }
.desc h3 { font-size: 17px; margin: 18px 0 2px; color: #fff; }
.desc p { margin: 0 0 12px; color: #DCD8E4; }
.desc ul, .desc ol { margin: 0 0 12px; padding-left: 22px; color: #DCD8E4; }
.desc li { margin: 4px 0; }
.desc .lead { font-size: 19px; color: var(--ink); }
.desc .fine { font-size: 14px; color: var(--soft); }
kbd { font: 600 13px/1 ui-monospace, Menlo, Consolas, monospace; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2); color: var(--ink); white-space: nowrap; }

.side { position: sticky; top: 16px; display: grid; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); margin: 0 0 8px; }
table.info { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.info th { text-align: left; color: var(--soft); font-weight: 500; padding: 7px 10px 7px 0; vertical-align: top; width: 42%; }
table.info td { padding: 7px 0; vertical-align: top; }
table.info tr + tr th, table.info tr + tr td { border-top: 1px solid var(--line); }
.card .play { width: 100%; }

/* more games */
.more { padding: 8px 0 20px; }
.more h2 { font-size: 22px; margin: 0 0 12px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.more-grid a { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; }
.more-grid img { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 8px; }
.more-grid span { display: block; font-weight: 700; }
.more-grid small { color: var(--soft); }

footer { padding: 20px 0 calc(env(safe-area-inset-bottom, 0px) + 36px); color: var(--soft); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
footer a { color: var(--soft); }

/* lightbox */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
dialog.lb::backdrop { background: rgba(0,0,0,0.88); }
dialog.lb img { display: block; max-width: 96vw; max-height: 92vh; border-radius: 12px; }
dialog.lb button { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 22px; cursor: pointer; }

@media (max-width: 820px) {
  .cols { grid-template-columns: 1fr; gap: 10px; }
  .side { position: static; }
}
@media (max-width: 520px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 40px 0 28px; }
  .actions { justify-content: center; }
  .hero-in img.icon { width: 112px; height: 112px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) { .gallery { scroll-behavior: auto; } }
