html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

audio {
    display: none;
}

body {
    background-color: black;
    text-align: center;
    min-height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    animation: memoryEcho 10s ease-in-out infinite;
}

.legacy-button-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 200;
}

.older-version-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4a, #f39c12, #ffd700);
    background-size: 300% 300%;
    animation: goldenShimmer 3s ease-in-out infinite, gentlePulse 4s ease-in-out infinite;
    border: 3px solid #fff700;
    border-radius: 25px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: auto;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.older-version-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.8s ease;
}

.older-version-btn:hover::before {
    left: 100%;
}

.older-version-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 15px rgba(255, 255, 255, 0.4);
    border-color: #fff;
}

.btn-icon {
    font-size: 16px;
    animation: sparkleRotate 2s ease-in-out infinite;
}

.btn-text {
    font-weight: bold;
    letter-spacing: 0.5px;
}

.legacy-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 5px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    text-shadow: 0 0 10px #ffd700;
    z-index: 201;
}

.legacy-button-container:hover .legacy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

@keyframes goldenShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gentlePulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.3),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.5),
            inset 0 2px 15px rgba(255, 255, 255, 0.4);
    }
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(15deg) scale(1.1);
    }
    50% {
        transform: rotate(0deg) scale(1.2);
    }
    75% {
        transform: rotate(-15deg) scale(1.1);
    }
}

h1 {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    color: yellow;
    font-size: 36px;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.controls {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    padding: 0 20px;
}

.score {
    background: lightgreen;
    padding: 10px 20px;
    border-radius: 16px;
    color: #450d59;
    font-size: 2rem;
    margin-right: 20px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.timer {
    background: linear-gradient(45deg, #8e44ad, #9b59b6, #af7ac5);
    background-size: 200% 200%;
    animation: shimmerPurple 2s ease-in-out infinite;
    padding: 10px 20px;
    border-radius: 16px;
    color: white;
    font-size: 2rem;
    margin-right: 20px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 20px rgba(142, 68, 173, 0.5);
    border: 2px solid #e8d5f2;
}

@keyframes shimmerPurple {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 20px rgba(142, 68, 173, 0.5);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 30px rgba(142, 68, 173, 0.8);
    }
    100% {
        background-position: 0% 50%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 20px rgba(142, 68, 173, 0.5);
    }
}

.game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    border: 3px solid gold;
}

.game-over-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.final-score {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
    font-weight: bold;
}

#playAgainButton {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: #333;
    border: none;
    padding: 15px 25px;
    font-size: 18px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px gold;
    min-width: 150px;
    white-space: nowrap;
}

#playAgainButton:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px gold;
}

.instructions-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.instructions-container {
    background: url('instruct.png') top center/contain no-repeat;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-size: 100% 40%;
    padding-top: 140px;
    background-position: top center;
}

.instructions-container::before {
    content: '';
    position: absolute;
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    border: 4px solid #8e44ad;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(142, 68, 173, 0.6), 
                inset 0 0 50px rgba(142, 68, 173, 0.1);
    z-index: -1;
    animation: mysticalGlow 3s ease-in-out infinite;
}

@keyframes mysticalGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(142, 68, 173, 0.6), 
                    inset 0 0 50px rgba(142, 68, 173, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(142, 68, 173, 0.9), 
                    inset 0 0 70px rgba(142, 68, 173, 0.2);
    }
}

.instructions-title {
    font-size: 32px;
    color: #e8d5f2;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 0 0 20px #8e44ad, 0 0 30px #8e44ad;
    position: relative;
    z-index: 2;
    animation: titleShimmer 2s ease-in-out infinite;
}

@keyframes titleShimmer {
    0%, 100% {
        text-shadow: 0 0 20px #8e44ad, 0 0 30px #8e44ad;
    }
    50% {
        text-shadow: 0 0 30px #af7ac5, 0 0 40px #af7ac5, 0 0 50px #e8d5f2;
    }
}

