/* 배경 래퍼 */
.mn-wrap {
		display:flex;
		flex-direction: column;
		justify-content: space-between;
		    
    min-width: 1480px;
    min-height:100vh;
    background-color: #1a1a2e;
}

.mn-wrap::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    pointer-events: none;
}

.mn-wrap > .header {
		position: relative;
	  z-index: 1;
	  background:#fefcf5 ;
}

/* 컨테이너 */
.mn-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    min-width: 1230px;
    padding:1.25rem;
    margin: 0 auto;
}

/* 게임 레이아웃 - PC 전용 */
.mn-game-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    align-items: start;
    gap: 20px;
}

/* 보드 섹션 - 크리스마스 이미지 배경 */
.mn-board-section {
    position: relative;
    overflow: hidden;
    padding: 30px 20px;
    background-image: url('images/bg-board.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 4px solid #daa520;
    border-radius: 5px;
}

.mn-board-section > * {
    position: relative;
    z-index: 1;
}

/* 보드 헤더 - 타이틀 이미지 배경으로 감싸기 */
.mn-board-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 1rem;
}

.mn-board-header-icons {
    display: none;
}

/* 메인 타이틀 (548x140) */
.mn-board-header h1 {
    display: inline-flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 2.5%;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 548 / 120;
    font-size: 2.25rem;
    font-weight: bold;
    font-family: 'Pretendard';
    line-height: 1.2;
    color: #f9d99e;
    letter-spacing: 2px;
    background-image: url('images/title.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

/* 서브텍스트 - 노란색 */
.mn-board-header p {
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Pretendard';
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    margin-top: 3px;
}

.mn-board-header-title {
    display: none;
}

/* 보드 상단 정보 영역 */
.mn-board-info-top {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* info-item 이미지 박스 스타일 - 비율 유지 */
.mn-info-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    flex: 1;
    aspect-ratio: 354 / 152;
    border-radius: 0;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.mn-info-item.mn-multiplier-info {
    background-image: url('images/box-left.webp');
}

.mn-info-item.mn-gems-info {
    background-image: url('images/box-right.webp');
}

/* 라벨 - 노란 뚜껑 영역 (44px / 152px = 29%) */
.mn-info-item .mn-info-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    width: 100%;
    height: 29%;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Pretendard';
    line-height: 1;
    color: #6b2700;
    text-align: center;
    text-shadow: none;
}

/* 값 - 빨간 박스 본체 영역 (64px / 152px = 42%) */
.mn-info-item .mn-info-value {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: 42%;
    font-size: 1.5rem;
    font-family: 'Pretendard';
    font-weight: bold;
    line-height: 1;
    color: #ffe1ac;
    text-align: center;
    text-shadow: 2px 2px 1px #00000030;
    background: transparent;
}

.mn-gems-info .mn-info-title {
    color: #ffe1ac;
}

/* 타이머 섹션 (이미지 배경) - 비율 유지 */
.mn-timer-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    width: calc(100% - 50px);
    max-width: 794px;
    aspect-ratio: 794 / 134;
    border: none;
    border-radius: 0;
    background-image: url('images/bg-timer.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
    margin: 15px auto 0;
}

.mn-timer-section.mn-active {
    filter: brightness(1.05);
}

.mn-timer-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mn-timer-label {
    font-size: 1.5em;
    font-weight: 700;
    font-family: 'Pretendard';
    color: #4a4a4a;
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        0 -2px 0 #fff,
        0 2px 0 #fff,
        -2px 0 0 #fff,
        2px 0 0 #fff;
}

.mn-timer-value {
    font-size: 1.8em;
    font-weight: bold;
    font-family: 'Pretendard';
    color: #c41e3a;
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        0 -2px 0 #fff,
        0 2px 0 #fff,
        -2px 0 0 #fff,
        2px 0 0 #fff;
}

.mn-timer-unit {
    font-size: 0.6em;
}

.mn-timer-bar {
    display: none;
}

.mn-timer-bar-fill {
    display: none;
}

.mn-timer-section.mn-warning {
    animation: mn-timerPulse 0.5s ease infinite;
}

.mn-timer-section.mn-warning .mn-timer-bar-fill {
    background: linear-gradient(180deg, #ff6b6b 0%, #e93342 50%, #c0392b 100%);
}

@keyframes mn-timerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* 지뢰 보드 섹션 - 건드리지 않음 */
.mn-mines-section {
    position: relative;
    padding: 0.25rem;
    border-radius: 20px;
    background: #0b336e;
}

.mn-mines-section > div:not(.mn-loading-overlay):not(.mn-status-message):not(.mn-bet-overlay) {
    margin: 0.425rem;
    width: calc(100% - 0.85rem);
    border-radius: 15px;
    background: #a3d2ec;
}

.mn-mines-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
    background: #142746;
    box-shadow: inset 0 0 5px #0b336e;
    margin-bottom: 0;
}

/* 지뢰 셀 */
.mn-mine-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: #1a3a5c;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 아이콘 세트 1~4 기본 상태 */
.mn-mine-cell.mn-icon-set-1 {
    background-image: url('images/icon-block-1.webp');
}
.mn-mine-cell.mn-icon-set-2 {
    background-image: url('images/icon-block-2.webp');
}
.mn-mine-cell.mn-icon-set-3 {
    background-image: url('images/icon-block-3.webp');
}
.mn-mine-cell.mn-icon-set-4 {
    background-image: url('images/icon-block-4.webp');
}

/* disabled 상태: 어둡게 필터 적용 */
.mn-mine-cell.mn-disabled {
    cursor: not-allowed;
    filter: brightness(0.5);
}

.mn-mine-cell:hover:not(.mn-revealed):not(.mn-mine-hit):not(.mn-disabled) {
    transform: scale(1.05);
}

/* 아이콘 세트 1~4 성공 상태 (revealed) */
.mn-mine-cell.mn-icon-set-1.mn-revealed {
    background-image: url('images/icon-block-1-on.webp');
    animation: mn-reveal 0.3s ease;
}
.mn-mine-cell.mn-icon-set-2.mn-revealed {
    background-image: url('images/icon-block-2-on.webp');
    animation: mn-reveal 0.3s ease;
}
.mn-mine-cell.mn-icon-set-3.mn-revealed {
    background-image: url('images/icon-block-3-on.webp');
    animation: mn-reveal 0.3s ease;
}
.mn-mine-cell.mn-icon-set-4.mn-revealed {
    background-image: url('images/icon-block-4-on.webp');
    animation: mn-reveal 0.3s ease;
}

/* 아이콘 세트 1~4 실패 상태 (mine-hit) */
.mn-mine-cell.mn-icon-set-1.mn-mine-hit {
    background-image: url('images/icon-block-1-fail.webp');
    animation: mn-explode 0.5s ease;
}
.mn-mine-cell.mn-icon-set-2.mn-mine-hit {
    background-image: url('images/icon-block-2-fail.webp');
    animation: mn-explode 0.5s ease;
}
.mn-mine-cell.mn-icon-set-3.mn-mine-hit {
    background-image: url('images/icon-block-3-fail.webp');
    animation: mn-explode 0.5s ease;
}
.mn-mine-cell.mn-icon-set-4.mn-mine-hit {
    background-image: url('images/icon-block-4-fail.webp');
    animation: mn-explode 0.5s ease;
}

@keyframes mn-reveal {
    0% {
        transform: scale(0.8) rotateY(0deg);
    }
    50% {
        transform: scale(1.1) rotateY(180deg);
    }
    100% {
        transform: scale(1) rotateY(360deg);
    }
}

@keyframes mn-explode {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(0.9);
    }
    75% {
        transform: scale(1.2);
    }
}

/* 베팅 오버레이 */
.mn-bet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:1rem;
    border-radius: 15px;
    background: rgba(139, 21, 40, 0.25);
    backdrop-filter: blur(3px);
}

