@font-face {
    font-family: 'CourierPrimeCustom';
    src: url('https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Fonts/CourierPrime-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Impact';
    src: url('https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Fonts/impact.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Comic Sans MS';
    src: url('https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Fonts/Comic%20Sans%20MS.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.index-container {
    position: relative;
    width: 1100px;
    height: 750px;
    transform-origin: center center;
}

.index-layout {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.index-bg {
    position: absolute;
    top: 75px;
    left: 275px;
    width: 825px;
    height: 619px;
    transform: rotate(-2deg);
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/polka-bg-min3.png");
    background-repeat: repeat;
    z-index: 1;
}

.index-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 275px;
    height: 750px;
}

.index-right {
    position: absolute;
    left: 275px;
    top: 0;
    width: 825px;
    height: 750px;
}

.speech-bubble {
    position: absolute;
    top: 30px;
    left: 0;
    width: 234px;
    height: 234px;
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/index/Layer19%20(1).png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    transform: rotate(-3deg);
    z-index: 3;
}

.bubble-text {
    position: absolute;
    width: 152px;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Comic Sans MS", cursive, sans-serif;
    color: black;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
    font-size: 20px;
}

.rag-portrait {
    position: absolute;
    width: 412px;
    left: 55px;
    bottom: 0;
    filter: drop-shadow(2px 2px 4px black);
    z-index: 2;
}

.index-text-wrapper {
    position: absolute;
    top: 170px;
    right: 90px;
    width: 600px;
    padding: 30px 0;
    background: linear-gradient(to bottom, #361db3, #2a56db);
    filter: drop-shadow(6px 6px 0 black);
    transform: rotate(2deg);
    display: flex;
    justify-content: center;
    z-index: -1;
}

.index-text-inner {
    width: 85%;
}

.index-text {
    font-family: "Comic Sans MS", cursive, sans-serif;
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 1px black;
    line-height: 1.5;
}

.index-warning {
    color: #ffd84d;
    text-align: center;
    margin-top: 20px;
}

.index-title {
    position: absolute;
    top: -40px;
    right: 150px;
    font-family: Impact, sans-serif;
    font-size: 56px;
    color: white;
    transform: rotate(-5deg);
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
    z-index: 2;
}

.index-subtitle {
    position: absolute;
    top: 90px;
    right: 150px;
    width: 500px;
    height: 90px;
    font-family: 'CourierPrimeCustom', monospace;
    font-size: 22px;
    font-weight: bold;
    color: #ffc533;
    text-shadow: 1px 1px 0 black;
    background: linear-gradient(to bottom, #c10000, #f2590c);
    border-radius: 200px / 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(4px 4px 0 black);
}

.index-button {
    position: absolute;
    width: 200px;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    cursor: pointer;
    filter: drop-shadow(5px 5px 4px black);
    transition: opacity 0.15s ease;
}

.index-button:hover {
    content: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/index/Folder62.png");
}

.index-burst {
    position: absolute;
    width: 300px;
    height: 300px;
    right: -25px;
    bottom: -25px;
    background-image: url("https://file.garden/YhDZAMkshFKY8jkE/Raworld%20-%20Remaster/Assets/index/NewCanvas21.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(5deg);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(5px 5px 4px black);
    z-index: 2;
    animation: burstBounce 2.2s ease-in-out infinite;
}

.burst-text {
    width: 75%;
    text-align: center;
    font-family: Impact, sans-serif;
    font-size: 25px;
    color: white;
    line-height: 1.1;
}

@keyframes burstBounce {
    0% { transform: rotate(5deg) scale(1); }
    20% { transform: rotate(5deg) scale(1.08); }
    35% { transform: rotate(5deg) scale(0.95); }
    50% { transform: rotate(5deg) scale(1.04); }
    65% { transform: rotate(5deg) scale(0.98); }
    100% { transform: rotate(5deg) scale(1); }
}