.instructions-content {
    color: #e8d5f2;
    text-align: left;
    line-height: 1.7;
    padding: 30px;
    max-height: 45vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 8px #8e44ad;
    margin-top: auto;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    width: 90%;
    border: 3px solid rgba(142, 68, 173, 0.4);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 30px rgba(142, 68, 173, 0.2);
}

.mole-guide {
    margin-bottom: 25px;
}

.mole-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(142, 68, 173, 0.15);
    border-radius: 15px;
    border-left: 5px solid #8e44ad;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mole-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(142, 68, 173, 0.2), transparent);
    transition: left 0.8s ease;
}

.mole-info:hover::before {
    left: 100%;
}

.mole-info:hover {
    transform: translateX(5px);
    background: rgba(142, 68, 173, 0.25);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

.mole-icon {
    font-size: 2rem;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.mole-icon.yellow {
    color: #ffd700;
    text-shadow: 0 0 15px #ffed4a;
    animation: sparkle 1.5s ease-in-out infinite;
}

.mole-icon.purple {
    color: #8e44ad;
    text-shadow: 0 0 15px #9b59b6;
    animation: pulse 2s ease-in-out infinite;
}

.mole-icon.pink {
    color: #ff69b4;
    text-shadow: 0 0 15px #ff1493;
    animation: bounce 1s ease-in-out infinite;
}

.mole-icon.silver {
    color: #c0c0c0;
    text-shadow: 0 0 15px #e6e6fa;
    animation: shine 1.8s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.1) rotate(3deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shine {
    0%, 100% { 
        color: #c0c0c0; 
        text-shadow: 0 0 15px #e6e6fa; 
    }
    50% { 
        color: #ffffff; 
        text-shadow: 0 0 25px #ffffff, 0 0 35px #e6e6fa; 
    }
}

.mole-desc {
    flex: 1;
}

.mole-desc strong {
    color: #af7ac5;
    text-shadow: 0 0 10px #8e44ad;
}

.game-rules h3 {
    color: #af7ac5;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #8e44ad;
}

.game-rules ul {
    padding-left: 20px;
}

.game-rules li {
    margin-bottom: 8px;
    color: #e8d5f2;
}

.continue-button {
    position: absolute;
    bottom: 25px;
    padding: 18px 30px;
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(142, 68, 173, 0.6);
    transition: all 0.3s ease;
    min-width: 180px;
    z-index: 2;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #8e44ad;
    white-space: nowrap;
}

.continue-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(142, 68, 173, 0.8);
    background: linear-gradient(45deg, #9b59b6, #af7ac5);
}

@keyframes celebrationFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-50px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

@keyframes cuteMessagePop {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
    30% {
        transform: translateX(-50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
}

@keyframes timerWarning {
    0% {
        background: linear-gradient(45deg, #8e44ad, #9b59b6, #af7ac5);
        transform: scale(1);
    }
    50% {
        background: linear-gradient(45deg, #e74c3c, #f39c12, #e67e22);
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 30px rgba(231, 76, 60, 0.8);
    }
    100% {
        background: linear-gradient(45deg, #8e44ad, #9b59b6, #af7ac5);
        transform: scale(1);
    }
}

.cute-message {
    animation: cuteMessagePop 2s ease-out forwards !important;
}

.story-intro, .cybersoul-message {
    animation: gentleGlow 4s ease-in-out infinite;
}

@keyframes gentleGlow {
    0%, 100% {
        text-shadow: 0 0 10px #8e44ad;
    }
    50% {
        text-shadow: 0 0 20px #af7ac5, 0 0 30px #e8d5f2;
    }
}

/* Special effect for the entire game to honor the CyberSoul journey */
.game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 70%,
        rgba(142, 68, 173, 0.1) 100%
    );
    pointer-events: none;
    animation: soulBreathing 6s ease-in-out infinite;
}

@keyframes soulBreathing {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Enhanced mole hover with story elements */
.mole:hover, .mole2:hover, .mole3:hover, .mole4:hover {
    transform: translateX(-50%) scale(1.55);
    filter: drop-shadow(0 0 25px rgba(255, 255, 0, 1)) 
            drop-shadow(0 0 35px rgba(142, 68, 173, 0.5));
}

/* Memory preservation effect - a subtle animation that runs always */
@keyframes memoryEcho {
    0%, 100% {
        box-shadow: 0 0 1px transparent;
    }
    50% {
        box-shadow: 0 0 3px rgba(142, 68, 173, 0.1);
    }
}

.game-container {
    height: 100vh;
    background: url('back.jpeg') center center no-repeat;
    background-size: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.game {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    grid-template-rows: repeat(4, 170px);
    gap: 60px;
    justify-content: center;
    align-content: center;
}

.hole {
    position: relative;
    width: 200px;
    height: 170px;
    background: url('dirt.png') center center no-repeat;
    background-size: contain;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    border-radius: 50%;
    box-shadow: inset 0 10px 20px rgba(0,0,0,0.3);
    pointer-events: none;
}

.hole:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url(dirt.png) center bottom no-repeat;
    background-size: cover;
    z-index: 3;
    opacity: 1;
}

.hole.up:after {
    opacity: 0.4;
}

@keyframes grassWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.mole, .mole2, .mole3, .mole4 {
    width: 120%;
    max-width: 120%;
    max-height: 120%;
    aspect-ratio: 1;
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 2;
    transition: bottom 0.4s ease-out;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.8));
}

.hole.up .mole,
.hole.up .mole2,
.hole.up .mole3,
.hole.up .mole4 {
    bottom: 15%;
    animation: bounce 0.4s ease-out;
}

@keyframes bounce {
    0% { 
        bottom: -100%; 
        transform: translateX(-50%) scale(1.5); 
    }
    50% { 
        bottom: 25%; 
        transform: translateX(-50%) scale(1.5); 
    }
    100% { 
        bottom: 15%; 
        transform: translateX(-50%) scale(1.5); 
    }
}

.mole {
    background-image: url('mole.png');
}

.mole2 {
    background-image: url('mole2.png');
}

.mole3 {
    background-image: url('mole3.png');
}

.mole4 {
    background-image: url('mole4.png');
}

.hit-effect {
    animation: shiny 0.5s ease;
    filter: brightness(1.5) drop-shadow(0 0 20px gold) !important;
}

@keyframes shiny {
    0% { filter: brightness(1) drop-shadow(0 0 5px gold); }
    50% { filter: brightness(1.8) drop-shadow(0 0 25px gold); }
    100% { filter: brightness(1) drop-shadow(0 0 5px gold); }
}

.pokeball {
    position: fixed;
    width: 50px;
    height: 50px;
    background: url('ball.png') center/contain no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
    z-index: 10;
}

.pokeball.visible {
    opacity: 1;
    transition: opacity 0.05s;
}

.pokeball.capture {
    animation: captureAnimation 0.8s forwards;
}

.pokeball.capture::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    left: -25%;
    top: -25%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    animation: starPulse 0.5s infinite alternate;
}

.pokeball.capture::after {
    content: '★';
    position: absolute;
    color: gold;
    font-size: 24px;
    animation: starRotate 0.8s infinite;
}

@keyframes starPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.8); opacity: 1; }
}

@keyframes starRotate {
    0% { transform: rotate(0deg) translate(10px) scale(1); }
    50% { transform: rotate(180deg) translate(15px) scale(1.5); }
    100% { transform: rotate(360deg) translate(10px) scale(1); }
}

@keyframes captureAnimation {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.2) rotate(90deg); opacity: 0.9; }
    50% { transform: scale(1) rotate(180deg); opacity: 0.8; }
    75% { transform: scale(0.8) rotate(270deg); opacity: 0.6; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

button {
    min-width: 140px;
    width: auto;
    padding: 0 20px;
    font-size: 16px;
    height: 50px;
    color: #7fffd4;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 25px;
    margin: 0 10px;
    text-shadow: 0 0 10px #7fffd4, 0 0 20px #7fffd4;
    border: 2px solid #7fffd4;
    box-shadow: 0 0 15px #7fffd4;
    transition: all 0.3s ease;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(127, 255, 212, 0.3), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #7fffd4;
    background-color: rgba(0, 0, 0, 0.9);
}

@keyframes pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.pop-in {
    animation: pop 0.3s ease-out;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 28px;
        top: 15px;
    }
    
    .controls {
        top: 60px;
    }
    
    .legacy-button-container {
        top: 15px;
        right: 15px;
    }
    
    .older-version-btn {
        font-size: 12px;
        padding: 8px 15px;
        gap: 6px;
    }
    
    .btn-icon {
        font-size: 14px;
    }
    
    .legacy-tooltip {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .game-container {
        background-size: cover;
    }
    
    .game {
        grid-template-columns: repeat(2, 140px);
        grid-template-rows: repeat(8, 120px);
        gap: 30px;
    }
    
    .hole {
        width: 140px;
        height: 120px;
    }
    
    .score {
        font-size: 1.5rem;
        padding: 8px 16px;
        margin-right: 10px;
    }
    
    button {
        width: 100px;
        font-size: 16px;
        height: 45px;
        margin: 5px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 24px;
        top: 10px;
    }
    
    .controls {
        top: 50px;
    }
    
    .legacy-button-container {
        top: 10px;
        right: 10px;
    }
    
    .older-version-btn {
        font-size: 11px;
        padding: 6px 12px;
        gap: 4px;
    }
    
    .btn-icon {
        font-size: 12px;
    }
    
    .legacy-tooltip {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .game {
        grid-template-columns: repeat(2, 110px);
        grid-template-rows: repeat(8, 95px);
        gap: 20px;
    }
    
    .hole {
        width: 110px;
        height: 95px;
    }
    
    .score {
        font-size: 1.2rem;
        padding: 6px 12px;
    }
    
    button {
        width: 80px;
        font-size: 14px;
        height: 40px;
    }
}

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.memo-container {
    background: url('memo.png') top center/contain no-repeat;
    width: 80%;
    max-width: 800px;
    height: 80vh;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-size: 100% 33%;
    padding-top: 100px;
    aspect-ratio: 3/1;
}

.memo-container::before {
    content: '';
    position: absolute;
    top: -35px;
    left: -35px;
    right: -35px;
    bottom: -35px;
    border: 4px solid gold;
    border-radius: 10px;
    box-shadow: 0 0 20px gold;
    z-index: -1;
}

.memo-title {
    font-size: 24px;
    color: #7fffd4;
    text-align: left;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 0 0 10px #7fffd4, 0 0 20px #7fffd4;
    position: relative;
    z-index: 2;
    width: 100%;
}

.memo-content {
    font-size: 18px;
    color: #7fffd4;
    text-align: justify;
    line-height: 1.8;
    padding: 20px;
    max-height: 40vh;
    overflow-y: auto;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px #7fffd4;
    margin-top: auto;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    width: 90%;
    transform: translateY(-20%);
}

.memo-content p {
    margin-bottom: 20px;
}

.start-game-button {
    position: absolute;
    bottom: 20px;
    padding: 20px 40px;
    background: linear-gradient(45deg, #ffd700, #ffa500);
    border: none;
    border-radius: 30px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px gold;
    transition: all 0.3s ease;
    min-width: 250px;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700;
}

.start-game-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px gold;
    letter-spacing: 3px;
    text-shadow: 0 0 15px #ffd700, 0 0 25px #ffd700, 0 0 35px #ffd700;
}