/* DVD Logo Bounce Game Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    overflow: hidden;
    user-select: none;
}

@font-face {
    font-family: 'VCR OSD Mono';
    src: url('../assets/fonts/VCR_OSD_MONO_1.001.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

#stage1Container {
    width: 100vw;
    height: 100dvh;
    background-image: url('../images/Stage_1/stage_1_BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* TV Container Layout */
#tvContainer {
    position: fixed;
    top: 49.2%;
    left: 49.6%;
    transform: translate(-50%, -50%);
    aspect-ratio: 1498/1011;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

#tvFrame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Game Container */
#gameContainer {
    position: absolute;
    top: 7.5%;
    left: 11.4%;
    width: 57.3%;
    height: 60.3%;
    overflow: hidden;
    z-index: 2;
    transition: all 0.5s ease;
}

#tvScreenInit, #tvScreenInitBg, #tvScreen {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

#tvScreenInit {
    display: block;
    background-image: url('../images/Stage_1/DVD_animation_1-50.png');
    background-size: 2500% 200%; /* 25 frames per row = 2500% width, 2 rows = 200% height */
    background-position: 0% 0%;
    background-repeat: no-repeat;
    animation: none; /* Controlled by JavaScript */
}

#tvScreenInitBg {
    z-index: 0;
}

#tvScreen {
    display: none;
}

/* Corner hit effect images */
.hit-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hit-effect.show {
    display: block;
    opacity: 1;
}

/* Orbit arrow indicator */
#orbitArrow {
    position: absolute;
    width: clamp(28px, 4vw, 40px);
    height: clamp(28px, 4vw, 40px);
    pointer-events: none;
    z-index: 11;
    display: none;
    transform-origin: 50% 100%;
    transition: transform 0.05s linear;
}

#orbitArrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #b4f900;
    -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Legacy dial display (visual only) */
#angleIndicator {
    position: absolute;
    top: 46%;
    left: 71.95%;
    width: 9.5%;
    height: 15%;
    background: none;
    z-index: 30;
    pointer-events: none;
}

#angleIndicator * {
    pointer-events: none;
}

#dialBackground {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../images/Stage_1/Aim_BG_01.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

#dialButton {
    position: absolute;
    top: 24%;
    left: 28%;
    width: 35%;
    height: 31%;
    background-image: url('../images/Stage_1/Aim_01.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: center 80%;
}

#angleText {
    position: absolute;
    top: 110%;
    left: 50%;
    display: none;
    padding: clamp(2px, 0.3vw, 4px) clamp(6px, 1vw, 12px);
    font-size: clamp(12px, 1.5vw, 16px);
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    text-align: center;
    color: #fff;
    background: #000a;
    border-radius: clamp(4px, 0.5vw, 8px);
    text-shadow: 1px 1px 2px #000;
    transform: translate(-50%, 0);
}

#rotate-device-prompt {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 24px);
    background: rgba(0, 0, 0, 0.95);
    color: #b4f900;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.4;
    text-align: center;
    z-index: 4000;
}

body.orientation-locked {
    touch-action: none;
}

body.orientation-locked #stage1Container,
body.orientation-locked #stage2Container,
body.orientation-locked #stage1GameOver,
body.orientation-locked #stage2GameOver,
body.orientation-locked #tvContainer,
body.orientation-locked #instructions,
body.orientation-locked #instructionsMobile,
body.orientation-locked #stage2Transition {
    pointer-events: none;
}

body.orientation-locked #rotate-device-prompt {
    pointer-events: auto;
}

/* Gameplay state - zoomed in */
.gameplay #stage1Container {
    transform: scale(1.4);
    transition: transform 0.8s ease-in-out;
}
@media screen and (max-width: 768px) {
    .gameplay #stage1Container {
        transform: scale(1);
    }
}

.gameplay #tvContainer {
    transform: translate(-50%, -50%);
}

/* Landing page instructions */
.landing #instructions {
    display: block;
    color: #b4f900;
}

.landing #instructions::after {
    content: "ENTER TO PLAY";
    display: block;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 4px;
    animation: blink 1.5s infinite;
}

body[data-device="mobile"].landing #instructions::after {
    content: none;
}

body[data-device="mobile"].landing #instructionsMobile .instructions-mobile__content::after {
    content: "TAP TO PLAY";
    display: block;
    margin-top: clamp(12px, 4vw, 20px);
    font-size: clamp(18px, 4.5vw, 28px);
    letter-spacing: 0.15em;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Full screen mode for Stage 2 */
#gameContainer.fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    z-index: 5; /* Above the TV frame but below UI elements */
}

/* DVD Logo */
#dvdLogo {
    position: absolute;
    display: none;
    width: clamp(30px, 4vw, 45px);
    height: clamp(18px, 2.4vw, 27px);
    transition: transform 0.1s ease;
    z-index: 10;
}

#dvdImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.2s ease;
}

.gameplay #dvdLogo {
    display: flex;
}

#instructions {
    position: absolute;
    top: 85%;
    left: 43.5%;
    display: none;
    padding: 5px 8px;
    width: 44%;
    font-size: 16px;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    text-align: left;
    text-transform: uppercase;
    line-height: 1.2;
    color: #b4f900;
    background: #000a;
    /* border: 1px solid red; */
    border-radius: clamp(8px, 1vw, 12px);
    transform: translateX(-50%);
    z-index: 30;
}

.landing #instructions {
    display: block;
}

.gameplay #instructions {
    display: block;
}

/* Larger text for countdown display */
#instructions.countdown {
    margin-top: 8px;
}

#instructionsMobile {
    position: fixed;
    inset: 0;
    display: none;
    padding: clamp(16px, 6vw, 32px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 0;
    transform: none;
    pointer-events: none;
    z-index: 220;
    transition: all 0.4s ease;
    overflow: hidden;
}

.instructions-mobile__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.instructions-mobile__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 16px);
    text-align: center;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    font-size: clamp(16px, 3.5vw, 22px);
    line-height: 1.5;
    text-transform: uppercase;
    color: #b4f900;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 1;
}

body[data-device="mobile"] #instructions {
    display: none;
}

body[data-device="mobile"].landing #instructionsMobile:not(.countdown),
body[data-device="mobile"].gameplay #instructionsMobile:not(.countdown) {
    display: flex;
}

body[data-device="mobile"] #instructionsMobile.countdown {
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: clamp(40px, 12vw, 48px);
    padding: clamp(6px, 2vw, 12px) clamp(10px, 5vw, 18px);
    justify-content: center;
    align-items: center;
}

body[data-device="mobile"] #instructionsMobile.countdown .instructions-mobile__content {
    flex-direction: row;
    align-items: center;
    gap: clamp(6px, 2vw, 12px);
}

body.orientation-locked #instructions,
body.orientation-locked #instructionsMobile {
    display: none !important;
}


/* Corner Elements */
.corner {
    position: absolute;
    display: none;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.corner.hit {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    transform: scale(1.2);
}

.corner.hit::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    transform: translate(-50%, -50%);
}

#cornerTL { top: 0; left: 0; }
#cornerTR { top: 0; right: 0; }
#cornerBL { bottom: 0; left: 0; }
#cornerBR { bottom: 0; right: 0; }

/* Animations */
.levelComplete {
    animation: levelComplete 0.5s ease-in-out;
}

@keyframes levelComplete {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes popupAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Stage 1 Game Over Screen */
#stage1GameOver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    color: #b4f900;
    z-index: 1000;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    text-transform: uppercase;
    display: none;
}

#stage1BgOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.8;
}

#stage1GameOverContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

#stage1GameOverTitle {
    position: relative;
    margin: 0;
    color: #b4f900;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: normal;
    letter-spacing: 0.1em;
    text-align: center;
}

#stage1RestartBtn {
    position: relative;
    background: #000;
    color: #b4f900;
    border: 2px solid #b4f900;
    padding: 15px 40px;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    font-size: clamp(16px, 2.5vw, 24px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

#stage1RestartBtn:hover {
    background: #b4f900;
    color: #000;
}

/* Stage 2 Game Over Screen */
#stage2GameOver {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    color: #b4f900;
    z-index: 2000;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    text-transform: uppercase;
    display: none;
}

#stage2BgOverlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #9333EA 100%);
    opacity: 1;
}

#stage2GameOverContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
}

#stage2GameOverCat {
    position: absolute;
    right: 0;
    bottom: -40px;
    width: 60%;
    height: 80%;
    object-fit: contain;
    object-position: bottom right;
    z-index: 10;
}

/* Group for title and restart button */
#stage2GameOverGroup {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
}

#stage2GameOverTitle {
    position: relative;
    font-size: clamp(40px, 6vw, 72px);
    color: #000;
    text-shadow: none;
    margin: 0;
    font-weight: normal;
    letter-spacing: 0.1em;
}

#stage2GameOverSubtitle {
    margin: 0;
    font-size: clamp(16px, 2.5vw, 22px);
    color: #f5e9ff;
    text-transform: none;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

#stage2FinalScore,
#stage2FinalPawScore {
    position: absolute;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #b4f900;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    text-transform: uppercase;
}

#stage2FinalScore {
    left: 40px;
    text-align: left;
}

#stage2FinalPawScore {
    right: 40px;
    align-items: flex-end;
    text-align: right;
}

