* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --bg-card-light: #2a2a2a;
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --text-primary: #ffffff;
    --text-secondary: #b2b2b2;
    --text-muted: #666666;
    --card-front: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
}

#app {
    height: 100%;
}

.screen {
    display: none;
    height: 100%;
}

.screen.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

/* 버튼 */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--bg-card-light);
    color: var(--text-primary);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    width: 100%;
    margin: 12px 0;
}

.btn-warning:disabled {
    background: var(--bg-card-light);
    color: var(--text-muted);
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn-admin {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
}

.hidden {
    display: none !important;
}

/* 로그인 */
.title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.login-form, .nickname-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.login-form input, .nickname-form input {
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
}

.login-notice {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 20px;
}

/* 로비 */
.lobby-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-nickname {
    font-size: 1.2rem;
    font-weight: 700;
}

.chip-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 20px;
}

.chip-icon {
    color: var(--warning);
}

.chip-count {
    font-weight: 700;
}

.stats-box {
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* 탭 */
.lobby-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--primary);
    color: white;
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* 방 목록 */
.room-list {
    flex: 1;
    overflow-y: auto;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
}

.room-info-left {
    flex: 1;
}

.room-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.room-host {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.room-players {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 12px;
}

.join-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.empty-rooms {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
}

.room-item.playing {
    opacity: 0.6;
}

.playing-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--danger);
    color: white;
    border-radius: 4px;
    margin-left: 6px;
}

.hidden-badge {
    font-size: 0.7rem;
    background: var(--warning);
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: bold;
}

.game-type-badge {
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: bold;
}

.game-type-badge.jackpot {
    background: var(--primary);
    color: white;
}

.game-type-badge.bingo {
    background: var(--success);
    color: white;
}

.game-type-badge.minebingo {
    background: var(--danger);
    color: white;
}

#refresh-rooms-btn {
    margin-top: 12px;
}

/* 방 만들기 */
.create-room-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.create-room-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.create-room-form select {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
}

/* 대기실 */
.room-info {
    text-align: center;
    margin-bottom: 24px;
}

.room-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.room-info p {
    color: var(--text-secondary);
}

.players-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
}

.player-slot {
    width: 100%;
    max-width: 280px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.player-slot .slot-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.player-slot .slot-info {
    flex: 1;
    text-align: left;
}

.player-slot.host {
    border: 2px solid var(--warning);
}

.slot-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.player-slot.host .slot-icon {
    color: var(--warning);
}

.slot-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.slot-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slot-status.ready {
    color: var(--success);
}

.vs-divider {
    display: none;
}

.waiting-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.countdown {
    text-align: center;
    margin: 20px 0;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
}

/* 배팅 */
.target-display {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 20px;
}

.target-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--warning);
}

.system-bet-display {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 20px;
}

.bet-amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--success);
    margin: 12px 0;
}

.bet-notice {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.waiting-text {
    text-align: center;
    color: var(--text-muted);
    margin-top: 16px;
}

/* 선공 결정 */
.pick-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 24px auto;
}

.pick-card {
    width: 56px;
    height: 80px;
    background: var(--card-front);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.pick-card:hover:not(.disabled):not(.taken) {
    transform: translateY(-8px);
}

.pick-card.selected {
    border: 3px solid var(--primary);
}

.pick-card.taken {
    opacity: 0.3;
    cursor: not-allowed;
}

.pick-card.disabled {
    cursor: not-allowed;
}

/* 게임 화면 */
.game-header {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
}

.header-item {
    text-align: center;
}

.header-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.header-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.header-item.target .header-value {
    color: var(--warning);
}

.header-item.pot .header-value {
    color: var(--success);
}

.player-area {
    flex: 1;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 8px;
}

.area-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.area-name {
    font-weight: 600;
}

.area-sum {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.area-status {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.area-status.bust {
    color: var(--danger);
}

.area-status.stopped {
    color: var(--warning);
}

.cards-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 50px;
    max-height: 110px;
    overflow-y: auto;
}

.game-card {
    width: 40px;
    height: 56px;
    background: var(--card-front);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--bg-dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.game-card.high {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
}

/* 타이머 */
.turn-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 12px;
}

.timer-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-card-light);
    border-radius: 4px;
    overflow: hidden;
}

.timer-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 100%);
    background: var(--primary);
    transition: width 0.1s linear;
}

.timer-bar.warning::after { background: var(--warning); }
.timer-bar.danger::after { background: var(--danger); }

#timer-text {
    min-width: 28px;
    font-weight: 600;
}

/* 액션 버튼 */
.action-buttons {
    display: flex;
    gap: 12px;
}

.btn-draw {
    flex: 1;
    background: var(--success);
    color: white;
}

.btn-stop {
    flex: 1;
    background: var(--warning);
    color: var(--bg-dark);
}

.btn-surrender {
    flex: 1;
    background: var(--danger);
    color: white;
}

/* 결과 */
.result-container {
    justify-content: center;
    align-items: center;
}

.result-box {
    text-align: center;
    padding: 32px;
    background: var(--bg-card);
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
}

#result-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

#result-title.win { color: var(--success); }
#result-title.lose { color: var(--danger); }
#result-title.draw { color: var(--warning); }

