body {
    background: url('/image/Background.png') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    gap: 30px;
    image-rendering: pixelated;
    /* 크기 조절해도 픽셀 단위 유지 */
    image-rendering: crisp-edges;
    /* 일부 브라우저 호환 */
}

.site-header {
    position: absolute;
    /* 화면 위에 고정 */
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1000;
    /* 다른 요소보다 위에 */
}

.logo-wrapper {
    position: relative;
    /* 안의 서브 이미지 위치 기준 */
    display: inline-block;
}

.site-logo {
    height: 70px;
    /* 로고 크기 */
    display: block;
    filter: drop-shadow(0px 3px 15px rgba(248, 206, 85, 0.7));
}

.sub-logo {
    position: absolute;
    /* 로고 기준으로 위치 지정 */
    right: -20px;
    /* 오른쪽 끝 */
    bottom: -30px;
    /* 아래 끝 */
    height: 25px;
    /* 서브 이미지 크기 */
}

.top-right-container {
    position: fixed;
    top: 50px;
    right: 35px;
    z-index: 1000;
    display: flex;
    gap: 10px; /* Space between buttons */
    flex-direction: row; /* Horizontal */
    /* OR flex-direction: column; for vertical */
}

/* 오른쪽 버튼 묶음 */
.right-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;               
}

.button-container {
    display: flex;
    justify-content: center;
    /* 가운데 정렬 */
    /* align-items: center; */
    /* 세로 가운데 */
    gap: 50px;
    /* 왼쪽 큰 버튼과 오른쪽 버튼 사이 간격 */
    margin-top: -150px;
}

.button-wrapper {
    display: inline-block;
    position: relative;
    background: transparent;
    /* wrapper 자체는 보이지 않음 */
    border: none;
    line-height: 0;
    box-shadow: 0 4px 15px rgba(107, 132, 255, 0.5);
    transition: box-shadow 0.3s ease;
}

.button-wrapper:hover {
    box-shadow: 0 12px 35px rgba(13, 130, 247, 0.6);
}

/* Base button class - works for any size */
.shape-button-base {
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    color: white;
    font-weight: bold;
    overflow: hidden;

    /* Use CSS variables for dynamic values */
    background: var(--bg-image, url('/image/GameButton_Image.png')) center/cover;
    width: var(--btn-width, 500px);
    height: var(--btn-height, 250px);
    font-size: var(--font-size, 16px);

    -webkit-mask-image: var(--mask-image, var(--bg-image, url('/image/GameButton_Image.png')));
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: cover;

    mask-image: var(--mask-image, var(--bg-image, url('/image/GameButton_Image.png')));
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: cover;

    filter: drop-shadow(0 4px 15px rgba(107, 132, 255, 0.5));
}

.shape-button-base:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 12px 35px rgba(13, 130, 247, 0.6)) brightness(1.1);
}

.shape-button-base:active {
    transform: scale(1.02);
    transition: all 0.1s ease;
}

.shape-button-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: white;
    opacity: 0.9;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth for shine effect */
    z-index: 1;
}

.shape-button-base:hover::before {
    left: 100%;
}

.button-text {
    position: relative;
    z-index: 2;
}

/* Size presets */
.btn-large {
    --btn-width: 500px;
    --btn-height: 250px;
    --font-size: 16px;
}

.btn-small {
    --btn-width: 42px;
    --btn-height: 45px;
    --font-size: 14px;
}

.btn-medium {
    --btn-width: 500px;
    --btn-height: 117px;
    --font-size: 14px;
}