#stage2FinalScore .stat-label,
#stage2FinalPawScore .stat-label {
    font-size: 18px;
    letter-spacing: 0.12em;
}

#stage2FinalScore .stat-value,
#stage2FinalPawScore .stat-value {
    font-size: 40px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

#stage2FinalScore .stat-value {
    align-items: baseline;
}

#stage2RestartBtn {
    position: relative;
    align-self: flex-start;
    padding: 12px 30px;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    font-size: clamp(14px, 2vw, 18px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b4f900;
    background: #000;
    border: 2px solid #b4f900;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

#stage2RestartBtn:hover {
    color: #000;
    background: #b4f900;
}


/* Stage 2 Transition Animation - Full Screen */
#stage2Transition {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100dvh;
    background: #000;
    z-index: 2000;
}

#stage2Transition #transitionImage {
    width: 100vw;
    height: 100dvh;
    object-fit: cover;
}


/* Stage 2 - Full Screen Purple Design */
#stage2Container {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    z-index: 1500;
}

#stage2Background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/Stage_2/stage_2_bg.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Stage 2 UI Elements */
#stage2Timer {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 30px;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    text-transform: uppercase;
    line-height: 1.2;
    color: #b4f900;
    z-index: 100;
}

#stage2Timer span {
    font-size: 40px;
}

#stage2Score {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 30px;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    color: #b4f900;
    z-index: 100;
}

#stage2Instructions {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #b4f900;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    font-size: clamp(32px, 4vw, 72px);
    text-transform: uppercase;
    text-align: center;
    z-index: 100;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #b4f900;
    width: 0;
    animation: typewriter-instructions 3s steps(20, end) forwards, blink-caret-instructions 0.75s step-end infinite, fade-out-instructions 0.5s ease-out 3.5s forwards;
    animation-fill-mode: forwards;
}

#stage2Warning {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #b4f900;
    font-family: 'VCR OSD Mono', Arial, sans-serif;
    font-size: clamp(32px, 4vw, 72px);
    text-transform: uppercase;
    text-align: center;
    z-index: 100;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #b4f900;
    width: 0;
    animation: typewriter-warning 3s steps(28, end) 4s forwards, blink-caret-warning 0.75s step-end 4s infinite;
    animation-fill-mode: forwards;
}

/* Instructions typewriter animation */
@keyframes typewriter-instructions {
    0% { 
        opacity: 1; 
        width: 0; 
    }
    100% { 
        opacity: 1; 
        width: 23ch; /* "MOVE FREELY WITH WASD" = 20 chars + some padding */
    }
}

/* Warning typewriter animation */
@keyframes typewriter-warning {
    0% { 
        opacity: 1; 
        width: 0; 
    }
    100% { 
        opacity: 1; 
        width: 25ch; /* "Oh no...don't Get caught!" = 28 chars + some padding */
    }
}

/* Instructions blinking caret */
@keyframes blink-caret-instructions {
    from, to { border-color: transparent; }
    50% { border-color: #b4f900; }
}

/* Warning blinking caret */
@keyframes blink-caret-warning {
    from, to { border-color: transparent; }
    50% { border-color: #b4f900; }
}

/* Fade out instructions */
@keyframes fade-out-instructions {
    0% { 
        opacity: 1; 
    }
    100% { 
        opacity: 0; 
    }
}

#stage2Cat {
    position: absolute;
    right: 0;
    bottom: -100px;
    width: 600px;
    height: 600px;
    opacity: 0;
    animation: catFadeIn 2s ease-out 6s forwards;
    transform: translateY(100%);
    z-index: 50;
}

#stage2CatImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: pixelated;
    will-change: opacity;
    backface-visibility: hidden;
}

@keyframes catFadeIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#stage2DVD {
    position: absolute;
    width: 140px;
    height: 100px;
    /* transition: all 0.1s ease; */
    z-index: 20;
}

#stage2DVD img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Stage 2 mobile layout adjustments */
body[data-device="mobile"] #stage2Container {
    padding: 0;
}

body[data-device="mobile"] #stage2Timer {
    top: clamp(12px, 4.5vw, 21px);
    left: clamp(12px, 4.5vw, 21px);
    font-size: clamp(11px, 2.8vw, 14px);
    line-height: 1.2;
    letter-spacing: 0.08em;
}

body[data-device="mobile"] #stage2Timer span {
    display: block;
    margin-top: clamp(3px, 1.2vw, 5px);
    font-size: clamp(16px, 6vw, 22px);
}

body[data-device="mobile"] #stage2Score {
    top: clamp(12px, 4.5vw, 21px);
    right: clamp(12px, 4.5vw, 21px);
    gap: clamp(3px, 1.9vw, 6px);
    font-size: clamp(11px, 2.8vw, 14px);
    padding: 0;
}

