/* ============ 剪刀石頭布遊戲樣式 ============ */

/* ============ 基本樣式 ============ */
.mora-game-wrapper {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mora-game-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.mora-game-container {
    font-family: 'Noto Sans TC', sans-serif;
    overflow-x: hidden;
    background-color: #F9F9F9;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ============ 標題金色光暈效果 ============ */
.mora-game-title {
    font-size: 3.5rem; /* 保持原手機尺寸 */
    font-weight: bold;
    color: #e63946;
    text-align: center;
    margin: 20px 0;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2),
        2px 2px 4px rgba(0,0,0,0.1);
    animation: moraTitleGlow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 10;
}

/* 桌機端放大 */
@media (min-width: 769px) {
    .mora-game-title {
        font-size: 5rem !important; /* 從3.5rem放大到5rem */
        margin: 30px 0;
    }
}

@media (max-width: 768px) {
    .mora-game-title {
        font-size: 2.5rem;
        margin: 15px 0;
    }
}

/* ============ 結果區域 ============ */
.mora-result-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mora-result-area {
        gap: 10px;
        margin-bottom: 15px;
    }
}

/* ============ 玩家和店家選擇區域 ============ */
.mora-player-choice, .mora-store-choice {
    text-align: center;
    flex: 1;
    max-width: 300px;
}

/* ============ 選擇標籤 ============ */
.mora-choice-label {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-block;
}

