@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@font-face {
    font-family: 'KCC';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/KCCPakKyongni.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 배경 애니메이션 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: floatingBg 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes floatingBg {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    min-height: 100vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

/* 헤더 */
.header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b9d, #c44be0, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
    position: relative;
}

.logo span {
    font-family:'kcc', 'sans-serif';
}

.logo::after {
    content: '✨';
    position: absolute;
    right: -30px;
    top: -5px;
    font-size: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.menu-icon {
    width: 30px;
    height: 30px;
    border: 2px solid #ff6b9d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b9d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.menu-icon:hover {
    background: rgba(255, 107, 157, 0.1);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    transform: rotate(90deg);
}

/* 슬라이드 배너 */
.banner-section {
    margin: 25px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.banner-container {
    position: relative;
    height: 180px;
}

/*.banner-slides {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slideShow 12s infinite;
}

.banner-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
}*/

.banner-slide:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/*@keyframes slideShow {
    0%, 30% { transform: translateX(0); }
    33%, 63% { transform: translateX(-33.333%); }
    66%, 96% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}*/

#body .swiper-pagination-bullet-active {
    background:#ffffff;
}

.swiper-banner img {
    width:100%;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 공지사항 */
.notice-section {
    margin: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    overflow: hidden;
    position: relative;
}

.notice-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notice-scroll {
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 메인 네비게이션 */
.main-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.nav-item:hover::before {
    transform: translateX(100%);
}

.nav-item:hover {
    transform: translateY(-8px);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 30px var(--glow-color);
}

.nav-item:nth-child(1) {
    --glow-color: rgba(255, 107, 157, 0.5);
    border-color: rgba(255, 107, 157, 0.3);
}

.nav-item:nth-child(2) {
    --glow-color: rgba(79, 172, 254, 0.5);
    border-color: rgba(79, 172, 254, 0.3);
}

.nav-item:nth-child(3) {
    --glow-color: rgba(196, 75, 224, 0.5);
    border-color: rgba(196, 75, 224, 0.3);
}

.nav-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 10px currentColor);
}

.nav-item:nth-child(1) .nav-icon { color: #ff6b9d; }
.nav-item:nth-child(2) .nav-icon { color: #4facfe; }
.nav-item:nth-child(3) .nav-icon { color: #c44be0; }

.nav-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* 지역 섹션 */
.region-section {
    margin: 30px 25px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title::before {
    margin-right: 12px;
    font-size: 24px;
    filter: drop-shadow(0 0 10px currentColor);
}

.region-section .section-title::before {
    content: "🌍";
    color: #4facfe;
}

.manager-section .section-title::before {
    content: "💎";
    color: #ff6b9d;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.region-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.region-item:hover {
    background: rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.5);
    color: #4facfe;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 172, 254, 0.2);
}

.more-regions-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b9d, #c44be0, #4facfe);
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite;
    border: none;
    border-radius: 15px;
    padding: 18px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.more-regions-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.4);
}

/* 매니저 섹션 */
.manager-section {
    margin: 30px 25px;
    padding-bottom: 120px;
}

.manager-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.manager-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.manager-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    animation: cardRotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.manager-card:hover::before {
    opacity: 1;
}

@keyframes cardRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.manager-card:hover {
    transform: translateY(-5px);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.3);
}

.manager-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.manager-id {
    background: linear-gradient(45deg, #ff6b9d, #c44be0);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.manager-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.manager-details {
    font-size: 14px;
    color: #b0b0b0;
    line-height: 1.5;
    margin-bottom: 12px;
}

.manager-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
}

.manager-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-left: 20px;
    position: relative;
    background: linear-gradient(45deg, #ff6b9d, #c44be0, #4facfe);
    padding: 3px;
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 157, 0.5); }
    50% { box-shadow: 0 0 30px rgba(196, 75, 224, 0.7); }
}

.manager-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.manager-avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
}

.online-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: #00ff88;
    border: 3px solid #0a0a0a;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 검증됨 배지 */
