.game-area {
    margin: 0 auto;
    position: relative;
    padding: clamp(10px, 2vw, 18px);
}

#canvasDiv {
    margin: 0 auto;
    position: relative;
    border-radius: clamp(6px, 1.4vw, 12px);
    overflow: hidden;
    box-shadow: 0 0 clamp(12px, 1.8vw, 18px) rgba(0, 0, 0, 0.4);
}

#GameCanvas {
    outline: none;
}

.thisScore {
    font-size: clamp(54px, 15vmin, 96px);
    text-align: center;
    color: #FFF;
    display: block;
    width: 100%;
    letter-spacing: clamp(1px, 0.6vmin, 4px);
    position: relative;
    top: clamp(-15px, -2.2vmin, -6px);
}

#GameEndScoreScreen {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    box-sizing: border-box;
    text-align: center;
}

#GameEndScoreContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 360px);
    padding: clamp(16px, 4vmin, 26px) clamp(16px, 4.5vmin, 28px);
    box-sizing: border-box;
}

#GameEndScoreScreen h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    margin: clamp(10px, 2.8vmin, 18px) auto 0;
    padding-bottom: clamp(6px, 1.8vmin, 10px);
    border-bottom: clamp(2px, 0.8vmin, 5px) solid #FFF;
    color:#FFF;
    font-size: clamp(22px, 6.2vmin, 34px);
    width: min(52%, 220px);
}

#GameEndScoreScreen h1{
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    margin: 0;
    padding-bottom: clamp(6px, 1.8vmin, 10px);
    color:#fff;
    font-size: clamp(32px, 9vmin, 54px);
}

#splash {
    position: absolute;
    inset: clamp(10px, 2vw, 18px);
    border-radius: clamp(6px, 1.4vw, 12px);
    background-size: 100%;
	background-color: #FFD59D;
}

#NextFruitsWrap {
    width: clamp(44px, 18vmin, 120px);
    height: clamp(18px, 8.1vmin, 54px);
    background-color: rgba(255,255,255,0.5);
    left: 0;
    top: clamp(58px, 12vmin, 104px);
    position: absolute;
    z-index: 900;
    border-radius: clamp(8px, 3.3vmin, 16px);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#NextFruits {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(2px, 1.2vmin, 7px);
    padding: 0 clamp(4px, 1.5vmin, 9px);
}

#NextFruits::before {
    content: 'Next';
    font-size: clamp(9px, 2.1vmin, 16.5px);
    font-weight: 900;
    color: #506155;
    line-height: 1;
}

#NextFruits .next-item {
    width: clamp(11px, 5.4vmin, 24px);
    height: clamp(11px, 5.4vmin, 24px);
    flex: 0 0 auto;
}

#NextFruits img {
    width: 100%;
    height: auto;
    display: block;
}

#restartButton {
    position: relative;
    z-index: 999;
    margin: clamp(12px, 3vmin, 20px) auto 0;
    width: clamp(52px, 11vmin, 72px);
    height: clamp(52px, 11vmin, 72px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: clamp(1px, 0.35vmin, 2px) solid rgba(255, 255, 255, 0.95);
    background: radial-gradient(circle at 30% 30%, #8be6ff 0%, #5ab3ff 45%, #3f86ea 100%);
    box-shadow:
        0 clamp(4px, 1.2vmin, 8px) 0 #2d5ea8,
        0 clamp(8px, 2.2vmin, 14px) clamp(10px, 2.6vmin, 18px) rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#restartButton:hover {
    transform: translateY(clamp(-2px, -0.35vmin, -1px)) scale(1.03);
    filter: brightness(1.06);
}

#restartButton:active {
    transform: translateY(clamp(1px, 0.35vmin, 2px)) scale(0.98);
    box-shadow:
        0 clamp(2px, 0.6vmin, 4px) 0 #2d5ea8,
        0 clamp(5px, 1.4vmin, 8px) clamp(8px, 2vmin, 12px) rgba(0, 0, 0, 0.3);
}

#restartButton .restart-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: clamp(26px, 6vmin, 38px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 clamp(1px, 0.5vmin, 2px) clamp(1px, 0.7vmin, 3px) rgba(0, 0, 0, 0.25);
}

#ThisGameScoreResult {
    margin: clamp(10px, 2.8vmin, 18px) auto 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

#block-Box {
    display: block;
    width: 100%;
    height: 100%;
}

#loadingText {
    width: 100%;
    display: none;
    text-align: center;
    position: absolute;
    top: 45%;
    z-index: 2;
    font-size: clamp(10px, 4.6vmin, 46px);
    color:#506155;
}

#loadingImg {
    top: 45%;
    width: 100%;
    position: absolute;
}