/* Lamp spirit (v2.0.0) — the site's genie. Fixed layer above the page, never blocks clicks except on himself.
   Colours come from --gn-* (set by genie.js from the admin settings); the values below are the gold defaults. */
:root { --gn-c0: #fff8e2; --gn-c1: #ffe3a0; --gn-c2: #f6b648; --gn-c3: #d9831f; --gn-arm: #eaa53c; --gn-hand: #ffe2a6; --gn-shine: #fff7e0; --gn-ink: #2b1a08; --gn-a: #38d9ff; --gn-a0: #e9fbff; --gn-rgb: 246, 182, 72; --gn-light-rgb: 255, 214, 130; --gn-a-rgb: 56, 217, 255; }
.gn-layer { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.gn-smoke { position: absolute; inset: 0; width: 100%; height: 100%; }

.gn-genie { position: absolute; left: 0; top: 0; width: var(--gn-size, 96px); height: calc(var(--gn-size, 96px) * 1.34); margin-left: calc(var(--gn-size, 96px) * -.5); margin-top: calc(var(--gn-size, 96px) * -.5); will-change: transform; pointer-events: none; }
.gn-genie svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 10px rgba(var(--gn-rgb), .5)); }
.gn-hit { position: absolute; left: 18%; top: 4%; width: 64%; height: 62%; border-radius: 45%; pointer-events: auto; cursor: pointer; background: transparent; border: 0; padding: 0; }
.gn-hit:focus-visible { outline: 2px solid rgba(var(--gn-light-rgb), .9); outline-offset: 4px; }
.gn-close { position: absolute; top: -6px; right: -4px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(var(--gn-light-rgb), .55); background: rgba(14, 12, 20, .92); color: rgb(var(--gn-light-rgb)); font: 700 13px/1 system-ui, sans-serif; display: grid; place-items: center; cursor: pointer; pointer-events: auto; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .25s; }
.gn-genie:hover .gn-close, .gn-genie:focus-within .gn-close, .gn-genie.is-touch .gn-close { opacity: 1; transform: none; }
.gn-close:hover { background: rgb(var(--gn-light-rgb)); color: #1b1407; }

/* face + body details animated by class */
.gn-eye { transform-box: fill-box; transform-origin: center; transition: transform .08s; }
.gn-genie.is-blink .gn-eye { transform: scaleY(.1); }
.gn-happy { opacity: 0; }
.gn-genie.is-happy .gn-happy { opacity: 1; }
.gn-genie.is-happy .gn-eye { opacity: 0; }
.gn-mouth-o { opacity: 0; }
.gn-genie.is-wow .gn-mouth-o { opacity: 1; }
.gn-genie.is-wow .gn-mouth { opacity: 0; }
.gn-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: gnFlame .45s ease-in-out infinite alternate; }
@keyframes gnFlame { from { transform: scale(.92, .86) rotate(-4deg); } to { transform: scale(1.04, 1.1) rotate(4deg); } }
.gn-emblem { animation: gnGlow 2.4s ease-in-out infinite; }
@keyframes gnGlow { 50% { opacity: .55; } }
.gn-spark { animation: gnTwinkle 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gn-spark:nth-of-type(2) { animation-delay: -.6s; } .gn-spark:nth-of-type(3) { animation-delay: -1.2s; }
@keyframes gnTwinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }

/* the reading light and the magic frame around the section */
.gn-frame { position: absolute; left: 0; top: 0; border-radius: 22px; opacity: 0; transition: opacity .5s; box-shadow: 0 0 0 1.5px rgba(var(--gn-light-rgb), .55), 0 0 40px rgba(var(--gn-rgb), .18), inset 0 0 60px rgba(var(--gn-rgb), .05); }
.gn-frame.is-on { opacity: 1; }
.gn-frame::before, .gn-frame::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2.5px solid rgb(var(--gn-light-rgb)); filter: drop-shadow(0 0 6px rgb(var(--gn-rgb))); }
.gn-frame::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.gn-frame::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.gn-frame i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gn-c0); box-shadow: 0 0 10px 3px rgba(var(--gn-rgb), .8); offset-path: inset(0 round 22px); animation: gnOrbit 6s linear infinite; }
.gn-frame i:nth-child(2) { animation-delay: -3s; }
@keyframes gnOrbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.gn-word { position: absolute; left: 0; top: 0; border-radius: 7px; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--gn-light-rgb), .14), rgba(var(--gn-rgb), .3)); box-shadow: 0 0 0 1px rgba(var(--gn-light-rgb), .55), 0 0 18px rgba(var(--gn-rgb), .35); transition: opacity .25s; mix-blend-mode: screen; }
.gn-word.is-on { opacity: 1; }
.gn-word::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -5px; height: 2px; border-radius: 2px; background: rgb(var(--gn-light-rgb)); box-shadow: 0 0 8px rgb(var(--gn-rgb)); }
.gn-word.is-sentence { background: linear-gradient(180deg, rgba(var(--gn-a-rgb), .08), rgba(var(--gn-a-rgb), .18)); box-shadow: 0 0 0 1px rgba(var(--gn-a-rgb), .4), 0 0 16px rgba(var(--gn-a-rgb), .25); }
.gn-word.is-sentence::after { background: rgb(var(--gn-a-rgb)); box-shadow: 0 0 8px rgb(var(--gn-a-rgb)); }
html[data-site-theme] .gn-word, html.light .gn-word { mix-blend-mode: normal; }

/* the lamp that brings him back */
.gn-lamp { position: fixed; z-index: 2147483001; bottom: 18px; left: 50%; width: 54px; height: 40px; margin-left: -27px; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 0 10px rgba(var(--gn-rgb), .6)); transition: transform .3s; animation: gnLampBob 3s ease-in-out infinite; }
.gn-lamp:hover { transform: translateY(-3px) rotate(-6deg); }
.gn-lamp svg { width: 100%; height: 100%; overflow: visible; }
.gn-lamp[hidden] { display: none; }
@keyframes gnLampBob { 50% { transform: translateY(-4px); } }

@media (max-width: 760px) {
    .gn-close { width: 28px; height: 28px; top: -10px; right: -10px; }
    .gn-lamp { bottom: 12px; width: 46px; height: 34px; margin-left: -23px; }
}
@media print { .gn-layer, .gn-lamp { display: none !important; } }
