/* フィーチャーCSS - features.jsのインラインスタイルから抽出 */

/* =========================
   炎とキャンドルエフェクト
   ========================= */

/* 炎の消火アニメーション */
.flame-extinguish {
    opacity: 0 !important;
    transform: translateX(-50%) scale(0.1) !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

/* 吹き消しボタン非表示アニメーション */
.blow-button-hide {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(20px);
}

.blow-button-hidden {
    display: none;
}

/* オーディオフィードバックスタイル */
.audio-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(133, 77, 39, 0.9);
    color: #FFF9F3;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    z-index: 10001;
    border: 2px solid #D4B08C;
}

/* プログレスコンテナ */
.progress-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(133, 77, 39, 0.9);
    padding: 15px;
    border-radius: 10px;
    color: #FFF9F3;
    z-index: 10001;
    border: 2px solid #D4B08C;
}

/* 誕生日メッセージスタイル */
.birthday-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #FFF9F3, #F5E6D3);
    color: #854D27;
    padding: 30px;
    border-radius: 15px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    z-index: 10002;
    border: 3px solid #D4B08C;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ケーキ2Dアニメーションエフェクト */
.cake-2d-celebrate {
    animation: celebrate 2s ease-in-out;
}

@keyframes celebrate {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-2deg); }
    50% { transform: scale(1.05) rotate(2deg); }
    75% { transform: scale(1.1) rotate(-1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* =========================
   煙エフェクト
   ========================= */

.smoke-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(200, 200, 200, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
}

/* 煙アニメーションキーフレーム */
@keyframes smokeRise {
    0% {
        opacity: 0.7;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.4;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(1.5);
    }
}

.smoke-particle {
    animation: smokeRise 2s ease-out forwards;
}

/* =========================
   紙吹雪エフェクト
   ========================= */

.confetti-particle {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 9999;
}

/* 紙吹雪落下アニメーション */
@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti-particle {
    animation: confettiFall 3s linear forwards;
}

/* =========================
   モーダルベーススタイル
   ========================= */

.features-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.features-modal.hidden {
    display: none;
}

.features-modal-container {
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    padding: 20px;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.features-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #854D27;
    line-height: 1;
    user-select: none;
}

.features-modal-close:hover {
    color: #5a2f1a;
}

.features-modal-title {
    color: #854D27;
    margin-bottom: 20px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.8em;
}

/* =========================
   クイズモーダルスタイル
   ========================= */

.quiz-modal-container {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.quiz-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
    width: 90%;
}

.quiz-no-data {
    color: #854D27;
    font-style: italic;
}

.quiz-question {
    color: #854D27;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.quiz-result {
    color: #854D27;
    font-size: 1.2em;
    font-weight: bold;
}

.quiz-option-btn {
    padding: 10px 15px;
    margin: 5px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    box-shadow: 2px 2px 0 #D4B08C;
}

.quiz-option-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 #D4B08C;
}

.quiz-restart-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-restart-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

/* =========================
   カレンダーモーダルスタイル
   ========================= */

.calendar-modal-container {
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.calendar-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px auto;
    width: 90%;
}

.calendar-no-data {
    color: #854D27;
    font-style: italic;
}

.calendar-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
}

.calendar-list-item {
    padding: 10px;
    border-bottom: 1px solid #D4B08C;
    color: #2C1810;
}

/* =========================
   メモリーゲームスタイル
   ========================= */

.memory-game-container {
    width: 80%;
    max-width: 600px;
}

.memory-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px auto;
    width: 80%;
}

.memory-card {
    width: 80px;
    height: 80px;
    background: #854D27;
    border: 2px solid #D4B08C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0;
    transition: all 0.3s;
    box-shadow: 2px 2px 0 #D4B08C;
}

.memory-card.flipped {
    background: #FFF9F3;
    font-size: 40px;
}

.memory-card.matched {
    background: #FFF9F3;
    font-size: 40px;
    opacity: 0.7;
}

.memory-restart-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.memory-restart-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

/* =========================
   パズルゲームスタイル
   ========================= */

.puzzle-game-container {
    width: 90%;
    max-width: 800px;
}

.puzzle-area {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin: 20px auto;
    width: 600px;
    height: 300px;
    border: 2px solid #D4B08C;
    background: #EEE;
}

.puzzle-pieces-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    width: 600px;
    min-height: 100px;
    border: 2px solid #D4B08C;
    padding: 10px;
    background: #FFF9F3;
}

.puzzle-image-info {
    margin-top: 10px;
    font-size: 14px;
    color: #854D27;
    font-style: italic;
}

.puzzle-restart-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puzzle-restart-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