.verified-badge {
    position: absolute;
    top: 15px;
    right: -10px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 15px;
    transform: rotate(12deg);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
    z-index: 10;
    letter-spacing: 0.5px;
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 15px 5px;
    z-index: 100;
}

.bottom-nav-item {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    color: #666;
}

.bottom-nav-item:hover {
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
}

.bottom-nav-item.active {
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
}

.bottom-nav-text {
    font-size: 11px;
    font-weight: 500;
}

/* 반응형 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 게임 전용 추가 스타일 */
.game-container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    min-height: 100vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.game-content {
    padding-bottom: 120px;
}

.game-section {
    margin: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 157, 0.05), transparent);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.game-section-content {
    position: relative;
    z-index: 2;
}

/* 회차 및 타이머 섹션 */
.round-timer-section .section-title {
    color: #4facfe;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.round-timer-section .section-title::before {
    content: "🎯";
    margin-right: 10px;
    font-size: 20px;
    filter: drop-shadow(0 0 10px currentColor);
}

.round-info {
    text-align: center;
    margin-bottom: 25px;
}

.round-number {
    font-size: 22px;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);


    background-clip: text;
}

.timer-display {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #ff6b9d, #c44be0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.2));
}

.timer-status {
    font-size: 14px;
    color: #b0b0b0;
    min-height: 20px;
}

/* 주사위 섹션 */
.dice-section .section-title {
    color: #c44be0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.dice-section .section-title::before {
    content: "🎲";
    margin-right: 10px;
    font-size: 20px;
    filter: drop-shadow(0 0 10px currentColor);
}

.dice-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dice-container {
    perspective: 1200px;
    display: flex;
    gap: 25px;
    margin-bottom: 15px;
}

.dice {
    position: relative;
    width: 45px;
    height: 45px;
    transform-style: preserve-3d;
    /* transition 제거 - 애니메이션과 충돌 방지 */
    /* transition: transform 0.5s ease-out; */
}

.dice:not(.rolling) {
    /* 애니메이션이 없을 때만 transition 적용 */
    transition: transform 0.5s ease-out;
}

.dice.rolling {
    /* 애니메이션 중에는 transition 완전 제거 */
    transition: none !important;
    animation-duration: 3s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
}

.dice.reset {
    animation: none !important;
    transition: none !important;
    transform: rotateX(0deg) rotateY(0deg);
}

.dice-face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.dice-face.front { transform: rotateY(0deg) translateZ(30px); }
.dice-face.back { transform: rotateY(180deg) translateZ(30px); }
.dice-face.right { transform: rotateY(90deg) translateZ(30px); }
.dice-face.left { transform: rotateY(-90deg) translateZ(30px); }
.dice-face.top { transform: rotateX(90deg) translateZ(30px); }
.dice-face.bottom { transform: rotateX(-90deg) translateZ(30px); }

.dice-dot {
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
}

/* 주사위 점 배치 */
.face-1 .dice-dot { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-2 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-2 .dice-dot:nth-child(2) { bottom: 20%; right: 20%; }
.face-3 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-3 .dice-dot:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-3 .dice-dot:nth-child(3) { bottom: 20%; right: 20%; }
.face-4 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-4 .dice-dot:nth-child(2) { top: 20%; right: 20%; }
.face-4 .dice-dot:nth-child(3) { bottom: 20%; left: 20%; }
.face-4 .dice-dot:nth-child(4) { bottom: 20%; right: 20%; }
.face-5 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-5 .dice-dot:nth-child(2) { top: 20%; right: 20%; }
.face-5 .dice-dot:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-5 .dice-dot:nth-child(4) { bottom: 20%; left: 20%; }
.face-5 .dice-dot:nth-child(5) { bottom: 20%; right: 20%; }
.face-6 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-6 .dice-dot:nth-child(2) { top: 20%; right: 20%; }
.face-6 .dice-dot:nth-child(3) { top: 50%; left: 20%; transform: translateY(-50%); }
.face-6 .dice-dot:nth-child(4) { top: 50%; right: 20%; transform: translateY(-50%); }
.face-6 .dice-dot:nth-child(5) { bottom: 20%; left: 20%; }
.face-6 .dice-dot:nth-child(6) { bottom: 20%; right: 20%; }

/* 주사위 회전 애니메이션 */
@keyframes rollDice1 {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(180deg) rotateY(90deg); }
    50% { transform: rotateX(360deg) rotateY(180deg); }
    75% { transform: rotateX(540deg) rotateY(270deg); }
    100% { transform: rotateX(720deg) rotateY(360deg); }
}