body[data-device="mobile"] .paw-icon {
    width: clamp(14px, 4.5vw, 20px);
    height: clamp(14px, 4.5vw, 20px);
}

body[data-device="mobile"] #stage2Instructions,
body[data-device="mobile"] #stage2Warning {
    top: 60%;
    font-size: clamp(14px, 4vw, 21px);
    border-right-width: 1.5px;
}

body[data-device="mobile"] #stage2Cat {
    right: clamp(-30px, -6vw, 0px);
    bottom: clamp(-15px, -4vw, 8px);
    width: clamp(165px, 52vw, 240px);
    height: clamp(165px, 52vw, 240px);
}

body[data-device="mobile"] #stage2DVD {
    width: clamp(60px, 18vw, 90px);
    height: clamp(38px, 12vw, 60px);
}

body[data-device="mobile"] #stage2DVD img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

body[data-device="mobile"] .toeBean,
body[data-device="mobile"] .toeBeanWarning {
    width: clamp(32px, 10vw, 44px);
    height: clamp(32px, 10vw, 44px);
}

body[data-device="mobile"] #stage2FinalScore,
body[data-device="mobile"] #stage2FinalPawScore {
    top: clamp(12px, 4.5vw, 21px);
    gap: clamp(6px, 2vw, 10px);
}

body[data-device="mobile"] #stage2FinalScore {
    left: clamp(12px, 4.5vw, 21px);
}

body[data-device="mobile"] #stage2FinalPawScore {
    right: clamp(12px, 4.5vw, 21px);
}

body[data-device="mobile"] #stage2FinalScore .stat-label,
body[data-device="mobile"] #stage2FinalPawScore .stat-label {
    font-size: clamp(12px, 3.6vw, 15px);
    letter-spacing: 0.08em;
}

body[data-device="mobile"] #stage2FinalScore .stat-value,
body[data-device="mobile"] #stage2FinalPawScore .stat-value {
    font-size: clamp(18px, 9vw, 24px);
    gap: clamp(4px, 1.5vw, 6px);
}

body[data-device="mobile"] #stage2GameOverGroup {
    left: clamp(20px, 6vw, 32px);
    top: 56%;
    gap: clamp(12px, 4vw, 18px);
    max-width: clamp(220px, 68vw, 480px);
}

body[data-device="mobile"] #stage2GameOverTitle {
    font-size: clamp(26px, 8vw, 36px);
}

body[data-device="mobile"] #stage2GameOverSubtitle {
    font-size: clamp(13px, 4.2vw, 18px);
    letter-spacing: 0.04em;
}

body[data-device="mobile"] #stage2RestartBtn {
    font-size: clamp(12px, 3.5vw, 14px);
    padding: clamp(8px, 3vw, 12px) clamp(18px, 6vw, 24px);
}

body[data-device="mobile"] #stage2GameOverCat {
    width: clamp(200px, 66vw, 280px);
    height: auto;
    bottom: clamp(-20px, -6vw, 0px);
}

/* Toe beans */
.toeBean {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('../images/Stage_2/cat_attack.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: toeBeanAppear 0.3s ease-out forwards;
    z-index: 30;
    pointer-events: none;
}

/* Toe bean warning preview */
.toeBeanWarning {
    position: absolute;
    width: 60px;
    height: 60px;
    background-image: url('../images/Stage_2/cat_attack.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0;
    animation: toeBeanWarningAppear 0.3s ease-out forwards;
    z-index: 25;
    pointer-events: none;
}

@keyframes toeBeanAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes toeBeanWarningAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.5;
    }
}

/* Paw icon styling */
.paw-icon {
    width: 30px;
    height: 30px;
}



/* Responsive Design */
@media screen and (max-width: 1000px) {
    #stage2Cat {
        right: -5%;
        width: 400px;
        height: 400px;
    }
}

@media screen and (max-width: 768px) {
    #stage1Container {
        background-size: cover;    
    }

    #tvContainer {
        width: 98vw;
    }
    
        
    #instructions {
        bottom: 2%;
        padding: clamp(6px, 0.8vw, 8px) clamp(12px, 1.5vw, 16px);
        max-width: 100%;
        font-size: clamp(12px, 2.5vw, 16px);
    }
    
    #angleText {
        font-size: clamp(10px, 2vw, 14px);
    }
    
}

@media screen and (max-width: 480px) {
    #tvContainer {
        width: 100vw;
    }
    
    #dvdLogo {
        width: clamp(60px, 12vw, 100px);
        height: clamp(30px, 6vw, 50px);
        font-size: clamp(18px, 5vw, 28px);
    }
    
    #angleText {
        font-size: clamp(8px, 2.5vw, 12px);
    }
    
} 