/* =========================
   パズルゲームモーダルスタイル
   ========================= */

#puzzleGameModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#puzzleGameModal.show {
    display: flex !important;
}

.puzzle-container {
    background: #FFF9F3;
    border: 3px solid #D4B08C;
    padding: 15px;
    border-radius: 0;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.puzzle-title {
    font-size: 1.5em;
    color: #854D27;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puzzle-area {
    display: grid;
    gap: 2px;
    margin: 10px auto;
    border: 2px solid #D4B08C;
    background: #FFF9F3;
    width: fit-content;
}

.puzzle-pieces-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px auto;
    padding: 10px;
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    min-height: 80px;
    width: fit-content;
}

.puzzle-slot {
    border: 1px dashed #D4B08C;
    background: rgba(213, 176, 140, 0.1);
    transition: all 0.3s ease;
}

.puzzle-slot.drag-over {
    background: rgba(213, 176, 140, 0.3);
    border-style: solid;
}

.puzzle-piece {
    cursor: grab;
    border: 2px solid #D4B08C;
    box-shadow: 2px 2px 0 #D4B08C;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
}

.puzzle-piece:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 0 #D4B08C;
}

.puzzle-piece.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.puzzle-image-info {
    margin-top: 10px;
    font-size: 14px;
    color: #854D27;
    font-style: italic;
    text-align: center;
}

.puzzle-restart-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px auto;
    display: block;
}

.puzzle-restart-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

/* =========================
   Eカードモーダルスタイル
   ========================= */

#eCardModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#eCardModal.show {
    display: flex !important;
}

.ecard-container {
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.ecard-title {
    color: #854D27;
    margin-bottom: 20px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.8em;
    font-weight: bold;
}

.ecard-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.ecard-message-input {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 2px solid #D4B08C;
    border-radius: 0;
    margin-bottom: 20px;
    font-family: 'Old Standard TT', serif;
    font-size: 16px;
    background: #FFF9F3;
    color: #2C1810;
    resize: none;
    transition: border-color 0.3s ease;
}

.ecard-message-input:focus {
    outline: none;
    border-color: #854D27;
}

.ecard-color-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.ecard-color-option {
    width: 40px;
    height: 40px;
    border: 2px solid #D4B08C;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecard-color-option:hover {
    transform: scale(1.1);
    border-color: #854D27;
}

.ecard-color-option.selected {
    border-color: #854D27;
    border-width: 3px;
    transform: scale(1.1);
}

.ecard-preview {
    width: 100%;
    height: 200px;
    border: 2px solid #D4B08C;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Old Standard TT', serif;
    font-size: 18px;
    color: #854D27;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

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

.ecard-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ecard-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

.ecard-btn.secondary {
    background: #FFF9F3;
    color: #854D27;
}

.ecard-share-section {
    margin-top: 20px;
    text-align: center;
}

.ecard-share-text {
    margin-bottom: 10px;
    color: #854D27;
    font-size: 1em;
}

.ecard-link-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #D4B08C;
    background: #FFF9F3;
    color: #2C1810;
    font-family: 'Old Standard TT', serif;
    font-size: 14px;
}

/* =========================
音楽プレーヤースタイル
========================= */

.music-select-btn {
margin-left: 10px;
padding: 8px 12px;
background: #854D27;
color: #FFF9F3;
border: 2px solid #D4B08C;
border-radius: 0;
cursor: pointer;
box-shadow: 2px 2px 0 #D4B08C;
transition: all 0.3s ease;
font-size: 1em;
}

.music-select-btn:hover {
transform: translate(-2px, -2px);
box-shadow: 4px 4px 0 #D4B08C;
}

#musicSelectionModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 10000;
}

#musicSelectionModal.show {
display: flex !important;
}

.music-modal-content {
background: #FFF9F3;
border: 2px solid #D4B08C;
border-radius: 0;
padding: 20px;
width: 80%;
max-width: 500px;
box-shadow: 8px 8px 0 #D4B08C;
position: relative;
text-align: center;
}

.music-modal-title {
color: #854D27;
margin-bottom: 20px;
font-family: 'DM Serif Display', serif;
font-size: 1.8em;
font-weight: bold;
}

.music-track-list {
margin-bottom: 20px;
text-align: left;
max-height: 200px;
overflow-y: scroll;
}

.music-track-item {
padding: 10px;
border-bottom: 1px solid #D4B08C;
cursor: pointer;
color: #2C1810;
transition: background-color 0.3s ease;
}

.music-track-item:hover {
background-color: rgba(213, 176, 140, 0.2);
}