.mn-bet-overlay.mn-hidden {
    display: none;
}

.mn-bet-overlay-content {
    width: 90%;
    max-width: 340px;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(to right, #fc7555 50%, #ff5d58);
    clip-path: polygon(20px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* 오버레이 섹션 */
.mn-overlay-section {
    overflow: hidden;
    background: transparent;
}

.mn-overlay-section:first-child {
    margin-top: 0;
}

/* 내부 콘텐츠 각진 처리 (clip-path에 맞춤, 테두리 여백 확보) */
.mn-bet-overlay-content > .mn-overlay-section:first-child {
    clip-path: polygon(20px 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%, 0 16px);
}

.mn-bet-overlay-content > .mn-overlay-section:last-child {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px));
    border-top:none !important
}

.mn-overlay-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #c41e3a;
    background:#fff;
    border: 2px solid #d54a6138;
    border-bottom-width: 1px;
}

.mn-overlay-title .mn-bet-limits {
    font-size: 0.8em;
    color:#c41e3a;
    font-weight:bold;
}

.mn-overlay-body {
    padding: 12px;
    border: 1px solid #d4af37;
    border-top:none;
    background: #ffffff;
}

.mn-overlay-body input[type="number"] {
    padding: 10px;
    width: 100%;
    font-size: 0.95em;
    font-family: 'Pretendard';
    color: #333333;
    text-align: right;
    border: 2px solid #d4af37;
    border-radius: 3px;
    background: #ffffff;
    margin-bottom: 8px;
}

