/*
 * Whale Fall V98: borderless corner-anchored Heaven/Hell 3D portal projections.
 * True CSS perspective planes + extruded-vector architecture.
 * No second runtime, no portal admission, no additional network requests.
 */
#wfPortableRealmPreview{
  --wf-v98-timing:cubic-bezier(.16,.78,.18,1);
}
#wfPortableRealmPreview .wf-realm-card{
  --wf-tilt-x:0deg;
  --wf-tilt-y:0deg;
  --wf-mist-x:0px;
  --wf-mist-y:0px;
  --wf-genie-offset-x:32%;
  --wf-genie-offset-y:-28%;
  --wf-genie-angle:-90deg;
  position:fixed!important;
  width:min(198px,calc(100vw - 20px))!important;
  height:103px!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  isolation:isolate;
  color:#fbf6e8;
  filter:drop-shadow(0 8px 13px rgba(0,0,0,.6));
  transform-origin:100% 0%;
  transition:
    width 880ms var(--wf-v98-timing),
    height 880ms var(--wf-v98-timing),
    opacity 620ms ease,
    filter 650ms ease,
    transform 830ms var(--wf-v98-timing),
    visibility 0s linear 830ms!important;
  will-change:transform,opacity;
  pointer-events:none!important
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"]{
  --wf-genie-offset-x:-32%;
  --wf-genie-offset-y:29%;
  --wf-genie-angle:90deg;
  transform-origin:0% 100%;
  filter:drop-shadow(0 10px 15px rgba(0,0,0,.72))
}
#wfPortableRealmPreview .wf-realm-card[data-dock="TOP_RIGHT"]{
  top:44px!important;
  right:6px!important;
  bottom:auto!important;
  left:auto!important
}
#wfPortableRealmPreview .wf-realm-card[data-dock="BOTTOM_LEFT"]{
  bottom:9px!important;
  left:6px!important;
  top:auto!important;
  right:auto!important
}
#wfPortableRealmPreview .wf-realm-card[data-state="DOCKED"]{
  width:min(343px,calc(100vw - 16px))!important;
  height:min(372px,calc(100dvh - 62px))!important
}
#wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"]{
  width:min(548px,calc(100vw - 18px))!important;
  height:min(680px,calc(100dvh - 70px))!important;
  filter:drop-shadow(0 21px 30px rgba(0,0,0,.58))
}
#wfPortableRealmPreview .wf-realm-card[data-state="HIDDEN"]{
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translate3d(17px,-14px,0) scale(.06) rotate(-54deg)!important
}
#wfPortableRealmPreview .wf-realm-card[data-state="HIDDEN"][data-scene="hell"]{
  transform:translate3d(-19px,16px,0) scale(.06) rotate(54deg)!important
}
#wfPortableRealmPreview .wf-realm-card::before{
  content:"";position:absolute;z-index:-1;inset:-24% -22%;
  background:radial-gradient(ellipse at 62% 36%,
    rgba(230,250,240,.33) 0,rgba(199,225,198,.18) 25%,rgba(119,178,207,.08) 48%,transparent 75%);
  filter:blur(18px);pointer-events:none;
  transition:opacity .6s ease,transform .8s ease;
  transform-origin:100% 0%
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"]::before{
  background:radial-gradient(ellipse at 35% 62%,
    rgba(255,112,74,.37) 0,rgba(167,44,61,.21) 28%,rgba(75,19,43,.10) 55%,transparent 76%);
  transform-origin:0% 100%
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"]::before{opacity:.82;transform:scale(.88)}
#wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"]::before{opacity:1;transform:scale(1.2)}
/* Keep the World visible behind the unfurled visual, without a modal black curtain. */
#wfPortableRealmPreview .wf-realm-scrim{
  background:radial-gradient(circle at 75% 31%,rgba(148,205,210,.12),transparent 50%),rgba(2,7,15,.26)!important;
  backdrop-filter:blur(1.4px) saturate(.92)!important;
  animation:wf-v98-scrim .35s ease both!important
}
#wfPortableRealmPreview .wf-realm-scrim[data-scene="hell"]{
  background:radial-gradient(circle at 23% 72%,rgba(213,52,42,.16),transparent 50%),rgba(9,2,9,.33)!important
}
/* The V96 whole-card scale-in competed with the V98 nested genie motion.
   Disable only that obsolete card animation; the inner scene still unfurls. */
