.ripz-public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 25%);
    align-items: center;
    gap: 1rem;
    padding: clamp(1rem, 5vw, 3.5rem);
    border: 1px solid #55377a;
    border-radius: 1.25rem;
    background: radial-gradient(ellipse at 84% 45%, #553092, #1c142b 58%, #14141a);
    color: #f5edff;
}
.ripz-hero-pack { width: min(100%, 12rem); height: auto; justify-self: center; transform: rotate(9deg); filter: drop-shadow(0 1rem 1.4rem #0a061b); }
.ripz-action { background: var(--brand, #7c3aed); color: white; padding: .65rem 1.15rem; border-radius: .6rem; font-weight: 700; }
.ripz-action-danger { background: #b7253c; }
.ripz-action-danger:hover { background: #9a1d31; }
.ripz-pack-confirm { width: min(91vw, 25rem); margin: auto; padding: 1.25rem; background: #20182c; color: #f5edff; border: 1px solid #69517e; border-radius: 1rem; }
.ripz-pack-confirm::backdrop { background: rgb(0 0 0 / 70%); }
.ripz-public-tier { background: #1b1b23; color: #e5e7eb; }
.ripz-public-tier[data-tier="Epic"] { background: #401722; color: #ffb2bd; border-color: #843346; }
.ripz-public-tier[data-tier="Legendary"] { background: #173b2c; color: #a1f4ca; border-color: #2d7153; }
.ripz-public-tier[data-tier="Chase"] { background: #382054; color: #e5c6ff; border-color: #8952c4; }
.ripz-pack-dialog { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vw, 2rem); overflow: auto; background: radial-gradient(ellipse at 50% 37%, #362052, #15151b 63%); color: #f5edff; }
.ripz-pack-dialog [hidden] { display: none; }
.ripz-pack-dialog[open][data-phase="choose"] {
    display: grid;
    grid-template-rows: minmax(min-content, 1fr) auto minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr);
}
.ripz-pack-dialog[data-phase="choose"] .ripz-pack-head {
    grid-row: 1;
    align-self: start;
    width: 100%;
}
.ripz-pack-dialog[data-phase="choose"] #ripzPackChoose { grid-row: 2; }
.ripz-pack-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 64rem; margin: 0 auto 1rem; }
.ripz-pack-wheel {
    --pack-width: clamp(7rem, 25vw, 13rem);
    display: flex; gap: .85rem; align-items: center; overflow-x: auto; overflow-y: hidden;
    padding: 2rem calc((100% - var(--pack-width)) / 2);
    scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; user-select: none;
}
.ripz-pack-wheel::-webkit-scrollbar { display: none; }
.ripz-pack-wheel.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.ripz-pack-option { flex: 0 0 var(--pack-width); scroll-snap-align: center; }
.ripz-pack-option img {
    width: 100%; height: auto; opacity: var(--pack-opacity, 1);
    transform: perspective(700px) rotateY(var(--pack-angle, 0deg)) scale(var(--pack-scale, 1));
    filter: drop-shadow(0 .65rem .85rem #08050e);
}
.ripz-slice-pack { position: relative; width: min(65vw, 15rem, 34dvh, max(5rem, calc((100dvh - 14rem) * .655))); margin: auto; }
.ripz-slice-pack img { display: block; width: 100%; height: auto; user-select: none; }
.ripz-slice-stage { position: relative; }
.ripz-slice-surface { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: none; cursor: crosshair; }
.ripz-slice-trail { stroke: #fff4ff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; filter: drop-shadow(0 0 5px #c76aff) drop-shadow(0 0 9px #a341fa); }
.ripz-opening-video, .ripz-result-image { display: block; width: auto; max-width: 100%; max-height: 63dvh; margin: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
    .ripz-pack-option img { transform: none; }
}
