/* =====================================================================
   assets/pages-games.css — Game Galaxy's list in the "Classic" look (6 Nov 2026)
   =====================================================================
   Loaded by games.php only in the Classic look, after css/games.css and assets/pages-ui.css.
   It restyles the LIST of games only (the hero, the class-game doors, today's mission, the Grammar Arcade and the planets)
   with the Classic cards and colours, day and night. The game screens themselves (the planet sheet, the launch pad and
   the games, .gl-sheet / .gl-stage) keep their own space look. Everything sits under .cp-games.
   ===================================================================== */
body.lk-ui.gl-page { background: #f4f3fb; }
html.dark body.lk-ui.gl-page { background: #070b1c; }
.cp-games .gl { padding: 24px 0 56px; min-height: 0; overflow: visible; color: var(--ink); }
.cp-games .gl-sky { display: none; }
.cp-games #gl-app > section, .cp-games #gl-app > .gl-mission, .cp-games #gl-app > .gl-credits { max-width: 1200px; }

/* the hero = the Classic "command deck" */
.cp-games .gl-hero { background: var(--hero-bg); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cp-games .gl-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,71,.16), transparent 62%); pointer-events: none; }
.cp-games .gl-hero > * { position: relative; }
.cp-games .gl-logo { width: 130px; }
.cp-games .gl-kicker { font: 700 10.5px/1.2 var(--lab-font); letter-spacing: .18em; color: var(--mute); }
.cp-games .gl-hero h1 { font: 800 30px/1.15 Inter, system-ui, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.cp-games .gl-hero h1 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold-num); }
.cp-games .gl-lead { color: var(--body); font-size: 15px; }
.cp-games .gl-chip { background: var(--sub); border: 1px solid var(--line); color: var(--ink); font: 800 14px/1 Inter, sans-serif; }
.cp-games .gl-chip small { color: var(--mute); }
.cp-games .gl-chip.gold { background: var(--gold-soft); border-color: rgba(240,180,41,.45); color: var(--gold-txt); }
@media (max-width: 760px) { .cp-games .gl-hero { padding: 18px; border-radius: 20px; } .cp-games .gl-hero h1 { font-size: 24px; } }

/* "Join / Host a class game" */
.cp-games .gl-door { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); border-radius: var(--radius); }
.cp-games .gl-door:hover { box-shadow: var(--shadow-up); }
.cp-games .gl-door.host { background: var(--card); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.cp-games .gl-dooric { background: var(--sub); border: 1px solid var(--line); }
.cp-games .gl-door b { font: 800 16px/1.2 Inter, sans-serif; }
.cp-games .gl-door small { color: var(--mute); }
.cp-games .gl-door em, .cp-games .gl-door.host em { color: var(--brand); }

/* today's mission = the gold "next" strip */
.cp-games .gl-mission { background: var(--card); box-shadow: var(--shadow); border: 1px solid rgba(240,180,41,.55); color: var(--ink); border-radius: var(--radius); }
.cp-games .gl-mission.done { border-color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.cp-games .gl-mtext { color: var(--body); }
.cp-games .gl-mtext b { font: 700 10.5px/1.2 var(--lab-font); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-txt); }
.cp-games .gl-mission.done .gl-mtext b { color: var(--ok); }
.cp-games .gl-mtext em { color: var(--ink); }
.cp-games .gl-mgo { font: 800 14px/1 Inter, sans-serif; color: var(--gold-ink); background: var(--gold-fill); padding: 10px 14px; border-radius: 10px; }

/* the Grammar Arcade = Classic cards */
.cp-games .gl-sechead h2 { font: 800 17px/1.2 Inter, sans-serif; color: var(--ink); }
.cp-games .gl-sechead p { color: var(--mute); font-size: 13.5px; }
.cp-games .gl-arc { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); border-radius: var(--radius); }
.cp-games .gl-arc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.cp-games .gl-arc:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.cp-games .gl-arc b { font: 800 15px/1.25 Inter, sans-serif; }
.cp-games .gl-arc small { color: var(--body); }
.cp-games .gl-arcfoot i { color: var(--mute); }
.cp-games .gl-arcfoot em { font: 800 13px/1 Inter, sans-serif; }

