/* ==========================================================================
   プレミアム表彰式スライドシステム - デザインシステム
   ========================================================================== */

/* 変数定義 - ゴールド＆ロイヤルダーク */
:root {
    --bg-color: #0b0c10;
    --bg-gradient: radial-gradient(circle at center, #1b1525 0%, #07080c 100%);
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --gold-gradient: linear-gradient(135deg, #ffe082 0%, #d4af37 50%, #a37510 100%);
    
    --text-main: #f5f5f7;
    --text-muted: #a0a0ab;
    --text-gold: #e5c158;
    
    --font-serif: "Noto Serif JP", "Playfair Display", Georgia, serif;
    --font-sans: "Outfit", "Montserrat", "Helvetica Neue", Arial, sans-serif;
    
    --modal-bg: rgba(15, 16, 25, 0.85);
    --modal-border: rgba(212, 175, 55, 0.25);
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 共通初期化 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    user-select: none;
    -webkit-user-select: none;
}

/* ==========================================================================
   Canvas レイヤー (背景・エフェクト)
   ========================================================================== */
#particle-canvas, #confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#confetti-canvas {
    z-index: 5; /* スライドコンテンツの上に紙吹雪を舞わせる */
}

/* ==========================================================================
   メインスライドコンテナ
   ========================================================================== */
.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* スライド基本設定 */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
                visibility 1s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* --------------------------------------------------------------------------
   [スライド0] イントロ / 表紙スライド
   -------------------------------------------------------------------------- */
.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 85%;
    text-align: center;
}

.intro-img-container {
    perspective: 1000px;
    transition: var(--transition-smooth);
    animation: introFloat 6s ease-in-out infinite alternate;
}

#intro-image {
    display: block;
    width: 60vw;         /* 明示的に横幅を指定し、SVGが0pxに縮むバグを防ぎます */
    max-width: 800px;    /* 巨大になりすぎない最大幅 */
    max-height: 60vh;
    object-fit: contain;
}

.intro-fallback-text {
    padding: 80px 120px;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    background: radial-gradient(circle, rgba(27, 21, 37, 0.95) 0%, rgba(7, 8, 12, 0.98) 100%);
}

.fallback-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    letter-spacing: 0.3em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.fallback-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 0.5em;
    text-indent: 0.5em;
}

.intro-hint {
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    opacity: 0.8;
    animation: pulse 2.5s infinite;
}

/* --------------------------------------------------------------------------
   [スライド1] 表彰メインスライド & 金色の枠線
   -------------------------------------------------------------------------- */
.slide-inner {
    position: relative;
    width: 85vw;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    z-index: 3;
}

/* 高級クラシック枠線 */
.award-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--gold-primary);
    transition: var(--transition-smooth);
}

.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

/* 枠線の細かいオーナメント効果 */
.corner::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold-primary);
    border-radius: 50%;
}
.corner-tl::after { right: -6px; bottom: -6px; }
.corner-tr::after { left: -6px; bottom: -6px; }
.corner-bl::after { right: -6px; top: -6px; }
.corner-br::after { left: -6px; top: -6px; }

.side-border {
    position: absolute;
    width: 1px;
    height: calc(100% - 100px);
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.4), transparent);
}
.left-border { left: 15px; top: 50px; }
.right-border { right: 15px; top: 50px; }

/* ヘッダー演出：賞の名前 */
.award-header {
    text-align: center;
    margin-bottom: 30px;
}

.award-badge {
    font-size: 0.95rem;
    letter-spacing: 0.5em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 25px;
    display: inline-block;
    padding: 6px 20px;
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.award-title {
    font-family: var(--font-serif);
    font-size: 4.8rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.6));
    animation: textGlow 4s ease-in-out infinite alternate;
}

/* 受賞者名表示エリア（タメからドカンへの制御） */
.winner-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 20px;
    perspective: 1000px;
}