@keyframes rollDice2 {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(225deg) rotateY(135deg); }
    50% { transform: rotateX(450deg) rotateY(270deg); }
    75% { transform: rotateX(675deg) rotateY(405deg); }
    100% { transform: rotateX(900deg) rotateY(540deg); }
}

@keyframes rollDice3 {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(270deg) rotateY(180deg); }
    50% { transform: rotateX(540deg) rotateY(360deg); }
    75% { transform: rotateX(810deg) rotateY(540deg); }
    100% { transform: rotateX(1080deg) rotateY(720deg); }
}

.dice-result {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s;
}

.dice-result.show {
    opacity: 1;
}

/* 배팅 섹션 */
.betting-section .section-title {
    color: #ff6b9d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.betting-section .section-title::before {
    content: "💎";
    margin-right: 10px;
    font-size: 20px;
    filter: drop-shadow(0 0 10px currentColor);
}

.betting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.bet-button {
    padding: 18px 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.bet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bet-button:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.bet-button.under {
    background-color: rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.5);
    color: #4facfe;
}

.bet-button.over {
    background-color: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.5);
    color: #ff6b9d;
}

.bet-button.odd {
    background-color: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.bet-button.even {
    background-color: rgba(241, 196, 15, 0.15);
    border-color: rgba(241, 196, 15, 0.5);
    color: #f1c40f;
}

.bet-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bet-button.selected {
    transform: scale(1.03);
    box-shadow: 0 0 20px currentColor;
    border-width: 3px;
}

.bet-button:disabled {
    background-color: rgba(127, 140, 141, 0.15) !important;
    border-color: rgba(127, 140, 141, 0.3) !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 배팅 금액 */
.betting-amount {
    margin-top: 20px;
}

.amount-input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 16px;
    text-align: center;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.amount-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.amount-preset {
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 13px;
}

.amount-preset:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

.bet-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #ff6b9d, #c44be0);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.bet-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bet-submit:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.bet-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
}

.bet-submit:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 통계 섹션 */
.stats-section .section-title {
    color: #00ff88;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
}

.stats-section .section-title::before {
    content: "📊";
    margin-right: 10px;
    font-size: 20px;
    filter: drop-shadow(0 0 10px currentColor);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #b0b0b0;
    font-weight: 500;
}

/* 결과 팝업 */
.result-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.result-popup.show {
    opacity: 1;
    visibility: visible;
}

.result-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
}

.result-popup.show .result-popup-content {
    transform: translate(-50%, -50%) scale(1);
}