.music-upload-input {
width: 100%;
padding: 10px 0;
margin-top: 10px;
border: 2px dashed #D4B08C;
background: #FFF9F3;
color: #2C1810;
cursor: pointer;
border-radius: 0;
}

.music-upload-label {
display: block;
margin-top: 15px;
color: #854D27;
font-size: 1em;
}

/* ======================
/* === カスタムメッセージモーダル === */
.custom-message-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #D4B08C;
    border-radius: 0;
    margin-bottom: 10px;
    font-family: 'Old Standard TT', serif;
    font-size: 16px;
    background: #FFF9F3;
    color: #2C1810;
}

.custom-message-input:focus {
    outline: none;
    border-color: #854D27;
}

.record-message-btn,
.video-message-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    display: block;
    width: 100%;
}

.record-message-btn:hover,
.video-message-btn:hover {
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0 #D4B08C;
}

/* === メッセージ録音モーダル === */
#recordMessageModal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
align-items: center;
z-index: 10000;
}

#recordMessageModal.show {
display: flex !important;
}

.record-modal-content {
background: #FFF9F3;
border: 2px solid #D4B08C;
border-radius: 0;
padding: 20px;
width: 90%;
max-width: 500px;
box-shadow: 8px 8px 0 #D4B08C;
position: relative;
text-align: center;
}

.record-modal-title {
color: #854D27;
margin-bottom: 20px;
font-family: 'DM Serif Display', serif;
font-size: 1.8em;
font-weight: bold;
}

.record-controls {
margin: 20px 0;
display: flex;
gap: 10px;
justify-content: center;
flex-wrap: wrap;
}

.record-btn {
padding: 10px 20px;
background: #854D27;
color: #FFF9F3;
border: 2px solid #D4B08C;
border-radius: 0;
cursor: pointer;
font-size: 1em;
transition: all 0.3s;
box-shadow: 4px 4px 0 #D4B08C;
text-transform: uppercase;
letter-spacing: 1px;
}

.record-btn:hover {
transform: translate(-2px, -2px);
box-shadow: 6px 6px 0 #D4B08C;
}

.record-btn.recording {
background: #dc3545;
animation: pulse 1s infinite;
}

@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}

.record-status {
margin: 15px 0;
padding: 10px;
background: rgba(213, 176, 140, 0.2);
border: 1px solid #D4B08C;
color: #854D27;
font-weight: bold;
    background: rgba(213, 176, 140, 0.2);
    border: 1px solid #D4B08C;
    color: #854D27;
    font-weight: bold;
}

.audio-preview {
    width: 100%;
    margin: 15px 0;
}

/* === ユーティリティクラス === */

.hidden {
display: none !important;
}