.mn-overlay-body input[type="number"]:focus {
    border-color: #b8860b;
    outline: none;
}

.mn-overlay-section.mn-start-section {
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.mn-overlay-section.mn-start-section .mn-btn-start {
    padding: 16px 20px;
    font-size: 1.2em;
    margin-bottom: 0;
}

/* 로딩 오버레이 */
.mn-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(51, 69, 233, 0.9);
}

.mn-loading-overlay.mn-active {
    display: flex;
}

.mn-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: mn-spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes mn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* 통계 패널 - 크리스마스 테마 */
.mn-stats-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.mn-stats-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 1rem;
    overflow: hidden;
}

.mn-bet-panel {
    overflow: hidden;
    padding: 0 15px 15px 15px;
    flex-shrink: 0;
    border: 4px solid #daa520;
    border-radius: 5px;
    background: linear-gradient(180deg, #fffef9 0%, #fefcf5 100%);
}

.mn-panel-title {
    padding: 12px 15px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #a01830 0%, #8b1528 100%);
    border-bottom: 3px solid #d4af37;
    margin: 0 -15px 15px -15px;
}

.mn-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 2px solid #d4af37;
    border-radius: 3px;
    background: #ffffff;
    margin-bottom: 10px;
}

.mn-stat-label {
    font-size: 0.9em;
    font-weight: 500;
    font-family: 'Pretendard';
    color: #8b4513;
}

.mn-stat-value {
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'Pretendard';
    color: #333333;
}