.result-popup h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.result-dice-values {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.result-dice-value {
    background: white;
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-total {
    color: white;
    font-size: 20px;
    margin: 20px 0;
    font-weight: 600;
}

.result-types {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.result-type {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 연결 상태 표시 */
.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.connection-status.connected {
    background: rgba(46, 204, 113, 0.8);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.connection-status.disconnected {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.connection-status.connecting {
    background: rgba(241, 196, 15, 0.8);
    color: white;
    border: 1px solid rgba(241, 196, 15, 0.5);
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 페이드 인 애니메이션 */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 480px) {
    .game-section {
        margin: 20px 15px;
        padding: 20px;
    }

    .timer-display {
        font-size: 36px;
    }

    .dice-container {
        gap: 20px;
    }

    .dice {
        width: 50px;
        height: 50px;
    }

    .dice-face {
        width: 50px;
        height: 50px;
    }

    .dice-face.front { transform: rotateY(0deg) translateZ(25px); }
    .dice-face.back { transform: rotateY(180deg) translateZ(25px); }
    .dice-face.right { transform: rotateY(90deg) translateZ(25px); }
    .dice-face.left { transform: rotateY(-90deg) translateZ(25px); }
    .dice-face.top { transform: rotateX(90deg) translateZ(25px); }
    .dice-face.bottom { transform: rotateX(-90deg) translateZ(25px); }
}

#diceResult { display:none !important;}


/* 게임 전용 추가 스타일 */
.game-container {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    min-height: 100vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.game-content {
    padding-bottom: 80px;
}

.game-section {
    margin: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.game-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 107, 157, 0.05), transparent);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

.game-section-content {
    position: relative;
    z-index: 2;
}

/* 회차 및 타이머 섹션 */
.round-timer-section .section-title {
    color: #4facfe;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.round-timer-section .section-title::before {
    content: "🎯";
    margin-right: 8px;
    font-size: 18px;
    filter: drop-shadow(0 0 10px currentColor);
}

.round-info {
    text-align: center;
    margin-bottom: 0;
}

.round-number {
    font-size: 18px;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #4facfe, #00f2fe);


    background-clip: text;
}

.timer-display {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #ff6b9d, #c44be0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.3);
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.2));
}

.timer-status {
    font-size: 12px;
    color: #b0b0b0;
    min-height: 16px;
}

/* 주사위 섹션 */
.dice-section .section-title {
    color: #c44be0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.dice-section .section-title::before {
    content: "🎲";
    margin-right: 8px;
    font-size: 18px;
    filter: drop-shadow(0 0 10px currentColor);
}

.dice-area {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.dice-container {
    perspective: 1200px;
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
}

.dice {
    position: relative;
    width: 45px;
    height: 45px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
}

.dice.rolling {
    animation-duration: 3s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: forwards;
}

.dice-face {
    position: absolute;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.dice-face.front { transform: rotateY(0deg) translateZ(22.5px); }
.dice-face.back { transform: rotateY(180deg) translateZ(22.5px); }
.dice-face.right { transform: rotateY(90deg) translateZ(22.5px); }
.dice-face.left { transform: rotateY(-90deg) translateZ(22.5px); }
.dice-face.top { transform: rotateX(90deg) translateZ(22.5px); }
.dice-face.bottom { transform: rotateX(-90deg) translateZ(22.5px); }

.dice-dot {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    position: absolute;
}

/* 주사위 점 배치 */
.face-1 .dice-dot { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-2 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-2 .dice-dot:nth-child(2) { bottom: 20%; right: 20%; }
.face-3 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-3 .dice-dot:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-3 .dice-dot:nth-child(3) { bottom: 20%; right: 20%; }
.face-4 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-4 .dice-dot:nth-child(2) { top: 20%; right: 20%; }
.face-4 .dice-dot:nth-child(3) { bottom: 20%; left: 20%; }
.face-4 .dice-dot:nth-child(4) { bottom: 20%; right: 20%; }
.face-5 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-5 .dice-dot:nth-child(2) { top: 20%; right: 20%; }
.face-5 .dice-dot:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.face-5 .dice-dot:nth-child(4) { bottom: 20%; left: 20%; }
.face-5 .dice-dot:nth-child(5) { bottom: 20%; right: 20%; }
.face-6 .dice-dot:nth-child(1) { top: 20%; left: 20%; }
.face-6 .dice-dot:nth-child(2) { top: 20%; right: 20%; }
.face-6 .dice-dot:nth-child(3) { top: 50%; left: 20%; transform: translateY(-50%); }
.face-6 .dice-dot:nth-child(4) { top: 50%; right: 20%; transform: translateY(-50%); }
.face-6 .dice-dot:nth-child(5) { bottom: 20%; left: 20%; }
.face-6 .dice-dot:nth-child(6) { bottom: 20%; right: 20%; }

/* 주사위 회전 애니메이션 */
@keyframes rollDice1 { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(720deg) rotateY(360deg); } }
@keyframes rollDice2 { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(900deg) rotateY(540deg); } }
@keyframes rollDice3 { 0% { transform: rotateX(0deg) rotateY(0deg); } 100% { transform: rotateX(1080deg) rotateY(720deg); } }

.dice-result {
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s;
}

.dice-result.show {
    opacity: 1;
}

/* 배팅 섹션 */
.betting-section .section-title {
    color: #ff6b9d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.betting-section .section-title::before {
    content: "💎";
    margin-right: 8px;
    font-size: 18px;
    filter: drop-shadow(0 0 10px currentColor);
}

.betting-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.bet-button {
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.bet-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bet-button:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.bet-button.under {
    background-color: rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.5);
    color: #4facfe;
}

.bet-button.over {
    background-color: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.5);
    color: #ff6b9d;
}

.bet-button.odd {
    background-color: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.5);
    color: #2ecc71;
}

.bet-button.even {
    background-color: rgba(241, 196, 15, 0.15);
    border-color: rgba(241, 196, 15, 0.5);
    color: #f1c40f;
}

.bet-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bet-button.selected {
    transform: scale(1.02);
    box-shadow: 0 0 15px currentColor;
    border-width: 3px;
}

.bet-button:disabled {
    background-color: rgba(127, 140, 141, 0.15) !important;
    border-color: rgba(127, 140, 141, 0.3) !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* 배팅 금액 */
.betting-amount {
    margin-top: 12px;
}

.amount-input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.amount-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.amount-preset {
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
}

.amount-preset:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

.bet-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #ff6b9d, #c44be0);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.bet-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bet-submit:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.bet-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
}

.bet-submit:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 통계 섹션 */
.stats-section .section-title {
    color: #00ff88;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.stats-section .section-title::before {
    content: "📊";
    margin-right: 8px;
    font-size: 18px;
    filter: drop-shadow(0 0 10px currentColor);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: #b0b0b0;
    font-weight: 500;
}

/* 결과 팝업 */
.result-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.result-popup.show {
    opacity: 1;
    visibility: visible;
}

.result-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 50%;
    left: 50%;
}

.result-popup.show .result-popup-content {
    transform: translate(-50%, -50%) scale(1);
}

.result-popup h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

.result-dice-values {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.result-dice-value {
    background: white;
    color: #333;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.result-total {
    color: white;
    font-size: 20px;
    margin: 20px 0;
    font-weight: 600;
}

.result-types {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.result-type {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 연결 상태 표시 */
.connection-status {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.connection-status.connected {
    background: rgba(46, 204, 113, 0.8);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.connection-status.disconnected {
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.connection-status.connecting {
    background: rgba(241, 196, 15, 0.8);
    color: white;
    border: 1px solid rgba(241, 196, 15, 0.5);
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 페이드 인 애니메이션 */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 */
@media (max-width: 480px) {
    .game-section {
        margin: 12px 10px;
        padding: 12px;
    }

    .timer-display {
        font-size: 28px;
    }

    .dice-container {
        gap: 15px;
    }

    .dice {
        width: 40px;
        height: 40px;
    }

    .dice-face {
        width: 40px;
        height: 40px;
    }

    .dice-face.front { transform: rotateY(0deg) translateZ(20px); }
    .dice-face.back { transform: rotateY(180deg) translateZ(20px); }
    .dice-face.right { transform: rotateY(90deg) translateZ(20px); }
    .dice-face.left { transform: rotateY(-90deg) translateZ(20px); }
    .dice-face.top { transform: rotateX(90deg) translateZ(20px); }
    .dice-face.bottom { transform: rotateX(-90deg) translateZ(20px); }
}
