.wog{position:relative;display:flex;flex-direction:column;align-items:center;overflow:hidden;color:#f6efe2;
  background:radial-gradient(ellipse at 50% 40%,#23264a 0%,#12142b 55%,#07081a 100%);
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;-webkit-user-select:none;user-select:none;box-sizing:border-box}
.wog *{box-sizing:border-box}
.wog-sky{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.wog-stagewrap{position:relative;z-index:1;width:100%;display:flex;align-items:center;justify-content:center;min-height:0}
.wog-stage{display:block;touch-action:none;max-width:100%;max-height:100%}
.wog-stage.wog-mag{cursor:none}
.wog-stage.wog-clicky{cursor:pointer}
.wog-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-style:italic;color:#b9b2c9;letter-spacing:.05em;animation:wogPulse 1.4s ease-in-out infinite}
@keyframes wogPulse{50%{opacity:.4}}
.wog-loupe{position:absolute;z-index:5;pointer-events:none;border-radius:50%;display:none;
  box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 0 5px rgba(0,0,0,.35),0 12px 40px rgba(0,0,0,.55)}
.wog-maglabel{position:absolute;z-index:6;pointer-events:none;display:none;font:600 12px system-ui,sans-serif;background:rgba(0,0,0,.6);color:#fff;padding:3px 8px;border-radius:10px}
.wog-hint{position:relative;z-index:2;color:#b9b2c9;font:13px system-ui,sans-serif;min-height:18px;text-align:center;padding:4px 12px 0}
.wog-nav{position:relative;z-index:2;display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:8px 12px 16px}
.wog .wog-b{font:600 14px system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.02em;color:#1b1530;background:linear-gradient(180deg,#fff7d6,#ffd55a);
  border:none;border-radius:999px;padding:11px 20px;margin:0;cursor:pointer;line-height:1.2;text-transform:none;
  box-shadow:0 4px 16px rgba(255,200,60,.25),inset 0 -2px 0 rgba(0,0,0,.12);transition:transform .15s,box-shadow .2s,opacity .2s}
.wog .wog-b:hover{transform:translateY(-1px);box-shadow:0 6px 22px rgba(255,200,60,.45),inset 0 -2px 0 rgba(0,0,0,.12)}
.wog .wog-b:disabled{opacity:.5;cursor:wait}
.wog .wog-ghost{background:rgba(255,255,255,.08);color:#f6efe2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.wog .wog-b.wog-on{background:linear-gradient(180deg,#e6f7ff,#8fdcff);color:#10213a;box-shadow:0 0 0 2px #fff,0 4px 18px rgba(120,210,255,.45)}
.wog [hidden]{display:none!important}

/* shortcode block */
.wog-embed{width:100%;max-width:1100px;margin:1.5em auto;border-radius:18px;padding-top:10px}
.wog-embed .wog-stagewrap{aspect-ratio:1692/1561;padding:0 10px}

/* full screen (overlay + page) */
.wog-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;background:#07081a}
.wog-ov-head{position:absolute;top:0;left:0;right:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 14px 0 20px;pointer-events:none}
.wog-ov-title{color:#f6efe2;font:400 clamp(18px,2.6vw,26px)/1.2 "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;letter-spacing:.06em}
.wog-close{pointer-events:auto;width:44px;height:44px;border-radius:50%;border:none;background:rgba(255,255,255,.12);color:#fff;font:300 30px/1 system-ui,sans-serif;cursor:pointer;padding:0}
.wog-close:hover{background:rgba(255,255,255,.25)}
.wog-ov-body,.wog-page{flex:1;min-height:0;width:100%;padding-top:calc(56px + env(safe-area-inset-top));padding-bottom:env(safe-area-inset-bottom)}
.wog-ov-body .wog-stagewrap,.wog-page .wog-stagewrap{flex:1;padding:4px 12px}

/* chip that appears on the painting elsewhere on the site */
.wog-chip{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom));transform:translate(-50%,20px);opacity:0;z-index:2147482000;
  font:600 15px system-ui,-apple-system,"Segoe UI",sans-serif;color:#1b1530;background:linear-gradient(180deg,#fff7d6,#ffd55a);border:none;border-radius:999px;
  padding:12px 22px;cursor:pointer;box-shadow:0 6px 24px rgba(0,0,0,.35),0 0 0 2px rgba(255,255,255,.7);transition:opacity .35s,transform .35s;pointer-events:none;white-space:nowrap}
.wog-chip.wog-show{opacity:1;transform:translate(-50%,0);pointer-events:auto;animation:wogGlow 2.4s ease-in-out infinite}
@keyframes wogGlow{50%{box-shadow:0 6px 30px rgba(255,210,80,.7),0 0 0 2px rgba(255,255,255,.9)}}
@media (prefers-reduced-motion:reduce){.wog-chip.wog-show{animation:none}}