/* 캐시아웃 섹션 - 크리스마스 테마 */
.mn-cashout-section {
    padding: 15px;
    border: 2px solid #32cd32;
    border-radius: 3px;
    background: linear-gradient(180deg, #228b22 0%, #1e7b1e 100%);
    margin-top: 12px;
}

.mn-cashout-section .mn-btn-cashout {
    margin-bottom: 8px;
}

.mn-cashout-notice {
    font-size: 0.85em;
    color: #90ee90;
    text-align: center;
    font-family: 'Pretendard';
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 컨트롤 섹션 - 크리스마스 테마 */
.mn-control-section {
    padding: 15px;
    border: 2px solid #d4af37;
    border-radius: 3px;
    background: #ffffff;
    margin-top: 12px;
}

.mn-control-section:first-of-type {
    margin-top: 15px;
}

.mn-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mn-control-label {
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #333333;
    margin-bottom: 10px;
}

.mn-bet-limits {
    font-size: 0.75em;
    font-family: 'Pretendard';
    color: #999999;
}

.mn-control-section input[type="number"] {
    padding: 10px;
    width: 100%;
    font-size: 0.95em;
    font-family: 'Pretendard';
    color: #333333;
    text-align: right;
    border: 2px solid #d4af37;
    border-radius: 3px;
    background: #ffffff;
    margin-bottom: 8px;
}

.mn-control-section input[type="number"]:focus {
    border-color: #b8860b;
    outline: none;
}

/* 게임 시작 섹션 */
.mn-start-section {
    padding: 0;
    border: none;
    width:100%;
    max-width:346px;
    background: transparent;
}

.mn-start-section .mn-btn-start {
    padding: 15px;
    font-size: 1.1em;
}

/* 빠른 베팅 버튼 */
.mn-quick-bet-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 8px;
}

.mn-quick-bet-btn {
    padding: 6px 4px;
    font-size: 0.8em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #8b4513;
    border: 2px solid #d4af37;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}

.mn-quick-bet-btn:hover {
    color: #ffffff;
    border-color: #d4af37;
    background: linear-gradient(180deg, #c41e3a 0%, #a01830 100%);
}

/* 지뢰 개수 버튼 */
.mn-mine-count-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    align-items: stretch;
}

.mn-mine-count-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 1em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #c41e3a;
    text-align: center;
    line-height: 1.3;
    border: 2px solid #ff5757;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
}

.mn-mine-count-btn .mn-mine-num {
    font-size: 1em;
    font-weight: 600;
}

.mn-mine-count-btn .mn-mine-diff {
    font-size: 0.75em;
    font-weight: 400;
    color: #c41e3a;
    opacity: 0.7;
}

.mn-mine-count-btn:hover {
    border-color: #a01830;
    background: #fff5f5;
}

.mn-mine-count-btn.mn-active {
    color: #ffffff;
    border-color: #ff5757;
    background: linear-gradient(to bottom, #ff424c 50%, #FF8601);;
}

.mn-mine-count-btn.mn-active .mn-mine-num {
    color: #ffffff;
}

.mn-mine-count-btn.mn-active .mn-mine-diff {
    color: #ffffff;
    opacity: 1;
}

.mn-mine-count-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 버튼 스타일 - 크리스마스 테마 */
.mn-btn {
    padding: 12px;
    width: 100%;
    font-size: 1em;
    font-weight: bold;
    font-family: 'Pretendard';
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.mn-btn-start {
    color: #ffffff;
    font-size: 1.15em;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 5px;
    background: linear-gradient(to top, #ff424c, #ee9d72);
    border: 1px solid #e64045;
    box-shadow: 0 5px 0 #ca0d13;
}

.mn-btn-start:hover:not(:disabled) {
    box-shadow: 0 -4px 0 #b84a4a;
    transform: translateY(1px);
}

.mn-btn-cashout {
    color: #228b22;
    background: #ffffff;
}

.mn-btn-cashout:hover:not(:disabled) {
    background: #fefcf5;
}

.mn-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 우측 패널 가이드 탭 영역 */
.mn-guide-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
    border: 4px solid #daa520;
    border-radius: 5px;
    background: linear-gradient(180deg, #fffef9 0%, #fefcf5 100%);
}

.mn-guide-tabs {
    display: flex;
    border-bottom: 1px solid #d4af37;
    background: linear-gradient(180deg, #a01830 0%, #8b1528 100%);
}

.mn-guide-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 10px;
    font-size: 0.85em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #8b4513;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #fffef9;
}

.mn-guide-tab:hover {
    background: #fefcf5;
}

.mn-guide-tab.mn-active {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #a01830 0%, #8b1528 100%);
}

.mn-guide-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.mn-guide-tab-content {
    display: none;
    padding: 10px;
    flex: 1;
    min-height: 0;
}

.mn-guide-tab-content.mn-active {
    display: flex;
    flex-direction: column;
}

/* 상태 메시지 - mines-section 내부 */
.mn-status-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: bold;
    font-family: 'Pretendard';
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.mn-status-success {
    color: #ffffff;
    border: none;
    background: #22c55e;
}

.mn-status-error {
    color: #ffffff;
    border: none;
    background: #e93342;
}

.mn-status-info {
    color: #ffffff;
    border: none;
    background: #3b82f6;
}

/* 좌측 패널 */
.mn-left-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* 히스토리 패널 - 크리스마스 테마 */
.mn-history-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border: 4px solid #daa520;
    border-radius: 5px;
    background: linear-gradient(180deg, #fffef9 0%, #fefcf5 100%);
}

.mn-history-tabs {
    display: flex;
    border-bottom: 1px solid #d4af37;
    background: linear-gradient(180deg, #a01830 0%, #8b1528 100%);
}

.mn-history-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 10px;
    gap: 5px;
    font-size: 0.85em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #8b4513;
    border: none;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.2s;
    background: #fffef9;
}

.mn-history-tab:hover {
    background: #fefcf5;
}

.mn-history-tab.mn-active {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #a01830 0%, #8b1528 100%);
}

.mn-history-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.mn-tab-content {
    display: none;
    padding: 10px;
    flex: 1;
    min-height: 0;
}

.mn-tab-content.mn-active {
    display: flex;
    flex-direction: column;
}

.mn-tab-content.mn-active > div,
.mn-guide-tab-content.mn-active > div {
    flex: 1;
    min-height: 0;
}

.mn-empty-message {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    font-size: 0.9em;
    font-family: 'Pretendard';
    color: #8b4513;
    text-align: center;
    opacity: 0.7;
}

/* 플레이 기록 아이템 - 크리스마스 테마 */
.mn-playlog-item {
    padding: 12px;
    border: 1px solid #d4af37;
    border-radius: 3px;
    background: #ffffff;
    margin-bottom: 10px;
}

.mn-playlog-item .mn-round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mn-playlog-item .mn-round-id {
    font-size: 0.8em;
    font-family: 'Pretendard';
    color: #888888;
}

.mn-playlog-item .mn-round-time {
    font-size: 0.75em;
    font-family: 'Pretendard';
    color: #aaaaaa;
}

.mn-playlog-item .mn-round-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mn-playlog-item .mn-bet-info {
    font-size: 0.85em;
    font-family: 'Pretendard';
    color: #666666;
}

.mn-playlog-item .mn-result-info {
    text-align: right;
}

.mn-playlog-item .mn-result-info .mn-multiplier {
    font-size: 0.9em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #e93342;
}

.mn-playlog-item .mn-result-info .mn-profit {
    font-size: 0.95em;
    font-weight: bold;
    font-family: 'Pretendard';
}

.mn-playlog-item .mn-result-info .mn-profit.mn-win {
    color: #22c55e;
}

.mn-playlog-item .mn-result-info .mn-profit.mn-lose {
    color: #ef4444;
}

/* 배수표 - 세로형 테이블 */
.mn-multiplier-table {
    padding: 0;
}

.mn-multiplier-table h3 {
    padding: 10px 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #333;
    text-align: center;
    background: #fff8e5;
    border: 2px solid #ffdbad;
    border-bottom:none;
    margin: 0;
}

.mn-multiplier-table table {
    width: 100%;
    font-size: 0.8em;
    font-family: 'Pretendard';
    border-collapse: collapse;
}

.mn-multiplier-table thead th {
    padding: 8px 6px;
    font-weight: bold;
    font-size: 0.9em;
    color: #ffffff;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, #a01830 0%, #8b1528 100%);
    border-bottom: 2px solid #d4af37;
}

.mn-multiplier-table tbody td {
    padding: 7px 6px;
    color: #333333;
    text-align: center;
    border-bottom: 1px solid #e8d5a3;
    background: #ffffff;
}

.mn-multiplier-table tbody tr:hover td {
    background: rgba(218, 165, 32, 0.1);
}

.mn-multiplier-table .mn-td-multiplier {
    font-weight: bold;
    color: #c41e3a;
}

.mn-multiplier-table .mn-td-amount {
    font-weight: 600;
    color: #228b22;
}

/* 캐시아웃 히스토리 - 크리스마스 테마 */
.mn-cashout-history {
    overflow-y: auto;
    padding: 15px;
    border: 4px solid #daa520;
    border-radius: 5px;
    background: linear-gradient(180deg, #fffef9 0%, #fefcf5 100%);
}

.mn-cashout-history h3 {
    padding-top: 10px;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #8b4513;
    text-align: left;
    margin-bottom: 10px;
}

.mn-cashout-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 1px solid #d4af37;
    border-radius: 3px;
    animation: mn-slideIn 0.3s ease;
    background: #ffffff;
    margin-bottom: 8px;
}

@keyframes mn-slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mn-cashout-item .mn-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mn-cashout-item .mn-user {
    font-size: 0.8em;
    font-family: 'Pretendard';
    color: #8b4513;
    margin-bottom: 3px;
}

.mn-cashout-item .mn-right-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.mn-cashout-item .mn-amount {
    font-size: 1em;
    font-weight: bold;
    font-family: 'Pretendard';
    color: #228b22;
}

.mn-cashout-item .mn-multiplier {
    font-size: 0.85em;
    font-weight: 600;
    font-family: 'Pretendard';
    color: #c41e3a;
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .mn-wrap {
        overflow-x: hidden;
        padding: 5px;
        min-width: auto;
    }

    .mn-wrap::before {
        min-width: auto;
    }

    .mn-container {
        min-width: auto;
        padding: 5px;
    }

    .mn-game-layout {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .mn-board-section {
        order: 1;
        width: 100%;
        padding: 15px 10px;
        border-width:1px;
        border-radius:0;
    }

    .mn-stats-panel {
        order: 2;
        width: 100%;
        overflow: visible;
    }

    .mn-stats-inner {
        flex: none;
        overflow: visible;
    }

    .mn-left-panel {
        order: 3;
        width: 100%;
        overflow: visible;
    }

    .mn-history-panel {
        flex: none;
        max-height: 40vh;
        overflow-y: auto;
        border-width:1px;
        border-radius:0;
    }

    .mn-board-header h1 {
        font-size: 1.5rem;
        letter-spacing: 0;
        padding-bottom:2.5%;
    }

    .mn-board-header p {
        font-size: 0.8rem;
    }

    .mn-board-info-top {
        gap: 10px;
    }

    .mn-info-item .mn-info-title {
    		height:28%;
        font-size: 0.75rem;
    }

    .mn-info-item .mn-info-value {
        font-size: 1rem;
    }

    .mn-timer-section {
        padding: 0 10px;
    }

    .mn-timer-label {
        font-size: 1em;
        text-shadow:
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff;
    }

    .mn-timer-value {
        font-size: 1.2em;
        text-shadow:
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff;
    }

    .mn-mines-board {
        box-sizing: border-box;
        width: 100%;
        gap: 2px;
        padding: 4px;
        border-radius: 8px;
    }

    .mn-mine-cell {
        border-radius: 8px;
    }

    /* 베팅 오버레이 모바일 */
    .mn-bet-overlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
        gap: 6px;
        border-radius: 10px;
    }

    .mn-bet-overlay-content {
        width: 100%;
        max-width: none;
        padding: 2px;
        clip-path: none;
        border-radius: 8px;
        overflow: visible;
    }

    .mn-bet-overlay-content > .mn-overlay-section:first-child {
        clip-path: none;
        border-radius: 6px 6px 0 0;
    }

    .mn-bet-overlay-content > .mn-overlay-section:last-child {
        clip-path: none;
        border-radius: 0 0 6px 6px;
    }

    .mn-bet-overlay .mn-overlay-title {
        padding: 7px 10px;
        font-size: 0.8em;
        border-width: 1px;
    }

    .mn-bet-overlay .mn-overlay-body {
        padding: 8px;
        border-width: 1px;
    }

    .mn-bet-overlay .mn-overlay-body input[type="number"] {
        padding: 7px 8px;
        font-size: 0.85em;
        margin-bottom: 4px;
        border-width: 1px;
    }

    .mn-quick-bet-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        margin-top: 4px;
    }

    .mn-quick-bet-btn {
        padding: 5px 2px;
        font-size: 0.7em;
        border-width: 1px;
    }

    .mn-mine-count-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .mn-mine-count-btn {
        padding: 5px;
        font-size: 0.85em;
        border-width: 1px;
    }
    
    .mn-mines-section {
    	border-radius:0.625rem;
    }

    .mn-overlay-section.mn-start-section {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .mn-overlay-section.mn-start-section .mn-btn-start {
        padding: 11px 16px;
        font-size: 1em;
        margin-bottom: 0;
        border-radius: 8px;
    }
    
    .mn-mines-section > div:not(.mn-loading-overlay):not(.mn-status-message):not(.mn-bet-overlay) {
    	   aspect-ratio: 1 / 1;
    	   width: calc(100% - 0.25rem);
    	   margin: 0.125rem;
    }
    
    .mn-mines-section {
    		padding:0.125rem;
    }

    /* 우측 패널 모바일 */
    .mn-bet-panel {
        padding: 0 10px 10px 10px;
        border-width:1px;
        border-radius:0;
    }

    .mn-panel-title {
        padding: 10px 12px;
        font-size: 0.85em;
        margin: 0 -10px 10px -10px;
    }

    .mn-stat-item {
    		display:inline-flex;
    		flex-direction: column;
        padding: 2px;
        width:calc(50% - 2px);
        margin-bottom: 8px;
    }
    
    .mn-cashout-section {
    	margin:0;
    }

    .mn-guide-panel {
        flex: none;
        max-height: 40vh;
        overflow-y: auto;
        border-width:1px;
        border-radius:0;
    }

    .mn-guide-tab {
        padding: 10px 8px;
        font-size: 0.8em;
    }

    .mn-guide-tab-content {
        padding: 8px;
    }

    .mn-multiplier-table h3 {
        padding: 8px 10px;
        font-size: 0.8em;
    }

    .mn-multiplier-table table {
        font-size: 0.75em;
    }

    .mn-multiplier-table thead th {
        padding: 6px 4px;
        font-size: 0.85em;
    }

    .mn-multiplier-table tbody td {
        padding: 5px 4px;
    }
}


/* 게임룰 스타일 */
.mn-rule-content {
    padding: 5px;
    flex: 1;
}

.mn-rule-section {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #d4af37;
}

.mn-rule-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mn-rule-title {
    font-size: 0.9em;
    font-weight: 700;
    font-family: 'Pretendard';
    color: #8b4513;
    margin-bottom: 8px;
}

.mn-rule-section p {
    font-size: 0.8em;
    font-family: 'Pretendard';
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.mn-rule-step {
    font-size: 0.8em;
    font-family: 'Pretendard';
    color: #333;
    margin-bottom: 8px;
}

.mn-rule-step strong {
    color: #c41e3a;
}

.mn-rule-step ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.mn-rule-step ul li {
    font-size: 0.95em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2px;
}

.mn-fair-section {
    background:#fff4eb;
    border: 2px solid #ffc584 !important;
    border-radius: 5px;
    padding: 12px !important;
    margin-top: 10px;
}

.mn-fair-section .mn-rule-title {
    color: #c41e3a;
    margin-bottom: 10px;
}

.mn-fair-section p {
    font-size: 0.75em;
    color: #666;
    line-height: 1.5;
}

.mn-fair-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.mn-fair-list li {
    font-size: 0.8em;
    font-family: 'Pretendard';
    color: #228b22;
    font-weight: 600;
    line-height: 1.6;
}

/* 모바일 게임룰 스타일 */
@media (max-width: 480px) {
    .mn-rule-content {
        padding: 3px;
    }

    .mn-rule-section {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .mn-rule-title {
        font-size: 0.8em;
    }

    .mn-rule-section p,
    .mn-rule-step,
    .mn-rule-step ul li {
        font-size: 0.75em;
    }

    .mn-fair-section {
        padding: 8px !important;
    }

    .mn-fair-section p,
    .mn-fair-list li {
        font-size: 0.7em;
    }
}

.mn-wrap .footer {
	width:100%;
	background:#fff;
}

.mn-wrap .footer > div {
	padding:1rem;
	background:#fffdf7 ;
}