.result-detail {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-detail p {
    margin: 8px 0;
}

.chip-change {
    font-size: 2.5rem;
    font-weight: 900;
}

.chip-change.positive { color: var(--success); }
.chip-change.negative { color: var(--danger); }

.result-buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result-buttons .btn {
    width: 100%;
}

/* 관리자 */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.admin-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.admin-tab.active {
    background: var(--primary);
    color: white;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-room-actions {
    display: flex;
    gap: 8px;
}

.admin-room-list {
    max-height: 400px;
    overflow-y: auto;
}

.admin-room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 8px;
}

.admin-room-info {
    flex: 1;
}

.admin-room-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-room-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-section {
    margin-bottom: 24px;
}

.admin-section h3 {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.admin-form {
    display: flex;
    gap: 8px;
}

.admin-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.user-list {
    max-height: 400px;
    overflow-y: auto;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-item-info {
    flex: 1;
}

.user-item-name {
    font-weight: 600;
}

.user-item-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.delete-user-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: var(--danger);
    color: white;
    cursor: pointer;
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-card-light);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.vs-history h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.vs-summary {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-card-light);
    border-radius: 8px;
}

.vs-wins { color: var(--success); font-weight: 600; }
.vs-losses { color: var(--danger); font-weight: 600; }
.vs-draws { color: var(--warning); font-weight: 600; }

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-card-light);
    border-radius: 8px;
    margin-bottom: 8px;
}

.history-result {
    font-weight: 600;
}

.history-result.win { color: var(--success); }
.history-result.lose { color: var(--danger); }
.history-result.draw { color: var(--warning); }

.history-chips {
    font-weight: 600;
}

.history-chips.positive { color: var(--success); }
.history-chips.negative { color: var(--danger); }

.history-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.empty-history {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
}

/* 클릭 가능한 슬롯 */
.player-slot.clickable {
    cursor: pointer;
    transition: background 0.2s;
}

.player-slot.clickable:hover {
    background: var(--bg-card-light);
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.pagination:empty {
    display: none;
}

.page-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: var(--bg-card-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.page-btn:hover {
    background: var(--primary);
    color: white;
}

.page-btn.active {
    background: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 가로모드 권장 */
@media (orientation: portrait) {
    .game-screen-notice {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        color: var(--text-muted);
    }
}

/* 다인원 게임 레이아웃 */
.game-players-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.opponents-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.opponents-row .player-area {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    padding: 8px;
}

.opponents-row .player-area .area-header {
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.opponents-row .player-area .area-name {
    font-size: 0.75rem;
}

.opponents-row .player-area .area-sum {
    font-size: 1rem;
}

/* 상대방 카드 겹치기 */
.opponents-row .cards-row {
    display: flex;
    padding-left: 20px;
}

.opponents-row .cards-row .game-card {
    width: 32px;
    height: 44px;
    font-size: 0.85rem;
    margin-left: -20px;
    box-shadow: -2px 0 4px rgba(0,0,0,0.3);
}

.opponents-row .cards-row .game-card:first-child {
    margin-left: 0;
}

.player-area.current-turn {
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.my-area {
    margin-top: auto;
}

.area-status.surrendered {
    color: var(--warning);
}

.result-detail .my-result {
    font-weight: bold;
    color: var(--primary);
}

.result-detail .winner {
    color: var(--warning);
    font-weight: bold;
}

#result-title.lose {
    font-size: 1.2rem;
}

/* 히든 모드 */
.hidden-target {
    color: var(--warning);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 게임 타입 탭 */
.game-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.game-type-tab {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--bg-lighter);
    background: var(--bg-card);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.game-type-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.game-options.hidden {
    display: none;
}

/* 빙고 화면 */
.bingo-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
}

.bingo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bingo-info {
    display: flex;
    gap: 16px;
    font-size: 1.1rem;
    font-weight: bold;
}

.bingo-boards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.opponent-bingo, .my-bingo {
    text-align: center;
}

.bingo-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-width: 300px;
    margin: 0 auto;
}

.bingo-board.small {
    max-width: 180px;
}

.bingo-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.bingo-board.small .bingo-cell {
    font-size: 0.8rem;
    border-radius: 4px;
}

.bingo-cell.opponent-cell {
    background: #3a3a4a;
    border: 1px solid #555;
}

/* 마인빙고 */
.mine-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
}

.mine-header {
    text-align: center;
    margin-bottom: 12px;
}

.mine-header h2 {
    margin-bottom: 8px;
}

.mine-info {
    color: var(--text-muted);
}

.mine-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mine-pot {
    font-size: 1.1rem;
    font-weight: bold;
}

.mine-turn {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

.mine-turn.my-turn {
    background: var(--success);
    color: white;
}

.mine-turn.opponent-turn {
    background: var(--text-muted);
    color: var(--bg-main);
}

.mine-boards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.mine-board-section {
    text-align: center;
}

.mine-board-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.mine-board-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mine-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    max-width: 280px;
    margin: 0 auto;
}

.mine-board.large {
    max-width: 320px;
    gap: 6px;
}

.mine-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--bg-lighter);
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mine-cell:hover:not(.revealed):not(.disabled) {
    border-color: var(--primary);
    transform: scale(1.05);
}

.mine-cell.mine-placed {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.mine-cell.safe {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mine-cell.exploded {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    animation: explode 0.5s ease;
}

@keyframes explode {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.mine-cell.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.mine-cell.revealed {
    cursor: default;
}

#confirm-mines-btn {
    margin-top: 16px;
}

.bingo-cell:hover:not(.marked):not(.disabled) {
    background: var(--bg-lighter);
    border-color: var(--primary);
}

.bingo-cell.marked {
    background: var(--primary);
    color: white;
}

.bingo-cell.bingo-line {
    background: var(--success);
    color: white;
}

.bingo-cell.just-called {
    animation: callPulse 0.5s ease;
}

@keyframes callPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bingo-cell.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bingo-last-call {
    text-align: center;
    padding: 12px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.bingo-last-call span {
    color: var(--warning);
    font-weight: bold;
    font-size: 1.5rem;
}
