/* PlayDreamLab game kit styles. Consumes site.css variables (with fallbacks); kit classes are .pdlk-* */

/* ---- zero-specificity fallbacks: site.css wins whenever it defines these ---- */
:where(body.pdl-game-page) {
  margin: 0; min-height: 100vh; color: var(--text, #f4f0ff);
  font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  background: linear-gradient(180deg, var(--bg, #140f2e), var(--bg-2, #2a1d5c)) fixed;
}
:where(.pdl-container) { box-sizing: border-box; width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(12px, 3vw, 24px); }
:where(.pdl-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--border, rgba(255, 255, 255, .16)); background: var(--surface-2, rgba(255, 255, 255, .1));
  color: var(--text, #f4f0ff); font: 600 15px/1 var(--font-body, system-ui, sans-serif);
}
:where(.pdl-btn--primary) { background: var(--accent, #7cf5c9); color: var(--accent-ink, #140f2e); border-color: transparent; }
:where(.pdl-btn--ghost) { background: transparent; }
:where(.pdl-btn--icon) { width: 40px; padding: 0; }
:where(.pdl-chip) {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface, rgba(255, 255, 255, .08)); border: 1px solid var(--border, rgba(255, 255, 255, .14)); color: var(--text-dim, #c3bbe6);
}
:where(.pdl-card) {
  border-radius: var(--radius-lg, 22px); background: var(--surface, rgba(255, 255, 255, .06));
  border: 1px solid var(--border, rgba(255, 255, 255, .12)); box-shadow: var(--shadow, 0 8px 28px rgba(5, 2, 20, .35));
}
:where(.pdl-visually-hidden) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdlk-fallback-h { display: flex; align-items: center; height: var(--header-h, 64px); }
.pdlk-fallback-f { padding-block: 28px; color: var(--text-dim, #c3bbe6); font-size: 14px; }
.pdlk-wordmark { color: var(--text, #f4f0ff); font: 700 20px var(--font-display, var(--font-body, system-ui)); text-decoration: none; }

/* ---- page ---- */
html { scroll-behavior: auto; } /* game pages: never smooth-scroll (kit.css loads after site.css) */
.pdlk-root { --pdlk-game: #c4a6ff; --pdlk-game-rgb: 196, 166, 255; display: block; color: var(--text, #f4f0ff); }
.pdlk-root *, .pdlk-root *::before, .pdlk-root *::after { box-sizing: border-box; }
.pdlk-main { display: block; padding-bottom: 32px; overflow-x: clip; }
.pdlk-play { padding-top: 6px; }

/* ---- HUD + control bar ---- */
.pdlk-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 46px; padding: 2px 0 8px; }
.pdlk-hud-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.pdlk-title {
  display: flex; align-items: center; gap: 9px; margin: 0; white-space: nowrap;
  font: 700 clamp(17px, 1.5vw, 21px)/1.15 var(--font-display, var(--font-body, system-ui)); letter-spacing: -.01em;
}
.pdlk-mark { flex: none; width: 11px; height: 11px; border-radius: 50%; background: var(--pdlk-game); box-shadow: 0 0 0 3px rgba(var(--pdlk-game-rgb), .18), 0 0 14px rgba(var(--pdlk-game-rgb), .8); }
.pdlk-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.pdlk-stat {
  position: relative; display: inline-flex; align-items: baseline; gap: 7px; min-height: 32px; padding: 6px 12px;
  border-radius: 999px; background: var(--surface, rgba(255, 255, 255, .06)); border: 1px solid var(--border, rgba(255, 255, 255, .12));
  line-height: 1.2;
}
.pdlk-stat[hidden] { display: none; }
.pdlk-k { color: var(--text-dim, #c3bbe6); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.pdlk-v { min-width: 1ch; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pdlk-stat--score { border-color: rgba(var(--pdlk-game-rgb), .45); box-shadow: inset 0 0 0 1px rgba(var(--pdlk-game-rgb), .12); }
.pdlk-stat--score.pdlk-bump .pdlk-v { animation: pdlk-bump .32s var(--ease, cubic-bezier(.34, 1.56, .64, 1)); }
.pdlk-stat--lives .pdlk-v { display: inline-flex; align-items: center; gap: 4px; }
.pdlk-stat--lives svg { color: var(--peach, #ffb38a); }
.pdlk-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pdlk-ibtn { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }
.pdlk-ibtn[hidden] { display: none; }
.pdlk-ibtn svg { display: block; }
.pdlk-gbtn { min-height: 40px; }
.pdlk-gbtn kbd, .pdlk-dl kbd { font: 700 11px/1 var(--font-body, system-ui); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--border, rgba(255, 255, 255, .2)); background: rgba(0, 0, 0, .15); color: var(--text-dim, #c3bbe6); }
.pdlk-gbtn:disabled { opacity: .45; cursor: default; }

/* ---- buttons: hover lift, press sink + darken + glow (120 ms) ---- */
.pdlk-btn { transition: transform .12s var(--ease, cubic-bezier(.34, 1.56, .64, 1)), filter .12s ease, box-shadow .12s ease, background-color .12s ease; -webkit-tap-highlight-color: transparent; }
.pdlk-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(5, 2, 20, .35); }
.pdlk-btn:active:not(:disabled) { transform: translateY(1px) scale(.96); filter: brightness(.86); box-shadow: 0 0 0 4px rgba(var(--pdlk-game-rgb), .22), 0 0 20px rgba(var(--pdlk-game-rgb), .5); transition-duration: .06s; }
.pdlk-btn:focus-visible { outline: 3px solid var(--focus, #8fd8ff); outline-offset: 2px; }

/* ---- stage ---- */
.pdlk-stage {
  position: relative; overflow: hidden; isolation: isolate; outline: none; container-type: size;
  height: max(260px, calc(100svh - var(--header-h, 64px) - 92px));
  border-radius: var(--radius-lg, 22px); border: 1px solid var(--border, rgba(255, 255, 255, .12));
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--pdlk-game-rgb), .10), transparent 60%), var(--surface-solid, #1a1440);
  box-shadow: var(--shadow, 0 10px 32px rgba(5, 2, 20, .4));
}
.pdlk-stage:focus, .pdlk-stage:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(var(--pdlk-game-rgb), .32), var(--shadow, 0 10px 32px rgba(5, 2, 20, .4)); }
.pdlk-stage:fullscreen { width: 100%; height: 100% !important; border: 0; border-radius: 0; }
.pdlk-stage:-webkit-full-screen { width: 100%; height: 100% !important; border: 0; border-radius: 0; }
.pdlk-canvas { position: absolute; left: 0; top: 0; display: block; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.pdlk-top { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none; }

/* ---- overlays (cover the whole stage) ---- */
.pdlk-ov {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 12px;
  background: rgba(12, 8, 32, .52); -webkit-backdrop-filter: blur(var(--blur, 8px)); backdrop-filter: blur(var(--blur, 8px));
}
.pdlk-ov[hidden] { display: none; }
.pdlk-panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; width: min(460px, 100%); max-height: 100%; text-align: center;
  border-radius: var(--radius-lg, 22px); color: var(--text, #f4f0ff);
}
/* the card surface lives on ::before so the pop-in scale never moves the buttons (their boxes stay static) */
.pdlk-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  border: 1px solid var(--border, rgba(255, 255, 255, .14));
  background: var(--surface-2, rgba(36, 26, 82, .86)); box-shadow: var(--shadow-lg, 0 24px 60px rgba(5, 2, 20, .55));
}
.pdlk-panel--sm { width: min(380px, 100%); }
.pdlk-panel-body { min-height: 0; overflow: auto; padding: 20px 22px 6px; overscroll-behavior: contain; }
.pdlk-panel-foot { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 10px 22px 18px; }
.pdlk-panel-foot .pdlk-sub { flex-basis: 100%; margin: 0; }
.pdlk-h { margin: 8px 0 6px; font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display, var(--font-body, system-ui)); letter-spacing: -.015em; }
.pdlk-blurb { margin: 0 0 10px; color: var(--text-dim, #c3bbe6); font-size: 15px; line-height: 1.45; }
.pdlk-sub { margin: 4px 0 0; color: var(--text-dim, #c3bbe6); font-size: 14px; }
.pdlk-final { margin: 6px 0 0; font: 800 clamp(26px, 3vw, 36px)/1.1 var(--font-display, var(--font-body, system-ui)); color: var(--pdlk-game); font-variant-numeric: tabular-nums; }
.pdlk-badge {
  display: inline-block; margin: 0 0 2px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800;
  background: var(--pdlk-game); color: #1a1238; box-shadow: 0 0 22px rgba(var(--pdlk-game-rgb), .6);
}
.pdlk-badge[hidden] { display: none; }
.pdlk-cta { min-width: 148px; min-height: 46px; font-size: 16px; }
.pdlk-chip { font-size: 12px; }
.pdlk-steps { margin: 10px auto 4px; padding: 0; list-style: none; counter-reset: pdlk; text-align: left; max-width: 380px; }
.pdlk-steps li { position: relative; padding: 4px 0 4px 34px; font-size: 14.5px; line-height: 1.45; counter-increment: pdlk; }
.pdlk-steps li::before {
  content: counter(pdlk); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1a1238; background: var(--pdlk-game);
}
.pdlk-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 4px; font-size: 12.5px; color: var(--text-dim, #c3bbe6); }
.pdlk-keys span { padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--border, rgba(255, 255, 255, .2)); }
.pdlk-keys:empty { display: none; }
.pdlk-opt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin: 12px 0 4px; }
.pdlk-opt-l { font-size: 13px; font-weight: 700; color: var(--text-dim, #c3bbe6); }
.pdlk-seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .2); border: 1px solid var(--border, rgba(255, 255, 255, .14)); }
.pdlk-seg-b {
  appearance: none; min-height: 34px; padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-dim, #c3bbe6); font: 700 14px/1 var(--font-body, system-ui);
}
.pdlk-seg-b[aria-pressed="true"] { background: var(--pdlk-game); color: #1a1238; box-shadow: 0 2px 10px rgba(var(--pdlk-game-rgb), .45); }

/* short stages: keep the essentials visible */
@container (max-height: 470px) {
  .pdlk-blurb { display: none; }
  .pdlk-panel-body { padding-top: 14px; }
  .pdlk-steps li { padding-top: 2px; padding-bottom: 2px; font-size: 13.5px; }
}
@container (max-height: 360px) {
  .pdlk-steps { display: none; }
}

/* pop-in: backdrop fade + panel scale with a small overshoot (~200 ms) */
.pdlk-ov.pdlk-in { animation: pdlk-fade .2s ease both; }
.pdlk-ov.pdlk-in .pdlk-panel::before { animation: pdlk-pop .21s cubic-bezier(.34, 1.56, .64, 1) both; }
.pdlk-ov.pdlk-in .pdlk-panel > * { animation: pdlk-fade .2s ease .04s both; }
.pdlk-ov.pdlk-out { animation: pdlk-fade .18s ease reverse both; pointer-events: none; }
.pdlk-ov.pdlk-out .pdlk-panel::before { animation: pdlk-popout .18s ease-in both; }
@keyframes pdlk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdlk-pop { from { opacity: 0; transform: scale(.86) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pdlk-popout { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.92); } }
@keyframes pdlk-bump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.pdlk-v { display: inline-block; }

/* ---- intro ---- */
.pdlk-ov--intro {
  z-index: 5; -webkit-backdrop-filter: none; backdrop-filter: none;
  background: radial-gradient(70% 60% at 50% 40%, rgba(var(--pdlk-game-rgb), .20), transparent 70%), linear-gradient(180deg, var(--bg, #140f2e), var(--bg-2, #2a1d5c));
}
.pdlk-ov--intro.pdlk-out { animation-duration: .22s; }
.pdlk-intro { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(340px, 84%); }
.pdlk-intro-cover {
  display: block; width: min(250px, 62cqw); max-height: 34cqh; aspect-ratio: 16 / 10; height: auto; object-fit: cover;
  border-radius: var(--radius, 12px); border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 40px rgba(5, 2, 20, .5), 0 0 40px rgba(var(--pdlk-game-rgb), .25);
}
.pdlk-intro-pile { width: 100%; height: clamp(70px, 15cqh, 100px); margin-top: -4px; }
.pdlk-sky { position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; pointer-events: none; }
.pdlk-intro-name { margin: 4px 0 0; font: 800 clamp(18px, 2vw, 24px)/1.1 var(--font-display, var(--font-body, system-ui)); }
.pdlk-intro-pct { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-dim, #c3bbe6); font-variant-numeric: tabular-nums; }

/* ---- glinting bar (intro + any timer/progress bar) ---- */
.pdlk-gbar { position: relative; display: block; width: 100%; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .12); }
.pdlk-gbar[hidden] { display: none; }
.pdlk-gbar > i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; transition: width .12s linear;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) 0 0 / 220% 100% no-repeat,
              linear-gradient(90deg, rgba(var(--pdlk-game-rgb), .65), var(--pdlk-game));
  box-shadow: 0 0 12px rgba(var(--pdlk-game-rgb), .6);
  animation: pdlk-sheen 1.2s linear infinite;
}
.pdlk-gbar > i::after {
  content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 16%, rgba(255, 255, 255, .75) 26%, rgba(var(--pdlk-game-rgb), .35) 46%, transparent 68%);
  animation: pdlk-glint .9s ease-in-out infinite;
}
.pdlk-gbar--intro { width: 100%; }
.pdlk-gbar--hud { position: absolute; left: 10px; right: 10px; bottom: 3px; width: auto; height: 3px; border: 0; }
.pdlk-gbar--hud > i::after { width: 9px; height: 9px; margin-top: -4.5px; right: -4px; }
@keyframes pdlk-sheen { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
@keyframes pdlk-glint { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .8; } 50% { transform: scale(1.25) rotate(45deg); opacity: 1; } }

/* ---- on-screen pad ---- */
.pdlk-pad { display: grid; grid-template-columns: repeat(3, 52px) 1fr 64px; grid-template-rows: repeat(2, 46px); gap: 6px; margin-top: 10px; align-items: center; }
.pdlk-pad[hidden] { display: none; }
.pdlk-pad-b {
  display: grid; place-items: center; height: 46px; border-radius: 14px; border: 1px solid var(--border, rgba(255, 255, 255, .14));
  background: var(--surface-2, rgba(255, 255, 255, .1)); color: var(--text, #f4f0ff); font-size: 16px; touch-action: none; user-select: none;
}
.pdlk-pad-b.is-down { filter: brightness(.85); transform: translateY(1px); box-shadow: 0 0 16px rgba(var(--pdlk-game-rgb), .5); }
.pdlk-pad-up { grid-column: 2; grid-row: 1; }
.pdlk-pad-left { grid-column: 1; grid-row: 2; }
.pdlk-pad-down { grid-column: 2; grid-row: 2; }
.pdlk-pad-right { grid-column: 3; grid-row: 2; }
.pdlk-pad-action { grid-column: 5; grid-row: 1 / 3; height: 64px; border-radius: 50%; background: var(--pdlk-game); color: #1a1238; font-weight: 800; }

/* ---- how to play + more games ---- */
.pdlk-sec { padding-top: clamp(30px, 5vw, 52px); }
.pdlk-sec[hidden] { display: none; }
.pdlk-sec-h { margin: 0 0 14px; font: 800 clamp(20px, 2.2vw, 27px)/1.15 var(--font-display, var(--font-body, system-ui)); letter-spacing: -.01em; }
.pdlk-how { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px 28px; align-items: start; }
.pdlk-how .pdlk-steps { max-width: none; margin: 0; padding: 16px 18px; border-radius: var(--radius-lg, 22px); background: var(--surface, rgba(255, 255, 255, .06)); border: 1px solid var(--border, rgba(255, 255, 255, .12)); }
.pdlk-how .pdlk-steps li { font-size: 15px; padding-top: 6px; padding-bottom: 6px; }
.pdlk-how .pdlk-steps li::before { top: 6px; }
.pdlk-dl { display: grid; gap: 10px; margin: 0; }
.pdlk-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border, rgba(255, 255, 255, .1)); }
.pdlk-dl dt { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim, #c3bbe6); padding-top: 2px; }
.pdlk-dl dd { margin: 0; font-size: 15px; line-height: 1.5; }
.pdlk-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pdlk-mcard { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; transition: transform .12s var(--ease, cubic-bezier(.34, 1.56, .64, 1)), box-shadow .12s ease; }
.pdlk-mcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(5, 2, 20, .45), 0 0 0 1px var(--pdlk-card, transparent); }
.pdlk-mcard:active { transform: translateY(1px) scale(.98); filter: brightness(.9); }
.pdlk-mcard:focus-visible { outline: 3px solid var(--focus, #8fd8ff); outline-offset: 2px; }
.pdlk-mcard-art { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .15)); }
.pdlk-mcard-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdlk-mcard-txt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; }
.pdlk-mcard-t { font-weight: 800; font-size: 15px; line-height: 1.2; }

@media (max-width: 640px) {
  .pdlk-hud { gap: 6px 8px; }
  .pdlk-hud-l { gap: 6px 10px; }
  .pdlk-stat { padding: 5px 10px; min-height: 30px; }
  .pdlk-ctrl { gap: 5px; }
  .pdlk-how { grid-template-columns: minmax(0, 1fr); }
  .pdlk-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pdlk-panel-body { padding: 16px 16px 4px; }
  .pdlk-panel-foot { padding: 8px 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdlk-btn, .pdlk-mcard { transition: filter .12s ease, box-shadow .12s ease; }
  .pdlk-btn:hover:not(:disabled), .pdlk-btn:active:not(:disabled), .pdlk-mcard:hover, .pdlk-mcard:active { transform: none; }
  .pdlk-ov.pdlk-in, .pdlk-ov.pdlk-out { animation-duration: .15s; }
  .pdlk-ov.pdlk-in .pdlk-panel::before, .pdlk-ov.pdlk-out .pdlk-panel::before { animation: none; }
  .pdlk-gbar > i, .pdlk-gbar > i::after { animation: none; }
  .pdlk-stat--score.pdlk-bump .pdlk-v { animation: none; }
}

/* ---------- bright palette (2026-11-12): the game screen stays deep purple inside the bright page ---------- */
[data-theme=day] .pdlk-stage {
  border-color: rgba(138, 43, 226, .35);
  background: radial-gradient(120% 90% at 50% 0%, rgba(var(--pdlk-game-rgb), .18), transparent 60%), linear-gradient(180deg, #6f2be0, #4a1aa8);
  box-shadow: 0 10px 32px rgba(70, 30, 150, .28);
}
[data-theme=day] .pdlk-stage:focus, [data-theme=day] .pdlk-stage:focus-visible { box-shadow: 0 0 0 2px rgba(138, 43, 226, .45), 0 10px 32px rgba(70, 30, 150, .28); }
[data-theme=day] .pdlk-ov { background: rgba(26, 8, 70, .55); }
[data-theme=day] .pdlk-ov--intro {
  background: radial-gradient(70% 60% at 50% 40%, rgba(var(--pdlk-game-rgb), .28), transparent 70%), linear-gradient(180deg, #6f2be0, #4a1aa8);
  color: #ffffff;
}
[data-theme=day] .pdlk-intro-name { color: #ffffff; }
[data-theme=day] .pdlk-intro-pct { color: #d9c8ff; }
/* a progress/timer bar that sits on the bright page (outside the stage) needs a visible track */
[data-theme=day] .pdlk-gbar--hud { background: rgba(52, 18, 120, .10); border-color: rgba(52, 18, 120, .16); }

/* ---------- rainbow liquid glass on game pages (2026-11-12) ---------- */
[data-theme=day] .pdlk-panel::before {
  background:
    radial-gradient(130% 70% at 0% 0%, rgba(255, 255, 255, .96), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .74));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 24px 60px rgba(40, 10, 110, .45), inset 0 1px 0 #ffffff;
  -webkit-backdrop-filter: blur(18px) saturate(1.8); backdrop-filter: blur(18px) saturate(1.8);
}
[data-theme=day] .pdlk-panel::after, [data-theme=day] .pdlk-stage::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2.5px; pointer-events: none;
  background: conic-gradient(from 210deg, #ff7aa2, #ffb45a, #ffe36e, #7de8a8, #7cc8ff, #c58bff, #ff7aa2);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
[data-theme=day] .pdlk-stage::after { z-index: 6; opacity: .95; }
[data-theme=day] .pdlk-stage { border-color: transparent; }

/* ---------- smooth cursor on game pages (2026-11-12): hover never moves a button or card ---------- */
.pdlk-btn:hover:not(:disabled), .pdlk-mcard:hover { transform: none; }
.pdlk-btn, .pdlk-mcard { transition: box-shadow 180ms ease-out, filter 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out; }
.pdlk-btn:hover:not(:disabled) { filter: brightness(1.05); }