#wfPortableRealmPreview .wf-realm-card.wf-realm-vista-opening{
  animation:none!important
}
/* Scene has a soft irregular edge, never a hard rectangular pane. */
#wfPortableRealmPreview .wf-realm-artwork{
  position:absolute!important;z-index:1!important;
  inset:0!important;
  width:100%!important;height:100%!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;border-radius:0!important;
  cursor:pointer;pointer-events:auto!important;
  perspective:950px;
  transform-origin:100% 0%;
  filter:none!important
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-artwork{transform-origin:0% 100%}
#wfPortableRealmPreview .wf-realm-artwork::after{
  content:"";position:absolute;z-index:4;inset:0;
  pointer-events:none!important;
  background:linear-gradient(180deg,rgba(5,13,25,.18),transparent 33%,rgba(5,16,27,.17) 90%,transparent 100%)!important;
  mask-image:radial-gradient(ellipse 69% 64% at 55% 51%,#000 39%,transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 69% 64% at 55% 51%,#000 39%,transparent 100%)
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-artwork::after{
  background:linear-gradient(180deg,rgba(12,5,20,.28),transparent 45%,rgba(23,3,10,.17))!important
}
#wfPortableRealmPreview .wf-realm-depth-stage{
  position:absolute;inset:0;z-index:1;
  perspective:950px;
  transform-style:preserve-3d;
  transform:perspective(950px) rotateX(var(--wf-tilt-x,0deg)) rotateY(var(--wf-tilt-y,0deg));
  transition:transform .28s ease-out;
  pointer-events:none!important
}
#wfPortableRealmPreview .wf-realm-depth{
  position:absolute;inset:0;
  transform-style:preserve-3d;
  pointer-events:none!important;
  backface-visibility:hidden
}
#wfPortableRealmPreview .wf-realm-depth-distant{
  z-index:0;transform:translateZ(-110px) scale(1.23);
  opacity:.9
}
#wfPortableRealmPreview .wf-realm-depth-middle{
  z-index:1;
  transform:translate3d(var(--wf-mist-x,0px),var(--wf-mist-y,0px),35px) scale(.98);
  transition:transform .65s ease-out;
}
#wfPortableRealmPreview .wf-realm-depth-foreground{
  z-index:2;transform:translateZ(110px) scale(.83);
  opacity:.91
}
#wfPortableRealmPreview .wf-realm-art-image{
  position:absolute!important;inset:-7% -7% auto!important;
  width:114%!important;height:114%!important;
  max-width:none!important;
  display:block;object-fit:cover;object-position:50% 47%;
  transform:none!important;
  transition:none!important;
  filter:saturate(1.18) contrast(1.1);
  mask-image:radial-gradient(ellipse 73% 73% at 52% 49%,black 20%,rgba(0,0,0,.9) 38%,transparent 76%);
  -webkit-mask-image:radial-gradient(ellipse 73% 73% at 52% 49%,black 20%,rgba(0,0,0,.9) 38%,transparent 76%)
}
#wfPortableRealmPreview .wf-realm-foreground{
  position:absolute;display:block;
  width:108%;height:102%;
  left:-4%;top:-1%;
  max-width:none;object-fit:contain;object-position:center 57%;
  filter:drop-shadow(0 12px 14px rgba(4,15,28,.35));
  mask-image:radial-gradient(ellipse 66% 73% at 50% 57%,#000 36%,rgba(0,0,0,.95) 58%,transparent 94%);
  -webkit-mask-image:radial-gradient(ellipse 66% 73% at 50% 57%,#000 36%,rgba(0,0,0,.95) 58%,transparent 94%);
  transform:translate3d(0,3%,0);
  transition:transform .9s ease-out,opacity .7s ease;
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-foreground{
  filter:drop-shadow(0 8px 13px rgba(0,0,0,.64));
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-depth-stage{
  transform:perspective(950px) rotateX(8deg) rotateY(-13deg) scale(.96)
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"][data-state="PEEK"] .wf-realm-depth-stage{
  transform:perspective(950px) rotateX(-8deg) rotateY(14deg) scale(.96)
}
#wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"] .wf-realm-foreground{transform:translate3d(0,-2%,0)}
/* The aperture surrounds the center, rather than forming a portal frame/card. */
#wfPortableRealmPreview .wf-realm-aperture{
  position:absolute;left:10%;top:11%;width:80%;height:74%;
  z-index:3;pointer-events:none;
  border-radius:50% 44% 48% 52%;
  background:radial-gradient(ellipse,rgba(232,247,230,.025) 39%,rgba(243,226,174,.13) 69%,transparent 78%);
  transform:translateZ(78px) rotate(-5deg);
  opacity:.6
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-aperture{
  background:radial-gradient(ellipse,transparent 44%,rgba(244,66,53,.13) 69%,transparent 78%);
  transform:translateZ(78px) rotate(8deg)
}
#wfPortableRealmPreview .wf-realm-portal-halo{
  position:absolute;top:0;left:0;width:100%;height:100%;
  border-radius:45% 55% 54% 46%/49% 41% 59% 51%;
  transform:none;opacity:.45;
  border:1px solid rgba(250,231,164,.26);
  box-shadow:0 0 40px rgba(239,231,184,.10),inset 0 0 55px rgba(215,245,223,.08);
  animation:wf-v98-aperture-breathe 7s ease-in-out infinite;
  transition:opacity .9s ease
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-portal-halo{
  border-color:rgba(234,72,64,.38);
  box-shadow:0 0 46px rgba(238,57,46,.12),inset 0 0 42px rgba(225,46,35,.1)
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-aperture{opacity:.12}
#wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"] .wf-realm-aperture{opacity:.74}
/* Near-layer drifting clouds/void mist get their own true Z-depth transform. */
#wfPortableRealmPreview .wf-realm-atmosphere{
  position:absolute;z-index:2;
  width:90%;height:38%;border-radius:50%;filter:blur(18px);
  pointer-events:none
}
#wfPortableRealmPreview .wf-realm-card[data-scene="heaven"] .wf-realm-atmosphere{
  background:radial-gradient(ellipse,rgba(240,249,230,.35),rgba(192,239,220,.10) 51%,transparent 79%)
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-atmosphere{
  background:radial-gradient(ellipse,rgba(239,94,59,.23),rgba(145,40,63,.1) 43%,transparent 79%)
}
#wfPortableRealmPreview .wf-realm-atmosphere-0{
  left:-13%;top:49%;animation:wf-v98-cloud-drift-a 17s ease-in-out infinite alternate
}
#wfPortableRealmPreview .wf-realm-atmosphere-1{
  right:-19%;top:65%;animation:wf-v98-cloud-drift-b 20s ease-in-out infinite alternate
}
#wfPortableRealmPreview .wf-realm-atmosphere-2{
  right:10%;top:10%;animation:wf-v98-cloud-drift-c 25s ease-in-out infinite alternate
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-atmosphere{
  animation-play-state:paused!important
}
/* The capsule-free anchor: name/crest hovering above the realm, not a header bar. */
#wfPortableRealmPreview .wf-realm-card-header{
  position:absolute!important;z-index:8!important;
  top:6px;right:0;left:auto;
  display:flex!important;flex-direction:row!important;gap:5px!important;
  justify-content:flex-end!important;align-items:center!important;
  width:min(218px,96%)!important;min-height:34px!important;
  padding:2px 7px!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  pointer-events:none!important
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-card-header{
  top:auto!important;bottom:5px!important;right:auto!important;left:0!important;
  flex-direction:row!important;justify-content:flex-start!important
}
#wfPortableRealmPreview .wf-realm-head-toggle{
  pointer-events:auto!important;display:flex!important;align-items:center!important;
  gap:8px!important;padding:3px 7px!important;margin:0!important;
  border:0!important;background:transparent!important;
  border-radius:24px!important;
  text-align:left;
  text-shadow:0 1px 10px rgba(0,0,0,.9);
  transition:transform .25s ease,filter .25s ease!important
}
#wfPortableRealmPreview .wf-realm-head-toggle:hover{
  transform:scale(1.06)!important;
  filter:brightness(1.18)!important
}
#wfPortableRealmPreview .wf-realm-crest{
  flex:0 0 30px!important;width:30px!important;height:30px!important;
  border-radius:50%;border-color:rgba(255,246,213,.78);
  box-shadow:0 0 15px rgba(242,244,215,.65),0 0 31px rgba(141,205,222,.38);
  animation:wf-v98-crest-float 5.5s ease-in-out infinite alternate
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-crest{
  box-shadow:0 0 13px rgba(236,91,55,.75),0 0 24px rgba(185,25,43,.37)
}
#wfPortableRealmPreview .wf-realm-identity strong{
  font-size:17px;letter-spacing:.055em;
  text-shadow:0 2px 11px rgba(0,0,0,.93),0 0 14px rgba(240,233,189,.28)
}
#wfPortableRealmPreview .wf-realm-identity-hint{
  font-size:7px;letter-spacing:.13em;color:#fbebc4
}
#wfPortableRealmPreview .wf-realm-state-label{
  font-size:7px;color:#ffeed3;letter-spacing:.10em;
  border:none!important;border-radius:0!important;
  background:none!important;text-shadow:0 1px 9px #000;
  padding:0!important;white-space:nowrap
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-card-header{width:100%!important}
#wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"] .wf-realm-card-header{
  top:17px;width:auto!important;right:15px
}
#wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"][data-scene="hell"] .wf-realm-card-header{
  top:auto;bottom:12px;left:14px;right:auto
}
/* Scene captions float over open air. */
#wfPortableRealmPreview .wf-realm-vista-caption{
  position:absolute;z-index:5;
  left:auto;right:12%;top:72%;bottom:auto;
  width:max-content;max-width:72%;
  text-align:right;display:grid;gap:1px;
  text-shadow:0 3px 13px #000;
  pointer-events:none
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-vista-caption{
  left:9%;right:auto;top:10%;text-align:left
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-vista-caption{
  top:auto;bottom:6px;right:11%;left:auto;
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"][data-scene="hell"] .wf-realm-vista-caption{
  top:5px;left:8%;right:auto;bottom:auto
}
#wfPortableRealmPreview .wf-realm-vista-tag{
  color:#ffe7b5;font-size:10px;font-weight:780;letter-spacing:.16em
}
#wfPortableRealmPreview .wf-realm-vista-subtitle{
  font:italic 15px/1.2 Georgia,serif;color:#f1e9d2
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-vista-tag{font-size:7px}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-vista-subtitle{display:none}
/* Lens, workspace provenance and authority stay available as discrete lore,
   never as the always-open square scroll modal seen in the operator screenshot. */
