/* 基礎樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 確保 HTML 和 body 有正確的尺寸 */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    position: relative;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 確保所有元素都有正確的顯示 */
.navbar, .main-content, .panel {
    display: block;
    position: relative;
}

/* 強制顯示活動面板 */
.panel.active {
    display: block !important;
}

/* 確保導航欄正確顯示 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: block !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-title i {
    color: #667eea;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 主要內容 */
.main-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    position: relative;
    display: block !important;
}

/* 面板 */
.panel {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
}

.panel.active {
    display: block !important;
}

.panel h2 {
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

/* 設置區域 */
.setup-section {
    margin-bottom: 2rem;
}

.setup-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* 玩家布局 */
.players-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.player-table {
    display: grid;
    grid-template-areas:
        ". north ."
        "west center east"
        ". south .";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.player-north { grid-area: north; }
.player-south { grid-area: south; }
.player-east { grid-area: east; }
.player-west { grid-area: west; }
.table-center { grid-area: center; }

.players-list {
    display: flex;
    flex-direction: column; /* 每張一行 */
    gap: 1rem; /* 每張間距 */
    width: 100%;
}


.player-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    width: 100%;              /* 佔滿一整行 */
    max-width: 100%;
    color: white;
    position: relative;
    text-align: left;         /* 改為左對齊內容 */
}

.player-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.player-card.dealer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.table-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.center-info i {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    color: #667eea;
}

.center-info span {
    font-size: 0.7rem;
    text-align: center;
}

/* 遊戲狀態十字型布局 */
.player-table-status {
    display: grid;
    grid-template-areas:
        ". north-status ."
        "west-status center-status east-status"
        ". south-status .";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.player-north-status { grid-area: north-status; }
.player-south-status { grid-area: south-status; }
.player-east-status { grid-area: east-status; }
.player-west-status { grid-area: west-status; }
.table-center-status { grid-area: center-status; }

.table-center-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 遊戲規則資訊 */
.game-rules-info {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #333;
    font-weight: 500;
}

.game-rules-info span {
    font-size: 0.9rem;
}

/* 中央時間顯示 */
.game-time-display {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.2rem;
    font-weight: 600;
}

/* 中央資訊狀態調整 */
.center-info-status {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    padding: 0.5rem;
}

.center-info-status i {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
}

.center-info-status span {
    font-size: 0.6rem;
    text-align: center;
    margin-bottom: 0.1rem;
}

/* 玩家頭像 */
.player-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.player-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* SVG 頭像特殊樣式 */
.player-avatar img[src*="default-avatar.svg"] {
    border: 3px solid #FFB6C1;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    transform: scale(1.05);
}

.player-avatar img[src*="default-avatar.svg"]:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

.avatar-input {
    display: none;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-upload:hover {
    background: white;
    transform: scale(1.1);
}

/* 玩家姓名 */
.player-name {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 25px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.player-name:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 莊家按鈕 */
.dealer-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dealer-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.dealer-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: white;
}

/* 遊戲規則 */
.game-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-item label {
    font-weight: 500;
    color: #333;
    min-width: 60px;
}

.rule-item select {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rule-item select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

/* 開始遊戲按鈕 */
.start-game-section {
    text-align: center;
    margin-top: 2rem;
}

.start-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* 遊戲進行中 */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-info {
    display: flex;
    gap: 2rem;
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 500;
}

/* 玩家狀態 */
.players-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
    margin: 2rem auto;
}

.player-north-status {
    width: 100%;
    display: flex;
    justify-content: center;
}

.players-middle-status {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.player-west-status, .player-east-status {
    flex: 1;
    display: flex;
    justify-content: center;
}

.player-south-status {
    width: 100%;
    display: flex;
    justify-content: center;
}

.player-status {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.player-status.dealer {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.player-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.player-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 遊戲狀態頁面的 SVG 頭像特殊樣式 */
.player-info img[src*="default-avatar.svg"] {
    border: 2px solid #FFB6C1;
    box-shadow: 0 3px 10px rgba(255, 182, 193, 0.3);
    transform: scale(1.05);
}

.player-info img[src*="default-avatar.svg"]:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.5);
}

.dealer-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
}

.dealer-badge.show {
    display: inline-block;
}

.player-score {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.player-status.dealer .player-score {
    color: white;
}

/* 遊戲操作 */
.game-actions {
    margin-bottom: 2rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.win-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.draw-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.photo-btn {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    color: #333;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 返回按鈕 */
.back-to-setup {
    text-align: center;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #333;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 胡牌記錄表單 */
.win-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.win-type {
    display: flex;
    gap: 2rem;
}

.win-type label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.confirm-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #e1e5e9;
    color: #333;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.confirm-btn:hover,
.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 模態框基礎樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 新手教學 */
.tutorial-step {
    display: none;
    text-align: center;
}

.tutorial-step.active {
    display: block;
}

.tutorial-step h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tutorial-step p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #666;
}

.tutorial-step img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.tutorial-step ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 2rem;
}

.tutorial-step li {
    margin-bottom: 0.5rem;
    color: #666;
}

.step-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 歷史記錄 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.history-records {
    margin-top: 1rem;
}

.history-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-header h4 {
    color: #333;
    margin: 0;
}

.win-type-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.win-type-badge.selfDraw {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.win-type-badge.discard {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.history-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.history-item .time {
    color: #999;
    font-size: 0.8rem;
}

/* 安裝按鈕 */
.install-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

.install-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.install-btn::before {
    content: '📱';
    font-size: 1rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 205, 196, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 205, 196, 0);
    }
}

/* PWA 相關樣式 */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    text-align: center;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pwa-install-banner.show {
    transform: translateY(0);
}

.pwa-install-banner .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.pwa-install-banner .banner-text {
    flex: 1;
    text-align: left;
}

.pwa-install-banner .banner-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.pwa-install-banner .banner-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.pwa-install-banner .banner-actions {
    display: flex;
    gap: 0.5rem;
}

.pwa-install-banner .banner-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pwa-install-banner .install-banner-btn {
    background: white;
    color: #667eea;
    font-weight: 600;
}

.pwa-install-banner .dismiss-banner-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pwa-install-banner .install-banner-btn:hover {
    transform: scale(1.05);
}

.pwa-install-banner .dismiss-banner-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .history-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pwa-install-banner .banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .pwa-install-banner .banner-text {
        text-align: center;
    }
    
    .pwa-install-banner .banner-actions {
        justify-content: center;
    }
}



/* 設定 */
.setting-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #667eea;
}

/* 座位決定樣式 */
.seat-determination {
    background: linear-gradient(135deg, #72127d 0%, #000000 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: white;
}

.seat-description {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

.seat-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.seat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.seat-btn i {
    margin-right: 0.5rem;
}

.seat-result {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.seat-result h4 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.seat-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.seat-north {
    width: 100%;
    display: flex;
    justify-content: center;
}

.seat-middle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.seat-west, .seat-east {
    flex: 1;
    display: flex;
    justify-content: center;
}

.seat-south {
    width: 100%;
    display: flex;
    justify-content: center;
}

.seat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
    position: relative;
}

.seat-item.dealer-seat {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.seat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.seat-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.seat-name {
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dealer-seat .seat-name {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* 座位調整功能樣式 */
.seat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
    position: relative;
}

.swap-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.swap-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.seat-controls {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.control-section h5 {
    text-align: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1rem;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.control-btn i {
    font-size: 0.8rem;
}

/* 莊家選擇模態框樣式 */
.dealer-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.dealer-option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.dealer-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.dealer-option.selected {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* 照片庫樣式 */
.photos-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.photo-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.photo-btn.clear-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.photo-btn.clear-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.photo-item {
    background: white;
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.photo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: #4ecdc4;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.photo-info {
    text-align: center;
    color: #333;
}

.photo-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.photo-time {
    font-size: 0.7rem;
    color: #999;
}

.no-photos {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-photos i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-photos p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.no-photos p:last-child {
    font-size: 0.9rem;
    color: #999;
}

/* 照片查看器樣式 */
.photo-viewer .modal-content {
    max-width: 90vw;
    max-height: 90vh;
}

.photo-viewer-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.photo-viewer-content img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.photo-info {
    margin-top: 1rem;
    text-align: center;
    color: #333;
}

.photo-info p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

.photo-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.photo-actions .action-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.photo-actions .action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.photo-actions .delete-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.photo-actions .delete-btn:hover {
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* 交換動畫 */
@keyframes swapAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.seat-swapping {
    animation: swapAnimation 0.3s ease;
}

/* 拖拽功能樣式 */
.seat-item {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.seat-item.dragging {
    cursor: grabbing;
    opacity: 0.8;
    transform: scale(1.05);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.seat-item.drag-over {
    border: 2px dashed #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.seat-item.drag-target {
    border: 2px solid #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
}

/* 拖拽提示 */
.drag-hint {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1001;
    display: none;
}

/* 移除交換按鈕，改用拖拽 */
.swap-btn {
    display: none;
}

/* 方位指示器樣式 */
.direction-indicator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.direction-north {
    margin-bottom: 0.5rem;
}

.direction-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.direction-west, .direction-east {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.direction-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0 1rem;
}

.direction-south {
    margin-top: 0.5rem;
}

.direction-indicator i {
    font-size: 1.2rem;
    color: #4ecdc4;
    margin-bottom: 0.2rem;
}

.direction-indicator span {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
}

.direction-center i {
    color: #ffd700;
    font-size: 1.5rem;
}

/* 座位決定動畫 */
@keyframes seatShuffle {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-10px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

.seat-shuffle {
    animation: seatShuffle 0.3s ease;
}

/* 消息動畫 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 1rem;
    }

    .panel {
        padding: 1rem;
    }

    .players-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .players-middle {
        display: none;
    }

    .players-status {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .players-middle-status {
        display: none;
    }

    .game-rules {
        flex-direction: column;
    }

    .players-status {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .game-header {
        flex-direction: column;
        gap: 1rem;
    }

    .game-info {
        text-align: center;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 10px;
        border-radius: 10px;
    }

    .modal-header,
    .modal-body {
        padding: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .win-type {
        flex-direction: column;
        gap: 0.5rem;
    }

    .seat-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .seat-middle {
        display: none;
    }

    .seat-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .control-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dealer-options {
        grid-template-columns: 1fr;
    }

    .direction-indicator {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .direction-middle {
        display: none;
    }

    .direction-center {
        grid-column: 1;
        grid-row: 2;
    }

    .direction-indicator i {
        font-size: 1.5rem;
    }

    .direction-indicator span {
        font-size: 0.8rem;
    }

    .direction-center i {
        font-size: 2rem;
    }

    .photos-grid {
        grid-template-columns: 1fr;
    }

    .photo-item img {
        height: 120px;
    }

    .photo-viewer .modal-content {
        max-width: 98vw;
        max-height: 98vh;
    }

    .photo-viewer-content img {
        max-height: 50vh;
    }
}

@media (max-width: 480px) {
    .main-content {
        max-width: 100% !important;
        padding: 0.5rem !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .panel {
        padding: 0.5rem !important;
        width: 100% !important;
    }
    .players-layout {
        max-width: 100% !important;
        gap: 0.5rem !important;
    }
    .player-table {
        gap: 0.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        /* 保持 grid，不要改成 flex */
    }
    .player-card {
        min-width: 0 !important;
        padding: 0.8rem !important;
        font-size: 0.95rem !important;
    }
    .player-north,
    .player-south,
    .player-east,
    .player-west,
    .table-center {
        width: 100% !important;
        min-width: 0 !important;
    }
    .nav-title {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .panel h2 {
        font-size: 1.5rem;
    }
    
    .player-card {
        padding: 1rem;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .start-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    #seatResult .seat-layout {
        display: grid !important;
        grid-template-areas:
          ". seat-north ."
          "seat-west seat-center seat-east"
          ". seat-south .";
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 0.2rem !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        min-height: 320px;
        align-items: center;
        justify-items: center;
        background: none;
    }
    .seat-north { grid-area: seat-north; }
    .seat-south { grid-area: seat-south; }
    .seat-east { grid-area: seat-east; }
    .seat-west { grid-area: seat-west; }
    .seat-center { grid-area: seat-center; }
    #seatResult .seat-item {
      min-width: 80px !important;
      max-width: 120px !important;
      padding: 0.5rem !important;
      font-size: 0.95rem !important;
      margin: 0 !important;
    }
    .nav-container {
      flex-direction: row !important;
      gap: 0.3rem !important;
      padding: 0.5rem !important;
      align-items: center !important;
      justify-content: space-between !important;
    }
    .nav-title {
      font-size: 1rem !important;
      margin-right: 0.5rem !important;
      white-space: nowrap;
    }
    .nav-buttons {
      flex-wrap: nowrap !important;
      gap: 0.3rem !important;
      justify-content: flex-end !important;
    }
    .nav-btn {
      padding: 0.3rem 0.6rem !important;
      font-size: 0.8rem !important;
      min-width: 0 !important;
      white-space: nowrap;
    }
    .player-table-status {
      display: grid !important;
      grid-template-areas:
        ". player-north-status ."
        "player-west-status table-center-status player-east-status"
        ". player-south-status .";
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: 1fr 1fr 1fr;
      gap: 0.2rem !important;
      max-width: 320px !important;
      margin: 0 auto !important;
      min-height: 320px;
      align-items: center;
      justify-items: center;
      background: none;
    }
    .player-north-status { grid-area: player-north-status; }
    .player-south-status { grid-area: player-south-status; }
    .player-east-status { grid-area: player-east-status; }
    .player-west-status { grid-area: player-west-status; }
    .table-center-status { grid-area: table-center-status; }
    .player-status {
      min-width: 80px !important;
      max-width: 120px !important;
      padding: 0.5rem !important;
      font-size: 0.95rem !important;
      margin: 0 !important;
    }
}

/* 動畫效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel.active {
    animation: fadeIn 0.3s ease-out;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
} 

/* 照片遊戲時間顯示 */
.photo-game-time {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.2rem;
    font-weight: 500;
} 

/* 分享功能樣式 */
.share-btn {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white !important;
}

.share-btn:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190) !important;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #0d6efd) !important;
}

.share-btn.facebook:hover {
    background: linear-gradient(45deg, #166fe5, #0b5ed9) !important;
}

.share-btn.twitter {
    background: linear-gradient(45deg, #1da1f2, #0ea5e9) !important;
}

.share-btn.twitter:hover {
    background: linear-gradient(45deg, #1a91da, #0d94d8) !important;
}

.share-btn.line {
    background: linear-gradient(45deg, #00b900, #00a000) !important;
}

.share-btn.line:hover {
    background: linear-gradient(45deg, #00a800, #009000) !important;
}

.share-btn.whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e) !important;
}

.share-btn.whatsapp:hover {
    background: linear-gradient(45deg, #22c55e, #0f766e) !important;
}

.share-btn.copy {
    background: linear-gradient(45deg, #6b7280, #4b5563) !important;
}

.share-btn.copy:hover {
    background: linear-gradient(45deg, #5f6368, #404040) !important;
}

.share-btn.download {
    background: linear-gradient(45deg, #10b981, #059669) !important;
}

.share-btn.download:hover {
    background: linear-gradient(45deg, #0ea371, #047857) !important;
}

.share-buttons .share-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.share-buttons .share-btn i {
    font-size: 1.1rem;
}

/* 分享模態框樣式 */
.share-modal .modal-content {
    max-width: 500px;
}

.share-modal .modal-body {
    padding: 1.5rem;
}

.share-preview {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.share-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.share-text-area {
    margin-bottom: 1rem;
}

.share-text-area label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.share-text-area textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: border-color 0.3s ease;
}

.share-text-area textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons .share-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .share-buttons .share-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        gap: 0.3rem;
    }

    .share-preview img {
        max-width: 150px;
        max-height: 100px;
    }
} 

/* 骰子功能樣式 */
.dice-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.dice-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    text-align: center;
    color: white;
}

.dice-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dice-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dice-input-group label {
    font-weight: 600;
    color: white;
    margin: 0;
}

.dice-input {
    width: 80px;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.dice-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.dice-btn:active {
    transform: translateY(0);
}

.dice-result {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.dice-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    animation: diceRoll 0.6s ease;
}

.opening-info {
    font-size: 1rem;
    color: white;
    line-height: 1.4;
}

.opening-info .highlight {
    color: #ffd700;
    font-weight: bold;
}

@keyframes diceRoll {
    0% {
        transform: rotate(0deg) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
} 