/* the planets */
.cp-games .gl-orbit path { stroke: var(--brand); }
.cp-games .gl-pl { color: var(--ink); }
.cp-games .gl-pl:hover { background: var(--card); box-shadow: var(--shadow); }
.cp-games .gl-plname { font: 800 16px/1.2 Inter, sans-serif; }
.cp-games .gl-plsub { color: var(--mute); }
.cp-games .gl-plstars { background: var(--gold-soft); color: var(--gold-txt); font: 800 13px/1.2 Inter, sans-serif; }
.cp-games .gl-plstars small { color: var(--gold-txt); opacity: .7; }
.cp-games .gl-credits { color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .cp-games .gl-plart, .cp-games .gl-logo, .cp-games .gl-logostar { animation: none !important; } }

/* ── 6 Nov 2026, round 2 (item 14): better game cards ──
   The planets become Classic cards: a soft glow of the planet's own colour behind it, a cheap shadow (no drop-shadow filter),
   a star bar. The Grammar Arcade cards lose the big corner blob and get a soft tint at the foot instead.
   Weak devices (html.lk-lite) and "reduce motion": the planets stand still. */
.cp-games .gl-orbit { display: none; }
.cp-games .gl-galaxy { gap: 14px; padding: 6px 0 20px; }
.cp-games .gl-pl, .cp-games .gl-pl:nth-child(n) { transform: none; position: relative; overflow: hidden; isolation: isolate; padding: 16px 12px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.cp-games .gl-pl::before { content: ""; position: absolute; left: 50%; top: -30px; width: 240px; height: 200px; margin-left: -120px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc, var(--brand)) 20%, transparent), transparent); }
.cp-games .gl-pl:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: color-mix(in srgb, var(--pc, var(--brand)) 50%, var(--line)); background: var(--card); }
.cp-games .gl-pl:nth-of-type(9n+1) { --pc: #7c5ce6; } .cp-games .gl-pl:nth-of-type(9n+2) { --pc: #3b82f6; } .cp-games .gl-pl:nth-of-type(9n+3) { --pc: #ec4899; }
.cp-games .gl-pl:nth-of-type(9n+4) { --pc: #ef4444; } .cp-games .gl-pl:nth-of-type(9n+5) { --pc: #10b981; } .cp-games .gl-pl:nth-of-type(9n+6) { --pc: #f59e0b; }
.cp-games .gl-pl:nth-of-type(9n+7) { --pc: #6366f1; } .cp-games .gl-pl:nth-of-type(9n+8) { --pc: #22c55e; } .cp-games .gl-pl:nth-of-type(9n+9) { --pc: #94a3b8; }
.cp-games .gl-plart { position: relative; width: 116px; }
.cp-games .gl-plart svg { filter: none; position: relative; }
.cp-games .gl-plart::after { content: ""; display: block; width: 62%; height: 10px; margin: 2px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(18,16,46,.22), transparent); }
html.dark .cp-games .gl-plart::after { background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
.cp-games .gl-plname { margin-top: 2px; }
.cp-games .gl-plstars { margin-top: 8px; }
html.lk-lite .cp-games .gl-plart { animation: none; }
@media (max-width: 760px) { .cp-games .gl-galaxy { gap: 10px; } .cp-games .gl-plart { width: 92px; } .cp-games .gl-plname { font-size: 15px; } .cp-games .gl-pl::before { width: 180px; height: 150px; margin-left: -90px; } }

.cp-games .gl-arc::after { display: none; }
.cp-games .gl-arc { background: linear-gradient(180deg, var(--card) 55%, color-mix(in srgb, var(--c) 9%, var(--card))); transition: transform .2s ease, box-shadow .2s ease; }
.cp-games .gl-arcic { box-shadow: none; background: color-mix(in srgb, var(--c) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); border-radius: 14px; }
.cp-games .gl-arc:hover .gl-arcic { transform: rotate(-6deg) scale(1.05); }
.cp-games .gl-arcic { transition: transform .25s ease; }
.cp-games .gl-arcfoot em { box-shadow: 0 6px 14px -8px var(--c); }
@media (prefers-reduced-motion: reduce) { .cp-games .gl-pl:hover, .cp-games .gl-arc:hover .gl-arcic { transform: none; } }