#wfPortableRealmPreview .wf-realm-card-body{
  position:absolute!important;z-index:9!important;
  display:flex;flex-direction:column;align-items:flex-end;gap:9px;
  right:17px;bottom:18px;left:auto;top:auto;
  width:min(330px,calc(100% - 30px));
  height:auto!important;max-height:calc(100% - 104px);
  margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  overflow:visible!important;box-shadow:none!important;
  pointer-events:none;
  animation:wf-v98-controls-arrive .55s ease .23s both!important
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-card-body{
  left:18px;right:auto;bottom:65px;align-items:flex-start
}
#wfPortableRealmPreview .wf-realm-card-body[hidden]{display:none!important}
#wfPortableRealmPreview .wf-realm-lore{
  pointer-events:auto;position:relative;
  align-self:flex-end;max-width:100%;font-size:11px;
  padding:0;margin:0;
  color:#f9eddd
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-lore{align-self:flex-start}
#wfPortableRealmPreview .wf-realm-lore-toggle{
  pointer-events:auto;cursor:pointer;display:inline-block;
  list-style:none;white-space:nowrap;
  margin:0;padding:7px 12px;border-radius:999px;
  background:linear-gradient(110deg,rgba(19,36,52,.78),rgba(70,87,86,.52));
  border:1px solid rgba(241,232,183,.41);
  box-shadow:0 6px 18px rgba(0,0,0,.37),inset 0 1px rgba(255,255,255,.24);
  color:#f9e7c0;font-size:10px;letter-spacing:.05em;
  backdrop-filter:blur(10px)
}
#wfPortableRealmPreview .wf-realm-lore-toggle::-webkit-details-marker{display:none}
#wfPortableRealmPreview .wf-realm-lore-toggle::before{
  content:"✦";margin-right:8px;color:#f8d49c
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-lore-toggle{
  background:linear-gradient(110deg,rgba(59,15,27,.84),rgba(28,12,36,.69));
  border-color:rgba(236,122,98,.47);color:#ffb9a5
}
#wfPortableRealmPreview .wf-realm-lore-toggle:focus-visible{
  outline:2px solid #fbe6a9;outline-offset:3px
}
#wfPortableRealmPreview .wf-realm-lore[open]{
  width:min(314px,100%);
  max-height:min(295px,48vh);
  overflow:auto;overscroll-behavior:contain;
  border-radius:15px;background:linear-gradient(170deg,rgba(8,29,43,.93),rgba(7,13,26,.94));
  border:1px solid rgba(242,224,184,.36);
  box-shadow:0 16px 45px rgba(0,0,0,.58);
  scrollbar-width:thin;scrollbar-color:rgba(227,196,140,.56) transparent;
  backdrop-filter:blur(13px)
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-lore[open]{
  background:linear-gradient(170deg,rgba(33,9,23,.95),rgba(9,6,19,.95));
  border-color:rgba(222,86,69,.42)
}
#wfPortableRealmPreview .wf-realm-lore[open] .wf-realm-lore-toggle{
  border-radius:14px 14px 5px 5px;border:none!important;
  width:100%;background:rgba(222,200,165,.09)
}
#wfPortableRealmPreview .wf-realm-lore-content{padding:10px 13px 13px}
#wfPortableRealmPreview .wf-realm-summary{font-size:11px;line-height:1.45;color:#e7e5d6}
#wfPortableRealmPreview .wf-realm-section-title{font-size:8px;color:#f2d8a9}
#wfPortableRealmPreview .wf-realm-workspaces{gap:5px}
#wfPortableRealmPreview .wf-realm-workspaces li{
  border-color:rgba(235,222,185,.16);
  background:rgba(214,232,220,.055)
}
#wfPortableRealmPreview .wf-realm-placement{color:#d0d9d0}
#wfPortableRealmPreview .wf-realm-preview-controls{
  margin:5px 0 8px;padding:7px 10px;
  background:rgba(231,239,222,.055);border-radius:9px
}
#wfPortableRealmPreview .wf-realm-actions{
  pointer-events:auto;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;
  margin:0!important;padding:0!important
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-actions{justify-content:flex-start}
#wfPortableRealmPreview .wf-realm-actions button{
  padding:7px 10px!important;
  font-size:10px!important;letter-spacing:.03em;
  background:rgba(5,17,29,.63)!important;
  border:1px solid rgba(238,220,171,.25)!important;
  border-radius:999px!important;color:#f9f0de!important;
  backdrop-filter:blur(12px);
  box-shadow:0 6px 15px rgba(0,0,0,.34)!important
}
#wfPortableRealmPreview .wf-realm-actions button:hover{
  background:rgba(242,225,181,.20)!important;
  transform:translateY(-2px)
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-actions button{
  background:rgba(28,7,20,.73)!important;
  border-color:rgba(230,102,84,.3)!important
}
/* HIDDEN returns to a bright sphere fixed at the original corner. */
#wfPortableRealmPreview .wf-realm-launcher{
  position:fixed!important;z-index:3!important;
  width:46px!important;height:46px!important;
  padding:4px!important;display:flex!important;align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;color:transparent!important;font-size:0!important;
  border:0!important;border-radius:50%!important;
  background:radial-gradient(circle at 35% 29%,#fff9cf,#a3e4e2 31%,#2e6b94 67%,transparent 76%)!important;
  box-shadow:0 0 15px rgba(223,243,217,.47),0 0 42px rgba(138,198,204,.24)!important;
  animation:wf-v98-anchor-appear .52s ease both!important
}
#wfPortableRealmPreview .wf-realm-launcher[data-dock="TOP_RIGHT"]{
  top:48px!important;right:12px!important
}
#wfPortableRealmPreview .wf-realm-launcher[data-dock="BOTTOM_LEFT"]{
  bottom:14px!important;left:11px!important;
  background:radial-gradient(circle at 46% 78%,#ffe49c,#f96939 31%,#721f33 66%,transparent 79%)!important;
  box-shadow:0 0 18px rgba(249,104,61,.44),0 0 42px rgba(197,48,41,.24)!important
}
#wfPortableRealmPreview .wf-realm-launcher[hidden]{display:none!important}
#wfPortableRealmPreview .wf-realm-launcher::after{
  content:"";width:26px;height:26px;position:absolute;inset:10px;
  border:1px solid rgba(255,250,217,.7);border-radius:50%;
  animation:wf-v98-anchor-ring 5s ease-in-out infinite
}
/* Cinematic genie's smoke: emerges out of / is sucked into the anchor. */
#wfPortableRealmPreview .wf-realm-genie-stream{
  position:absolute;z-index:10;
  right:16px;top:17px;left:auto;bottom:auto;
  width:0;height:0;pointer-events:none;
  transform-style:preserve-3d;
  color:#f9f2d9
}
#wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-genie-stream{
  left:18px;bottom:21px;right:auto;top:auto;color:#f97549
}
#wfPortableRealmPreview .wf-realm-genie-stream::before,
#wfPortableRealmPreview .wf-realm-genie-stream::after{
  content:"";position:absolute;left:-13px;top:-13px;
  width:26px;height:26px;border-radius:50%;
  border:2px solid currentColor;opacity:0;
  filter:blur(4px);
  pointer-events:none
}
#wfPortableRealmPreview .wf-realm-genie-spark{
  position:absolute;z-index:2;
  width:var(--spark-size,3px);height:var(--spark-size,3px);
  left:0;top:0;border-radius:50%;
  opacity:0;pointer-events:none;
  background:currentColor;
  box-shadow:0 0 10px currentColor,0 0 17px currentColor;
  transform-origin:50% 50%
}
#wfPortableRealmPreview .wf-realm-card[data-phase="bloom"] .wf-realm-artwork{
  animation:wf-v98-genie-unfurl .89s cubic-bezier(.15,.76,.15,1) both!important
}
#wfPortableRealmPreview .wf-realm-card[data-phase="siphon"] .wf-realm-artwork{
  animation:wf-v98-genie-siphon .78s cubic-bezier(.64,0,.87,.25) both!important
}
#wfPortableRealmPreview .wf-realm-card[data-phase="bloom"] .wf-realm-genie-spark{
  animation:wf-v98-spark-out .89s ease-out var(--spark-delay,0ms) both
}
#wfPortableRealmPreview .wf-realm-card[data-phase="siphon"] .wf-realm-genie-spark{
  animation:wf-v98-spark-in .68s ease-in var(--spark-delay,0ms) both
}
#wfPortableRealmPreview .wf-realm-card[data-phase="bloom"] .wf-realm-genie-stream::before{
  animation:wf-v98-whorl-out .86s ease-out both
}
#wfPortableRealmPreview .wf-realm-card[data-phase="siphon"] .wf-realm-genie-stream::after{
  animation:wf-v98-whorl-in .8s ease-in both
}
#wfPortableRealmPreview .wf-realm-card[data-state="PEEK"] .wf-realm-card-body{display:none!important}
#wfPortableRealmPreview .wf-realm-card[data-state="HIDDEN"] .wf-realm-card-body{display:none!important}
@keyframes wf-v98-genie-unfurl{
  0%{opacity:0;filter:blur(21px) brightness(1.5);transform:translate3d(var(--wf-genie-offset-x),var(--wf-genie-offset-y),0) rotate(var(--wf-genie-angle)) scale(.035) skew(-22deg,15deg)}
  28%{opacity:.72;filter:blur(12px) brightness(1.36);transform:translate3d(8%,-5%,0) rotate(-16deg) scale(.3) skew(-9deg,5deg)}
  65%{opacity:1;filter:blur(3px) brightness(1.16);transform:translate3d(-1%,1%,0) rotate(4deg) scale(1.07)}
  100%{opacity:1;filter:blur(0) brightness(1);transform:translate3d(0,0,0) rotate(0) scale(1)}
}
@keyframes wf-v98-genie-siphon{
  0%{opacity:1;filter:blur(0);transform:translate3d(0,0,0) rotate(0) scale(1)}
  38%{opacity:.9;filter:blur(5px);transform:translate3d(1%,-2%,0) rotate(24deg) scale(.77)}
  70%{opacity:.42;filter:blur(13px);transform:translate3d(var(--wf-genie-offset-x),var(--wf-genie-offset-y),0) rotate(var(--wf-genie-angle)) scale(.21) skew(13deg,-15deg)}
  100%{opacity:0;filter:blur(22px);transform:translate3d(var(--wf-genie-offset-x),var(--wf-genie-offset-y),0) rotate(var(--wf-genie-angle)) scale(.025) skew(20deg,-20deg)}
}
@keyframes wf-v98-spark-out{
  0%{opacity:0;transform:rotate(var(--spark-angle)) translateX(3px) scale(.2)}
  24%{opacity:1}
  65%{opacity:.8;transform:rotate(calc(var(--spark-angle) + 225deg)) translateX(var(--spark-reach)) scale(1.6)}
  100%{opacity:0;transform:rotate(calc(var(--spark-angle) + 320deg)) translateX(calc(var(--spark-reach) * .72)) scale(.22)}
}
@keyframes wf-v98-spark-in{
  0%{opacity:0;transform:rotate(calc(var(--spark-angle) + 240deg)) translateX(var(--spark-reach)) scale(.38)}
  37%{opacity:.9}
  80%{opacity:.9;transform:rotate(calc(var(--spark-angle) + 55deg)) translateX(21px) scale(.8)}
  100%{opacity:0;transform:rotate(var(--spark-angle)) translateX(0) scale(.05)}
}
@keyframes wf-v98-whorl-out{
  0%{opacity:0;transform:rotate(0) scale(.2)}
  28%{opacity:.7;transform:rotate(125deg) scale(3.5)}
  100%{opacity:0;transform:rotate(300deg) scale(15)}
}
@keyframes wf-v98-whorl-in{
  0%{opacity:0;transform:rotate(-240deg) scale(15)}
  56%{opacity:.8;transform:rotate(-100deg) scale(5)}
  100%{opacity:0;transform:rotate(0) scale(.1)}
}
@keyframes wf-v98-controls-arrive{
  0%{opacity:0;transform:translateY(16px) scale(.9)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes wf-v98-cloud-drift-a{
  0%{transform:translate3d(-8%,2%,0) scale(.93);opacity:.26}
  100%{transform:translate3d(19%,-4%,0) scale(1.13);opacity:.68}
}
@keyframes wf-v98-cloud-drift-b{
  0%{transform:translate3d(13%,3%,0) scale(.96);opacity:.38}
  100%{transform:translate3d(-16%,-6%,0) scale(1.1);opacity:.72}
}
@keyframes wf-v98-cloud-drift-c{
  0%{transform:translate3d(8%,-5%,0) scale(.9);opacity:.23}
  100%{transform:translate3d(-11%,10%,0) scale(1.08);opacity:.45}
}
@keyframes wf-v98-aperture-breathe{
  0%,100%{opacity:.32;transform:scale(.94) rotate(-4deg)}
  50%{opacity:.72;transform:scale(1.06) rotate(4deg)}
}
@keyframes wf-v98-crest-float{
  0%{transform:translate3d(0,-2px,0) scale(.96)}
  100%{transform:translate3d(0,3px,0) scale(1.06)}
}
@keyframes wf-v98-anchor-ring{
  0%,100%{opacity:.45;transform:scale(.78)}
  50%{opacity:.86;transform:scale(1.1)}
}
@keyframes wf-v98-anchor-appear{
  0%{opacity:0;transform:scale(.08) rotate(160deg)}
  100%{opacity:1;transform:scale(1) rotate(0deg)}
}
@keyframes wf-v98-scrim{from{opacity:0}to{opacity:1}}
/* Keep the corner origin and click affordances on two-browser split-screen. */
@media(max-width:760px){
  #wfPortableRealmPreview .wf-realm-card[data-dock="TOP_RIGHT"]{top:35px!important;right:3px!important}
  #wfPortableRealmPreview .wf-realm-card[data-dock="BOTTOM_LEFT"]{bottom:7px!important;left:3px!important}
  #wfPortableRealmPreview .wf-realm-card[data-state="PEEK"]{width:166px!important;height:88px!important}
  #wfPortableRealmPreview .wf-realm-card[data-state="DOCKED"]{
    width:min(290px,calc(100vw - 14px))!important;
    height:min(315px,calc(100dvh - 72px))!important
  }
  #wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"]{
    width:min(450px,calc(100vw - 12px))!important;
    height:min(550px,calc(100dvh - 76px))!important
  }
  #wfPortableRealmPreview .wf-realm-card-header{padding:0!important;gap:3px!important}
  #wfPortableRealmPreview .wf-realm-crest{width:26px!important;height:26px!important;flex-basis:26px!important}
  #wfPortableRealmPreview .wf-realm-identity strong{font-size:15px}
  #wfPortableRealmPreview .wf-realm-identity-hint{font-size:6px}
  #wfPortableRealmPreview .wf-realm-state-label{font-size:6px}
  #wfPortableRealmPreview .wf-realm-vista-tag{font-size:8px}
  #wfPortableRealmPreview .wf-realm-vista-subtitle{font-size:12px}
  #wfPortableRealmPreview .wf-realm-card-body{right:7px;bottom:10px;width:min(300px,calc(100% - 24px))}
  #wfPortableRealmPreview .wf-realm-card[data-scene="hell"] .wf-realm-card-body{left:7px;bottom:48px}
  #wfPortableRealmPreview .wf-realm-lore[open]{max-height:min(245px,40vh)}
  #wfPortableRealmPreview .wf-realm-actions button{padding:6px 8px!important;font-size:9px!important}
}
@media(max-height:570px){
  #wfPortableRealmPreview .wf-realm-card[data-state="EXPANDED"]{height:calc(100dvh - 65px)!important}
  #wfPortableRealmPreview .wf-realm-lore[open]{max-height:min(185px,32vh)}
  #wfPortableRealmPreview .wf-realm-card[data-state="DOCKED"]{height:calc(100dvh - 75px)!important}
}
/* Absolutely no unrequested motion for reduced-motion users. */
@media(prefers-reduced-motion:reduce){
  #wfPortableRealmPreview *,
  #wfPortableRealmPreview *::before,
  #wfPortableRealmPreview *::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
    will-change:auto!important;
  }
  #wfPortableRealmPreview .wf-realm-card[data-state="HIDDEN"]{visibility:hidden!important}
  #wfPortableRealmPreview .wf-realm-depth-stage{transform:none!important}
  #wfPortableRealmPreview .wf-realm-portal-halo{opacity:.2!important}
  #wfPortableRealmPreview .wf-realm-genie-stream{display:none!important}
}

/* V99: allow unpinned portals to retract before the World inspector needs
   pointer access. On the Cesium map, pinned vistas have a transparent scrim,
   never a full-map blur. All styling remains scoped to the realm island. */
#wfPortableRealmPreview .wf-realm-scrim{
  pointer-events:none!important;
  background:rgba(5,11,18,.12)!important;
  backdrop-filter:none!important;
}
#wfPortableRealmPreview .wf-realm-scrim[data-scene="hell"]{
  background:rgba(10,2,8,.16)!important;
}
#wfPortableRealmPreview[data-renderer-mode="earth"] .wf-realm-scrim{
  background:rgba(3,9,17,.11)!important;
  backdrop-filter:none!important;
}
#wfPortableRealmPreview .wf-realm-pin[aria-pressed="true"]{
  color:#fff1ad!important;
  background:rgba(155,119,49,.38)!important;
  border-color:rgba(248,219,138,.72)!important;
}
#wfPortableRealmPreview .wf-realm-pin:focus-visible{
  outline:2px solid #f7e6a3!important;outline-offset:2px!important;
}
