/* Profile world materials and their image-free stages. */
[data-world-skin="anime"] {
  --paper: #fafafa; --ink: #151515; --muted-ink: #454545; --rule: #252525; --key: #fff;
  --key-radius: 1px; --stamp: #1b1b1b; --trim-width: 5px;
  --rim: repeating-linear-gradient(146deg,#161616 0 5px,#fff 5px 6px,#161616 7px 10px);
  --finish: radial-gradient(circle,#28282826 .65px,transparent .85px) 0 0 / 4px 4px;
  --edge-shadow: 0 0 0 2px #121212, 5px 7px #141414, inset 0 0 0 9px #fafafa;
  --control-face: linear-gradient(115deg,transparent 88%,#222 88% 88.6%,transparent 88.8%),linear-gradient(90deg,#151515 0 4px,transparent 4px);
}
[data-world-skin="futuristic"] {
  --paper: #101820; --ink: #f4f1d7; --muted-ink: #b7ccca; --rule: #4a8b89; --key: #15242b;
  --key-radius: 2px; --stamp: #ebe835; --trim-width: 6px;
  --rim: linear-gradient(125deg,#f4e937 0 15%,#344448 15.2% 17%,#66d5cc 17.2% 36%,#1e333b 36.2% 68%,#eada33 68.2% 84%,#21363e 84.2%);
  --finish: linear-gradient(120deg,#27343280,transparent 38%),repeating-linear-gradient(0deg,transparent 0 3px,#77d9d708 4px);
  --edge-shadow: 0 0 0 2px #142727, 4px 5px #10151c, inset 0 0 0 9px #1a2b30;
  --control-face: linear-gradient(125deg,#efdf3d 0 5px,transparent 5.5px),linear-gradient(315deg,#286160 0 9px,transparent 9.5px);
}
[data-world-skin="latin"] {
  --paper: #fae3b5; --ink: #44251d; --muted-ink: #714330; --rule: #945034; --key: #f7d18f;
  --key-radius: 1px;
  --rim: repeating-conic-gradient(from 45deg,#174d60 0 25%,#f2c075 0 50%,#a14730 0 75%,#ffdb98 0) 0 0 / 16px 16px;
  --finish: radial-gradient(#7c3e242e .8px,transparent 1px) 0 0 / 4px 4px,linear-gradient(135deg,#ffefca66,transparent 65%);
  --edge-shadow: 0 0 0 2px #723220, 6px 7px #284c51, inset 0 0 0 11px #f0d9a1,inset 0 0 0 13px #a45938;
  --stamp: #215465; --trim-width: 9px;
}
[data-world-skin="gothic"] {
  --paper: #21131a; --ink: #f2dfc5; --muted-ink: #d4b8ab; --rule: #997650; --key: #361a25;
  --key-radius: 13px 13px 3px 3px; --stamp: #d8b487; --trim-width: 6px;
  --rim: repeating-linear-gradient(133deg,#b99b6e 0 2px,#532837 2px 5px,#2c1922 5px 8px,#986446 8px 10px);
  --finish: radial-gradient(ellipse at 50% 6%,#66263b70,transparent 66%),repeating-linear-gradient(48deg,transparent 0 5px,#c6957308 5px 6px);
  --edge-shadow: 0 0 0 2px #341724, 0 0 0 3px #a07a56, 0 7px 12px #130a14ad, inset 0 0 0 10px #2b1921,inset 0 0 0 11px #97734d;
  --control-face: linear-gradient(90deg,#94623c28,transparent 16% 84%,#94623c28),linear-gradient(180deg,#502331,transparent);
}
[data-world-skin="vaporwave"] {
  --paper: #201237; --ink: #fff0fe; --muted-ink: #edd1f2; --rule: #aa68b6; --key: #39204f;
  --key-radius: 3px; --stamp: #63efdf; --trim-width: 7px;
  --rim: linear-gradient(145deg,#71f5e2 0 18%,#3b519d 23%,#f652bc 38% 58%,#ffac91 68%,#6af2ea 81%,#a75ee4);
  --finish: repeating-linear-gradient(0deg,transparent 0 3px,#efc1ff08 3px 4px),linear-gradient(125deg,#46305d88,transparent 54%);
  --edge-shadow: -2px -2px #72e8da, 3px 3px #ff61bb, 5px 7px #29113d, inset 0 0 0 10px #362249;
  --control-face: linear-gradient(105deg,#ff5ec215,transparent 45%),linear-gradient(180deg,#ae73b52b,transparent 50%);
}
[data-world-skin="gaming"] {
  --paper: #371925; --ink: #fff2d9; --muted-ink: #ebc9b6; --rule: #af6253; --key: #622a30;
  --key-radius: 7px;
  --rim: repeating-linear-gradient(135deg,#ed624a 0 8px,#a92d3d 8px 16px,#e59c57 16px 20px,#41273f 20px 27px);
  --finish: repeating-linear-gradient(0deg,transparent 0 3px,#100c2030 4px),linear-gradient(135deg,#88394433,transparent 65%);
  --edge-shadow: 0 0 0 3px #29172a,0 5px 0 6px #130e19,inset 0 0 0 12px #4f2932,inset 0 0 0 14px #160f1b;
  --stamp: #ffc079; --trim-width: 9px;
}
[data-world-skin="nature"] {
  --paper: #e9ead5; --ink: #283a2a; --muted-ink: #465c46; --rule: #799074; --key: #e3e6ce;
  --key-radius: 2px;
  --rim: repeating-linear-gradient(90deg,#344e40 0 2px,#67816a 3px 4px),#516652;
  --finish: linear-gradient(90deg,#6781674a 0 2%,transparent 5%),repeating-linear-gradient(0deg,transparent 0 24px,#73896d1a 25px 26px);
  --edge-shadow: -4px 0 #344f43, 2px 3px #d6c99f,4px 5px #677964,6px 7px #cfc6a6,8px 9px #28453b;
  --stamp: #547249; --trim-width: 8px;
}
[data-world-skin="cyber"] {
  --paper: #14231e; --ink: #d9f1d5; --muted-ink: #abc6a7; --rule: #618475; --key: #24382d;
  --key-radius: 0;
  --rim: repeating-linear-gradient(90deg,#223d31 0 5px,#b59a5b 5px 7px,#436f54 7px 12px);
  --finish: repeating-linear-gradient(0deg,transparent 0 3px,#69977e12 4px),linear-gradient(120deg,#203d2b,transparent 64%);
  --edge-shadow: 0 0 0 3px #0c1a17,3px 5px #07120f,inset 0 0 0 10px #193328,inset 0 0 0 11px #75814c;
  --stamp: #a8c788; --trim-width: 7px;
}
[data-world-skin="vapor"] {
  --paper: #2a1a36; --ink: #fff0ea; --muted-ink: #e2c2d3; --rule: #ae7c9b; --key: #422641;
  --key-radius: 2px;
  --rim: repeating-linear-gradient(0deg,#423448 0 2px,#302b3d 3px 4px,#6d6171 5px 6px);
  --finish: linear-gradient(173deg,#e7e2df12,transparent 28%),repeating-linear-gradient(93deg,transparent 0 2px,#ae91b008 3px);
  --edge-shadow: 0 0 0 2px #211b2a,0 4px 0 4px #191322,inset 0 0 0 12px #3c3342,inset 0 0 0 13px #827489;
  --stamp: #d2b2bf; --trim-width: 8px;
}
[data-world-skin="minimal"] {
  --paper: #f4f1ea; --ink: #242522; --muted-ink: #52554e; --rule: #9a9c91; --key: #f4f1ea;
  --key-radius: 0;
  --rim: repeating-linear-gradient(90deg,#222724 0 1px,transparent 1px 6px),#c2bfb2;
  --finish: linear-gradient(105deg,#fff9,transparent 29%),repeating-linear-gradient(0deg,#b0a58a08 0 1px,transparent 1px 3px);
  --edge-shadow: 1px 2px #9d9d90,4px 4px #ece9db,5px 5px #a7a397,9px 10px 18px #36352b26;
  --stamp: #393e36; --trim-width: 3px;
}
[data-world-skin="sunset"] {
  --paper: #452d29; --ink: #fff1dc; --muted-ink: #ebcfc1; --rule: #b18a70; --key: #5d3c32;
  --key-radius: 18px 4px 18px 4px;
  --rim: repeating-linear-gradient(90deg,#372a2b 0 5px,#efc98c 5px 11px,#372a2b 11px 19px);
  --finish: radial-gradient(ellipse at 8% 20%,#d4804d30,transparent 53%),linear-gradient(130deg,#6c4733,transparent 52%);
  --edge-shadow: 0 0 0 2px #39272b,0 4px 0 4px #4c3932,inset 0 0 0 12px #3f302d,inset 0 0 0 13px #9d7957;
  --stamp: #f0cc8d; --trim-width: 8px;
}
.has-world-backdrop .pg-orbs { display: none; }
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) {
  background: var(--finish), color-mix(in srgb, var(--paper) calc(96% * var(--card-opacity, 1)), transparent);
  border-color: var(--card-edge, color-mix(in srgb, var(--rule) 65%, transparent));
  box-shadow: var(--edge-shadow), 0 15px 40px #12111a40;
}
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) > .profile-card__sheen { opacity: .12; }
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) :is(.profile-name,.profile-title,.profile-bio,.profile-meta,.profile-socials,.profile-links) {
  --text-0: var(--ink); --text-1: var(--ink); --text-2: var(--muted-ink); --text-3: var(--muted-ink);
}
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-name.text-fx-none {
  color: var(--ink); -webkit-text-fill-color: currentColor; background: none;
}
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-bio.text-fx-none { color: var(--bio-color, var(--muted-ink)); }
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-title { color: var(--title-color, var(--muted-ink)); }
.has-material-world .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-meta { color: var(--muted-ink); }
.has-material-world:where(.world-links) .pg-link {
  background: var(--key);
  border-radius: var(--key-radius);
  color: var(--link-color, var(--ink));
}
.has-material-world:where(.world-links) .pg-link:not(.pg-link--no-border) { border-color: var(--rule); }
.has-material-world:where(.world-links) .pg-link__arrow { color: var(--muted-ink); }
.has-material-world:where(.world-links) .pg-link__icon { color: var(--icon-color, var(--ink)); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.has-material-world:where(.world-links) .pg-link:hover { background-color: color-mix(in srgb, var(--key) 88%, var(--ink)); }
.has-material-world:where(.world-links) .pg-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[data-world-skin="anime"]:where(.world-links) .pg-link:not(.pg-link--no-border) .pg-link__icon { padding-right: 8px; background: none; border-right: 1px dashed var(--rule); border-radius: 0; }
[data-world-skin="futuristic"]:where(.world-links) .pg-link__arrow { border: 1px solid var(--rule); padding: 1px 5px; }
[data-world-skin="latin"]:where(.world-links) .pg-link:not(.pg-link--no-border) { box-shadow: 3px 3px 0 #8c492f; }
[data-world-skin="gothic"]:where(.world-links) .pg-link:not(.pg-link--no-border) { outline: 1px solid #b79a7740; outline-offset: -5px; }
[data-world-skin="gaming"]:where(.world-links) .pg-link:not(.pg-link--no-border) { box-shadow: inset 0 2px #f8c0834d, inset 0 -3px #34121b, 0 2px #200f15; }
[data-world-skin="nature"]:where(.world-links) .pg-link:not(.pg-link--no-border) { border-width: 0 0 1px 3px; border-bottom-style: dotted; }
[data-world-skin="cyber"]:where(.world-links) .pg-link__arrow { color: #efb26a; font-family: monospace; }
[data-world-skin="cyber"]:where(.world-links) .pg-link:not(.pg-link--no-border) { border-left-width: 3px; }
[data-world-skin="vapor"]:where(.world-links) .pg-link:not(.pg-link--no-border) { border-width: 1px 1px 3px; box-shadow: inset 3px 0 #81b9bf; }
[data-world-skin="minimal"]:where(.world-links) .pg-link:not(.pg-link--no-border) { border-width: 0 0 1px; }
[data-world-skin="minimal"]:where(.world-links) .pg-link__icon { background: none; }
[data-world-skin="sunset"]:where(.world-links) .pg-link { background-image: linear-gradient(110deg,#edaf7020,transparent 65%); }

/* Distinct silhouettes within the standard profile layouts. */
.has-material-world :is(.tpl-editorial,.tpl-poster).is-framed:not(.tpl-custom) { padding: var(--card-padding, 32px); }
[data-world-skin="nature"] .tpl-editorial:not(.tpl-custom) .profile-card__body { border-block-start: 1px solid var(--rule); padding-block-start: 16px; }
[data-world-skin="nature"] .tpl-editorial:not(.tpl-custom) .avatar { margin-inline: 0 auto; }
[data-world-skin="gothic"] .tpl-glass:not(.tpl-custom) .profile-card__body::before {
  content: ""; display: block; width: 9px; height: 9px; margin: 0 auto 12px; transform: rotate(45deg);
  border: 1px solid #d1ac81; background: #9f3548; box-shadow: 0 0 0 2px #462a32;
}
[data-world-skin="gaming"] .tpl-bento .profile-card__portrait,
[data-world-skin="gaming"] .tpl-bento .profile-card__body { background: #241622; border-color: #914a45; }
[data-world-skin="minimal"] .tpl-split:not(.tpl-custom) .profile-card__portrait { border-inline-end: 1px solid var(--rule); }
[data-world-skin="sunset"] .tpl-glass:not(.tpl-custom) .profile-card__body { border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
@container card (min-width: 471px) {
  [data-world-skin="vaporwave"] .tpl-glass:not(.tpl-custom) .profile-card__layout { --tc-lcols: repeat(2,minmax(0,1fr)); }
  [data-world-skin="minimal"] .tpl-split:not(.tpl-custom) .profile-card__layout { --tc-cols: minmax(90px, .45fr) minmax(0,1fr); }
}
@container card (max-width: 470px) {
  [data-world-skin="minimal"] .tpl-split:not(.tpl-custom) .profile-card__portrait { border-inline-end: 0; }
}

.world-trim { display: none; pointer-events: none; }
.has-material-world .profile-card.is-framed:not(.hide-frame-stroke):not(.has-frame-paint):not(.has-soft-frame) > .world-trim {
  display: block; position: absolute; inset: 1px; z-index: 2; border-radius: inherit; color: var(--stamp);
}
.world-trim::before {
  content: ""; position: absolute; inset: 1px; border-radius: inherit;
  padding: min(var(--trim-width), calc(1.5 * var(--frame-width)));
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.world-trim svg {
  position: absolute; width: min(58px, var(--card-padding), 11%); height: auto; aspect-ratio: 1;
  filter: drop-shadow(0 1px 0 #0003);
}
.world-trim svg:nth-child(1) { top: 8px; left: 8px; }
.world-trim svg:nth-child(2) { top: 8px; right: 8px; transform: scaleX(-1); }
.world-trim svg:nth-child(3) { bottom: 8px; left: 8px; transform: scaleY(-1); }
.world-trim svg:nth-child(4) { bottom: 8px; right: 8px; transform: scale(-1); }
.has-material-world .avatar__disc { outline: 2px solid var(--stamp); outline-offset: 2px; box-shadow: 0 0 0 5px var(--paper),0 3px 7px #17141b40; }
.has-material-world:where(.world-socials) .pg-social:not(.pg-social--bare):not(.pg-social--no-border):not(.pg-social--no-icon-bg) {
  color: var(--social-color,var(--ink)); border: 1px solid var(--rule); border-radius: var(--key-radius);
  background: var(--finish),var(--key); box-shadow: inset 0 1px #fff2,0 2px 0 var(--paper);
}
.has-material-world:where(.world-widgets) .pg-widget[data-surface="glass"]:not(.pg-widget--plain):not([style*="--wg-surface"]) {
  border-color: var(--wg-border-color,var(--rule)); border-radius: var(--wg-radius,var(--key-radius));
  background: var(--finish),var(--key); --text-0: var(--ink); --text-1: var(--ink); --text-2: var(--muted-ink); --text-3: var(--muted-ink);
}
.has-material-world:where(.world-links) .pg-link:not(.pg-link--no-border) { background-image: var(--control-face,none); }
[data-world-skin="latin"] { --control-face: radial-gradient(#92553630 .7px,transparent 1px); }
[data-world-skin="latin"]:where(.world-links) .pg-link { background-size: 4px 4px; }
[data-world-skin="gaming"] { --control-face: linear-gradient(180deg,#e5685080,#943342 12%,#85333e 84%,#421d30 86%); }
[data-world-skin="nature"] { --control-face: linear-gradient(90deg,#b4c098 0 7px, transparent 7px),linear-gradient(0deg,#9fb18d28,transparent 50%); }
[data-world-skin="cyber"] { --control-face: repeating-linear-gradient(0deg,transparent 0 3px,#9cdeac0c 4px),linear-gradient(90deg,#536b40 0 4px,transparent 4px); }
[data-world-skin="vapor"] { --control-face: linear-gradient(90deg,#9f728f 0 3px,#81bbbd 3px 6px,transparent 6px),linear-gradient(175deg,#d0c3ca22,transparent 60%); }
[data-world-skin="minimal"] { --control-face: linear-gradient(90deg,#b34433 0 3px,transparent 3px); }
[data-world-skin="sunset"] { --control-face: linear-gradient(108deg,#bb7b4640,transparent 70%),linear-gradient(0deg,#39262950,transparent 25%); }

.world-picture {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; border-radius: inherit;
}
.has-material-world .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait {
  position: relative; isolation: isolate; box-sizing: border-box; min-width: 0; width: 100%;
  min-height: max(113px, calc(var(--avatar-size,90px) + 24px)); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 10px clamp(8px,3.3%,18px); border: 1px solid var(--rule); border-radius: var(--key-radius);
}
.has-material-world .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait .avatar {
  position: relative; z-index: 1; flex: 0 0 auto; margin: 0;
}
.has-material-world .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait:has(.avatar[hidden]) { display: none; }
@container card (min-width: 471px) {
  .has-material-world :is(.tpl-split,.tpl-bento).is-framed:not(.tpl-custom) .profile-card__portrait {
    justify-content: center; margin-bottom: 0; min-height: max(156px,calc(var(--avatar-size,90px) + 32px));
  }
}

/* Frames and type share the visual grammar of each illustrated world. */
[data-world-skin="anime"] .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-name.text-fx-none {
  letter-spacing: -.055em; line-height: 1.13; text-shadow: 1px 1px #fff,2px 2px #8e8e8e;
}
[data-world-skin="anime"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait {
  border: 3px solid #171717; box-shadow: 3px 4px #171717; border-radius: 0;
}
[data-world-skin="anime"]:where(.world-bio) .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-bio:not(:empty):not(.has-bio-fill) {
  position: relative; width: fit-content; max-width: 100%; margin-inline: auto;
  background: #fff; border: 2px solid #202020; border-radius: 19px 16px 18px 7px;
  padding: 7px 14px; box-shadow: 2px 2px #242424;
}
[data-world-skin="anime"]:where(.world-bio) .profile-bio:not(:empty):not(.has-bio-fill)::after {
  content: ""; position: absolute; left: 16px; bottom: -6px; width: 9px; height: 9px;
  background: inherit; border-right: 2px solid; border-bottom: 2px solid; transform: skewY(29deg);
}
[data-world-skin="anime"]:where(.world-links) .pg-link:not(.pg-link--no-border) { border-width: 2px; box-shadow: 3px 3px #222; }
[data-world-skin="anime"] .avatar-fx-inkwash:not(.has-avatar-fx-colors) { filter: grayscale(1); }
[data-world-skin="anime"] #card.frame-fx-inkBleed .profile-card__scene,
[data-world-skin="anime"] #card.frame-fx-inkBleed .profile-card__frame { filter: grayscale(1); }
[data-world-skin="futuristic"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait {
  border: 2px solid #273c43; border-bottom: 5px solid #eada35; box-shadow: -2px 0 #67cbc4;
}
[data-world-skin="futuristic"] .profile-card.is-framed:not(.has-card-paint):not(.is-card-clear) .profile-name.text-fx-none {
  color: var(--accent,#f2eb51); letter-spacing: -.045em;
}
[data-world-skin="futuristic"]:where(.world-links) .pg-link__arrow { color: #7bf2e7; border-color: #4b9390; }
[data-world-skin="futuristic"]:where(.world-links) .pg-link:not(.pg-link--no-border) { border-left: 3px solid #eee73f; }
[data-world-skin="gothic"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait {
  border: 3px double #b99268; border-radius: 48% 48% 4px 4px / 15% 15% 4px 4px;
  box-shadow: 0 3px #431d2a;
}
[data-world-skin="vaporwave"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait {
  border: 2px solid #9b75b8; border-top-color: #f29ed4; border-bottom-color: #4fc2be;
  box-shadow: 2px 3px #140b2d;
}
[data-world-skin="vaporwave"]:where(.world-links) .pg-link:not(.pg-link--no-border) {
  border-style: solid; border-width: 2px; border-color: #e6a5d6 #783b88 #633177 #8cded9; box-shadow: 2px 2px #1a1035;
}
[data-world-skin="vaporwave"] .avatar__disc { outline: 3px double #84f6e7; box-shadow: 0 0 0 5px #6b3e85; }
[data-world-skin="latin"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { border-bottom: 4px solid #234f5b; }
[data-world-skin="gaming"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { outline: 3px solid #221323; box-shadow: 0 3px #c17d64; }
[data-world-skin="nature"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { outline: 3px double #5b7054; }
[data-world-skin="cyber"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { outline: 2px solid #476c4d; }
[data-world-skin="vapor"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { outline: 3px solid #6f5d75; }
[data-world-skin="minimal"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { outline: 2px solid #a24739; }
[data-world-skin="sunset"] .profile-card.is-framed:not(.tpl-custom) .profile-card__portrait { outline: 3px double #bc926a; }

.aesthetic-card.aesthetic-card--material {
  min-height: 112px; justify-content: flex-end; position: relative; isolation: isolate; overflow: hidden;
  background: var(--world-base); border-bottom: 3px solid var(--stamp);
}
.aesthetic-card--material .world-picture { z-index: -2; }
.aesthetic-card--material::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(to top,#11111bf5 0%,#11111ba8 38%,transparent 76%);
}
.aesthetic-card--material strong { color: #fff; }
.aesthetic-card--material small { color: #eee; }
.aesthetic-card--material .aesthetic-card__badge, .aesthetic-card--material .aesthetic-card__swatches { display: none; }
.aesthetic-card--material[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 640px) {
  .world-trim svg { width: min(27px,var(--card-padding),9%); }
}

.world-picture--tile { object-fit: cover; }
/* Only these small foreground silhouettes travel. The landscape stays painted. */
html[data-motion="full"]:not(.is-low-power):not(.is-slow-device) .has-world-stage[data-backdrop-skin="futuristic"] #bgMedia::after {
  content: ""; position: absolute; left: -102px; top: 74%; width: 93px; height: 8px;
  border: 1px solid #72dcd1; border-radius: 8px 14px 2px 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg,#213749 0 4px,#9ae2db 4px 10px,#2e424d 10px 13px);
  box-shadow: -6px 1px 9px #54dcd187; animation: world-rail 16s linear -4s infinite;
}
@keyframes world-rail {
  0% { transform: translate(0,0); }
  80%,100% { transform: translate(calc(100vw + 106px),-7vh); }
}
html[data-motion="full"]:not(.is-low-power):not(.is-slow-device) .has-world-stage[data-backdrop-skin="gothic"] #bgMedia::after {
  content: ""; position: absolute; left: 13%; top: 22%; width: clamp(28px,4vw,58px); height: 22px;
  pointer-events: none; background: #201320;
  clip-path: polygon(0 16%,17% 22%,39% 41%,46% 20%,50% 38%,55% 20%,59% 40%,81% 15%,100% 0,90% 33%,87% 56%,70% 50%,63% 73%,54% 69%,50% 100%,44% 75%,38% 79%,31% 62%,18% 68%,13% 44%);
  animation: world-bat-flight 13s ease-in-out -3s infinite;
}
@keyframes world-bat-flight {
  0% { opacity: 0; transform: translate(-6vw,3vh) rotate(7deg) scaleY(.45); }
  8% { opacity: .92; }
  18%,38% { transform: translate(5vw,-1vh) rotate(-9deg) scaleY(1); }
  28% { transform: translate(5vw,-2vh) rotate(-7deg) scaleY(.46); }
  53% { opacity: .93; transform: translate(16vw,-5vh) rotate(7deg) scaleY(.60); }
  67%,100% { opacity: 0; transform: translate(23vw,-7vh) rotate(5deg); }
}
