/* The Jetlag product box, drawn in 3D. Every size is in em, so font-size on .box3d scales the whole box. */
.box3d {
    --w: 30em; --h: 40em; --d: 9em;
    position: relative; flex: none; width: var(--w); height: var(--h);
    font-size: 10px;
    transform-style: preserve-3d;
    transform: rotateX(-3deg) rotateY(33deg);
    transition: transform .6s var(--ease);
}
.b-front, .b-side { position: absolute; top: 0; height: 100%; overflow: hidden; }

/* front: lit from the left edge, the artwork glowing on it */
.b-front {
    left: 0; width: 100%;
    display: flex; flex-direction: column; align-items: center;
    background:
        linear-gradient(112deg, rgba(255, 255, 255, .13), transparent 32%),
        radial-gradient(18em 17em at 52% 40%, rgba(139, 92, 246, .55), transparent 70%),
        linear-gradient(100deg, #24163f, #130b27 48%, #08050f);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.b-front img { width: 27em; height: auto; margin-top: 1.2em; mix-blend-mode: screen; }
.b-front small { margin-top: -.9em; color: #cfc6ee; font: 500 1.35em/1 "Bai Jamjuree", sans-serif; letter-spacing: .02em; }

/* left side: darker, the name running up it */
.b-side {
    left: 0; width: var(--d);
    transform-origin: left center; transform: rotateY(-90deg) translateX(calc(var(--d) * -1));
    background: linear-gradient(90deg, #040208, #0e0820 70%, #1a1034);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.b-side span {
    position: absolute; left: 50%; top: 44%;
    transform: translate(-50%, -50%) rotate(-90deg);
    color: #f0edff; font: italic 800 4.7em/1 var(--display); letter-spacing: .01em; white-space: nowrap;
}

/* the lighter band along the bottom of both faces */
.b-band {
    position: absolute; left: 0; right: 0; bottom: 0; height: 4.2em;
    display: flex; align-items: center; justify-content: space-between; padding: 0 1.6em;
    background: linear-gradient(#4a3a78, #2c2050);
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #f0edff; font: 600 1.15em/1 "Bai Jamjuree", sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.b-band b { font: italic 800 1.45em/1 var(--display); letter-spacing: .06em; }
.b-band span { opacity: .75; }
.b-side .b-band { background: linear-gradient(#2a2048, #19122f); }

/* ---- The stage the box stands on ---- */
.stage {
    position: relative; overflow: hidden;
    display: grid; place-items: center; perspective: 1500px;
    min-height: 560px; padding: 56px 24px 64px;
    background:
        radial-gradient(60% 46% at 50% 100%, rgba(139, 92, 246, .34), transparent 70%),
        radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px) 0 0 / 14px 14px,
        linear-gradient(160deg, #150e2a, #07050e 70%);
    border: 1px solid rgba(139, 92, 246, .5); border-radius: 24px;
}
.stage::after {                                   /* the box's pool of light on the floor */
    content: ""; position: absolute; left: 50%; bottom: 34px; width: 62%; height: 46px; transform: translateX(-46%);
    background: radial-gradient(closest-side, rgba(167, 139, 250, .6), transparent);
    filter: blur(14px); pointer-events: none;
}
.stage:hover .box3d { transform: rotateX(-2deg) rotateY(22deg); }
.stage .box3d { margin-left: 5em; z-index: 1; }      /* no filter here: a filter would flatten the 3D faces */
.stage-mark { position: absolute; left: 18px; bottom: 16px; width: 92px; height: auto; opacity: .45; }

.chip {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
    background: rgba(5, 3, 11, .6); border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
    color: var(--text); font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.chip-ok { left: 88px; color: #86efac; border-color: rgba(75, 217, 128, .38); }
.chip-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4bd980; }
.chip-game { top: auto; bottom: 14px; }
.chip svg.lucide { width: 13px; height: 13px; }
