:root {
    --green-0: #f0ff57;
    --green-1: #aee619;
    --green-2: #75b10a;
    --green-3: #336000;
    --glass: rgba(21, 39, 48, 0.82);
    --glass-2: rgba(14, 31, 39, 0.88);
    --text: rgba(255, 255, 255, 0.96);
    --muted: rgba(255, 255, 255, 0.66);
    --cyan: #35e4ff;
    --violet: #b760ff;
    --pink: #ff69d7;
    --shadow: rgba(0, 0, 0, 0.38);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #142a25;
    color: var(--text);
}

body::selection {
    background: rgba(190, 255, 32, 0.4);
}

.nxe-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: grid;
    place-items: center;
    overflow: hidden;
    perspective: 1400px;
    background: radial-gradient(circle at 20% 10%, rgba(212,255,67,0.34), transparent 24%),
    radial-gradient(circle at 85% 35%, rgba(135,255,239,0.16), transparent 22%),
    linear-gradient(135deg, #24481e 0%, #7db107 25%, #d6efef 52%, #43525d 76%, #18252b 100%);
    transition: opacity 980ms ease, visibility 980ms ease, transform 980ms ease;
}

.nxe-loader.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
}

.loader-grid {
    position: absolute;
    inset: auto -8vw -16vh -8vw;
    height: 48vh;
    transform: perspective(900px) rotateX(72deg);
    transform-origin: center top;
    background: repeating-linear-gradient(to right, rgba(255,255,255,0.12) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.10) 0 1px, transparent 1px 68px);
    opacity: 0.22;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0));
}

.loader-card-stack {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(64vw, 1080px);
    height: min(34vw, 460px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.loader-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(52vw, 820px);
    height: min(16vw, 240px);
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 24px 60px rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
}

.lc1 {
    transform: translate(-50%, -50%) rotate(-10deg) translateX(-90px) translateY(22px);
    opacity: 0.34;
    animation: loaderCardFloatA 4.2s ease-in-out infinite;
}

.lc2 {
    transform: translate(-50%, -50%) rotate(7deg) translateX(84px) translateY(-16px);
    opacity: 0.28;
    animation: loaderCardFloatB 5.4s ease-in-out infinite;
}

.lc3 {
    transform: translate(-50%, -50%) rotate(-2deg) translateY(2px);
    opacity: 0.16;
    animation: loaderCardFloatC 6s ease-in-out infinite;
}

.loader-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.12), transparent 26%),
    repeating-radial-gradient(circle at center, rgba(255,255,255,0.11) 0 2px, transparent 3px 30px);
    opacity: 0.6;
    animation: loaderBackdropSpin 24s linear infinite;
}

.loader-core {
    position: relative;
    width: min(44vw, 470px);
    aspect-ratio: 1;
    min-width: 270px;
    z-index: 2;
    filter: drop-shadow(0 28px 54px rgba(0,0,0,0.28));
    transform-style: preserve-3d;
    animation: loaderCoreFloat 4.6s ease-in-out infinite;
}

.loader-orbit,
.loader-pulse,
.loader-sphere,
.loader-scan,
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.loader-orbit-a {
    border: 2px solid rgba(255,255,255,0.32);
    box-shadow: inset 0 0 40px rgba(255,255,255,0.1), 0 0 28px rgba(205,255,76,0.18);
    animation: loaderOrbitA 4.8s cubic-bezier(.4,0,.2,1) infinite;
}

.loader-orbit-b {
    inset: 11%;
    border: 2px solid rgba(95,240,255,0.32);
    box-shadow: inset 0 0 28px rgba(183,96,255,0.16), 0 0 22px rgba(95,240,255,0.14);
    animation: loaderOrbitB 3.6s cubic-bezier(.4,0,.2,1) infinite reverse;
}

.loader-pulse {
    inset: 23%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96), rgba(226,255,155,0.82) 24%, rgba(113,196,11,0.86) 52%, rgba(37,74,4,0.22) 72%, transparent 78%);
    animation: loaderPulse 2.3s ease-in-out infinite;
}

.loader-sphere {
    inset: 33%;
    background: radial-gradient(circle at 36% 34%, rgba(255,255,255,0.92), rgba(118,241,255,0.52) 32%, rgba(183,96,255,0.45) 58%, rgba(0,0,0,0) 72%);
    box-shadow: 0 0 46px rgba(113,196,11,0.16);
    animation: loaderSphere 3.4s ease-in-out infinite;
}

.loader-scan {
    inset: 0;
    background: conic-gradient(from 180deg, transparent 0 24%, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.22) 31%, transparent 40% 100%);
    animation: loaderScan 2.9s linear infinite;
    mix-blend-mode: screen;
}

.loader-x-grid {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    width: 92%;
    height: 92%;
}

.loader-x {
    position: absolute;
    color: rgba(255,255,255,0.92);
    font-size: clamp(20px, 2vw, 32px);
    text-shadow: 0 0 18px rgba(255,255,255,0.28), 0 0 26px rgba(190,255,67,0.22);
    animation: loaderXFloat 2.8s ease-in-out infinite;
}

.lx1 {
    left: 8%;
    top: 18%;
    animation-delay: 0s;
}

.lx2 {
    right: 12%;
    top: 22%;
    animation-delay: .4s;
}

.lx3 {
    left: 18%;
    bottom: 10%;
    animation-delay: .8s;
}

.lx4 {
    right: 16%;
    bottom: 16%;
    animation-delay: 1.2s;
}

.loader-copy {
    position: relative;
    z-index: 3;
    margin-top: 30px;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
    animation: loaderCopyFade 760ms ease both;
}

.loader-kicker {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    opacity: 0.8;
}

.loader-copy h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 48px);
    letter-spacing: -0.04em;
}

.loader-copy p {
    margin: 10px 0 18px;
    font-size: clamp(14px, 1.2vw, 18px);
    color: rgba(255,255,255,0.84);
}

.loader-progress {
    width: min(340px, 68vw);
    height: 10px;
    margin: 0 auto;
    padding: 2px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(8,18,21,0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
    overflow: hidden;
}

.loader-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(211,255,85,0.82), rgba(255,255,255,0.95), rgba(95,240,255,0.85), rgba(183,96,255,0.72), rgba(211,255,85,0.82));
    background-size: 200% 100%;
    transform-origin: left center;
    animation: loaderProgress 3.25s ease-in-out forwards, loaderProgressShine 1.05s linear infinite;
}

.loader-ring-a {
    inset: 6%;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
    transform: translateZ(30px);
    animation: loaderRingA 4.8s linear infinite;
}

.loader-ring-b {
    inset: 19%;
    border: 1px solid rgba(210,255,78,0.24);
    box-shadow: 0 0 26px rgba(95,240,255,0.12), inset 0 0 18px rgba(183,96,255,0.12);
    transform: translateZ(50px);
    animation: loaderRingB 3.8s linear infinite reverse;
}

.loader-x-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%) translateZ(60px);
    font-size: clamp(28px, 3vw, 52px);
    font-weight: 700;
    color: rgba(255,255,255,0.94);
    text-shadow: 0 0 18px rgba(255,255,255,0.3), 0 0 36px rgba(190,255,67,0.26);
    animation: loaderXCenter 2.8s ease-in-out infinite;
}

.loader-shards {
    position: absolute;
    inset: 0;
}

.loader-shards span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(210,255,78,0.24));
    box-shadow: 0 0 14px rgba(255,255,255,0.12);
}

.ls1 {
    left: 20%;
    top: 50%;
    width: 90px;
    height: 2px;
    transform: rotate(38deg);
    animation: loaderShardA 3s ease-in-out infinite;
}

.ls2 {
    right: 16%;
    top: 36%;
    width: 70px;
    height: 2px;
    transform: rotate(-28deg);
    animation: loaderShardB 3.4s ease-in-out infinite;
}

.ls3 {
    left: 33%;
    bottom: 18%;
    width: 58px;
    height: 2px;
    transform: rotate(-62deg);
    animation: loaderShardC 3.2s ease-in-out infinite;
}

.ls4 {
    right: 26%;
    bottom: 24%;
    width: 84px;
    height: 2px;
    transform: rotate(26deg);
    animation: loaderShardD 3.7s ease-in-out infinite;
}

@keyframes loaderBackdropSpin {
    from {
      transform: rotate(0deg) scale(1);
  }

    to {
      transform: rotate(360deg) scale(1.06);
  }
}

@keyframes loaderOrbitA {
    0%,100% {
      transform: rotate(0deg) scale(0.98);
  }

    50% {
      transform: rotate(180deg) scale(1.03);
  }
}

@keyframes loaderOrbitB {
    0%,100% {
      transform: rotate(0deg) scale(1);
  }

    50% {
      transform: rotate(180deg) scale(0.94);
  }
}

@keyframes loaderPulse {
    0%,100% {
      transform: scale(0.92);
      opacity: 0.76;
  }

    50% {
      transform: scale(1.08);
      opacity: 1;
  }
}

@keyframes loaderSphere {
    0%,100% {
      transform: translateY(0) scale(0.95);
  }

    50% {
      transform: translateY(-6px) scale(1.05);
  }
}

@keyframes loaderScan {
    from {
      transform: rotate(0deg);
  }

    to {
      transform: rotate(360deg);
  }
}

@keyframes loaderXFloat {
    0%,100% {
      transform: translateY(0) scale(1) rotate(0deg);
      opacity: 0.7;
  }

    50% {
      transform: translateY(-10px) scale(1.14) rotate(8deg);
      opacity: 1;
  }
}

@keyframes loaderProgress {
    0% {
      transform: scaleX(0.04);
  }

    100% {
      transform: scaleX(1);
  }
}

@keyframes loaderProgressShine {
    0% {
      background-position: 0% 50%;
  }

    100% {
      background-position: 200% 50%;
  }
}

button, article {
    -webkit-tap-highlight-color: transparent;
}

.nxe-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 21% 5%, rgba(201, 255, 37, 0.9), transparent 27%),
    radial-gradient(circle at 82% 42%, rgba(237, 255, 57, 0.62), transparent 20%),
    radial-gradient(circle at 55% 58%, rgba(234, 255, 255, 0.48), transparent 21%),
    linear-gradient(135deg, #276800 0%, #7bb900 22%, #cce5d9 47%, #405158 76%, #1f2d35 100%);
}

.nxe-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.24;
    background-image: radial-gradient(circle, rgba(255,255,255,0.34) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.16) 0 2px, transparent 3px);
    background-size: 68px 68px, 132px 132px;
    background-position: 0 0, 28px 18px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

@keyframes loaderCoreFloat {
    0%,100% {
      transform: translateY(0) rotateX(0deg);
  }

    50% {
      transform: translateY(-8px) rotateX(4deg);
  }
}

@keyframes loaderCopyFade {
    from {
      opacity: 0;
      transform: translateY(10px);
  }

    to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes loaderRingA {
    from {
      transform: translateZ(30px) rotate(0deg);
  }

    to {
      transform: translateZ(30px) rotate(360deg);
  }
}

@keyframes loaderRingB {
    from {
      transform: translateZ(50px) rotate(0deg) scale(1);
  }

    50% {
      transform: translateZ(50px) rotate(180deg) scale(0.96);
  }

    to {
      transform: translateZ(50px) rotate(360deg) scale(1);
  }
}

@keyframes loaderXCenter {
    0%,100% {
      transform: translate(-50%, -50%) translateZ(60px) scale(1);
  }

    50% {
      transform: translate(-50%, -50%) translateZ(60px) scale(1.12);
  }
}

@keyframes loaderShardA {
    0%,100% {
      transform: rotate(38deg) translateX(0);
      opacity: 0.48;
  }

    50% {
      transform: rotate(38deg) translateX(16px);
      opacity: 1;
  }
}

@keyframes loaderShardB {
    0%,100% {
      transform: rotate(-28deg) translateX(0);
      opacity: 0.5;
  }

    50% {
      transform: rotate(-28deg) translateX(-14px);
      opacity: 1;
  }
}

@keyframes loaderShardC {
    0%,100% {
      transform: rotate(-62deg) translateY(0);
      opacity: 0.46;
  }

    50% {
      transform: rotate(-62deg) translateY(-12px);
      opacity: 0.92;
  }
}

@keyframes loaderShardD {
    0%,100% {
      transform: rotate(26deg) translateY(0);
      opacity: 0.42;
  }

    50% {
      transform: rotate(26deg) translateY(10px);
      opacity: 0.9;
  }
}

@keyframes loaderCardFloatA {
    0%,100% {
      transform: translate(-50%, -50%) rotate(-10deg) translateX(-90px) translateY(22px);
  }

    50% {
      transform: translate(-50%, -50%) rotate(-12deg) translateX(-108px) translateY(8px);
  }
}

@keyframes loaderCardFloatB {
    0%,100% {
      transform: translate(-50%, -50%) rotate(7deg) translateX(84px) translateY(-16px);
  }

    50% {
      transform: translate(-50%, -50%) rotate(9deg) translateX(106px) translateY(-2px);
  }
}

@keyframes loaderCardFloatC {
    0%,100% {
      transform: translate(-50%, -50%) rotate(-2deg) translateY(2px);
  }

    50% {
      transform: translate(-50%, -50%) rotate(1deg) translateY(-10px);
  }
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.35;
    pointer-events: none;
}

.ambient-one {
    width: 520px;
    height: 520px;
    left: -160px;
    top: -140px;
    background: radial-gradient(circle, rgba(204,255,32,0.8), transparent 68%);
}

.ambient-two {
    width: 460px;
    height: 460px;
    right: -80px;
    bottom: 190px;
    background: radial-gradient(circle, rgba(255,255,85,0.48), transparent 70%);
}

.bubble-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.45;
    pointer-events: none;
}

.bubble-field::before,
.bubble-field::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    border: 3px solid rgba(255,255,255,0.12);
    width: 62px;
    height: 62px;
    left: 41vw;
    top: 24vh;
    box-shadow: 180px -92px 0 -20px rgba(255,255,255,0.16),
    340px -45px 0 -6px rgba(255,255,255,0.08),
    520px 88px 0 -16px rgba(255,255,255,0.15),
    -210px 160px 0 -17px rgba(255,255,255,0.12),
    -390px 250px 0 -23px rgba(255,255,255,0.18),
    690px 204px 0 -7px rgba(255,255,255,0.1);
}

.bubble-field::after {
    left: 70vw;
    top: 7vh;
    width: 84px;
    height: 84px;
    opacity: 0.55;
    box-shadow: -560px 82px 0 -24px rgba(255,255,255,0.18),
    -270px 186px 0 -35px rgba(255,255,255,0.14),
    140px 350px 0 -22px rgba(255,255,255,0.17),
    -780px 550px 0 -20px rgba(255,255,255,0.12),
    80px 620px 0 -32px rgba(255,255,255,0.16);
}

.horizon {
    position: absolute;
    left: -10vw;
    right: -10vw;
    top: 58vh;
    height: 22vh;
    transform: skewY(-4deg);
    background: linear-gradient(to bottom, rgba(37, 48, 58, 0.78), rgba(209, 224, 225, 0.72) 35%, rgba(117, 126, 135, 0.5));
    box-shadow: 0 -24px 68px rgba(255,255,255,0.26);
}

.floor-reflection {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36vh;
    pointer-events: none;
    background: radial-gradient(ellipse at 87% 48%, rgba(255,255,255,0.18), transparent 7%),
    repeating-radial-gradient(ellipse at 87% 48%, rgba(255,255,255,0.22) 0 2px, transparent 3px 21px),
    linear-gradient(to bottom, rgba(176, 187, 194, 0.58), rgba(61, 71, 82, 0.72));
    opacity: 0.72;
}

.blade-nav {
    position: absolute;
    z-index: 20;
    left: clamp(28px, 7.3vw, 112px);
    top: clamp(34px, 8.8vh, 96px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.45);
    user-select: none;
}

.blade-nav p {
    margin: 0 0 6px;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.blade-kicker {
    color: rgba(255,255,255,0.18);
    font-size: clamp(14px, 1.3vw, 24px);
    font-weight: 700;
}

.blade-faded {
    color: rgba(255,255,255,0.34);
    font-size: clamp(18px, 1.8vw, 31px);
    font-weight: 800;
}

.blade-title {
    color: #fff;
    font-size: clamp(38px, 4.1vw, 66px);
    font-weight: 800;
}

.dashboard {
    position: absolute;
    z-index: 25;
    inset: 0;
    perspective: 1000px;
}

.tile-stage {
    position: absolute;
    left: 50%;
    top: 55%;
    width: min(1840px, 92vw);
    height: clamp(520px, 60vh, 760px);
    transform: translate(-50%, -34%);
    transform-style: preserve-3d;
}

.tile {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(400px, 34vw, 780px);
    height: clamp(300px, 26vw, 520px);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    color: white;
    transform-origin: center center;
    transition: transform 520ms cubic-bezier(.19,1,.22,1), opacity 420ms ease, filter 420ms ease, box-shadow 420ms ease;
    background: radial-gradient(circle at 20% 19%, rgba(255,255,255,0.7), transparent 19%),
    radial-gradient(circle at 84% 12%, rgba(255,255,255,0.18), transparent 19%),
    linear-gradient(to bottom, #dbfb32 0%, #a6dc12 45%, #5a9803 73%, #1e4200 100%);
    box-shadow: 0 24px 46px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.5);
    will-change: transform, opacity, filter;
}

.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image: radial-gradient(circle, rgba(255,255,255,0.38) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.22) 0 10px, transparent 12px);
    background-size: 56px 56px, 140px 140px;
    background-position: 14px 22px, -12px 90px;
}

.tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -46%;
    height: 72%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.17), transparent 45%);
    transform: scaleY(-1);
    opacity: 0.16;
    pointer-events: none;
}

.tile:focus-visible {
    outline: 4px solid rgba(255,255,255,0.7);
    outline-offset: 8px;
}

.tile.is-active {
    box-shadow: 0 32px 70px rgba(0,0,0,0.38),
    0 0 38px rgba(204,255,33,0.28),
    0 0 0 4px rgba(255,255,255,0.74),
    0 0 0 10px rgba(255,255,255,0.30),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.tile-gloss {
    position: absolute;
    inset: 0 0 auto 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.44), rgba(255,255,255,0.05));
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: screen;
}

.tile-copy {
    position: relative;
    z-index: 3;
    padding: 34px 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.tile h1 {
    margin: 0;
    font-size: clamp(28px, 2.7vw, 43px);
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.tile-copy p {
    margin: 8px 0 0;
    font-size: clamp(18px, 1.7vw, 28px);
    line-height: 1.08;
    color: rgba(255,255,255,0.86);
}

.profile-tile {
    width: clamp(430px, 36vw, 820px);
    height: clamp(318px, 27vw, 560px);
    overflow: visible;
    isolation: isolate;
    perspective: 1200px;
    --hover-rx: 0deg;
    --hover-ry: 0deg;
    --hover-lift: 0px;
    --hover-shift-x: 0px;
    --hover-shift-y: 0px;
    --hover-scale: 1;
}

.profile-tile .tile-copy {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 180px 24px 34px;
    max-width: none;
}

.profile-tile .tile-copy h1 {
    font-size: clamp(36px, 3.2vw, 56px);
    margin-bottom: 6px;
}

.profile-tile .tile-copy p {
    margin-top: 0;
    font-size: clamp(20px, 1.75vw, 30px);
}

.profile-tile .tile-copy,
.profile-tile .xbox-avatar,
.profile-tile .xbox-avatar * {
    pointer-events: none;
}

.profile-tile::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: -26px;
    bottom: -26px;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.48;
    background: radial-gradient(circle, rgba(89,214,255,0.28) 0%, rgba(183,96,255,0.20) 38%, transparent 72%);
    filter: blur(14px);
    transition: transform 280ms ease, opacity 280ms ease;
}

.profile-tile.is-hovering::after {
    opacity: 0.72;
    transform: translate3d(0, -10px, 0) scale(1.05);
}

.tile-caption {
    position: absolute;
    z-index: 5;
    left: 26px;
    bottom: 26px;
    font-size: clamp(17px, 1.55vw, 26px);
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.tile-icon {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 45%;
    width: 160px;
    height: 108px;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 22px 14px rgba(0,0,0,0.24));
}

.hero-cover-tile {
    background: linear-gradient(180deg, #1e2a33 0%, #0f141a 100%);
}

.hero-cover-tile .feature-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-cover-tile .feature-tint {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(5, 13, 22, 0.10), rgba(5, 9, 14, 0.36) 48%, rgba(4, 8, 12, 0.72) 100%);
}

.hero-cover-tile.realms-feature .feature-tint {
    background: linear-gradient(180deg, rgba(20, 18, 56, 0.08), rgba(14, 18, 44, 0.18) 46%, rgba(6, 9, 25, 0.56) 100%);
}

.feature-caption {
    z-index: 5;
    font-size: clamp(21px, 1.75vw, 29px);
}

.hero-cover-tile .feature-sigil {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 20px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75);
    box-shadow: 0 0 0 7px rgba(112,219,255,0.14), 0 0 28px rgba(127,89,255,0.35);
}

.hero-cover-tile .feature-sigil::before,
.hero-cover-tile .feature-sigil::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 52px;
    background: rgba(255,255,255,0.84);
    transform: translate(-50%, -50%) rotate(0deg);
}

.hero-cover-tile .feature-sigil::after {
    width: 52px;
    height: 2px;
}

.footprint-icon::before {
    content: "";
    position: absolute;
    left: 46px;
    top: 20px;
    width: 64px;
    height: 86px;
    border-radius: 48px 48px 42px 42px;
    background: linear-gradient(180deg, #ffffff, #e7eef1 58%, #a8df0d 59%, #d1ff3c);
    transform: rotate(16deg);
    box-shadow: inset 0 -8px 18px rgba(0,0,0,0.10);
}

.footprint-icon::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 22px -4px 0 0 #f7ffff, 44px -2px 0 0 #f7ffff, 63px 7px 0 0 #f7ffff;
}

.gamepad-icon::before {
    content: "";
    position: absolute;
    inset: 18px 7px;
    border-radius: 42px 42px 55px 55px;
    background: linear-gradient(160deg, #fff, #e1e1e1 55%, #9ab20d 56%, #bff128);
    clip-path: polygon(12% 24%, 36% 15%, 45% 28%, 55% 28%, 64% 15%, 88% 24%, 99% 87%, 74% 94%, 61% 70%, 39% 70%, 26% 94%, 1% 87%);
}

.gamepad-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 72px;
    top: 19px;
    border-radius: 999px;
    background: #80a900;
    box-shadow: 0 0 0 7px rgba(0,0,0,0.04);
}

.monitor-icon::before {
    content: "";
    position: absolute;
    inset: 10px 18px 38px;
    border-radius: 16px;
    background: linear-gradient(135deg, #faffff, #d9e4e7 58%, #9ce20d 59%, #c9ff2b);
    box-shadow: inset 0 -12px 30px rgba(0,0,0,0.12);
}

.monitor-icon::after {
    content: "";
    position: absolute;
    width: 82px;
    height: 16px;
    left: 39px;
    bottom: 18px;
    border-radius: 999px;
    background: #f8fff3;
    box-shadow: 0 -18px 0 -3px #f8fff3;
}

.server-icon::before,
.server-icon::after {
    content: "";
    position: absolute;
    left: 24px;
    width: 112px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9ffff, #dce7e9 61%, #b5ee13 62%);
    box-shadow: 0 45px 0 rgba(249,255,255,0.95);
}

.server-icon::before {
    top: 16px;
}

.server-icon::after {
    top: 28px;
    width: 11px;
    height: 11px;
    left: 43px;
    border-radius: 50%;
    background: #6dac00;
    box-shadow: 22px 0 0 #6dac00, 0 45px 0 #6dac00, 22px 45px 0 #6dac00;
}

.orb-icon {
    border-radius: 999px;
    width: 126px;
    height: 126px;
    background: radial-gradient(circle at 32% 26%, #fff 0 20%, #d9e5e4 21% 52%, #97c900 53% 62%, #f4ff91 63% 67%, #405345 68%);
    box-shadow: inset -18px -22px 20px rgba(0,0,0,0.22), 0 22px 32px rgba(0,0,0,0.24);
}

.orb-icon::before,
.orb-icon::after {
    content: "";
    position: absolute;
    left: 55px;
    top: 5px;
    width: 16px;
    height: 116px;
    background: #75b900;
    border-radius: 999px;
    transform: rotate(43deg);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}

.orb-icon::after {
    transform: rotate(-43deg);
}

.xbox-avatar {
    position: absolute;
    z-index: 9;
    right: -96px;
    bottom: -118px;
    width: clamp(336px, 24.3vw, 480px);
    height: clamp(528px, 43.5vw, 750px);
    filter: drop-shadow(0 26px 26px rgba(0,0,0,0.22));
    transform-style: preserve-3d;
    will-change: transform, filter;
    transform: translate3d(var(--hover-shift-x), var(--hover-shift-y), 58px) rotateX(var(--hover-rx)) rotateY(var(--hover-ry)) scale(var(--hover-scale));
    transition: transform 240ms ease, filter 240ms ease;
}

.xbox-avatar::before {
    content: "";
    position: absolute;
    inset: 34px 24px 20px 24px;
    border-radius: 44% 44% 34% 34%;
    background: radial-gradient(circle at 50% 38%, rgba(255,255,255,0.22), rgba(54,216,255,0.12) 32%, rgba(183,96,255,0.14) 62%, transparent 76%);
    filter: blur(10px);
    transform: translateZ(-16px);
    opacity: 0.9;
}

.xbox-avatar::after {
    content: "";
    position: absolute;
    right: 44px;
    top: 42px;
    width: 82px;
    height: 148px;
    border-radius: 50%;
    background: linear-gradient(165deg, rgba(255,255,255,0.38), transparent 48%);
    filter: blur(8px);
    mix-blend-mode: screen;
    opacity: 0.55;
    transform: translateZ(36px) rotate(-10deg);
}

.profile-tile.is-hovering .xbox-avatar {
    filter: drop-shadow(0 34px 34px rgba(0,0,0,0.28));
}

.avatar-shadow {
    position: absolute;
    width: 174px;
    height: 34px;
    left: 60px;
    bottom: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.24);
    filter: blur(7px);
}

.avatar-hi-bubble {
    position: absolute;
    right: 166px;
    top: 8px;
    z-index: 8;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(226,255,146,0.9));
    color: #263100;
    font-weight: 900;
    font-size: 17px;
    line-height: 1.05;
    white-space: nowrap;
    max-width: 280px;
    letter-spacing: -0.02em;
    box-shadow: 0 12px 22px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.7);
    opacity: 0;
    transform: translateY(10px) scale(0.75);
}

.avatar-hi-bubble::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: rgba(236,255,168,0.96);
    border-right: 1px solid rgba(255,255,255,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.35);
    transform: rotate(45deg);
}

.hero-avatar-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transform-origin: 52% 92%;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.hero-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0,0,0,0.12));
    user-select: none;
    pointer-events: none;
    transform: rotateY(0deg) rotate(0deg) translateX(0px) translateZ(0) scale(1.01);
    transform-origin: 50% 92%;
}

.xbox-avatar.is-hello .avatar-hi-bubble {
    opacity: 0;
    transform: translateY(10px) scale(0.82);
}

.xbox-avatar.is-chatting .avatar-hi-bubble {
    animation: chatBubble 4.8s 0s cubic-bezier(.22,.8,.22,1) both;
}

.xbox-avatar.is-hello .hero-avatar-wrap {
    animation: heroHello 2.9s 0.08s cubic-bezier(.2,.8,.2,1) both;
}

.xbox-avatar.is-idle .avatar-hi-bubble {
    opacity: 0;
}

.xbox-avatar.is-idle.mode-bob .hero-avatar-wrap {
    animation: heroIdleBob 5.8s cubic-bezier(.42,0,.22,1) infinite;
}

.xbox-avatar.is-idle.mode-sway .hero-avatar-wrap {
    animation: heroIdleSway 6.2s cubic-bezier(.42,0,.22,1) infinite;
}

.xbox-avatar.is-idle.mode-bounce .hero-avatar-wrap {
    animation: heroIdleBounce 4.9s cubic-bezier(.38,0,.22,1) infinite;
}

.xbox-avatar.is-idle.mode-dance .hero-avatar-wrap {
    animation: heroIdleDance 6.6s cubic-bezier(.4,0,.2,1) infinite;
}

.xbox-avatar.is-idle.mode-wave .hero-avatar-wrap {
    animation: heroIdleWave 5.4s cubic-bezier(.42,0,.22,1) infinite;
}

@keyframes hiBubble {
    0% {
      opacity: 0;
      transform: translateY(10px) scale(0.75);
  }

    24% {
      opacity: 1;
      transform: translateY(-4px) scale(1);
  }

    70% {
      opacity: 1;
      transform: translateY(-6px) scale(1);
  }

    100% {
      opacity: 0;
      transform: translateY(-18px) scale(0.92);
  }
}

@keyframes chatBubble {
    0% {
      opacity: 0;
      transform: translateY(16px) scale(0.72);
  }

    10% {
      opacity: 1;
      transform: translateY(-6px) scale(1.06);
  }

    18% {
      opacity: 1;
      transform: translateY(-3px) scale(1);
  }

    84% {
      opacity: 1;
      transform: translateY(-3px) scale(1);
  }

    100% {
      opacity: 0;
      transform: translateY(-14px) scale(0.96);
  }
}

@keyframes heroHello {
    0% {
      opacity: 0;
      transform: translateY(28px) scale(0.84) rotate(-8deg);
  }

    18% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(0deg);
  }

    34% {
      transform: translateY(-4px) rotate(-12deg);
  }

    46% {
      transform: translateY(-2px) rotate(10deg);
  }

    58% {
      transform: translateY(-5px) rotate(-11deg);
  }

    70% {
      transform: translateY(-1px) rotate(7deg);
  }

    82% {
      transform: translateY(-3px) rotate(-5deg);
  }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes heroIdleBob {
    0%, 100% {
      transform: translateY(0) rotate(-1.2deg) scale(1);
  }

    18% {
      transform: translateY(-4px) rotate(0.6deg) scale(1.008);
  }

    36% {
      transform: translateY(-8px) rotate(1.4deg) scale(1.012);
  }

    54% {
      transform: translateY(-5px) rotate(0.2deg) scale(1.009);
  }

    72% {
      transform: translateY(-10px) rotate(-0.8deg) scale(1.013);
  }

    88% {
      transform: translateY(-3px) rotate(-0.2deg) scale(1.005);
  }
}

@keyframes heroIdleSway {
    0%, 100% {
      transform: translateY(0) rotate(-2.4deg) translateX(0);
  }

    20% {
      transform: translateY(-3px) rotate(-0.8deg) translateX(4px);
  }

    40% {
      transform: translateY(-6px) rotate(1.8deg) translateX(8px);
  }

    60% {
      transform: translateY(-4px) rotate(0.8deg) translateX(3px);
  }

    80% {
      transform: translateY(-7px) rotate(-1.6deg) translateX(-4px);
  }
}

@keyframes heroIdleBounce {
    0%, 100% {
      transform: translateY(0) scale(1);
  }

    16% {
      transform: translateY(-4px) scale(1.007);
  }

    32% {
      transform: translateY(-9px) scale(1.014);
  }

    48% {
      transform: translateY(-2px) scale(1.004);
  }

    64% {
      transform: translateY(-7px) scale(1.01);
  }

    82% {
      transform: translateY(-3px) scale(1.006);
  }
}

@keyframes heroIdleDance {
    0%, 100% {
      transform: translateY(0) rotate(-1.8deg) translateX(0);
  }

    14% {
      transform: translateY(-4px) rotate(1deg) translateX(5px);
  }

    28% {
      transform: translateY(-7px) rotate(2.2deg) translateX(8px);
  }

    42% {
      transform: translateY(-3px) rotate(0.4deg) translateX(2px);
  }

    58% {
      transform: translateY(-8px) rotate(-1.8deg) translateX(-6px);
  }

    74% {
      transform: translateY(-5px) rotate(-0.6deg) translateX(-2px);
  }

    88% {
      transform: translateY(-2px) rotate(0.6deg) translateX(3px);
  }
}

@keyframes heroIdleWave {
    0%, 100% {
      transform: translateY(0) rotate(-1deg);
  }

    18% {
      transform: translateY(-3px) rotate(1.4deg);
  }

    36% {
      transform: translateY(-6px) rotate(2deg);
  }

    54% {
      transform: translateY(-4px) rotate(0.6deg);
  }

    72% {
      transform: translateY(-7px) rotate(-1.6deg);
  }

    88% {
      transform: translateY(-2px) rotate(-0.4deg);
  }
}

@keyframes modalAvatarFloat {
    0%, 100% {
      transform: translateY(0) rotate(-1.6deg) scale(1.03);
  }

    50% {
      transform: translateY(-16px) rotate(2deg) scale(1.08);
  }
}

@keyframes modalAvatarAchievement {
    0%, 100% {
      transform: translateY(0) rotate(-2deg) scale(1.04);
  }

    20% {
      transform: translateY(-8px) rotate(2deg) scale(1.075);
  }

    42% {
      transform: translateY(-2px) rotate(-1deg) scale(1.045);
  }

    66% {
      transform: translateY(-18px) rotate(3deg) scale(1.09);
  }

    84% {
      transform: translateY(-5px) rotate(0deg) scale(1.06);
  }
}

@keyframes modalAvatarBadgePulse {
    0%, 100% {
      transform: translateY(0) rotate(0deg) scale(1.035);
  }

    35% {
      transform: translateY(-10px) rotate(-3deg) scale(1.08);
  }

    70% {
      transform: translateY(-4px) rotate(3deg) scale(1.055);
  }
}

@keyframes modalAvatarSway {
    0%, 100% {
      transform: translateX(0) translateY(0) rotate(-4deg) scale(1.04);
  }

    25% {
      transform: translateX(10px) translateY(-8px) rotate(2deg) scale(1.075);
  }

    50% {
      transform: translateX(2px) translateY(-15px) rotate(5deg) scale(1.09);
  }

    75% {
      transform: translateX(-8px) translateY(-6px) rotate(-2deg) scale(1.06);
  }
}

@keyframes modalAvatarThemeDrift {
    0%, 100% {
      transform: translateY(0) rotate(-1deg) scale(1.045);
  }

    30% {
      transform: translateY(-12px) rotate(4deg) scale(1.085);
  }

    60% {
      transform: translateY(-18px) rotate(-3deg) scale(1.07);
  }
}

@keyframes modalAvatarLive {
    0%, 100% {
      transform: translateY(0) rotate(-2deg) scale(1.04);
  }

    18% {
      transform: translateY(-14px) rotate(4deg) scale(1.095);
  }

    34% {
      transform: translateY(-4px) rotate(-3deg) scale(1.06);
  }

    54% {
      transform: translateY(-18px) rotate(5deg) scale(1.105);
  }

    78% {
      transform: translateY(-7px) rotate(-1deg) scale(1.07);
  }
}

@keyframes modalFloat {
    0%, 100% {
      transform: translateY(0) rotate(-2deg) scale(1);
  }

    50% {
      transform: translateY(-14px) rotate(2deg) scale(1.018);
  }
}

.now-panel {
    position: absolute;
    z-index: 40;
    top: clamp(92px, 11vh, 140px);
    right: clamp(18px, 4vw, 70px);
    display: flex;
    gap: 13px;
    align-items: center;
    max-width: 360px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;
    background: rgba(11, 29, 34, 0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 20px 42px rgba(0,0,0,0.17);
    backdrop-filter: blur(16px);
}

.now-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--green-0);
    box-shadow: 0 0 20px var(--green-0), inset 0 -3px 5px rgba(0,0,0,0.2);
}

.now-panel strong {
    display: block;
    font-size: 17px;
    line-height: 1.05;
    white-space: nowrap;
    max-width: 280px;
    line-height: 1.15;
}

.now-panel p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.nxe-footer {
    position: absolute;
    z-index: 45;
    left: clamp(26px, 7.3vw, 115px);
    right: clamp(22px, 7vw, 110px);
    bottom: clamp(24px, 5vh, 60px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    user-select: none;
}

.counter {
    font-size: clamp(18px, 1.5vw, 25px);
    color: rgba(28,39,48,0.72);
    font-weight: 800;
    margin-bottom: 15px;
}

.actions {
    position: absolute;
    left: 0;
    bottom: -11px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: clamp(14px, 1.2vw, 21px);
    font-weight: 700;
}

.btn-a,
.btn-b {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    border-radius: 50%;
    color: #1d3303;
    font-size: 14px;
    box-shadow: inset 0 -5px 6px rgba(0,0,0,0.28), 0 2px 5px rgba(0,0,0,0.35);
}

.btn-a {
    background: linear-gradient(#e9ff84, #76c50a);
}

.btn-b {
    background: linear-gradient(#ff7373, #bf1c1c);
    color: white;
}

.hint {
    color: rgba(255,255,255,0.54);
}

.orb-button {
    position: relative;
    width: 74px;
    height: 74px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: radial-gradient(circle at 28% 22%, #fff 0 19%, #d9e7e2 20% 54%, #68b100 55% 65%, #f4ff96 66% 70%, #4f5e59 71%);
    box-shadow: inset -9px -12px 16px rgba(0,0,0,0.33), 0 16px 24px rgba(0,0,0,0.3);
}

.orb-button span::before,
.orb-button span::after {
    content: "";
    position: absolute;
    left: 33px;
    top: 12px;
    width: 8px;
    height: 50px;
    border-radius: 999px;
    background: #70b900;
}

.orb-button span::before {
    transform: rotate(42deg);
}

.orb-button span::after {
    transform: rotate(-42deg);
}

.modal-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    background: rgba(5, 16, 18, 0.16);
    backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 340ms ease, background 340ms ease, backdrop-filter 340ms ease;
}

.modal-backdrop::before {
    content: "";
    position: absolute;
    left: var(--launch-x, 50vw);
    top: var(--launch-y, 50vh);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(201,255,68,0.55) 20%, rgba(73,210,255,0.18) 46%, transparent 72%);
    box-shadow: 0 0 40px rgba(223,255,122,0.45);
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    transition: transform 520ms cubic-bezier(.19,1,.22,1), opacity 260ms ease;
}

.modal-backdrop.is-visible {
    opacity: 1;
    background: rgba(5, 16, 18, 0.42);
    backdrop-filter: blur(12px);
}

.modal-backdrop.is-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(34);
}

.modal-backdrop[hidden] {
    display: none;
}

.xbox-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px, 44%) 1fr;
    width: min(1180px, 94vw);
    height: min(650px, 84vh);
    min-height: min(650px, 84vh);
    color: var(--text);
    transform-style: preserve-3d;
    --modal-zoom: 1.1;
    opacity: 0;
    transform: translateY(26px) scale(calc(0.9 * var(--modal-zoom))) rotateX(9deg);
    transition: opacity 300ms ease, transform 480ms cubic-bezier(.19,1,.22,1);
}

@keyframes modalIn {
    from {
      opacity: 0;
      transform: translateY(24px) scale(.98);
  }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

.modal-backdrop.is-visible .xbox-modal {
    opacity: 1;
    transform: translateY(0) scale(var(--modal-zoom)) rotateX(0deg);
}

.xbox-modal::after {
    content: "";
    position: absolute;
    inset: -8px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 18%, transparent 36%);
    transform: translateX(-120%) skewX(-14deg);
    opacity: 0;
}

.modal-backdrop.is-visible .xbox-modal::after {
    animation: modalSweep 700ms 140ms ease-out both;
}

@keyframes modalSweep {
    0% {
      transform: translateX(-120%) skewX(-14deg);
      opacity: 0;
  }

    14% {
      opacity: 0.92;
  }

    100% {
      transform: translateX(135%) skewX(-14deg);
      opacity: 0;
  }
}

.profile-panel-left,
.profile-panel-right {
    min-height: 600px;
    background: linear-gradient(180deg, rgba(30,54,63,0.95), rgba(13,31,40,0.95));
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 64px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}

.profile-panel-left {
    border-radius: 10px 0 0 10px;
    padding: 24px;
}

.profile-panel-right {
    position: relative;
    margin-top: 64px;
    border-left: 0;
    border-radius: 0 10px 10px 0;
    padding: 32px 34px 34px 30px;
    overflow: hidden;
}

.profile-panel-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 10%, rgba(255,255,255,0.1), transparent 23%), linear-gradient(135deg, rgba(255,255,255,0.05), transparent 50%);
    pointer-events: none;
}

.gamertag-row {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: rgba(5,14,18,0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.avatar-badge {
    width: 78px;
    height: 78px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, #35e4ff, #ff60d4);
    border: 3px solid rgba(255,255,255,0.25);
}

.avatar-badge img {
    width: 130%;
    height: 130%;
    object-fit: cover;
    object-position: 50% 20%;
    transform: translate(-10%, -4%);
}

.gamertag-row h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 500;
}

.gamertag-row p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.68);
    font-size: 16px;
}

.profile-level-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.profile-level-current {
    font-size: clamp(17px, 1.9vw, 30px);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -0.04em;
    color: #8fcd3b;
    text-shadow: 0 2px 10px rgba(0,0,0,0.22);
    position: relative;
    top: 3px;
}

.profile-level-next {
    font-size: clamp(12px, 0.95vw, 14px);
    line-height: 1;
    font-style: italic;
    font-weight: 600;
    color: rgba(255,255,255,0.48);
    position: relative;
    left: 3px;
    top: 5px;
    align-self: center;
    display: inline-block;
}

.modal-menu {
    margin-top: 24px;
}

.modal-menu button {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.11);
    text-align: left;
    color: rgba(255,255,255,0.72);
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: clamp(19px, 1.7vw, 30px);
    letter-spacing: -0.03em;
    transition: 170ms ease;
}

.modal-menu button:hover,
.modal-menu button.is-active {
    color: white;
    background: linear-gradient(to bottom, rgba(223,255,129,0.92), rgba(106,194,12,0.92));
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 24px rgba(0,0,0,0.22);
}

.modal-footnote {
    margin: 26px 12px 0;
    color: rgba(255,255,255,0.38);
    font-size: 13px;
}

.modal-close {
    position: absolute;
    z-index: 5;
    right: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    background: rgba(9,20,25,0.5);
    font-size: 27px;
    cursor: pointer;
    line-height: 34px;
}

.content-block {
    position: relative;
    z-index: 2;
}

.content-block .lead,
.content-block .project-list,
.content-block .progress-list,
.content-block .stat-grid,
.content-block .chips,
.content-block .achievement-hud {
    width: 100%;
    max-width: none;
}

.profile-panel-right .content-block > * {
    max-width: none;
}

.profile-panel-right .content-block .profile-scrollbox {
    width: 100%;
    max-width: none !important;
    min-width: 0;
}

.content-block h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 2.7vw, 42px);
    letter-spacing: -0.04em;
    font-weight: 500;
}

.content-block .lead {
    margin: 0 0 24px;
    max-width: none;
    color: rgba(255,255,255,0.74);
    font-size: clamp(17px, 1.3vw, 21px);
    line-height: 1.48;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    max-width: 620px;
}

.stat-card {
    padding: 15px 16px;
    border-radius: 13px;
    background: rgba(3,11,15,0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
}

.stat-card strong {
    display: block;
    font-size: 29px;
    line-height: 1;
    color: #d5ff4e;
    letter-spacing: -0.04em;
}

.stat-card span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
}

.stat-note {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.52);
    font-size: 10px;
    line-height: 1.15;
    font-style: normal;
}

.progress-list {
    display: grid;
    gap: 13px;
    max-width: 600px;
}

.progress-row {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,0.76);
}

.progress-bar {
    height: 18px;
    border-radius: 999px;
    background: rgba(0,0,0,0.56);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.55);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    width: var(--value);
    border-radius: inherit;
    background: linear-gradient(90deg, #7fd500, #d6ff47);
    box-shadow: 0 0 16px rgba(199,255,45,0.46);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    max-width: 660px;
}

.chip {
    padding: 9px 13px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.82);
    font-weight: 700;
}

.project-list {
    display: grid;
    gap: 12px;
    max-width: 660px;
}

.project-item {
    padding: 16px 18px;
    border-radius: 15px;
    background: rgba(3,11,15,0.28);
    border: 1px solid rgba(255,255,255,0.08);
}

.project-item strong {
    display: block;
    margin-bottom: 4px;
    color: #eaff9b;
    font-size: 20px;
}

.project-item p {
    margin: 0;
    color: rgba(255,255,255,0.64);
    line-height: 1.42;
}

.modal-avatar-showcase {
    position: absolute;
    z-index: 6;
    top: auto;
    right: -214px;
    bottom: -82px;
    width: 585px;
    height: 863px;
    display: grid;
    place-items: center;
    pointer-events: none;
    isolation: isolate;
    will-change: transform, opacity, filter;
    transform: translate(30%, calc(14.5% + 15px)) var(--avatar-layer-transform);
    transform-origin: right bottom;
    --avatar-layer-transform: translate3d(0,0,0);
    --avatar-tab-filter: saturate(1.08);
    --avatar-ring-a: rgba(194,255,37,0.18);
    --avatar-ring-b: rgba(255,255,255,0.08);
}

.modal-avatar-showcase img {
    width: 548px;
    max-width: none;
    will-change: transform, filter;
    filter: drop-shadow(0 34px 30px rgba(0,0,0,0.39)) var(--avatar-tab-filter);
    transform-origin: 50% 92%;
    animation: modalAvatarFloat 4.2s ease-in-out infinite;
}

.modal-avatar-ring {
    position: absolute;
    width: 608px;
    height: 608px;
    border-radius: 50%;
    will-change: transform, opacity, filter;
    background: radial-gradient(circle, var(--avatar-ring-a), transparent 66%);
    border: 1px solid var(--avatar-ring-b);
    box-shadow: 0 0 42px rgba(194,255,37,0.08);
}

@media (max-width: 980px) {
    .now-panel {
      display: none;
  }

    .hero-cover-tile .feature-sigil {
      transform: scale(.9);
      transform-origin: bottom right;
  }

    .tile-stage {
      left: 50%;
      right: auto;
      top: 55%;
      width: min(94vw, 1200px);
      height: 560px;
      transform: translate(-50%, -34%);
  }

    .tile,
  .profile-tile {
      width: min(700px, 84vw);
      height: 430px;
  }

    .profile-tile {
      width: min(720px, 86vw);
      height: 448px;
  }

    .xbox-avatar {
      transform: scale(.96);
      transform-origin: bottom right;
      right: -74px;
      bottom: -96px;
  }

    .xbox-modal {
      grid-template-columns: 1fr;
      overflow: auto;
      max-height: 88vh;
  }

    .profile-panel-left,
  .profile-panel-right {
      min-height: auto;
      border-radius: 10px;
  }

    .profile-panel-right {
      margin-top: 12px;
      padding: 28px;
  }

    .modal-avatar-showcase {
      display: none;
  }

    .modal-menu button {
      font-size: 21px;
  }
}

@media (max-width: 640px) {
    body {
      overflow: hidden;
  }

    .loader-core {
      width: min(66vw, 300px);
      min-width: 220px;
  }

    .loader-copy {
      padding-inline: 18px;
  }

    .hero-cover-tile .feature-sigil {
      right: 10px;
      bottom: 10px;
      transform: scale(.76);
      transform-origin: bottom right;
  }

    .blade-nav {
      left: 22px;
      top: 32px;
  }

    .blade-faded {
      display: none;
  }

    .tile-stage {
      left: 50%;
      top: 50%;
      width: calc(100vw - 28px);
      height: 430px;
      transform: translate(-50%, -28%);
  }

    .tile,
  .profile-tile {
      width: calc(100vw - 36px);
      height: 360px;
  }

    .profile-tile .tile-copy {
      padding: 18px 120px 18px 18px;
  }

    .xbox-avatar {
      transform: scale(.82);
      transform-origin: bottom right;
      right: -58px;
      bottom: -96px;
  }

    .actions {
      gap: 11px;
      flex-wrap: wrap;
      bottom: -24px;
  }

    .hint {
      display: none;
  }

    .orb-button {
      width: 62px;
      height: 62px;
  }

    .counter {
      margin-bottom: 27px;
  }

    .modal-backdrop {
      padding: 10px;
  }

    .stat-grid {
      grid-template-columns: 1fr;
  }

    .progress-row {
      grid-template-columns: 1fr;
      gap: 6px;
  }

    .profile-panel-left {
      padding: 16px;
  }

    .profile-panel-right {
      padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      transition-duration: 0.001ms !important;
      animation-duration: 0.001ms !important;
      scroll-behavior: auto !important;
  }
}

.unicore-feature .feature-bg {
    filter: saturate(0.78) brightness(0.9);
}

.realms-feature .feature-bg {
    object-position: center center;
}

.unicore-feature .feature-tint {
    background: linear-gradient(180deg, rgba(8, 10, 20, 0.06), rgba(8, 10, 18, 0.12) 42%, rgba(7, 8, 15, 0.28) 100%);
}

.unicore-feature .feature-bg {
    object-position: center center;
}

.controller-status {
    color: rgba(255,255,255,0.52);
    font-size: clamp(12px, 1vw, 16px);
    font-weight: 700;
}

.controller-status.is-connected {
    color: rgba(226,255,102,0.92);
    text-shadow: 0 0 12px rgba(194,255,37,0.28);
}

.profile-card-text h3 {
    margin-bottom: 4px;
}

.profile-scrollbox {
    position: relative;
    max-height: min(48vh, 430px);
    overflow-y: auto;
    padding: 18px 20px 18px 20px;
    border-radius: 18px;
    background: radial-gradient(circle at 18% 0%, rgba(206,255,57,0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -34px 48px rgba(0,0,0,0.12),
    0 18px 34px rgba(0,0,0,0.14);
    scrollbar-width: thin;
    scrollbar-color: rgba(200,255,38,0.86) rgba(255,255,255,0.07);
}

.profile-scrollbox::before {
    content: "";
    position: sticky;
    display: block;
    top: -18px;
    height: 14px;
    margin: -18px -20px 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(11,30,35,0.84), transparent);
    z-index: 2;
}

.profile-scrollbox::after {
    content: "";
    position: sticky;
    display: block;
    bottom: -18px;
    height: 28px;
    margin: 0 -20px -18px;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(7,18,22,0.88), transparent);
    z-index: 2;
}

.profile-scrollbox p {
    margin: 0 0 16px;
    color: rgba(255,255,255,0.78);
    font-size: clamp(15px, 1.12vw, 18px);
    line-height: 1.55;
}

.profile-scrollbox p:last-child {
    margin-bottom: 0;
}

.profile-scrollbox strong {
    color: rgba(234,255,124,0.94);
    font-weight: 850;
}

.profile-scrollbox::-webkit-scrollbar {
    width: 14px;
}

.profile-scrollbox::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(0,0,0,0.24);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.profile-scrollbox::-webkit-scrollbar-thumb {
    min-height: 46px;
    border-radius: 999px;
    border: 4px solid rgba(8,22,26,0.86);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(206,255,57,0.96) 36%, rgba(96,177,0,0.96));
    box-shadow: 0 0 18px rgba(204,255,33,0.30),
    inset 0 1px 0 rgba(255,255,255,0.68);
}

.profile-scrollbox::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(226,255,96,1) 36%, rgba(126,216,0,1));
}

@media (max-width: 720px) {
    .profile-scrollbox {
      max-height: 48vh;
      padding: 15px 16px;
  }
}

.modal-avatar-bubble {
    position: absolute;
    left: 142px;
    top: -23px;
    z-index: 7;
    padding: 11.55px 18.48px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.34);
    background: linear-gradient(180deg, rgba(255,255,255,0.93), rgba(234,255,170,0.92));
    color: #293300;
    font-weight: 900;
    font-size: 19.64px;
    line-height: 1.04;
    white-space: nowrap;
    max-width: 347px;
    box-shadow: 0 16px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.74);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(14px) scale(0.82) rotate(13.5deg);
    transform-origin: 78% 78%;
}

.modal-avatar-bubble::after {
    content: "";
    position: absolute;
    right: 26px;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: rgba(236,255,168,0.98);
    border-right: 1px solid rgba(255,255,255,0.34);
    border-bottom: 1px solid rgba(255,255,255,0.34);
    transform: rotate(45deg);
}

.modal-avatar-showcase.is-chatting .modal-avatar-bubble {
    animation: modalAvatarBubbleIn 5.2s 0s cubic-bezier(.22,.8,.22,1) both;
}

@keyframes modalAvatarBubbleIn {
    0% {
      opacity: 0;
      transform: translateY(16px) scale(0.82) rotate(13.5deg);
  }

    10%, 88% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(13.5deg);
  }

    100% {
      opacity: 0;
      transform: translateY(-4px) scale(0.96) rotate(13.5deg);
  }
}

@media (max-width: 980px) {
    .modal-avatar-bubble {
      display: none;
  }
}

.achievement-panel {
    padding-bottom: 0;
}

.achievement-panel .achievement-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.achievement-panel .achievement-card {
    min-height: 132px;
}

.achievement-panel .progress-row > b {
    letter-spacing: -0.01em;
}

.achievement-panel .progress-row.is-full .progress-bar span {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.44), 0 0 0 1px rgba(245,255,213,0.22), 0 0 12px rgba(204,255,33,0.16);
}

@media (max-width: 860px) {
    .achievement-panel h3 {
      white-space: normal;
  }

    .achievement-panel .progress-row {
      grid-template-columns: 1fr;
      gap: 6px;
  }

    .achievement-panel .progress-row > span:first-child,
  .achievement-panel .progress-row > b {
      white-space: normal;
      text-align: left;
  }

    .achievement-panel .progress-bar {
      width: 100%;
  }
}

.achievement-panel .progress-list {
    display: grid;
    gap: 11px;
    max-width: 540px;
}

.achievement-panel .progress-row {
    display: grid;
    grid-template-columns: 245px 138px 64px;
    gap: 12px;
    align-items: center;
    color: rgba(255,255,255,0.78);
}

.achievement-panel .progress-row > span:first-child {
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
    font-size: clamp(13px, 0.92vw, 16px);
    line-height: 1.1;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.achievement-panel .progress-row > b {
    min-width: 64px;
    text-align: right;
    font-size: clamp(13px, 0.9vw, 16px);
    font-weight: 850;
    color: rgba(255,255,255,0.86);
}

.achievement-panel .progress-bar {
    width: 138px;
    height: 18px;
}

.achievement-panel .progress-bar span {
    min-width: 8px;
}

.achievement-panel .progress-row.is-full .progress-bar span {
    width: 100%;
}

/* Keep the modal avatar clear of the achievement bars */

/* The achievements tab was too noisy with a bubble every few seconds; keep it cleaner. */

@keyframes modalAvatarBubbleInClean {
    0% {
      opacity: 0;
      transform: translateY(16px) scale(0.82) rotate(-7deg);
  }

    10%, 84% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(-7deg);
  }

    100% {
      opacity: 0;
      transform: translateY(-4px) scale(0.96) rotate(-7deg);
  }
}

@media (max-width: 1120px) {
    .achievement-panel {
      max-width: 520px;
  }

    .achievement-panel .progress-row {
      grid-template-columns: 230px 128px 62px;
      gap: 10px;
  }

    .achievement-panel .progress-bar {
      width: 128px;
  }

    .achievement-panel .progress-row > span:first-child {
      font-size: 13px;
  }
}

@keyframes modalAvatarBubbleInAchievements {
    0% {
      opacity: 0;
      transform: translateY(16px) scale(0.82) rotate(20deg);
  }

    10%, 84% {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(20deg);
  }

    100% {
      opacity: 0;
      transform: translateY(-4px) scale(0.96) rotate(20deg);
  }
}

@media (max-width: 1120px) {
    .achievement-panel h3 {
      max-width: 260px;
  }
}

.avatar-loadout-card h3 {
    margin-bottom: 4px;
}

.avatar-loadout-subtitle {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.48);
    font-size: clamp(13px, 1.02vw, 17px);
    font-style: italic;
    font-weight: 600;
    line-height: 1.3;
}

.avatar-loadout-card {
    position: relative;
    z-index: 6;
}

.avatar-loadout-card .lead {
    width: 100%;
    font-size: clamp(15px, 1.02vw, 18px);
    line-height: 1.42;
}

.avatar-loadout-grid {
    position: relative;
    z-index: 7;
    align-items: stretch;
}

.avatar-loadout-grid .project-item:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 92px;
}

@media (max-width: 980px) {
    .avatar-loadout-card {
      width: 100%;
  }

    .avatar-loadout-card .lead {
      max-width: 100%;
  }
}

.avatar-loadout-card {
    width: auto;
    max-width: none;
    padding-right: 0;
}

.avatar-loadout-card .lead {
    max-width: 650px;
    margin-right: 0;
}

.avatar-loadout-grid .project-item {
    min-width: 0;
}

.avatar-loadout-grid .project-item p {
    overflow-wrap: normal;
    word-break: normal;
}

@media (max-width: 980px) {
    .avatar-loadout-card .lead,
  .avatar-loadout-grid {
      max-width: 100%;
  }

    .avatar-loadout-grid .project-item:nth-child(3) {
      grid-column: auto;
  }
}

.avatar-loadout-grid .project-item {
    min-height: 176px;
}

.avatar-loadout-grid .project-item:nth-child(1),
.avatar-loadout-grid .project-item:nth-child(2) {
    padding-right: 22px;
}

@media (max-width: 980px) {
    .avatar-loadout-grid {
      width: 100%;
      max-width: 100%;
      grid-template-columns: 1fr;
  }

    .avatar-loadout-grid .project-item {
      min-height: 0;
  }
}

.avatar-loadout-grid {
    max-width: 1040px;
    width: min(1040px, calc(100% + 300px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.avatar-loadout-grid .project-item:nth-child(3) {
    max-width: 1040px;
}

.avatar-loadout-card > .lead {
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

@media (max-width: 980px) {
    .avatar-loadout-card > .lead {
      width: auto !important;
      max-width: 100% !important;
  }
}

.profile-card-text {
    max-width: none;
    overflow: visible;
}

.profile-card-text .profile-scrollbox {
    width: calc(100% - 72px);
    max-width: calc(100% - 72px) !important;
    padding-right: 18px;
    overflow-x: hidden;
    box-sizing: border-box;
}

.profile-card-text .profile-scrollbox p {
    width: 100%;
    max-width: none;
}

.achievement-panel,
.badges-panel {
    max-width: none;
    width: 100%;
}

.achievement-hud {
    display: grid;
    gap: 16px;
    padding-right: 0;
}

.achievement-panel {
    overflow: hidden;
}

.achievement-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: radial-gradient(circle at 18% 12%, rgba(212,255,72,0.22), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(102,234,255,0.12), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    rgba(6,20,24,0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 18px 36px rgba(0,0,0,0.18);
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 18px;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
}

.achievement-hero-ring {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.30), transparent 28%),
    linear-gradient(180deg, rgba(231,255,120,0.95), rgba(92,190,13,0.94));
    border: 2px solid rgba(234,255,144,0.76);
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.38), 0 0 0 5px rgba(147,228,24,0.18), 0 14px 22px rgba(0,0,0,0.18);
    animation: achievementPulse 4.8s ease-in-out infinite;
}

.achievement-hero-ring span {
    color: #183106;
    font-size: 42px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.achievement-hero-ring small {
    position: absolute;
    right: 14px;
    bottom: 12px;
    color: rgba(24,49,6,0.74);
    font-size: 16px;
    font-weight: 900;
}

.achievement-hero-copy span {
    display: block;
    color: rgba(229,255,143,0.88);
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.achievement-hero-copy strong {
    display: block;
    margin-top: 7px;
    font-size: clamp(26px, 2.4vw, 40px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.achievement-hero-copy p {
    margin: 10px 0 0;
    max-width: 780px;
    color: rgba(255,255,255,0.72);
    font-size: 15px;
    line-height: 1.4;
}

.achievement-hero-meter {
    width: 14px;
    height: 100%;
    min-height: 100px;
    border-radius: 999px;
    background: rgba(0,0,0,0.28);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.32);
}

.achievement-hero-meter i {
    display: block;
    width: 100%;
    height: var(--value);
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(132,211,11,0.95), rgba(225,255,92,0.98));
    box-shadow: 0 0 16px rgba(202,255,34,0.28);
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.achievement-card {
    position: relative;
    min-height: 120px;
    padding: 16px 16px 14px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    background: linear-gradient(110deg, rgba(214,255,71,0.12), rgba(75,239,255,0.03) 58%, transparent),
    linear-gradient(180deg, rgba(10,31,36,0.88), rgba(3,14,18,0.78));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 10px 24px rgba(0,0,0,0.14);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
    animation: achievementCardPop 760ms cubic-bezier(.2,.8,.2,1) both;
    animation-delay: calc(var(--nxe-order, 0) * 72ms);
    transform-origin: 50% 100%;
}

.achievement-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(231,255,114,0.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 14px 28px rgba(0,0,0,0.18), 0 0 24px rgba(209,255,59,0.10);
}

.achievement-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, transparent 42%, rgba(255,255,255,0.16) 48%, transparent 60%);
    opacity: 0.75;
}

.achievement-card-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(231,255,120,0.95), rgba(92,190,13,0.94));
    border: 2px solid rgba(233,255,147,0.76);
    color: #183106;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.05em;
    box-shadow: inset 0 2px 0 rgba(255,255,255,0.36), 0 0 0 4px rgba(147,228,24,0.15);
}

.achievement-card strong {
    display: block;
    padding-right: 74px;
    font-size: 20px;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.achievement-card p {
    margin: 8px 0 0;
    padding-right: 74px;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.38;
}

.achievement-card b {
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #183106;
    background: linear-gradient(180deg, rgba(236,255,134,0.98), rgba(153,226,24,0.96));
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.1em;
}

.achievement-card.is-max b,
.achievement-card.is-unlocked b {
    box-shadow: 0 0 18px rgba(199,255,43,0.20);
}

.achievement-card.is-max {
    grid-column: 1 / -1;
    min-height: 104px;
}

.achievement-card.is-max .achievement-card-badge {
    background: linear-gradient(180deg, rgba(255,240,140,0.98), rgba(228,184,30,0.96));
}

.achievement-grid .achievement-card:nth-child(1) {
    --nxe-order: 0;
}

.achievement-grid .achievement-card:nth-child(2) {
    --nxe-order: 1;
}

.achievement-grid .achievement-card:nth-child(3) {
    --nxe-order: 2;
}

.achievement-grid .achievement-card:nth-child(4) {
    --nxe-order: 3;
}

.achievement-grid .achievement-card:nth-child(5) {
    --nxe-order: 4;
}

.achievement-grid .achievement-card:nth-child(6) {
    --nxe-order: 5;
}

@keyframes achievementCardPop {
    0% {
      opacity: 0;
      transform: translateY(18px) scale(0.94);
      filter: blur(3px);
  }

    70% {
      opacity: 1;
      transform: translateY(-2px) scale(1.01);
      filter: blur(0);
  }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
  }
}

@keyframes achievementPulse {
    0%, 100% {
      transform: translateY(0) scale(1);
  }

    50% {
      transform: translateY(-2px) scale(1.01);
  }
}

.profile-scrollbox {
    width: calc(100% + 100px) !important;
    max-width: calc(100% + 100px) !important;
    box-sizing: border-box;
}

.achievement-panel h3 {
    max-width: 300px;
    white-space: normal;
    font-size: clamp(28px, 2.7vw, 42px);
    line-height: normal;
    letter-spacing: -0.04em;
    font-weight: 500;
    padding-bottom: 66px !important;
    margin-bottom: 0 !important;
}

.badges-panel .stat-grid {
    max-width: 840px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.badges-panel .stat-card {
    padding: 20px 22px 18px;
    border-radius: 18px;
    min-height: 112px;
    background: rgba(3,11,15,0.3);
}

.badges-panel .stat-card strong {
    font-size: 31px;
}

.badges-panel .stat-card span {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255,255,255,0.68);
}

.badges-panel .stat-note {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.54);
}

@media (max-width: 1100px) {
    .badges-panel .stat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
    .badges-panel .stat-grid {
      grid-template-columns: 1fr;
  }
}

.badges-panel .content-block h3,
.badges-scrollbox {
    position: relative;
    width: 100%;
    max-height: none;
    overflow-y: hidden;
    overflow-x: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    margin-right: -34px;
    padding-right: 34px;
}

.badges-scrollbox.is-dragging {
    cursor: grabbing;
}

.badges-scrollbox::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.xbox-badge-row {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: center;
    gap: 18px;
    min-height: 126px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(5,20,24,0.60), rgba(2,11,15,0.58)),
    linear-gradient(90deg, rgba(255,255,255,0.04), transparent 40%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.14);
}

.xbox-badge-row:last-child {
    margin-bottom: 0;
}

.xbox-badge-emblem {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(234,255,151,0.18), rgba(123,186,10,0.10)),
    linear-gradient(180deg, rgba(12,31,36,0.98), rgba(7,19,23,0.92));
    border: 2px solid rgba(156,236,20,0.78);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 4px rgba(116,185,13,0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.xbox-badge-emblem::before,
.xbox-badge-emblem::after {
    content: "";
    position: absolute;
    top: 18px;
    width: 18px;
    height: 60px;
    background: linear-gradient(180deg, rgba(135,215,11,0.90), rgba(71,138,0,0.88));
    clip-path: polygon(50% 0%, 100% 12%, 75% 100%, 0% 85%, 18% 22%);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.xbox-badge-emblem::before {
    left: -8px;
    transform: rotate(-18deg);
}

.xbox-badge-emblem::after {
    right: -8px;
    transform: scaleX(-1) rotate(-18deg);
}

.xb-top {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: rgba(216,255,131,0.86);
}

.xb-main {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 6px;
    font-size: 27px;
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: #e7ff90;
    text-align: center;
    text-shadow: 0 2px 14px rgba(188,255,34,0.18);
}

.xbox-badge-copy strong {
    display: block;
    color: rgba(255,255,255,0.95);
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.xbox-badge-copy span {
    display: block;
    color: rgba(255,255,255,0.68);
    line-height: 1.38;
    max-width: 340px;
}

@media (max-width: 980px) {
    .xbox-badge-row {
      grid-template-columns: 92px 1fr;
      min-height: 112px;
      gap: 14px;
      padding: 14px;
  }

    .xbox-badge-emblem {
      width: 82px;
      height: 82px;
  }

    .xb-main {
      font-size: 22px;
  }

    .xbox-badge-copy span {
      font-size: 14px;
      max-width: none;
  }
}

.badges-scrollbox {
    max-height: 436px !important;
}

@media (max-width: 980px) {
    .badges-scrollbox {
      max-height: calc(56vh + 100px) !important;
  }
}

.xbox-badge-copy strong {
    font-size: 20px !important;
}

.xbox-badge-copy span {
    font-style: italic;
}

@media (max-width: 980px) {
    .xbox-badge-copy strong {
      font-size: 17px !important;
  }
}

.xbox-badge-copy span {
    font-size: 13px !important;
}

.badges-scrollbox {
    width: 100% !important;
}

@media (max-width: 980px) {
    .badges-scrollbox {
      width: 100% !important;
  }
}

.achievement-feed {
    position: relative;
    display: grid;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255,255,255,0.10);
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(203,255,55,0.78) rgba(255,255,255,0.07);
}

.achievement-feed.is-dragging {
    cursor: grabbing;
}

.achievement-feed::-webkit-scrollbar {
    width: 12px;
}

.achievement-feed::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(0,0,0,0.24);
}

.achievement-feed::-webkit-scrollbar-thumb {
    border: 3px solid rgba(6,20,24,0.9);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(232,255,106,0.94), rgba(141,215,16,0.92));
}

.achievement-panel {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
}

.achievement-panel h3 {
    position: relative;
    z-index: 10;
    text-shadow: 0 0 22px rgba(209,255,59,0.16), 0 2px 18px rgba(0,0,0,0.35);
}

.achievement-feed {
    width: min(842px, 100%) !important;
    max-height: 342px;
    gap: 12px;
    padding: 13px 14px 24px;
    border-radius: 16px;
    border-color: rgba(255,255,255,0.14);
    background: radial-gradient(circle at 16% 0%, rgba(215,255,70,0.11), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.086), rgba(255,255,255,0.030)),
    rgba(2,14,18,0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -36px 48px rgba(0,0,0,0.20),
    0 16px 30px rgba(0,0,0,0.12);
}

@media (max-width: 980px) {
    .achievement-panel,
.achievement-feed {
      width: 100% !important;
  }
}

.profile-panel-right {
    --nxe-panel-x: 54px;
    --nxe-panel-rot: -3.2deg;
    --nxe-child-x: 36px;
}

.profile-panel-right[data-tab-motion="backward"] {
    --nxe-panel-x: -54px;
    --nxe-panel-rot: 3.2deg;
    --nxe-child-x: -36px;
}

.profile-panel-right::after {
    content: "";
    position: absolute;
    z-index: 4;
    inset: -18% -32%;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg,
      transparent 0%,
      transparent 38%,
      rgba(255,255,255,0.06) 44%,
      rgba(226,255,139,0.20) 49%,
      rgba(88,255,238,0.13) 53%,
      transparent 62%,
      transparent 100%);
    transform: translateX(-46%) skewX(-14deg);
    mix-blend-mode: screen;
}

.profile-panel-right.is-tab-exiting .content-block {
    animation: nxeTabPanelExit 180ms cubic-bezier(.4,0,.2,1) both;
}

.profile-panel-right.is-tab-entering .content-block {
    animation: nxeTabPanelEnter 760ms cubic-bezier(.16,.84,.24,1) both;
}

.profile-panel-right.is-tab-entering::after {
    animation: nxeTabGlassSweep 860ms 40ms cubic-bezier(.18,.8,.24,1) both;
}

.profile-panel-right.is-tab-entering .content-block > *,
.profile-panel-right.is-tab-entering .project-list > *,
.profile-panel-right.is-tab-entering .progress-list > *,
.profile-panel-right.is-tab-entering .achievement-feed > *,
.profile-panel-right.is-tab-entering .badges-scrollbox > *,
.profile-panel-right.is-tab-entering .theme-scrollbox > *,
.profile-panel-right.is-tab-entering .theme-pack-grid > *,
.profile-panel-right.is-tab-entering .theme-palette-grid > *,
.profile-panel-right.is-tab-entering .theme-meter-stack > *,
.profile-panel-right.is-tab-entering .stat-grid > * {
    animation: nxeTabItemEnter 720ms cubic-bezier(.16,.84,.24,1) both;
    animation-delay: calc(80ms + (var(--nxe-order, 0) * 48ms));
}

.modal-menu button {
    position: relative;
    transform-origin: left center;
}

.modal-menu button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg,
      transparent 0%,
      rgba(255,255,255,0.42) 45%,
      rgba(255,255,255,0.12) 54%,
      transparent 72%);
    transform: translateX(-125%) skewX(-15deg);
}

.modal-menu button.is-active {
    animation: nxeTabButtonLock 620ms cubic-bezier(.16,.84,.24,1) both;
}

.modal-menu button.is-active::before {
    animation: nxeTabButtonSweep 760ms 35ms ease-out both;
}

.modal-avatar-showcase.is-tab-morphing {
    animation: nxeAvatarTabMorph 760ms cubic-bezier(.16,.84,.24,1) both;
}

.modal-avatar-showcase.is-avatar-entering {
    animation: nxeAvatarLayerEnter 760ms 80ms cubic-bezier(.16,.84,.24,1) both;
}

.modal-avatar-showcase.is-avatar-entering .modal-avatar-ring {
    animation: nxeAvatarRingEnter 700ms 120ms cubic-bezier(.16,.84,.24,1) both;
}

@keyframes nxeTabPanelExit {
    0% {
      filter: blur(0) brightness(1);
      transform: translate3d(0,0,0) rotateY(0) scale(1);
  }

    100% {
      opacity: 0;
      filter: blur(8px) brightness(1.15);
      transform: translate3d(calc(var(--nxe-panel-x) * -0.66), -8px, 0) rotateY(calc(var(--nxe-panel-rot) * -0.82)) scale(0.965);
  }
}

@keyframes nxeTabPanelEnter {
    0% {
      opacity: 0;
      filter: blur(16px) saturate(1.24) brightness(1.24);
      transform: translate3d(var(--nxe-panel-x), 22px, 0) rotateY(var(--nxe-panel-rot)) scale(0.948);
  }

    58% {
      filter: blur(0) saturate(1.08) brightness(1.06);
      transform: translate3d(-7px, -4px, 0) rotateY(0) scale(1.018);
  }

    100% {
      filter: blur(0) saturate(1) brightness(1);
      transform: translate3d(0,0,0) rotateY(0) scale(1);
  }
}

@keyframes nxeTabItemEnter {
    0% {
      opacity: 0;
      filter: blur(9px);
      transform: translate3d(var(--nxe-child-x), 24px, 0) scale(0.965);
  }

    64% {
      filter: blur(0);
      transform: translate3d(-5px, -3px, 0) scale(1.012);
  }

    100% {
      filter: blur(0);
      transform: translate3d(0,0,0) scale(1);
  }
}

@keyframes nxeTabGlassSweep {
    0% {
      opacity: 0;
      transform: translateX(-48%) skewX(-14deg);
  }

    16% {
      opacity: 0.95;
  }

    100% {
      opacity: 0;
      transform: translateX(48%) skewX(-14deg);
  }
}

@keyframes nxeTabButtonLock {
    0% {
      transform: translateX(-4px) scale(0.985);
      filter: brightness(1);
  }

    48% {
      transform: translateX(5px) scale(1.025);
      filter: brightness(1.12);
  }

    100% {
      transform: translateX(0) scale(1);
      filter: brightness(1);
  }
}

@keyframes nxeTabButtonSweep {
    0% {
      opacity: 0;
      transform: translateX(-125%) skewX(-15deg);
  }

    18% {
      opacity: 0.78;
  }

    100% {
      opacity: 0;
      transform: translateX(125%) skewX(-15deg);
  }
}

@keyframes nxeAvatarTabMorph {
    0% {
      filter: saturate(1) brightness(1);
  }

    42% {
      filter: saturate(1.18) brightness(1.12) drop-shadow(0 0 22px rgba(213,255,78,0.22));
  }

    100% {
      filter: saturate(1) brightness(1);
  }
}

@keyframes nxeAvatarLayerEnter {
    0% {
      opacity: 0;
      filter: blur(8px) saturate(1.12) brightness(1.14);
  }

    56% {
      filter: blur(0) saturate(1.06) brightness(1.08);
  }

    100% {
      filter: blur(0) saturate(1) brightness(1);
  }
}

@keyframes nxeAvatarRingEnter {
    0% {
      opacity: 0;
      transform: scale(0.72);
      filter: blur(10px) brightness(1.35);
  }

    58% {
      transform: scale(1.045);
      filter: blur(0) brightness(1.12);
  }

    100% {
      transform: scale(1);
      filter: blur(0) brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
    .profile-panel-right.is-tab-exiting .content-block,
  .profile-panel-right.is-tab-entering .content-block,
  .profile-panel-right.is-tab-entering .content-block > *,
  .profile-panel-right.is-tab-entering .project-list > *,
  .profile-panel-right.is-tab-entering .progress-list > *,
  .profile-panel-right.is-tab-entering .achievement-feed > *,
  .profile-panel-right.is-tab-entering .badges-scrollbox > *,
  .profile-panel-right.is-tab-entering .theme-scrollbox > *,
  .profile-panel-right.is-tab-entering .theme-pack-grid > *,
  .profile-panel-right.is-tab-entering .theme-palette-grid > *,
  .profile-panel-right.is-tab-entering .theme-meter-stack > *,
  .profile-panel-right.is-tab-entering .stat-grid > *,
  .modal-menu button.is-active,
  .modal-menu button.is-active::before,
  .modal-avatar-showcase.is-avatar-entering,
  .modal-avatar-showcase.is-avatar-entering .modal-avatar-ring,
  .modal-avatar-showcase.is-tab-morphing {
      animation-play-state: running !important;
  }

    .profile-panel-right.is-tab-exiting .content-block {
      animation-duration: 180ms !important;
  }

    .profile-panel-right.is-tab-entering .content-block {
      animation-duration: 760ms !important;
  }

    .profile-panel-right.is-tab-entering::after {
      animation-duration: 860ms !important;
  }

    .profile-panel-right.is-tab-entering .content-block > *,
  .profile-panel-right.is-tab-entering .project-list > *,
  .profile-panel-right.is-tab-entering .progress-list > *,
  .profile-panel-right.is-tab-entering .achievement-feed > *,
  .profile-panel-right.is-tab-entering .badges-scrollbox > *,
  .profile-panel-right.is-tab-entering .theme-scrollbox > *,
  .profile-panel-right.is-tab-entering .theme-pack-grid > *,
  .profile-panel-right.is-tab-entering .theme-palette-grid > *,
  .profile-panel-right.is-tab-entering .theme-meter-stack > *,
  .profile-panel-right.is-tab-entering .stat-grid > * {
      animation-duration: 720ms !important;
  }

    .modal-menu button.is-active {
      animation-duration: 620ms !important;
  }

    .modal-menu button.is-active::before,
  .modal-avatar-showcase.is-avatar-entering,
  .modal-avatar-showcase.is-tab-morphing {
      animation-duration: 760ms !important;
  }

    .modal-avatar-showcase.is-avatar-entering .modal-avatar-ring {
      animation-duration: 700ms !important;
  }
}

.player-profile-card.profile-card-text .profile-scrollbox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.achievement-panel .achievement-hud {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.achievement-panel .achievement-hero {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.achievement-scrollbox.profile-scrollbox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    max-height: min(38vh, 336px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    cursor: grab;
}

.achievement-scrollbox.profile-scrollbox.is-dragging {
    cursor: grabbing;
}

.achievement-scrollbox .achievement-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    box-sizing: border-box;
}

.achievement-scrollbox .achievement-card {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .achievement-scrollbox .achievement-grid {
      grid-template-columns: 1fr;
  }
}

.badges-deck-panel {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
}

.badge-deck-scrollbox {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: 100%;
    height: min(504px, calc(100vh - 280px));
    min-height: 390px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 13px 28px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)),
    radial-gradient(circle at 16% 0%, rgba(255,82,44,0.13), transparent 36%),
    rgba(2,10,14,0.10);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 30px rgba(0,0,0,0.12);
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(210,255,64,0.34) rgba(255,255,255,0.05);
    scroll-snap-type: y proximity;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 22px, black calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 22px, black calc(100% - 28px), transparent 100%);
}

.badge-deck-scrollbox.is-dragging {
    cursor: grabbing;
}

.badge-deck-scrollbox::-webkit-scrollbar {
    width: 8px;
}

.badge-deck-scrollbox::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

.badge-deck-scrollbox::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(224,255,99,0.58), rgba(113,191,12,0.54));
    border-radius: 999px;
}

.badge-deck {
    display: grid;
    gap: 18px;
    width: 100%;
    padding: 8px 0 18px;
    perspective: 900px;
    box-sizing: border-box;
}

.badge-deck-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 122px;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    min-height: 154px;
    padding: 20px 20px 18px;
    box-sizing: border-box;
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    transform-origin: center center;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14),
    0 18px 34px rgba(0,0,0,0.21);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.badge-deck-card:nth-child(odd) {
    transform: rotate(-0.85deg) translateX(-2px);
}

.badge-deck-card:nth-child(even) {
    transform: rotate(0.75deg) translateX(2px);
}

.badge-deck-card:hover {
    transform: rotate(0deg) translateY(-2px) scale(1.01);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18),
    0 22px 38px rgba(0,0,0,0.25),
    0 0 26px rgba(220,255,72,0.08);
    filter: saturate(1.04) brightness(1.02);
}

.badge-deck-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0.16), transparent 19%, transparent 62%, rgba(255,255,255,0.07)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 42px);
    opacity: 0.55;
}

.badge-deck-card::after {
    content: "BADGE";
    position: absolute;
    right: -9px;
    bottom: -22px;
    font-size: 82px;
    line-height: 0.78;
    font-weight: 900;
    letter-spacing: -0.08em;
    opacity: 0.09;
    pointer-events: none;
}

.badge-deck-index,
.badge-deck-main,
.badge-deck-token {
    position: relative;
    z-index: 2;
}

.badge-deck-index {
    align-self: start;
    padding-top: 4px;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.07em;
    opacity: 0.42;
}

.badge-deck-kicker {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.badge-deck-main strong {
    display: block;
    max-width: 390px;
    font-size: clamp(26px, 3.1vw, 42px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.badge-deck-main p {
    margin: 12px 0 0;
    max-width: 410px;
    font-size: 13px;
    line-height: 1.35;
}

.badge-deck-token {
    align-self: stretch;
    display: grid;
    place-items: center;
    align-content: center;
    min-width: 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    text-align: center;
}

.badge-deck-token b {
    display: block;
    max-width: 100%;
    font-size: 25px;
    line-height: 0.95;
    letter-spacing: -0.06em;
    white-space: normal;
    overflow-wrap: anywhere;
}

.badge-deck-token span {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.62;
}

.badge-deck-card.is-dark,
.badge-deck-card.is-helmet {
    color: rgba(255,255,255,0.94);
    background: radial-gradient(circle at 84% 0%, rgba(234,255,92,0.12), transparent 34%),
    linear-gradient(135deg, rgba(10,12,14,0.98), rgba(28,32,35,0.96));
}

.badge-deck-card.is-dark .badge-deck-kicker,
.badge-deck-card.is-helmet .badge-deck-kicker {
    color: rgba(225,255,89,0.86);
}

.badge-deck-card.is-dark .badge-deck-main p,
.badge-deck-card.is-helmet .badge-deck-main p {
    color: rgba(255,255,255,0.66);
}

.badge-deck-card.is-light {
    color: rgba(17,20,22,0.95);
    background: radial-gradient(circle at 82% 10%, rgba(255,82,44,0.14), transparent 31%),
    linear-gradient(135deg, rgba(255,255,248,0.98), rgba(224,226,222,0.96));
}

.badge-deck-card.is-light .badge-deck-kicker {
    color: rgba(25,27,28,0.70);
}

.badge-deck-card.is-light .badge-deck-main p {
    color: rgba(18,20,22,0.62);
}

.badge-deck-card.is-light .badge-deck-token {
    border-color: rgba(0,0,0,0.09);
    background: rgba(0,0,0,0.06);
}

.badge-deck-card.is-orange {
    color: rgba(255,255,255,0.96);
    background: radial-gradient(circle at 74% 0%, rgba(255,255,255,0.20), transparent 30%),
    linear-gradient(135deg, rgba(246,81,48,0.98), rgba(198,47,29,0.96));
}

.badge-deck-card.is-orange .badge-deck-kicker,
.badge-deck-card.is-orange .badge-deck-main p {
    color: rgba(255,255,255,0.72);
}

.badge-deck-card.is-orange .badge-deck-token {
    background: rgba(15,16,17,0.18);
}

.badge-deck-card.is-helmet::after {
    content: "HELMET";
    color: rgba(214,255,66,0.92);
}

.badge-deck-card.is-orange::after {
    color: rgba(255,255,255,0.78);
    opacity: 0.13;
}

.badge-deck-card.is-light::after {
    color: rgba(0,0,0,0.88);
}

@media (max-width: 980px) {
    .badge-deck-scrollbox {
      height: min(520px, calc(100vh - 210px));
      min-height: 360px;
  }

    .badge-deck-card {
      grid-template-columns: 46px minmax(0, 1fr);
      gap: 13px;
      min-height: 146px;
      padding: 18px;
  }

    .badge-deck-token {
      grid-column: 2;
      justify-self: start;
      min-width: 116px;
      min-height: 54px;
      margin-top: 8px;
      padding: 8px 12px;
  }

    .badge-deck-main strong {
      font-size: clamp(25px, 7vw, 38px);
  }
}

.theme-immersive-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding-right: 0 !important;
}

.theme-scrollbox {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: 100%;
    height: clamp(360px, calc(100vh - 280px), 506px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px 28px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 24px;
    background: radial-gradient(circle at 20% 0%, rgba(185,255,54,0.14), transparent 36%),
    radial-gradient(circle at 100% 18%, rgba(53,228,255,0.11), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(3,12,16,0.20);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.11),
    inset 0 -54px 70px rgba(0,0,0,0.14),
    0 18px 34px rgba(0,0,0,0.14);
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(202,255,54,0.58) rgba(255,255,255,0.055);
    scroll-snap-type: y proximity;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 22px, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 22px, black calc(100% - 30px), transparent 100%);
}

.theme-scrollbox.is-dragging {
    cursor: grabbing;
}

.theme-scrollbox::-webkit-scrollbar {
    width: 9px;
}

.theme-scrollbox::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
}

.theme-scrollbox::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(238,255,135,0.80), rgba(115,197,12,0.72));
    box-shadow: 0 0 16px rgba(190,255,54,0.20);
}

.theme-hero-card,
.theme-deck-section,
.theme-footer-console {
    position: relative;
    scroll-snap-align: start;
    width: 100%;
    box-sizing: border-box;
}

.theme-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(230px, 0.98fr);
    gap: 20px;
    min-height: 288px;
    padding: 24px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at 94% 12%, rgba(53,228,255,0.26), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(190,255,54,0.24), transparent 34%),
    linear-gradient(135deg, rgba(7,21,26,0.92), rgba(2,8,12,0.86));
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16),
    0 22px 42px rgba(0,0,0,0.22),
    0 0 36px rgba(161,255,30,0.055);
}

.theme-hero-card::before {
    content: "";
    position: absolute;
    inset: -50% -22% auto 24%;
    height: 160%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 40%, rgba(255,255,255,0.16) 47%, transparent 58%);
    opacity: 0.62;
    transform: rotate(9deg);
    animation: themeLightSweep 8.5s ease-in-out infinite;
}

.theme-hero-card::after {
    content: "THEME";
    position: absolute;
    right: -10px;
    bottom: -35px;
    font-size: clamp(82px, 11vw, 148px);
    line-height: 0.78;
    letter-spacing: -0.09em;
    font-weight: 950;
    color: rgba(255,255,255,0.075);
    pointer-events: none;
}

.theme-hero-copy,
.theme-live-preview,
.theme-deck-section > *,
.theme-footer-console > * {
    position: relative;
    z-index: 2;
}

.theme-kicker,
.theme-section-heading span,
.theme-footer-console span {
    display: block;
    margin-bottom: 10px;
    color: rgba(218,255,92,0.88);
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(185,255,54,0.20);
}

.theme-hero-copy h3 {
    max-width: 420px;
    margin: 0;
    font-size: clamp(39px, 5.3vw, 66px);
    line-height: 0.88;
    letter-spacing: -0.08em;
    font-weight: 950;
    text-shadow: 0 22px 35px rgba(0,0,0,0.24);
}

.theme-hero-copy p {
    margin: 18px 0 0;
    max-width: 410px;
    color: rgba(255,255,255,0.74);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.46;
}

.theme-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

.theme-hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 7px 10px 6px;
    border-radius: 999px;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.11);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-live-preview {
    min-height: 238px;
    display: grid;
    place-items: center;
    perspective: 900px;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 46%, rgba(185,255,54,0.18), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.theme-preview-orb {
    position: absolute;
    width: 218px;
    height: 218px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235,255,136,0.98), rgba(134,214,11,0.74) 26%, rgba(53,228,255,0.12) 47%, transparent 72%);
    filter: blur(1px);
    opacity: 0.52;
    animation: themeOrbPulse 5.6s ease-in-out infinite;
}

.theme-preview-rings {
    position: absolute;
    width: 284px;
    height: 284px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 0 0 28px rgba(255,255,255,0.025),
    0 0 46px rgba(53,228,255,0.10);
    animation: themeRingDrift 12s linear infinite;
}

.theme-preview-shell {
    position: relative;
    z-index: 2;
    width: min(96%, 318px);
    min-height: 194px;
    padding: 14px;
    border-radius: 20px;
    transform: rotateX(9deg) rotateY(-14deg) rotateZ(-1deg);
    background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)),
    rgba(5,18,22,0.72);
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.21),
    0 24px 42px rgba(0,0,0,0.33),
    0 0 40px rgba(190,255,54,0.08);
    animation: themePreviewFloat 6.4s ease-in-out infinite;
}

.theme-preview-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.74);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.theme-preview-topline i {
    color: rgba(211,255,81,0.92);
    font-style: normal;
}

.theme-preview-stage {
    position: relative;
    height: 116px;
    margin-top: 15px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11,30,36,0.88), rgba(2,9,12,0.82));
    border: 1px solid rgba(255,255,255,0.10);
}

.theme-preview-tile {
    position: absolute;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 12px 22px rgba(0,0,0,0.20);
}

.theme-preview-tile.is-main {
    left: 18px;
    top: 18px;
    width: 118px;
    height: 78px;
    background: linear-gradient(180deg, rgba(224,255,102,0.96), rgba(106,197,11,0.93));
}

.theme-preview-tile.is-side {
    right: 20px;
    top: 22px;
    width: 96px;
    height: 34px;
    background: rgba(255,255,255,0.12);
}

.theme-preview-tile.is-mini {
    right: 42px;
    bottom: 17px;
    width: 74px;
    height: 32px;
    background: linear-gradient(90deg, rgba(53,228,255,0.28), rgba(255,255,255,0.08));
}

.theme-preview-nav {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.theme-preview-nav span {
    height: 8px;
    flex: 1;
    border-radius: 999px;
    background: rgba(255,255,255,0.13);
}

.theme-preview-nav span:first-child {
    background: linear-gradient(90deg, rgba(232,255,112,0.92), rgba(116,205,14,0.86));
    box-shadow: 0 0 18px rgba(190,255,54,0.22);
}

.theme-deck-section,
.theme-footer-console {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    rgba(3,13,17,0.26);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 14px 28px rgba(0,0,0,0.12);
}

.theme-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.theme-section-heading span {
    margin-bottom: 0;
}

.theme-section-heading strong {
    color: rgba(255,255,255,0.92);
    font-size: clamp(22px, 2.3vw, 32px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-align: right;
}

.theme-pack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.theme-pack-card {
    position: relative;
    min-height: 146px;
    padding: 16px 16px 52px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 90% 0%, rgba(255,255,255,0.14), transparent 31%),
    linear-gradient(135deg, rgba(7,21,26,0.86), rgba(2,9,12,0.76));
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 24px rgba(0,0,0,0.12);
    transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.theme-pack-card:hover {
    transform: translateY(-3px);
    filter: brightness(1.04) saturate(1.04);
    border-color: rgba(225,255,91,0.24);
}

.theme-pack-card > span {
    display: block;
    color: rgba(255,255,255,0.34);
    font-size: 22px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.theme-pack-card strong {
    display: block;
    margin-top: 10px;
    font-size: 25px;
    line-height: 0.94;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.theme-pack-card p {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.66);
    font-size: 12px;
    line-height: 1.35;
}

.theme-pack-card b {
    position: absolute;
    left: 16px;
    bottom: 15px;
    padding: 8px 11px 7px;
    border-radius: 999px;
    color: rgba(18,28,14,0.96);
    background: linear-gradient(180deg, rgba(237,255,119,0.98), rgba(141,220,18,0.94));
    box-shadow: 0 0 16px rgba(190,255,54,0.18);
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.12em;
}

.theme-pack-card.is-vista {
    background: radial-gradient(circle at 88% 8%, rgba(53,228,255,0.20), transparent 34%),
    linear-gradient(135deg, rgba(18,40,52,0.90), rgba(4,12,18,0.78));
}

.theme-pack-card.is-arcade {
    background: radial-gradient(circle at 84% 0%, rgba(255,255,255,0.18), transparent 32%),
    linear-gradient(135deg, rgba(239,78,46,0.95), rgba(52,18,16,0.82));
}

.theme-pack-card.is-chaos {
    background: radial-gradient(circle at 88% 8%, rgba(183,96,255,0.24), transparent 34%),
    linear-gradient(135deg, rgba(26,18,42,0.90), rgba(4,10,14,0.80));
}

.theme-pack-card.is-active::after {
    content: "EQUIPPED";
    position: absolute;
    right: -8px;
    bottom: -17px;
    color: rgba(221,255,77,0.12);
    font-size: 54px;
    line-height: 0.8;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.theme-palette-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.theme-palette-card {
    position: relative;
    min-height: 112px;
    padding: 12px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.theme-palette-card i {
    display: block;
    height: 42px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent 42%),
    var(--swatch);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 12px 22px rgba(0,0,0,0.16), 0 0 20px color-mix(in srgb, var(--swatch), transparent 70%);
}

.theme-palette-card span,
.theme-palette-card b {
    display: block;
}

.theme-palette-card span {
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    line-height: 1.1;
    font-weight: 900;
}

.theme-palette-card b {
    margin-top: 5px;
    color: rgba(255,255,255,0.44);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.theme-meter-stack {
    display: grid;
    gap: 12px;
}

.theme-meter-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.theme-meter-row span {
    color: rgba(255,255,255,0.78);
    font-size: 13px;
    font-weight: 850;
}

.theme-meter-row div {
    position: relative;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,0.09);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.30);
}

.theme-meter-row i {
    display: block;
    width: var(--value);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(114,197,13,0.92), rgba(235,255,105,0.98));
    box-shadow: 0 0 16px rgba(190,255,54,0.24);
}

.theme-meter-row b {
    color: rgba(224,255,102,0.94);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-align: right;
}

.theme-footer-console {
    margin-bottom: 8px;
    background: radial-gradient(circle at 12% 0%, rgba(255,90,47,0.18), transparent 32%),
    linear-gradient(135deg, rgba(8,19,24,0.82), rgba(2,8,12,0.72));
}

.theme-footer-console strong {
    display: block;
    font-size: clamp(25px, 3.1vw, 40px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.theme-footer-console p {
    margin: 12px 0 0;
    max-width: 580px;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    line-height: 1.42;
}

@keyframes themeLightSweep {
    0%, 32% {
      transform: translateX(-42%) rotate(9deg);
      opacity: 0;
  }

    46% {
      opacity: 0.58;
  }

    68%, 100% {
      transform: translateX(62%) rotate(9deg);
      opacity: 0;
  }
}

@keyframes themeOrbPulse {
    0%, 100% {
      transform: scale(0.94);
      opacity: 0.44;
  }

    50% {
      transform: scale(1.05);
      opacity: 0.62;
  }
}

@keyframes themeRingDrift {
    from {
      transform: rotate(0deg) scale(0.96);
  }

    to {
      transform: rotate(360deg) scale(0.96);
  }
}

@keyframes themePreviewFloat {
    0%, 100% {
      transform: rotateX(9deg) rotateY(-14deg) rotateZ(-1deg) translateY(0);
  }

    50% {
      transform: rotateX(7deg) rotateY(-11deg) rotateZ(1deg) translateY(-5px);
  }
}

@media (max-width: 980px) {
    .theme-scrollbox {
      height: clamp(360px, calc(100vh - 210px), 520px);
  }

    .theme-hero-card {
      grid-template-columns: 1fr;
  }

    .theme-live-preview {
      min-height: 214px;
  }

    .theme-pack-grid,
  .theme-palette-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
    .theme-scrollbox {
      padding: 14px 11px 24px;
  }

    .theme-hero-card,
  .theme-deck-section,
  .theme-footer-console {
      padding: 16px;
      border-radius: 18px;
  }

    .theme-section-heading {
      display: block;
  }

    .theme-section-heading strong {
      display: block;
      margin-top: 8px;
      text-align: left;
  }

    .theme-pack-grid,
  .theme-palette-grid {
      grid-template-columns: 1fr;
  }

    .theme-meter-row {
      grid-template-columns: 1fr;
      gap: 8px;
  }

    .theme-meter-row b {
      text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
    .theme-hero-card::before,
  .theme-preview-orb,
  .theme-preview-rings,
  .theme-preview-shell {
      animation: none !important;
  }
}

.contact-live-panel {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding-right: 0 !important;
}

.contact-live-scrollbox {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: 100%;
    height: clamp(360px, calc(100vh - 280px), 506px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px 28px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 24px;
    background: radial-gradient(circle at 12% 0%, rgba(53,228,255,0.15), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(185,255,54,0.14), transparent 38%),
    radial-gradient(circle at 66% 92%, rgba(255,90,47,0.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.018)),
    rgba(2,11,15,0.24);
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -54px 70px rgba(0,0,0,0.15),
    0 18px 34px rgba(0,0,0,0.15);
    cursor: grab;
    user-select: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(202,255,54,0.58) rgba(255,255,255,0.055);
    scroll-snap-type: y proximity;
    overscroll-behavior: contain;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 22px, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, black 22px, black calc(100% - 30px), transparent 100%);
}

.contact-live-scrollbox.is-dragging {
    cursor: grabbing;
}

.contact-live-scrollbox::-webkit-scrollbar {
    width: 9px;
}

.contact-live-scrollbox::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
}

.contact-live-scrollbox::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(238,255,135,0.82), rgba(91,214,245,0.72));
    box-shadow: 0 0 16px rgba(190,255,54,0.18);
}

.contact-live-hero,
.contact-channel-card,
.contact-dispatch-console {
    scroll-snap-align: start;
}

.contact-live-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    min-height: 306px;
    padding: 24px;
    border-radius: 25px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, rgba(80,225,255,0.28), transparent 35%),
    radial-gradient(circle at 82% 26%, rgba(190,255,54,0.22), transparent 33%),
    linear-gradient(135deg, rgba(7,21,27,0.94), rgba(2,8,12,0.88));
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18),
    0 22px 42px rgba(0,0,0,0.23),
    0 0 42px rgba(53,228,255,0.055);
}

.contact-live-hero::before {
    content: "";
    position: absolute;
    inset: -40% -22% auto 18%;
    height: 160%;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0 41%, rgba(255,255,255,0.15) 48%, transparent 58%);
    opacity: 0.56;
    transform: rotate(10deg);
    animation: contactLightSweep 9s ease-in-out infinite;
}

.contact-live-hero::after {
    content: "LIVE";
    position: absolute;
    right: -8px;
    bottom: -29px;
    font-size: clamp(92px, 14vw, 172px);
    line-height: 0.75;
    letter-spacing: -0.10em;
    font-weight: 950;
    color: rgba(255,255,255,0.07);
    pointer-events: none;
}

.contact-live-orbit,
.contact-live-copy,
.contact-channel-card > *,
.contact-dispatch-console > * {
    position: relative;
    z-index: 2;
}

.contact-live-orbit {
    min-height: 244px;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 50%, rgba(185,255,54,0.20), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(53,228,255,0.13), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.018));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -36px 60px rgba(0,0,0,0.16);
    overflow: hidden;
}

.contact-orbit-ring,
.contact-orbit-node,
.contact-orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.contact-orbit-ring {
    border-radius: 999px;
    border: 1px solid rgba(218,255,92,0.22);
    box-shadow: 0 0 28px rgba(185,255,54,0.08);
    pointer-events: none;
}

.contact-orbit-ring.is-one {
    width: 184px;
    height: 184px;
    animation: contactOrbitSpin 15s linear infinite;
}

.contact-orbit-ring.is-two {
    width: 248px;
    height: 248px;
    border-color: rgba(53,228,255,0.18);
    transform: translate(-50%, -50%) rotate(18deg);
    animation: contactOrbitSpinReverse 22s linear infinite;
}

.contact-orbit-ring.is-one::before,
.contact-orbit-ring.is-two::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    right: 19px;
    top: 21px;
    background: rgba(218,255,92,0.95);
    box-shadow: 0 0 18px rgba(185,255,54,0.55);
}

.contact-orbit-ring.is-two::before {
    left: 20px;
    right: auto;
    top: 56px;
    background: rgba(53,228,255,0.92);
    box-shadow: 0 0 18px rgba(53,228,255,0.48);
}

.contact-orbit-core {
    width: 132px;
    height: 132px;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 22%, rgba(255,255,255,0.62), transparent 20%),
    linear-gradient(180deg, #dfff5f, #75c80f);
    color: rgba(8,22,8,0.94);
    border: 4px solid rgba(225,255,115,0.78);
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.42),
    inset 0 -10px 20px rgba(40,84,4,0.22),
    0 0 0 7px rgba(110,190,16,0.28),
    0 18px 42px rgba(0,0,0,0.28),
    0 0 34px rgba(185,255,54,0.30);
    animation: contactCorePulse 2.8s ease-in-out infinite;
}

.contact-orbit-core strong {
    font-size: 29px;
    line-height: 0.9;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.contact-orbit-core small {
    margin-top: 7px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.14em;
    font-weight: 950;
}

.contact-orbit-node {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: white;
    font-size: 14px;
    font-weight: 950;
    letter-spacing: -0.03em;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.22),
    0 12px 30px rgba(0,0,0,0.24);
}

.contact-orbit-node.is-facebook {
    transform: translate(-50%, -50%) translate(-96px, -72px) rotate(-8deg);
    background: linear-gradient(135deg, rgba(63,133,255,0.94), rgba(13,42,113,0.90));
}

.contact-orbit-node.is-instagram {
    transform: translate(-50%, -50%) translate(108px, -16px) rotate(8deg);
    background: linear-gradient(135deg, rgba(255,90,47,0.95), rgba(141,42,255,0.86));
}

.contact-orbit-node.is-email {
    transform: translate(-50%, -50%) translate(-48px, 102px) rotate(4deg);
    background: linear-gradient(135deg, rgba(238,255,135,0.96), rgba(83,196,11,0.90));
    color: rgba(6,20,7,0.94);
}

.contact-kicker {
    display: block;
    margin-bottom: 12px;
    color: rgba(218,255,92,0.90);
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(185,255,54,0.20);
}

.contact-live-copy {
    align-self: center;
}

.contact-live-copy h3 {
    max-width: 460px;
    margin: 0;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 0.84;
    letter-spacing: -0.09em;
    font-weight: 950;
    text-shadow: 0 22px 35px rgba(0,0,0,0.24);
}

.contact-live-copy p {
    max-width: 490px;
    margin: 18px 0 0;
    color: rgba(255,255,255,0.74);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.46;
}

.contact-live-status {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.contact-live-status span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 7px 11px 6px;
    border-radius: 999px;
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.contact-live-status i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(189,255,54,0.98);
    box-shadow: 0 0 14px rgba(189,255,54,0.70);
}

.contact-channel-grid {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.contact-channel-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 126px;
    padding: 18px;
    overflow: hidden;
    border-radius: 22px;
    text-decoration: none;
    color: white;
    background: linear-gradient(110deg, rgba(255,255,255,0.13), transparent 25% 74%, rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(9,24,30,0.88), rgba(2,8,12,0.82));
    border: 1px solid rgba(255,255,255,0.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14),
    0 16px 34px rgba(0,0,0,0.18);
    transform: translateZ(0);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact-channel-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.86;
    background: radial-gradient(circle at 9% 0%, var(--contact-glow, rgba(185,255,54,0.18)), transparent 34%),
    linear-gradient(110deg, transparent 0 44%, rgba(255,255,255,0.14) 51%, transparent 61%);
}

.contact-channel-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: var(--contact-accent, rgba(185,255,54,0.92));
    box-shadow: 0 0 24px var(--contact-accent, rgba(185,255,54,0.35));
}

.contact-channel-card:hover,
.contact-channel-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(226,255,118,0.38);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18),
    0 20px 42px rgba(0,0,0,0.22),
    0 0 32px rgba(185,255,54,0.10);
}

.contact-channel-card.is-facebook {
    --contact-accent: rgba(75,142,255,0.94);
    --contact-glow: rgba(75,142,255,0.23);
}

.contact-channel-card.is-instagram {
    --contact-accent: rgba(255,90,47,0.96);
    --contact-glow: rgba(255,90,47,0.22);
}

.contact-channel-card.is-email {
    --contact-accent: rgba(210,255,54,0.98);
    --contact-glow: rgba(210,255,54,0.20);
}

.contact-channel-index {
    color: rgba(255,255,255,0.32);
    font-size: 34px;
    line-height: 0.88;
    letter-spacing: -0.10em;
    font-weight: 950;
}

.contact-channel-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 19px;
    color: rgba(4,14,18,0.95);
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.72), transparent 27%),
    linear-gradient(180deg, #e7ff72, #78ce10);
    border: 3px solid rgba(221,255,111,0.65);
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.40),
    0 0 0 5px rgba(121,200,23,0.20),
    0 14px 26px rgba(0,0,0,0.20);
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}

.contact-channel-card.is-facebook .contact-channel-icon {
    color: white;
    background: linear-gradient(180deg, #78aaff, #1f58d7);
    border-color: rgba(159,196,255,0.62);
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.26),
    0 0 0 5px rgba(50,115,255,0.18),
    0 14px 26px rgba(0,0,0,0.20);
}

.contact-channel-card.is-instagram .contact-channel-icon {
    color: white;
    background: linear-gradient(135deg, #ff6942, #a337ff 60%, #ffcf5b);
    border-color: rgba(255,177,140,0.55);
    box-shadow: inset 0 2px 8px rgba(255,255,255,0.24),
    0 0 0 5px rgba(255,90,47,0.16),
    0 14px 26px rgba(0,0,0,0.20);
}

.contact-channel-copy span {
    display: block;
    margin-bottom: 6px;
    color: rgba(218,255,92,0.88);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-channel-copy strong {
    display: block;
    color: rgba(255,255,255,0.96);
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 950;
    text-shadow: 0 14px 24px rgba(0,0,0,0.22);
}

.contact-channel-copy p {
    max-width: 440px;
    margin: 9px 0 0;
    color: rgba(255,255,255,0.64);
    font-size: 13px;
    line-height: 1.34;
}

.contact-channel-card > b {
    align-self: end;
    justify-self: end;
    padding: 8px 12px 7px;
    border-radius: 999px;
    color: rgba(9,20,6,0.95);
    background: linear-gradient(180deg, rgba(232,255,111,0.98), rgba(118,207,14,0.96));
    box-shadow: 0 0 18px rgba(185,255,54,0.20);
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.12em;
}

.contact-dispatch-console {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 18px;
    margin-top: 14px;
    margin-bottom: 8px;
    padding: 21px;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(circle at 18% 0%, rgba(255,90,47,0.16), transparent 34%),
    linear-gradient(135deg, rgba(8,19,24,0.86), rgba(2,8,12,0.74));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.13),
    0 16px 34px rgba(0,0,0,0.17);
}

.contact-dispatch-console::after {
    content: "";
    position: absolute;
    inset: auto -12% -68% 34%;
    height: 160%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(185,255,54,0.18), transparent 58%);
}

.contact-console-lines span {
    display: block;
    margin-bottom: 11px;
    color: rgba(218,255,92,0.88);
    font-size: 12px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-console-lines strong {
    display: block;
    max-width: 560px;
    color: rgba(255,255,255,0.96);
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.contact-console-lines p {
    max-width: 560px;
    margin: 12px 0 0;
    color: rgba(255,255,255,0.66);
    font-size: 13px;
    line-height: 1.42;
}

.contact-signal-stack {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
    min-height: 98px;
}

.contact-signal-stack i {
    width: 18px;
    height: var(--level);
    min-height: 28px;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, rgba(235,255,105,0.98), rgba(92,203,10,0.86));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.34),
    0 0 18px rgba(185,255,54,0.18);
    animation: contactSignalBounce 2.6s ease-in-out infinite;
    animation-delay: calc(var(--nxe-order, 0) * 90ms);
}

@keyframes contactLightSweep {
    0%, 34% {
      transform: translateX(-42%) rotate(10deg);
      opacity: 0;
  }

    48% {
      opacity: 0.56;
  }

    70%, 100% {
      transform: translateX(62%) rotate(10deg);
      opacity: 0;
  }
}

@keyframes contactOrbitSpin {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
  }

    to {
      transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes contactOrbitSpinReverse {
    from {
      transform: translate(-50%, -50%) rotate(18deg);
  }

    to {
      transform: translate(-50%, -50%) rotate(-342deg);
  }
}

@keyframes contactCorePulse {
    0%, 100% {
      transform: translate(-50%, -50%) scale(0.97);
  }

    50% {
      transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes contactSignalBounce {
    0%, 100% {
      transform: scaleY(0.82);
      opacity: 0.68;
  }

    45% {
      transform: scaleY(1.02);
      opacity: 1;
  }
}

@media (max-width: 980px) {
    .contact-live-scrollbox {
      height: clamp(360px, calc(100vh - 210px), 520px);
  }

    .contact-live-hero {
      grid-template-columns: 1fr;
  }

    .contact-live-orbit {
      min-height: 300px;
  }

    .contact-channel-card {
      grid-template-columns: 46px 66px minmax(0, 1fr);
  }

    .contact-channel-card > b {
      grid-column: 3;
      justify-self: start;
      margin-top: 10px;
  }
}

@media (max-width: 640px) {
    .contact-live-scrollbox {
      padding: 14px 11px 24px;
  }

    .contact-live-hero,
  .contact-dispatch-console {
      padding: 16px;
      border-radius: 18px;
  }

    .contact-live-copy h3 {
      font-size: clamp(40px, 13vw, 58px);
  }

    .contact-channel-card {
      grid-template-columns: 1fr;
      align-items: start;
      min-height: 0;
      padding: 16px;
      border-radius: 18px;
  }

    .contact-channel-index {
      font-size: 28px;
  }

    .contact-channel-card > b {
      grid-column: auto;
  }

    .contact-dispatch-console {
      grid-template-columns: 1fr;
  }

    .contact-signal-stack {
      justify-content: flex-start;
      min-height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
    .contact-live-hero::before,
  .contact-orbit-ring,
  .contact-orbit-core,
  .contact-signal-stack i {
      animation: none !important;
  }
}

.unicore-game[hidden],
.unicore-letter-scene[hidden] {
    display: none !important;
}

.unicore-game {
    position: fixed;
    inset: 0;
    z-index: 140;
    overflow: hidden;
    color: #f6ead0;
    background: radial-gradient(ellipse at 50% 57%, rgba(191, 155, 83, 0.20) 0 21%, rgba(30, 22, 17, 0.12) 38%, transparent 60%),
    radial-gradient(circle at 78% 76%, rgba(11, 92, 93, 0.16), transparent 30%),
    radial-gradient(circle at 28% 22%, rgba(117, 68, 155, 0.16), transparent 28%),
    linear-gradient(180deg, #020404 0%, #0c1013 25%, #11100d 55%, #050606 100%);
    opacity: 0;
    visibility: hidden;
    perspective: 1600px;
    transition: opacity 460ms ease, visibility 460ms ease;
}

.unicore-game::before,
.unicore-game::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.unicore-game::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.58), transparent 18%, transparent 82%, rgba(0,0,0,0.56)),
    linear-gradient(180deg, rgba(0,0,0,0.72), transparent 18%, transparent 80%, rgba(0,0,0,0.74));
    opacity: 0.94;
}

.unicore-game::after {
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 54%, transparent 0 43%, rgba(0,0,0,0.30) 70%, rgba(0,0,0,0.70) 100%);
    mix-blend-mode: screen;
    opacity: 0.55;
}

.unicore-game.is-visible {
    opacity: 1;
    visibility: visible;
}

.unicore-game-close,
.unicore-letter-back {
    position: absolute;
    z-index: 16;
    border: 1px solid rgba(222, 185, 103, 0.55);
    color: #f4e6c6;
    background: rgba(9, 11, 13, 0.56);
    box-shadow: 0 16px 40px rgba(0,0,0,0.36), inset 0 0 24px rgba(255, 222, 141, 0.08);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.unicore-game-close {
    top: clamp(18px, 2.5vw, 34px);
    right: clamp(18px, 2.5vw, 34px);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

.unicore-letter-back {
    right: clamp(22px, 4vw, 70px);
    bottom: clamp(22px, 4vw, 54px);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.unicore-launch-card {
    position: fixed !important;
    z-index: 180 !important;
    margin: 0 !important;
    pointer-events: none !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
    transform-origin: center center !important;
    opacity: 1 !important;
    filter: saturate(1.08) brightness(1.08) !important;
    transition: transform 780ms cubic-bezier(.16, 1, .3, 1),
    opacity 600ms ease,
    filter 650ms ease;
}

.unicore-launch-card.is-flying {
    transform: translate3d(var(--unicore-launch-dx), var(--unicore-launch-dy), 0) scale(1.42) rotateY(-7deg) rotateZ(-2deg) !important;
    opacity: 0 !important;
    filter: blur(8px) saturate(1.34) brightness(1.42) !important;
}

.unicore-game-world {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition: opacity 680ms 160ms ease,
    transform 880ms 120ms cubic-bezier(.16, 1, .3, 1),
    filter 420ms ease;
    transform-style: preserve-3d;
}

.unicore-game.is-visible .unicore-game-world {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.unicore-game.is-reading .unicore-game-world {
    opacity: 0.48;
    filter: blur(5px) brightness(0.62) saturate(0.72);
    transform: translateX(-4vw) scale(1.035);
}

.unicore-game-border {
    position: absolute;
    inset: clamp(42px, 7vh, 66px) clamp(28px, 5vw, 78px) auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 177, 91, 0.84) 16%, rgba(250, 225, 148, 0.92) 50%, rgba(217, 177, 91, 0.84) 84%, transparent);
    box-shadow: 0 0 20px rgba(225, 184, 91, 0.34);
}

.unicore-game-border::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -9px;
    width: 46px;
    height: 18px;
    transform: translateX(-50%);
    border: 1px solid rgba(221, 178, 92, 0.85);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(6, 11, 13, 0.9);
}

.unicore-overall-progress {
    position: absolute;
    left: clamp(48px, 8vw, 138px);
    top: clamp(96px, 13vh, 142px);
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff3d4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75);
}

.unicore-progress-seal {
    position: relative;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #c59648;
    background: radial-gradient(circle, #020304 0 52%, #10100f 53% 100%);
    box-shadow: 0 0 0 8px rgba(201, 158, 78, 0.18),
    0 16px 40px rgba(0,0,0,0.55),
    inset 0 0 25px rgba(97, 190, 255, 0.20);
    color: #84c8ff;
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: 800;
}

.unicore-progress-seal small {
    margin-left: 4px;
    font-size: 22px;
    color: #f4efe2;
}

.unicore-overall-progress strong {
    font-family: Georgia, serif;
    font-size: clamp(17px, 1.4vw, 24px);
    letter-spacing: 0.03em;
}

.unicore-guide-message {
    position: absolute;
    top: clamp(72px, 9.5vh, 96px);
    left: 50%;
    width: min(520px, 48vw);
    transform: translateX(-50%);
    text-align: center;
    font-family: Georgia, serif;
    color: rgba(255, 246, 225, 0.94);
    text-shadow: 0 2px 16px rgba(0,0,0,0.84);
}

.unicore-guide-message p {
    margin: 0 0 22px;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.28;
}

.unicore-guide-message span {
    display: block;
    font-size: clamp(13px, 0.95vw, 17px);
}

.unicore-book-plane {
    position: absolute;
    left: 50%;
    bottom: -10vh;
    width: min(1280px, 108vw);
    height: min(590px, 58vh);
    transform: translateX(-50%) rotateX(61deg) rotateZ(-2deg);
    transform-origin: center bottom;
    opacity: 0.74;
    filter: drop-shadow(0 42px 72px rgba(0,0,0,0.78));
}

.unicore-book-cover,
.unicore-book-page,
.unicore-book-spine {
    position: absolute;
    border-radius: 16px;
}

.unicore-book-cover {
    inset: 12% 5% 8% 6%;
    background: radial-gradient(ellipse at 36% 45%, rgba(104, 82, 42, 0.24), transparent 31%),
    linear-gradient(115deg, rgba(108, 74, 44, 0.96), rgba(51, 34, 24, 0.98));
    border: 2px solid rgba(97, 69, 43, 0.8);
}

.unicore-book-page {
    inset: 2% 7% 18% 4%;
    background: radial-gradient(ellipse at 35% 42%, rgba(64, 45, 27, 0.22), transparent 44%),
    repeating-linear-gradient(165deg, rgba(71, 45, 30, 0.11) 0 2px, transparent 2px 36px),
    linear-gradient(103deg, #d2bf96, #8e7654 54%, #3b281d 100%);
    box-shadow: inset 0 0 90px rgba(30, 17, 9, 0.7);
    opacity: 0.88;
}

.unicore-book-spine {
    right: 4%;
    bottom: 0;
    width: 70%;
    height: 16%;
    background: linear-gradient(180deg, #3b281d, #14100d);
    filter: blur(0.2px);
}

.unicore-card-track {
    position: absolute;
    left: 50%;
    top: clamp(230px, 31vh, 330px);
    width: min(1280px, 86vw);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 2.6vw, 42px);
    transform-style: preserve-3d;
}

.unicore-field-card {
    position: relative;
    flex: 0 0 clamp(150px, 12.4vw, 230px);
    height: clamp(310px, 40vh, 430px);
    border: 2px solid rgba(199, 148, 64, 0.95);
    border-radius: 18px;
    overflow: visible;
    color: #f1d792;
    background: linear-gradient(180deg, rgba(14, 45, 51, 0.86), rgba(11, 21, 27, 0.95));
    box-shadow: 0 24px 45px rgba(0,0,0,0.62),
    inset 0 0 0 3px rgba(5, 8, 10, 0.64),
    inset 0 0 38px rgba(234, 182, 88, 0.12);
    transform: translateY(10px) scale(0.88) rotateY(var(--card-rotate, 0deg));
    transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease;
    cursor: default;
}

.unicore-field-card::before,
.unicore-field-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    border-radius: 13px;
}

.unicore-field-card::before {
    border: 1px solid rgba(252, 218, 132, 0.62);
    background: radial-gradient(circle at 18% 14%, rgba(235, 189, 91, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 14%, rgba(235, 189, 91, 0.22) 0 2px, transparent 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.030) 0 1px, transparent 1px 5px);
}

.unicore-field-card::after {
    inset: auto 10px 11px;
    height: 74px;
    border: 1px solid rgba(207, 151, 61, 0.72);
    background: linear-gradient(180deg, rgba(12, 14, 15, 0.92), rgba(2, 3, 4, 0.98));
    box-shadow: inset 0 0 28px rgba(255,255,255,0.05);
}

.unicore-field-card.is-near {
    transform: translateY(-7px) scale(0.96) rotateY(var(--card-rotate, 0deg));
}

.unicore-field-card.is-side:first-child {
    --card-rotate: 7deg;
}

.unicore-field-card.is-side:last-child {
    --card-rotate: -7deg;
}

.unicore-field-card.is-selected {
    flex-basis: clamp(170px, 14.5vw, 258px);
    height: clamp(342px, 44vh, 476px);
    transform: translateY(-30px) scale(1.04);
    color: #ffe9a8;
    background: radial-gradient(circle at 50% 26%, rgba(96, 231, 238, 0.28), transparent 31%),
    linear-gradient(180deg, rgba(12, 72, 78, 0.96), rgba(9, 26, 31, 0.98));
    box-shadow: 0 0 0 7px rgba(255, 238, 165, 0.12),
    0 0 34px rgba(91, 235, 255, 0.42),
    0 34px 70px rgba(0,0,0,0.72),
    inset 0 0 0 4px rgba(3, 12, 14, 0.66),
    inset 0 0 46px rgba(96, 238, 255, 0.18);
    cursor: pointer;
    animation: unicoreSelectedFloat 4.8s ease-in-out infinite;
}

.unicore-field-card.is-selected:hover,
.unicore-field-card.is-selected:focus-visible {
    outline: none;
    filter: brightness(1.14) saturate(1.12);
    box-shadow: 0 0 0 8px rgba(255, 238, 165, 0.18),
    0 0 46px rgba(122, 243, 255, 0.58),
    0 38px 76px rgba(0,0,0,0.74),
    inset 0 0 0 4px rgba(3, 12, 14, 0.66),
    inset 0 0 50px rgba(96, 238, 255, 0.25);
}

.unicore-progress-seal.is-bumped {
    animation: unicoreProgressBump 720ms cubic-bezier(.18, .9, .22, 1);
}

.card-lock {
    position: absolute;
    z-index: 6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-8deg);
    display: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 225, 149, 0.7);
    border-radius: 999px;
    background: rgba(4, 6, 8, 0.78);
    color: rgba(255, 238, 194, 0.86);
    font: 800 11px/1 system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.75);
    box-shadow: 0 10px 24px rgba(0,0,0,0.46), inset 0 0 18px rgba(255,255,255,0.05);
}

.unicore-field-card.is-locked {
    cursor: not-allowed;
    color: rgba(213, 198, 169, 0.58);
    filter: grayscale(0.72) brightness(0.55) saturate(0.55);
    box-shadow: 0 16px 34px rgba(0,0,0,0.58),
    inset 0 0 0 3px rgba(5, 8, 10, 0.75),
    inset 0 0 46px rgba(0, 0, 0, 0.34);
}

.unicore-field-card.is-locked .card-lock {
    display: grid;
    place-items: center;
}

.unicore-field-card.is-locked .card-illustration,
.unicore-field-card.is-locked strong,
.unicore-field-card.is-locked small {
    opacity: 0.54;
}

.unicore-field-card.is-unlocked,
.unicore-field-card.is-complete {
    cursor: pointer;
}

.unicore-field-card.is-unlocked:not(.is-selected):hover,
.unicore-field-card.is-unlocked:not(.is-selected):focus-visible,
.unicore-field-card.is-complete:not(.is-selected):hover,
.unicore-field-card.is-complete:not(.is-selected):focus-visible {
    outline: none;
    filter: brightness(1.10) saturate(1.12);
    box-shadow: 0 0 0 5px rgba(255, 238, 165, 0.10),
    0 0 28px rgba(122, 243, 255, 0.32),
    0 24px 50px rgba(0,0,0,0.68),
    inset 0 0 0 3px rgba(5, 8, 10, 0.64),
    inset 0 0 38px rgba(234, 182, 88, 0.16);
}

.unicore-field-card.is-unlocked:not(.is-complete):not(#unicoreWelcomeCard) .card-rune::after,
.unicore-field-card.is-complete .card-rune::after {
    position: absolute;
    right: -9px;
    top: -10px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font: 900 13px/1 Georgia, serif;
    box-shadow: 0 0 18px rgba(255,232,147,0.48);
}

.unicore-field-card.is-unlocked:not(.is-complete):not(#unicoreWelcomeCard) .card-rune::after {
    content: "!";
    background: #ffe99a;
    color: #211405;
}

.unicore-field-card.is-complete .card-rune::after {
    content: "✓";
    background: #a7ff4a;
    color: #173200;
}

.unicore-field-card.is-complete small {
    color: #baff5c;
    text-shadow: 0 0 16px rgba(176,255,86,0.42), 0 2px 10px rgba(0,0,0,0.85);
}

.unicore-field-card.is-complete .card-alert {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.72);
    transition: opacity 220ms ease, transform 220ms ease;
}

.unicore-field-card.is-newly-unlocked {
    animation: unicoreUnlockPulse 1.55s cubic-bezier(.18, .9, .22, 1) 2;
}

.unicore-field-card.is-denied {
    animation: unicoreDeniedShake 420ms ease;
}

.card-rune {
    position: absolute;
    top: 17px;
    left: 18px;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(232, 194, 101, 0.86);
    color: #e7c375;
    background: rgba(6, 8, 10, 0.70);
    font-size: 13px;
}

.card-alert {
    position: absolute;
    z-index: 5;
    top: -26px;
    left: 50%;
    width: 62px;
    height: 62px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 4px solid #fff4bd;
    background: radial-gradient(circle, #ffeaa2, #b99748 72%, #62451e 100%);
    color: #231708;
    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 26px rgba(255,229,139,0.42);
}

.card-illustration {
    position: absolute;
    z-index: 1;
    inset: 46px 24px 104px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 46%, rgba(255,255,255,0.13), transparent 44%),
    linear-gradient(160deg, rgba(255,255,255,0.05), transparent 50%);
    opacity: 0.90;
}

.card-illustration::before,
.card-illustration::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card-illustration::before {
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 5px);
    opacity: 0.38;
}

.card-illustration.is-code::after {
    background: linear-gradient(90deg, transparent 21%, rgba(180,225,255,0.30) 22% 24%, transparent 25% 44%, rgba(180,225,255,0.22) 45% 48%, transparent 49%),
    radial-gradient(circle at 50% 64%, rgba(132, 208, 255, 0.24), transparent 40%);
}

.card-illustration.is-webcore::after {
    background: radial-gradient(circle at 50% 52%, rgba(99, 226, 196, 0.28) 0 12%, transparent 13%),
    linear-gradient(38deg, transparent 0 35%, rgba(255, 222, 132, 0.32) 36% 40%, transparent 41%),
    linear-gradient(142deg, transparent 0 28%, rgba(118, 205, 255, 0.26) 29% 33%, transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 240, 180, 0.16) 21px 22px),
    radial-gradient(circle at 54% 46%, rgba(132, 255, 221, 0.18), transparent 42%);
}

.card-illustration.is-content::after {
    background: linear-gradient(110deg, transparent 0 34%, rgba(255,240,192,0.28) 35% 43%, transparent 44%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,239,188,0.22) 24px 26px);
}

.card-illustration.is-labs::after {
    background: radial-gradient(circle at 50% 50%, rgba(159,255,119,0.27), transparent 18%),
    radial-gradient(circle at 33% 35%, rgba(104,229,255,0.20), transparent 17%),
    radial-gradient(circle at 67% 70%, rgba(255,111,192,0.22), transparent 16%),
    linear-gradient(135deg, transparent 45%, rgba(255,255,255,0.18) 46% 48%, transparent 49%);
}

.unicore-field-card strong,
.unicore-field-card small {
    position: absolute;
    left: 18px;
    right: 18px;
    z-index: 3;
    text-align: center;
    font-family: Georgia, serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.unicore-field-card strong {
    bottom: 46px;
    font-size: clamp(13px, 1vw, 18px);
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.unicore-field-card small {
    bottom: 15px;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(18px, 1.5vw, 26px);
    letter-spacing: 0.06em;
}

.unicore-game-controls {
    position: absolute;
    bottom: clamp(30px, 5vh, 58px);
    color: #f6e7c7;
    font-family: Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.unicore-game-controls b {
    display: inline-grid;
    place-items: center;
    height: 28px;
    margin-right: 7px;
    color: #061203;
    background: #7cff4a;
    box-shadow: 0 0 18px rgba(124,255,74,0.46);
}

.unicore-letter-scene {
    position: absolute;
    inset: 0;
    z-index: 14;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition: opacity 340ms ease, transform 520ms cubic-bezier(.16, 1, .3, 1);
}

.unicore-letter-scene.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.unicore-correspondence-header {
    position: absolute;
    left: clamp(54px, 12vw, 190px);
    top: clamp(84px, 12vh, 128px);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(520px, 42vw);
    color: #f2cf75;
    font-family: Georgia, serif;
    font-size: clamp(18px, 1.5vw, 27px);
    letter-spacing: 0.03em;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8);
}

.unicore-correspondence-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(218,169,78,0.88), transparent);
}

.unicore-portrait-seal {
    width: clamp(82px, 7vw, 118px);
    height: clamp(82px, 7vw, 118px);
    display: grid;
    place-items: center;
    border-radius: 22px 22px 12px 12px;
    border: 2px solid rgba(220, 170, 80, 0.88);
    background: radial-gradient(circle at 50% 44%, rgba(153,255,129,0.20), transparent 42%),
    linear-gradient(180deg, #43185b, #141014 68%, #efe0c3 69% 100%);
    box-shadow: 0 18px 34px rgba(0,0,0,0.55), inset 0 0 24px rgba(255,224,124,0.12);
}

.unicore-portrait-seal img {
    width: 56%;
    height: 56%;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(176,255,109,0.24));
}

.unicore-envelope-stack {
    position: absolute;
    left: clamp(120px, 20vw, 340px);
    top: clamp(220px, 30vh, 300px);
    width: min(520px, 38vw);
    height: min(350px, 36vh);
    transform: rotateZ(-3deg);
    opacity: 0.88;
    filter: drop-shadow(0 30px 45px rgba(0,0,0,0.52));
}

.unicore-envelope,
.unicore-postcard {
    position: absolute;
    border-radius: 8px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.16);
}

.unicore-envelope {
    inset: 6% 8% 8% 0;
    background: linear-gradient(35deg, transparent 49%, rgba(62,42,27,0.24) 50%, transparent 52%),
    linear-gradient(145deg, #8b6e48, #c8b28a 52%, #806142);
}

.unicore-envelope::before {
    content: "";
    position: absolute;
    left: 18%;
    top: 21%;
    width: 76px;
    height: 92px;
    border-radius: 6px;
    border: 3px solid rgba(36, 82, 104, 0.62);
    background: linear-gradient(135deg, #477f9b, #c5d5d8);
    opacity: 0.72;
}

.unicore-postcard {
    right: 0;
    bottom: 0;
    width: 52%;
    height: 82%;
    background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(72,55,39,0.18) 39px 40px),
    linear-gradient(180deg, #d6c6a4, #8b785e);
}

.unicore-parchment {
    position: absolute;
    z-index: 6;
    right: clamp(70px, 12vw, 190px);
    top: clamp(118px, 15vh, 170px);
    width: min(650px, 42vw);
    min-height: min(650px, 70vh);
    padding: clamp(58px, 6vw, 96px) clamp(44px, 5vw, 78px);
    color: #211911;
    font-family: "Segoe Print", "Comic Sans MS", "Bradley Hand", cursive;
    font-size: clamp(15px, 1.12vw, 20px);
    line-height: 1.58;
    background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.44), transparent 18%),
    radial-gradient(circle at 76% 84%, rgba(85,54,24,0.10), transparent 24%),
    repeating-linear-gradient(0deg, rgba(79,56,32,0.07) 0 1px, transparent 1px 88px),
    linear-gradient(180deg, #f4e9c5, #dcc698 52%, #f0dfb3 53%, #cdb083 100%);
    box-shadow: 0 50px 80px rgba(0,0,0,0.62),
    inset 0 0 70px rgba(80, 45, 20, 0.20);
    transform: rotateZ(1.2deg);
    clip-path: polygon(1.2% 1.7%, 99% 0.7%, 98.5% 97.8%, 73% 98.8%, 71.4% 100%, 58% 98.5%, 42% 99.2%, 40% 98.1%, 2% 99%);
}

.unicore-parchment::before,
.unicore-parchment::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(104, 78, 44, 0.17);
    box-shadow: 0 1px 0 rgba(255,255,255,0.18);
}

.unicore-parchment::before {
    top: 34%;
}

.unicore-parchment::after {
    top: 66%;
}

.unicore-parchment p {
    position: relative;
    z-index: 2;
    margin: 0 0 1.15em;
}

.unicore-parchment-mark {
    position: absolute;
    right: clamp(20px, 4vw, 56px);
    top: clamp(18px, 3vw, 40px);
    color: rgba(63, 41, 20, 0.38);
    font-family: Georgia, serif;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(10px, 0.78vw, 13px);
}

.unicore-letter-scene.is-map-scene .unicore-correspondence-header,
.unicore-letter-scene.is-map-scene .unicore-envelope-stack {
    display: none;
}

.unicore-letter-scene.is-map-scene .unicore-parchment {
    left: clamp(20px, 3vw, 58px);
    right: clamp(20px, 3vw, 58px);
    top: clamp(70px, 8vh, 94px);
    bottom: clamp(50px, 6vh, 72px);
    width: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    color: #f6ead2;
    font-family: Georgia, "Times New Roman", serif;
    background: radial-gradient(circle at 47% 54%, rgba(255, 234, 160, 0.20), transparent 10%),
    radial-gradient(circle at 24% 40%, rgba(99, 125, 82, 0.36), transparent 32%),
    radial-gradient(circle at 64% 42%, rgba(49, 88, 90, 0.34), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(105, 124, 63, 0.28), transparent 34%),
    linear-gradient(180deg, #12181a 0%, #17211e 45%, #0c1112 100%);
    border: 1px solid rgba(220, 174, 86, 0.48);
    border-radius: 0;
    box-shadow: 0 38px 90px rgba(0,0,0,0.74), inset 0 0 90px rgba(0,0,0,0.42);
    transform: none;
    clip-path: none;
}

.unicore-letter-scene.is-map-scene .unicore-parchment::before,
.unicore-letter-scene.is-map-scene .unicore-parchment::after,
.unicore-letter-scene.is-map-scene .unicore-parchment-mark {
    display: none;
}

.unicore-letter-scene.is-map-scene #unicoreLetterBody {
    position: relative;
    z-index: 2;
    height: 100%;
}

.webcore-map-interface {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    isolation: isolate;
    color: #f4ead2;
    background: linear-gradient(90deg, rgba(0,0,0,0.50), transparent 17%, transparent 78%, rgba(0,0,0,0.46)),
    radial-gradient(circle at 50% 47%, rgba(239, 213, 133, 0.18), transparent 13%),
    radial-gradient(circle at 42% 57%, rgba(130, 150, 92, 0.26), transparent 44%);
}

.webcore-map-interface::before,
.webcore-map-interface::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.webcore-map-interface::before {
    background: radial-gradient(ellipse at 48% 60%, rgba(225, 201, 141, 0.20), transparent 33%),
    repeating-linear-gradient(23deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(118deg, rgba(0,0,0,0.10) 0 2px, transparent 2px 40px);
    opacity: 0.75;
    mix-blend-mode: screen;
}

.webcore-map-interface::after {
    background: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.06), transparent 14%),
    linear-gradient(180deg, rgba(0,0,0,0.56), transparent 16%, transparent 82%, rgba(0,0,0,0.72));
    z-index: 1;
}

.webcore-map-topbar {
    position: absolute;
    z-index: 6;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(218, 168, 75, 0.70);
    background: linear-gradient(180deg, rgba(2, 5, 7, 0.86), rgba(5, 8, 10, 0.44));
    box-shadow: 0 12px 34px rgba(0,0,0,0.42);
}

.webcore-map-topbar span {
    position: relative;
    color: rgba(234, 224, 198, 0.56);
    font-size: clamp(11px, 1vw, 16px);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.webcore-map-topbar span.is-active {
    color: #fff2c6;
    text-shadow: 0 0 18px rgba(251, 210, 101, 0.66);
}

.webcore-map-topbar span.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -19px;
    width: 86px;
    height: 24px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(254, 216, 92, 0.72), transparent 70%);
    opacity: 0.86;
}

.webcore-map-switch {
    position: absolute;
    z-index: 6;
    top: 74px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
}

.webcore-map-switch span {
    min-width: clamp(185px, 18vw, 310px);
    padding: 12px 24px;
    text-align: center;
    border: 2px solid rgba(236, 186, 88, 0.84);
    border-radius: 10px;
    color: #fff3d3;
    background: linear-gradient(180deg, rgba(128, 27, 25, 0.96), rgba(94, 12, 16, 0.96));
    box-shadow: 0 15px 34px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.08);
    font-size: clamp(14px, 1.3vw, 22px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.webcore-map-switch span.is-active {
    filter: brightness(1.16);
    box-shadow: 0 0 28px rgba(238, 190, 88, 0.32), 0 15px 34px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.14);
}

.webcore-map-canvas {
    position: absolute;
    z-index: 2;
    inset: 54px 0 0;
    overflow: hidden;
    background: radial-gradient(circle at 40% 48%, rgba(219, 197, 139, 0.18), transparent 7%),
    radial-gradient(circle at 30% 35%, rgba(46, 71, 46, 0.58), transparent 27%),
    radial-gradient(circle at 58% 35%, rgba(42, 78, 83, 0.44), transparent 25%),
    radial-gradient(circle at 70% 70%, rgba(77, 102, 58, 0.50), transparent 36%),
    linear-gradient(135deg, rgba(45, 62, 45, 0.9), rgba(37, 55, 52, 0.72) 48%, rgba(32, 40, 29, 0.92));
}

.webcore-map-canvas::before {
    content: "";
    position: absolute;
    inset: -8% -6%;
    background: linear-gradient(28deg, transparent 38%, rgba(238, 221, 169, 0.20) 39% 40%, transparent 41%),
    linear-gradient(142deg, transparent 31%, rgba(238, 221, 169, 0.16) 32% 33%, transparent 34%),
    linear-gradient(91deg, transparent 57%, rgba(238, 221, 169, 0.18) 58% 59%, transparent 60%),
    radial-gradient(ellipse at 44% 56%, rgba(194, 178, 126, 0.24), transparent 23%);
    opacity: 0.92;
    filter: blur(0.2px);
}

.webcore-map-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0,0,0,0.38), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(0,0,0,0.44), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.54));
    pointer-events: none;
}

.webcore-map-route {
    position: absolute;
    z-index: 2;
    left: 7%;
    top: 18%;
    width: 57%;
    height: 65%;
    opacity: 0.72;
    filter: drop-shadow(0 0 12px rgba(246, 229, 169, 0.18));
}

.webcore-map-route::before,
.webcore-map-route::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 46% 54% 42% 58%;
    border: 3px solid rgba(237, 220, 169, 0.20);
    transform: rotate(-12deg) skewX(-6deg);
}

.webcore-map-route::after {
    inset: 18% 16% 7% 12%;
    border-width: 2px;
    transform: rotate(17deg) skewX(8deg);
    opacity: 0.66;
}

.webcore-map-pin {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    color: #fff5d1;
    font-size: clamp(10px, 0.82vw, 13px);
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0,0,0,0.85);
}

.webcore-map-pin i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 12%;
    border: 2px solid rgba(255, 247, 215, 0.82);
    background: radial-gradient(circle, #050506 0 48%, #1a1e1b 49% 100%);
    box-shadow: 0 10px 22px rgba(0,0,0,0.45), 0 0 18px rgba(255, 239, 181, 0.20);
    transform: rotate(45deg);
}

.webcore-map-pin i::after {
    content: "✦";
    color: #fff3bd;
    font-size: 15px;
    transform: rotate(-45deg);
}

.webcore-map-pin.is-hot i::after {
    content: "⚡";
}

.webcore-map-pin.is-core i::after {
    content: "✺";
}

.webcore-map-pin.is-core {
    z-index: 7;
    color: #eaffc6;
    filter: drop-shadow(0 0 24px rgba(189, 255, 99, 0.60));
}

.webcore-map-pin.is-core i {
    width: 56px;
    height: 56px;
    border-color: rgba(210, 255, 135, 0.92);
    background: radial-gradient(circle, #9dff39 0 18%, #18220d 19% 55%, #050605 56% 100%);
    box-shadow: 0 18px 36px rgba(0,0,0,0.52), 0 0 42px rgba(177, 255, 61, 0.42);
}

.webcore-map-stats {
    position: absolute;
    z-index: 6;
    right: clamp(24px, 4vw, 70px);
    top: clamp(70px, 12vh, 118px);
    width: min(360px, 25vw);
    padding: 20px 22px;
    color: #fff3d8;
    background: linear-gradient(135deg, rgba(6, 10, 13, 0.72), rgba(8, 18, 22, 0.46));
    border-left: 1px solid rgba(230, 188, 96, 0.62);
    box-shadow: -22px 24px 60px rgba(0,0,0,0.34);
    backdrop-filter: blur(9px);
}

.webcore-map-stats strong {
    display: block;
    margin-bottom: 12px;
    color: #fff7d8;
    font-size: clamp(15px, 1.2vw, 21px);
    text-align: right;
    letter-spacing: 0.06em;
}

.webcore-map-stats span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 7px 0;
    color: rgba(255, 247, 224, 0.86);
    font-size: clamp(13px, 1vw, 17px);
}

.webcore-map-stats b {
    color: #eaffb6;
}

.webcore-map-note {
    position: absolute;
    z-index: 8;
    left: clamp(30px, 4vw, 72px);
    bottom: clamp(62px, 8vh, 96px);
    width: min(760px, 55vw);
    padding: clamp(22px, 2.4vw, 36px);
    overflow: auto;
    overscroll-behavior: contain;
    color: #f9f0da;
    background: linear-gradient(90deg, rgba(7, 12, 14, 0.90), rgba(15, 24, 23, 0.76)),
    radial-gradient(circle at 6% 12%, rgba(202, 255, 110, 0.16), transparent 20%);
    border: 1px solid rgba(227, 186, 94, 0.50);
    border-radius: 16px;
    box-shadow: 0 28px 64px rgba(0,0,0,0.58), inset 0 0 0 1px rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
}

.webcore-map-note::-webkit-scrollbar {
    width: 8px;
}

.webcore-map-note::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(232, 191, 94, 0.55);
}

.webcore-map-note h2 {
    margin: 0 0 6px;
    color: #f9f3d6;
    font-size: clamp(24px, 3vw, 46px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-transform: none;
}

.webcore-map-note .webcore-map-kicker {
    margin: 0 0 18px;
    color: #d5ff82;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.unicore-letter-scene.is-map-scene .webcore-map-note p {
    margin: 0 0 1em;
    color: rgba(255, 248, 226, 0.88);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.55;
}

.webcore-map-controls {
    position: absolute;
    z-index: 7;
    right: clamp(26px, 4vw, 70px);
    bottom: 22px;
    display: flex;
    color: #fff2d1;
    font-size: clamp(11px, 0.9vw, 15px);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.84);
}

.webcore-map-controls b {
    margin-right: 5px;
}

@keyframes unicoreProgressBump {
    0% {
      transform: scale(1);
      filter: brightness(1);
  }

    36% {
      transform: scale(1.18);
      filter: brightness(1.45);
      box-shadow: 0 0 0 12px rgba(151, 211, 255, 0.16), 0 0 42px rgba(132,200,255,0.58), inset 0 0 30px rgba(97,190,255,0.34);
  }

    100% {
      transform: scale(1);
      filter: brightness(1);
  }
}

@keyframes unicoreUnlockPulse {
    0% {
      filter: brightness(1) saturate(1);
  }

    38% {
      filter: brightness(1.42) saturate(1.28);
      box-shadow: 0 0 0 10px rgba(255, 239, 176, 0.16), 0 0 52px rgba(255, 231, 138, 0.58), 0 24px 54px rgba(0,0,0,0.72), inset 0 0 42px rgba(255, 226, 128, 0.22);
  }

    100% {
      filter: brightness(1) saturate(1);
  }
}

@keyframes unicoreDeniedShake {
    0%, 100% {
      margin-left: 0;
  }

    18% {
      margin-left: -8px;
  }

    36% {
      margin-left: 7px;
  }

    54% {
      margin-left: -5px;
  }

    72% {
      margin-left: 4px;
  }
}

@keyframes unicoreSelectedFloat {
    0%, 100% {
      transform: translateY(-30px) scale(1.04);
  }

    50% {
      transform: translateY(-38px) scale(1.055);
  }
}

@media (max-width: 1180px) {
    .unicore-card-track {
      width: 94vw;
      gap: 16px;
  }

    .unicore-field-card {
      flex-basis: clamp(132px, 15vw, 170px);
  }

    .unicore-field-card.is-selected {
      flex-basis: clamp(148px, 17vw, 196px);
  }

    .unicore-parchment {
      right: 6vw;
      width: 48vw;
  }
}

@media (max-width: 860px) {
    .unicore-overall-progress {
      left: 22px;
      top: 82px;
      transform: scale(0.78);
      transform-origin: left top;
  }

    .unicore-guide-message {
      top: 84px;
      width: 58vw;
      margin-left: 44px;
  }

    .unicore-card-track {
      top: 250px;
      justify-content: flex-start;
      overflow-x: auto;
      padding: 18px 28px 44px;
      scroll-snap-type: x mandatory;
  }

    .unicore-field-card {
      flex: 0 0 190px;
      height: 350px;
      scroll-snap-align: center;
  }

    .unicore-field-card.is-selected {
      flex-basis: 214px;
      height: 382px;
  }

    .unicore-letter-scene {
      overflow-y: auto;
  }

    .unicore-correspondence-header,
  .unicore-envelope-stack,
  .unicore-parchment {
      position: relative;
      left: auto;
      right: auto;
      top: auto;
  }

    .unicore-correspondence-header {
      width: calc(100% - 44px);
      margin: 70px 22px 22px;
  }

    .unicore-envelope-stack {
      width: calc(100% - 60px);
      height: 230px;
      margin: 0 30px -70px;
  }

    .unicore-parchment {
      width: calc(100% - 36px);
      min-height: 0;
      margin: 0 18px 96px;
      transform: rotateZ(0.6deg);
  }
}

@media (max-width: 560px) {
    .unicore-game-close {
      width: 40px;
      height: 40px;
      font-size: 25px;
  }

    .unicore-guide-message {
      display: none;
  }

    .unicore-card-track {
      top: 160px;
  }

    .unicore-overall-progress {
      top: 66px;
  }

    .unicore-book-plane {
      width: 140vw;
      bottom: -6vh;
  }

    .unicore-game-controls {
      left: 22px;
      right: auto;
      bottom: 20px;
      font-size: 12px;
  }

    .unicore-parchment {
      padding: 58px 26px 42px;
      font-size: 15px;
  }
}

@media (max-width: 980px) {
    .webcore-map-topbar {
      justify-content: flex-start;
      gap: 20px;
      overflow-x: auto;
      padding: 0 18px;
  }

    .webcore-map-switch {
      top: 66px;
      width: calc(100% - 32px);
  }

    .webcore-map-switch span {
      flex: 1;
      min-width: 0;
      padding-inline: 12px;
  }

    .webcore-map-stats {
      display: none;
  }

    .webcore-map-note {
      left: 18px;
      right: 18px;
      bottom: 74px;
      width: auto;
  }

    .webcore-map-controls {
      gap: 14px;
  }
}

@media (max-width: 620px) {
    .unicore-letter-scene.is-map-scene .unicore-parchment {
      top: 58px;
      left: 10px;
      right: 10px;
      bottom: 58px;
  }

    .webcore-map-switch {
      display: none;
  }

    .webcore-map-pin b {
      display: none;
  }

    .webcore-map-note {
      padding: 20px;
      max-height: 58vh;
  }
}

@media (prefers-reduced-motion: reduce) {
    .unicore-launch-card,
  .unicore-game,
  .unicore-game-world,
  .unicore-letter-scene,
  .unicore-field-card.is-selected,
  .unicore-field-card.is-newly-unlocked,
  .unicore-field-card.is-denied,
  .unicore-progress-seal.is-bumped {
      transition: none !important;
      animation: none !important;
  }
}

.unicore-letter-scene.is-potion-scene {
    background: radial-gradient(circle at 42% 62%, rgba(255, 198, 91, 0.08), transparent 18%),
    radial-gradient(circle at 72% 30%, rgba(80, 171, 188, 0.10), transparent 22%),
    linear-gradient(90deg, rgba(0,0,0,0.62), rgba(2, 7, 11, 0.34) 42%, rgba(0,0,0,0.55));
}

.unicore-letter-scene.is-potion-scene .unicore-parchment {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    min-height: 0;
    height: auto;
    padding: clamp(36px, 4vw, 60px) clamp(32px, 4.2vw, 68px) clamp(24px, 3vw, 42px);
    border: 0;
    border-radius: 0;
    color: #f5ecd7;
    font-family: Georgia, "Times New Roman", serif;
    background: radial-gradient(circle at 37% 59%, rgba(239, 189, 96, 0.13), transparent 20%),
    radial-gradient(circle at 70% 25%, rgba(171, 229, 242, 0.10), transparent 17%),
    linear-gradient(90deg, #06090d 0%, #101922 45%, #071018 100%);
    box-shadow: inset 0 0 130px rgba(0,0,0,0.72);
    transform: none;
    clip-path: none;
}

.unicore-letter-scene.is-potion-scene #unicoreLetterBody {
    position: relative;
    z-index: 2;
    height: 100%;
    min-height: 0;
}

.codicom-potion-interface.codicom-potion-v2 {
    position: relative;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(14px, 2vh, 22px);
    overflow: hidden;
    isolation: isolate;
    color: #f5ecd7;
}

@keyframes codicomHaze {
    from {
      transform: translate3d(-2%, -1%, 0) scale(1);
      opacity: .22;
  }

    to {
      transform: translate3d(2%, 1.5%, 0) scale(1.08);
      opacity: .42;
  }
}

@keyframes codicomDust {
    from {
      transform: translate3d(0, 0, 0);
  }

    to {
      transform: translate3d(-140px, 110px, 0);
  }
}

@keyframes codicomBrewPulse {
    0%, 100% {
      transform: scale(1);
      filter: brightness(1);
  }

    50% {
      transform: scale(1.025);
      filter: brightness(1.18);
  }
}

@keyframes codicomReticle {
    0%, 100% {
      transform: translate3d(0,0,0) scale(1);
      opacity: .72;
  }

    50% {
      transform: translate3d(8px,-7px,0) scale(1.06);
      opacity: .94;
  }
}

@keyframes codicomPanelSmoke {
    from {
      transform: translate3d(-2%, 0, 0) scale(1);
  }

    to {
      transform: translate3d(2%, -1%, 0) scale(1.04);
  }
}

@media (max-width: 760px) {
    .unicore-letter-scene.is-potion-scene .unicore-parchment {
      padding: 24px 18px;
  }
}

.card-illustration.is-vistaport::before {
    background: radial-gradient(circle at 50% 50%, rgba(76, 169, 255, 0.24), transparent 48%),
    linear-gradient(145deg, rgba(10, 54, 118, 0.6), rgba(7, 22, 53, 0.18));
}

.card-illustration.is-vistaport::after {
    content: "";
    border-radius: 24px;
    background: radial-gradient(circle at 50% 50%, rgba(64, 198, 255, 0.45), transparent 32%),
    linear-gradient(180deg, rgba(49,108,188,0.86), rgba(18,33,76,0.92));
    box-shadow: 0 0 0 2px rgba(255, 214, 128, 0.34), inset 0 0 0 2px rgba(255,255,255,0.08), 0 18px 28px rgba(0,0,0,0.34);
    clip-path: polygon(50% 0%, 61% 10%, 76% 6%, 84% 19%, 96% 24%, 94% 39%, 100% 50%, 94% 61%, 96% 76%, 84% 81%, 76% 94%, 61% 90%, 50% 100%, 39% 90%, 24% 94%, 16% 81%, 4% 76%, 6% 61%, 0% 50%, 6% 39%, 4% 24%, 16% 19%, 24% 6%, 39% 10%);
}

.unicore-letter-scene.is-gear-scene .unicore-correspondence-header,
.unicore-letter-scene.is-gear-scene .unicore-envelope-stack {
    display: none;
}

.unicore-letter-scene.is-gear-scene .unicore-parchment::before,
.unicore-letter-scene.is-gear-scene .unicore-parchment::after,
.unicore-letter-scene.is-gear-scene .unicore-parchment-mark {
    display: none;
}

.figure-head {
    position: absolute;
    top: 0;
    left: 50%;
    width: 84px;
    height: 84px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(243,212,180,.95), rgba(198,156,126,.95));
    box-shadow: 0 0 0 4px rgba(32,45,83,.5);
}

.figure-body {
    position: absolute;
    top: 72px;
    left: 50%;
    width: 160px;
    height: 184px;
    transform: translateX(-50%);
    border-radius: 42px 42px 24px 24px;
    background: linear-gradient(180deg, rgba(42,68,128,.95), rgba(18,31,66,.96));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 18px 26px rgba(0,0,0,.28);
}

.figure-body::before {
    content: "";
    position: absolute;
    inset: 18px 18px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(72,95,170,.95), rgba(27,40,84,.9));
}

.figure-core {
    position: absolute;
    top: 134px;
    left: 50%;
    width: 88px;
    height: 88px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103,255,127,.92), rgba(26,176,58,.92) 48%, rgba(14,44,28,.98) 68%);
}

.chip-c {
    left: 50%;
    top: 76px;
    transform: translateX(-50%);
}

.figure-core {
    box-shadow: 0 0 36px rgba(103,255,127,.44), 0 0 0 12px rgba(103,255,127,.06);
}

.ring-a {
    width: 210px;
    height: 210px;
    box-shadow: 0 0 0 10px rgba(89, 116, 220, 0.05);
}

.ring-b {
    width: 280px;
    height: 280px;
    border-style: dashed;
    animation: vistaSpin 28s linear infinite;
}

@keyframes vistaSpin {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
  }

    to {
      transform: translate(-50%, -50%) rotate(360deg);
  }
}

.unicore-letter-scene.is-gear-scene .unicore-parchment {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    clip-path: none !important;
    overflow: hidden !important;
    background: radial-gradient(circle at 50% 28%, rgba(100, 193, 218, 0.28), transparent 22%),
    radial-gradient(circle at 18% 48%, rgba(94, 78, 154, 0.28), transparent 28%),
    radial-gradient(circle at 88% 42%, rgba(59, 89, 167, 0.22), transparent 22%),
    linear-gradient(180deg, #06080d 0%, #11182a 42%, #070a12 100%) !important;
    box-shadow: inset 0 0 160px rgba(0,0,0,0.72) !important;
}

.unicore-letter-scene.is-gear-scene .unicore-letter-back {
    z-index: 60;
    right: 34px;
    bottom: 24px;
    top: auto;
    left: auto;
}

.unicore-letter-scene.is-gear-scene #unicoreLetterBody {
    height: 100% !important;
    padding: 0 !important;
    position: relative;
}

.vistaport-fullscreen-loadout {
    position: relative;
    padding: 26px 54px 34px;
    color: #f6ead0;
    font-family: Georgia, "Times New Roman", serif;
    overflow: hidden;
    isolation: isolate;
}

.vistaport-fullscreen-loadout::before {
    content: "";
    position: absolute;
    inset: 64px 0 0;
    background: radial-gradient(circle at 50% 30%, rgba(148, 225, 235, 0.16), transparent 28%),
    radial-gradient(circle at 28% 44%, rgba(170, 168, 255, 0.13), transparent 26%),
    linear-gradient(90deg, rgba(255,255,255,0.02), transparent 30%, transparent 70%, rgba(255,255,255,0.02));
    z-index: -2;
}

.vistaport-fullscreen-loadout::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-radial-gradient(circle at 50% 42%, rgba(255,255,255,0.035) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, rgba(0,0,0,0.7) 0 7%, transparent 18%, transparent 80%, rgba(0,0,0,0.66) 100%);
    opacity: .62;
    pointer-events: none;
    z-index: -1;
}

.vp-bg-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image: linear-gradient(rgba(111, 171, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 171, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at 50% 48%, black 20%, transparent 72%);
}

.vp-top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    color: rgba(238, 230, 210, .58);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 1rem;
    border-bottom: 1px solid rgba(206, 161, 73, .42);
}

.vp-top-nav b,
.vp-bottom-hints b {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 9px;
    background: linear-gradient(180deg, #5f6267, #1a1d21);
    border: 1px solid rgba(255,255,255,.18);
    color: #f6f3eb;
    font-size: .78rem;
    box-shadow: 0 5px 14px rgba(0,0,0,.35);
}

.vp-top-nav .is-active {
    color: #fff3c5;
    text-shadow: 0 0 18px rgba(246, 204, 105, .5);
    position: relative;
}

.vp-top-nav .is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -17px;
    width: 52px;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: #f0c55e;
    box-shadow: 0 0 22px rgba(240,197,94,.7);
}

.vp-hud-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 36px 12px 6px;
    position: relative;
    z-index: 5;
}

.vp-identity {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 18px;
}

.vp-label {
    grid-column: 1 / -1;
    margin-left: 4px;
    color: rgba(246, 232, 201, .84);
    text-transform: uppercase;
    letter-spacing: .08em;
    text-shadow: 0 2px 0 rgba(0,0,0,.6);
}

.vp-crest {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    clip-path: polygon(50% 0, 88% 18%, 100% 57%, 72% 100%, 28% 100%, 0 57%, 12% 18%);
    background: radial-gradient(circle at 50% 36%, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(180deg, #2f8de2, #0d285d);
    border: 2px solid rgba(232, 191, 106, .7);
    color: #ffdf8e;
    font-size: 2.25rem;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(0,0,0,.42), inset 0 0 0 3px rgba(255,255,255,.08), 0 0 34px rgba(67,154,255,.28);
}

.vp-name strong {
    display: block;
    font-size: clamp(2rem, 3vw, 3.4rem);
    line-height: 1;
    color: #fff;
    text-shadow: 0 3px 0 rgba(0,0,0,.5);
}

.vp-name small {
    display: block;
    margin-top: 8px;
    color: rgba(232, 236, 238, .74);
    font-size: 1.03rem;
}

.vp-stats {
    display: flex;
    gap: 34px;
    align-items: flex-start;
    margin-right: 30px;
}

.vp-stats div {
    display: grid;
    grid-template-columns: 58px auto;
    column-gap: 10px;
    align-items: center;
}

.vp-stats i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid rgba(234, 194, 97, .78);
    background: radial-gradient(circle, rgba(255,255,255,.08), rgba(13,19,33,.88));
    color: #ffd970;
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 900;
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.035), 0 12px 20px rgba(0,0,0,.35);
}

.vp-stats span {
    color: #f2d385;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .95rem;
}

.vp-stats strong {
    color: #fff;
    font-size: 2.25rem;
    line-height: 1.1;
}

.vp-loadout-grid {
    position: absolute;
    left: 70px;
    right: 70px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 230px;
    gap: 28px;
    z-index: 2;
}

.vp-module-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    position: relative;
    z-index: 8;
}

.vp-slot {
    position: relative;
    min-height: 170px;
    padding: 14px 16px 12px;
    border-radius: 8px;
    border: 1px solid rgba(219, 176, 91, .52);
    background: radial-gradient(circle at 50% 15%, rgba(49, 116, 210, .22), transparent 42%),
    linear-gradient(180deg, rgba(5, 17, 44, .94), rgba(3, 8, 22, .98));
    box-shadow: 0 16px 28px rgba(0,0,0,.34), inset 0 0 0 2px rgba(255,255,255,.035);
    overflow: visible;
}

.vp-slot.is-selected {
    background: radial-gradient(circle at 50% 34%, rgba(66, 255, 118, .38), transparent 50%),
    linear-gradient(180deg, rgba(18, 97, 48, .96), rgba(8, 32, 21, .98));
    box-shadow: 0 0 0 2px rgba(255, 224, 127, .7), 0 0 34px rgba(78,255,122,.36), 0 20px 32px rgba(0,0,0,.38);
}

.vp-slot::after {
    content: "!";
    position: absolute;
    left: 50%;
    bottom: -17px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd970, #b4842f);
    color: #111827;
    font-weight: 900;
    box-shadow: 0 0 0 3px rgba(7,10,19,.92);
}

.vp-slot h3 {
    margin: 0 0 4px;
    text-align: center;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: .08em;
}

.vp-slot em {
    display: block;
    margin: 0 auto 10px;
    width: max-content;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,.32);
    color: #a8ffc5;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-style: normal;
}

.vp-slot-icon {
    position: relative;
    height: 78px;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.14), transparent 38%),
    linear-gradient(180deg, rgba(14, 34, 79, .88), rgba(6, 14, 36, .92));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.04);
}

.vp-slot-icon::before,
.vp-slot-icon::after {
    content: "";
    position: absolute;
}

.vp-slot p {
    margin: 10px 0 0;
    text-align: center;
    color: rgba(244,244,244,.82);
    line-height: 1.35;
    font-size: .9rem;
}

.is-projects .vp-slot-icon::before {
    left: 52px;
    top: 24px;
    width: 86px;
    height: 38px;
    border-radius: 8px;
    background: #7ec5ff;
}

.is-projects .vp-slot-icon::after {
    left: 58px;
    top: 14px;
    width: 36px;
    height: 18px;
    border-radius: 8px 8px 0 0;
    background: #a8d9ff;
}

.is-records .vp-slot-icon::before {
    left: 68px;
    top: 14px;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #69ff9c;
    box-shadow: 0 0 20px rgba(105,255,156,.32);
}

.is-records .vp-slot-icon::after {
    left: 138px;
    top: 26px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffd970;
}

.is-assets .vp-slot-icon::before {
    left: 52px;
    top: 24px;
    width: 98px;
    height: 34px;
    border-radius: 999px;
    background: #ff9362;
}

.is-assets .vp-slot-icon::after {
    right: 48px;
    top: 18px;
    width: 24px;
    height: 46px;
    border-radius: 8px;
    background: #ffe384;
}

.is-domains .vp-slot-icon::before {
    left: 62px;
    top: 8px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.is-domains .vp-slot-icon::after {
    left: 62px;
    top: 42px;
    width: 70px;
    height: 4px;
    background: #8bd8ff;
    box-shadow: 0 -18px 0 rgba(139,216,255,.42), 0 18px 0 rgba(139,216,255,.42);
}

.is-clients .vp-slot-icon::before {
    left: 76px;
    top: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffe3bd;
}

.is-clients .vp-slot-icon::after {
    left: 58px;
    bottom: 8px;
    width: 80px;
    height: 32px;
    border-radius: 999px 999px 8px 8px;
    background: #79ff90;
}

.is-documents .vp-slot-icon::before {
    left: 66px;
    top: 10px;
    width: 62px;
    height: 64px;
    border-radius: 8px;
    background: #eff3ff;
}

.is-documents .vp-slot-icon::after {
    left: 78px;
    top: 24px;
    width: 36px;
    height: 4px;
    background: #4567cc;
    box-shadow: 0 12px 0 #4567cc, 0 24px 0 #4567cc;
}

.vp-core-stage {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    overflow: visible;
}

.vp-data-orbit {
    position: absolute;
    left: 50%;
    top: 34%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(161, 211, 255, .28);
    pointer-events: none;
}

.orbit-one {
    width: 390px;
    height: 390px;
    box-shadow: 0 0 0 16px rgba(79,135,255,.035);
}

.orbit-two {
    width: 520px;
    height: 520px;
    border-style: dashed;
    animation: vpSpin 36s linear infinite;
}

.vp-data-beam {
    position: absolute;
    top: 32%;
    width: 34%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(117, 222, 255, .8), rgba(247, 211, 132, .82));
    box-shadow: 0 0 22px rgba(117,222,255,.22);
}

.beam-left {
    left: -2%;
    transform: rotate(7deg);
}

.beam-right {
    right: -2%;
    transform: rotate(-7deg) scaleX(-1);
}

.vp-system-figure {
    position: absolute;
    left: 50%;
    top: 4%;
    width: 330px;
    height: 400px;
    transform: translateX(-50%);
}

.vp-figure-head {
    position: absolute;
    left: 50%;
    top: 0;
    width: 88px;
    height: 88px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #f0c79d, #b98262);
    box-shadow: 0 0 0 5px rgba(38, 55, 100, .55), 0 16px 24px rgba(0,0,0,.26);
}

.vp-figure-body {
    position: absolute;
    left: 50%;
    top: 72px;
    width: 176px;
    height: 250px;
    transform: translateX(-50%);
    border-radius: 50px 50px 26px 26px;
    background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,.06) 49% 51%, transparent 52%),
    linear-gradient(180deg, #3d5d9a, #111f47 76%, #0a1028);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.06), 0 22px 32px rgba(0,0,0,.34);
}

.vp-figure-body::before,
.vp-figure-body::after {
    content: "";
    position: absolute;
    top: 50px;
    width: 48px;
    height: 162px;
    border-radius: 999px;
    background: linear-gradient(180deg, #31497b, #121c41);
}

.vp-figure-body::before {
    left: -40px;
    transform: rotate(8deg);
}

.vp-figure-body::after {
    right: -40px;
    transform: rotate(-8deg);
}

.vp-figure-core {
    position: absolute;
    left: 50%;
    top: 150px;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #7dff90, #20b34f 52%, #092716 72%);
    box-shadow: 0 0 36px rgba(125,255,144,.5), 0 0 0 13px rgba(125,255,144,.08);
}

.vp-node {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(247, 211, 132, .55);
    background: rgba(6, 12, 25, .84);
    color: #f7d384;
    font-weight: 800;
    box-shadow: 0 0 18px rgba(111,202,255,.22);
}

.node-a {
    left: 10px;
    top: 130px;
}

.node-b {
    right: 8px;
    top: 170px;
}

.node-c {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
}

.vp-instruction {
    align-self: end;
    justify-self: center;
    width: min(720px, 92%);
    margin-bottom: 250px;
    padding: 16px 24px;
    text-align: center;
    font-size: 1.08rem;
    background: linear-gradient(180deg, rgba(17,22,34,.9), rgba(10,13,24,.84));
    border-top: 1px solid rgba(226, 177, 91, .5);
    border-bottom: 1px solid rgba(226, 177, 91, .5);
    box-shadow: 0 14px 28px rgba(0,0,0,.3);
}

.vp-instruction span {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1bb34d;
    color: white;
    font-weight: 900;
}

.vp-selected-panel {
    position: absolute;
    left: 50%;
    right: auto;
    width: min(820px, 96%);
    transform: translateX(-50%);
    border-radius: 10px;
    border: 1px solid rgba(219,176,91,.58);
    background: linear-gradient(180deg, rgba(13, 39, 70, .96), rgba(10, 20, 42, .98));
    box-shadow: 0 24px 38px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.035);
    overflow: hidden;
}

.vp-panel-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    color: #f3d186;
    border-bottom: 1px solid rgba(219,176,91,.42);
    background: rgba(4, 12, 28, .28);
}

.vp-panel-titlebar small {
    color: rgba(255,255,255,.68);
    letter-spacing: .16em;
    text-transform: uppercase;
}

.vp-panel-titlebar strong {
    letter-spacing: .06em;
    text-transform: uppercase;
}

.vp-panel-main {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
    padding: 16px 20px 12px;
}

.vp-panel-summary h2 {
    margin: 0;
    font-size: 2.2rem;
    color: #f0cf85;
    letter-spacing: .06em;
}

.vp-panel-summary p {
    margin: 8px 0 16px;
    color: #b8ffcf;
    line-height: 1.45;
}

.vp-mini-meters {
    display: grid;
}

.vp-mini-meters span {
    display: grid;
    grid-template-columns: 1fr 104px;
    gap: 10px;
    align-items: center;
}

.vp-mini-meters i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    overflow: hidden;
}

.vp-mini-meters i::after {
    content: "";
    display: block;
    width: var(--vp);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #82d7ff, #75ff94);
    box-shadow: 0 0 16px rgba(117,255,148,.34);
}

.vp-mini-meters b {
    color: rgba(239,236,226,.82);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vp-copy-scroll {
    overflow: auto;
    padding-right: 10px;
}

.vp-copy-scroll::-webkit-scrollbar {
    width: 8px;
}

.vp-copy-scroll::-webkit-scrollbar-thumb {
    background: rgba(219,176,91,.38);
    border-radius: 999px;
}

.vp-copy-scroll p {
    margin: 0 0 .95rem;
    color: rgba(244, 242, 234, .94);
    line-height: 1.55;
    font-size: .98rem;
}

.vp-panel-actions {
    border-top: 1px solid rgba(219,176,91,.28);
    color: rgba(244, 242, 234, .86);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}

.vp-panel-actions b {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 50%;
    background: #1a8a41;
    color: white;
}

.vp-bottom-hints {
    position: absolute;
    display: flex;
    border-top: 1px solid rgba(219,176,91,.38);
    padding-top: 14px;
    color: rgba(244, 242, 234, .86);
    text-transform: uppercase;
    letter-spacing: .07em;
}

@keyframes vpSpin {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
  }

    to {
      transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 1180px) {
    .vp-loadout-grid {
      left: 30px;
      right: 30px;
      grid-template-columns: 190px minmax(0,1fr) 190px;
  }

    .vp-slot {
      min-height: 152px;
  }

    .vp-stats {
      gap: 18px;
      margin-right: 0;
  }
}

@media (max-width: 980px) {
    .vistaport-fullscreen-loadout {
      overflow: auto;
  }

    .vp-loadout-grid {
      position: relative;
      inset: auto;
      grid-template-columns: 1fr;
      margin-top: 20px;
  }

    .vp-module-column {
      flex-direction: row;
      flex-wrap: wrap;
  }

    .vp-slot {
      flex: 1 1 180px;
  }

    .vp-selected-panel {
      position: relative;
      left: auto;
      transform: none;
      width: 100%;
      margin-top: 20px;
  }

    .vp-instruction {
      margin-bottom: 20px;
  }

    .vp-hud-row, .vp-stats, .vp-panel-main, .vp-bottom-hints {
      flex-direction: column;
      display: flex;
  }
}

.card-illustration.is-wwcore::before {
    background: radial-gradient(circle at 50% 46%, rgba(244, 226, 132, 0.24), transparent 40%),
    linear-gradient(145deg, rgba(52, 112, 88, 0.56), rgba(16, 43, 38, 0.22));
}

.card-illustration.is-wwcore::after {
    content: "";
    background: linear-gradient(180deg, rgba(237, 212, 140, 0.96), rgba(194, 150, 64, 0.96));
    clip-path: polygon(50% 0%, 93% 18%, 82% 100%, 18% 100%, 7% 18%);
    border-radius: 14px 14px 18px 18px;
    box-shadow: 0 0 0 2px rgba(255, 244, 210, 0.12), 0 16px 28px rgba(0,0,0,0.34);
}

.unicore-letter-scene.is-sorting-scene {
    background: radial-gradient(circle at 28% 35%, rgba(94, 128, 176, 0.12), transparent 26%),
    radial-gradient(circle at 74% 28%, rgba(255, 208, 120, 0.10), transparent 24%),
    linear-gradient(90deg, rgba(0,0,0,0.58), rgba(4,10,18,0.28) 40%, rgba(0,0,0,0.52));
}

.unicore-letter-scene.is-sorting-scene .unicore-correspondence-header,
.unicore-letter-scene.is-sorting-scene .unicore-envelope-stack {
    display: none;
}

.unicore-letter-scene.is-sorting-scene .unicore-parchment {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto;
    min-height: 0;
    height: auto;
    padding: clamp(34px, 4vw, 58px) clamp(32px, 4vw, 60px) 24px;
    border: 0;
    border-radius: 0;
    background: radial-gradient(circle at 50% 22%, rgba(169, 214, 242, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(6, 11, 18, 0.98), rgba(8, 14, 22, 0.98));
    box-shadow: inset 0 0 120px rgba(0,0,0,0.74);
    transform: none;
    clip-path: none;
    overflow: hidden;
}

.unicore-letter-scene.is-sorting-scene .unicore-parchment::before,
.unicore-letter-scene.is-sorting-scene .unicore-parchment::after,
.unicore-letter-scene.is-sorting-scene .unicore-parchment-mark {
    display: none;
}

.unicore-letter-scene.is-sorting-scene #unicoreLetterBody {
    height: 100%;
}

.wwcore-sorting-interface {
    position: relative;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 18px;
    color: #f4ead1;
    overflow: hidden;
}

.wwcore-sorting-interface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.24), transparent 24%, transparent 76%, rgba(0,0,0,0.3)),
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.04), transparent 24%);
    pointer-events: none;
}

.wwcore-ceremony-head {
    position: relative;
    z-index: 2;
    text-align: center;
}

.wwcore-ceremony-title {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: clamp(1.6rem, 2.2vw, 2.25rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f1ce85;
}

.wwcore-ceremony-title::before,
.wwcore-ceremony-title::after {
    content: "";
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(213, 173, 96, 0.9), transparent);
}

.wwcore-ceremony-intro {
    max-width: 840px;
    margin: 10px auto 0;
    color: rgba(242, 239, 230, 0.96);
    font-size: 1.08rem;
    line-height: 1.45;
}

.wwcore-ceremony-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(380px, 1.1fr);
    gap: 26px;
    align-items: center;
    min-height: 0;
}

.wwcore-stage-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wwcore-house-grid {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 32px;
}

.wwcore-house-card {
    position: relative;
    padding: 12px 12px 14px;
    background: transparent;
    border: 0;
    color: #f2e0b8;
    cursor: pointer;
    text-align: center;
    transition: transform .24s ease, filter .24s ease;
}

.wwcore-house-card:hover {
    transform: translateY(-2px);
}

.wwcore-house-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.wwcore-house-emblem {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 168px;
    height: 188px;
    clip-path: polygon(50% 0%, 90% 16%, 82% 100%, 18% 100%, 10% 16%);
    border-radius: 18px 18px 22px 22px;
    box-shadow: 0 14px 26px rgba(0,0,0,0.28), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.wwcore-house-emblem::before {
    content: "";
    position: absolute;
    inset: 10px;
    clip-path: inherit;
    border-radius: inherit;
    border: 2px solid rgba(247, 221, 160, 0.72);
    pointer-events: none;
}

.wwcore-house-emblem i,
.wwcore-house-emblem i::before,
.wwcore-house-emblem i::after {
    content: "";
    position: absolute;
}

.wwcore-house-card.is-communities .wwcore-house-emblem {
    background: linear-gradient(180deg, #9c503a, #6f281d);
}

.wwcore-house-card.is-causes .wwcore-house-emblem {
    background: linear-gradient(180deg, #2f2b36, #121622);
}

.wwcore-house-card.is-creative .wwcore-house-emblem {
    background: linear-gradient(180deg, #3c6b95, #1d314f);
}

.wwcore-house-card.is-openideas .wwcore-house-emblem {
    background: linear-gradient(180deg, #317665, #17483f);
}

.wwcore-house-card.is-communities i {
    width: 78px;
    height: 64px;
    border-radius: 40px 40px 26px 26px;
    background: linear-gradient(180deg, #f5d59d, #d8a95f);
    top: 54px;
}

.wwcore-house-card.is-communities i::before {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5d59d;
    left: -18px;
    top: 12px;
    box-shadow: 86px 0 0 #f5d59d;
}

.wwcore-house-card.is-communities i::after {
    width: 14px;
    height: 54px;
    background: #f5d59d;
    left: 50%;
    top: 44px;
    transform: translateX(-50%);
    box-shadow: -30px -4px 0 0 #f5d59d, 30px -4px 0 0 #f5d59d;
}

.wwcore-house-card.is-causes i {
    width: 76px;
    height: 96px;
    background: linear-gradient(180deg, #efd9ab, #d7b269);
    clip-path: polygon(50% 0%, 90% 20%, 78% 100%, 22% 100%, 10% 20%);
    top: 40px;
}

.wwcore-house-card.is-causes i::before {
    width: 18px;
    height: 54px;
    background: #7c5a2a;
    left: 29px;
    top: 18px;
}

.wwcore-house-card.is-causes i::after {
    width: 52px;
    height: 18px;
    background: #7c5a2a;
    left: 12px;
    top: 36px;
}

.wwcore-house-card.is-creative i {
    width: 88px;
    height: 26px;
    background: #f0dcb2;
    border-radius: 22px;
    top: 88px;
    transform: rotate(-28deg);
}

.wwcore-house-card.is-creative i::before {
    width: 22px;
    height: 108px;
    background: #f0dcb2;
    left: 36px;
    top: -40px;
    border-radius: 16px;
    transform: rotate(28deg);
}

.wwcore-house-card.is-creative i::after {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff1cb;
    left: 62px;
    top: 6px;
    box-shadow: 0 0 18px rgba(255, 241, 203, 0.7);
}

.wwcore-house-card.is-openideas i {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 8px solid #f0dcad;
    top: 42px;
}

.wwcore-house-card.is-openideas i::before {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 6px solid #f0dcad;
    left: 7px;
    top: 7px;
}

.wwcore-house-card.is-openideas i::after {
    width: 12px;
    height: 70px;
    background: #f0dcad;
    left: 37px;
    top: 78px;
}

.wwcore-house-card.is-selected .wwcore-house-emblem {
    filter: drop-shadow(0 0 24px rgba(123, 205, 255, 0.5));
    transform: scale(1.02);
}

.wwcore-house-card.is-selected::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 116px;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(138, 226, 255, 0.66);
    box-shadow: 0 0 0 8px rgba(138, 226, 255, 0.08), 0 0 28px rgba(138, 226, 255, 0.34);
}

.wwcore-stage-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.wwcore-hat-aura {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(160, 221, 255, 0.12), rgba(160, 221, 255, 0.02) 42%, transparent 68%);
    filter: blur(4px);
}

.wwcore-hat-wrap {
    position: relative;
    width: 410px;
    height: 470px;
    filter: drop-shadow(0 22px 30px rgba(0,0,0,0.45));
}

.wwcore-hat-tip {
    position: absolute;
    left: 148px;
    top: 10px;
    width: 130px;
    height: 180px;
    background: linear-gradient(180deg, #8d5d42, #553a2d);
    clip-path: polygon(58% 0%, 100% 18%, 88% 60%, 78% 100%, 22% 100%, 0% 44%, 20% 14%);
    border-radius: 40px 30px 16px 16px;
    transform: rotate(12deg);
}

.wwcore-hat-crown {
    position: absolute;
    left: 92px;
    top: 128px;
    width: 230px;
    height: 220px;
    background: linear-gradient(180deg, #8b5d46, #4d352a 70%);
    border-radius: 44% 44% 38% 42% / 34% 34% 52% 52%;
    transform: rotate(5deg);
}

.wwcore-hat-fold {
    position: absolute;
    background: rgba(72, 46, 36, 0.7);
    border-radius: 50%;
}

.fold-a {
    left: 110px;
    top: 190px;
    width: 180px;
    height: 76px;
    transform: rotate(-10deg);
}

.fold-b {
    left: 124px;
    top: 258px;
    width: 156px;
    height: 48px;
    transform: rotate(2deg);
}

.wwcore-hat-eye {
    position: absolute;
    width: 20px;
    height: 10px;
    border-radius: 0 0 14px 14px;
    border-bottom: 3px solid #2d1b16;
    top: 244px;
}

.eye-a {
    left: 156px;
    transform: rotate(10deg);
}

.eye-b {
    left: 226px;
    transform: rotate(-8deg);
}

.wwcore-hat-mouth {
    position: absolute;
    left: 145px;
    top: 288px;
    width: 132px;
    height: 34px;
    border-bottom: 6px solid #1c120f;
    border-radius: 0 0 60px 60px;
    transform: rotate(-3deg);
}

.wwcore-hat-brim {
    position: absolute;
    left: 18px;
    bottom: 18px;
    width: 374px;
    height: 122px;
    background: linear-gradient(180deg, #89604c, #4d352b 68%);
    border-radius: 50% 50% 56% 56% / 38% 38% 62% 62%;
    transform: rotate(-9deg);
}

.wwcore-ceremony-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.wwcore-selection-panel {
    padding-top: 4px;
}

.wwcore-selection-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.55rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f3cd82;
}

.wwcore-selection-title::before,
.wwcore-selection-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(215, 175, 98, 0.86), transparent);
}

.wwcore-selection-copy {
    margin: 12px 0 0;
    color: rgba(243, 238, 225, 0.96);
    line-height: 1.6;
    font-size: 1.08rem;
}

.wwcore-mission-note {
    padding: 16px 18px 10px;
    border-radius: 18px;
    border: 1px solid rgba(197, 165, 98, 0.36);
    background: linear-gradient(180deg, rgba(9,16,26,0.76), rgba(8,13,22,0.88));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 16px 24px rgba(0,0,0,0.22);
}

.wwcore-mission-kicker {
    margin-bottom: 12px;
    color: rgba(150, 214, 255, 0.86);
    font-size: 0.84rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.wwcore-mission-scroll {
    max-height: 210px;
    overflow: auto;
    padding-right: 10px;
}

.wwcore-mission-scroll::-webkit-scrollbar {
    width: 8px;
}

.wwcore-mission-scroll::-webkit-scrollbar-thumb {
    background: rgba(214, 183, 116, 0.32);
    border-radius: 999px;
}

.wwcore-mission-scroll p {
    margin: 0 0 1rem;
    color: rgba(243, 239, 230, 0.96);
    line-height: 1.7;
    font-size: 1.03rem;
}

.wwcore-mission-scroll p.is-lead {
    color: #f6e2b4;
}

.wwcore-ceremony-controls {
    position: relative;
    z-index: 2;
    display: flex;
    color: rgba(244, 235, 212, 0.84);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wwcore-ceremony-controls b {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(10, 18, 24, 0.82);
    border: 1px solid rgba(200, 174, 132, 0.35);
    color: #f7e7c3;
}

@media (max-width: 1180px) {
    .wwcore-ceremony-stage {
      grid-template-columns: 1fr;
  }

    .wwcore-ceremony-footer {
      grid-template-columns: 1fr;
  }

    .wwcore-stage-right {
      min-height: 320px;
  }

    .wwcore-hat-wrap {
      transform: scale(0.9);
  }
}

@media (max-width: 760px) {
    .wwcore-house-grid {
      grid-template-columns: 1fr 1fr;
      gap: 18px;
  }

    .wwcore-house-emblem {
      width: 132px;
      height: 148px;
  }

    .wwcore-house-card strong {
      font-size: 0.94rem;
  }

    .wwcore-ceremony-title::before,
  .wwcore-ceremony-title::after {
      width: 48px;
  }

    .wwcore-hat-wrap {
      transform: scale(0.74);
  }

    .wwcore-ceremony-controls {
      flex-wrap: wrap;
      justify-content: center;
  }
}

.card-illustration.is-codicom::before {
    background: radial-gradient(circle at 50% 70%, rgba(64, 255, 219, 0.22), transparent 42%),
    linear-gradient(145deg, rgba(97, 59, 144, 0.56), rgba(8, 83, 93, 0.24));
}

.card-illustration.is-codicom::after {
    content: "";
    width: 74px;
    height: 92px;
    border-radius: 18px 18px 26px 26px;
    clip-path: polygon(30% 0, 70% 0, 82% 18%, 82% 58%, 66% 100%, 34% 100%, 18% 58%, 18% 18%);
    background: radial-gradient(circle at 50% 74%, rgba(150, 255, 232, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(244, 239, 255, 0.75), rgba(154, 217, 214, 0.18));
    box-shadow: 0 0 0 2px rgba(255, 214, 140, 0.4), inset 0 0 0 2px rgba(255,255,255,0.12), 0 18px 28px rgba(0,0,0,0.35);
}

.unicore-letter-scene.is-potion-scene #unicoreLetterBody {
    padding: 0;
}

.codicom-potion-v3 {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    color: #f5ead1;
}

.codicom-v3-titleplate {
    align-self: flex-end;
    display: inline-grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    min-width: 340px;
    padding: 10px 18px;
    border: 1px solid rgba(187, 152, 101, 0.58);
    border-radius: 10px 26px 10px 26px;
    background: linear-gradient(180deg, rgba(62, 81, 84, 0.95), rgba(32, 45, 55, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 16px rgba(0,0,0,0.16);
    color: #ecd9b1;
    letter-spacing: .06em;
}

.codicom-v3-titleplate span {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 32px;
    border-right: 1px solid rgba(187, 152, 101, 0.36);
    font-size: 1rem;
}

.codicom-v3-titleplate strong {
    font-size: 1.42rem;
    font-weight: 500;
}

.codicom-v3-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 26px;
    min-height: 620px;
}

.codicom-v3-lab {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(6, 14, 22, 0.88), rgba(9, 14, 22, 0.2) 30%, rgba(17, 16, 13, 0) 100%),
    radial-gradient(circle at 62% 22%, rgba(177, 214, 238, 0.18), transparent 12%),
    radial-gradient(circle at 60% 32%, rgba(128, 181, 217, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(17, 26, 35, 0.98), rgba(13, 17, 24, 0.98));
}

.codicom-v3-room-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 68% 18%, rgba(220, 236, 255, 0.24), transparent 10%), radial-gradient(circle at 42% 72%, rgba(255, 163, 77, 0.10), transparent 18%);
    pointer-events: none;
}

.codicom-v3-wall-sigil {
    position: absolute;
    left: 26px;
    top: 132px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    opacity: .18;
    background: radial-gradient(circle, transparent 40%, rgba(110, 157, 186, 0.22) 41% 43%, transparent 44%),
    radial-gradient(circle, transparent 62%, rgba(110, 157, 186, 0.16) 63% 65%, transparent 66%);
    box-shadow: inset 0 0 0 2px rgba(91, 132, 159, 0.16);
}

.codicom-v3-pipe {
    position: absolute;
    background: linear-gradient(180deg, #6f4734, #3f281d);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 16px rgba(0,0,0,.16);
}

.codicom-v3-pipe.pipe-main {
    left: 348px;
    top: 0;
    width: 28px;
    height: 280px;
    border-radius: 0 0 18px 18px;
}

.codicom-v3-pipe.pipe-branch {
    left: 306px;
    top: 64px;
    width: 110px;
    height: 22px;
    border-radius: 16px;
}

.codicom-v3-window {
    position: absolute;
    right: 92px;
    top: 78px;
    width: 116px;
    height: 192px;
    border-radius: 60px 60px 16px 16px;
    background: linear-gradient(180deg, rgba(232, 241, 247, 0.88), rgba(201, 226, 239, 0.56)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(78, 82, 92, 0.22) 18px 20px);
    box-shadow: 0 0 42px rgba(229, 246, 255, 0.2);
    opacity: .92;
}

.codicom-v3-shelf {
    position: absolute;
    width: 196px;
    height: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #767c7f, #4d5054);
    box-shadow: 0 10px 14px rgba(0,0,0,.16);
}

.codicom-v3-shelf.shelf-top {
    left: 286px;
    top: 110px;
}

.codicom-v3-shelf.shelf-mid {
    left: 302px;
    top: 206px;
    width: 214px;
}

.vial {
    position: absolute;
    bottom: 12px;
    width: 28px;
    height: 72px;
    border-radius: 14px 14px 8px 8px;
    background: linear-gradient(180deg, rgba(230,235,242,.78), rgba(110,132,150,.34));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 6px 10px rgba(0,0,0,.2);
}

.vial::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 8px;
    height: 38%;
    border-radius: 10px 10px 6px 6px;
    background: rgba(128, 230, 194, 0.7);
}

.vial.tall {
    height: 92px;
}

.vial.wide {
    width: 34px;
}

.vial.gold::after {
    background: rgba(255, 208, 108, 0.7);
}

.vial.blue::after {
    background: rgba(116, 190, 255, 0.72);
}

.vial.green::after {
    background: rgba(132, 255, 176, 0.7);
}

.vial.purple::after {
    background: rgba(199, 139, 255, 0.7);
}

.vial.smoke::after {
    background: rgba(188, 206, 226, 0.42);
}

.vial.clear::after {
    background: rgba(202, 246, 255, 0.38);
}

.shelf-top .vial:nth-child(1) {
    left: 8px;
}

.shelf-top .vial:nth-child(2) {
    left: 70px;
}

.shelf-top .vial:nth-child(3) {
    left: 128px;
}

.shelf-mid .vial:nth-child(1) {
    left: 10px;
}

.shelf-mid .vial:nth-child(2) {
    left: 86px;
}

.shelf-mid .vial:nth-child(3) {
    left: 154px;
}

.codicom-v3-table {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 64px;
    height: 120px;
    background: linear-gradient(180deg, rgba(182, 173, 161, 0.22), rgba(233, 225, 212, 0.06));
    border-top: 2px solid rgba(221, 211, 191, 0.36);
}

.codicom-v3-stand {
    position: absolute;
    left: 32px;
    bottom: 140px;
    width: 92px;
    height: 148px;
    border-left: 4px solid rgba(217, 221, 231, 0.72);
    border-right: 4px solid rgba(217, 221, 231, 0.72);
    transform: skewX(-14deg);
    opacity: .82;
}

.codicom-v3-stand::before,
.codicom-v3-stand::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    background: rgba(217, 221, 231, 0.76);
    transform: translateX(-50%);
}

.codicom-v3-stand::before {
    top: 12px;
    bottom: 42px;
}

.codicom-v3-stand::after {
    bottom: 12px;
    height: 50px;
    transform: translateX(-50%) rotate(90deg);
}

.codicom-v3-scroll-fragment {
    position: absolute;
    left: 152px;
    bottom: 108px;
    width: 42px;
    height: 24px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(226, 218, 195, 0.9), rgba(180, 164, 134, 0.76));
}

.codicom-v3-cauldron {
    position: absolute;
    left: 280px;
    bottom: 108px;
    width: 214px;
    height: 190px;
}

.cauldron-halo {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 22px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 187, 104, 0.34), rgba(255, 187, 104, 0.02) 68%);
}

.cauldron-body {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 26px;
    height: 120px;
    border-radius: 26px 26px 44px 44px;
    background: linear-gradient(180deg, rgba(167, 174, 181, 0.9), rgba(101, 108, 116, 0.95));
    box-shadow: inset 0 0 0 3px rgba(255,255,255,0.08), inset 0 -14px 26px rgba(0,0,0,0.18), 0 24px 28px rgba(0,0,0,0.28);
}

.cauldron-lip {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 130px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(221, 229, 236, 0.92), rgba(142, 152, 162, 0.95));
    box-shadow: inset 0 -4px 8px rgba(0,0,0,.18);
}

.brew-surface {
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 128px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 40%, rgba(250,250,250,.8), rgba(174, 204, 205, 0.44) 54%, rgba(60,88,88,0.46));
}

.steam {
    position: absolute;
    bottom: 132px;
    width: 26px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 78%, rgba(120, 72, 40, 0.36), rgba(120, 72, 40, 0.18) 32%, transparent 68%);
    filter: blur(8px);
    opacity: .75;
    animation: codiSteam 5.8s ease-in-out infinite;
}

.steam.s1 {
    left: 64px;
}

.steam.s2 {
    left: 96px;
    animation-delay: -1.6s;
}

.steam.s3 {
    left: 126px;
    animation-delay: -.8s;
}

.steam.s4 {
    left: 152px;
    animation-delay: -2.5s;
}

.bubble {
    position: absolute;
    bottom: 138px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(233, 243, 247, 0.85);
    box-shadow: 0 0 10px rgba(233,243,247,.24);
    animation: codiBubble 4.4s ease-in-out infinite;
}

.b1 {
    left: 88px;
}

.b2 {
    left: 116px;
    animation-delay: -1.4s;
}

.b3 {
    left: 142px;
    animation-delay: -2.3s;
}

.codicom-v3-book {
    position: absolute;
    right: 102px;
    bottom: 128px;
    width: 116px;
    height: 78px;
    transform: rotate(8deg);
}

.codicom-v3-book::before,
.codicom-v3-book::after {
    content: "";
    position: absolute;
    top: 0;
    width: 52%;
    height: 100%;
    background: linear-gradient(180deg, rgba(212, 200, 176, 0.96), rgba(158, 143, 115, 0.76));
    box-shadow: inset 0 0 0 1px rgba(84, 69, 46, 0.28);
}

.codicom-v3-book::before {
    left: 0;
    border-radius: 8px 0 0 10px;
}

.codicom-v3-book::after {
    right: 0;
    border-radius: 0 8px 10px 0;
}

.codicom-v3-spoon {
    position: absolute;
    right: 184px;
    bottom: 88px;
    width: 120px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(166, 170, 175, 0.9), rgba(106, 112, 118, 0.95));
    transform: rotate(-18deg);
}

.codicom-v3-spoon::after {
    content: "";
    position: absolute;
    right: -14px;
    top: -8px;
    width: 32px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(166, 170, 175, 0.9), rgba(106, 112, 118, 0.95));
}

.codicom-v3-quest {
    position: absolute;
    left: 18px;
    bottom: 70px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 12, 16, 0.8);
    color: #f4ead1;
    box-shadow: 0 12px 18px rgba(0,0,0,0.24);
}

.codicom-v3-quest i {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f2d46c, #bc8f2c);
    color: #0f141b;
    font-style: normal;
    font-weight: 700;
}

.codicom-v3-reticle {
    position: absolute;
    left: 49%;
    bottom: 154px;
    width: 74px;
    height: 74px;
    margin-left: -37px;
    border-radius: 50%;
    border: 2px solid rgba(238, 241, 246, 0.74);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

.codicom-v3-reticle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid rgba(238, 241, 246, 0.82);
}

.codicom-v3-bottom-plate {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    min-width: 280px;
    text-align: center;
    padding: 16px 18px;
    border-top: 2px solid rgba(170, 150, 120, 0.66);
    color: #f0e2c0;
    font-size: 1.12rem;
    letter-spacing: .08em;
}

.codicom-v3-bottom-plate::before,
.codicom-v3-bottom-plate::after {
    content: "";
    position: absolute;
    top: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(170, 150, 120, 0.66);
}

.codicom-v3-bottom-plate::before {
    left: -2px;
}

.codicom-v3-bottom-plate::after {
    right: -2px;
}

.codicom-v3-panel {
    position: relative;
    min-height: 620px;
    padding: 72px 26px 22px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10, 43, 59, 0.84), rgba(8, 24, 37, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.codicom-v3-panel-fade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at -10% 50%, rgba(0,0,0,.28), transparent 28%), radial-gradient(circle at 120% 10%, rgba(158, 220, 255, 0.14), transparent 28%);
    pointer-events: none;
}

.codicom-v3-panel-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    align-items: center;
}

.codicom-v3-sigil {
    display: flex;
    justify-content: center;
}

.sigil-diamond {
    position: relative;
    width: 96px;
    height: 96px;
    transform: rotate(45deg);
    border-radius: 16px;
    background: linear-gradient(180deg, #6f0e85, #2b0d4e);
    box-shadow: 0 0 0 2px rgba(228, 160, 255, 0.6), inset 0 0 0 2px rgba(255,255,255,0.08), 0 14px 22px rgba(0,0,0,.24);
}

.sigil-vial {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 34px;
    height: 54px;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 12px 12px 8px 8px;
    background: linear-gradient(180deg, rgba(244,246,250,.92), rgba(120,141,159,.44));
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}

.sigil-vial::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    height: 18px;
    border-radius: 8px 8px 6px 6px;
    background: rgba(255, 205, 92, 0.8);
}

.codicom-v3-intro h2 {
    margin: 0;
    color: #f0cf88;
    font-size: 2rem;
    letter-spacing: .04em;
}

.codicom-v3-intro p {
    margin: 10px 0 0;
    color: rgba(247, 240, 228, 0.96);
    line-height: 1.6;
    font-size: 1.08rem;
}

.codicom-v3-lines {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
    padding: 16px 0;
    border-top: 1px solid rgba(194, 158, 105, 0.5);
    border-bottom: 1px solid rgba(194, 158, 105, 0.5);
}

.codicom-v3-lines span,
.codicom-v3-metrics span {
    display: grid;
    gap: 8px;
}

.codicom-v3-lines b,
.codicom-v3-metrics b {
    color: rgba(244, 233, 208, 0.78);
    font-size: .84rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.codicom-v3-lines strong,
.codicom-v3-metrics strong {
    color: #fff7ec;
    font-size: 1rem;
}

.codicom-v3-metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
}

.codicom-v3-note {
    position: relative;
    z-index: 1;
    max-height: 276px;
    overflow: auto;
    margin-top: 18px;
    padding-right: 10px;
}

.codicom-v3-note::-webkit-scrollbar {
    width: 8px;
}

.codicom-v3-note::-webkit-scrollbar-thumb {
    background: rgba(216, 182, 108, 0.34);
    border-radius: 999px;
}

.codicom-v3-note p {
    margin: 0 0 1rem;
    color: rgba(247, 240, 228, 0.96);
    line-height: 1.68;
}

.codicom-v3-note p.is-lead {
    color: #f6e2b6;
}

.codicom-v3-tags {
    position: relative;
    z-index: 1;
    margin-top: 18px;
}

.codicom-v3-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(11, 21, 31, 0.58);
    border: 1px solid rgba(202, 168, 98, 0.26);
    color: #dff5f4;
    letter-spacing: .12em;
    font-size: .76rem;
}

.codicom-v3-controls {
    display: flex;
    gap: 20px;
    color: rgba(244, 235, 212, 0.84);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.codicom-v3-controls b {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(10, 18, 24, 0.82);
    border: 1px solid rgba(200, 174, 132, 0.35);
    color: #f7e7c3;
}

@keyframes codiSteam {
    0%,100% {
      transform: translateY(0) scaleX(1);
      opacity: .38;
  }

    50% {
      transform: translateY(-18px) scaleX(1.12);
      opacity: .8;
  }
}

@keyframes codiBubble {
    0%,100% {
      transform: translateY(0) scale(1);
      opacity: .2;
  }

    35% {
      opacity: .9;
  }

    70% {
      transform: translateY(-28px) scale(1.28);
      opacity: .5;
  }
}

@media (max-width: 1120px) {
    .codicom-v3-stage {
      grid-template-columns: 1fr;
  }

    .codicom-v3-panel, .codicom-v3-lab {
      min-height: 520px;
  }
}

@media (max-width: 780px) {
    .codicom-v3-panel-top {
      grid-template-columns: 1fr;
  }

    .codicom-v3-lines, .codicom-v3-metrics {
      grid-template-columns: 1fr;
  }

    .codicom-v3-titleplate {
      min-width: 0;
      width: 100%;
  }
}

.unicore-letter-scene.is-map-scene #unicoreLetterBody,
.unicore-letter-scene.is-gear-scene #unicoreLetterBody,
.unicore-letter-scene.is-sorting-scene #unicoreLetterBody,
.unicore-letter-scene.is-potion-scene #unicoreLetterBody {
    min-height: 0;
}

.webcore-map-interface,
.wwcore-sorting-interface,
.codicom-potion-v3 {
    min-height: 0;
    box-sizing: border-box;
}

.webcore-map-controls,
.wwcore-ceremony-controls,
.codicom-v3-controls,
.vp-panel-actions,
.vp-bottom-hints {
    flex-wrap: wrap;
    row-gap: 10px;
}

.webcore-map-controls span,
.wwcore-ceremony-controls span,
.codicom-v3-controls span,
.vp-panel-actions span,
.vp-bottom-hints span {
    min-height: 28px;
}

.webcore-map-interface {
    height: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 16px;
}

.webcore-map-canvas,
.webcore-map-note,
.webcore-map-stats {
    min-height: 0;
}

.webcore-map-controls {
    justify-content: flex-end;
    padding-bottom: 4px;
}

.vistaport-fullscreen-loadout {
    height: 100% !important;
    min-height: 100% !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.vp-hud-row {
    flex: 0 0 auto;
}

.vp-loadout-grid {
    top: 190px;
}

.vp-core-stage,
.vp-selected-panel,
.vp-panel-main,
.vp-copy-scroll {
    min-height: 0;
}

.vp-panel-actions {
    align-items: center;
}

.codicom-v3-stage,
.codicom-v3-panel,
.codicom-v3-lab,
.codicom-v3-note {
    min-height: 0;
}

.codicom-v3-stage {
    align-items: stretch;
}

.codicom-v3-controls {
    justify-content: flex-end;
    padding-bottom: 2px;
}

.wwcore-ceremony-stage,
.wwcore-ceremony-footer,
.wwcore-selection-panel,
.wwcore-mission-note,
.wwcore-mission-scroll {
    min-height: 0;
}

.wwcore-ceremony-controls {
    justify-content: center;
    padding-bottom: 2px;
}

@media (max-height: 940px) {
    .vistaport-fullscreen-loadout {
      padding-top: 18px;
      padding-left: 40px;
      padding-right: 40px;
      padding-bottom: 84px;
  }

    .vp-hud-row {
      padding-top: 28px;
  }

    .vp-loadout-grid {
      top: 172px;
      bottom: 100px;
      gap: 20px;
  }

    .vp-slot {
      min-height: 152px;
  }

    .vp-selected-panel {
      max-height: min(332px, 38vh);
  }

    .vp-copy-scroll {
      max-height: min(18vh, 162px);
  }

    .codicom-v3-stage {
      min-height: 560px;
  }
}

@media (max-height: 860px) {
    .webcore-map-interface,
  .wwcore-sorting-interface,
  .codicom-potion-v3 {
      gap: 14px;
  }

    .webcore-map-note {
      max-height: min(34vh, 300px);
  }

    .vistaport-fullscreen-loadout {
      padding-bottom: 78px;
  }

    .vp-loadout-grid {
      top: 158px;
      bottom: 94px;
  }

    .vp-stats strong {
      font-size: 1.9rem;
  }

    .vp-bottom-hints {
      bottom: 10px;
  }

    .codicom-v3-stage {
      min-height: 520px;
  }

    .codicom-v3-panel {
      min-height: 520px;
      padding-top: 58px;
  }

    .codicom-v3-note {
      max-height: min(26vh, 220px);
  }

    .wwcore-mission-scroll {
      max-height: min(22vh, 200px);
  }
}

@media (max-width: 980px) {
    .vistaport-fullscreen-loadout {
      height: auto !important;
      min-height: 100% !important;
      padding-bottom: 34px;
  }

    .vp-bottom-hints {
      left: auto;
      right: auto;
      bottom: auto;
      justify-content: flex-start;
  }

    .vp-panel-actions {
      justify-content: flex-start;
  }
}

.vp-top-nav {
    gap: clamp(16px, 2vw, 34px);
}

.vp-nav-item,
.vp-stat-chip,
.vp-meter-button,
.vp-mock-button,
.vp-hint-chip,
.vp-node,
.vp-crest {
    appearance: none;
    border: 0;
    font: inherit;
}

.vp-nav-item,
.vp-mock-button,
.vp-hint-chip,
.vp-stat-chip,
.vp-meter-button,
.vp-node,
.vp-crest,
.vp-slot {
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, filter 180ms ease;
}

.vp-nav-item {
    color: rgba(238, 230, 210, .62);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 1rem;
    background: transparent;
}

.vp-nav-item:hover,
.vp-nav-item:focus-visible {
    color: #fff1bf;
    text-shadow: 0 0 18px rgba(246, 204, 105, .36);
    transform: translateY(-1px);
}

.vp-nav-item.is-active {
    text-shadow: 0 0 18px rgba(246, 204, 105, .5);
    position: relative;
}

.vp-nav-item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 52px;
    height: 4px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: #f0c55e;
    box-shadow: 0 0 22px rgba(240,197,94,.7);
}

.vp-crest {
    cursor: pointer;
}

.vp-crest:hover,
.vp-crest:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 32px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.08), 0 0 40px rgba(67,154,255,.38);
}

.vp-stat-chip {
    display: grid;
    grid-template-columns: 58px auto;
    column-gap: 10px;
    align-items: center;
    background: transparent;
    padding: 0;
    text-align: left;
}

.vp-stat-chip:hover,
.vp-stat-chip:focus-visible {
    transform: translateY(-3px);
    filter: brightness(1.08);
}

.vp-stat-chip i {
    grid-row: 1 / 3;
}

.vp-stat-chip span,
.vp-stat-chip strong {
    pointer-events: none;
}

.vp-slot:hover,
.vp-slot:focus-visible {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 34px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.04), 0 0 0 1px rgba(242, 214, 143, .18);
}

.vp-slot.is-selected:hover,
.vp-slot.is-selected:focus-visible {
    box-shadow: 0 24px 36px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.06), 0 0 0 2px rgba(146, 255, 150, .24);
}

.vp-node:hover,
.vp-node:focus-visible {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(255,255,255,.05), 0 0 22px rgba(246, 204, 105, .4);
}

.vp-mini-meters {
    gap: 10px;
}

.vp-meter-button {
    display: grid;
    grid-template-columns: 1fr 104px;
    gap: 10px;
    align-items: center;
    padding: 0;
    background: transparent;
    text-align: left;
}

.vp-meter-button:hover,
.vp-meter-button:focus-visible {
    transform: translateX(4px);
}

.vp-meter-button i,
.vp-meter-button b {
    pointer-events: none;
}

.vp-panel-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.vp-mock-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: rgba(244, 242, 234, .9);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
}

.vp-mock-button:hover,
.vp-mock-button:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
}

.vp-mock-button b {
    display: inline-grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a8a41;
    color: white;
    box-shadow: 0 8px 16px rgba(0,0,0,.24);
}

.vp-mock-button:nth-child(2) b {
    background: #21826e;
}

.vp-mock-button:nth-child(3) b {
    background: #208f4d;
}

.vp-bottom-hints {
    left: 54px !important;
    right: 54px !important;
    gap: 12px !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.vp-hint-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    color: rgba(244, 242, 234, .9);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.vp-hint-chip:hover,
.vp-hint-chip:focus-visible {
    color: #fff;
    transform: translateY(-2px);
}

.vp-hint-chip span {
    white-space: nowrap;
}

.vp-smart-tooltip {
    position: absolute;
    z-index: 40;
    width: min(320px, calc(100% - 36px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.vp-smart-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.vp-smart-tooltip-inner {
    position: relative;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(243, 202, 116, .52);
    background: linear-gradient(180deg, rgba(13, 27, 49, .98), rgba(9, 18, 34, .98));
    color: #f4eddc;
    line-height: 1.45;
    box-shadow: 0 22px 34px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.04);
}

.vp-smart-tooltip-inner::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid rgba(243, 202, 116, .52);
    border-bottom: 1px solid rgba(243, 202, 116, .52);
    background: rgba(9, 18, 34, .98);
}

.vp-smart-tooltip.is-below .vp-smart-tooltip-inner::after {
    top: -8px;
    bottom: auto;
    transform: translateX(-50%) rotate(225deg);
}

.is-vp-pressed {
    animation: vpPressed 360ms ease;
}

@keyframes vpPressed {
    0% {
      transform: scale(1);
  }

    35% {
      transform: scale(1.04);
  }

    100% {
      transform: scale(1);
  }
}

@media (max-height: 900px) {
    .vp-loadout-grid {
      bottom: 124px !important;
  }

    .vp-selected-panel {
      bottom: 30px !important;
      max-height: min(320px, 36vh) !important;
  }

    .vp-copy-scroll {
      max-height: min(15vh, 136px) !important;
  }
}

@media (max-width: 1180px) {
    .vp-bottom-hints {
      justify-content: flex-start;
  }
}

@media (max-width: 980px) {
    .vp-selected-panel {
      max-height: none !important;
  }

    .vp-smart-tooltip {
      position: fixed;
      left: 18px !important;
      right: 18px;
      top: auto !important;
      bottom: 24px;
      width: auto;
  }

    .vp-smart-tooltip-inner::after,
  .vp-smart-tooltip.is-below .vp-smart-tooltip-inner::after {
      display: none;
  }
}

.vp-slot-icon,
.is-domains .vp-slot-icon::before,
.is-domains .vp-slot-icon::after,
.is-projects .vp-slot-icon::before,
.is-projects .vp-slot-icon::after,
.is-records .vp-slot-icon::before,
.is-records .vp-slot-icon::after,
.is-assets .vp-slot-icon::before,
.is-assets .vp-slot-icon::after,
.is-clients .vp-slot-icon::before,
.is-clients .vp-slot-icon::after,
.is-documents .vp-slot-icon::before,
.is-documents .vp-slot-icon::after,
.vp-figure-core,
.vp-data-orbit,
.vp-data-beam,
.vp-figure-body,
.vp-figure-body::before,
.vp-figure-body::after,
.vp-figure-head {
    transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, filter 220ms ease, opacity 220ms ease, width 220ms ease, height 220ms ease, left 220ms ease, right 220ms ease;
}

.vp-slot:hover .vp-slot-icon,
.vp-slot:focus-visible .vp-slot-icon {
    transform: translateY(-2px) scale(1.02);
}

.vp-slot.is-folder-green .vp-slot-icon::before {
    background: #6be98d;
    box-shadow: 0 0 18px rgba(107,233,141,.22);
}

.vp-slot.is-folder-green .vp-slot-icon::after {
    background: #a9f4bc;
}

.vp-slot.is-records-purple .vp-slot-icon::before {
    background: #be7cff;
    box-shadow: 0 0 24px rgba(190,124,255,.46);
}

.vp-slot.is-records-purple .vp-slot-icon::after {
    background: #ffd970;
    box-shadow: 0 0 14px rgba(255,217,112,.2);
}

.vp-slot.is-switch-off .vp-slot-icon::before {
    background: #6d7b9d;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.05);
}

.vp-slot.is-switch-off .vp-slot-icon::after {
    right: auto;
    left: 48px;
    background: #dae2f2;
}

.is-domains .vp-slot-icon {
    --vp-domain-rotation: 0deg;
}

.is-domains .vp-slot-icon::before,
.is-domains .vp-slot-icon::after {
    transform: rotate(var(--vp-domain-rotation));
    transform-origin: 97px 43px;
}

.vp-slot.is-client-thin .vp-slot-icon::before {
    left: 82px;
    width: 32px;
}

.vp-slot.is-client-thin .vp-slot-icon::after {
    left: 68px;
    width: 60px;
}

.vp-slot.is-excel-mode .vp-slot-icon {
    background: repeating-linear-gradient(90deg, rgba(126,206,157,.08) 0 16px, transparent 16px 17px),
    repeating-linear-gradient(180deg, rgba(126,206,157,.08) 0 16px, transparent 16px 17px),
    linear-gradient(180deg, rgba(9, 54, 36, .92), rgba(7, 29, 23, .98));
}

.vp-slot.is-excel-mode .vp-slot-icon::before {
    background: #f4fff5;
    box-shadow: 0 0 0 2px rgba(104,202,146,.2);
}

.vp-slot.is-excel-mode .vp-slot-icon::after {
    left: 76px;
    top: 18px;
    width: 40px;
    height: 4px;
    background: #2ca35d;
    box-shadow: 0 11px 0 #2ca35d, 0 22px 0 #2ca35d, 0 33px 0 #2ca35d;
}

.vp-failed-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: rgba(2, 5, 10, .42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.vp-failed-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.vp-failed-smoke {
    position: absolute;
    left: 50%;
    top: 22%;
    width: min(720px, 84vw);
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 50%, rgba(150, 80, 62, .32), rgba(92, 44, 41, .18) 40%, transparent 72%);
    filter: blur(24px);
    opacity: .9;
}

.vp-failed-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100% - 40px));
    text-align: center;
    transform: translateY(18px) scale(.96);
    opacity: 0;
    transition: transform 240ms ease, opacity 240ms ease;
}

.vp-failed-overlay.is-visible .vp-failed-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.vp-failed-dialog h2 {
    margin: 0;
    color: #f6f0e8;
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: .06em;
    text-shadow: 0 18px 28px rgba(0,0,0,.34);
}

.vp-failed-dialog p {
    margin: 18px 0 22px;
    color: rgba(247, 223, 177, .9);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.vp-failed-actions {
    display: grid;
    gap: 10px;
    width: min(260px, 100%);
    margin: 0 auto;
}

.vp-failed-button {
    appearance: none;
    border: 1px solid rgba(221, 195, 131, .48);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(32, 49, 74, .94), rgba(20, 28, 43, .94));
    color: #f4f1ea;
    padding: 10px 14px;
    font: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.vp-failed-button:hover,
.vp-failed-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,0,0,.26), 0 0 0 1px rgba(246, 212, 125, .18);
    border-color: rgba(246, 212, 125, .72);
}

.vp-failed-button.is-primary {
    background: linear-gradient(180deg, rgba(35, 103, 116, .96), rgba(24, 56, 74, .96));
}

.vp-stat-chip[data-vp-stat="health"]:hover i,
.vp-stat-chip[data-vp-stat="health"]:focus-visible i {
    box-shadow: 0 0 22px rgba(255, 170, 122, .28);
}

.vistaport-fullscreen-loadout.is-health-hit .vp-figure-core {
    box-shadow: 0 0 40px rgba(255, 120, 120, .36), 0 0 0 16px rgba(255, 120, 120, .08);
    filter: saturate(1.15);
}

.vistaport-fullscreen-loadout.is-defence-boost .vp-data-orbit,
.vistaport-fullscreen-loadout.is-defence-boost .vp-node {
    box-shadow: 0 0 0 2px rgba(130, 214, 255, .14), 0 0 30px rgba(130, 214, 255, .18);
}

.vistaport-fullscreen-loadout.is-offence-boost .vp-figure-core {
    background: radial-gradient(circle, #ffc772, #df8a2a 52%, #42220d 72%);
    box-shadow: 0 0 42px rgba(255, 174, 82, .42), 0 0 0 15px rgba(255, 174, 82, .08);
}

.vistaport-fullscreen-loadout.is-offence-boost .vp-data-beam {
    box-shadow: 0 0 28px rgba(255, 168, 86, .38);
}

@media (max-height: 900px) {
    .vp-selected-panel {
      height: clamp(286px, 34vh, 332px);
  }
}

.unicore-letter-scene.is-gear-scene .unicore-letter-back {
    display: none !important;
}

.vistaport-fullscreen-loadout {
    padding-bottom: 112px !important;
}

.vp-loadout-grid {
    bottom: 136px !important;
}

.vp-selected-panel {
    bottom: 38px !important;
    height: clamp(360px, 42vh, 430px) !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
}

.vp-panel-titlebar {
    flex: 0 0 auto;
}

.vp-panel-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: grid;
    align-items: stretch !important;
}

.vp-panel-summary,
.vp-copy-scroll {
    min-height: 0 !important;
}

.vp-copy-scroll {
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto;
}

.vp-panel-actions {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 2;
    margin-top: 0 !important;
    padding: 13px 18px 15px !important;
    background: linear-gradient(180deg, rgba(4, 12, 28, 0.38), rgba(4, 12, 28, 0.58));
}

.vp-bottom-hints {
    bottom: 22px !important;
    z-index: 5;
}

.is-domains .vp-slot-icon::before {
    background: conic-gradient(from 0deg, rgba(139,216,255,1), rgba(139,216,255,.2), rgba(139,216,255,1), rgba(139,216,255,.2), rgba(139,216,255,1));
    border: 4px solid rgba(139,216,255,.92);
    box-shadow: inset 0 0 0 4px rgba(8, 20, 44, .92), 0 0 14px rgba(139,216,255,.24);
    transform: rotate(var(--vp-domain-rotation, 0deg)) !important;
    transform-origin: 50% 50% !important;
}

.is-domains .vp-slot-icon::after {
    transform: none !important;
    transform-origin: 50% 50% !important;
}

.vp-nav-item {
    border-radius: 8px;
    padding: 5px 4px;
}

.vp-nav-item.is-active {
    color: #fff3c5 !important;
}

.vp-nav-item.is-active::after {
    bottom: -16px !important;
}

.vistaport-fullscreen-loadout.is-filtered .vp-slot:not(.is-selected) {
    filter: saturate(.72) brightness(.72);
    opacity: .98;
}

.vistaport-fullscreen-loadout.is-filtered .vp-slot.is-selected {
    filter: saturate(1.15) brightness(1.06);
}

.vistaport-fullscreen-loadout.is-y-exported .vp-panel-actions {
    box-shadow: inset 0 0 0 1px rgba(112, 255, 160, .18), 0 0 24px rgba(112, 255, 160, .12);
}

.vistaport-fullscreen-loadout.is-x-record-open .vp-selected-panel {
    box-shadow: 0 24px 38px rgba(0,0,0,.42), inset 0 0 0 2px rgba(255,255,255,.035), 0 0 28px rgba(190,124,255,.12);
}

.vistaport-fullscreen-loadout.is-a-selected .vp-selected-panel {
    border-color: rgba(148,255,176,.64);
}

@media (max-height: 920px) {
    .vp-selected-panel {
      height: clamp(330px, 40vh, 382px) !important;
      bottom: 42px !important;
  }

    .vp-loadout-grid {
      bottom: 146px !important;
  }
}

@media (max-height: 820px) {
    .vp-selected-panel {
      height: clamp(300px, 38vh, 344px) !important;
  }

    .vp-panel-summary h2 {
      font-size: 1.85rem;
  }

    .vp-panel-summary p {
      margin-bottom: 10px;
  }
}

@media (max-width: 980px) {
    .vp-selected-panel {
      height: auto !important;
      bottom: auto !important;
  }

    .vp-copy-scroll {
      height: auto !important;
      max-height: 240px !important;
  }
}

.webcore-quest-interface {
    --wc-map-zoom: 1;
}

.webcore-map-topbar {
    gap: clamp(14px, 2.2vw, 42px);
}

.webcore-pad-hint {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #e9e3d0;
    background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08));
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 8px 16px rgba(0,0,0,.22);
    font-size: .82rem;
    letter-spacing: .03em;
}

.webcore-nav-item,
.webcore-map-switch button,
.webcore-map-pin,
.webcore-map-stats button,
.webcore-quest-meters button,
.webcore-map-controls button {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.webcore-nav-item {
    position: relative;
    color: rgba(234, 224, 198, 0.56);
    font-size: clamp(11px, 1vw, 16px);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent;
    padding: 6px 0;
    transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.webcore-nav-item:hover,
.webcore-nav-item:focus-visible {
    color: #fff2c6;
    transform: translateY(-1px);
    text-shadow: 0 0 16px rgba(251, 210, 101, 0.45);
}

.webcore-nav-item.is-active {
    color: #fff2c6;
    text-shadow: 0 0 18px rgba(251, 210, 101, 0.66);
}

.webcore-nav-item.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -17px;
    width: 86px;
    height: 24px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(254, 216, 92, 0.72), transparent 70%);
    opacity: 0.86;
    pointer-events: none;
}

.webcore-map-switch button {
    min-width: clamp(185px, 18vw, 310px);
    padding: 12px 24px;
    text-align: center;
    border: 2px solid rgba(236, 186, 88, 0.84);
    border-radius: 10px;
    color: #fff3d3;
    background: linear-gradient(180deg, rgba(128, 27, 25, 0.96), rgba(94, 12, 16, 0.96));
    box-shadow: 0 15px 34px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.08);
    font-size: clamp(14px, 1.3vw, 22px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.webcore-map-switch button:hover,
.webcore-map-switch button:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.webcore-map-switch button.is-active {
    filter: brightness(1.16);
    box-shadow: 0 0 28px rgba(238, 190, 88, 0.32), 0 15px 34px rgba(0,0,0,0.45), inset 0 0 0 2px rgba(255,255,255,0.14);
}

.webcore-map-canvas {
    transform: scale(var(--wc-map-zoom));
    transform-origin: center center;
    transition: transform 260ms ease, filter 260ms ease;
}

.webcore-map-pin {
    background: transparent;
    border: 0;
    padding: 0;
    transition: transform 180ms ease, filter 180ms ease;
}

.webcore-map-pin:hover,
.webcore-map-pin:focus-visible,
.webcore-map-pin.is-selected {
    transform: translate(-50%, -50%) scale(1.12);
    filter: drop-shadow(0 0 18px rgba(246, 218, 126, .48));
}

.webcore-map-pin:hover b,
.webcore-map-pin:focus-visible b,
.webcore-map-pin.is-selected b {
    color: #fff7c9;
    text-shadow: 0 0 18px rgba(255, 226, 120, .46), 0 3px 10px rgba(0,0,0,.85);
}

.webcore-map-pin.is-selected i {
    box-shadow: 0 15px 26px rgba(0,0,0,.48), 0 0 0 5px rgba(255, 228, 130, .10), 0 0 28px rgba(255, 228, 130, .34);
}

.webcore-map-route-energy {
    position: absolute;
    z-index: 3;
    left: 9%;
    top: 21%;
    width: 53%;
    height: 58%;
    border-radius: 50%;
    border: 2px solid rgba(187, 255, 93, 0.0);
    pointer-events: none;
    opacity: 0;
    transform: rotate(-12deg);
}

.webcore-map-stats {
    display: grid;
    gap: 8px;
}

.webcore-map-stats button {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: inherit;
}

.webcore-map-stats button span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 7px 0;
    padding: 4px 0;
    color: rgba(255, 247, 224, 0.86);
    font-size: clamp(13px, 1vw, 17px);
    transition: color 180ms ease, transform 180ms ease;
}

.webcore-map-stats button:hover span,
.webcore-map-stats button:focus-visible span {
    color: #ffffff;
    transform: translateX(-4px);
}

.webcore-map-note {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: min(520px, 55vh);
}

.webcore-panel-topline {
    margin-bottom: 10px;
    color: rgba(158, 223, 255, 0.86);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.webcore-quest-meters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 14px;
}

.webcore-quest-meters button {
    display: grid;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: rgba(242, 238, 225, .82);
    text-align: left;
}

.webcore-quest-meters button:hover,
.webcore-quest-meters button:focus-visible {
    transform: translateY(-2px);
}

.webcore-quest-meters i {
    position: relative;
    display: block;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.1);
}

.webcore-quest-meters i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--wc, 50%);
    border-radius: inherit;
    background: linear-gradient(90deg, #82d7ff, #75ff94);
    box-shadow: 0 0 16px rgba(117,255,148,.34);
}

.webcore-quest-meters b {
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.webcore-copy-scroll {
    min-height: 0;
    overflow: auto;
    padding-right: 10px;
}

.webcore-copy-scroll::-webkit-scrollbar {
    width: 8px;
}

.webcore-copy-scroll::-webkit-scrollbar-thumb {
    background: rgba(218, 176, 91, .38);
    border-radius: 999px;
}

.webcore-copy-scroll p {
    margin: 0 0 1rem;
    color: rgba(255, 247, 224, 0.88);
    line-height: 1.6;
}

.webcore-copy-scroll p.is-lead {
    color: #f6e3b2;
}

.webcore-map-controls {
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.webcore-map-controls button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: rgba(244, 242, 234, .88);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-size: .86rem;
    transition: transform 180ms ease, color 180ms ease, filter 180ms ease;
}

.webcore-map-controls button:hover,
.webcore-map-controls button:focus-visible {
    transform: translateY(-2px);
    color: #ffffff;
    filter: brightness(1.08);
}

.webcore-map-controls b {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: #1b884a;
    box-shadow: 0 8px 16px rgba(0,0,0,.24);
}

.webcore-map-controls button:nth-child(4) b {
    background: #4876c8;
}

.webcore-map-controls button:nth-child(5) b {
    background: #7b55b9;
}

.webcore-map-controls button:nth-child(7) b {
    background: #39465f;
}

.webcore-smart-tooltip {
    position: absolute;
    z-index: 50;
    width: min(340px, calc(100% - 36px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.webcore-smart-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.webcore-smart-tooltip-inner {
    position: relative;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(243, 202, 116, .54);
    background: linear-gradient(180deg, rgba(12, 31, 41, .98), rgba(8, 18, 30, .98));
    color: #f4eddc;
    line-height: 1.45;
    box-shadow: 0 22px 34px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.04);
}

.webcore-smart-tooltip-inner::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid rgba(243, 202, 116, .54);
    border-bottom: 1px solid rgba(243, 202, 116, .54);
    background: rgba(8, 18, 30, .98);
}

.webcore-smart-tooltip.is-below .webcore-smart-tooltip-inner::after {
    top: -8px;
    bottom: auto;
    transform: translateX(-50%) rotate(225deg);
}

.is-wc-pressed {
    animation: wcPressed 360ms ease;
}

.webcore-quest-interface.is-route-read .webcore-map-route-energy {
    animation: wcRoutePulse 1000ms ease;
}

.webcore-quest-interface.is-stack-cleaned-persistent .webcore-map-stats button[data-wc-stat="noise"] span b {
    color: #9cffb9;
    text-shadow: 0 0 16px rgba(156, 255, 185, .28);
}

.webcore-quest-interface.is-stack-cleaned .webcore-map-canvas {
    filter: saturate(1.08) brightness(1.03);
}

.webcore-quest-interface.is-engine-mode .webcore-map-canvas {
    filter: hue-rotate(20deg) saturate(1.08) brightness(.96);
}

.webcore-quest-interface.is-engine-open .webcore-map-pin.is-core i,
.webcore-quest-interface.is-engine-open .webcore-map-route {
    filter: drop-shadow(0 0 26px rgba(190,255,92,.5));
}

.webcore-quest-interface.is-map-shifted .webcore-map-route {
    animation: wcMapShift 700ms ease;
}

.webcore-quest-interface.is-zoomed-in .webcore-map-canvas,
.webcore-quest-interface.is-zoomed-out .webcore-map-canvas {
    filter: brightness(1.05) saturate(1.07);
}

@keyframes wcPressed {
    0% {
      transform: scale(1);
  }

    35% {
      transform: scale(1.045);
  }

    100% {
      transform: scale(1);
  }
}

@keyframes wcRoutePulse {
    0% {
      opacity: 0;
      transform: scale(.8) rotate(-12deg);
      border-color: rgba(187, 255, 93, 0);
  }

    28% {
      opacity: 1;
      border-color: rgba(187, 255, 93, .72);
  }

    100% {
      opacity: 0;
      transform: scale(1.18) rotate(-12deg);
      border-color: rgba(187, 255, 93, 0);
  }
}

@keyframes wcMapShift {
    0% {
      transform: translateX(0) rotate(0);
  }

    35% {
      transform: translateX(16px) rotate(2deg);
  }

    100% {
      transform: translateX(0) rotate(0);
  }
}

@media (max-height: 900px) {
    .webcore-map-note {
      max-height: min(440px, 48vh);
  }

    .webcore-copy-scroll {
      max-height: 230px;
  }

    .webcore-map-controls button {
      font-size: .78rem;
  }
}

@media (max-width: 980px) {
    .webcore-map-controls {
      left: 18px;
      right: 18px;
      justify-content: flex-start;
      overflow-x: auto;
      white-space: nowrap;
  }

    .webcore-map-switch button {
      min-width: 160px;
  }

    .webcore-map-note {
      max-height: 46vh;
  }
}

@media (max-width: 620px) {
    .webcore-nav-item {
      font-size: 10px;
  }

    .webcore-pad-hint {
      display: none;
  }

    .webcore-quest-meters {
      grid-template-columns: 1fr;
  }

    .webcore-map-controls button span {
      display: none;
  }
}

.wwcore-house-card,
.wwcore-hat-wrap,
.wwcore-ceremony-controls button,
.codicom-v3-controls button,
.codicom-v3-tag-button,
.codicom-v3-sigil,
.codicom-v3-cauldron,
.codicom-v3-quest,
.codicom-v3-version,
.codicom-v3-metrics button {
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.wwcore-hat-wrap {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.wwcore-hat-wrap:hover,
.wwcore-hat-wrap:focus-visible {
    transform: translateY(-4px) scale(1.02);
    filter: brightness(1.05);
}

.wwcore-ceremony-controls button,
.codicom-v3-controls button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #f3ead7;
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .07em;
    cursor: pointer;
}

.wwcore-ceremony-controls button:hover,
.wwcore-ceremony-controls button:focus-visible,
.codicom-v3-controls button:hover,
.codicom-v3-controls button:focus-visible {
    transform: translateY(-2px);
    color: #fff7e7;
}

.wwcore-ceremony-controls span,
.codicom-v3-controls span {
    white-space: nowrap;
}

.wwcore-selection-panel,
.wwcore-mission-note,
.wwcore-hat-aura,
.codicom-v3-panel,
.codicom-v3-note,
.codicom-v3-room-glow,
.codicom-v3-cauldron,
.codicom-v3-quest,
.codicom-v3-sigil,
.codicom-v3-titleplate span {
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, background 220ms ease, opacity 220ms ease, border-color 220ms ease;
}

.wwcore-house-card:hover,
.wwcore-house-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 18px 28px rgba(0,0,0,.25), 0 0 0 1px rgba(245,214,161,.14);
}

.wwcore-ceremony-controls {
    gap: 18px;
}

.wwcore-smart-tooltip,
.codicom-smart-tooltip {
    position: absolute;
    z-index: 40;
    width: min(340px, calc(100% - 36px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px) scale(.98);
    transition: opacity 180ms ease, transform 180ms ease;
}

.wwcore-smart-tooltip.is-visible,
.codicom-smart-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wwcore-smart-tooltip-inner,
.codicom-smart-tooltip-inner {
    position: relative;
    padding: 13px 16px;
    border-radius: 16px;
    border: 1px solid rgba(235, 205, 132, .48);
    background: linear-gradient(180deg, rgba(13, 20, 33, .98), rgba(7, 12, 22, .98));
    color: #f4eddc;
    line-height: 1.45;
    box-shadow: 0 22px 34px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.04);
}

.wwcore-smart-tooltip-inner::after,
.codicom-smart-tooltip-inner::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid rgba(235, 205, 132, .48);
    border-bottom: 1px solid rgba(235, 205, 132, .48);
    background: rgba(7, 12, 22, .98);
}

.wwcore-smart-tooltip.is-below .wwcore-smart-tooltip-inner::after,
.codicom-smart-tooltip.is-below .codicom-smart-tooltip-inner::after {
    top: -8px;
    bottom: auto;
    transform: translateX(-50%) rotate(225deg);
}

.is-ww-pressed,
.is-cd-pressed {
    animation: v139Pressed 360ms ease;
}

@keyframes v139Pressed {
    0% {
      transform: scale(1);
  }

    35% {
      transform: scale(1.04);
  }

    100% {
      transform: scale(1);
  }
}

.wwcore-sorting-interface.is-ww-selected-flash .wwcore-selection-panel,
.wwcore-sorting-interface.is-ww-selected-flash .wwcore-house-card.is-selected {
    box-shadow: 0 0 0 1px rgba(244, 218, 153, .32), 0 20px 30px rgba(0,0,0,.2), 0 0 24px rgba(244, 218, 153, .18);
}

.wwcore-sorting-interface.is-ww-blessed .wwcore-hat-aura,
.wwcore-sorting-interface.is-ww-blessed-persistent .wwcore-hat-aura {
    filter: saturate(1.2) brightness(1.15);
    box-shadow: 0 0 80px rgba(120, 196, 255, .22), 0 0 130px rgba(219, 194, 126, .18);
}

.wwcore-sorting-interface.is-ww-blessed .wwcore-hat-wrap,
.wwcore-sorting-interface.is-ww-blessed-persistent .wwcore-hat-wrap {
    transform: translateY(-6px) scale(1.03);
}

.wwcore-sorting-interface.is-ww-pledge-open .wwcore-mission-note {
    border-color: rgba(235, 205, 132, .54);
    box-shadow: 0 0 0 1px rgba(235,205,132,.12), 0 16px 28px rgba(0,0,0,.22);
}

.wwcore-sorting-interface.is-ww-pledge-open .wwcore-selection-panel {
    transform: translateY(-2px);
}

.wwcore-sorting-interface.is-ww-shuffled .wwcore-house-grid {
    transform: scale(1.01);
}

.codicom-v3-version {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.codicom-v3-version:hover,
.codicom-v3-version:focus-visible {
    transform: translateY(-2px);
}

.codicom-v3-cauldron,
.codicom-v3-quest,
.codicom-v3-sigil,
.codicom-v3-metrics button,
.codicom-v3-tag-button {
    cursor: pointer;
}

.codicom-v3-cauldron,
.codicom-v3-quest,
.codicom-v3-sigil,
.codicom-v3-metrics button,
.codicom-v3-version {
    appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    padding: 0;
}

.codicom-v3-cauldron:hover,
.codicom-v3-cauldron:focus-visible {
    transform: translateY(-3px) scale(1.015);
    filter: brightness(1.05);
}

.codicom-v3-quest:hover,
.codicom-v3-quest:focus-visible,
.codicom-v3-sigil:hover,
.codicom-v3-sigil:focus-visible,
.codicom-v3-metrics button:hover,
.codicom-v3-metrics button:focus-visible,
.codicom-v3-tag-button:hover,
.codicom-v3-tag-button:focus-visible {
    transform: translateY(-2px);
}

.codicom-v3-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.codicom-v3-tag-button {
    appearance: none;
    border: 1px solid rgba(214, 183, 116, 0.26);
    background: linear-gradient(180deg, rgba(19, 40, 67, .72), rgba(10, 21, 39, .9));
    color: #e8d9b3;
    border-radius: 999px;
    padding: 8px 13px;
    font: inherit;
    letter-spacing: .12em;
    font-size: .73rem;
    text-transform: uppercase;
}

.codicom-v3-tag-button.is-active {
    border-color: rgba(214, 183, 116, 0.72);
    background: linear-gradient(180deg, rgba(41, 89, 140, .88), rgba(17, 34, 63, .96));
    color: #fff5df;
    box-shadow: 0 10px 20px rgba(0,0,0,.16), 0 0 20px rgba(118, 170, 255, .16);
}

.codicom-v3-metrics {
    gap: 10px;
}

.codicom-v3-metrics button {
    text-align: left;
}

.codicom-potion-v3.is-cd-profile-shift .codicom-v3-room-glow {
    filter: hue-rotate(18deg) saturate(1.08);
}

.codicom-potion-v3[data-cd-profile="nxe"] .brew-surface {
    background: linear-gradient(180deg, #59b7ff, #205cbf);
}

.codicom-potion-v3[data-cd-profile="tools"] .brew-surface {
    background: linear-gradient(180deg, #7ae6b0, #2b9668);
}

.codicom-potion-v3[data-cd-profile="repos"] .brew-surface {
    background: linear-gradient(180deg, #d989ff, #8c4cd0);
}

.codicom-potion-v3[data-cd-profile="versions"] .brew-surface {
    background: linear-gradient(180deg, #ffd27e, #c97d1b);
}

.codicom-potion-v3[data-cd-profile="chaos"] .brew-surface {
    background: linear-gradient(180deg, #ff8f86, #d54d78);
}

.codicom-potion-v3.is-cd-stirred .brew-surface {
    transform: scale(1.03);
    box-shadow: 0 0 26px rgba(162, 233, 255, .22);
}

.codicom-potion-v3.is-cd-stirred .bubble,
.codicom-potion-v3.is-cd-distilled .bubble {
    animation-duration: 1.1s;
}

.codicom-potion-v3.is-cd-distilled .codicom-v3-titleplate span {
    box-shadow: 0 0 0 1px rgba(214,183,116,.16), 0 10px 20px rgba(0,0,0,.12), 0 0 22px rgba(214,183,116,.18);
    transform: translateY(-2px);
}

.codicom-potion-v3.is-cd-distilled .codicom-v3-bottom-plate {
    filter: brightness(1.1);
}

.codicom-potion-v3.is-cd-repo-open .codicom-v3-panel {
    box-shadow: inset 0 0 0 1px rgba(214,183,116,.08), 0 16px 28px rgba(0,0,0,.18), 0 0 0 1px rgba(118,170,255,.16);
}

.codicom-potion-v3.is-cd-repo-open .codicom-v3-note {
    border-color: rgba(118,170,255,.24);
}

@media (max-width: 980px) {
    .wwcore-smart-tooltip,
  .codicom-smart-tooltip {
      position: fixed;
      left: 18px !important;
      right: 18px;
      top: auto !important;
      bottom: 24px;
      width: auto;
  }

    .wwcore-smart-tooltip-inner::after,
  .codicom-smart-tooltip-inner::after,
  .wwcore-smart-tooltip.is-below .wwcore-smart-tooltip-inner::after,
  .codicom-smart-tooltip.is-below .codicom-smart-tooltip-inner::after {
      display: none;
  }
}

.quest-start-button,
.vp-mock-button.is-start-quest {
    appearance: none;
    gap: 10px;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease;
}

.quest-start-button:hover,
.quest-start-button:focus-visible,
.vp-mock-button.is-start-quest:hover,
.vp-mock-button.is-start-quest:focus-visible {
    filter: brightness(1.05);
}

.unicore-welcome-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.unicore-welcome-content .is-lead {
    font-size: 1.1rem;
}

.unicore-welcome-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 4px;
}

.unicore-quest-complete-dialog {
    border-radius: 26px;
    border: 1px solid rgba(232, 206, 135, 0.42);
    background: linear-gradient(180deg, rgba(13, 22, 39, 0.95), rgba(7, 13, 25, 0.98));
    box-shadow: 0 32px 60px rgba(0,0,0,.44), inset 0 0 0 1px rgba(255,255,255,.03);
    overflow: hidden;
}

.unicore-quest-complete-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(120, 183, 255, .18), transparent 48%), linear-gradient(135deg, rgba(237, 204, 125, .08), transparent 45%);
    pointer-events: none;
}

.unicore-quest-complete-view {
    padding: 34px 36px 36px;
}

.unicore-quest-complete-view h2,
.unicore-quest-complete-view h3 {
    line-height: 1.02;
}

.unicore-quest-complete-actions,
.unicore-egg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.uqc-action {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .76rem;
    cursor: pointer;
}

.uqc-action:hover,
.uqc-action:focus-visible {
    filter: brightness(1.05);
}

.uqc-action.is-primary {
    border-color: rgba(196, 236, 169, 0.48);
    color: #f9fff3;
}

@media (max-width: 900px) {
    .unicore-quest-complete-view {
      padding: 28px 22px 24px;
  }
}

.quest-start-button,
.vp-mock-button.is-start-quest {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(231, 212, 142, 0.72);
    background: linear-gradient(180deg, rgba(46, 80, 136, 0.98), rgba(17, 35, 68, 0.98));
    color: #fff7e3;
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 18px 34px rgba(0,0,0,.28), 0 0 28px rgba(109, 184, 255, .20);
}

.quest-start-button::before,
.vp-mock-button.is-start-quest::before {
    content: "";
    position: absolute;
    pointer-events: none;
}

.quest-start-button::after,
.vp-mock-button.is-start-quest::after {
    right: 12px;
    top: 50%;
    color: rgba(255, 245, 200, .92);
    text-shadow: 0 0 12px rgba(255, 236, 166, .6);
    font-size: .86rem;
}

.quest-start-button:hover,
.quest-start-button:focus-visible,
.vp-mock-button.is-start-quest:hover,
.vp-mock-button.is-start-quest:focus-visible {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 231, 163, .92);
    box-shadow: 0 20px 36px rgba(0,0,0,.32), 0 0 42px rgba(126, 206, 255, .28), 0 0 16px rgba(255, 225, 135, .16);
}

.quest-start-button span,
.vp-mock-button.is-start-quest span {
    position: relative;
    z-index: 1;
}

.quest-start-sigil {
    position: relative;
    z-index: 1;
    font-size: 1.04rem;
    text-shadow: 0 0 10px rgba(255, 223, 142, .58);
}

@keyframes questButtonShimmer {
    0% {
      transform: translateX(-120%);
  }

    55%, 100% {
      transform: translateX(160%);
  }
}

@keyframes questButtonFloat {
    0%,100% {
      transform: translateY(0);
  }

    50% {
      transform: translateY(-1px);
  }
}

.unicore-quest-complete-overlay {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.unicore-quest-complete-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.unicore-quest-complete-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 5, 10, .42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.unicore-quest-complete-smoke {
    position: absolute;
    left: 50%;
    top: 22%;
    width: min(760px, 84vw);
    height: 180px;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 50%, rgba(117, 88, 171, .28), rgba(90, 58, 141, .16) 42%, transparent 72%), radial-gradient(circle at 50% 50%, rgba(150, 80, 62, .22), transparent 68%);
    filter: blur(26px);
    opacity: .92;
}

.unicore-quest-complete-dialog {
    position: relative;
    z-index: 1;
    text-align: center;
    transform: translateY(18px) scale(.96);
    opacity: 0;
    transition: transform 240ms ease, opacity 240ms ease;
}

.unicore-quest-complete-overlay.is-visible .unicore-quest-complete-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.unicore-quest-complete-view {
    position: relative;
}

.unicore-quest-complete-kicker {
    margin-bottom: 8px;
    color: rgba(246, 218, 150, .92);
    font-size: .78rem;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.unicore-quest-complete-view h2,
.unicore-quest-complete-view h3 {
    margin: 0;
    color: #f6f0e8;
    font-size: clamp(2.2rem, 4vw, 4rem);
    letter-spacing: .06em;
    text-shadow: 0 18px 28px rgba(0,0,0,.34);
}

.unicore-quest-complete-subtitle {
    margin: 16px 0 18px;
    color: rgba(247, 223, 177, .9);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.unicore-quest-complete-copy,
.unicore-egg-head p {
    margin: 0 auto;
    max-width: 60ch;
    color: rgba(244, 238, 220, 0.9);
    line-height: 1.7;
}

.unicore-quest-complete-actions.is-stack {
    display: grid;
    gap: 10px;
    width: min(280px, 100%);
    margin: 26px auto 0;
}

.uqc-action {
    appearance: none;
    border: 1px solid rgba(221, 195, 131, .48);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(32, 49, 74, .94), rgba(20, 28, 43, .94));
    color: #f4f1ea;
    padding: 10px 14px;
    font: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.uqc-action:hover,
.uqc-action:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,0,0,.26), 0 0 0 1px rgba(246, 212, 125, .18);
    border-color: rgba(246, 212, 125, .72);
}

.uqc-action.is-primary {
    background: linear-gradient(180deg, rgba(35, 103, 116, .96), rgba(24, 56, 74, .96));
}

.uqc-action.is-secret {
    background: linear-gradient(180deg, rgba(78, 56, 126, .96), rgba(39, 27, 66, .96));
}

.unicore-egg-head {
    margin-bottom: 16px;
}

.unicore-egg-head h3 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.unicore-egg-hud {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px auto 16px;
    width: min(740px, 100%);
}

.unicore-egg-scorebox {
    border: 1px solid rgba(221, 195, 131, .28);
    background: linear-gradient(180deg, rgba(17, 31, 52, .82), rgba(7, 14, 27, .86));
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
}

.unicore-egg-scorebox span {
    display: block;
    font-size: .74rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(240, 224, 187, .75);
}

.unicore-egg-scorebox strong {
    display: block;
    margin-top: 6px;
    color: #fff8e3;
    font-size: 1.45rem;
}

.unicore-egg-scorebox.is-wide strong {
    font-size: 1rem;
    line-height: 1.45;
    color: rgba(244, 238, 220, .92);
}

.unicore-breakout-shell {
    width: min(740px, 100%);
    margin: 0 auto;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(221, 195, 131, .28);
    background: linear-gradient(180deg, rgba(7, 14, 27, .82), rgba(7, 12, 24, .88));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 14px 28px rgba(0,0,0,.24);
}

.unicore-breakout-shell.is-cleared {
    box-shadow: inset 0 0 0 1px rgba(209, 255, 172, .14), 0 0 24px rgba(143, 255, 177, .18), 0 14px 28px rgba(0,0,0,.24);
}

.unicore-breakout-canvas {
    display: block;
    height: auto;
    border-radius: 12px;
}

.unicore-egg-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .unicore-egg-hud {
      grid-template-columns: 1fr;
  }

    .unicore-egg-actions {
      flex-direction: column;
  }
}

.unicore-completion-button {
    appearance: none;
    margin-top: 14px;
    align-self: center;
    border: 1px solid rgba(231, 212, 142, .55);
    background: linear-gradient(180deg, rgba(35, 61, 106, .94), rgba(14, 26, 49, .97));
    color: #fbf3e0;
    border-radius: 999px;
    padding: 10px 18px;
    font: inherit;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .72rem;
    box-shadow: 0 12px 24px rgba(0,0,0,.22), 0 0 18px rgba(118, 209, 255, .14);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.unicore-completion-button:hover,
.unicore-completion-button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 228, 161, .84);
    box-shadow: 0 14px 30px rgba(0,0,0,.24), 0 0 24px rgba(118, 209, 255, .2);
}

.quest-start-button,
.vp-mock-button.is-start-quest {
    animation: none;
    padding-right: 18px;
}

.quest-start-button::before,
.vp-mock-button.is-start-quest::before {
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.12) 18%, rgba(255,255,255,.04) 32%, transparent 46%);
    transform: translateX(-135%);
    animation: questButtonShimmer 4s linear infinite;
}

.vp-mock-button.is-start-quest b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 242, 194, .96);
    text-shadow: 0 0 10px rgba(255, 223, 142, .6);
}

.quest-start-button span,
.vp-mock-button.is-start-quest span {
    white-space: nowrap;
}

.unicore-quest-complete-dialog {
    width: min(760px, calc(100% - 40px));
}

.unicore-quest-complete-particles {
    position: absolute;
    inset: -8px 0 auto;
    height: 100%;
    pointer-events: none;
}

.unicore-quest-complete-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,247,210,.95) 0%, rgba(151, 233, 255, .82) 45%, rgba(151,233,255,0) 72%);
    box-shadow: 0 0 16px rgba(151, 233, 255, .28);
    animation: questParticleFloat 6s linear infinite;
    opacity: .55;
}

.unicore-quest-complete-particles .particle.rare {
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255,248,204,1) 0%, rgba(202, 142, 255, .9) 40%, rgba(202,142,255,0) 72%);
    box-shadow: 0 0 24px rgba(194, 136, 255, .38);
    animation-duration: 8.2s;
}

.unicore-quest-complete-particles .p1 {
    left: 10%;
    top: 18%;
    animation-delay: 0s;
}

.unicore-quest-complete-particles .p2 {
    left: 24%;
    top: 8%;
    animation-delay: 1s;
}

.unicore-quest-complete-particles .p3 {
    right: 20%;
    top: 14%;
    animation-delay: 2.4s;
}

.unicore-quest-complete-particles .p4 {
    right: 11%;
    top: 28%;
    animation-delay: 3.2s;
}

.unicore-quest-complete-particles .p5 {
    left: 38%;
    top: 26%;
    animation-delay: 4.4s;
}

.unicore-quest-complete-particles .p6 {
    left: 58%;
    top: 12%;
    animation-delay: 2s;
}

@keyframes questParticleFloat {
    0% {
      transform: translate3d(0, 10px, 0) scale(.6);
      opacity: 0;
  }

    15% {
      opacity: .7;
  }

    55% {
      transform: translate3d(8px, -24px, 0) scale(1);
      opacity: .9;
  }

    100% {
      transform: translate3d(-6px, -58px, 0) scale(.42);
      opacity: 0;
  }
}

.unicore-quest-complete-overlay.is-egg-mode .unicore-quest-complete-dialog {
    width: min(1460px, calc(100% - 32px));
}

.unicore-quest-complete-overlay.is-egg-mode .unicore-quest-complete-view.is-egg {
    min-height: min(92vh, 980px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unicore-egg-head,
.unicore-egg-hud,
.unicore-breakout-shell,
.unicore-egg-actions {
    width: min(1320px, 100%);
}

.unicore-egg-head {
    margin: 0 auto 16px;
}

.unicore-egg-hud {
    margin-bottom: 18px;
}

.unicore-breakout-shell {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 0;
}

.unicore-breakout-canvas {
    width: 100%;
    max-height: calc(100vh - 340px);
    min-height: 420px;
    object-fit: contain;
    background: #05101b;
}

@media (max-width: 960px) {
    .unicore-quest-complete-overlay.is-egg-mode .unicore-quest-complete-dialog {
      width: calc(100% - 18px);
  }

    .unicore-breakout-canvas {
      min-height: 280px;
      max-height: calc(100vh - 300px);
  }
}

.unicore-breakout-canvas {
    cursor: none;
}

.unicore-egg-scorebox.is-wide strong::after {
    content: "  • Smooth mode";
    color: rgba(141, 230, 255, .75);
    font-size: .82em;
    font-weight: 600;
}

.card-illustration.has-logo {
    display: grid;
    place-items: center;
}

.card-illustration.has-logo::before {
    z-index: 0;
}

.card-illustration.has-logo::after {
    z-index: 1;
}

.card-logo {
    position: relative;
    z-index: 2;
    max-width: 84%;
    max-height: 84%;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.42)) drop-shadow(0 0 16px rgba(111, 244, 255, .16));
    transition: transform 240ms ease, filter 240ms ease, opacity 240ms ease;
    opacity: .96;
}

.unicore-field-card:hover .card-logo,
.unicore-field-card:focus-visible .card-logo,
.unicore-field-card.is-selected .card-logo {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 16px 30px rgba(0,0,0,.46)) drop-shadow(0 0 22px rgba(121, 247, 255, .22));
}

.card-logo-vistaport {
    max-width: 66%;
    max-height: 76%;
    transform: translateY(6px);
}

.card-logo-webcore {
    max-width: 94%;
    max-height: 94%;
    transform: rotate(-11deg) scale(1.02);
    filter: drop-shadow(0 14px 26px rgba(0,0,0,.4)) drop-shadow(0 0 18px rgba(90, 213, 255, .22));
}

.card-logo-unicore {
    filter: brightness(1.08) drop-shadow(0 18px 28px rgba(0,0,0,.48)) drop-shadow(0 0 18px rgba(134, 241, 255, .18));
}

.card-logo-codicom {
    max-width: 90%;
    max-height: 76%;
    transform: translateY(10px) scale(1.04);
}

.card-logo-wwcore {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: .86;
    text-align: center;
    font-family: 'Segoe UI', 'Trebuchet MS', system-ui, sans-serif;
    text-shadow: 0 6px 18px rgba(0,0,0,.42), 0 0 18px rgba(175, 255, 212, .14);
}

.card-logo-wwcore .is-ww {
    font-size: .92rem;
    letter-spacing: .2em;
    text-transform: lowercase;
    color: rgba(239, 235, 213, .95);
}

.card-logo-wwcore .is-core {
    font-size: clamp(1.28rem, 1.6vw, 1.8rem);
    letter-spacing: .16em;
    font-weight: 900;
    color: #fff0bb;
}

.card-illustration.is-vistaport::after {
    width: 120px;
    height: 120px;
    opacity: .54;
    filter: blur(1px);
}

.card-illustration.is-webcore::after {
    opacity: .88;
}

.card-illustration.is-welcome::after {
    background: radial-gradient(circle at 50% 52%, rgba(255,243,177,0.30), transparent 38%),
    linear-gradient(180deg, rgba(119,248,255,0.10), transparent);
}

.card-illustration.is-codicom::after {
    opacity: .72;
}

.card-illustration.is-wwcore::after {
    width: 104px;
    height: 118px;
    opacity: .26;
}

.unicore-game-controls b {
    min-width: 40px;
    width: auto;
    padding: 0 8px;
    border-radius: 999px;
    font-size: .86rem;
}

.card-logo-unicore {
    max-width: 88%;
    max-height: 84%;
    transform: translateY(-1px) scale(1.0);
}

.card-logo-wwcore-image {
    max-width: 92%;
    max-height: 76%;
    transform: translateY(3px) scale(1.01);
    filter: brightness(1.04) drop-shadow(0 16px 26px rgba(0,0,0,.46)) drop-shadow(0 0 18px rgba(170, 255, 214, .14));
}

.quest-start-button,
.vp-mock-button.is-start-quest {
    justify-content: center;
}

.quest-start-button .quest-start-sigil,
.vp-mock-button.is-start-quest b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    min-width: 1.2rem;
}

.quest-start-button > span:last-child,
.vp-mock-button.is-start-quest > span:last-child {
    display: block;
}

.quest-start-button,
.vp-mock-button.is-start-quest {
    display: inline-grid !important;
    grid-template-columns: 1.2rem auto 1.2rem;
    align-items: center;
    justify-items: center;
    column-gap: 12px;
    min-width: 176px;
    padding: 11px 16px;
    text-align: center;
}

.quest-start-button::after,
.vp-mock-button.is-start-quest::after {
    content: "" !important;
    display: block;
    position: static;
    width: 1.2rem;
    min-width: 1.2rem;
    height: 1px;
    opacity: 0;
    transform: none;
    grid-column: 3;
}

.quest-start-button .quest-start-sigil,
.vp-mock-button.is-start-quest b {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    grid-column: 1;
    margin: 0;
}

.quest-start-button > span:last-child,
.vp-mock-button.is-start-quest > span:last-child {
    grid-column: 2;
    width: auto;
    padding: 0;
    text-align: center;
    justify-self: center;
}

.vp-mock-button.is-start-quest {
    display: inline-grid !important;
    grid-template-columns: 28px auto 28px;
    align-items: center;
    justify-items: center;
    column-gap: 12px;
    min-width: 182px;
    padding: 11px 18px;
    text-align: center;
}

.vp-mock-button.is-start-quest::after {
    content: "" !important;
    position: static;
    display: block;
    width: 28px;
    min-width: 28px;
    height: 28px;
    opacity: 0;
    pointer-events: none;
    transform: none;
    margin: 0;
    grid-column: 3;
}

.vp-mock-button.is-start-quest b {
    grid-column: 1;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    justify-self: center;
    align-self: center;
}

.vp-mock-button.is-start-quest > span:last-child {
    grid-column: 2;
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    margin: 0;
    text-align: center;
    justify-self: center;
    line-height: 1.1;
}

.start-quest-pill,
.vp-panel-actions .start-quest-pill,
.webcore-map-controls .start-quest-pill,
.codicom-v3-controls .start-quest-pill,
.wwcore-ceremony-controls .start-quest-pill,
.unicore-welcome-actions .start-quest-pill {
    appearance: none !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    width: 188px !important;
    min-width: 188px !important;
    max-width: 188px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(231, 212, 142, 0.72) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, rgba(46, 80, 136, 0.98), rgba(17, 35, 68, 0.98)) !important;
    color: #fff7e3 !important;
    font: inherit !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.12em !important;
    text-align: center !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7) !important;
    cursor: pointer !important;
    box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset, 0 18px 34px rgba(0,0,0,.28), 0 0 28px rgba(109, 184, 255, .20) !important;
    animation: questButtonFloat 3.4s ease-in-out infinite !important;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, border-color 180ms ease !important;
}

.start-quest-pill::before,
.vp-panel-actions .start-quest-pill::before,
.webcore-map-controls .start-quest-pill::before,
.codicom-v3-controls .start-quest-pill::before,
.wwcore-ceremony-controls .start-quest-pill::before,
.unicore-welcome-actions .start-quest-pill::before {
    content: "" !important;
    position: absolute !important;
    inset: 1px !important;
    z-index: 1 !important;
    display: block !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.16) 18%, rgba(255,255,255,.04) 35%, transparent 52%), radial-gradient(circle at 18% 40%, rgba(187, 237, 255, .22), transparent 28%) !important;
    transform: translateX(-120%) !important;
    animation: questButtonShimmer 3.6s linear infinite !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.start-quest-pill::after,
.vp-panel-actions .start-quest-pill::after,
.webcore-map-controls .start-quest-pill::after,
.codicom-v3-controls .start-quest-pill::after,
.wwcore-ceremony-controls .start-quest-pill::after,
.unicore-welcome-actions .start-quest-pill::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: inherit !important;
    background: radial-gradient(circle at 50% 0%, rgba(255, 247, 206, .18), transparent 44%) !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.start-quest-pill:hover,
.start-quest-pill:focus-visible,
.vp-panel-actions .start-quest-pill:hover,
.vp-panel-actions .start-quest-pill:focus-visible,
.webcore-map-controls .start-quest-pill:hover,
.webcore-map-controls .start-quest-pill:focus-visible,
.codicom-v3-controls .start-quest-pill:hover,
.codicom-v3-controls .start-quest-pill:focus-visible,
.wwcore-ceremony-controls .start-quest-pill:hover,
.wwcore-ceremony-controls .start-quest-pill:focus-visible,
.unicore-welcome-actions .start-quest-pill:hover,
.unicore-welcome-actions .start-quest-pill:focus-visible {
    transform: translateY(-3px) scale(1.02) !important;
    border-color: rgba(255, 231, 163, .92) !important;
    filter: brightness(1.05) !important;
    color: #fff7e3 !important;
    box-shadow: 0 20px 36px rgba(0,0,0,.32), 0 0 42px rgba(126, 206, 255, .28), 0 0 16px rgba(255, 225, 135, .16) !important;
}

.start-quest-pill__label,
.vp-panel-actions .start-quest-pill__label,
.webcore-map-controls .start-quest-pill__label,
.codicom-v3-controls .start-quest-pill__label,
.wwcore-ceremony-controls .start-quest-pill__label,
.unicore-welcome-actions .start-quest-pill__label {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    font: inherit !important;
    line-height: 1 !important;
    letter-spacing: inherit !important;
    text-align: center !important;
    white-space: nowrap !important;
    transform: none !important;
    pointer-events: none !important;
}

.start-quest-pill__icon,
.vp-panel-actions .start-quest-pill__icon,
.webcore-map-controls .start-quest-pill__icon,
.codicom-v3-controls .start-quest-pill__icon,
.wwcore-ceremony-controls .start-quest-pill__icon,
.unicore-welcome-actions .start-quest-pill__icon {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(255, 245, 200, .96) !important;
    font: inherit !important;
    font-size: 0.96rem !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    text-shadow: 0 0 12px rgba(255, 236, 166, .66) !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
}

.unicore-game-controls {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100vw - 64px);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.unicore-game-controls span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.unicore-game-controls span[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .unicore-game-controls {
      gap: 12px;
      max-width: calc(100vw - 40px);
  }

    .unicore-game-controls span {
      font-size: 0.82rem;
  }

    .unicore-game-controls b {
      min-width: 36px;
      padding: 0 7px;
  }
}

@media (max-width: 820px) {
    .unicore-game-controls {
      gap: 10px;
      max-width: calc(100vw - 28px);
  }

    .unicore-game-controls span {
      font-size: 0.74rem;
  }

    .unicore-game-controls b {
      min-width: 32px;
      margin-right: 6px;
      padding: 0 6px;
  }
}

.digital-realms-experience {
    --dr-accent: #69b9ff;
    --dr-accent-2: #8c72ff;
    position: fixed;
    inset: 0;
    z-index: 245;
    color: #f5f2ff;
    transition: opacity 360ms ease, transform 520ms cubic-bezier(.19,1,.22,1);
    overflow: hidden;
}

.digital-realms-experience::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0.025) 50%, rgba(0,0,0,0.055) 50%),
    radial-gradient(circle at 50% 52%, transparent 0 58%, rgba(0,0,0,.28) 100%);
    background-size: 100% 3px, 100% 100%;
    mix-blend-mode: screen;
    opacity: .36;
    z-index: 5;
}

.digital-realms-experience::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(158,183,255,.36);
    border-radius: 12px;
    box-shadow: inset 0 0 80px rgba(65,102,255,.12), inset 0 0 0 1px rgba(255,255,255,.04);
    z-index: 6;
}

.digital-realms-close {
    position: fixed;
    z-index: 20;
    border: 1px solid rgba(164,190,255,.30);
    border-radius: 50%;
    color: #f4efff;
    background: rgba(9,14,35,.56);
    box-shadow: 0 12px 32px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.digital-realms-close:hover {
    transform: scale(1.06);
    border-color: color-mix(in srgb, var(--dr-accent) 70%, white);
    box-shadow: 0 0 30px color-mix(in srgb, var(--dr-accent) 45%, transparent);
}

.digital-realms-world {
    position: absolute;
    inset: 0;
    isolation: isolate;
    overflow: hidden;
}

.digital-realms-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(102,132,255,.14), transparent) 0 96px / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(102,132,255,.12), transparent) 0 calc(100% - 74px) / 100% 1px no-repeat;
    z-index: 4;
}

.digital-realms-topbar {
    position: absolute;
    display: grid;
    grid-template-columns: minmax(230px, .72fr) 1fr minmax(170px, .35fr);
    align-items: center;
}

.digital-realms-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #f7f4ff;
    font-weight: 900;
}

.digital-realms-logo {
    width: 34px;
    height: 34px;
    display: inline-block;
    background: conic-gradient(from 45deg, #6be2ff, #7a62ff, #b146ff, #233cff, #6be2ff);
    clip-path: polygon(50% 0, 90% 24%, 90% 74%, 50% 100%, 10% 74%, 10% 24%);
    box-shadow: 0 0 28px color-mix(in srgb, var(--dr-accent) 44%, transparent);
}

.digital-realms-logo::after {
    content: "";
    display: block;
    width: 46%;
    height: 46%;
    margin: 27%;
    background: #040915;
    clip-path: inherit;
}

.digital-realms-nav {
    justify-self: center;
    display: flex;
    color: rgba(236,240,255,.82);
    font-weight: 800;
    letter-spacing: .13em;
}

.digital-realms-nav span {
    position: relative;
}

.digital-realms-nav .is-active {
    color: #95b9ff;
}

.digital-realms-nav .is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 76px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--dr-accent), transparent);
    box-shadow: 0 0 18px var(--dr-accent);
}

.digital-realms-connect {
    justify-self: end;
    border: 1px solid rgba(141,126,255,.55);
    border-radius: 10px;
    color: #ebeaff;
    background: linear-gradient(135deg, rgba(28,48,148,.82), rgba(91,26,165,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 30px rgba(0,0,0,.28), 0 0 24px rgba(98,72,255,.18);
    font-size: .78rem;
    letter-spacing: .08em;
    font-weight: 900;
    cursor: pointer;
}

.digital-realms-hero {
    position: absolute;
    z-index: 10;
}

.digital-realms-kicker {
    display: block;
    margin-bottom: 16px;
    color: #a9b6ff;
    font-size: .88rem;
    letter-spacing: .14em;
    font-weight: 900;
    text-transform: uppercase;
}

.digital-realms-hero h2 {
    margin: 0;
    color: #f7f1ff;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: .83;
    letter-spacing: -.05em;
    text-shadow: 0 0 32px rgba(122,152,255,.18), 0 8px 36px rgba(0,0,0,.38);
}

.digital-realms-hero p {
    color: rgba(236,241,255,.86);
    line-height: 1.55;
}

.digital-realms-hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.digital-realms-hero-actions button,
.digital-realms-info-actions button {
    border: 1px solid rgba(158,183,255,.28);
    border-radius: 10px;
    color: #f5f4ff;
    background: rgba(11,17,42,.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px rgba(0,0,0,.26);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .08em;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.digital-realms-hero-actions .dr-primary,
.digital-realms-info-actions .is-open {
    background: linear-gradient(135deg, rgba(35,94,225,.95), rgba(136,43,220,.95));
    border-color: color-mix(in srgb, var(--dr-accent) 55%, #8f60ff);
    box-shadow: 0 0 28px color-mix(in srgb, var(--dr-accent) 22%, transparent), inset 0 1px 0 rgba(255,255,255,.16);
}

.digital-realms-hero-actions button:hover,
.digital-realms-info-actions button:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--dr-accent) 70%, white);
    box-shadow: 0 0 30px color-mix(in srgb, var(--dr-accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}

.digital-realms-map-shell {
    display: grid;
    place-items: center;
    pointer-events: none;
}

.digital-realms-map-wrap {
    position: absolute;
    pointer-events: auto;
}

.digital-realms-svg {
    display: block;
}

.digital-realms-camera {
    transform-box: fill-box;
    transform-origin: center;
}

.dr-routes path {
    fill: none;
    stroke: url(#drNebulaA);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 4 10;
    stroke: #8e82ff;
    stroke-opacity: .62;
    filter: url(#drSoftGlow);
}

.dr-routes .is-faint {
    stroke-opacity: .14;
    stroke-dasharray: none;
}

.dr-stars circle {
    fill: #fff;
    opacity: .74;
    animation: drStarPulse 4.2s ease-in-out infinite;
}

.dr-stars circle:nth-child(3n) {
    animation-duration: 5.4s;
    opacity: .45;
}

.dr-stars circle:nth-child(4n) {
    animation-duration: 3.6s;
    opacity: .86;
}

@keyframes drStarPulse {
    0%, 100% {
      opacity: .32;
      transform: scale(.8);
  }

    50% {
      opacity: .92;
      transform: scale(1.18);
  }
}

.dr-realm-node {
    cursor: pointer;
    outline: none;
}

.dr-island-float {
    transform-box: fill-box;
    transform-origin: center;
    transition: filter 300ms ease;
    animation: drIslandFloat 5.6s ease-in-out infinite;
}

.dr-realm-node:nth-of-type(2n) .dr-island-float {
    animation-duration: 6.5s;
    animation-delay: -.8s;
}

.dr-realm-node:nth-of-type(3n) .dr-island-float {
    animation-duration: 7.2s;
    animation-delay: -1.2s;
}

@keyframes drIslandFloat {
    0%, 100% {
      translate: 0 0;
  }

    50% {
      translate: 0 -9px;
  }
}

.dr-island-base {
    fill: #151d45;
    stroke: rgba(195,222,255,.16);
    stroke-width: 2;
}

.dr-island-cliff {
    fill: #080b1d;
    opacity: .92;
}

.dr-spire {
    fill: #dbe8ff;
    opacity: .88;
}

.dr-spire.is-mid {
    fill: var(--dr-accent);
    opacity: .75;
}

.dr-spire.is-right {
    fill: var(--dr-accent-2);
    opacity: .68;
}

.dr-platform-glow {
    fill: var(--dr-accent);
    opacity: .28;
}

.dr-portal-outer {
    fill: var(--dr-accent);
    opacity: .78;
    filter: url(#drSoftGlow);
}

.dr-portal-inner {
    fill: #eaffff;
    opacity: .92;
}

.dr-portal-step,
.dr-orbit-ring {
    fill: none;
    stroke: var(--dr-accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    opacity: .62;
}

.dr-orbit-ring {
    stroke-width: 1.5;
    opacity: .15;
}

.dr-orbit-ring.is-wide {
    stroke: var(--dr-accent-2);
    opacity: .11;
}

.dr-realm-label {
    transition: transform 260ms ease, opacity 260ms ease;
}

.dr-node-number {
    fill: #91a5ff;
    font-size: 20px;
    font-weight: 800;
}

.dr-node-title {
    fill: #f6f1ff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
}

.dr-node-type {
    fill: rgba(231,237,255,.78);
    font-size: 17px;
}

.dr-node-arrow circle {
    fill: rgba(12,18,48,.82);
    stroke: rgba(165,193,255,.34);
    stroke-width: 1.2;
}

.dr-node-arrow path {
    fill: none;
    stroke: #e9f2ff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dr-realm-node:hover .dr-island-float,
.dr-realm-node:focus-visible .dr-island-float,
.dr-realm-node.is-active .dr-island-float {
    filter: url(#drSoftGlow);
}

.dr-realm-node.is-active .dr-portal-outer {
    opacity: .98;
}

.dr-realm-node.is-active .dr-node-arrow circle {
    fill: rgba(40,62,160,.94);
    stroke: color-mix(in srgb, var(--dr-accent) 65%, white);
}

.digital-realms-journey,
.digital-realms-quote,
.digital-realms-info,
.digital-realms-featured {
    position: absolute;
    z-index: 11;
    border: 1px solid rgba(154,178,255,.22);
    background: linear-gradient(180deg, rgba(17,25,62,.68), rgba(8,12,31,.58));
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 42px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.10);
}

.digital-realms-journey {
    bottom: 92px;
    border-radius: 16px;
}

.digital-realms-journey span,
.digital-realms-featured-title {
    display: block;
    margin-bottom: 17px;
    color: #acb8ff;
    font-size: .76rem;
    letter-spacing: .16em;
    font-weight: 900;
}

.digital-realms-journey strong {
    display: block;
    color: #fff;
    font-size: 1.18rem;
    letter-spacing: .08em;
}

.digital-realms-journey strong em {
    font-style: normal;
}

.digital-realms-progress {
    width: 100%;
    height: 5px;
    margin: 14px 0 28px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(117,145,255,.15);
}

.digital-realms-progress i {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dr-accent), #e6ecff);
    box-shadow: 0 0 14px var(--dr-accent);
    transition: width 360ms ease;
}

.digital-realms-journey small {
    display: block;
    margin-bottom: 7px;
    color: rgba(232,237,255,.68);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.digital-realms-journey b {
    color: #f3f1ff;
    font-size: .88rem;
}

.digital-realms-quote {
    bottom: 92px;
    border-radius: 16px;
}

.digital-realms-quote b {
    color: #9ca8ff;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: .55;
}

.digital-realms-quote p {
    margin: 16px 0 22px;
    color: rgba(235,238,255,.86);
    font-size: 1rem;
    line-height: 1.45;
}

.digital-realms-quote small {
    color: rgba(220,227,255,.58);
}

.digital-realms-info {
    border-radius: 18px;
}

.digital-realms-info span {
    font-weight: 900;
}

.digital-realms-info h3 {
    color: #fff7ff;
    font-family: Georgia, 'Times New Roman', serif;
}

.digital-realms-info strong {
    color: var(--dr-accent);
    font-size: .84rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.digital-realms-info p {
    margin: 13px 0 18px;
    color: rgba(236,240,255,.82);
    line-height: 1.45;
}

.digital-realms-info-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.digital-realms-info-actions button {
    min-height: 36px;
    padding: 0 13px;
    font-size: .7rem;
}

.digital-realms-featured {
    bottom: 92px;
    border-radius: 16px;
}

.digital-realms-card {
    padding: 0;
    border: 1px solid rgba(151,174,255,.18);
    border-radius: 10px;
    color: #eaf0ff;
    background: rgba(7,12,31,.72);
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.digital-realms-card b {
    color: #8ea2ff;
    font-weight: 900;
}

.digital-realms-card:hover,
.digital-realms-card.is-active {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--dr-accent) 64%, white);
}

.digital-realms-side-tools {
    position: absolute;
    z-index: 12;
    top: 138px;
    right: 34px;
    display: grid;
    gap: 18px;
    padding: 18px 12px;
    border: 1px solid rgba(142,167,255,.18);
    border-radius: 30px;
    background: rgba(4,8,22,.46);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.digital-realms-side-tools span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: rgba(232,238,255,.84);
    border-radius: 50%;
}

.digital-realms-side-tools span:first-child {
    color: var(--dr-accent);
    box-shadow: 0 0 22px var(--dr-accent);
}

.digital-realms-controls {
    position: absolute;
    z-index: 14;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    color: #ede6c7;
    font-family: Georgia, serif;
    font-weight: 900;
    letter-spacing: .06em;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

.digital-realms-controls span {
    display: inline-flex;
    align-items: center;
}

.digital-realms-controls b {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 28px;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 999px;
    color: #071003;
    background: #7cff4a;
    box-shadow: 0 0 18px rgba(124,255,74,.48);
    font-size: .84rem;
}

@media (max-width: 920px) {
    .digital-realms-journey,
  .digital-realms-quote {
      display: none;
  }

    .digital-realms-controls b {
      min-width: 30px;
      height: 24px;
      padding: 0 6px;
  }
}

.digital-realms-map-wrap .digital-realms-svg {
    filter: saturate(1.04) brightness(1.02);
}

.digital-realms-map-wrap {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.digital-realms-svg {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
}

.digital-realms-camera {
    transition: none;
}

.dr-realm-node:hover .dr-island-float,
.dr-realm-node:focus-visible .dr-island-float {
    scale: 1.045;
    animation: drIslandFloat 5.6s ease-in-out infinite, drRealmGentlePop 720ms ease both;
}

.dr-realm-node.is-active .dr-island-float {
    scale: 1.055;
    animation: drIslandFloat 5.6s ease-in-out infinite;
}

@keyframes drRealmGentlePop {
    0% {
      translate: 0 0;
      rotate: 0deg;
  }

    22% {
      translate: 0 -5px;
      rotate: .7deg;
  }

    45% {
      translate: 1px -3px;
      rotate: -.55deg;
  }

    68% {
      translate: -1px -4px;
      rotate: .35deg;
  }

    100% {
      translate: 0 -3px;
      rotate: 0deg;
  }
}

@media (max-width: 920px) {
    .digital-realms-map-wrap {
      left: 0 !important;
      right: 0 !important;
      width: 100vw;
      height: 100vh;
  }
}

.dr-realm-label {
    will-change: opacity, filter;
}

.dr-realm-node:hover .dr-realm-label,
.dr-realm-node:focus-visible .dr-realm-label,
.dr-realm-node.is-active .dr-realm-label {
    opacity: 1;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--dr-accent) 34%, transparent));
}

.digital-realms-experience {
    --dr-pan-x: 0px;
    --dr-pan-y: 0px;
    --dr-zoom: 1;
}

.digital-realms-map-wrap {
    transform: translate3d(
      calc(var(--dr-pan-x, 0px) + var(--dr-mouse-x, 0px)),
      calc(var(--dr-pan-y, 0px) + var(--dr-mouse-y, 0px)),
      0
    )
    scale(var(--dr-zoom, 1)) !important;
    transform-origin: center center;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: transform 180ms ease-out, filter 220ms ease;
}

.digital-realms-map-wrap.is-dragging {
    cursor: grabbing;
    transition: none;
}

.digital-realms-experience.is-map-zoomed .digital-realms-map-wrap {
    filter: saturate(1.08) brightness(1.02);
}

.digital-realms-map-tools {
    position: absolute;
    z-index: 15;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(142,167,255,.22);
    border-radius: 18px;
    background: rgba(4,8,22,.48);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 36px rgba(0,0,0,.24);
}

.digital-realms-map-tools button {
    width: 42px;
    height: 34px;
    border: 1px solid rgba(160,188,255,.24);
    border-radius: 11px;
    color: #eef4ff;
    background: linear-gradient(180deg, rgba(24,35,86,.78), rgba(8,13,36,.72));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    font-weight: 950;
    font-size: .78rem;
    letter-spacing: .05em;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.digital-realms-map-tools button:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--dr-accent) 68%, white);
    box-shadow: 0 0 22px color-mix(in srgb, var(--dr-accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.16);
}

.dr-node-number,
.dr-node-title,
.dr-node-type,
.dr-node-arrow circle,
.dr-node-arrow path {
    transition: fill 180ms ease,
    stroke 180ms ease,
    opacity 180ms ease,
    letter-spacing 180ms ease,
    filter 180ms ease,
    stroke-dashoffset 260ms ease;
}

.dr-node-title {
    paint-order: stroke;
    stroke: rgba(6, 10, 24, .18);
    stroke-width: 1px;
}

.dr-node-arrow path {
    stroke-dasharray: 22;
    stroke-dashoffset: 0;
}

.dr-realm-node:hover .dr-node-title,
.dr-realm-node:focus-visible .dr-node-title,
.dr-realm-node.is-active .dr-node-title {
    letter-spacing: .018em;
    animation: drRealmTitleGlow 1.35s ease-in-out infinite;
}

.dr-realm-node:hover .dr-node-type,
.dr-realm-node:focus-visible .dr-node-type,
.dr-realm-node.is-active .dr-node-type {
    fill: rgba(246,250,255,.94);
}

.dr-realm-node:hover .dr-node-arrow circle,
.dr-realm-node:focus-visible .dr-node-arrow circle,
.dr-realm-node.is-active .dr-node-arrow circle {
    fill: rgba(38, 61, 154, .96);
}

.dr-realm-node:hover .dr-node-arrow path,
.dr-realm-node:focus-visible .dr-node-arrow path,
.dr-realm-node.is-active .dr-node-arrow path {
    stroke: #ffffff;
    stroke-dashoffset: -10;
}

@keyframes drRealmTitleGlow {
    0%, 100% {
      opacity: .94;
      filter: drop-shadow(0 0 9px color-mix(in srgb, var(--dr-accent) 44%, transparent))
      drop-shadow(0 0 18px color-mix(in srgb, var(--dr-accent-2) 24%, transparent));
  }

    50% {
      filter: drop-shadow(0 0 15px color-mix(in srgb, var(--dr-accent) 70%, transparent))
      drop-shadow(0 0 30px color-mix(in srgb, var(--dr-accent-2) 40%, transparent));
  }
}

.digital-realms-card.is-active span {
    color: #ffffff;
    text-shadow: 0 0 12px color-mix(in srgb, var(--dr-accent) 50%, transparent);
}

.digital-realms-experience {
    background: radial-gradient(circle at 48% 40%, rgba(38, 72, 255, .20), transparent 44%),
    radial-gradient(circle at 80% 12%, rgba(132, 64, 255, .20), transparent 36%),
    linear-gradient(180deg, #020611, #06102a 58%, #030612);
}

.digital-realms-infinite-bg {
    position: absolute;
    inset: -30vmax;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 42%, rgba(35, 73, 255, .32), transparent 36vmax),
    radial-gradient(circle at 72% 18%, rgba(137, 64, 255, .25), transparent 30vmax),
    radial-gradient(circle at 24% 76%, rgba(34, 205, 255, .16), transparent 30vmax),
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #020613 0%, #071333 52%, #030610 100%);
    transform: translate3d(calc(var(--dr-pan-x, 0px) * -0.025), calc(var(--dr-pan-y, 0px) * -0.025), 0);
}

.digital-realms-infinite-bg::before,
.digital-realms-infinite-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(145,169,255,.65) 0 1px, transparent 1.8px);
    background-size: 260px 180px, 380px 260px;
    background-position: 0 0, 80px 120px;
    opacity: .34;
    animation: drInfiniteStarDrift 42s linear infinite;
}

.digital-realms-infinite-bg::after {
    opacity: .20;
    background-size: 520px 360px, 680px 430px;
    animation-duration: 76s;
    animation-direction: reverse;
}

.dr-bg-orb {
    position: absolute;
    width: 44vmax;
    height: 44vmax;
    border-radius: 999px;
    filter: blur(38px);
    opacity: .45;
    mix-blend-mode: screen;
}

.dr-bg-orb.orb-a {
    left: 36%;
    top: 26%;
    background: radial-gradient(circle, rgba(68,110,255,.40), transparent 65%);
}

.dr-bg-orb.orb-b {
    right: 13%;
    top: 12%;
    background: radial-gradient(circle, rgba(154,77,255,.34), transparent 66%);
}

.dr-bg-orb.orb-c {
    left: 16%;
    bottom: 8%;
    background: radial-gradient(circle, rgba(33,204,255,.20), transparent 68%);
}

.dr-bg-star {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 0 18px rgba(150,185,255,.7);
    animation: drBgStarPulse 4.8s ease-in-out infinite;
}

.dr-bg-star.s1 {
    left: 13%;
    top: 22%;
}

.dr-bg-star.s2 {
    left: 31%;
    top: 18%;
    animation-delay: -.7s;
}

.dr-bg-star.s3 {
    left: 49%;
    top: 31%;
    animation-delay: -1.4s;
}

.dr-bg-star.s4 {
    left: 72%;
    top: 23%;
    animation-delay: -2.1s;
}

.dr-bg-star.s5 {
    left: 85%;
    top: 52%;
    animation-delay: -2.8s;
}

.dr-bg-star.s6 {
    left: 63%;
    top: 76%;
    animation-delay: -1.1s;
}

.dr-bg-star.s7 {
    left: 26%;
    top: 70%;
    animation-delay: -3.2s;
}

.dr-bg-star.s8 {
    left: 9%;
    top: 55%;
    animation-delay: -4s;
}

@keyframes drInfiniteStarDrift {
    from {
      background-position: 0 0, 80px 120px;
  }

    to {
      background-position: 780px 540px, -680px -430px;
  }
}

@keyframes drBgStarPulse {
    0%, 100% {
      opacity: .28;
      transform: scale(.75);
  }

    50% {
      opacity: 1;
      transform: scale(1.28);
  }
}

/* Local realm colors: each node carries --realm-accent / --realm-accent-2 from JS. */

.dr-realm-node .dr-spire.is-mid {
    fill: var(--realm-accent);
}

.dr-realm-node .dr-spire.is-right {
    fill: var(--realm-accent-2);
}

.dr-realm-node .dr-platform-glow {
    fill: var(--realm-accent);
}

.dr-realm-node .dr-portal-outer {
    fill: var(--realm-accent);
}

.dr-realm-node .dr-portal-step,
.dr-realm-node .dr-orbit-ring {
    stroke: var(--realm-accent);
}

.dr-realm-node .dr-orbit-ring.is-wide {
    stroke: var(--realm-accent-2);
}

.dr-realm-node:hover .dr-node-number,
.dr-realm-node:focus-visible .dr-node-number,
.dr-realm-node.is-active .dr-node-number {
    fill: var(--realm-accent);
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--realm-accent) 44%, transparent));
}

.dr-realm-node:hover .dr-node-title,
.dr-realm-node:focus-visible .dr-node-title,
.dr-realm-node.is-active .dr-node-title {
    fill: #ffffff;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--realm-accent) 50%, transparent))
    drop-shadow(0 0 22px color-mix(in srgb, var(--realm-accent-2) 30%, transparent));
}

.dr-realm-node:hover .dr-node-arrow circle,
.dr-realm-node:focus-visible .dr-node-arrow circle,
.dr-realm-node.is-active .dr-node-arrow circle {
    stroke: color-mix(in srgb, var(--realm-accent) 68%, white);
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--realm-accent) 48%, transparent));
}

.dr-realm-node.is-active .dr-island-base {
    stroke: color-mix(in srgb, var(--realm-accent) 55%, white);
}

.digital-realms-map-shell {
    z-index: 2;
}

.digital-realms-map-wrap {
    background: transparent !important;
}

.digital-realms-svg {
    background: transparent !important;
}

@keyframes drRealmTitleGlow {
    0%, 100% {
      opacity: .94;
      filter: drop-shadow(0 0 9px color-mix(in srgb, var(--realm-accent) 44%, transparent))
      drop-shadow(0 0 18px color-mix(in srgb, var(--realm-accent-2) 24%, transparent));
  }

    50% {
      filter: drop-shadow(0 0 15px color-mix(in srgb, var(--realm-accent) 70%, transparent))
      drop-shadow(0 0 30px color-mix(in srgb, var(--realm-accent-2) 40%, transparent));
  }
}

.digital-realms-map-shell,
.digital-realms-map-wrap,
.digital-realms-svg {
    background: transparent !important;
}

.digital-realms-svg rect[fill="#040915"] {
    display: none !important;
}

.digital-realms-brand strong small {
    margin-left: 8px;
    color: rgba(220, 230, 255, 0.66);
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: none;
}

.digital-realms-close {
    top: 28px;
    right: clamp(28px, 3.4vw, 62px);
    width: 46px;
    height: 46px;
}

@media (max-width: 1180px) {
    .digital-realms-topbar {
      right: 92px;
  }

    .digital-realms-close {
      top: 28px;
      right: 28px;
  }
}

.digital-realms-launch-card {
    border-color: rgba(128, 168, 255, .58) !important;
    box-shadow: 0 0 34px rgba(94, 137, 255, .35),
    0 0 72px rgba(133, 70, 255, .22),
    inset 0 1px 0 rgba(255,255,255,.16) !important;
    overflow: hidden !important;
}

.digital-realms-launch-card::after {
    content: "";
    position: absolute;
    inset: -30%;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.38), transparent 20%),
    linear-gradient(120deg, transparent 0 34%, rgba(166,210,255,.52) 46%, transparent 60%);
    opacity: 0;
    transform: translateX(-35%) rotate(8deg);
    transition: opacity 420ms ease, transform 780ms cubic-bezier(.16,1,.3,1);
}

.digital-realms-launch-card.is-flying {
    transform: translate3d(var(--unicore-launch-dx), var(--unicore-launch-dy), 0)
    scale(1.56)
    rotateY(-8deg)
    rotateZ(-2deg) !important;
    opacity: 0 !important;
    filter: blur(9px) saturate(1.42) brightness(1.48) !important;
}

.digital-realms-launch-card.is-flying::after {
    opacity: 1;
    transform: translateX(36%) rotate(8deg);
}

.digital-realms-experience.is-opening .digital-realms-world {
    animation: digitalRealmsWorldOpen 920ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes digitalRealmsWorldOpen {
    0% {
      opacity: 0;
      transform: scale(1.035);
      filter: blur(12px) brightness(1.35);
  }

    45% {
      opacity: .84;
      filter: blur(4px) brightness(1.16);
  }

    100% {
      transform: scale(1);
      filter: none;
  }
}

.digital-realms-experience.is-preparing {
    opacity: 0 !important;
    pointer-events: none;
}

.digital-realms-experience.is-preparing .digital-realms-map-wrap {
    animation: none !important;
    transition: none !important;
}

.digital-realms-experience.is-opening .digital-realms-map-wrap {
    animation: none !important;
}

.digital-realms-experience {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(0) scale(1);
    contain: layout paint style;
    will-change: opacity;
}

.digital-realms-experience[hidden] {
    display: block !important;
}

.digital-realms-experience.is-prewarmed,
.digital-realms-experience[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}

.digital-realms-experience.is-visible {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateZ(0) scale(1);
}

.digital-realms-experience.is-closing {
    visibility: visible;
    pointer-events: none;
    opacity: 0;
    transform: translateZ(0) scale(1);
}

.digital-realms-world,
.digital-realms-map-shell,
.digital-realms-map-wrap,
.digital-realms-svg,
.digital-realms-camera {
    backface-visibility: hidden;
    transform-style: flat;
    will-change: auto;
}

.digital-realms-experience.is-opening .digital-realms-world,
.digital-realms-experience.is-opening .digital-realms-map-wrap,
.digital-realms-experience.is-opening .digital-realms-camera {
    animation: none !important;
    filter: none !important;
}

@keyframes drIslandLogoEntrance {
    0% {
      opacity: 0;
  }

    45% {
      opacity: .82;
  }

    100% {
      opacity: 1;
  }
}

.digital-realms-card:hover .digital-realms-card-logo-stage,
.digital-realms-card.is-active 
.digital-realms-card:hover .digital-realms-card-logo-stage::before,
.digital-realms-card.is-active 

/* v167 Digital Realms logo refinement */
.dr-island-logo-badge {
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes drIslandLogoEntrance {
    0% {
      opacity: 0;
      transform: translateY(10px) scale(.92);
  }

    55% {
      opacity: .92;
      transform: translateY(0) scale(1.02);
  }

    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
  }
}

.digital-realms-card {
    overflow: hidden;
}

.digital-realms-card-preview {
    display: block;
    height: 92px;
}

.digital-realms-card-art {
    display: block;
    width: 100%;
    height: 92px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.18) translateY(-2px);
    filter: saturate(.96) brightness(.82);
    transition: transform 220ms ease, filter 180ms ease;
}

.digital-realms-card-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(6,10,28,0) 0%, rgba(6,10,28,.08) 32%, rgba(6,10,28,.44) 72%, rgba(6,10,28,.88) 100%);
}

.digital-realms-card-logo-stage {
    position: absolute;
    left: 12px;
    right: 12px;
    display: grid;
}

.digital-realms-card-logo-stage::before {
    display: none;
}

.digital-realms-card-logo {
    display: block;
    transition: transform 220ms ease, filter 180ms ease, opacity 180ms ease;
}

.digital-realms-card-caption {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 12px 10px;
    font-size: .78rem;
    background: linear-gradient(180deg, rgba(6, 10, 26, .82), rgba(5, 8, 20, .96));
    border-top: 1px solid rgba(156,180,255,.12);
}

.digital-realms-card:hover .digital-realms-card-art,
.digital-realms-card.is-active .digital-realms-card-art {
    transform: scale(1.24) translateY(-3px);
    filter: saturate(1.14) brightness(.98);
}

.digital-realms-card:hover .digital-realms-card-logo-stage,
.digital-realms-card.is-active .digital-realms-card-logo-stage {
    opacity: 1;
}

.dr-island-logo-badge {
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease, filter 260ms ease;
}

.dr-island-logo-pill {
    stroke: color-mix(in srgb, var(--realm-accent) 50%, white);
    stroke-width: 1.2;
}

.dr-realm-node:hover .dr-island-logo-badge,
.dr-realm-node:focus-visible .dr-island-logo-badge,
.dr-realm-node.is-active .dr-island-logo-badge {
    animation: drIslandLogoEntrance 520ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes drIslandLogoEntrance {
    0% {
      opacity: 0;
  }

    45% {
      opacity: .82;
  }

    100% {
      opacity: 1;
  }
}

/* Keep the Featured Realms design, just make the logos ~20% bigger */

.digital-realms-card-logo {
    width: min(96%, 264px);
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* Panevi Group and Pavel Pavlov map island logo pills */

#dr-realm-panevi .dr-island-logo-pill,
#dr-realm-pavel .dr-island-logo-pill {
    fill: #252525;
}

/* Pavel Pavlov logo in Featured Realms: bigger, but clipped safely inside its card */

.digital-realms-card[data-dr-index="3"] .digital-realms-card-preview {
    overflow: hidden;
}

.digital-realms-card[data-dr-index="3"] .digital-realms-card-logo-stage {
    left: 6px;
    right: 6px;
    top: 2px;
    bottom: 2px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.98) 0%, rgba(0,0,0,.96) 54%, rgba(0,0,0,.70) 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.98) 0%, rgba(0,0,0,.96) 54%, rgba(0,0,0,.70) 78%, transparent 100%);
}

.digital-realms-card[data-dr-index="3"] .digital-realms-card-logo {
    width: 100%;
    height: 94px;
    max-height: 94px;
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(14px) scale(1);
}

.digital-realms-card[data-dr-index="3"]:hover .digital-realms-card-logo,
.digital-realms-card[data-dr-index="3"].is-active .digital-realms-card-logo {
    transform: translateY(10px) scale(1.03);
}

.digital-realms-side-tools {
    pointer-events: auto;
}

.digital-realms-side-tools button,
.digital-realms-side-tools span {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    color: rgba(232,238,255,.84);
    border-radius: 50%;
    background: transparent;
    font: inherit;
    line-height: 1;
}

.digital-realms-side-tools button {
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.digital-realms-side-tools button:first-child {
    color: var(--dr-accent);
    box-shadow: 0 0 22px var(--dr-accent);
    background: rgba(7, 14, 36, .46);
}

.digital-realms-side-tools button:hover,
.digital-realms-side-tools button:focus-visible {
    transform: scale(1.12);
    outline: none;
    color: #ffffff;
    background: rgba(23, 38, 94, .70);
    box-shadow: 0 0 22px color-mix(in srgb, var(--dr-accent) 52%, transparent);
}

.digital-realms-side-tools button:active {
    transform: scale(.96);
}

.digital-realms-nav button {
    position: relative;
    appearance: none;
    border: 0;
    padding: 0;
    color: rgba(236,240,255,.82);
    background: transparent;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .13em;
    cursor: pointer;
}

.digital-realms-nav button.is-active {
    color: #95b9ff;
}

.digital-realms-nav button.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 76px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--dr-accent), transparent);
    box-shadow: 0 0 18px var(--dr-accent);
}

.digital-realms-experience.is-journal .digital-realms-hero,
.digital-realms-experience.is-journal .digital-realms-map-shell,
.digital-realms-experience.is-journal .digital-realms-journey,
.digital-realms-experience.is-journal .digital-realms-quote,
.digital-realms-experience.is-journal .digital-realms-info,
.digital-realms-experience.is-journal .digital-realms-featured,
.digital-realms-experience.is-journal .digital-realms-side-tools,
.digital-realms-experience.is-journal .digital-realms-map-tools {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 260ms ease, transform 300ms ease;
}

.digital-realms-journal-screen {
    position: absolute;
    inset: 0;
    z-index: 13;
    display: grid;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 360ms ease, transform 420ms cubic-bezier(.16,1,.3,1);
}

.digital-realms-experience.is-journal .digital-realms-journal-screen {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.digital-realms-journal-head {
    padding-left: clamp(64px, 7vw, 128px);
    padding-right: clamp(48px, 6vw, 110px);
}

.digital-realms-journal-head span {
    display: block;
    color: #a9b6ff;
    font-size: .82rem;
    letter-spacing: .17em;
    font-weight: 950;
    text-transform: uppercase;
}

.digital-realms-journal-head h2 {
    margin: 12px 0 10px;
    color: #f8f3ff;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: .9;
    letter-spacing: -.045em;
    text-shadow: 0 0 32px rgba(122,152,255,.18), 0 8px 36px rgba(0,0,0,.38);
}

.digital-realms-journal-head p {
    margin: 0;
    color: rgba(236,241,255,.78);
    font-size: clamp(15px, 1.02vw, 19px);
    line-height: 1.55;
}

.digital-realms-journal-viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 82%, transparent 100%);
}

.digital-realms-journal-viewport::-webkit-scrollbar {
    display: none;
}

.digital-realms-journal-track {
    display: flex;
    gap: 34px;
    width: max-content;
}

.digital-realms-journal-card {
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(160,184,255,.22);
    border-radius: 28px;
    color: #f4f2ff;
    background: radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--realm-accent) 26%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(17,25,62,.78), rgba(7,11,30,.88));
    box-shadow: 0 30px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12);
    transform: translateZ(0);
}

.digital-realms-journal-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(5,8,22,.84));
    z-index: 2;
}

.digital-realms-journal-logo {
    position: absolute;
}

.digital-realms-journal-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: .92;
    letter-spacing: -.03em;
}

.digital-realms-journal-card strong {
    color: rgba(240,245,255,.84);
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.digital-realms-journal-card p {
    color: rgba(236,240,255,.82);
    line-height: 1.5;
}

.digital-realms-journal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.digital-realms-journal-actions button,
.digital-realms-journal-controls button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(158,183,255,.28);
    border-radius: 999px;
    color: #f5f4ff;
    background: rgba(9,14,36,.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px rgba(0,0,0,.22);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .08em;
    font-size: .72rem;
}

.digital-realms-journal-actions button:hover,
.digital-realms-journal-controls button:hover {
    border-color: color-mix(in srgb, var(--dr-accent) 70%, white);
    box-shadow: 0 0 24px color-mix(in srgb, var(--dr-accent) 26%, transparent), inset 0 1px 0 rgba(255,255,255,.14);
}

.digital-realms-journal-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 16;
}

.digital-realms-journal-controls button:first-child,
.digital-realms-journal-controls button:last-child {
    width: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
}

@media (max-width: 920px) {
    .digital-realms-journal-head {
      padding-left: 28px;
  }

    .digital-realms-journal-card p {
      width: 100%;
  }
}

.digital-realms-topbar {
    z-index: 30;
}

.digital-realms-experience.is-journal .digital-realms-controls {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.digital-realms-experience.is-journal .digital-realms-topbar,
.digital-realms-experience.is-journal .digital-realms-nav,
.digital-realms-experience.is-journal .digital-realms-nav button {
    pointer-events: auto;
}

.digital-realms-journal-screen {
    padding-top: 112px;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.digital-realms-journal-head h2 {
    font-size: clamp(48px, 5vw, 82px);
}

.digital-realms-journal-head p {
    width: min(760px, 58vw);
}

.digital-realms-journal-viewport {
    margin-top: 26px;
    min-height: 0;
}

.digital-realms-journal-track {
    padding-left: 30vw;
    padding-right: 30vw;
    padding-bottom: 72px;
    align-items: stretch;
}

.digital-realms-journal-card {
    width: clamp(680px, 58vw, 980px);
    height: clamp(540px, 68vh, 720px);
}

.digital-realms-journal-card h3 {
    font-size: clamp(52px, 5vw, 82px);
}

.digital-realms-journal-card p {
    font-size: 1.02rem;
}

.digital-realms-journal-controls {
    bottom: 28px;
}

@media (max-width: 920px) {
    .digital-realms-journal-track {
      padding-left: 22vw;
      padding-right: 22vw;
  }

    .digital-realms-journal-card {
      width: 82vw;
      height: 62vh;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-viewport {
      scroll-padding-left: 22vw;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card:first-child {
      margin-left: 0 !important;
  }
}

.digital-realms-journal-body {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.digital-realms-experience.is-journal .digital-realms-journal-viewport {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 82%, transparent 100%);
}

/* Hide every non-Journal map layer so nothing can bleed through the cards. */

.digital-realms-experience.is-journal .digital-realms-hero,
.digital-realms-experience.is-journal .digital-realms-map-shell,
.digital-realms-experience.is-journal .digital-realms-journey,
.digital-realms-experience.is-journal .digital-realms-quote,
.digital-realms-experience.is-journal .digital-realms-info,
.digital-realms-experience.is-journal .digital-realms-featured,
.digital-realms-experience.is-journal .digital-realms-side-tools,
.digital-realms-experience.is-journal .digital-realms-map-tools,
.digital-realms-experience.is-journal .digital-realms-controls {
    display: none !important;
}

.digital-realms-journal-card {
    isolation: isolate;
}

.digital-realms-journal-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.digital-realms-journal-nebula {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 58% 34%, color-mix(in srgb, var(--realm-accent) 22%, transparent), transparent 34%),
    radial-gradient(circle at 32% 78%, rgba(64, 126, 255, .16), transparent 34%),
    linear-gradient(180deg, rgba(4, 8, 23, .06), rgba(4, 8, 23, .38));
    opacity: .82;
}

.digital-realms-journal-island-svg {
    position: absolute;
    left: 50%;
    top: 49%;
    width: min(58%, 520px);
    height: min(58%, 440px);
    transform: translate(-50%, -50%) scale(1.18);
    opacity: .58;
    filter: drop-shadow(0 28px 38px rgba(0,0,0,.26));
    z-index: 1;
}

.dr-journal-island-shadow {
    fill: var(--realm-accent);
    opacity: .16;
}

.dr-journal-island-base {
    fill: #151d45;
    stroke: rgba(195,222,255,.16);
    stroke-width: 2;
}

.dr-journal-island-cliff {
    fill: #080b1d;
    opacity: .92;
}

.dr-journal-spire {
    fill: #dbe8ff;
    opacity: .88;
}

.dr-journal-spire.is-mid {
    fill: var(--realm-accent);
    opacity: .75;
}

.dr-journal-spire.is-right {
    fill: var(--realm-accent-2);
    opacity: .68;
}

.dr-journal-platform-glow {
    fill: var(--realm-accent);
    opacity: .28;
}

.dr-journal-portal-outer {
    fill: var(--realm-accent);
    opacity: .78;
    filter: drop-shadow(0 0 18px var(--realm-accent));
}

.dr-journal-portal-inner {
    fill: #eaffff;
    opacity: .92;
}

.dr-journal-portal-step,
.dr-journal-orbit {
    fill: none;
    stroke: var(--realm-accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    opacity: .62;
}

.dr-journal-orbit {
    stroke-width: 1.5;
    opacity: .15;
}

.dr-journal-orbit.is-wide {
    stroke: var(--realm-accent-2);
    opacity: .11;
}

.digital-realms-journal-logo {
    top: 86px !important;
    left: 34px !important;
    width: min(540px, 68%) !important;
    height: 190px !important;
    display: grid;
    place-items: center start;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    z-index: 4 !important;
}

.digital-realms-journal-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,.34));
}

.digital-realms-journal-body {
    z-index: 5 !important;
}

.digital-realms-journal-card strong {
    display: none !important;
}

.digital-realms-journal-card h3 {
    margin: 0 0 10px !important;
}

.digital-realms-journal-card p {
    width: min(640px, 84%) !important;
    margin: 0 0 22px !important;
}

@media (max-width: 920px) {
    .digital-realms-journal-logo {
      top: 72px !important;
      width: min(360px, 72%) !important;
      height: 142px !important;
  }

    .digital-realms-journal-island-svg {
      width: 72%;
      height: 48%;
  }
}

.digital-realms-journal-card[data-dr-journal-index="1"] .digital-realms-journal-logo {
    width: min(409px, 51.3%) !important;
    height: 148px !important;
}

.digital-realms-journal-card[data-dr-journal-index="2"] .digital-realms-journal-logo {
    width: min(315px, 38.3%) !important;
    height: 115px !important;
}

.digital-realms-journal-card[data-dr-journal-index="3"] .digital-realms-journal-logo {
    width: min(298px, 35.2%) !important;
    height: 109px !important;
}

@media (max-width: 920px) {
    .digital-realms-journal-card[data-dr-journal-index="1"] .digital-realms-journal-logo {
      width: min(281px, 55.1%) !important;
      height: 112px !important;
  }

    .digital-realms-journal-card[data-dr-journal-index="2"] .digital-realms-journal-logo {
      width: min(218px, 41.3%) !important;
      height: 86px !important;
  }

    .digital-realms-journal-card[data-dr-journal-index="3"] .digital-realms-journal-logo {
      width: min(205px, 37.4%) !important;
      height: 81px !important;
  }
}

.digital-realms-experience.is-journal .digital-realms-journal-screen {
    padding-top: clamp(92px, 10vh, 116px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.digital-realms-experience.is-journal .digital-realms-journal-head {
    padding-left: clamp(44px, 4.8vw, 118px);
    padding-right: clamp(34px, 4.6vw, 96px);
}

.digital-realms-experience.is-journal .digital-realms-journal-head h2 {
    font-size: clamp(46px, 5vw, 82px);
    margin: 10px 0 8px;
}

.digital-realms-experience.is-journal .digital-realms-journal-head p {
    width: min(760px, 64vw);
    font-size: clamp(14px, .96vw, 18px);
}

.digital-realms-experience.is-journal .digital-realms-journal-viewport {
    min-height: 0;
    scroll-snap-type: none !important;
    scroll-padding-left: 0 !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-track {
    gap: clamp(22px, 1.8vw, 34px);
    padding-left: 30vw !important;
    padding-bottom: clamp(54px, 7.5vh, 76px);
    align-items: stretch;
}

.digital-realms-experience.is-journal .digital-realms-journal-card:first-child {
    margin-left: 0 !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card {
    width: clamp(620px, 55vw, 940px);
    height: clamp(420px, 58vh, 620px);
    border-radius: clamp(22px, 1.6vw, 28px);
}

.digital-realms-experience.is-journal .digital-realms-journal-art {
    z-index: 1;
}

.digital-realms-experience.is-journal .digital-realms-journal-nebula {
    opacity: .78;
}

.digital-realms-experience.is-journal .digital-realms-journal-island-svg {
    left: 59%;
    top: 53%;
    width: min(48%, 430px);
    height: min(44%, 320px);
    transform: translate(-50%, -50%) scale(1.05);
    opacity: .56;
}

.digital-realms-experience.is-journal .digital-realms-journal-logo {
    left: clamp(24px, 2.5vw, 34px) !important;
    top: clamp(28px, 5.5vh, 58px) !important;
    width: clamp(190px, 24vw, 320px) !important;
    height: clamp(82px, 12vh, 130px) !important;
    max-width: 56% !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    z-index: 4 !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
}

/* Per-logo fluid normalization */

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="0"] .digital-realms-journal-logo {
    width: clamp(205px, 23vw, 340px) !important;
    height: clamp(92px, 13vh, 138px) !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="4"] .digital-realms-journal-logo {
    width: clamp(175px, 19vw, 290px) !important;
    height: clamp(82px, 11vh, 116px) !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-body {
    left: clamp(24px, 2.5vw, 34px) !important;
    right: clamp(24px, 2.5vw, 34px) !important;
    bottom: clamp(24px, 3.6vh, 34px) !important;
    z-index: 5 !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card h3 {
    margin: 0 0 8px !important;
    font-size: clamp(38px, 4vw, 74px);
    line-height: .92;
}

.digital-realms-experience.is-journal .digital-realms-journal-card p {
    width: min(560px, 82%) !important;
    margin: 0 0 18px !important;
    font-size: clamp(14px, .92vw, 16px);
    line-height: 1.45;
}

.digital-realms-experience.is-journal .digital-realms-journal-actions {
    gap: 10px;
}

.digital-realms-experience.is-journal .digital-realms-journal-actions button,
.digital-realms-experience.is-journal .digital-realms-journal-controls button {
    min-height: 36px;
    padding: 0 14px;
    font-size: .69rem;
}

.digital-realms-experience.is-journal .digital-realms-journal-controls {
    bottom: clamp(16px, 2.4vh, 28px);
    gap: 10px;
}

/* 1600x900-ish and other lower-height desktops */

@media (max-height: 940px) {
    .digital-realms-experience.is-journal .digital-realms-journal-screen {
      padding-top: 84px;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-head h2 {
      font-size: clamp(42px, 4.4vw, 70px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-head p {
      width: min(720px, 62vw);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-viewport {
      margin-top: 18px;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-track {
      gap: clamp(18px, 1.5vw, 26px);
      padding-bottom: 48px;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card {
      width: clamp(560px, 53vw, 860px);
      height: clamp(380px, 52vh, 500px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-island-svg {
      left: 60%;
      top: 54%;
      width: min(44%, 360px);
      height: min(40%, 270px);
      transform: translate(-50%, -50%) scale(1);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-logo {
      top: clamp(20px, 4vh, 40px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card h3 {
      font-size: clamp(32px, 3.6vw, 58px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card p {
      width: min(500px, 86%) !important;
      font-size: clamp(13px, .88vw, 15px);
      line-height: 1.4;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-actions button,
  .digital-realms-experience.is-journal .digital-realms-journal-controls button {
      min-height: 34px;
      font-size: .66rem;
  }
}

@media (max-width: 1200px) {
    .digital-realms-experience.is-journal .digital-realms-journal-track {
      padding-left: 22vw !important;
      padding-right: 22vw !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card {
      width: clamp(520px, 70vw, 760px);
      height: clamp(400px, 56vh, 540px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-island-svg {
      left: 58%;
      width: min(50%, 360px);
      height: min(40%, 270px);
  }
}

@media (max-width: 920px) {
    .digital-realms-experience.is-journal .digital-realms-journal-screen {
      padding-top: 86px;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-head {
      padding-left: 24px;
      padding-right: 24px;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-head h2 {
      font-size: clamp(40px, 8vw, 58px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-head p {
      width: 100%;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-track {
      gap: 16px;
      padding-left: 14vw !important;
      padding-right: 16vw !important;
      padding-bottom: 56px;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card {
      width: min(84vw, 680px);
      height: min(58vh, 500px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-island-svg {
      left: 58%;
      top: 54%;
      width: 46%;
      height: 34%;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-logo {
      left: 20px !important;
      top: 22px !important;
      max-width: 62% !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="0"] .digital-realms-journal-logo {
      width: clamp(150px, 34vw, 240px) !important;
      height: clamp(72px, 12vw, 108px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="4"] .digital-realms-journal-logo {
      width: clamp(136px, 30vw, 208px) !important;
      height: clamp(62px, 9vw, 88px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-body {
      left: 20px !important;
      right: 20px !important;
      bottom: 20px !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card h3 {
      font-size: clamp(28px, 7vw, 46px);
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card p {
      width: 100% !important;
      font-size: 13px;
  }
}

/* Journal: reduce oversized logos and keep them fluid across screen sizes */

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="1"] .digital-realms-journal-logo {
    width: clamp(145px, 15.5vw, 220px) !important;
    height: clamp(74px, 10vh, 102px) !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="2"] .digital-realms-journal-logo {
    width: clamp(138px, 14.5vw, 208px) !important;
    height: clamp(62px, 8.6vh, 88px) !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="3"] .digital-realms-journal-logo {
    width: clamp(118px, 12.8vw, 184px) !important;
    height: clamp(76px, 10vh, 102px) !important;
}

@media (max-height: 940px) {
    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="1"] .digital-realms-journal-logo {
      width: clamp(134px, 14.6vw, 196px) !important;
      height: clamp(66px, 8.8vh, 88px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="2"] .digital-realms-journal-logo {
      width: clamp(128px, 13.8vw, 188px) !important;
      height: clamp(56px, 7.6vh, 78px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="3"] .digital-realms-journal-logo {
      width: clamp(110px, 11.6vw, 168px) !important;
      height: clamp(68px, 8.8vh, 88px) !important;
  }
}

@media (max-width: 920px) {
    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="1"] .digital-realms-journal-logo {
      width: clamp(118px, 25vw, 172px) !important;
      height: clamp(58px, 9vw, 80px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="2"] .digital-realms-journal-logo {
      width: clamp(118px, 25.5vw, 176px) !important;
      height: clamp(50px, 7.8vw, 72px) !important;
  }

    .digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="3"] .digital-realms-journal-logo {
      width: clamp(100px, 21vw, 150px) !important;
      height: clamp(60px, 8.8vw, 80px) !important;
  }
}

/* Map screen: resolution-safe layout for desktop and lower-height screens */

.digital-realms-world {
    --dr-safe-top: clamp(22px, 3vh, 28px);
    --dr-safe-side: clamp(24px, 3.4vw, 56px);
    --dr-panel-bottom: clamp(64px, 9vh, 96px);
}

.digital-realms-topbar {
    top: var(--dr-safe-top);
    left: var(--dr-safe-side);
    right: max(78px, calc(var(--dr-safe-side) + 10px));
    gap: clamp(16px, 2vw, 24px);
}

.digital-realms-brand {
    font-size: clamp(.82rem, .92vw, .98rem);
    letter-spacing: .2em;
}

.digital-realms-nav {
    gap: clamp(22px, 3vw, 48px);
    font-size: clamp(.74rem, .82vw, .84rem);
}

.digital-realms-connect {
    min-width: clamp(150px, 11vw, 168px);
    height: clamp(40px, 4.6vh, 46px);
    padding: 0 clamp(16px, 1.4vw, 22px);
}

.digital-realms-hero {
    left: clamp(30px, 4.4vw, 92px);
    top: clamp(94px, 13vh, 150px);
    width: min(420px, 30vw);
}

.digital-realms-hero h2 {
    font-size: clamp(58px, 6.8vw, 126px);
}

.digital-realms-hero p {
    width: min(350px, 100%);
    margin: clamp(18px, 2.8vh, 30px) 0 clamp(18px, 2.6vh, 28px);
    font-size: clamp(14px, .96vw, 19px);
}

.digital-realms-hero-actions button {
    height: clamp(44px, 5vh, 52px);
    padding: 0 clamp(16px, 1.4vw, 23px);
}

.digital-realms-journey,
.digital-realms-quote,
.digital-realms-featured,
.digital-realms-info {
    bottom: var(--dr-panel-bottom);
}

.digital-realms-journey {
    left: clamp(24px, 3.4vw, 56px);
    width: clamp(196px, 12vw, 220px);
    min-height: clamp(170px, 22vh, 188px);
    padding: clamp(18px, 1.8vw, 22px);
}

.digital-realms-quote {
    right: clamp(20px, 2.8vw, 56px);
    width: clamp(196px, 12vw, 230px);
    min-height: clamp(174px, 22vh, 190px);
    padding: clamp(20px, 1.9vw, 26px) clamp(18px, 1.8vw, 24px);
}

.digital-realms-info {
    right: clamp(250px, 15vw, 360px);
}

.digital-realms-info p {
    font-size: clamp(.86rem, .86vw, .95rem);
}

.digital-realms-featured {
    left: clamp(240px, 15vw, 300px);
    right: clamp(236px, 15vw, 300px);
    min-height: clamp(106px, 14vh, 120px);
    padding: clamp(14px, 1.5vw, 18px) clamp(16px, 1.6vw, 20px) clamp(16px, 1.8vw, 20px);
}

.digital-realms-card-meta {
    padding: 10px 10px 12px;
}

.digital-realms-map-tools {
    right: clamp(16px, 1.8vw, 34px);
    top: clamp(200px, 25vh, 232px);
}

.digital-realms-controls {
    bottom: clamp(14px, 2vh, 21px);
    font-size: clamp(.72rem, .82vw, .9rem);
}

/* Low-height desktops like 1600x900 */

@media (max-height: 940px) {
    .digital-realms-topbar {
      top: 18px;
  }

    .digital-realms-hero {
      top: 82px;
      width: min(350px, 28vw);
  }

    .digital-realms-hero h2 {
      font-size: clamp(48px, 5.6vw, 94px);
  }

    .digital-realms-hero p {
      margin: 16px 0 18px;
      font-size: clamp(13px, .86vw, 16px);
      line-height: 1.45;
  }

    .digital-realms-hero-actions {
      gap: 12px;
  }

    .digital-realms-hero-actions button {
      height: 42px;
  }

    .digital-realms-journey,
  .digital-realms-quote,
  .digital-realms-featured,
  .digital-realms-info {
      bottom: 58px;
  }

    .digital-realms-journey {
      width: 188px;
      min-height: 154px;
      padding: 16px;
  }

    .digital-realms-journey span,
  .digital-realms-featured-title {
      margin-bottom: 12px;
      font-size: .7rem;
  }

    .digital-realms-progress {
      margin: 10px 0 18px;
  }

    .digital-realms-journey strong {
      font-size: 1.02rem;
  }

    .digital-realms-quote {
      width: 184px;
      min-height: 154px;
      padding: 18px 16px;
  }

    .digital-realms-quote b {
      font-size: 3rem;
  }

    .digital-realms-quote p {
      margin: 10px 0 14px;
      font-size: .88rem;
  }

    .digital-realms-info {
      right: 224px;
  }

    .digital-realms-info p {
      margin: 10px 0 14px;
      font-size: .82rem;
      line-height: 1.38;
  }

    .digital-realms-featured {
      left: 220px;
      right: 220px;
      min-height: 94px;
      padding: 12px 14px 14px;
  }

    .digital-realms-strip {
      grid-template-columns: repeat(5, minmax(96px, 1fr));
      gap: 8px;
  }

    .digital-realms-card-thumb {
      aspect-ratio: 1.8 / 1;
  }

    .digital-realms-card-meta {
      padding: 8px 8px 10px;
  }

    .digital-realms-map-tools {
      top: 170px;
      padding: 8px;
  }

    .digital-realms-map-tools button {
      width: 40px;
      height: 32px;
  }

    .digital-realms-controls {
      gap: 12px;
  }

    .digital-realms-controls b {
      min-width: 30px;
      height: 24px;
      margin-right: 6px;
      font-size: .76rem;
  }
}

/* Mid desktop widths */

@media (max-width: 1440px) {
    .digital-realms-hero {
      width: min(350px, 27vw);
  }

    .digital-realms-featured {
      left: 220px;
      right: 220px;
  }
}

@media (max-width: 1180px) {
    .digital-realms-topbar {
      grid-template-columns: 1fr auto;
  }

    .digital-realms-nav {
      display: none;
  }

    .digital-realms-hero {
      width: min(320px, 36vw);
  }

    .digital-realms-journey,
  .digital-realms-quote {
      display: none;
  }

    .digital-realms-featured {
      left: clamp(22px, 3vw, 32px);
      right: clamp(22px, 3vw, 32px);
      bottom: clamp(58px, 8vh, 78px);
  }

    .digital-realms-map-tools {
      top: 150px;
  }
}

@media (max-width: 920px) {
    .digital-realms-topbar {
      top: 16px;
      left: 20px;
      right: 70px;
  }

    .digital-realms-brand {
      gap: 12px;
      font-size: .76rem;
      letter-spacing: .16em;
  }

    .digital-realms-connect {
      min-width: 142px;
      height: 42px;
  }

    .digital-realms-hero {
      left: 22px;
      top: 86px;
      width: min(320px, 76vw);
  }

    .digital-realms-hero h2 {
      font-size: clamp(52px, 14vw, 86px);
  }

    .digital-realms-hero p {
      width: min(310px, 100%);
      font-size: 14px;
  }

    .digital-realms-map-wrap {
      top: 86px !important;
      bottom: 160px !important;
  }

    .digital-realms-featured {
      left: 18px;
      right: 18px;
      bottom: 64px;
  }

    .digital-realms-strip {
      overflow-x: auto;
  }

    .digital-realms-quote,
  .digital-realms-journey,
  .digital-realms-info {
      display: none;
  }

    .digital-realms-map-tools {
      right: 14px;
      top: 144px;
  }

    .digital-realms-controls {
      gap: 10px;
      font-size: .72rem;
  }
}

.digital-realms-info p {
    display: none !important;
}

@media (max-width: 1180px) {
    .digital-realms-info {
      bottom: 146px !important;
  }
}

.digital-realms-info {
    z-index: 10 !important;

    /* below .digital-realms-featured so the strip masks it */
    pointer-events: none;
}

.digital-realms-featured {
    z-index: 12 !important;
}

.digital-realms-info strong,
.digital-realms-info p,
.digital-realms-info-actions {
    display: none !important;
}

.digital-realms-info span {
    display: block;
    margin-bottom: 7px;
    color: #a7b2ff;
    font-size: .78rem;
    letter-spacing: .16em;
}

@media (max-width: 1180px) {
    .digital-realms-info {
      display: none !important;
  }
}

.digital-realms-info h3 {
    display: block;
    width: 100%;
    margin: 0 !important;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1680px) {
    .digital-realms-info {
      bottom: clamp(224px, 26vh, 252px) !important;
      width: min(420px, 28vw) !important;
  }

    .digital-realms-info h3 {
      font-size: clamp(22px, 1.95vw, 38px) !important;
  }
}

@media (max-height: 940px) {
    .digital-realms-info {
      width: min(380px, 26vw) !important;
      min-height: 104px !important;
      padding: 16px 20px 30px !important;
  }

    .digital-realms-info h3 {
      font-size: clamp(20px, 1.8vw, 34px) !important;
  }
}

@media (max-width: 1440px) {
    .digital-realms-info {
      right: 214px !important;
      bottom: clamp(206px, 25vh, 232px) !important;
      width: min(360px, 27vw) !important;
  }

    .digital-realms-info h3 {
      font-size: clamp(18px, 1.75vw, 30px) !important;
  }
}

.dr-island-logo-pill {
    fill: rgba(7, 12, 30, .86);
}

.dr-realm-node:hover .dr-island-logo-badge,
.dr-realm-node:focus-visible .dr-island-logo-badge,
.dr-realm-node.is-active .dr-island-logo-badge {
    opacity: 1;
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--realm-accent) 48%, transparent))
    drop-shadow(0 12px 20px rgba(0,0,0,.34));
}

.dr-node-action {
    cursor: pointer;
    outline: none;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.dr-node-action circle {
    filter: drop-shadow(0 8px 15px rgba(0,0,0,.24));
    transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}

.dr-node-action path {
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 180ms ease, opacity 180ms ease;
}

.dr-node-journal-icon {
    fill: rgba(230, 239, 255, .08);
}

.dr-node-action:hover circle,
.dr-node-action:focus-visible circle,
.dr-realm-node.is-active .dr-node-action:hover circle,
.dr-realm-node.is-active .dr-node-action:focus-visible circle {
    fill: rgba(41, 64, 166, .98);
    stroke: color-mix(in srgb, var(--realm-accent) 72%, white);
}

.dr-node-open:hover .dr-node-open-arrow,
.dr-node-open:focus-visible .dr-node-open-arrow {
    stroke: #ffffff;
}

.dr-node-journal:hover .dr-node-journal-icon,
.dr-node-journal:focus-visible .dr-node-journal-icon {
    fill: rgba(230, 239, 255, .16);
}

.dr-realm-node.is-active .dr-node-action circle {
    fill: rgba(38, 61, 154, .92);
    stroke: color-mix(in srgb, var(--realm-accent) 58%, white);
}

.dr-realm-node.is-active .dr-node-action path {
    stroke: #ffffff;
}

/* Legacy selector compatibility after replacing .dr-node-arrow with .dr-node-actions */

.dr-node-actions circle,
.dr-node-actions path {
    transition: fill 180ms ease,
    stroke 180ms ease,
    opacity 180ms ease,
    filter 180ms ease;
}

/* CSS transform was overriding the SVG translate() on the open-arrow group, causing the abrupt left jump. */

.dr-node-action,
.dr-node-action:hover,
.dr-node-action:focus-visible {
    transform: none !important;
}

.dr-node-action:hover,
.dr-node-action:focus-visible {
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--realm-accent) 50%, transparent));
}

.dr-node-action:hover circle,
.dr-node-action:focus-visible circle {
    r: 17;
}

/* Biblioskop and Naem Kanali selected-island pill backgrounds */

#dr-realm-biblioskop .dr-island-logo-pill,
#dr-realm-naemkanali .dr-island-logo-pill {
    fill: #ECECEC !important;
}

.digital-realms-journal-actions .is-dive {
    border-color: color-mix(in srgb, var(--realm-accent) 58%, white);
    background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--realm-accent) 36%, transparent), transparent 38%),
    linear-gradient(135deg, rgba(35, 80, 190, .78), rgba(118, 45, 205, .82));
    box-shadow: 0 0 24px color-mix(in srgb, var(--realm-accent) 20%, transparent),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.digital-realms-journal-actions .is-dive:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 32px color-mix(in srgb, var(--realm-accent) 34%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.digital-realms-dive-modal {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: clamp(30px, 5vw, 72px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.digital-realms-dive-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.digital-realms-dive-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--realm-accent) 22%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(2, 5, 14, .44), rgba(2, 5, 14, .76));
    backdrop-filter: blur(10px);
}

.digital-realms-dive-dialog {
    position: relative;
    width: min(1040px, 86vw);
    color: #f8f5ff;
    border: 1px solid color-mix(in srgb, var(--realm-accent) 36%, rgba(175,195,255,.22));
    border-radius: 32px;
    background: radial-gradient(circle at 78% 16%, color-mix(in srgb, var(--realm-accent) 24%, transparent), transparent 34%),
    radial-gradient(circle at 22% 88%, color-mix(in srgb, var(--realm-accent-2) 18%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(18, 26, 66, .88), rgba(6, 10, 30, .92));
    box-shadow: 0 34px 110px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.14);
    transform: translateY(18px) scale(.975);
    transition: transform 360ms cubic-bezier(.16,1,.3,1);
}

.digital-realms-dive-modal.is-visible .digital-realms-dive-dialog {
    transform: translateY(0) scale(1);
}

.digital-realms-dive-dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .54;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent, color-mix(in srgb, var(--realm-accent) 18%, transparent), transparent);
}

.digital-realms-dive-close {
    position: absolute;
    right: 22px;
    top: 20px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(178,197,255,.24);
    border-radius: 50%;
    color: #f7f4ff;
    background: rgba(6, 10, 28, .72);
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 28px rgba(0,0,0,.24);
}

.digital-realms-dive-close:hover {
    border-color: color-mix(in srgb, var(--realm-accent) 70%, white);
    box-shadow: 0 0 24px color-mix(in srgb, var(--realm-accent) 30%, transparent);
}

.digital-realms-dive-orbit {
    position: absolute;
    right: -120px;
    top: -130px;
    width: 420px;
    height: 420px;
    opacity: .52;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--realm-accent) 25%, transparent), transparent 64%);
}

.digital-realms-dive-orbit span {
    position: absolute;
    inset: 58px;
    border: 1px solid color-mix(in srgb, var(--realm-accent) 44%, transparent);
    border-radius: 50%;
    transform: rotate(var(--r, 0deg)) scaleX(1.45);
}

.digital-realms-dive-orbit span:nth-child(2) {
    --r: 54deg;
    inset: 86px;
    opacity: .7;
}

.digital-realms-dive-orbit span:nth-child(3) {
    --r: -32deg;
    inset: 118px;
    opacity: .54;
}

.digital-realms-dive-head {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: clamp(24px, 3vw, 42px);
    align-items: center;
    padding: clamp(32px, 4vw, 54px) clamp(34px, 4.4vw, 62px) 20px;
}

.digital-realms-dive-logo-wrap {
    height: clamp(118px, 18vh, 172px);
    display: grid;
    place-items: center;
    padding: 20px;
    border: 1px solid rgba(170,195,255,.18);
    border-radius: 24px;
    background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.08), transparent 62%),
    linear-gradient(180deg, rgba(5,9,25,.58), rgba(5,9,25,.24));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.digital-realms-dive-logo-wrap img {
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,.28));
}

.digital-realms-dive-kicker,
.digital-realms-dive-panel span {
    display: block;
    color: color-mix(in srgb, var(--realm-accent) 74%, #ffffff);
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .78rem;
}

.digital-realms-dive-head h2 {
    margin: 10px 0 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(52px, 5vw, 88px);
    line-height: .9;
    letter-spacing: -.04em;
    text-shadow: 0 0 28px color-mix(in srgb, var(--realm-accent) 22%, transparent);
}

.digital-realms-dive-head p {
    width: min(650px, 100%);
    margin: 0;
    color: rgba(239,244,255,.78);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.55;
}

.digital-realms-dive-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 16px;
    padding: 18px clamp(34px, 4.4vw, 62px) 22px;
}

.digital-realms-dive-panel {
    min-height: 116px;
    padding: 20px 22px;
    border: 1px solid rgba(160,184,255,.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(10,16,40,.62), rgba(6,10,26,.42));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.digital-realms-dive-panel.is-main {
    background: radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--realm-accent) 18%, transparent), transparent 38%),
    linear-gradient(180deg, rgba(12,18,46,.74), rgba(6,10,26,.44));
}

.digital-realms-dive-panel p {
    margin: 10px 0 0;
    color: rgba(238,242,255,.82);
    line-height: 1.52;
    font-size: .95rem;
}

.digital-realms-dive-panel ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.digital-realms-dive-panel li {
    position: relative;
    padding-left: 18px;
    color: rgba(238,242,255,.82);
    line-height: 1.42;
}

.digital-realms-dive-panel li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--realm-accent);
    font-size: .74rem;
}

.digital-realms-dive-panel.is-chips div {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.digital-realms-dive-panel.is-chips b {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 12px;
    border: 1px solid color-mix(in srgb, var(--realm-accent) 28%, rgba(185,204,255,.22));
    border-radius: 999px;
    color: #f8f7ff;
    background: rgba(8,13,34,.56);
    font-size: .75rem;
    letter-spacing: .04em;
}

.digital-realms-dive-actions {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 clamp(34px, 4.4vw, 62px) clamp(30px, 3.2vw, 44px);
}

.digital-realms-dive-actions button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(158,183,255,.28);
    border-radius: 999px;
    color: #f5f4ff;
    background: rgba(9,14,36,.68);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px rgba(0,0,0,.22);
    cursor: pointer;
    font-weight: 950;
    letter-spacing: .08em;
    font-size: .74rem;
}

.digital-realms-dive-actions .is-primary {
    border-color: color-mix(in srgb, var(--realm-accent) 58%, white);
    background: linear-gradient(135deg, rgba(35, 80, 190, .82), rgba(118, 45, 205, .88));
    box-shadow: 0 0 26px color-mix(in srgb, var(--realm-accent) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.14);
}

.digital-realms-dive-actions button:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--realm-accent) 70%, white);
}

@media (max-width: 980px), (max-height: 780px) {
    .digital-realms-dive-dialog {
      width: min(940px, 90vw);
      overflow-y: auto;
  }

    .digital-realms-dive-head {
      grid-template-columns: 1fr;
      gap: 18px;
  }

    .digital-realms-dive-logo-wrap {
      width: min(260px, 56vw);
      height: 112px;
  }

    .digital-realms-dive-content {
      grid-template-columns: 1fr;
  }

    .digital-realms-dive-head h2 {
      font-size: clamp(42px, 8vw, 64px);
  }
}

/* 1) Map action buttons: keep SVG transform slots intact and make Dive/Open separated */

.dr-node-action-slot {
    pointer-events: auto;
}

.dr-node-action,
.dr-node-action:hover,
.dr-node-action:focus-visible {
    transform-box: fill-box;
    transform-origin: center;
}

.dr-node-action:hover,
.dr-node-action:focus-visible {
    transform: translateY(-1px) scale(1.06) !important;
}

.dr-node-action .dr-node-dive-spark {
    fill: rgba(238, 247, 255, .10);
    stroke: #edf5ff;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.dr-node-dive:hover .dr-node-dive-spark,
.dr-node-dive:focus-visible .dr-node-dive-spark {
    fill: color-mix(in srgb, var(--realm-accent) 28%, rgba(255,255,255,.10));
}

/* 2) Journal carousel can be dragged by mouse/pointer */

.digital-realms-journal-viewport {
    cursor: grab;
    touch-action: pan-y;
}

.digital-realms-journal-viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.digital-realms-journal-viewport.is-dragging .digital-realms-journal-card {
    pointer-events: none;
}

/* 3) Nice hover border around Journal cards */

.digital-realms-journal-card {
    transition: border-color 220ms ease,
    box-shadow 240ms ease,
    transform 240ms cubic-bezier(.16,1,.3,1);
}

.digital-realms-journal-card:hover {
    border-color: color-mix(in srgb, var(--realm-accent) 66%, white);
    box-shadow: 0 32px 86px rgba(0,0,0,.40),
    0 0 0 1px color-mix(in srgb, var(--realm-accent) 30%, transparent),
    0 0 34px color-mix(in srgb, var(--realm-accent) 24%, transparent),
    inset 0 1px 0 rgba(255,255,255,.14);
    transform: translateY(-3px);
}

/* 4-6) Dive modal: stable sizing, contained logos, custom internal scrollbar */

.digital-realms-dive-dialog {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 46px);
    overflow: hidden;
}

.digital-realms-dive-content {
    overflow-y: auto;
    min-height: 0;
    padding-right: clamp(28px, 4vw, 52px);
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--realm-accent) 70%, #ffffff) rgba(9, 14, 36, .34);
}

.digital-realms-dive-content::-webkit-scrollbar {
    width: 11px;
}

.digital-realms-dive-content::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(6, 10, 28, .38);
    box-shadow: inset 0 0 0 1px rgba(168, 190, 255, .12);
}

.digital-realms-dive-content::-webkit-scrollbar-thumb {
    border: 3px solid rgba(6, 10, 28, .72);
    border-radius: 999px;
    background: linear-gradient(180deg,
      color-mix(in srgb, var(--realm-accent) 86%, white),
      color-mix(in srgb, var(--realm-accent-2) 76%, white));
    box-shadow: 0 0 14px color-mix(in srgb, var(--realm-accent) 38%, transparent);
}

.digital-realms-dive-logo-wrap {
    overflow: hidden;
}

.digital-realms-dive-logo-wrap img {
    max-width: 86%;
    max-height: 86%;
}

.digital-realms-dive-modal[data-realm="panevi"] .digital-realms-dive-logo-wrap img {
    max-width: 74%;
    max-height: 74%;
}

.digital-realms-dive-modal[data-realm="greenwich"] .digital-realms-dive-logo-wrap img {
    max-width: 78%;
    max-height: 78%;
}

.digital-realms-dive-actions {
    flex: 0 0 auto;
    padding-top: 16px;
    background: linear-gradient(180deg, transparent, rgba(6,10,28,.36) 28%, rgba(6,10,28,.42));
}

/* 7) Dive modal side arrows around the central line */

.digital-realms-dive-side {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--realm-accent) 44%, rgba(180,200,255,.30));
    border-radius: 50%;
    color: #f7f4ff;
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), transparent 40%),
    rgba(8, 13, 34, .80);
    box-shadow: 0 18px 38px rgba(0,0,0,.34),
    0 0 24px color-mix(in srgb, var(--realm-accent) 20%, transparent),
    inset 0 1px 0 rgba(255,255,255,.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.digital-realms-dive-side.is-prev {
    left: max(24px, calc(50% - 580px));
}

.digital-realms-dive-side.is-next {
    right: max(24px, calc(50% - 580px));
}

.digital-realms-dive-side:hover,
.digital-realms-dive-side:focus-visible {
    outline: none;
    transform: translateY(-50%) scale(1.08);
    border-color: color-mix(in srgb, var(--realm-accent) 72%, white);
    box-shadow: 0 20px 44px rgba(0,0,0,.38),
    0 0 34px color-mix(in srgb, var(--realm-accent) 34%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18);
}

@media (max-width: 980px), (max-height: 780px) {
    .digital-realms-dive-dialog {
      max-height: calc(100dvh - 34px);
  }

    .digital-realms-dive-side {
      width: 42px;
      height: 42px;
  }

    .digital-realms-dive-side.is-prev {
      left: 18px;
  }

    .digital-realms-dive-side.is-next {
      right: 18px;
  }

    .digital-realms-dive-content {
      padding-right: clamp(24px, 4vw, 42px);
  }
}

@media (max-width: 720px) {
    .digital-realms-dive-side {
      top: auto;
      bottom: 18px;
  }

    .digital-realms-dive-side.is-prev {
      left: 24px;
  }

    .digital-realms-dive-side.is-next {
      right: 24px;
  }

    .digital-realms-dive-actions {
      justify-content: center;
      padding-bottom: 70px;
  }
}

.dr-node-action-slot,
.dr-node-action,
.dr-node-action * {
    pointer-events: all;
}

.dr-node-action-slot.is-journal,
.dr-node-action-slot.is-dive {
    transform-box: fill-box;
    transform-origin: center;
}

.dr-node-journal .dr-node-journal-spark {
    fill: rgba(238, 247, 255, .10);
    stroke: #edf5ff;
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.dr-node-journal:hover .dr-node-journal-spark,
.dr-node-journal:focus-visible .dr-node-journal-spark {
    fill: color-mix(in srgb, var(--realm-accent) 28%, rgba(255,255,255,.10));
}

/* Give hover glow/border room at the top so it is not clipped by the carousel viewport. */

.digital-realms-map-shell {
    position: absolute;
}

.digital-realms-map-hitzones {
    position: absolute;
    inset: 0;
    z-index: 26;
    pointer-events: none;
    overflow: visible;
}

.dr-map-hit {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--realm-accent) 62%, rgba(180,205,255,.44));
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    line-height: 1;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.dr-map-hit:hover,
.dr-map-hit:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--realm-accent) 82%, white);
    background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.24), transparent 38%),
    color-mix(in srgb, var(--realm-accent) 58%, rgba(17,30,80,.92));
    box-shadow: 0 14px 30px rgba(0,0,0,.34),
    0 0 30px color-mix(in srgb, var(--realm-accent) 38%, transparent),
    inset 0 1px 0 rgba(255,255,255,.20);
}

/* Leave the SVG artwork visible, but make the real HTML buttons handle the clicks. */

.dr-node-action,
.dr-node-action *,
.dr-node-action-slot {
    pointer-events: none !important;
}

/* Journal card click + hover border clipping fix */

.digital-realms-journal-card {
    cursor: pointer;
}

.digital-realms-experience.is-journal .digital-realms-journal-viewport {
    padding-top: 22px !important;
    margin-top: 0 !important;
    overflow-y: visible !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-track {
    padding-top: 8px !important;
}

.digital-realms-journal-card,
.digital-realms-journal-card * {
    -webkit-tap-highlight-color: transparent;
}

.digital-realms-journal-card {
    position: relative;
}

.digital-realms-journal-actions,
.digital-realms-journal-actions * {
    pointer-events: auto;
}

.dr-realm-node,
.dr-realm-node * {
    pointer-events: auto;
}

.dr-map-hit {
    z-index: 30;
}

.digital-realms-experience .digital-realms-close {
    right: clamp(18px, 2.2vw, 34px) !important;
    top: clamp(18px, 2.5vh, 28px) !important;
    z-index: 34 !important;
}

.digital-realms-experience .digital-realms-topbar {
    right: clamp(92px, 7.2vw, 124px) !important;
}

.digital-realms-experience .digital-realms-connect {
    margin-right: 0 !important;
}

@media (max-width: 920px) {
    .digital-realms-experience .digital-realms-close {
      right: 16px !important;
      top: 16px !important;
  }

    .digital-realms-experience .digital-realms-topbar {
      right: 72px !important;
  }

    .digital-realms-experience .digital-realms-connect {
      min-width: 132px;
      padding-inline: 14px;
  }
}

.dr-map-hit.is-journal {
    margin-left: 10px;
}

.dr-map-hit.is-open {
    margin-left: -10px;
}

@media (max-width: 920px) {
    .dr-map-hit.is-journal {
      margin-left: 7px;
  }

    .dr-map-hit.is-open {
      margin-left: -7px;
  }
}

.dr-map-hit.is-journal,
.dr-map-hit.is-open {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.digital-realms-strip {
    display: flex !important;
    grid-template-columns: none !important;
    gap: clamp(10px, .9vw, 14px) !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--dr-accent) 70%, white) rgba(7, 12, 31, .38);
}

.digital-realms-strip::-webkit-scrollbar {
    height: 10px;
}

.digital-realms-strip::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(7, 12, 31, .38);
    box-shadow: inset 0 0 0 1px rgba(160,190,255,.12);
}

.digital-realms-strip::-webkit-scrollbar-thumb {
    border: 3px solid rgba(7,12,31,.58);
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--dr-accent) 76%, white), #8e82ff);
}

.digital-realms-card {
    flex: 0 0 clamp(180px, 13.2vw, 255px);
    min-width: clamp(180px, 13.2vw, 255px);
    scroll-snap-align: start;
}

.digital-realms-card-caption {
    white-space: nowrap;
}

.digital-realms-experience.is-journal .digital-realms-journal-track {
    padding-right: 38vw !important;
}

/* Logo pill readability for dark/line-art marks */

#dr-realm-biblioskop .dr-island-logo-pill,
#dr-realm-naemkanali .dr-island-logo-pill,
#dr-realm-komplex7 .dr-island-logo-pill,
#dr-realm-winexe .dr-island-logo-pill {
    fill: #ECECEC !important;
}

/* Journal per-logo sizing for new realms */

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="5"] .digital-realms-journal-logo {
    width: clamp(280px, 31vw, 500px) !important;
    height: clamp(90px, 13vh, 142px) !important;
    max-width: 70% !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="6"] .digital-realms-journal-logo {
    width: clamp(118px, 12vw, 180px) !important;
    height: clamp(78px, 10vh, 112px) !important;
    padding: 8px;
    border-radius: 18px;
    background: rgba(236,236,236,.92);
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="7"] .digital-realms-journal-logo {
    width: clamp(150px, 15vw, 220px) !important;
    height: clamp(78px, 10vh, 112px) !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="9"] .digital-realms-journal-logo {
    width: clamp(150px, 16vw, 230px) !important;
    height: clamp(78px, 10vh, 112px) !important;
}

/* Dive modal logo containment for the newly added projects */

.digital-realms-dive-modal[data-realm="streetrush"] .digital-realms-dive-logo-wrap img {
    max-width: 92%;
    max-height: 76%;
}

.digital-realms-dive-modal[data-realm="komplex7"] .digital-realms-dive-logo-wrap {
    background: rgba(236,236,236,.90);
}

.digital-realms-dive-modal[data-realm="komplex7"] .digital-realms-dive-logo-wrap img {
    max-width: 62%;
    max-height: 72%;
}

.digital-realms-dive-modal[data-realm="codicom"] .digital-realms-dive-logo-wrap img {
    max-width: 70%;
    max-height: 74%;
}

.digital-realms-dive-modal[data-realm="winexe"] .digital-realms-dive-logo-wrap img {
    max-width: 76%;
    max-height: 70%;
}

@media (max-height: 940px) {
    .digital-realms-card {
      flex-basis: clamp(154px, 12vw, 215px);
      min-width: clamp(154px, 12vw, 215px);
  }
}

@media (max-width: 920px) {
    .digital-realms-strip {
      grid-template-columns: none !important;
  }

    .digital-realms-card {
      flex-basis: 178px;
      min-width: 178px;
  }
}

.digital-realms-info {
    overflow: visible !important;
}

.digital-realms-featured {
    overflow: visible !important;
}

.digital-realms-strip {
    overflow-y: visible !important;
    padding-bottom: 12px !important;
}

.digital-realms-card {
    position: relative;
}

.digital-realms-card:hover,
.digital-realms-card.is-active {
    box-shadow: 0 0 24px color-mix(in srgb, var(--dr-accent) 26%, transparent), 0 0 0 1px color-mix(in srgb, var(--dr-accent) 68%, white) !important;
}

#dr-realm-winexe .dr-island-logo-pill {
    fill: #252525 !important;
}

.digital-realms-journal-viewport {
    scrollbar-width: thin;
}

.digital-realms-journal-viewport::-webkit-scrollbar {
    height: 10px;
}

.digital-realms-journal-viewport::-webkit-scrollbar-track {
    background: rgba(7,12,31,.42);
    border-radius: 999px;
}

.digital-realms-journal-viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, color-mix(in srgb, var(--dr-accent) 72%, white), #8f83ff);
    border: 2px solid rgba(7,12,31,.6);
    border-radius: 999px;
}

.digital-realms-dive-modal[data-realm="pavel"] .digital-realms-dive-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.digital-realms-dive-modal[data-realm="pavel"] .digital-realms-dive-logo-wrap img {
    display: block;
    margin: auto;
    max-width: 74% !important;
    max-height: 78% !important;
    object-fit: contain;
    object-position: center center;
}

.digital-realms-dive-side {
    z-index: 4;
}

/* Featured Realms / card thumbnails: Karerra uses the light logo on dark preview. */

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-stage {
    opacity: .94 !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.18))
    drop-shadow(0 14px 18px rgba(0,0,0,.30)) !important;
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo {
    max-width: 82% !important;
    max-height: 78% !important;
}

/* Journal big cards */

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="8"] .digital-realms-journal-logo {
    opacity: .96 !important;
    mix-blend-mode: normal !important;
}

/* Dive In modal: keep the dark glass box, but render the light line-art clearly. */

.digital-realms-info {
    bottom: clamp(262px, 31vh, 318px) !important;
    width: min(430px, 28vw) !important;
    min-height: 110px !important;
    padding: 16px 22px 28px !important;
}

.digital-realms-info h3 {
    font-size: clamp(22px, 1.92vw, 36px) !important;
    line-height: 0.98 !important;
}

.digital-realms-featured {
    padding-top: 26px !important;
}

.digital-realms-strip {
    padding-top: 12px !important;
}

/* Make map action buttons feel cleaner and remain independent from SVG layout quirks. */

.dr-map-hit {
    width: 34px !important;
    height: 34px !important;
    font-weight: 900;
}

.dr-map-hit.is-journal {
    font-size: 0.98rem !important;
}

.dr-map-hit.is-open {
    font-size: 1.18rem !important;
}

/* Karerra: high-contrast presentation in map, Featured Realms, Journal and Dive modal. */

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 28%;
    width: min(86%, 188px);
    height: 56px;
    transform: translateX(-50%);
    border-radius: 18px;
    background: rgba(246,246,246,.94);
    box-shadow: 0 12px 24px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.78);
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo {
    position: relative;
    z-index: 2;
}

@media (max-height: 940px) {
    .digital-realms-info {
      bottom: clamp(238px, 29vh, 276px) !important;
  }
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-stage {
    left: 18px !important;
    right: 18px !important;
    top: 10px !important;
    bottom: 8px !important;
    display: grid !important;
    align-items: center !important;
    justify-items: center !important;
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-stage::after {
    display: none !important;
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo {
    width: min(82%, 210px) !important;
    object-fit: contain !important;
    object-position: center !important;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.22))
    drop-shadow(0 12px 18px rgba(0,0,0,.34)) !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="8"] .digital-realms-journal-logo {
    width: clamp(220px, 24vw, 360px) !important;
    height: clamp(96px, 13vh, 150px) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.digital-realms-experience.is-journal .digital-realms-journal-card[data-dr-journal-index="8"] .digital-realms-journal-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.22))
    drop-shadow(0 14px 20px rgba(0,0,0,.35)) !important;
}

.digital-realms-dive-modal[data-realm="karrera"] .digital-realms-dive-logo-wrap {
    background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.10), transparent 60%),
    rgba(10, 14, 34, .92) !important;
}

.digital-realms-dive-modal[data-realm="karrera"] .digital-realms-dive-logo-wrap img {
    filter: drop-shadow(0 0 16px rgba(255,255,255,.26))
    drop-shadow(0 14px 20px rgba(0,0,0,.35)) !important;
    opacity: 1 !important;
    max-width: 86% !important;
    max-height: 86% !important;
    object-fit: contain !important;
}

.digital-realms-map-wrap {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
}

.digital-realms-svg {
    overflow: visible !important;
}

/* Use SVG action buttons as the visible layer, because they move with labels perfectly.
   The HTML buttons remain invisible hit-zones only, so clicks are still reliable. */

.dr-node-actions {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.dr-node-actions * {
    pointer-events: none !important;
}

.dr-node-action circle {
    fill: rgba(10, 16, 42, .68) !important;
    stroke: color-mix(in srgb, var(--realm-accent) 54%, rgba(210,225,255,.66)) !important;
    stroke-width: 1.25 !important;
}

.dr-node-action path {
    stroke: #f6fbff !important;
}

.dr-map-hit {
    opacity: 0 !important;
    color: transparent !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Karrera map pill contrast */

#dr-realm-karrera .dr-island-logo-pill {
    fill: #d1c9c9 !important;
    stroke: rgba(255,255,255,.52) !important;
}

#dr-realm-karrera .dr-island-logo-image {
    filter: none !important;
    opacity: 1 !important;
}

/* Featured Realms must feel like a physical carousel: wheel-scrollable + draggable. */

.digital-realms-strip.is-dragging {
    user-select: none;
}

/* Keep the expanded map from looking boxed-in at viewport edges. */

.digital-realms-map-shell::before,
.digital-realms-map-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24vw;
    pointer-events: none;
    z-index: 3;
}

.digital-realms-map-shell::before {
    left: 0;
    background: linear-gradient(90deg, rgba(5,9,22,.18), transparent);
}

.digital-realms-map-shell::after {
    right: 0;
    background: linear-gradient(270deg, rgba(5,9,22,.20), transparent);
}

.digital-realms-map-shell {
    inset: -8vh -26vw -9vh -26vw !important;
    overflow: visible !important;
}

.digital-realms-strip {
    cursor: grab !important;
    overscroll-behavior-x: contain;
    user-select: none;
    -webkit-user-select: none;
}

.digital-realms-strip img,
.digital-realms-strip button {
    -webkit-user-drag: none;
    user-drag: none;
}

.digital-realms-strip.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.digital-realms-strip.is-dragging .digital-realms-card {
    pointer-events: none;
}

@media (max-width: 920px) {
    .digital-realms-map-shell {
      inset: -6vh -32vw -8vh -32vw !important;
  }
}

.digital-realms-featured {
    cursor: grab !important;
    user-select: none;
    -webkit-user-select: none;
}

.digital-realms-featured.is-dragging,
.digital-realms-strip.is-dragging {
    cursor: grabbing !important;
}

.digital-realms-featured.is-dragging .digital-realms-card,
.digital-realms-strip.is-dragging .digital-realms-card {
    pointer-events: none !important;
}

.digital-realms-strip {
    scroll-behavior: auto !important;
    touch-action: pan-y;
}

.digital-realms-strip .digital-realms-card,
.digital-realms-strip .digital-realms-card * {
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.digital-realms-journal-viewport {
    scroll-behavior: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.digital-realms-journal-track {
    scroll-snap-type: none !important;
}

.digital-realms-journal-card {
    scroll-snap-align: none !important;
}

.digital-realms-card-preview::before {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    top: 0;
    height: 28px;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(5, 9, 24, .96) 0%,
      rgba(5, 9, 24, .88) 54%,
      rgba(5, 9, 24, 0) 100%);
}

.digital-realms-card-logo-stage,
.digital-realms-card-logo,
.digital-realms-card-caption {
    position: relative;
    z-index: 9;
}

.digital-realms-card-preview::before {
    display: none !important;
    content: none !important;
}

.digital-realms-card-logo-stage {
    align-items: center !important;
    justify-items: center !important;
    top: 8px !important;
    bottom: 10px !important;
}

.digital-realms-card-logo {
    height: 62px !important;
    transform: translateY(2px) !important;
    opacity: .92 !important;
    filter: drop-shadow(0 0 10px color-mix(in srgb, var(--realm-accent, #8fb4ff) 18%, transparent))
    drop-shadow(0 12px 18px rgba(0,0,0,.34)) !important;
}

.digital-realms-card:hover .digital-realms-card-logo,
.digital-realms-card.is-active .digital-realms-card-logo {
    transform: translateY(0) scale(1.05) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--realm-accent, #8fb4ff) 28%, transparent))
    drop-shadow(0 14px 20px rgba(0,0,0,.38)) !important;
}

/* keep Karerra special extracted logo clean after restoring the general logo layer */

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-stage {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo {
    height: 72px !important;
    transform: translateY(-2px) !important;
    opacity: 1 !important;
}

.digital-realms-card-preview {
    position: relative;
    overflow: hidden;
}

/* The old logo layer becomes a very soft background echo only. */

.digital-realms-card-logo-stage {
    opacity: .16 !important;
    z-index: 3 !important;
    pointer-events: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.digital-realms-card-logo-stage .digital-realms-card-logo {
    opacity: .55 !important;
    transform: none !important;
}

/* New readable logo layer above the island artwork. */

.digital-realms-card-logo-foreground {
    position: absolute;
    z-index: 24;
    left: 18px;
    right: 18px;
    top: 15px;
    height: 58px;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: .96;
    transition: opacity 180ms ease, transform 200ms ease, filter 200ms ease;
}

.digital-realms-card-logo-foreground img {
    display: block;
    width: min(78%, 190px);
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 0 12px rgba(255,255,255,.22))
    drop-shadow(0 12px 18px rgba(0,0,0,.42));
}

.digital-realms-card:hover .digital-realms-card-logo-foreground,
.digital-realms-card.is-active .digital-realms-card-logo-foreground {
    opacity: 1;
    transform: translateY(-2px) scale(1.045);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--realm-accent, #8fb4ff) 30%, transparent));
}

/* Long horizontal logos need more width. */

.digital-realms-card[data-dr-index="0"] .digital-realms-card-logo-foreground img,
.digital-realms-card[data-dr-index="5"] .digital-realms-card-logo-foreground img,
.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-foreground img {
    width: min(92%, 230px);
}

/* Compact marks need less width. */

.digital-realms-card[data-dr-index="7"] .digital-realms-card-logo-foreground img,
.digital-realms-card[data-dr-index="9"] .digital-realms-card-logo-foreground img {
    width: min(72%, 168px);
}

/* Light badges only where the logo is dark/thin and would otherwise disappear. */

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-foreground {
    background: rgba(209, 201, 201, .94);
}

.digital-realms-card[data-dr-index="0"] .digital-realms-card-logo-foreground img,
.digital-realms-card[data-dr-index="6"] .digital-realms-card-logo-foreground img,
.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-foreground img {
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)) !important;
}

/* Caption stays above everything at the bottom. */

.digital-realms-card-caption {
    position: relative;
    z-index: 30 !important;
}

/* 1) Remove pill-style badge backgrounds for Biblioskop, Komplex 7, Karerra.shop */

.digital-realms-card[data-dr-index="0"] .digital-realms-card-logo-foreground,
.digital-realms-card[data-dr-index="6"] .digital-realms-card-logo-foreground,
.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-foreground {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    left: 18px !important;
    right: 18px !important;
    top: 15px !important;
    height: 58px !important;
}

/* Keep those three readable but without pill containers */

.digital-realms-card[data-dr-index="0"] .digital-realms-card-logo-foreground img {
    width: min(88%, 220px) !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.20)) !important;
}

.digital-realms-card[data-dr-index="6"] .digital-realms-card-logo-foreground img {
    width: min(42%, 84px) !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.20)) !important;
}

.digital-realms-card[data-dr-index="8"] .digital-realms-card-logo-foreground img {
    width: min(84%, 210px) !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: brightness(1.02) contrast(1.08) drop-shadow(0 6px 12px rgba(0,0,0,.28)) !important;
}

/* 2) Make Greenwich, Panevi Group, Pavel Pavlov logos smaller and calmer */

/* Slightly reduce the foreground presence for those three */

.digital-realms-card[data-dr-index="1"] .digital-realms-card-logo-foreground,
.digital-realms-card[data-dr-index="2"] .digital-realms-card-logo-foreground,
.digital-realms-card[data-dr-index="3"] .digital-realms-card-logo-foreground {
    top: 16px !important;
    height: 52px !important;
    opacity: .9 !important;
}

/* Greenwich 20% smaller, centered */

.digital-realms-card[data-dr-index="1"] .digital-realms-card-logo-foreground {
    top: 16px !important;
    height: 52px !important;
    left: 16px !important;
    right: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.digital-realms-card[data-dr-index="1"] .digital-realms-card-logo-foreground img {
    width: min(50%, 114px) !important;
    max-width: 114px !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}

/* Panevi Group 20% smaller, centered */

.digital-realms-card[data-dr-index="2"] .digital-realms-card-logo-foreground {
    top: 16px !important;
    height: 52px !important;
    left: 16px !important;
    right: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.digital-realms-card[data-dr-index="2"] .digital-realms-card-logo-foreground img {
    width: min(46%, 108px) !important;
    max-width: 108px !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}

/* Pavel Pavlov 30% smaller, centered */

.digital-realms-card[data-dr-index="3"] .digital-realms-card-logo-foreground {
    top: 16px !important;
    height: 52px !important;
    left: 16px !important;
    right: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.digital-realms-card[data-dr-index="3"] .digital-realms-card-logo-foreground img {
    width: min(36%, 86px) !important;
    max-width: 86px !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
}

.dr-island-logo-badge {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .26));
}

.dr-realm-label {
    pointer-events: none;
}

.dr-node-actions,
.dr-node-title,
.dr-node-type,
.dr-node-number {
    pointer-events: none;
}

.dr-island-logo-badge {
    transform-box: fill-box;
    transform-origin: center;
}

.dr-island-logo-pill {
    filter: saturate(1.03) brightness(1.02);
}

.dr-island-logo-image {
    opacity: 0.98;
}

.digital-realms-hero {
    transition: opacity 240ms ease,
    filter 240ms ease,
    transform 240ms ease;
}

.digital-realms-experience.is-map-interacting:not(.is-journal) .digital-realms-hero {
    opacity: .20;
    filter: saturate(.72) blur(.1px);
}

.digital-realms-experience.is-map-interacting:not(.is-journal) .digital-realms-hero:hover,
.digital-realms-experience.is-map-interacting:not(.is-journal) .digital-realms-hero:focus-within {
    opacity: 1;
    filter: none;
}

.digital-realms-featured:not(.is-dragging) .digital-realms-card {
    pointer-events: auto !important;
}

.digital-realms-strip:not(.is-dragging) .digital-realms-card {
    pointer-events: auto !important;
}

.modal-menu {
    scrollbar-width: thin;
    scrollbar-color: rgba(203,255,61,0.78) rgba(255,255,255,0.07);
}

.modal-menu::-webkit-scrollbar {
    width: 10px;
}

.modal-menu::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
}

.modal-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 3px solid rgba(12,29,36,0.86);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(200,255,52,0.94), rgba(93,176,0,0.94));
}

.xserver-screen,
.toolbox-screen,
.sidequest-screen {
    scrollbar-width: thin;
    scrollbar-color: rgba(203,255,61,0.82) rgba(255,255,255,0.06);
}

.xserver-screen::-webkit-scrollbar,
.toolbox-screen::-webkit-scrollbar,
.sidequest-screen::-webkit-scrollbar {
    width: 12px;
}

.xserver-screen::-webkit-scrollbar-track,
.toolbox-screen::-webkit-scrollbar-track,
.sidequest-screen::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(0,0,0,0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.xserver-screen::-webkit-scrollbar-thumb,
.toolbox-screen::-webkit-scrollbar-thumb,
.sidequest-screen::-webkit-scrollbar-thumb {
    min-height: 42px;
    border-radius: 999px;
    border: 4px solid rgba(8,22,26,0.86);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(210,255,57,0.96) 38%, rgba(91,169,0,0.96));
    box-shadow: 0 0 16px rgba(204,255,33,0.26), inset 0 1px 0 rgba(255,255,255,0.68);
}

.xserver-screen .project-list,
.toolbox-screen .project-list,
.sidequest-screen .project-list {
    gap: 13px;
}

.xserver-screen .chips,
.toolbox-screen .chips,
.sidequest-screen .chips {
    margin-top: 18px;
}

.xserver-screen .project-item,
.toolbox-screen .project-item,
.sidequest-screen .project-item {
    background: radial-gradient(circle at 14% 0%, rgba(210,255,56,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.026));
}

.xbox-modal,
.profile-panel-left,
.profile-panel-right,
.modal-menu,
.profile-panel-right .content-block,
.xserver-screen,
.toolbox-screen,
.sidequest-screen,
.xserver-screen *,
.toolbox-screen *,
.sidequest-screen * {
    box-sizing: border-box;
}

.xbox-modal,
.profile-panel-left,
.profile-panel-right {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.profile-panel-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.profile-panel-left .gamertag-row,
.profile-panel-left .modal-footnote {
    flex: 0 0 auto;
}

.modal-menu {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 8px;
    padding-bottom: 4px;
}

.modal-menu button {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-panel-right {
    min-height: 0;
    max-height: calc(100% - 64px);
}

.profile-panel-right .content-block {
    width: 100%;
    max-width: 650px;
    overflow-x: clip;
    padding-left: 2px;
}

.xserver-screen,
.toolbox-screen,
.sidequest-screen {
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-left: 3px;
    padding-right: 16px;
    margin-left: 0;
    scrollbar-gutter: stable;
}

.xserver-screen .project-list,
.toolbox-screen .project-list,
.sidequest-screen .project-list,
.xserver-screen .chips,
.toolbox-screen .chips,
.sidequest-screen .chips,
.xserver-screen .progress-list,
.toolbox-screen .progress-list,
.sidequest-screen .progress-list {
    max-width: 100%;
    min-width: 0;
}

.xserver-screen .project-item,
.toolbox-screen .project-item,
.sidequest-screen .project-item {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Keep NXE motion, but stop heavy post-realm tabs from sliding into clipped edges or spawning horizontal scrollbars. */

.profile-panel-right[data-modal-key="xserver"].is-tab-entering .content-block,
.profile-panel-right[data-modal-key="toolbox"].is-tab-entering .content-block,
.profile-panel-right[data-modal-key="sidequests"].is-tab-entering .content-block,
.profile-panel-right[data-modal-key="contact"].is-tab-entering .content-block {
    animation-name: nxeTabPanelEnterContained;
}

.profile-panel-right[data-modal-key="xserver"].is-tab-entering .content-block > *,
.profile-panel-right[data-modal-key="toolbox"].is-tab-entering .content-block > *,
.profile-panel-right[data-modal-key="sidequests"].is-tab-entering .content-block > *,
.profile-panel-right[data-modal-key="contact"].is-tab-entering .content-block > *,
.profile-panel-right[data-modal-key="xserver"].is-tab-entering .project-list > *,
.profile-panel-right[data-modal-key="toolbox"].is-tab-entering .project-list > *,
.profile-panel-right[data-modal-key="sidequests"].is-tab-entering .project-list > * {
    animation-name: nxeTabItemEnterContained;
}

@keyframes nxeTabPanelEnterContained {
    0% {
      opacity: 0;
      filter: blur(14px) saturate(1.2) brightness(1.18);
      transform: translate3d(0, 18px, 0) scale(0.975);
  }

    58% {
      filter: blur(0) saturate(1.06) brightness(1.05);
      transform: translate3d(0, -3px, 0) scale(1.008);
  }

    100% {
      filter: blur(0) saturate(1) brightness(1);
      transform: translate3d(0,0,0) scale(1);
  }
}

@keyframes nxeTabItemEnterContained {
    0% {
      opacity: 0;
      filter: blur(8px);
      transform: translate3d(0, 18px, 0) scale(0.978);
  }

    64% {
      filter: blur(0);
      transform: translate3d(0, -2px, 0) scale(1.006);
  }

    100% {
      filter: blur(0);
      transform: translate3d(0,0,0) scale(1);
  }
}

@media (max-width: 980px) {
    .profile-panel-left {
      height: auto;
      max-height: none;
      overflow: visible;
  }

    .modal-menu {
      flex: 0 1 auto;
      max-height: min(44vh, 380px);
  }

    .profile-panel-right {
      max-height: none;
  }

    .profile-panel-right .content-block {
      max-width: 100%;
  }

    .xserver-screen,
.toolbox-screen,
.sidequest-screen {
      max-height: none;
  }
}

.xbox-modal {
    overflow: visible !important;
}

/* Keep the actual glass panels contained; do not clip the avatar layer, which is a sibling of these panels. */

.profile-panel-left,
.profile-panel-right,
.modal-menu,
.profile-panel-right .content-block,
.xserver-screen,
.toolbox-screen,
.sidequest-screen {
    overflow-x: hidden;
}

.modal-avatar-showcase {
    overflow: visible !important;
    clip-path: none !important;
}

/* The avatar should sit above the right panel, but never create native scrollbars. */

.modal-backdrop {
    overflow: hidden;
}

.xserver-screen > .chips,
.toolbox-screen > .chips,
.sidequest-screen > .chips,
.xserver-screen > .progress-list,
.toolbox-screen > .progress-list,
.sidequest-screen > .progress-list {
    margin-top: 24px;
    padding-top: 2px;
}

.xserver-screen .project-list + .chips,
.toolbox-screen .project-list + .chips,
.sidequest-screen .project-list + .chips,
.xserver-screen .project-list + .progress-list,
.toolbox-screen .project-list + .progress-list,
.sidequest-screen .project-list + .progress-list {
    margin-top: 24px;
}

.xserver-screen .lead + .chips,
.toolbox-screen .lead + .chips,
.sidequest-screen .lead + .chips {
    margin-top: 18px;
}

.xserver-screen,
.toolbox-screen,
.sidequest-screen {
    padding-bottom: 12px;
}

.xserver-screen .progress-list,
.toolbox-screen .progress-list,
.sidequest-screen .progress-list {
    row-gap: 14px;
}

.xserver-screen,
.toolbox-screen,
.sidequest-screen {
    max-height: min(60vh, 530px);
}

.profile-panel-right[data-modal-key="xserver"] .content-block,
.profile-panel-right[data-modal-key="toolbox"] .content-block,
.profile-panel-right[data-modal-key="sidequests"] .content-block,
.profile-panel-right[data-modal-key="contact"] .content-block {
    min-height: 0;
}

@media (max-height: 760px) and (min-width: 981px) {
    .xserver-screen,
.toolbox-screen,
.sidequest-screen {
      max-height: min(58vh, 500px);
  }
}

.profile-panel-left {
    transition: transform 520ms cubic-bezier(.19,1,.22,1),
    opacity 360ms ease,
    filter 420ms ease;
    will-change: transform, opacity, filter;
}

.profile-panel-right {
    transition: transform 560ms cubic-bezier(.19,1,.22,1),
    filter 420ms ease,
    opacity 360ms ease;
    will-change: transform;
}

@media (max-width: 860px) {

    .modal-backdrop {
      align-items: stretch !important;
      justify-content: stretch !important;
      padding: 0 !important;
      overflow: hidden !important;
  }

    .modal-backdrop.is-visible::before {
      transform: translate(-50%, -50%) scale(22) !important;
  }

    .xbox-modal {
      --modal-zoom: 1 !important;
      width: 100vw !important;
      height: 100dvh !important;
      min-height: 100dvh !important;
      max-height: 100dvh !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: auto minmax(0, 1fr) !important;
      gap: 10px !important;
      padding: max(12px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)) !important;
      overflow: hidden !important;
      transform: translateY(0) scale(1) rotateX(0deg) !important;
  }

    .modal-backdrop.is-visible .xbox-modal {
      transform: translateY(0) scale(1) rotateX(0deg) !important;
  }

    .xbox-modal::after {
      display: none !important;
  }

    .modal-close {
      position: absolute !important;
      z-index: 120 !important;
      top: max(16px, env(safe-area-inset-top)) !important;
      right: 14px !important;
      left: auto !important;
      width: 38px !important;
      height: 38px !important;
      line-height: 34px !important;
      transform: none !important;
      background: rgba(7,18,23,.74) !important;
      backdrop-filter: blur(10px);
  }

    .profile-panel-left {
      grid-row: 1 !important;
      min-height: 0 !important;
      max-height: none !important;
      margin: 0 !important;
      padding: 12px !important;
      border-radius: 15px !important;
      overflow: hidden !important;
      transform: none !important;
      opacity: 1 !important;
      filter: none !important;
  }

    .gamertag-row {
      grid-template-columns: 62px minmax(0, 1fr) !important;
      gap: 12px !important;
      padding: 10px 48px 10px 10px !important;
      border-radius: 12px !important;
  }

    .avatar-badge {
      width: 58px !important;
      height: 58px !important;
      border-radius: 8px !important;
  }

    .gamertag-row h2 {
      font-size: clamp(24px, 7vw, 34px) !important;
      line-height: 1 !important;
      margin: 0 0 4px !important;
  }

    .gamertag-row p {
      font-size: 13px !important;
      line-height: 1.22 !important;
      margin: 0 !important;
  }

    .modal-menu {
      display: flex !important;
      gap: 8px !important;
      margin-top: 12px !important;
      padding: 0 2px 6px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scroll-snap-type: x proximity;
      scrollbar-width: none !important;
  }

    .modal-menu::-webkit-scrollbar {
      display: none !important;
  }

    .modal-menu button {
      flex: 0 0 auto !important;
      width: auto !important;
      min-width: max-content !important;
      max-width: 72vw !important;
      padding: 10px 14px !important;
      border: 1px solid rgba(255,255,255,.10) !important;
      border-radius: 999px !important;
      font-size: 15px !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      background: rgba(5,15,20,.28) !important;
      scroll-snap-align: start;
  }

    .modal-menu button.is-active,
  .modal-menu button:hover {
      background: linear-gradient(to bottom, rgba(223,255,129,0.95), rgba(106,194,12,0.95)) !important;
      border-color: rgba(255,255,255,.30) !important;
  }

    .modal-footnote {
      display: none !important;
  }

    .profile-panel-right {
      grid-row: 2 !important;
      min-height: 0 !important;
      height: 100% !important;
      margin: 0 !important;
      padding: 20px 12px 18px !important;
      border-radius: 15px !important;
      border-left: 1px solid rgba(255,255,255,.08) !important;
      overflow: hidden !important;
      transform: none !important;
  }

    .profile-panel-right .content-block {
      width: 100% !important;
      max-width: none !important;
      min-height: 0 !important;
      height: 100% !important;
  }

    .xserver-screen,
.toolbox-screen,
.sidequest-screen,
.contact-live-scrollbox,
.profile-scrollbox,
.achievement-scrollbox,
.badges-scrollbox,
.theme-scrollbox {
      max-height: none !important;
      height: 100% !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      padding-bottom: 22px !important;
      scrollbar-gutter: stable;
  }

    .content-block h3 {
      font-size: clamp(28px, 8vw, 40px) !important;
  }

    .content-block .lead {
      font-size: 17px !important;
      line-height: 1.42 !important;
  }

    .project-list {
      gap: 12px !important;
  }

    .project-item {
      padding: 15px !important;
  }

    .chips {
      gap: 8px !important;
  }

    .progress-row {
      grid-template-columns: 1fr !important;
      gap: 7px !important;
  }

    .progress-row > b {
      text-align: left !important;
  }

    .progress-bar {
      width: 100% !important;
  }

    .modal-avatar-showcase {
      display: none !important;
  }
}

@media (max-width: 420px) {
    .xbox-modal {
      padding-inline: 8px !important;
  }

    .gamertag-row h2 {
      font-size: 25px !important;
  }

    .gamertag-row p {
      font-size: 12px !important;
  }

    .modal-menu button {
      font-size: 14px !important;
      padding: 9px 12px !important;
  }

    .profile-panel-right {
      padding-inline: 10px !important;
  }
}

/* Run the entrance only while the pane is actually opening. */

/* Scrolling state: current card stays crisp; non-current cards are only subtly recessed. */

/* Mobile: remove blur-heavy animation entirely; keep it clean and console-smooth. */

/* Keep scroll-state clarity: only inactive cards can be recessed. */

/* Mobile uses the same pop, just with a shorter travel so it does not feel jumpy. */

/* Avoid any stale entrance layer creating a ghosted hit target after animation. */

/* Mobile-specific: still NXE pop logic, but less sluggish and more noticeable. */

@media (max-width: 860px) {

    html,
  body {
      -webkit-text-size-adjust: 100%;
  }

    .xbox-modal,
.profile-panel-left,
.profile-panel-right,
.stat-card,
.quest-card,
.project-item {
      contain: layout paint style;
  }

    .xbox-modal,
.profile-panel-left,
.profile-panel-right {
      -webkit-backdrop-filter: blur(8px) saturate(1.04) !important;
      backdrop-filter: blur(8px) saturate(1.04) !important;
  }
}

/* On lower-end/mobile browsers, stop animating expensive filters when the user
   is only scrolling. Entrance animation still works; idle/scroll state gets cheaper. */

@media (max-width: 860px) and (hover: none) and (pointer: coarse) {
    .profile-panel-right.is-tab-entering .content-block,
  .profile-panel-right.is-tab-entering .content-block > *,
  .profile-panel-right.is-tab-entering .project-list > *,
  .profile-panel-right.is-tab-entering .progress-list > *,
  .profile-panel-right.is-tab-entering .stat-grid > * {
      will-change: opacity, transform;
  }
}

@media (max-width: 860px) {
    html,
  body {
      overscroll-behavior: none;
      -webkit-overflow-scrolling: touch;
  }

    .modal-backdrop,
.xbox-modal,
.profile-panel-left,
.profile-panel-right,
.stat-card,
.project-item,
.achievement-card,
.quest-card {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
  }

    .xbox-modal,
.profile-panel-left,
.profile-panel-right {
      background-color: rgba(10, 31, 38, .94) !important;
  }

    .profile-panel-right::after,
.xbox-modal::after,
.profile-panel-left::after {
      mix-blend-mode: normal !important;
  }

    .profile-panel-right,
.profile-panel-left,
.xbox-modal {
      box-shadow: inset 0 1px 0 rgba(255,255,255,.10),
      0 10px 24px rgba(0,0,0,.22) !important;
  }

    .profile-panel-right.is-tab-entering .content-block {
      animation: mobilePanelQuickPop 520ms cubic-bezier(.16,.84,.24,1) both !important;
  }

    .profile-panel-right.is-tab-entering .content-block > *,
  .profile-panel-right.is-tab-entering .project-list > *,
  .profile-panel-right.is-tab-entering .progress-list > *,
  .profile-panel-right.is-tab-entering .achievement-feed > *,
  .profile-panel-right.is-tab-entering .badges-scrollbox > *,
  .profile-panel-right.is-tab-entering .theme-scrollbox > *,
  .profile-panel-right.is-tab-entering .stat-grid > * {
      animation: mobileItemQuickPop 500ms cubic-bezier(.16,.84,.24,1) both !important;
      animation-delay: calc(38ms + (var(--nxe-order, 0) * 24ms)) !important;
  }

    .profile-panel-right,
.content-block {
      will-change: auto !important;
  }

    .profile-panel-right.is-tab-entering .content-block {
      will-change: opacity, transform !important;
  }

    .modal-avatar-showcase,
.avatar-bubble,
.orbit-ring,
.particle {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
  }
}

@media (max-width: 860px) and (-webkit-touch-callout: none) {
    .modal-backdrop,
.xbox-modal,
.profile-panel-left,
.profile-panel-right {
      -webkit-backdrop-filter: none !important;
      backdrop-filter: none !important;
  }

    .modal-backdrop::before,
.modal-backdrop::after,
.xbox-modal::before,
.xbox-modal::after,
.profile-panel-right::before,
.profile-panel-right::after {
      filter: none !important;
  }
}

@keyframes mobilePanelQuickPop {
    0% {
      opacity: 0;
      transform: translate3d(0, 18px, 0) scale(.965);
  }

    58% {
      transform: translate3d(0, -3px, 0) scale(1.01);
  }

    100% {
      transform: translate3d(0,0,0) scale(1);
  }
}

@keyframes mobileItemQuickPop {
    0% {
      opacity: 0;
      transform: translate3d(0, 18px, 0) scale(.97);
  }

    62% {
      transform: translate3d(0, -3px, 0) scale(1.01);
  }

    100% {
      transform: translate3d(0,0,0) scale(1);
  }
}

/* Keep the title block exactly left-aligned; override older centered/mobile rules. */

/* Mobile Chrome should match the mobile parent-content override exactly,
   while keeping the same diagonal sweep timing as the real main pane. */

@media (max-width: 860px) {

    /* Keep the cards comfortably below the sticky title, without the title
     becoming a giant layer over the cards. */
}

/* Wider mobile/tablet panes render shorter cards and fewer chip rows, so they
   need a little more deck runway to reproduce the same final-card overlap. */

/* Books */

/* Print */

.print-card {
    position: absolute;
    width: min(72%, 420px);
    aspect-ratio: 1.7;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 26px 46px rgba(0,0,0,.40);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.print-card--back {
    transform: translate(-12%, -13%) rotate(-7deg);
    background: linear-gradient(140deg, #f23427, #a5110b);
}

.print-card--back img {
    width: 62% !important;
    height: auto !important;
    max-height: 80px !important;
    object-fit: contain !important;
    object-position: left center !important;
    filter: brightness(0) invert(1) !important;
}

.print-card--back span {
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 900;
}

.print-card--front {
    transform: translate(14%, 15%) rotate(5deg);
    background: linear-gradient(145deg, #f5f5ef, #d8ddd8);
    color: #151b1c;
}

.print-card--front b {
    font-size: clamp(22px, 3vw, 38px);
    letter-spacing: -.05em;
}

.print-card--front small {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.print-card--front i {
    color: #bb2018;
    font-style: normal;
    font-weight: 900;
}

.service-flyer-sheet {
    width: min(70%, 330px);
    aspect-ratio: .72;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(#f5f1e5 0 68%, #de5c1d 68%);
    color: #182024;
    box-shadow: -16px 22px 34px rgba(0,0,0,.36);
    transform: rotate(-2deg);
    text-align: left;
}

.service-flyer-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-flyer-head img {
    width: 54px !important;
    height: 54px !important;
    max-height: 54px !important;
    object-fit: contain !important;
    filter: none !important;
}

.service-flyer-head strong {
    font-size: 11px;
    letter-spacing: .08em;
}

.service-flyer-sheet > b {
    font-size: clamp(28px, 4vw, 48px);
    line-height: .93;
    letter-spacing: -.06em;
}

.service-flyer-sheet p {
    margin: 0;
    font-weight: 900;
}

.service-flyer-sheet > span {
    margin-top: auto;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
}

.stationery-sheet {
    position: absolute;
    width: 58%;
    height: 72%;
    background: #fbfbf5;
    box-shadow: 0 22px 38px rgba(0,0,0,.28);
}

.stationery-sheet--rear {
    transform: translate(-12%, -8%) rotate(-7deg);
    opacity: .8;
}

.stationery-sheet--main {
    transform: translate(8%, 2%) rotate(2deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #142126;
}

.stationery-sheet--main img {
    width: 34% !important;
    height: auto !important;
    max-height: 120px !important;
    filter: none !important;
}

.stationery-sheet--main span {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stationery-card {
    position: absolute;
    left: 12%;
    bottom: 12%;
    width: 46%;
    aspect-ratio: 1.7;
    padding: 16px;
    background: #152930;
    box-shadow: 0 18px 30px rgba(0,0,0,.34);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.stationery-card b {
    color: #d6ff48;
    font-size: 22px;
}

.stationery-card small {
    opacity: .66;
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* Media */

.film-frame {
    min-height: calc(var(--archive-art-min) - 78px);
    background-size: cover;
    background-position: center;
    filter: saturate(.82) contrast(1.05);
}

.film-frame--one {
    background-image: linear-gradient(rgba(6,18,24,.08), rgba(6,18,24,.30)), url('assets/simo-moto-fullbody.webp');
}

.film-frame--two {
    background-image: linear-gradient(rgba(6,18,24,.08), rgba(6,18,24,.30)), url('assets/simo-moto.webp');
}

.film-frame--three {
    background-image: linear-gradient(rgba(6,18,24,.18), rgba(6,18,24,.38)), url('assets/metevx-digital-realms.webp');
}

.film-timecode {
    position: absolute;
    right: 24px;
    bottom: 18px;
    font-family: monospace;
    font-size: 11px;
    letter-spacing: .08em;
    color: #d7ff4d;
}

/* Asset boards */

@media (max-width: 860px) {

    .print-card {
      width: 82%;
      padding: 16px;
  }

    .print-card--back {
      transform: translate(-8%, -15%) rotate(-7deg);
  }

    .print-card--front {
      transform: translate(9%, 17%) rotate(5deg);
  }

    .service-flyer-sheet {
      width: 82%;
      padding: 18px;
  }

    .stationery-sheet {
      width: 70%;
  }

    .stationery-card {
      width: 56%;
      left: 7%;
  }

    .film-frame {
      min-height: 150px;
      background-position: center 22%;
  }
}

/* Archive scrolling, card hand-off and pinned headings */

/* Keep the title's existing underline on ::after; reserve ::before for the
   pinned-state fade. The pseudo-element is twice as wide/tall because the
   whole title is scaled to 50% in its compact state. */

/* Remove the old expensive visual-state interpolation. The raised card keeps
   the same surface styling; only its layer position changes. */

/* Native, scroll-synchronised hand-off. It uses only the individual translate
   property, so the large card remains a cached compositor layer throughout. */

@media (max-width: 860px) {
    /* Transparent-image drop shadows are costly on very large mobile artwork.
     The card surface still supplies depth, while the artwork itself stays
     crisp and cheap to composite during the hand-off. */
}

/* ========================================================================== 
   v344 — Mobile-first stabilization
   Home footer, Player card scrolling, unicore Field Guide and Digital Realms
   ========================================================================== */

@media (max-width: 860px) {
  /* Home: keep the counter and primary green action clear of browser chrome. */
  .nxe-footer {
    left: 24px !important;
    right: 24px !important;
    bottom: max(52px, calc(env(safe-area-inset-bottom) + 38px)) !important;
    align-items: flex-end !important;
  }

  .nxe-footer .counter {
    margin: 0 0 18px !important;
    transform: translateY(-4px);
  }

  .nxe-footer .orb-button {
    flex: 0 0 auto;
    transform: none !important;
  }

  .nxe-footer .actions {
    bottom: -18px !important;
  }

  /* Player / Profile Card: only the inner glass content box scrolls. */
  .profile-panel-right[data-modal-key="profile"] {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none;
  }

  .profile-panel-right[data-modal-key="profile"] .content-block.player-profile-card {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    touch-action: none;
  }

  .profile-panel-right[data-modal-key="profile"] .player-profile-card > h3,
  .profile-panel-right[data-modal-key="profile"] .player-profile-card > .avatar-loadout-subtitle {
    flex: 0 0 auto;
  }

  .profile-panel-right[data-modal-key="profile"] .player-profile-card .profile-scrollbox {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 10px 0 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
  }

  /* -----------------------------------------------------------------------
     unicore.cc — mobile Field Guide home
     ----------------------------------------------------------------------- */
  .unicore-game {
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  .unicore-game::before {
    background:
      linear-gradient(180deg, rgba(0,0,0,.78), transparent 16%, transparent 82%, rgba(0,0,0,.82)),
      linear-gradient(90deg, rgba(0,0,0,.38), transparent 16%, transparent 84%, rgba(0,0,0,.38));
  }

  .unicore-game-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 220 !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 27px !important;
    background: rgba(7,10,12,.90) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .unicore-game-world {
    position: absolute !important;
    inset: 0 !important;
    min-height: 100dvh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding:
      max(72px, calc(env(safe-area-inset-top) + 62px))
      0
      max(96px, calc(env(safe-area-inset-bottom) + 78px));
    box-sizing: border-box;
  }

  .unicore-game-border {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - 104px);
    height: 1px;
    margin: 0 52px 18px;
  }

  .unicore-overall-progress {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px !important;
    width: calc(100% - 32px);
    margin: 0 16px !important;
    padding: 12px 64px 12px 12px;
    border: 1px solid rgba(218,178,93,.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(16,25,27,.88), rgba(7,11,13,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 34px rgba(0,0,0,.28);
    transform: none !important;
    box-sizing: border-box;
  }

  .unicore-progress-seal {
    width: 58px !important;
    height: 58px !important;
    border-width: 1px !important;
    box-shadow: 0 0 0 5px rgba(201,158,78,.13), inset 0 0 18px rgba(97,190,255,.16) !important;
    font-size: 25px !important;
  }

  .unicore-progress-seal small {
    font-size: 14px !important;
  }

  .unicore-overall-progress strong {
    align-self: center;
    font-size: 15px !important;
    line-height: 1.25;
  }

  .unicore-guide-message {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - 32px) !important;
    margin: 12px 16px 4px !important;
    padding: 13px 15px;
    border: 1px solid rgba(218,178,93,.20);
    border-radius: 16px;
    background: rgba(8,13,15,.74);
    text-align: left !important;
    transform: none !important;
    box-sizing: border-box;
  }

  .unicore-guide-message p {
    margin: 0 0 5px !important;
    font-size: 14px !important;
    line-height: 1.38 !important;
  }

  .unicore-guide-message span {
    color: rgba(246,234,208,.70);
    font-size: 12px !important;
    line-height: 1.35;
  }

  .unicore-completion-button {
    width: 100%;
    margin-top: 10px;
  }

  .unicore-book-plane {
    position: absolute !important;
    left: 50% !important;
    bottom: -40px !important;
    width: 150vw !important;
    height: 390px !important;
    opacity: .30 !important;
    pointer-events: none;
  }

  .unicore-card-track {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    min-height: 450px;
    margin: 6px 0 0 !important;
    padding: 52px max(18px, calc((100vw - 270px) / 2)) 66px !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(18px, calc((100vw - 270px) / 2));
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    transform: none !important;
    box-sizing: border-box;
    scrollbar-width: none;
  }

  .unicore-card-track::-webkit-scrollbar {
    display: none;
  }

  .unicore-field-card,
  .unicore-field-card.is-selected {
    flex: 0 0 min(72vw, 270px) !important;
    width: min(72vw, 270px) !important;
    height: min(54dvh, 420px) !important;
    min-height: 350px;
    scroll-snap-align: center;
    transform: scale(.94) !important;
    animation: none !important;
  }

  .unicore-field-card.is-selected {
    transform: scale(1) !important;
  }

  .unicore-field-card.is-side,
  .unicore-field-card.is-near {
    transform: scale(.94) !important;
  }

  .unicore-game-controls {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    z-index: 30;
    display: flex !important;
    gap: 8px !important;
    padding: 9px 10px;
    overflow-x: auto;
    border: 1px solid rgba(218,178,93,.22);
    border-radius: 14px;
    background: rgba(5,9,11,.91);
    box-shadow: 0 12px 34px rgba(0,0,0,.34);
    font-size: 10px !important;
    scrollbar-width: none;
  }

  .unicore-game-controls::-webkit-scrollbar {
    display: none;
  }

  .unicore-game-controls span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .unicore-game-controls b {
    min-width: 24px !important;
    height: 23px !important;
    font-size: 10px !important;
  }

  /* -----------------------------------------------------------------------
     unicore.cc — all mobile Field Guide pages
     ----------------------------------------------------------------------- */
  .unicore-letter-scene,
  .unicore-letter-scene.is-map-scene,
  .unicore-letter-scene.is-gear-scene,
  .unicore-letter-scene.is-sorting-scene,
  .unicore-letter-scene.is-potion-scene {
    position: fixed !important;
    inset: 0 !important;
    z-index: 210 !important;
    min-height: 100dvh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding:
      max(70px, calc(env(safe-area-inset-top) + 60px))
      0
      max(88px, calc(env(safe-area-inset-bottom) + 72px));
    box-sizing: border-box;
  }

  .unicore-letter-back,
  .unicore-letter-scene.is-gear-scene .unicore-letter-back {
    position: fixed !important;
    z-index: 230 !important;
    left: 14px !important;
    right: auto !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    bottom: auto !important;
    min-height: 42px;
    padding: 0 15px !important;
    border-radius: 999px;
    background: rgba(7,10,12,.92) !important;
    font-size: 11px;
  }

  .unicore-correspondence-header {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - 32px) !important;
    min-height: 72px;
    margin: 0 16px 12px !important;
    padding: 12px 58px 12px 12px;
    border: 1px solid rgba(218,178,93,.25);
    border-radius: 18px;
    background: rgba(8,13,15,.84);
    box-sizing: border-box;
  }

  .unicore-portrait-seal {
    width: 48px !important;
    height: 48px !important;
  }

  .unicore-correspondence-header strong {
    font-size: clamp(20px, 6vw, 29px) !important;
    line-height: 1.05;
  }

  .unicore-envelope-stack {
    display: none !important;
  }

  .unicore-parchment,
  .unicore-letter-scene.is-map-scene .unicore-parchment,
  .unicore-letter-scene.is-gear-scene .unicore-parchment,
  .unicore-letter-scene.is-sorting-scene .unicore-parchment,
  .unicore-letter-scene.is-potion-scene .unicore-parchment {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: calc(100% - 24px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 12px !important;
    padding: 26px 16px 28px !important;
    border-radius: 18px !important;
    clip-path: none !important;
    transform: none !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .unicore-letter-scene.is-map-scene .unicore-parchment,
  .unicore-letter-scene.is-gear-scene .unicore-parchment,
  .unicore-letter-scene.is-sorting-scene .unicore-parchment,
  .unicore-letter-scene.is-potion-scene .unicore-parchment {
    border: 1px solid rgba(218,178,93,.22) !important;
    background: linear-gradient(180deg, rgba(8,14,19,.98), rgba(5,9,13,.98)) !important;
    box-shadow: 0 18px 48px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.06) !important;
  }

  .unicore-parchment-mark {
    position: relative !important;
    inset: auto !important;
    display: inline-block;
    margin-bottom: 16px;
  }

  #unicoreLetterBody,
  .unicore-letter-scene.is-map-scene #unicoreLetterBody,
  .unicore-letter-scene.is-gear-scene #unicoreLetterBody,
  .unicore-letter-scene.is-sorting-scene #unicoreLetterBody,
  .unicore-letter-scene.is-potion-scene #unicoreLetterBody {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .unicore-welcome-content p,
  .unicore-parchment p {
    font-size: 15px !important;
    line-height: 1.58 !important;
  }

  .webcore-map-interface,
  .vistaport-fullscreen-loadout,
  .wwcore-sorting-interface,
  .codicom-potion-interface,
  .codicom-potion-v3 {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .webcore-map-interface,
  .wwcore-sorting-interface,
  .codicom-potion-v3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .webcore-map-topbar,
  .webcore-map-switch,
  .webcore-map-controls,
  .wwcore-ceremony-controls,
  .codicom-v3-controls,
  .vp-panel-actions,
  .vp-bottom-hints {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    box-sizing: border-box;
    scrollbar-width: none;
  }

  .webcore-map-topbar::-webkit-scrollbar,
  .webcore-map-switch::-webkit-scrollbar,
  .webcore-map-controls::-webkit-scrollbar,
  .wwcore-ceremony-controls::-webkit-scrollbar,
  .codicom-v3-controls::-webkit-scrollbar,
  .vp-panel-actions::-webkit-scrollbar,
  .vp-bottom-hints::-webkit-scrollbar {
    display: none;
  }

  .webcore-map-canvas,
  .webcore-map-note,
  .codicom-v3-panel,
  .codicom-v3-lab,
  .wwcore-ceremony-stage,
  .wwcore-selection-panel,
  .vp-selected-panel,
  .vp-core-stage {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
  }

  .webcore-map-canvas {
    min-height: 360px !important;
  }

  .webcore-map-note,
  .webcore-copy-scroll,
  .vp-copy-scroll,
  .wwcore-mission-scroll,
  .codicom-v3-note {
    max-height: none !important;
    overflow: visible !important;
  }

  .vistaport-fullscreen-loadout {
    padding: 10px 0 24px !important;
  }

  .vp-hud-row,
  .vp-stats,
  .vp-loadout-grid,
  .vp-module-column,
  .vp-panel-main {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .vp-loadout-grid {
    margin-top: 14px !important;
  }

  .vp-slot {
    width: 100% !important;
    min-height: 130px !important;
    flex: 0 0 auto !important;
  }

  .wwcore-ceremony-title::before,
  .wwcore-ceremony-title::after {
    width: 34px !important;
  }

  .wwcore-ceremony-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .wwcore-house-grid {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .wwcore-house-emblem {
    width: min(34vw, 132px) !important;
    height: min(38vw, 148px) !important;
  }

  .codicom-v3-stage,
  .codicom-v3-panel-top,
  .codicom-v3-lines,
  .codicom-v3-metrics {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    gap: 14px !important;
  }

  /* -----------------------------------------------------------------------
     Digital Realms — mobile-first vertical composition
     ----------------------------------------------------------------------- */
  .digital-realms-experience {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: #060a1c !important;
  }

  .digital-realms-world {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding:
      max(10px, env(safe-area-inset-top))
      0
      max(34px, calc(env(safe-area-inset-bottom) + 24px));
    box-sizing: border-box;
  }

  .digital-realms-border,
  .digital-realms-infinite-bg {
    position: fixed !important;
    pointer-events: none;
  }

  .digital-realms-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: 14px !important;
    z-index: 240 !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(7,12,30,.94) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .digital-realms-topbar,
  .digital-realms-experience .digital-realms-topbar {
    position: sticky !important;
    z-index: 220 !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: calc(100% - 20px) !important;
    min-height: 66px;
    margin: 0 10px 12px !important;
    padding: 10px 58px 10px 12px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    border: 1px solid rgba(151,174,255,.20);
    border-radius: 18px;
    background: rgba(7,12,31,.94);
    box-shadow: 0 14px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-sizing: border-box;
  }

  .digital-realms-brand {
    min-width: 0;
    gap: 9px !important;
    font-size: 11px !important;
    letter-spacing: .12em !important;
  }

  .digital-realms-brand strong {
    min-width: 0;
  }

  .digital-realms-brand small {
    display: block;
    margin-top: 2px;
  }

  .digital-realms-logo {
    flex: 0 0 auto;
    transform: scale(.78);
  }

  .digital-realms-nav {
    display: none !important;
  }

  .digital-realms-connect,
  .digital-realms-experience .digital-realms-connect {
    min-width: 0 !important;
    width: auto !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 10px !important;
    letter-spacing: .06em !important;
    white-space: nowrap;
  }

  .digital-realms-hero {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    z-index: 10;
    width: auto !important;
    margin: 0 16px 14px !important;
    padding: 18px 2px 4px;
  }

  .digital-realms-kicker {
    margin-bottom: 12px !important;
    font-size: 11px !important;
    line-height: 1.45;
    letter-spacing: .12em !important;
  }

  .digital-realms-hero h2 {
    font-size: clamp(52px, 16vw, 76px) !important;
    line-height: .84 !important;
  }

  .digital-realms-hero p {
    width: 100% !important;
    max-width: 560px;
    margin: 18px 0 !important;
    font-size: 15px !important;
    line-height: 1.48 !important;
  }

  .digital-realms-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
  }

  .digital-realms-hero-actions button {
    width: 100%;
    min-width: 0;
    height: 48px !important;
    padding: 0 12px !important;
    font-size: 11px;
    letter-spacing: .055em;
  }

  .digital-realms-map-shell,
  .digital-realms-experience .digital-realms-map-shell {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: calc(100% - 20px) !important;
    height: clamp(330px, 48dvh, 470px) !important;
    margin: 0 10px 14px !important;
    overflow: hidden !important;
    display: block !important;
    border: 1px solid rgba(151,174,255,.20);
    border-radius: 20px;
    background: radial-gradient(circle at 50% 45%, rgba(64,83,183,.18), rgba(5,9,23,.88) 68%);
    box-shadow: 0 22px 48px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.06);
    box-sizing: border-box;
  }

  .digital-realms-map-shell::before,
  .digital-realms-map-shell::after {
    width: 22% !important;
    z-index: 4;
  }

  .digital-realms-map-wrap {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .digital-realms-svg {
    width: 100% !important;
    height: 100% !important;
  }

  .digital-realms-journey,
  .digital-realms-quote {
    display: none !important;
  }

  .digital-realms-info {
    position: relative !important;
    inset: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 12 !important;
    display: block !important;
    width: calc(100% - 20px) !important;
    min-height: 0 !important;
    margin: 0 10px 14px !important;
    padding: 18px !important;
    border-radius: 18px !important;
    pointer-events: auto !important;
    box-sizing: border-box;
  }

  .digital-realms-info h3 {
    margin: 5px 0 6px !important;
    font-size: 32px !important;
  }

  .digital-realms-info p {
    display: block !important;
    margin: 12px 0 16px !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
  }

  .digital-realms-info-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 9px !important;
  }

  .digital-realms-info-actions button {
    min-height: 42px !important;
    width: 100%;
  }

  .digital-realms-featured {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 12 !important;
    width: calc(100% - 20px) !important;
    min-height: 0 !important;
    margin: 0 10px !important;
    padding: 18px 14px 16px !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    box-sizing: border-box;
  }

  .digital-realms-featured-title {
    margin-bottom: 13px !important;
  }

  .digital-realms-strip {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 2px 2px 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x !important;
    cursor: grab;
  }

  .digital-realms-card {
    flex: 0 0 min(72vw, 286px) !important;
    min-width: min(72vw, 286px) !important;
    scroll-snap-align: start;
  }

  .digital-realms-card:hover,
  .digital-realms-card.is-active {
    transform: none !important;
  }

  .digital-realms-side-tools,
  .digital-realms-map-tools,
  .digital-realms-controls {
    display: none !important;
  }

  /* Journal uses the same vertical, touch-first rhythm. */
  .digital-realms-experience.is-journal .digital-realms-journal-screen {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(100dvh - 80px);
    padding: 12px 10px 34px !important;
    overflow: visible !important;
    box-sizing: border-box;
  }

  .digital-realms-experience.is-journal .digital-realms-journal-head {
    padding: 8px 6px 14px !important;
  }

  .digital-realms-experience.is-journal .digital-realms-journal-head h2 {
    font-size: clamp(42px, 13vw, 64px) !important;
  }

  .digital-realms-experience.is-journal .digital-realms-journal-viewport {
    width: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
  }

  .digital-realms-experience.is-journal .digital-realms-journal-track {
    display: flex !important;
    gap: 12px !important;
  }

  .digital-realms-experience.is-journal .digital-realms-journal-card {
    flex: 0 0 calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    min-width: calc(100vw - 32px) !important;
    min-height: 520px !important;
    scroll-snap-align: start !important;
  }

  .digital-realms-journal-controls {
    position: relative !important;
    inset: auto !important;
    margin-top: 12px;
    justify-content: flex-start !important;
    overflow-x: auto;
  }

  .digital-realms-dive-modal {
    position: fixed !important;
    inset: 0 !important;
    overflow-y: auto !important;
    padding: max(66px, calc(env(safe-area-inset-top) + 56px)) 10px max(30px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
  }

  .digital-realms-dive-dialog {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .digital-realms-dive-head,
  .digital-realms-dive-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .digital-realms-dive-side {
    position: fixed !important;
    top: 50% !important;
    z-index: 250 !important;
    width: 38px !important;
    height: 56px !important;
  }

  .digital-realms-dive-side.is-prev {
    left: 4px !important;
  }

  .digital-realms-dive-side.is-next {
    right: 4px !important;
  }
}

@media (max-width: 430px) {
  .nxe-footer {
    left: 18px !important;
    right: 18px !important;
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 44px)) !important;
  }

  .nxe-footer .counter {
    margin-bottom: 22px !important;
  }

  .digital-realms-connect {
    font-size: 9px !important;
    padding-inline: 9px !important;
  }

  .digital-realms-hero-actions,
  .digital-realms-info-actions {
    grid-template-columns: 1fr !important;
  }

  .unicore-field-card,
  .unicore-field-card.is-selected {
    flex-basis: min(78vw, 278px) !important;
    width: min(78vw, 278px) !important;
  }
}

/* v344 mobile refinement: keep the Field Guide message and controller strip readable. */
@media (max-width: 860px) {
  .unicore-guide-message {
    display: block !important;
  }

  .unicore-game-controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  .unicore-game-controls span {
    min-width: 0;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* v344 mobile field-page hardening: VistaPort, WebCore and wwCORE */
@media (max-width: 860px) {
  /* Prevent desktop intrinsic widths/transforms from escaping the parchment. */
  .vistaport-fullscreen-loadout,
  .vistaport-fullscreen-loadout *,
  .webcore-map-interface,
  .webcore-map-interface *,
  .wwcore-sorting-interface,
  .wwcore-sorting-interface * {
    box-sizing: border-box;
    min-width: 0;
  }

  /* VistaPort — compact mobile loadout rather than a squeezed desktop HUD. */
  .vistaport-fullscreen-loadout {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .vp-top-nav {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 4px 2px 12px !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    transform: none !important;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .vp-top-nav::-webkit-scrollbar { display: none; }

  .vp-top-nav > * {
    flex: 0 0 auto !important;
    scroll-snap-align: center;
  }

  .vp-top-nav > b { display: none !important; }

  .vp-nav-item {
    min-height: 40px !important;
    padding: 0 3px !important;
    font-size: 12px !important;
    letter-spacing: .12em !important;
    white-space: nowrap;
  }

  .vp-hud-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  .vp-identity {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 5px 14px !important;
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid rgba(219,176,91,.30);
    border-radius: 16px;
    background: rgba(4,11,18,.62);
  }

  .vp-label {
    grid-column: 1 / -1;
    margin: 0 !important;
    font-size: 11px !important;
    letter-spacing: .16em !important;
  }

  .vp-crest {
    grid-column: 1;
    grid-row: 2;
    width: 68px !important;
    height: 68px !important;
    margin: 0 !important;
    font-size: 17px !important;
  }

  .vp-name {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    min-width: 0;
  }

  .vp-name strong {
    font-size: clamp(30px, 10vw, 42px) !important;
    line-height: .95 !important;
  }

  .vp-name small {
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .vp-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .vp-stat-chip {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 0 7px !important;
    width: 100% !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 9px !important;
    border: 1px solid rgba(219,176,91,.25) !important;
    border-radius: 13px !important;
    background: rgba(4,11,18,.62) !important;
  }

  .vp-stat-chip i {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 34px !important;
    height: 34px !important;
    font-size: 18px !important;
  }

  .vp-stat-chip span {
    grid-column: 2;
    grid-row: 1;
    font-size: 8px !important;
    letter-spacing: .08em !important;
  }

  .vp-stat-chip strong {
    grid-column: 2;
    grid-row: 2;
    font-size: 21px !important;
    line-height: 1 !important;
  }

  .vp-loadout-grid {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas:
      "core core"
      "left right" !important;
    align-items: start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }

  .vp-module-column {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .vp-module-column.vp-left { grid-area: left; }
  .vp-module-column.vp-right { grid-area: right; }

  .vp-core-stage {
    grid-area: core;
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .vp-data-orbit,
  .vp-data-beam,
  .vp-system-figure,
  .vp-instruction {
    display: none !important;
  }

  .vp-selected-panel {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .vp-panel-titlebar {
    padding: 12px 13px !important;
  }

  .vp-panel-titlebar strong {
    font-size: 13px !important;
    overflow-wrap: anywhere;
  }

  .vp-panel-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 14px !important;
  }

  .vp-panel-summary,
  .vp-copy-scroll {
    width: 100% !important;
    max-width: 100% !important;
  }

  .vp-panel-summary h2 { font-size: 28px !important; }
  .vp-panel-summary p,
  .vp-copy-scroll p { font-size: 13px !important; line-height: 1.5 !important; }

  .vp-mini-meters {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .vp-meter-button { min-width: 0 !important; }
  .vp-meter-button b { font-size: 9px !important; }

  .vp-panel-actions,
  .vp-bottom-hints {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 10px !important;
    overflow: visible !important;
  }

  .vp-mock-button,
  .vp-hint-chip,
  .vp-panel-actions .start-quest-pill {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
  }

  .vp-slot {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 152px !important;
    padding: 11px 9px 12px !important;
    overflow: hidden !important;
  }

  .vp-slot h3 { font-size: 13px !important; }
  .vp-slot em { font-size: 8px !important; letter-spacing: .07em !important; }
  .vp-slot p { font-size: 11px !important; }
  .vp-slot-icon { height: 62px !important; overflow: hidden !important; }

  /* WebCore — convert the desktop map into a readable touch route board. */
  .webcore-map-interface {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .webcore-map-interface::before,
  .webcore-map-interface::after { display: none !important; }

  .webcore-map-topbar,
  .webcore-map-switch {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 0 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    transform: none !important;
    scrollbar-width: none;
  }

  .webcore-map-topbar::-webkit-scrollbar,
  .webcore-map-switch::-webkit-scrollbar { display: none; }
  .webcore-pad-hint { display: none !important; }

  .webcore-nav-item,
  .webcore-map-switch button {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    white-space: nowrap;
  }

  .webcore-map-canvas {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px !important;
    overflow: hidden !important;
    transform: none !important;
    border-radius: 16px !important;
  }

  .webcore-map-canvas::before,
  .webcore-map-canvas::after,
  .webcore-map-route,
  .webcore-map-route-energy {
    display: none !important;
  }

  .webcore-map-note {
    order: 1;
    grid-column: 1 / -1;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow: visible !important;
    transform: none !important;
  }

  .webcore-map-note h2 {
    font-size: clamp(26px, 8vw, 36px) !important;
    overflow-wrap: anywhere;
  }

  .webcore-map-note .webcore-map-kicker,
  .webcore-copy-scroll p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .webcore-quest-meters {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .webcore-map-pin {
    order: 2;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 45px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(219,176,91,.23) !important;
    border-radius: 12px !important;
    background: rgba(7,17,19,.78) !important;
    transform: none !important;
  }

  .webcore-map-pin i {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 23px;
    width: 23px !important;
    height: 23px !important;
    transform: none !important;
  }

  .webcore-map-pin b {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    font-size: 10px !important;
    white-space: normal !important;
  }

  .webcore-map-stats {
    order: 3;
    grid-column: 1 / -1;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 12px !important;
    transform: none !important;
  }

  .webcore-map-stats > strong { grid-column: 1 / -1; }

  .webcore-map-stats button,
  .webcore-map-stats button span {
    width: 100% !important;
    min-width: 0 !important;
  }

  .webcore-map-stats button span {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    font-size: 10px !important;
  }

  .webcore-map-controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .webcore-map-controls button,
  .webcore-map-controls .start-quest-pill {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
  }

  /* wwCORE — contain the ceremonial art and keep every panel in one column. */
  .wwcore-sorting-interface {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .wwcore-sorting-interface::before { display: none !important; }

  .wwcore-ceremony-head,
  .wwcore-ceremony-stage,
  .wwcore-ceremony-footer,
  .wwcore-stage-left,
  .wwcore-stage-right,
  .wwcore-selection-panel,
  .wwcore-mission-note {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  .wwcore-ceremony-title {
    width: 100% !important;
    padding: 0 34px !important;
    font-size: clamp(31px, 9vw, 43px) !important;
    line-height: 1.02 !important;
    letter-spacing: .04em !important;
    overflow-wrap: anywhere;
  }

  .wwcore-ceremony-title::before,
  .wwcore-ceremony-title::after {
    width: 22px !important;
  }

  .wwcore-ceremony-intro {
    width: 100% !important;
    margin: 12px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .wwcore-ceremony-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wwcore-house-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .wwcore-house-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 4px 10px !important;
    overflow: hidden !important;
  }

  .wwcore-house-card strong {
    font-size: 11px !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
  }

  .wwcore-house-emblem {
    width: min(30vw, 112px) !important;
    height: min(34vw, 126px) !important;
    margin-inline: auto !important;
  }

  .wwcore-stage-right {
    display: grid !important;
    place-items: center !important;
    min-height: 220px !important;
    overflow: hidden !important;
  }

  .wwcore-hat-wrap {
    position: relative !important;
    inset: auto !important;
    width: min(60vw, 220px) !important;
    height: 190px !important;
    transform: scale(.78) !important;
    transform-origin: center;
  }

  .wwcore-hat-aura {
    width: min(76vw, 280px) !important;
    height: min(76vw, 280px) !important;
  }

  .wwcore-ceremony-footer {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .wwcore-selection-panel,
  .wwcore-mission-note {
    padding: 14px !important;
    overflow: hidden !important;
  }

  .wwcore-selection-title { font-size: 19px !important; }
  .wwcore-selection-copy,
  .wwcore-mission-scroll p { font-size: 13px !important; line-height: 1.5 !important; }

  .wwcore-ceremony-controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .wwcore-ceremony-controls button,
  .wwcore-ceremony-controls .start-quest-pill {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    justify-content: flex-start !important;
  }
}

/* v344 mobile polish after device-width validation. */
@media (max-width: 860px) {
  .unicore-game-controls {
    transform: none !important;
  }

  .wwcore-ceremony-title {
    padding-inline: 20px !important;
    font-size: clamp(27px, 8vw, 34px) !important;
    line-height: 1.06 !important;
    letter-spacing: .025em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .wwcore-hat-wrap {
    height: 160px !important;
    transform: scale(.48) !important;
    transform-origin: center 42% !important;
  }

  .wwcore-stage-right {
    min-height: 176px !important;
  }
}

/* ========================================================================== 
   v345 — Mobile-only touch and Field Guide refinement
   Desktop/tablet layouts above 860px remain unchanged.
   ========================================================================== */

.nxe-mobile-swipe-note,
.digital-realms-mobile-map-hint {
  display: none;
}

@media (max-width: 860px) {
  /* Home card stack: slightly higher, with a touch more of the next card visible. */
  .tile-stage {
    top: 47.5% !important;
    transform: translate(-50%, -31%) !important;
  }

  .nxe-footer {
    bottom: max(42px, calc(env(safe-area-inset-bottom) + 30px)) !important;
  }

  .nxe-footer .counter {
    margin-bottom: 42px !important;
    transform: none !important;
  }

  .nxe-footer .actions {
    left: 0 !important;
    right: 88px !important;
    bottom: -10px !important;
    display: block !important;
    padding: 0 !important;
  }

  .nxe-footer .actions > span:not(.nxe-mobile-swipe-note) {
    display: none !important;
  }

  .nxe-mobile-swipe-note {
    display: block !important;
    max-width: 230px;
    color: rgba(255,255,255,.72);
    font-size: 10.5px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.35;
    letter-spacing: .01em;
    text-shadow: 0 2px 5px rgba(0,0,0,.42);
  }

  /* Field Guide home is touch-native on mobile; no fixed controller flyout. */
  .unicore-game-controls {
    display: none !important;
  }

  .unicore-game-world {
    padding-bottom: max(36px, calc(env(safe-area-inset-bottom) + 22px)) !important;
  }

  .unicore-card-track {
    padding-bottom: 34px !important;
  }

  /* Shared mobile Start Quest treatment. */
  .vp-panel-actions,
  .webcore-map-controls,
  .wwcore-ceremony-controls,
  .codicom-v3-controls {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 14px 0 0 !important;
  }

  .vp-panel-actions > :not(.start-quest-pill),
  .webcore-map-controls > :not(.start-quest-pill),
  .wwcore-ceremony-controls > :not(.start-quest-pill),
  .codicom-v3-controls > :not(.start-quest-pill),
  .vp-bottom-hints {
    display: none !important;
  }

  .vp-panel-actions .start-quest-pill,
  .webcore-map-controls .start-quest-pill,
  .wwcore-ceremony-controls .start-quest-pill,
  .codicom-v3-controls .start-quest-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .start-quest-pill__label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0;
    white-space: nowrap;
    font-size: 13px !important;
    letter-spacing: .09em !important;
    line-height: 1 !important;
  }

  .start-quest-pill__icon {
    flex: 0 0 auto;
    position: static !important;
    transform: none !important;
  }

  /* VistaPort: one readable module per row instead of squeezed two-column cards. */
  .vp-loadout-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .vp-core-stage {
    order: 0;
  }

  .vp-module-column.vp-left {
    order: 1;
  }

  .vp-module-column.vp-right {
    order: 2;
  }

  .vp-module-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .vp-slot {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 3px 14px !important;
    min-height: 126px !important;
    padding: 14px !important;
    text-align: left !important;
  }

  .vp-slot h3,
  .vp-slot em,
  .vp-slot p {
    grid-column: 2 !important;
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
  }

  .vp-slot h3 {
    grid-row: 1;
    font-size: 16px !important;
    line-height: 1.1 !important;
  }

  .vp-slot em {
    grid-row: 2;
    justify-self: start;
    margin-top: 2px !important;
    font-size: 9px !important;
  }

  .vp-slot p {
    grid-row: 3;
    align-self: start;
    margin-top: 7px !important;
    font-size: 12px !important;
    line-height: 1.38 !important;
  }

  .vp-slot-icon {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    position: relative !important;
    inset: auto !important;
    width: 88px !important;
    height: 88px !important;
    margin: 0 !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .vp-panel-actions {
    border-top: 1px solid rgba(219,176,91,.18);
    padding-top: 12px !important;
  }

  /* CorePilot / WebCore: readable route board, no empty controller HUD. */
  .webcore-map-topbar,
  .webcore-map-switch {
    display: none !important;
  }

  .webcore-map-interface {
    gap: 10px !important;
    overflow: visible !important;
  }

  .webcore-map-canvas {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    padding: 10px !important;
    overflow: visible !important;
    background:
      radial-gradient(circle at 50% 5%, rgba(50,118,126,.16), transparent 40%),
      linear-gradient(180deg, rgba(6,18,24,.94), rgba(4,10,15,.98)) !important;
  }

  .webcore-map-note {
    grid-column: 1 / -1 !important;
    order: 0 !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .webcore-map-pin {
    order: 1 !important;
    grid-column: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    min-height: 52px !important;
    padding: 9px 10px !important;
    color: #f6f1df !important;
    border: 1px solid rgba(219,176,91,.20) !important;
    background: linear-gradient(180deg, rgba(10,29,31,.96), rgba(5,16,18,.98)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05) !important;
  }

  .webcore-map-pin i {
    flex: 0 0 25px !important;
    width: 25px !important;
    height: 25px !important;
  }

  .webcore-map-pin b {
    display: block !important;
    min-width: 0 !important;
    color: #f6f1df !important;
    opacity: 1 !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    letter-spacing: .04em !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  .webcore-map-pin.is-selected,
  .webcore-map-pin.is-core {
    border-color: rgba(193,255,97,.52) !important;
    background: linear-gradient(180deg, rgba(24,75,43,.96), rgba(8,35,24,.98)) !important;
  }

  .webcore-map-stats {
    order: 2 !important;
    grid-column: 1 / -1 !important;
    margin-top: 2px !important;
  }

  .webcore-map-controls {
    grid-column: 1 / -1;
  }

  /* wwCORE and codicom keep their experience content, but the footer is touch-simple. */
  .wwcore-ceremony-controls,
  .codicom-v3-controls {
    border-top: 1px solid rgba(219,176,91,.16);
    padding-top: 12px !important;
  }

  .codicom-v3-stage {
    gap: 12px !important;
  }

  /* Easter egg: compact HUD and properly sized touch game board. */
  .unicore-quest-complete-overlay {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding: max(14px, env(safe-area-inset-top)) 8px max(18px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
  }

  .unicore-quest-complete-overlay.is-egg-mode .unicore-quest-complete-dialog {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 18px 12px !important;
    overflow: visible !important;
  }

  .unicore-quest-complete-overlay.is-egg-mode .unicore-quest-complete-view.is-egg {
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .unicore-egg-head {
    margin: 0 auto 8px !important;
  }

  .unicore-egg-head h3 {
    margin: 4px 0 6px !important;
    font-size: clamp(32px, 10vw, 46px) !important;
    line-height: .95 !important;
  }

  .unicore-egg-head p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  .unicore-egg-hud {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 0 4px !important;
  }

  .unicore-egg-scorebox {
    padding: 9px 10px !important;
  }

  .unicore-egg-scorebox.is-wide {
    grid-column: 1 / -1 !important;
  }

  .unicore-egg-scorebox strong {
    margin-top: 3px !important;
    font-size: 1.15rem !important;
  }

  .unicore-egg-scorebox.is-wide strong {
    font-size: .84rem !important;
  }

  .unicore-breakout-shell {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 6px !important;
    border-radius: 12px !important;
  }

  .unicore-breakout-canvas {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 9px !important;
    cursor: default !important;
    touch-action: none !important;
  }

  .unicore-egg-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  .unicore-egg-actions .uqc-action {
    min-height: 46px !important;
  }

  /* Digital Realms mobile map: stable viewport, transformed SVG, real touch gestures. */
  .digital-realms-map-shell {
    touch-action: none !important;
  }

  .digital-realms-map-wrap,
  .digital-realms-map-wrap.is-dragging,
  .digital-realms-map-wrap.is-pinching {
    transform: none !important;
    transition: none !important;
    touch-action: none !important;
    overflow: hidden !important;
    cursor: grab;
  }

  .digital-realms-map-wrap.is-dragging,
  .digital-realms-map-wrap.is-pinching {
    cursor: grabbing;
  }

  .digital-realms-map-wrap .digital-realms-svg {
    width: 100% !important;
    height: 100% !important;
    transform:
      translate3d(var(--dr-pan-x, 0px), var(--dr-pan-y, 0px), 0)
      scale(var(--dr-zoom, 1)) !important;
    transform-origin: center center !important;
    transition: transform 170ms ease-out !important;
    will-change: transform;
  }

  .digital-realms-map-wrap.is-dragging .digital-realms-svg,
  .digital-realms-map-wrap.is-pinching .digital-realms-svg {
    transition: none !important;
  }

  .digital-realms-map-hitzones {
    display: none !important;
  }

  .digital-realms-mobile-map-hint {
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: 10px;
    display: block !important;
    transform: translateX(-50%);
    padding: 7px 11px;
    border: 1px solid rgba(180,201,255,.22);
    border-radius: 999px;
    color: rgba(239,244,255,.76);
    background: rgba(5,9,24,.78);
    box-shadow: 0 8px 20px rgba(0,0,0,.24);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .055em;
    white-space: nowrap;
    pointer-events: none;
  }

  .digital-realms-map-shell::before,
  .digital-realms-map-shell::after {
    display: none !important;
  }

  .digital-realms-svg .dr-stars,
  .digital-realms-svg .dr-routes {
    pointer-events: none;
  }
}

@media (max-width: 430px) {
  .tile-stage {
    top: 46.8% !important;
  }

  .nxe-mobile-swipe-note {
    max-width: 205px;
    font-size: 9.8px;
  }

  .vp-slot {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    min-height: 116px !important;
    padding: 12px !important;
  }

  .vp-slot-icon {
    width: 74px !important;
    height: 74px !important;
  }

  .webcore-map-canvas {
    grid-template-columns: 1fr !important;
  }

  .webcore-map-note,
  .webcore-map-stats,
  .webcore-map-controls {
    grid-column: 1 !important;
  }
}

/* ========================================================================== 
   v346 — Mobile Field Guide polish + sustained-performance pass
   Desktop layouts and interaction remain unchanged above 860px.
   ========================================================================== */
@media (max-width: 860px) {
  /* Every Field Guide page opens as its own lightweight foreground scene. */
  .unicore-game.is-reading .unicore-game-world {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .unicore-game::after,
  .digital-realms-experience::before {
    display: none !important;
  }

  .unicore-letter-scene {
    contain: paint style;
  }

  .unicore-letter-scene .unicore-parchment {
    box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05) !important;
  }

  /* Keep the only mobile action calm, centered and easy to reach. */
  .unicore-welcome-actions,
  .vp-panel-actions,
  .webcore-map-controls,
  .wwcore-ceremony-controls,
  .codicom-v3-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 18px 0 0 !important;
    padding: 12px 0 24px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .vp-panel-actions {
    margin-top: 20px !important;
    padding-bottom: 38px !important;
  }

  .unicore-welcome-actions .start-quest-pill,
  .vp-panel-actions .start-quest-pill,
  .webcore-map-controls .start-quest-pill,
  .wwcore-ceremony-controls .start-quest-pill,
  .codicom-v3-controls .start-quest-pill {
    flex: 0 1 286px !important;
    width: min(286px, calc(100% - 20px)) !important;
    max-width: 286px !important;
    margin: 0 auto !important;
    min-height: 52px !important;
    justify-content: center !important;
  }

  .start-quest-pill,
  .start-quest-pill::before,
  .vp-mock-button.is-start-quest::before {
    animation: none !important;
  }

  /* VistaPort module art: center every generated icon inside its own tile. */
  .vp-slot-icon {
    display: block !important;
    isolation: isolate;
  }

  .is-projects .vp-slot-icon::before {
    left: 50% !important;
    top: 33px !important;
    width: 62px !important;
    height: 30px !important;
    transform: translateX(-50%) !important;
  }

  .is-projects .vp-slot-icon::after {
    left: calc(50% - 22px) !important;
    top: 23px !important;
    width: 30px !important;
    height: 14px !important;
    transform: none !important;
  }

  .is-records .vp-slot-icon::before {
    left: calc(50% - 8px) !important;
    top: 19px !important;
    width: 48px !important;
    height: 48px !important;
    transform: translateX(-50%) !important;
  }

  .is-records .vp-slot-icon::after {
    left: calc(50% + 18px) !important;
    top: 33px !important;
    width: 24px !important;
    height: 24px !important;
    transform: none !important;
  }

  .is-assets .vp-slot-icon::before {
    left: 50% !important;
    top: 31px !important;
    width: 66px !important;
    height: 27px !important;
    transform: translateX(-50%) !important;
  }

  .is-assets .vp-slot-icon::after {
    left: calc(50% - 9px) !important;
    right: auto !important;
    top: 23px !important;
    width: 18px !important;
    height: 42px !important;
    transform: none !important;
  }

  .is-domains .vp-slot-icon::before {
    left: 50% !important;
    top: 13px !important;
    width: 56px !important;
    height: 56px !important;
    transform: translateX(-50%) rotate(var(--vp-domain-rotation, 0deg)) !important;
    transform-origin: 50% 50% !important;
  }

  .is-domains .vp-slot-icon::after {
    left: 50% !important;
    top: 39px !important;
    width: 56px !important;
    height: 4px !important;
    transform: translateX(-50%) !important;
  }

  .is-clients .vp-slot-icon::before {
    left: 50% !important;
    top: 16px !important;
    width: 36px !important;
    height: 36px !important;
    transform: translateX(-50%) !important;
  }

  .is-clients .vp-slot-icon::after {
    left: 50% !important;
    bottom: 11px !important;
    width: 62px !important;
    height: 27px !important;
    transform: translateX(-50%) !important;
  }

  .is-documents .vp-slot-icon::before {
    left: 50% !important;
    top: 13px !important;
    width: 48px !important;
    height: 56px !important;
    transform: translateX(-50%) !important;
  }

  .is-documents .vp-slot-icon::after,
  .vp-slot.is-excel-mode .vp-slot-icon::after {
    left: 50% !important;
    top: 28px !important;
    width: 29px !important;
    height: 3px !important;
    transform: translateX(-50%) !important;
  }

  /* Digital Realms: static backdrop and one stable composited map layer. */
  .digital-realms-experience {
    background:
      radial-gradient(circle at 50% 18%, rgba(34,62,142,.22), transparent 34%),
      linear-gradient(180deg, #07122c 0%, #061329 48%, #050a1a 100%) !important;
  }

  .digital-realms-infinite-bg {
    display: none !important;
  }

  .digital-realms-topbar,
  .digital-realms-experience .digital-realms-topbar,
  .digital-realms-journey,
  .digital-realms-quote,
  .digital-realms-info,
  .digital-realms-featured {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .digital-realms-map-shell,
  .digital-realms-experience .digital-realms-map-shell {
    isolation: isolate;
    contain: paint style;
    background:
      radial-gradient(circle at 50% 48%, rgba(48,71,154,.20), transparent 48%),
      linear-gradient(180deg, #07142e 0%, #061127 50%, #050c20 100%) !important;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .digital-realms-map-wrap {
    contain: paint style;
    transform: translateZ(0) !important;
    backface-visibility: hidden;
  }

  .digital-realms-map-wrap .digital-realms-svg {
    transition: none !important;
    will-change: auto !important;
    backface-visibility: hidden;
    shape-rendering: geometricPrecision;
  }

  .digital-realms-map-wrap.is-dragging .digital-realms-svg,
  .digital-realms-map-wrap.is-pinching .digital-realms-svg {
    will-change: transform !important;
  }

  .dr-stars circle,
  .dr-island-float {
    animation: none !important;
  }

  .dr-routes path,
  .dr-portal-outer,
  .dr-realm-node:hover .dr-island-float,
  .dr-realm-node:focus-visible .dr-island-float,
  .dr-realm-node.is-active .dr-island-float {
    filter: none !important;
  }

  .digital-realms-info,
  .digital-realms-featured {
    contain: layout paint style;
  }

  .digital-realms-featured {
    content-visibility: auto;
    contain-intrinsic-size: 540px;
  }
}

@media (max-width: 430px) {
  .unicore-welcome-actions .start-quest-pill,
  .vp-panel-actions .start-quest-pill,
  .webcore-map-controls .start-quest-pill,
  .wwcore-ceremony-controls .start-quest-pill,
  .codicom-v3-controls .start-quest-pill {
    width: min(270px, calc(100% - 16px)) !important;
    max-width: 270px !important;
  }
}

@media (max-width: 860px) {
  .unicore-letter-scene {
    overflow-anchor: none;
  }
}