.mora-player-choice .mora-choice-label {
    background: linear-gradient(145deg, #6ecbf5, #059ee3);
    color: white;
}

.mora-store-choice .mora-choice-label {
    background: linear-gradient(145deg, #ff9a3d, #ff6b35);
    color: white;
}

/* ============ 選擇顯示區域 ============ */
.mora-choice-display {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 8px solid;
}

.mora-player-choice .mora-choice-display {
    border-color: #3498db;
    background: linear-gradient(145deg, #a8e6cf, #6ecbf5);
}

.mora-store-choice .mora-choice-display {
    border-color: #ff9f43;
    background: linear-gradient(145deg, #ffd8a6, #ff9a3d);
}

@media (max-width: 768px) {
    .mora-choice-display {
        width: 130px;
        height: 130px;
        font-size: 60px;
    }
}

/* ============ VS符號 ============ */
.mora-vs-symbol {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    margin-top: 70px;
}

/* ============ 遊戲結果訊息 ============ */
.mora-game-result {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.mora-game-result.show {
    display: flex;
}

/* 緊張訊息樣式 */
.mora-tension-result {
    color: #8B4513;
    background: #FFF8DC;
    border: 3px solid #FFD700;
    animation: moraPulse 1.5s infinite;
}

@keyframes moraPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.mora-win-result {
    color: #2a9d8f;
    background: linear-gradient(145deg, #d4edda, #c3e6cb) !important;
    border: 3px solid #2a9d8f;
}

.mora-lose-result {
    color: #e63946;
    background: linear-gradient(145deg, #f8d7da, #f5c6cb) !important;
    border: 3px solid #e63946;
}

.mora-draw-result {
    color: #6c757d;
    background: linear-gradient(145deg, #e2e3e5, #d6d8db) !important;
    border: 3px solid #6c757d;
}

/* ============ 遊戲控制按鈕容器 ============ */
.mora-game-controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* ============ 主要遊戲按鈕 ============ */
.mora-main-game-btn {
    padding: 15px 40px;
    font-size: 2rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(145deg, #e63946, #d62828);
    color: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    min-width: 250px;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.mora-main-game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
}

.mora-main-game-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* ============ 遊戲控制按鈕組 - 修正：手機端並排顯示 ============ */
.mora-game-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.mora-game-btn {
    padding: 15px 22.5px !important;
    font-size: 1.35rem !important;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    touch-action: manipulation;
    text-align: center;
    flex: 1;
    min-width: 90px !important;
    max-width: 135px !important;
}

.mora-reset-btn {
    background: linear-gradient(145deg, #457b9d, #1d3557);
}

.mora-rules-btn {
    background: linear-gradient(145deg, #2a9d8f, #21867a);
}

.mora-clear-btn {
    background: linear-gradient(145deg, #e63946, #d62828);
}

.mora-store-info-btn {
    background: linear-gradient(145deg, #457b9d, #1d3557);
}

.mora-prize-setting-btn {
    background: linear-gradient(145deg, #ff9800, #f57c00);
}

.mora-game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.mora-store-info-btn:hover:not(:disabled) {
    box-shadow: 0 6px 15px rgba(69, 123, 157, 0.5);
}

.mora-prize-setting-btn:hover:not(:disabled) {
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.5);
}

.mora-game-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* 手機端遊戲控制按鈕組 - 修正：確保三個按鈕並排顯示 */
@media (max-width: 768px) {
    .mora-game-controls {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 15px 0 !important;
    }
    
    .mora-game-btn {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 14px 8px !important;
        font-size: 1.1rem !important;
        flex: 1 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* 針對超小手機的額外調整 */
@media (max-width: 375px) {
    .mora-game-controls {
        gap: 8px !important;
        padding: 0 5px !important;
    }
    
    .mora-game-btn {
        padding: 12px 6px !important;
        font-size: 1rem !important;
    }
}

/* ============ 遊戲統計 ============ */
.mora-game-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.mora-stat-item {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 140px;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid #FF7A00;
}

.mora-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF7A00;
    line-height: 1.2;
}

.mora-stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.2;
}

/* 桌機端統計區域 - 改為橫向長方形 */
@media (min-width: 769px) {
    .mora-stat-item {
        min-width: 180px;
        min-height: 100px;
        padding: 20px 15px;
        aspect-ratio: auto;
    }
    
    .mora-stat-value {
        font-size: 3rem;
    }
    
    .mora-stat-label {
        font-size: 1.2rem;
    }
}

/* 平板端統計區域 - 縮小4分之1 */
@media (min-width: 769px) and (max-width: 1024px) {
    .mora-stat-item {
        min-width: 135px !important; /* 縮小1/4 (從180px縮小到135px) */
        min-height: 100px;
        padding: 18px 12px;
        margin: 0 5px;
    }
    
    .mora-stat-value {
        font-size: 2.5rem;
    }
    
    .mora-stat-label {
        font-size: 1.1rem;
        margin-top: 8px;
    }
}

@media (max-width: 768px) {
    .mora-game-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin: 20px 0;
        padding: 0 10px;
        width: 100%;
    }
    
    .mora-stat-item {
        padding: 12px 6px;
        border-radius: 12px;
        min-width: 0;
        width: 100%;
        min-height: 80px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: 2px solid #FF7A00;
    }
    
    .mora-stat-value {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .mora-stat-label {
        font-size: 1.1rem;
        margin-top: 6px;
        line-height: 1.1;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        width: 100%;
        text-align: center;
    }
}

/* 針對超小手機的額外調整 */
@media (max-width: 375px) {
    .mora-game-stats {
        gap: 8px;
        padding: 0 5px;
    }
    
    .mora-stat-item {
        padding: 10px 4px;
        min-height: 70px;
    }
    
    .mora-stat-value {
        font-size: 1.8rem;
    }
    
    .mora-stat-label {
        font-size: 1rem;
    }
}

/* ============ 店家資訊展示區域 ============ */
.mora-store-info-display {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin: 30px auto;
    max-width: 800px;
    width: 100%;
    border: 3px solid #FF7A00;
}

.mora-store-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
    width: 100%;
}

.mora-store-info-label-display {
    font-weight: bold;
    color: #FF7A00;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 1.4rem;
}

.mora-store-info-value-display {
    flex: 1;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    font-size: 1.4rem;
    line-height: 1.6;
    word-break: break-word;
    transition: all 0.3s;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.mora-store-info-value-display:hover {
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
    background: white;
}

@media (max-width: 768px) {
    .mora-store-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .mora-store-info-label-display {
        min-width: auto;
        width: 100%;
        font-size: 1.2rem;
    }
    
    .mora-store-info-value-display {
        width: 100%;
        font-size: 1.2rem;
        padding: 10px;
        min-height: 45px;
    }
}

/* ============ 店家資訊和獎項設定按鈕容器============ */
.mora-store-prize-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    max-width: 500px;
    width: 100%;
    padding: 0 15px;
}

.mora-store-prize-buttons .mora-game-btn {
    flex: 1;
    min-width: 225px !important;
    max-width: 300px !important;
    padding: 21px 25px !important;
    font-size: 1.65rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* 手機端店家資訊和獎項設定按鈕 - 完全修正 */
@media (max-width: 768px) {
    .mora-store-prize-buttons {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        margin: 20px 0 !important;
    }
    
    .mora-store-prize-buttons .mora-game-btn {
        width: 48% !important;
        max-width: 48% !important;
        min-width: 0 !important;
        padding: 16px 8px !important;
        font-size: 1.2rem !important;
        flex: 1 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

@media (max-width: 480px) {
    .mora-store-prize-buttons .mora-game-btn {
        font-size: 1.1rem !important;
        padding: 14px 6px !important;
    }
}

@media (max-width: 375px) {
    .mora-store-prize-buttons {
        gap: 8px !important;
        padding: 0 10px !important;
    }
    
    .mora-store-prize-buttons .mora-game-btn {
        font-size: 1rem !important;
        padding: 12px 4px !important;
    }
}

/* ============ 一鍵生成海報按鈕 ============ */
.mora-poster-btn {
    display: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    transition: all 0.3s ease;
    min-width: 250px;
    margin: 20px auto;
    -webkit-appearance: none;
    touch-action: manipulation;
    animation: moraPosterPulse 2s infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.mora-poster-btn.show {
    display: block;
}

.mora-poster-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    background: linear-gradient(145deg, #FFA500, #FFD700);
}

@keyframes moraPosterPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
    }
}

@media (max-width: 768px) {
    .mora-poster-btn {
        padding: 16px 30px;
        font-size: 1.2rem;
        min-width: 200px;
        width: 80%;
        max-width: 300px;
    }
}

/* ============ 海報容器 - 重新設計確保完整包覆 ============ */
.mora-poster-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.mora-poster-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-height: 100%;
    padding: 20px;
}

/* 海報主內容 - 確保外框完整包覆 */
.mora-poster-main-content {
    background: linear-gradient(145deg, #FFF8DC, #FFEBCD);
    padding: 30px;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    border: 8px solid #FFD700;
    animation: moraPosterPopup 0.5s ease-out;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;
    overflow: hidden;
}

/* 手機端海報容器調整 */
@media (max-width: 768px) {
    .mora-poster-container {
        padding: 0 !important;
        align-items: stretch !important;
    }
    
    .mora-poster-content-wrapper {
        padding: 10px !important;
        height: calc(100vh - 100px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .mora-poster-main-content {
        max-width: 95vw !important;
        padding: 15px !important;
        margin: 0 auto !important;
        width: calc(100vw - 20px) !important;
        border: 5px solid #FFD700 !important;
        flex: 1 !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 150px) !important;
    }
    
    /* 按鈕恢復原來位置 */
    .mora-poster-button-container {
        text-align: center !important;
        margin-top: 20px !important;
        padding: 15px !important;
        position: static !important;
        background: transparent !important;
        border-top: 2px solid #FFD700 !important;
    }
    
    /* 按鈕恢復原來樣式 */
    .mora-poster-generate-btn {
        width: 90% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        padding: 12px 20px !important;
        font-size: 1.1rem !important;
    }
}

@keyframes moraPosterPopup {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============ 海報活動內容金色光暈效果 ============ */
.mora-poster-activity-title {
    font-size: 2.5rem !important;
    font-weight: bold;
    color: #FF7A00;
    text-align: center;
    margin: 15px 0;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.4),
        2px 2px 6px rgba(0,0,0,0.2);
    animation: moraPosterTitleGlow 2s ease-in-out infinite alternate;
    padding: 15px;
    background: linear-gradient(145deg, #FFF8DC, #FFE4B5);
    border-radius: 15px;
    border: 3px solid #FFD700;
    overflow: visible;
    white-space: normal;
}

@keyframes moraPosterTitleGlow {
    0% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 30px rgba(255, 215, 0, 0.4),
            2px 2px 6px rgba(0,0,0,0.2);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 25px rgba(255, 215, 0, 0.7),
            0 0 35px rgba(255, 215, 0, 0.6),
            2px 2px 6px rgba(0,0,0,0.3);
    }
}

@media (max-width: 768px) {
    .mora-poster-activity-title {
        font-size: 1.8rem !important;
        padding: 12px;
        margin: 10px 0;
    }
}

.mora-poster-title {
    font-size: 28px;
    font-weight: bold;
    color: #FF7A00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    padding-top: 10px;
}

/* 海報區塊 - 確保完整顯示 */
.mora-poster-section {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid #FFD700;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    min-height: auto;
}

.mora-poster-section-title {
    font-size: 22px;
    font-weight: bold;
    color: #FF7A00;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FFD700;
    white-space: normal;
    overflow: visible;
}

/* 勝利時刻區塊 - 恢復脈動動畫 */
.mora-poster-winner {
    background: linear-gradient(145deg, #FFF8DC, #FFE4B5);
    border: 5px solid #FFD700;
    animation: moraWinnerGlow 2s infinite alternate;
    overflow: visible;
    min-height: auto;
}

@keyframes moraWinnerGlow {
    0% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
        border-color: #FFD700;
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.8);
        border-color: #FFA500;
    }
}

.mora-poster-result-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
    overflow: visible;
}

.mora-poster-choice {
    text-align: center;
    flex: 1;
    min-width: 150px;
    overflow: visible;
}

.mora-poster-choice-label {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #FF7A00;
    white-space: normal;
}

.mora-poster-choice-display {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border: 5px solid;
    background: white;
    overflow: visible;
}

.mora-poster-vs {
    font-size: 2.2rem;
    font-weight: bold;
    color: #FF7A00;
    min-width: 60px;
    text-align: center;
}

/* 店家資訊區塊 - 確保完整顯示 */
.mora-poster-store-info {
    background: white;
    border: 3px solid #FFD700;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 0;
    overflow: visible;
    min-height: auto;
}

/* 手機端海報內容調整 */
@media (max-width: 768px) {
    .mora-poster-main-content {
        padding: 20px;
    }
    
    .mora-poster-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .mora-poster-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .mora-poster-section-title {
        font-size: 20px;
    }
    
    /* 手機端確保遊戲結果並排 */
    .mora-poster-result-area {
        gap: 15px !important;
        flex-wrap: nowrap !important;
    }
    
    .mora-poster-choice {
        min-width: 120px !important;
    }
    
    .mora-poster-choice-display {
        width: 100px !important;
        height: 100px !important;
        font-size: 60px !important;
    }
    
    .mora-poster-vs {
        font-size: 1.8rem !important;
        min-width: 40px !important;
    }
    
    .mora-poster-store-info {
        padding: 15px;
    }
}

/* 海報生成按鈕容器 - 在外框之外 */
.mora-poster-button-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #FFD700;
    position: relative;
    z-index: 10;
}

.mora-poster-generate-btn {
    background: linear-gradient(145deg, #FFD700, #FFA500) !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    border: 2px solid #FFD700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4) !important;
}

.mora-poster-generate-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6) !important;
}

@keyframes moraPosterPopup {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============ 會員登入提示 ============ */
.mora-login-required {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin: 30px auto;
    max-width: 600px;
}

.mora-login-title {
    font-size: 28px;
    color: #e63946;
    margin-bottom: 20px;
    font-weight: bold;
}

.mora-login-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.mora-login-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.mora-login-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    min-width: 200px;
    text-align: center;
}

.mora-login-btn-primary {
    background: linear-gradient(145deg, #e63946, #d62828);
    color: white;
}

.mora-login-btn-secondary {
    background: linear-gradient(145deg, #457b9d, #1d3557);
    color: white;
}

.mora-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .mora-login-required {
        padding: 30px 15px;
        margin: 20px 10px;
    }
    
    .mora-login-title {
        font-size: 24px;
    }
    
    .mora-login-message {
        font-size: 16px;
    }
    
    .mora-login-buttons {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .mora-login-btn {
        width: 45%;
        max-width: 200px;
        padding: 14px 20px;
        font-size: 16px;
        min-width: 0;
    }
}

/* ============ 彈窗樣式 ============ */
.mora-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 遊戲規則彈窗樣式 */
.mora-rules-modal-content {
    background: white;
    padding: 30px;
    border-radius: 25px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: moraPopup 0.4s ease-out;
    border: 4px solid #2a9d8f;
    margin: 20px auto;
    box-sizing: border-box;
}

.mora-rules-title {
    font-size: 28px;
    color: #2a9d8f;
    margin-bottom: 25px;
    font-weight: bold;
}

.mora-rules-list {
    list-style: none;
    text-align: left;
    margin-bottom: 25px;
}

.mora-rules-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.mora-rules-list li:last-child {
    border-bottom: none;
}

.mora-rules-list i {
    color: #FF7A00;
    margin-right: 15px;
    width: 25px;
    font-size: 18px;
}

/* 勝利彈窗樣式 */
.mora-win-modal-content {
    background: linear-gradient(145deg, #fff9c4, #ffeb3b);
    padding: 30px 20px;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(255, 235, 59, 0.7);
    animation: moraWinPopup 0.5s ease-out;
    border: 8px solid #ffd600;
    margin: 20px auto;
    box-sizing: border-box;
}

@keyframes moraWinPopup {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.mora-win-emoji {
    font-size: 70px;
    margin-bottom: 15px;
    animation: moraBounce 1s infinite alternate;
}

@keyframes moraBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}

.mora-win-title {
    font-size: 28px;
    color: #e63946;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.mora-win-details {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mora-win-gold {
    font-size: 32px;
    color: #e63946;
    font-weight: bold;
    margin: 12px 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.mora-win-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.5);
    margin-top: 12px;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.mora-win-btn:hover {
    background: linear-gradient(to right, #3498db, #1abc9c);
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.6);
}

/* 失敗彈窗樣式 */
.mora-lose-modal-content {
    background: linear-gradient(145deg, #e0e0e0, #b0b0b0);
    padding: 30px 20px;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    animation: moraLosePopup 0.5s ease-out;
    border: 8px solid #777;
    margin: 20px auto;
    box-sizing: border-box;
}

@keyframes moraLosePopup {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.mora-lose-emoji {
    font-size: 70px;
    margin-bottom: 15px;
    animation: moraShake 1s infinite alternate;
}

@keyframes moraShake {
    from { transform: rotate(-10deg); }
    to { transform: rotate(10deg); }
}

.mora-lose-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
}

.mora-lose-details {
    font-size: 18px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mora-lose-gold {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    margin: 12px 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
}

/* 平手彈窗樣式 - 修正：移除脈動邊框 */
.mora-draw-modal-content {
    background: linear-gradient(145deg, #e0e0e0, #f0f0f0);
    padding: 30px 20px;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(108, 117, 125, 0.3);
    animation: moraDrawPopup 0.5s ease-out;
    border: 8px solid #6c757d;
    margin: 20px auto;
    box-sizing: border-box;
}

@keyframes moraDrawPopup {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.mora-draw-emoji {
    font-size: 70px;
    margin-bottom: 15px;
    animation: none;
}

.mora-draw-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
}

.mora-draw-details {
    font-size: 18px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 成功訊息彈窗樣式 */
.mora-success-modal-content {
    background: linear-gradient(145deg, #d4edda, #c3e6cb);
    padding: 25px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(42, 157, 143, 0.3);
    animation: moraPopup 0.4s ease-out;
    border: 4px solid #2a9d8f;
}

.mora-success-title {
    font-size: 24px;
    color: #2a9d8f;
    margin-bottom: 15px;
    font-weight: bold;
}

.mora-success-message {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 確認彈窗樣式 */
.mora-confirm-modal-content {
    background: white;
    padding: 25px 15px;
    border-radius: 25px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: moraPopup 0.4s ease-out;
    border: 4px solid #FF7A00;
    margin: 20px auto;
    box-sizing: border-box;
}

.mora-confirm-title {
    font-size: 24px;
    color: #e63946;
    margin-bottom: 12px;
    font-weight: bold;
}

.mora-confirm-message {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mora-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
}

.mora-confirm-yes, .mora-confirm-no {
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 90px;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.mora-confirm-yes {
    background: linear-gradient(145deg, #e63946, #d62828);
    color: white;
}

.mora-confirm-yes:hover {
    background: linear-gradient(145deg, #d62828, #e63946);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.4);
}

.mora-confirm-no {
    background: linear-gradient(145deg, #457b9d, #1d3557);
    color: white;
}

.mora-confirm-no:hover {
    background: linear-gradient(145deg, #1d3557, #457b9d);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(69, 123, 157, 0.4);
}

/* 店家資訊和獎項設定彈窗樣式 */
.mora-info-modal-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: moraPopup 0.4s ease-out;
    -webkit-overflow-scrolling: touch;
}

.mora-info-title {
    font-size: 28px;
    font-weight: 900;
    color: #457b9d;
    text-align: center;
    margin-bottom: 25px;
}

.mora-prize-title {
    color: #ff9800;
}

.mora-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.mora-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mora-info-label {
    font-size: 16px;
    font-weight: bold;
    color: #FF7A00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mora-info-input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
    background: #f8f9fa;
    -webkit-appearance: none;
    appearance: none;
}

.mora-info-input:focus {
    border-color: #FF7A00;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
    background: white;
}

.mora-info-char-count {
    font-size: 14px;
    color: #666;
    text-align: right;
}

.mora-info-buttons {
    display: flex;
    gap: 15px;
}

.mora-info-save, .mora-info-cancel {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.mora-info-save {
    background: linear-gradient(145deg, #457b9d, #1d3557);
    color: white;
}

.mora-info-save:hover {
    background: linear-gradient(145deg, #1d3557, #457b9d);
    transform: translateY(-3px);
}

.mora-info-cancel {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    color: white;
}

.mora-info-cancel:hover {
    background: linear-gradient(145deg, #7f8c8d, #95a5a6);
    transform: translateY(-3px);
}

.mora-prize-save {
    background: linear-gradient(145deg, #ff9800, #f57c00) !important;
}

.mora-prize-save:hover {
    background: linear-gradient(145deg, #f57c00, #ff9800) !important;
}

@keyframes moraPopup {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ============ 返回頂部按鈕 ============ */
.mora-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #FF7A00, #FF5722);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.5);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.mora-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.mora-back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.7);
}

@media (max-width: 768px) {
    .mora-back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}

/* 桌面端隱藏返回頂部按鈕 */
@media (min-width: 769px) {
    .mora-back-to-top {
        display: none !important;
    }
}

/* ============ 橫幅廣告區域 ============ */
.mora-banner-container {
    text-align: center;
    margin: 20px 0;
}

.mora-banner-table {
    border: 0;
    margin: 0 auto;
}

.mora-banner-link {
    text-decoration: none;
}

.mora-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* ============ 桌機端按鈕優化 ============ */
@media (min-width: 769px) {
    .mora-game-btn {
        min-width: 90px !important;
        max-width: 135px !important;
        padding: 15px 22.5px !important;
        font-size: 1.35rem !important;
    }
    
    .mora-main-game-btn {
        font-size: 2rem;
        padding: 18px 45px;
    }
    
    .mora-store-prize-buttons {
        gap: 15px;
    }
    
    .mora-store-prize-buttons .mora-game-btn {
        min-width: 225px !important;
        max-width: 300px !important;
        padding: 21px 25px !important;
        font-size: 1.65rem !important;
    }
}

/* 海報生成按鈕特殊樣式 */
.mora-poster-generate-btn {
    background: linear-gradient(145deg, #FFD700, #FFA500) !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    padding: 12px 24px !important;
    border-radius: 10px !important;
    border: 2px solid #FFD700 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4) !important;
}

.mora-poster-generate-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6) !important;
}

/* ============ 平板豎看專用修正 (768px-1024px) ============ */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    /* 1. 遊戲頁面勝利畫面並排顯示修正 */
    .mora-result-area {
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .mora-player-choice, .mora-store-choice {
        max-width: 220px !important;
    }
    
    .mora-choice-display {
        width: 180px !important;
        height: 180px !important;
        font-size: 90px !important;
    }
    
    .mora-vs-symbol {
        font-size: 2.8rem !important;
        margin-top: 65px !important;
        height: 90px !important;
    }
    
    /* 2. 海報生成預覽修正 - 增加寬度 */
    .mora-poster-container {
        padding: 10px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mora-poster-content-wrapper {
        width: 100% !important;
        max-width: 850px !important;
        padding: 5px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mora-poster-main-content {
        width: 95% !important;
        max-width: 800px !important;
        padding: 25px !important;
        margin: 0 auto !important;
        border: 8px solid #FFD700 !important;
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.6) !important;
        min-height: auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    /* 3. 海報勝利畫面並排顯示 */
    .mora-poster-result-area {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        flex-wrap: nowrap !important;
    }
    
    .mora-poster-choice {
        min-width: 160px !important;
    }
    
    .mora-poster-choice-display {
        width: 160px !important;
        height: 160px !important;
        font-size: 85px !important;
        border: 5px solid !important;
    }
    
    .mora-poster-vs {
        font-size: 2.4rem !important;
        min-width: 60px !important;
    }
    
    /* 4. 海報生成下載按鈕寬度修正 */
    .mora-poster-button-container {
        margin-top: 20px !important;
        padding-top: 15px !important;
        width: 100% !important;
        max-width: 800px !important;
    }
    
    .mora-poster-generate-btn {
        width: 65% !important;
        max-width: 250px !important;
        padding: 14px 20px !important;
        font-size: 1.2rem !important;
    }
    
    /* 5. 海報內容調整 */
    .mora-poster-title {
        font-size: 26px !important;
        margin-bottom: 18px !important;
    }
    
    .mora-poster-activity-title {
        font-size: 2rem !important;
        padding: 18px !important;
        margin: 15px 0 !important;
    }
    
    .mora-poster-section-title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
}

/* 保持原有所有代碼不變... */

/* ============ 手機專用樣式 ============ */
@media (max-width: 768px) {
    .mora-poster-container {
        padding: 10px !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .mora-poster-content-wrapper {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mora-poster-main-content {
        max-width: 95vw !important;
        padding: 20px !important;
        margin: 0 auto !important;
        width: calc(100vw - 20px) !important;
        border: 5px solid #FFD700 !important;
        min-height: calc(100vh - 150px) !important;
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
    }
    
    /* 手機按鈕位置 - 固定在底部，兩個按鈕並排 */
    .mora-poster-button-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(0, 0, 0, 0.95) !important;
        padding: 12px 15px !important;
        margin-top: 0 !important;
        border-top: 3px solid #FFD700 !important;
        z-index: 3000 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    /* 生成海報按鈕 - 縮小並在左邊 */
    .mora-poster-generate-btn {
        width: 70% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        flex: 2 !important;
        min-width: 0 !important;
    }
    
    /* 新增關閉按鈕 - 在右邊 */
    .mora-poster-close-btn {
        background: linear-gradient(145deg, #e63946, #d62828) !important;
        color: white !important;
        font-weight: bold !important;
        font-size: 1.1rem !important;
        padding: 12px 15px !important;
        border-radius: 10px !important;
        border: 2px solid #e63946 !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
        box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4) !important;
        flex: 1 !important;
        text-align: center !important;
        text-decoration: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
    }
    
    .mora-poster-close-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(230, 57, 70, 0.6) !important;
    }
}

/* 保持原有所有代碼不變... */

/* ============ 手機專用樣式 ============ */
@media (max-width: 768px) {
    .mora-poster-container {
        padding: 10px !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .mora-poster-content-wrapper {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .mora-poster-main-content {
        max-width: 95vw !important;
        padding: 20px !important;
        margin: 0 auto !important;
        width: calc(100vw - 20px) !important;
        border: 5px solid #FFD700 !important;
        min-height: calc(100vh - 150px) !important;
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
    }
    
    /* 手機按鈕位置 - 固定在底部，兩個按鈕並排 */
    .mora-poster-button-container {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(0, 0, 0, 0.95) !important;
        padding: 12px 15px !important;
        margin-top: 0 !important;
        border-top: 3px solid #FFD700 !important;
        z-index: 3000 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }
    
    /* 生成海報按鈕 - 縮小並在左邊 */
    .mora-poster-generate-btn {
        width: 70% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px 15px !important;
        font-size: 1.1rem !important;
        flex: 2 !important;
        min-width: 0 !important;
    }
    
    /* 新增關閉按鈕 - 在右邊 */
    .mora-poster-close-btn {
        background: linear-gradient(145deg, #e63946, #d62828) !important;
        color: white !important;
        font-weight: bold !important;
        font-size: 1.1rem !important;
        padding: 12px 15px !important;
        border-radius: 10px !important;
        border: 2px solid #e63946 !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
        box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4) !important;
        flex: 1 !important;
        text-align: center !important;
        text-decoration: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
    }
    
    .mora-poster-close-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(230, 57, 70, 0.6) !important;
    }
}

/* ============ 桌機專用樣式 - 全屏置中 ============ */
@media (min-width: 1025px) {
    .mora-poster-container {
        padding: 40px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mora-poster-content-wrapper {
        width: 100% !important;
        max-width: 1200px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .mora-poster-main-content {
        width: 100% !important;
        max-width: 900px !important;
        padding: 40px !important;
        margin: 0 auto !important;
        border: 10px solid #FFD700 !important;
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.6) !important;
        min-height: auto !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
    
    /* 確保桌機內容置中 */
    .mora-poster-title,
    .mora-poster-activity-title,
    .mora-poster-result-area {
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* 桌機按鈕位置 - 在內容下方 */
    .mora-poster-button-container {
        margin-top: 30px !important;
        padding-top: 25px !important;
        width: 100% !important;
        max-width: 900px !important;
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
        position: static !important;
        background: transparent !important;
        border-top: 2px solid #FFD700 !important;
    }
    
    /* 桌機生成海報按鈕樣式 */
    .mora-poster-generate-btn {
        background: linear-gradient(145deg, #FFD700, #FFA500) !important;
        color: white !important;
        font-weight: bold !important;
        font-size: 1.2rem !important;
        padding: 15px 30px !important;
        border-radius: 12px !important;
        border: 3px solid #FFD700 !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
        box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4) !important;
        min-width: 200px !important;
        display: inline-block !important;
        text-align: center !important;
        text-decoration: none !important;
    }
    
    .mora-poster-generate-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6) !important;
    }
    
    /* 桌機關閉按鈕樣式 */
    .mora-poster-close-btn {
        background: linear-gradient(145deg, #e63946, #d62828) !important;
        color: white !important;
        font-weight: bold !important;
        font-size: 1.2rem !important;
        padding: 15px 30px !important;
        border-radius: 12px !important;
        border: 3px solid #e63946 !important;
        cursor: pointer !important;
        transition: all 0.3s !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
        box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4) !important;
        min-width: 150px !important;
        display: inline-block !important;
        text-align: center !important;
        text-decoration: none !important;
    }
    
    .mora-poster-close-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 15px rgba(230, 57, 70, 0.6) !important;
    }
}

/* ============ 平板專用樣式 (769px-1024px) ============ */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 平板豎看專用修正 */
    @media (orientation: portrait) {
        .mora-poster-container {
            padding: 10px !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .mora-poster-content-wrapper {
            width: 100% !important;
            max-width: 850px !important;
            padding: 5px !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
        }
        
        .mora-poster-main-content {
            width: 95% !important;
            max-width: 800px !important;
            padding: 25px !important;
            margin: 0 auto !important;
            border: 8px solid #FFD700 !important;
            box-shadow: 0 0 50px rgba(255, 215, 0, 0.6) !important;
            min-height: auto !important;
            max-height: 85vh !important;
            overflow-y: auto !important;
        }
        
        /* 平板按鈕位置 */
        .mora-poster-button-container {
            margin-top: 20px !important;
            padding-top: 15px !important;
            width: 100% !important;
            max-width: 800px !important;
            display: flex !important;
            justify-content: center !important;
            gap: 15px !important;
            position: static !important;
            background: transparent !important;
            border-top: 2px solid #FFD700 !important;
        }
        
        /* 平板生成海報按鈕樣式 */
        .mora-poster-generate-btn {
            background: linear-gradient(145deg, #FFD700, #FFA500) !important;
            color: white !important;
            font-weight: bold !important;
            font-size: 1.1rem !important;
            padding: 14px 20px !important;
            border-radius: 12px !important;
            border: 3px solid #FFD700 !important;
            cursor: pointer !important;
            transition: all 0.3s !important;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4) !important;
            min-width: 180px !important;
            display: inline-block !important;
            text-align: center !important;
            text-decoration: none !important;
        }
        
        .mora-poster-generate-btn:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6) !important;
        }
        
        /* 平闆關閉按鈕樣式 */
        .mora-poster-close-btn {
            background: linear-gradient(145deg, #e63946, #d62828) !important;
            color: white !important;
            font-weight: bold !important;
            font-size: 1.1rem !important;
            padding: 14px 20px !important;
            border-radius: 12px !important;
            border: 3px solid #e63946 !important;
            cursor: pointer !important;
            transition: all 0.3s !important;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
            box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4) !important;
            min-width: 140px !important;
            display: inline-block !important;
            text-align: center !important;
            text-decoration: none !important;
        }
        
        .mora-poster-close-btn:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 15px rgba(230, 57, 70, 0.6) !important;
        }
    }
    
    /* 平板橫看樣式 */
    @media (orientation: landscape) {
        .mora-poster-button-container {
            display: flex !important;
            justify-content: center !important;
            gap: 20px !important;
        }
        
        .mora-poster-generate-btn {
            min-width: 200px !important;
            padding: 15px 25px !important;
            font-size: 1.2rem !important;
        }
        
        .mora-poster-close-btn {
            min-width: 150px !important;
            padding: 15px 25px !important;
            font-size: 1.2rem !important;
        }
    }
}

/* 下載專用海報樣式 */
.mora-download-poster {
    width: 1200px !important;
    max-width: 1200px !important;
    height: auto !important;
    padding: 60px !important;
    margin: 0 auto !important;
    background: linear-gradient(145deg, #FFF8DC, #FFEBCD) !important;
    border: 15px solid #FFD700 !important;
    border-radius: 30px !important;
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.7) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* 確保所有內容置中 */
.mora-download-poster .mora-poster-title,
.mora-download-poster .mora-poster-activity-title,
.mora-download-poster .mora-poster-result-area,
.mora-download-poster .mora-poster-section {
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 放大字體和元素 */
.mora-download-poster .mora-poster-title {
    font-size: 40px !important;
    margin-bottom: 30px !important;
}

.mora-download-poster .mora-poster-activity-title {
    font-size: 36px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
}

.mora-download-poster .mora-poster-section {
    padding: 30px !important;
    margin-bottom: 30px !important;
    border: 5px solid #FFD700 !important;
}

.mora-download-poster .mora-poster-choice-display {
    width: 200px !important;
    height: 200px !important;
    font-size: 100px !important;
}

.mora-download-poster .mora-poster-vs {
    font-size: 36px !important;
}

/* 手機下載圖檔（保持置中但尺寸較小） */
@media (max-width: 768px) {
    .mora-download-poster {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 30px !important;
        border: 10px solid #FFD700 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 auto !important;
    }
    
    .mora-download-poster .mora-poster-title {
        font-size: 28px !important;
    }
    
    .mora-download-poster .mora-poster-activity-title {
        font-size: 24px !important;
        padding: 20px !important;
    }
    
    .mora-download-poster .mora-poster-choice-display {
        width: 120px !important;
        height: 120px !important;
        font-size: 60px !important;
    }
}