.fade-in {
animation: fadeIn 0.5s ease-in;
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .features-modal-container {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }
    
    .puzzle-area,
    .puzzle-pieces-container {
        width: 100%;
        max-width: 400px;
    }
    
    .puzzle-area {
        height: 200px;
    }
    
    .memory-card {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .memory-card.flipped,
    .memory-card.matched {
        font-size: 30px;
    }
}

/* === オーディオメッセージモーダル === */
.audio-messages-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.audio-messages-modal.show {
    display: flex !important;
}

.audio-modal-content {
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.audio-modal-title {
    color: #854D27;
    margin-bottom: 20px;
    font-family: 'DM Serif Display', serif;
}

.audio-messages-list {
    margin-bottom: 20px;
    text-align: left;
    max-height: 300px;
    overflow-y: scroll;
}

.audio-message-item {
    padding: 10px;
    border-bottom: 1px solid #D4B08C;
    cursor: pointer;
    color: #2C1810;
}

.audio-message-item:hover {
    background-color: rgba(213, 176, 140, 0.2);
}

.audio-section-title {
    color: #854D27;
    margin-bottom: 10px;
    border-bottom: 1px solid #D4B08C;
}

.audio-section-title.local-section {
    margin-top: 20px;
}

.audio-loading-msg {
    color: #2C1810;
}

.audio-no-messages {
    color: #2C1810;
    text-align: center;
    font-style: italic;
}

/* === バーチャルギフトコンポーネント === */
.gift-item {
    padding: 10px;
    margin: 5px;
    border: 2px solid #D4B08C;
    background: rgba(255, 249, 243, 0.5);
    cursor: pointer;
    text-align: center;
    display: inline-block;
    width: calc(33.33% - 10px);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.gift-item:hover {
    background: rgba(213, 176, 140, 0.3);
    transform: translateY(-2px);
}

.gift-item.selected {
    background: rgba(133, 77, 39, 0.3);
    border-color: #854D27;
}

.gift-emoji {
    font-size: 2em;
    display: block;
    margin-bottom: 5px;
}

.gift-name {
    margin: 5px 0 0 0;
    font-size: 0.9em;
    color: #854D27;
}

/* バーチャルギフトモーダル */
.virtual-gifts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.virtual-gifts-modal.show {
    display: flex !important;
}

.virtual-gifts-modal-content {
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.virtual-gifts-modal-title {
    color: #854D27;
    margin-bottom: 20px;
    font-family: 'DM Serif Display', serif;
}

.virtual-gifts-list {
    margin-bottom: 20px;
    text-align: left;
    max-height: 300px;
    overflow-y: scroll;
}

.virtual-gift-display-item {
    padding: 10px;
    border-bottom: 1px solid #D4B08C;
    color: #2C1810;
}

.gift-display-emoji {
    font-size: 1.5em;
    margin-right: 8px;
}

.gift-display-text {
    color: #2C1810;
    margin-right: 8px;
}

.gift-display-time {
    color: #666;
    font-style: italic;
}

.virtual-gifts-no-items {
    color: #2C1810;
    text-align: center;
    font-style: italic;
    padding: 20px;
}

/* === 音楽選択モーダル === */
.music-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.music-selection-modal.show {
    display: flex !important;
}

.music-modal-content {
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.music-modal-title {
    color: #854D27;
    margin-bottom: 20px;
    font-family: 'DM Serif Display', serif;
}

.music-track-list {
    margin-bottom: 20px;
    text-align: left;
    max-height: 200px;
    overflow-y: scroll;
}

.music-track-item {
    padding: 10px;
    border-bottom: 1px solid #D4B08C;
    cursor: pointer;
    color: #2C1810;
    transition: background-color 0.3s;
}

.music-track-item:hover {
    background-color: rgba(213, 176, 140, 0.2);
}

.music-upload-input {
    width: 100%;
    padding: 10px 0;
    margin-top: 10px;
    border: 2px dashed #D4B08C;
    background: #FFF9F3;
    color: #2C1810;
    cursor: pointer;
}

.music-upload-label {
    display: block;
    margin-top: 15px;
    color: #854D27;
    font-size: 1em;
}

/* 音楽選択ボタン */
.music-select-btn {
    margin-left: 10px;
    padding: 8px 12px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 2px 2px 0 #D4B08C;
    transition: all 0.3s;
}

.music-select-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 #D4B08C;
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

.animate-in {
    animation: slideIn 0.3s ease-out;
    opacity: 1;
    width: 100%;
}

@keyframes slideIn {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 100%;
    }
}

/* カスタムメッセージ表示アニメーション */
#customMessageDisplay {
    transition: all 0.3s ease;
    opacity: 0;
    width: 0;
}

#customMessageDisplay.show {
    display: block;
    opacity: 1;
    width: 100%;
}

/* 録音ボタンホバーエフェクト */
.record-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

/* === 招待モーダル === */
.invite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.invite-modal.show {
    display: flex !important;
}

.invite-modal-content {
    background: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    box-shadow: 8px 8px 0 #D4B08C;
    position: relative;
    text-align: center;
}

.invite-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
    color: #854D27;
    line-height: 1;
}

.invite-modal-title {
    color: #854D27;
    margin-bottom: 20px;
    font-family: 'DM Serif Display', serif;
}

.invite-link-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #D4B08C;
    border-radius: 0;
    margin-bottom: 10px;
    font-family: 'Old Standard TT', serif;
    font-size: 14px;
    background: #FFF9F3;
    color: #2C1810;
}

.invite-copy-btn {
    padding: 8px 15px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 #D4B08C;
    margin-bottom: 20px;
}

.invite-copy-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 #D4B08C;
}

.invite-message-textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    border: 2px solid #D4B08C;
    border-radius: 0;
    margin-bottom: 10px;
    font-family: 'Old Standard TT', serif;
    font-size: 16px;
    background: #FFF9F3;
    color: #2C1810;
    resize: vertical;
}

.invite-email-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #D4B08C;
    border-radius: 0;
    margin-bottom: 20px;
    font-family: 'Old Standard TT', serif;
    font-size: 16px;
    background: #FFF9F3;
    color: #2C1810;
}

.invite-send-btn {
    padding: 10px 20px;
    background: #854D27;
    color: #FFF9F3;
    border: 2px solid #D4B08C;
    border-radius: 0;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    box-shadow: 4px 4px 0 #D4B08C;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.invite-send-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #D4B08C;
}

.invite-stats {
    margin-top: 20px;
    color: #854D27;
    font-size: 1.1em;
}

/* === オーディオメッセージプレーヤー === */
.audio-message-player {
    width: 100%;
    margin-top: 10px;
}