/* 初期状態：隠し */
.winner-body.hide {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* 受賞者決定演出（Spaceキー押下後） */
.winner-body.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.winner-name-wrap {
    display: inline-block;
    position: relative;
    padding: 10px;
    margin-bottom: 20px;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.08) 0%, transparent 80%);
    width: 100%;
    max-width: 850px;
}

/* 3D Slot Viewport */
.slot-viewport {
    position: relative;
    height: 150px; /* height of one item */
    overflow: hidden;
    width: 780px;  /* wide enough for long Japanese names */
    max-width: 90vw;
    margin: 0 auto;
    border-radius: 12px;
    background: rgba(5, 5, 8, 0.65);
    border: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.95),
                0 0 35px rgba(212, 175, 55, 0.2);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

/* 3D cylinder shadow/fading overlays at top and bottom */
.slot-viewport::before,
.slot-viewport::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 45px;
    z-index: 2;
    pointer-events: none;
}

.slot-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.5) 45%, transparent 100%);
}

.slot-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.5) 45%, transparent 100%);
}

/* Gold pointer lines / indicators */
.slot-indicator-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    pointer-events: none;
    z-index: 3;
    box-sizing: border-box;
}

.slot-indicator-line::before,
.slot-indicator-line::after {
    content: '▶';
    position: absolute;
    top: 50%;
    color: var(--gold-primary);
    font-size: 1.2rem;
    transform: translateY(-50%);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.85);
    opacity: 0.8;
}

.slot-indicator-line::before {
    left: 15px;
    animation: indicatorPulseLeft 1.5s infinite ease-in-out alternate;
}

.slot-indicator-line::after {
    right: 15px;
    content: '◀';
    animation: indicatorPulseRight 1.5s infinite ease-in-out alternate;
}

@keyframes indicatorPulseLeft {
    0% { transform: translateY(-50%) translateX(0); opacity: 0.5; }
    100% { transform: translateY(-50%) translateX(5px); opacity: 1; }
}

@keyframes indicatorPulseRight {
    0% { transform: translateY(-50%) translateX(0); opacity: 0.5; }
    100% { transform: translateY(-50%) translateX(-5px); opacity: 1; }
}

/* Slot Reel */
.slot-reel {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transform: translateY(0);
    will-change: transform;
}

/* Slot Item */
.slot-item {
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-main);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15),
                 0 0 35px rgba(212, 175, 55, 0.25);
    white-space: nowrap;
    box-sizing: border-box;
    padding: 0 50px;
    text-align: center;
}

/* Blur effect on items during spin */
.slot-item.blur {
    filter: blur(3px) scaleY(0.92);
    opacity: 0.65;
}

/* Winner highlight when stopped */
.slot-item.winner-highlight {
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.95),
                 0 0 50px rgba(212, 175, 55, 1),
                 0 0 80px rgba(212, 175, 55, 0.6);
    animation: winnerBounceHighlight 1.5s infinite ease-in-out alternate;
}

@keyframes winnerBounceHighlight {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

.winner-desc {
    display: none !important;
}

/* --------------------------------------------------------------------------
   [スライド2] エンディングスライド
   -------------------------------------------------------------------------- */
.ending-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.ending-gold-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top: 2px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 30s linear infinite;
    z-index: -1;
}

.ending-title {
    font-family: var(--font-serif);
    font-size: 5.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    animation: textGlow 5s ease-in-out infinite alternate;
}

.ending-subtitle {
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    color: var(--text-main);
    margin-bottom: 50px;
}

.ending-hint {
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    opacity: 0.7;
}

/* ==========================================================================
   画面コントロール ＆ ヘルパー (HUD)
   ========================================================================== */
