/* Tree of Knowledge 1.2.0 — looks like Gifts from the Heart */
.tok-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 40%,#23264a 0%,#12142b 55%,#07081a 100%);color:#f6efe2;
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;-webkit-user-select:none;user-select:none;box-sizing:border-box}
.tok-overlay *{box-sizing:border-box}
.tok-sky{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.tok-head,.tok-stage,.tok-nav{position:relative;z-index:1}
.tok-head{display:flex;align-items:center;justify-content:space-between;padding:calc(10px + env(safe-area-inset-top)) 14px 0 20px}
.tok-title{font:400 clamp(18px,2.6vw,26px)/1.2 "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;letter-spacing:.06em}
.tok-sub{display:block;font-size:.55em;font-style:italic;color:#cbbf9f;letter-spacing:.03em;margin-top:2px}
.tok-close{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}
.tok-close:hover{background:rgba(255,255,255,.25)}
.tok-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:8px 12px}
.tok-frame{position:relative;overflow:hidden;cursor:pointer;touch-action:none}
.tok-still,.tok-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tok-film{opacity:0;transition:opacity 1.4s ease;background:transparent}
.tok-alive .tok-film{opacity:1}
.tok-frame.tok-magging{cursor:none}
.tok-loupe{position:absolute;display:none;border-radius:50%;pointer-events:none;background-repeat:no-repeat;z-index:3;
  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)}
.tok-nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;padding:8px 12px calc(16px + env(safe-area-inset-bottom))}
.tok .tok-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;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}
.tok .tok-b:hover{transform:translateY(-1px);box-shadow:0 6px 22px rgba(255,200,60,.45),inset 0 -2px 0 rgba(0,0,0,.12)}
.tok .tok-ghost{background:rgba(255,255,255,.08);color:#f6efe2;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
.tok .tok-b.tok-on{background:linear-gradient(180deg,#e6f7ff,#8fdcff);color:#10213a}
.tok [hidden]{display:none!important}

/* the button that appears on the painting elsewhere on the site */
.tok-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}
.tok-chip.tok-show{opacity:1;transform:translate(-50%,0);pointer-events:auto;animation:tokGlow 2.4s ease-in-out infinite}
@keyframes tokGlow{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){.tok-chip.tok-show{animation:none}.tok-film{transition:none}}

/* the site's own magnifier button and lens stay out of the way while the painting is open */
html.tok-open .pmag-btn,html.tok-open .pmag-glass{display:none!important}
