.scratch2000-modal.is-cdrom .scratch2000-modal-balance {
    display: none;
}

.scratch2000-modal.is-cdrom .scratch2000-star-stage {
    min-height: min(610px, calc(100dvh - 106px));
}

.scratch2000-modal.is-cdrom.has-result .scratch2000-star-stage {
    min-height: min(610px, calc(100dvh - 106px));
}

.scratch2000-modal.is-cdrom .scratch2000-prize-star {
    width: min(620px, 96vw);
    opacity: 0.34;
}

.scratch2000-cd-ticket {
    position: relative;
    width: min(590px, 94vw, calc(100dvh - 132px));
    aspect-ratio: 1;
    overflow: hidden;
    isolation: isolate;
    filter: drop-shadow(3px 4px 0 rgba(12, 4, 40, 0.52));
    image-rendering: pixelated;
}

.scratch2000-cd-art {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.scratch2000-cd-holder {
    fill: #2a1260;
    stroke: #13072f;
    stroke-width: 24;
}

.scratch2000-cd-disc {
    fill: url(#scratch2000-cd-core);
    stroke: #351468;
    stroke-width: 12;
}

.scratch2000-cd-disc-lines {
    pointer-events: none;
}

.scratch2000-cd-sector-frame {
    fill: rgba(30, 17, 82, 0.22);
    stroke: #38106b;
    stroke-width: 7;
    stroke-dasharray: 12 9;
    stroke-linecap: square;
    stroke-linejoin: miter;
    pointer-events: none;
}

.scratch2000-cd-sector-frame.is-focused {
    stroke: #fff873;
    stroke-width: 10;
}

.scratch2000-cd-copy {
    fill: #31166f;
    font-family: 'PixelOperatorMono', 'PixeloidSans', monospace;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 2px;
    paint-order: stroke fill;
    stroke: #f8d6ff;
    stroke-width: 2px;
}

.scratch2000-cd-copy .is-small {
    font-size: 31px;
}

.scratch2000-cd-copy .is-tiny {
    font-size: 23px;
}

.scratch2000-cd-hub circle {
    fill: #482189;
    stroke: #1a0c43;
    stroke-width: 16;
}

.scratch2000-cd-hub circle:nth-child(2) {
    fill: #7650ba;
    stroke: #d7a7f0;
    stroke-dasharray: 8 9;
    stroke-width: 12;
}

.scratch2000-cd-hub circle:nth-child(3) {
    fill: #160638;
    stroke: #361065;
    stroke-width: 20;
}

.scratch2000-cd-hub circle:nth-child(4) {
    fill: #050218;
    stroke: #2c145b;
    stroke-width: 9;
}

.scratch2000-cd-sector {
    position: absolute;
    z-index: 2;
    left: var(--cd-sector-left);
    top: var(--cd-sector-top);
    width: var(--cd-sector-width);
    height: var(--cd-sector-height);
    display: grid;
    place-items: center;
}

.scratch2000-cd-sector canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.scratch2000-cd-symbol-glow {
    z-index: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40%;
    height: 40%;
    background: var(--cd-rarity-color);
    -webkit-mask: var(--cd-symbol-mask) center / contain no-repeat;
    mask: var(--cd-symbol-mask) center / contain no-repeat;
    transform: translate(-42%, -38%);
    image-rendering: pixelated;
}

.scratch2000-cd-symbol-glow::after {
    content: none;
}

.scratch2000-cd-symbol {
    z-index: 1;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40%;
    height: 40%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    image-rendering: pixelated;
}

.scratch2000-cd-sector canvas {
    z-index: 2;
    cursor: crosshair;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.scratch2000-cd-sector canvas:focus-visible {
    outline: 0;
}

.scratch2000-cd-sector.is-scratching {
    animation: scratch2000CdScratchTap 150ms steps(2, end);
}

.scratch2000-cd-sector.is-revealed canvas {
    opacity: 0;
}

.scratch2000-cd-particle {
    position: absolute;
    z-index: 4;
    width: 4px;
    height: 4px;
    pointer-events: none;
    image-rendering: pixelated;
    animation: scratch2000CdChip 420ms steps(5, end) forwards;
}

@keyframes scratch2000CdScratchTap {
    0%, 100% {
        transform: translate(0);
    }
    50% {
        transform: translateY(2px);
    }
}

@keyframes scratch2000CdChip {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--chip-x), -18px) scale(0.4);
    }
}

@media (max-width: 560px) {
    .scratch2000-modal.is-cdrom .scratch2000-star-stage {
        min-height: min(450px, calc(100dvh - 72px));
    }

    .scratch2000-cd-ticket {
        width: min(94vw, calc(100dvh - 100px));
    }

    .scratch2000-cd-copy {
        font-size: 38px;
    }

    .scratch2000-cd-copy .is-small {
        font-size: 29px;
    }

    .scratch2000-cd-copy .is-tiny {
        font-size: 21px;
    }
}

@media (max-height: 620px) {
    .scratch2000-modal.is-cdrom .scratch2000-star-stage {
        min-height: min(420px, calc(100dvh - 64px));
    }

    .scratch2000-cd-ticket {
        width: min(88vw, calc(100dvh - 85px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .scratch2000-cd-sector,
    .scratch2000-cd-particle {
        animation: none !important;
    }
}