.screen-controls {
    position: absolute;
    bottom: 25px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.screen-controls:hover {
    opacity: 1;
}

.ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 16, 25, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.ctrl-btn:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.slide-progress {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0 10px;
}

.bottom-helper {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    z-index: 9;
    pointer-events: none;
}

/* ==========================================================================
   設定モーダル (多機能設定画面)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 6, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--modal-border);
    border-radius: 12px;
    width: 80vw;
    max-width: 1100px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9),
                0 0 50px rgba(212, 175, 55, 0.05);
    overflow: hidden;
    transform: scale(0.96) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
}

/* モーダルヘッダー */
.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-gold);
    letter-spacing: 0.05em;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.close-btn:hover {
    color: #ff5555;
    transform: rotate(90deg);
}

/* モーダルタブナビゲーション */
.modal-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

/* モーダルボディ */
.modal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.tab-content {
    display: none;
    height: 100%;
}

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

.tab-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* タブ1: 受賞者リストデータテーブル */
.data-table-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    max-height: 40vh;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    background: rgba(15, 16, 25, 0.9);
    font-weight: 700;
    color: var(--text-gold);
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tbody tr {
    transition: background 0.15s ease;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.data-table input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 8px 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.data-table input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.row-index {
    color: var(--text-muted);
    font-weight: bold;
    text-align: center;
}

/* タブ2: 一括インポートエリア */
#import-textarea {
    width: 100%;
    flex: 1;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 20px;
    color: var(--text-main);
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: none;
    margin-bottom: 20px;
}

#import-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* タブ3: 環境設定 */
.config-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.config-group label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.config-group input[type="text"] {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    width: 100%;
}

.config-group input[type="text"]:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.config-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
}

.config-group select {
    background: rgba(15, 16, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ボタンとアクション */
.action-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn.primary {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--gold-primary);
}

.action-btn.primary:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.action-btn.success {
    background: #1b4d3e;
    color: #cbf3e0;
    border-color: #2e7d63;
}

.action-btn.success:hover {
    background: #2e7d63;
    box-shadow: 0 4px 15px rgba(46, 125, 99, 0.3);
}

.action-btn.danger {
    background: rgba(255, 85, 85, 0.12);
    border-color: rgba(255, 85, 85, 0.3);
    color: #ff7777;
}

.action-btn.danger:hover {
    background: #ff5555;
    color: #fff;
    border-color: #ff5555;
    box-shadow: 0 4px 15px rgba(255, 85, 85, 0.3);
}

.action-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.delete-btn {
    background: transparent;
    border: none;
    color: #ff5555;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.delete-btn:hover {
    background: rgba(255, 85, 85, 0.15);
}

/* モーダルフッター */
.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-status-msg {
    font-size: 0.9rem;
    color: #55ff99;
    opacity: 0.9;
}

.footer-buttons {
    display: flex;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   音響初期化用オーバーレイ
   -------------------------------------------------------------------------- */
.audio-init-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 4, 6, 0.96);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-init-box {
    background: radial-gradient(ellipse at center, #181926 0%, #0c0d15 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(212,175,55,0.1);
    border-radius: 12px;
    padding: 40px 50px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    animation: introFloat 8s ease-in-out infinite alternate;
}

.audio-init-box h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-gold);
    margin-bottom: 20px;
}

.audio-init-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.audio-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.audio-btn {
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.audio-btn.yes {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.audio-btn.yes:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.45);
}

.audio-btn.no {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.audio-btn.no:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ==========================================================================
   アニメーション用キーフレーム
   ========================================================================== */

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.95; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes introFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 2px 5px rgba(212,175,55,0.2)) drop-shadow(0 0 5px rgba(212,175,55,0.1));
    }
    100% {
        filter: drop-shadow(0 2px 20px rgba(212,175,55,0.5)) drop-shadow(0 0 25px rgba(255,223,128,0.3));
    }
}

/* 受賞者名3Dフリップ＆ズームイン */
@keyframes zoomFlipIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateX(-90deg);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: blur(0);
    }
}

/* 受賞者説明文フェードインアップ */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
