/* 特色功能頁「抽獎遊戲」「互動遊戲」分頁（#lottery-games、#interactive-games）。
   版型沿用 .aicam-section／.aicam-tagline／.aicam-lead／.aicam-cta（ai-camera.css）；這裡補分頁圖示配色、影片卡、
   重點清單（.games-points／.games-note）與輪播（.gcar）。影片彈窗樣式在 shared/video-modal.css。 */

.lottery-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.igame-icon { background: linear-gradient(135deg, #6366f1, #06b6d4); }

.games-video {
    display: block;
    max-width: calc(720px * var(--scale));
    margin: 0 auto calc(48px * var(--scale));
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #0f1420, #16324a);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.games-video:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }
.games-video:focus-visible { outline: 3px solid #1fc8ab; outline-offset: 3px; }
.games-video-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: #0f1420; }
.games-video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.games-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(72px * var(--scale));
    height: calc(72px * var(--scale));
    margin: calc(-36px * var(--scale)) 0 0 calc(-36px * var(--scale));
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    padding-left: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.games-video:hover .games-video-play { background: #1fc8ab; transform: scale(1.08); }
.games-video-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 14px 20px; text-align: left; }
.games-video-title { font-size: var(--font-lg); font-weight: 700; line-height: 1.5; }
.games-video-hint { font-size: 14px; opacity: 0.75; }

.games-points {
    list-style: none;
    padding: 0;
    margin: 0 auto calc(48px * var(--scale));
    max-width: calc(960px * var(--scale));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}
.games-points li {
    background: #f6f8fb;
    border-radius: 12px;
    padding: 18px 20px;
    line-height: 1.7;
}
.games-points b { display: block; font-size: 17px; margin-bottom: 2px; }
@media (max-width: 700px) { .games-points { grid-template-columns: 1fr; } }

/* 左右滑動輪播（比照 EyEBooM 展示的 coverflow）：中間那張最大、兩側依序縮小變淡並疊在後面。
   每張是一款遊戲的動態 WebP（取自展示影片），直式畫面；位置由 games-showcase.js 以 transform 排。 */
.gcar { --cw: clamp(170px, 23vw, calc(280px * var(--scale))); position: relative; max-width: 1100px; margin: 0 auto calc(24px * var(--scale)); }
.gcar-stage {
    position: relative;
    height: calc(var(--cw) * 1.85 + 24px);
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.gcar-stage.is-dragging { cursor: grabbing; }
.gcar-stage:focus-visible { outline: 3px solid #1fc8ab; outline-offset: -3px; border-radius: 12px; }
.gcar-card {
    position: absolute;
    top: 12px;
    left: 50%;
    width: var(--cw);
    margin: 0 0 0 calc(var(--cw) / -2);
    border-radius: 22px;
    overflow: hidden;
    background: #0f1420;
    color: #fff;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
    will-change: transform;
}
.gcar-card.is-active { box-shadow: 0 0 0 3px #5fd6c0, 0 16px 40px rgba(0, 0, 0, 0.3); }
.gcar-card.is-hidden { pointer-events: none; }
.gcar-card:not(.is-active) { cursor: pointer; filter: saturate(0.8) brightness(0.85); }
.gcar-card img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.gcar-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 36px 16px 14px;
    line-height: 1.4;
    background: linear-gradient(to top, rgba(10, 14, 24, 0.92), rgba(10, 14, 24, 0));
}
.gcar-no { font-size: 12px; color: #5fd6c0; font-weight: 700; }
.gcar-card b { font-size: 16px; }
.gcar-desc { display: none; font-size: 12px; opacity: 0.8; }
.gcar-card.is-active .gcar-desc { display: block; }
.gcar-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.gcar-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #d5d9e0;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.gcar-btn:hover { border-color: #1fc8ab; color: #1fc8ab; }
.gcar-btn:focus-visible { outline: 3px solid #1fc8ab; outline-offset: 2px; }
.gcar-dots { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 360px; }
.gcar-dots i { width: 8px; height: 8px; border-radius: 4px; background: #c5cad6; cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.gcar-dots i.active { width: 22px; background: linear-gradient(90deg, #1fc8ab, #5e8dfe); }
.games-note { color: #63657e; margin: 0 auto calc(32px * var(--scale)); }
@media (max-width: 600px) { .gcar-btn { width: 38px; height: 38px; font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .gcar-card { transition: none; } }
