/* style.css - ふわもち！スクイーズランド スタイルシート */
:root {
    --bg-pink: #fff0f5;
    --main-pink: #ff85a2;
    --deep-pink: #ff477e;
    --soft-yellow: #fff3b0;
    --mint-green: #a7f3d0;
    --soda-blue: #70d6ff;
    --lavender: #d8b4e2;
    --white: #ffffff;
    --text-dark: #4a3e3d;
    --text-brown: #6b4e3d;
    --border-color: #ffd1dc;
    --card-shadow: 0 8px 24px rgba(255, 133, 162, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Hiragino Maru Gothic ProN', 'M PLUS Rounded 1c', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #e8f4fd 50%, #fff9e6 100%);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    touch-action: manipulation;
}

#game-app {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 32px;
    border: 5px solid #fff;
    box-shadow: 0 12px 36px rgba(255, 105, 180, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ヘッダー */
header {
    background: linear-gradient(90deg, #ff9ebb, #ffaac9);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 114, 154, 0.25);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-area h1 {
    font-size: 1.1rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.header-tools {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* メインタブナビゲーション */
nav.tab-nav {
    display: flex;
    background: #fff5f8;
    padding: 8px 10px;
    gap: 6px;
    border-bottom: 2px dashed #ffccd9;
}

.tab-btn {
    flex: 1;
    background: white;
    border: 2px solid #ffd5e2;
    padding: 8px 4px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #ff6088;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tab-btn .tab-icon {
    font-size: 1.2rem;
}

.tab-btn.active {
    background: linear-gradient(180deg, #ff85a2, #ff6088);
    color: white;
    border-color: #ff477e;
    box-shadow: 0 4px 10px rgba(255, 96, 136, 0.35);
    transform: translateY(-2px);
}

main {
    flex: 1;
    min-height: 500px;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.game-screen {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: fadeIn 0.25s ease-out;
}

.game-screen.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 共通ステータスバー */
.status-bar-container {
    background: #fff9fc;
    border-radius: 18px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: 2px solid #ffe4ed;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.meter-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meter-label {
    font-size: 0.78rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    color: #6d5047;
}

.progress-bar-bg {
    background: #e9ecef;
    height: 10px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.progress-fill.affection {
    background: linear-gradient(90deg, #ff9ebb, #ff477e);
}

.progress-fill.dirt {
    background: linear-gradient(90deg, #d4a373, #a26b42);
}

/* 主人公キャラクター＆セリフ吹き出し */
.hero-companion-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5fa;
    border: 2px solid #ffd4e5;
    border-radius: 18px;
    padding: 6px 10px;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(255, 133, 162, 0.08);
}

.hero-avatar-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #ff85a2;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(255, 105, 180, 0.25);
    transition: transform 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.hero-avatar-wrapper:hover {
    transform: scale(1.1) rotate(-4deg);
}

.hero-avatar-wrapper:active, .hero-avatar-wrapper.jump {
    animation: heroJump 0.45s ease;
}

@keyframes heroJump {
    0% { transform: scale(1); }
    40% { transform: translateY(-8px) scale(1.1); }
    70% { transform: translateY(2px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}

.hero-avatar-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: -3px;
}

.hero-dialogue-bubble {
    position: relative;
    background: #ffffff;
    border: 2px solid #ffccd9;
    border-radius: 14px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #5c3c3a;
    line-height: 1.35;
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.hero-dialogue-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 7px 5px 0;
    border-style: solid;
    border-color: transparent #ffccd9 transparent transparent;
}

.hero-dialogue-bubble::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 4px 5px 4px 0;
    border-style: solid;
    border-color: transparent #ffffff transparent transparent;
}

/* ════════════════════════════════════════════════════
   ❶ 本物のお部屋風景イラスト＆ポイント＆クリック探索
   ════════════════════════════════════════════════════ */
.explore-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8eb;
    border: 2px solid #ffe3b3;
    border-radius: 14px;
    padding: 6px 12px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: bold;
    color: #8c5d26;
}

.stamina-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stamina-points {
    color: #ff6088;
    font-size: 0.95rem;
}

.mystery-banner {
    display: none;
    background: linear-gradient(90deg, #b388ff, #ff80ab);
    color: white;
    padding: 6px 12px;
    border-radius: 14px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(179, 136, 255, 0.4);
    animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
    from { transform: scale(1); filter: drop-shadow(0 0 2px #fff); }
    to { transform: scale(1.02); filter: drop-shadow(0 0 8px #ff80ab); }
}

/* 本物のお部屋風景ステージ（イラスト全体表示） */
.room-scenery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 380px;
    border-radius: 24px;
    border: 4px solid #ffb6c1;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: #f7dfd3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 制限時間タイマー（風景上部） */
.scenery-timer-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #ff477e;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1.5px solid #ffd1dc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 25;
}

/* 部屋移動ボタン（風景上部） */
.scenery-door-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #ff85a2;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid #fff;
    padding: 5px 12px;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    z-index: 25;
    transition: transform 0.15s;
}

.scenery-door-btn:hover {
    transform: scale(1.06);
    background: #ff477e;
}

/* 家具クリッカブル・ホットスポット（画像上の透明タップ領域・テキスト指示文なし） */
.furniture-hotspot {
    position: absolute;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}

.furniture-hotspot:active {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    transform: scale(0.96);
    transition: transform 0.1s;
}

.hotspot-hint-tag {
    display: none !important;
}

/* 発見されたスクイーズ（風景の中からキラリとポップアップ！） */
.revealed-squeeze-sprite {
    position: absolute;
    font-size: 3.8rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 0 14px #fff) drop-shadow(0 0 24px #ff80ab);
    animation: popAndFloat 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) infinite alternate;
}

@keyframes popAndFloat {
    from { transform: scale(1) translateY(0); }
    to { transform: scale(1.22) translateY(-10px); }
}

/* ════════════════════════════════════════════════════
   ❷ さわる（ぷにぷに画面）
   ════════════════════════════════════════════════════ */
.canvas-wrapper {
    position: relative;
    width: 100%;
    height: 310px;
    background: radial-gradient(circle, #ffffff 40%, #fff0f5 100%);
    border-radius: 24px;
    border: 3px solid #ffccd9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
}

.canvas-wrapper:active {
    cursor: grabbing;
}

#squeeze-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.canvas-hint {
    position: absolute;
    bottom: 8px;
    font-size: 0.74rem;
    color: #ff7597;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 12px;
    border-radius: 12px;
    pointer-events: none;
    border: 1px solid #ffd6e0;
}

/* 破損時：直せない・捨てるバナー */
.repair-banner {
    display: none;
    position: absolute;
    top: 10px;
    background: #fff;
    border: 2px solid #e63946;
    box-shadow: 0 6px 16px rgba(230, 57, 70, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: bounce 0.5s infinite alternate;
}

.trash-btn {
    background: linear-gradient(180deg, #e63946, #c1121f);
    color: white;
    font-size: 0.82rem;
    font-weight: bold;
    border: none;
    padding: 6px 14px;
    border-radius: 14px;
    cursor: pointer;
}

.squeeze-switch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 16px;
    border: 2px solid #ffe3ec;
}

.switch-btn {
    background: #ffecf2;
    border: 2px solid #ffb9d1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-weight: bold;
    color: #ff477e;
    cursor: pointer;
}

.current-name-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-name {
    font-weight: bold;
    color: #5c433e;
    font-size: 0.92rem;
}

.current-type-tag {
    font-size: 0.72rem;
    font-weight: bold;
    color: #ff6088;
    background: #fff0f5;
    padding: 1px 8px;
    border-radius: 10px;
    margin-top: 2px;
}

/* レアリティバッジ */
.rarity-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: bold;
    margin-bottom: 2px;
}
.rarity-badge.N { background: #e0e0e0; color: #555; }
.rarity-badge.S { background: #bbf2f6; color: #007799; }
.rarity-badge.SR { background: #ffd1dc; color: #c9184a; }
.rarity-badge.SSR { background: #ffe066; color: #b7791f; box-shadow: 0 0 6px #ffe066; }
.rarity-badge.UR {
    background: linear-gradient(90deg, #ff758c, #ff7eb3, #7afcff);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 117, 140, 0.7);
    animation: rainbowGlow 2s infinite linear;
}
@keyframes rainbowGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ════════════════════════════════════════════════════
   ❸ あらう（明確な5ステップお風呂）
   ════════════════════════════════════════════════════ */
.bath-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.bath-steps-indicator {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #f0f9ff;
    padding: 6px 12px;
    border-radius: 16px;
    border: 2px solid #bde7ff;
    margin-bottom: 4px;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #8ac4e8;
    position: relative;
    flex: 1;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e2f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.step-node.active .step-num {
    background: #70d6ff;
    color: white;
    box-shadow: 0 2px 6px rgba(112, 214, 255, 0.6);
}

.step-node.active { color: #0077b6; }
.step-node.done .step-num { background: #a7f3d0; color: #065f46; }

/* ════════════════════════════════════════════════════
   ❸ あらう（スクイーズ選択＆本格手触りお風呂）
   ════════════════════════════════════════════════════ */
.bath-select-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bath-select-header {
    text-align: center;
    background: #eef8ff;
    border: 2px solid #bde7ff;
    border-radius: 18px;
    padding: 10px;
}

.bath-select-title {
    font-size: 1.05rem;
    color: #0077b6;
    margin-bottom: 2px;
}

.bath-select-subtitle {
    font-size: 0.75rem;
    color: #5588aa;
}

.bath-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
}

.bath-select-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    padding: 10px 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.18s, border-color 0.18s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bath-select-card:hover {
    transform: translateY(-3px);
    border-color: #70d6ff;
    box-shadow: 0 6px 16px rgba(112, 214, 255, 0.35);
}

.bath-select-card.dirty {
    border-color: #ffb703;
    background: #fffdf7;
}

.bath-card-icon {
    font-size: 3rem;
    margin-bottom: 4px;
    position: relative;
}

.bath-card-dirt-badge {
    position: absolute;
    top: -2px;
    right: -8px;
    background: #e63946;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(230, 57, 70, 0.4);
}

.bath-card-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.bath-card-meter {
    width: 100%;
    margin-bottom: 8px;
}

.bath-card-btn {
    background: linear-gradient(180deg, #70d6ff, #0096c7);
    color: white;
    font-size: 0.74rem;
    font-weight: bold;
    border: none;
    border-radius: 14px;
    padding: 6px 10px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 3px 8px rgba(0, 150, 199, 0.25);
}

/* 洗い場画面（タッチ操作） */
.bath-play-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bath-top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e8f7ff;
    border: 2px solid #bde7ff;
    border-radius: 16px;
    padding: 6px 12px;
}

.bath-back-btn {
    background: #ffffff;
    border: 1.5px solid #70d6ff;
    color: #0077b6;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
}

.bath-target-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.bath-dirt-pill {
    background: #ffecb3;
    color: #b76e00;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #ffe082;
}

.bath-dirt-pill.clean {
    background: #d8f3dc;
    color: #1b4332;
    border-color: #b7e4c7;
}

.tub-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: linear-gradient(180deg, #e8f7ff 0%, #bde7ff 100%);
    border-radius: 28px;
    border: 4px solid #70d6ff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    touch-action: none;
}

#bath-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.bath-touch-hint {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid #70d6ff;
    color: #0077b6;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 5px 14px;
    border-radius: 16px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 119, 182, 0.2);
    animation: hintPulse 1.8s infinite alternate;
    z-index: 10;
}

@keyframes hintPulse {
    from { transform: translateX(-50%) scale(1); }
    to { transform: translateX(-50%) scale(1.03); }
}

/* 道具パレット */
.bath-tool-tray {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: #f0f9ff;
    border: 2px solid #bde7ff;
    border-radius: 20px;
    padding: 6px;
}

.tool-btn {
    flex: 1;
    max-width: 75px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    border: 2px solid #cce9ff;
    border-radius: 14px;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.tool-btn:hover {
    transform: translateY(-2px);
    border-color: #70d6ff;
}

.tool-btn.active {
    background: #70d6ff;
    border-color: #0096c7;
    box-shadow: 0 0 12px rgba(112, 214, 255, 0.8);
    transform: scale(1.06);
}

.tool-btn.active .tool-label {
    color: #ffffff;
    font-weight: bold;
}

.tool-icon {
    font-size: 1.35rem;
    line-height: 1;
    margin-bottom: 2px;
}

.tool-label {
    font-size: 0.65rem;
    color: #555;
}

.bath-action-panel {
    width: 100%;
    background: #ffffff;
    border: 2px solid #c2e8ff;
    border-radius: 18px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bath-step-title {
    font-size: 0.82rem;
    font-weight: bold;
    color: #0077b6;
}

.step-meter-box {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: bold;
    color: #555;
}

.bath-next-step-btn {
    background: linear-gradient(180deg, #48cae4, #0077b6);
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    border: none;
    padding: 6px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
    cursor: pointer;
    margin-top: 4px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease;
}

.bath-next-step-btn:active {
    transform: scale(0.95);
}

/* モーダルスタイル */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(3px);
    touch-action: manipulation;
}

.modal-card {
    width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 28px;
    border: 4px solid #ffb6c1;
    padding: 16px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    animation: popModal 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    touch-action: manipulation;
}

@keyframes popModal {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-card h2 {
    font-size: 1.2rem;
    color: #ff477e;
    margin-bottom: 6px;
}

.big-squeeze-preview {
    font-size: 4rem;
    margin: 8px 0;
    display: inline-block;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-8px) scale(1.06); }
}

.primary-btn {
    background: linear-gradient(180deg, #ff85a2, #ff477e);
    color: white;
    font-size: 1.05rem;
    font-weight: bold;
    border: none;
    padding: 12px 28px;
    border-radius: 28px;
    box-shadow: 0 6px 14px rgba(255, 71, 126, 0.4);
    cursor: pointer;
    margin-top: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    display: inline-block;
}

.primary-btn:active {
    transform: scale(0.94);
    box-shadow: 0 2px 6px rgba(255, 71, 126, 0.3);
}

.modal-card .primary-btn {
    width: 90%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 1.1rem;
    margin: 12px auto 4px auto;
    letter-spacing: 0.5px;
}

/* アルバム */
.album-book {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 4px 2px;
}

.polaroid-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 8px 6px 12px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 133, 162, 0.4);
}

.polaroid-card * {
    pointer-events: none; /* 子要素（アイコン・文字）がタップを邪魔せずカード全体が確実に反応！ */
}

.polaroid-card:hover {
    transform: translateY(-3px) rotate(1deg);
    box-shadow: 0 8px 18px rgba(255, 133, 162, 0.25);
}

.polaroid-card:active {
    transform: scale(0.95) !important;
    background: #fff0f5 !important;
    box-shadow: 0 2px 6px rgba(255, 133, 162, 0.3) !important;
}

.polaroid-card.locked {
    opacity: 0.55;
    filter: grayscale(0.85);
    background: #f0f0f0;
}

.polaroid-card.mystery-card {
    border: 2px solid #b5179e;
    background: linear-gradient(135deg, #fff0f5 0%, #ede7f6 100%);
    animation: mysteryGlow 1.6s infinite alternate;
}

@keyframes mysteryGlow {
    0% { box-shadow: 0 0 8px rgba(181, 23, 158, 0.35); transform: scale(1); }
    100% { box-shadow: 0 0 18px rgba(247, 37, 133, 0.8); transform: scale(1.03); }
}

.polaroid-photo {
    height: 85px;
    background: radial-gradient(circle, #ffffff 0%, #fff5f8 100%);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    border: 1px dashed #ffd1dc;
    overflow: hidden;
}

.album-thumb-canvas {
    width: 76px;
    height: 76px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.polaroid-caption {
    font-weight: bold;
    font-size: 0.8rem;
    color: #4a3e3d;
    margin-bottom: 2px;
}

.polaroid-sub {
    font-size: 0.68rem;
    color: #888;
}

.tape-deco {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 12px;
    background: rgba(255, 230, 100, 0.7);
    border: 1px dashed rgba(200, 180, 50, 0.6);
    pointer-events: none;
}

.album-detail-view {
    background: #fff8fa;
    border: 3px solid #ffccd9;
    border-radius: 18px;
    padding: 10px;
    margin-top: 8px;
    text-align: left;
}

.album-detail-preview-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4px auto 8px auto;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffffff 0%, #fff0f5 100%);
    border-radius: 18px;
    border: 2px dashed #ffb3c6;
    box-shadow: 0 4px 10px rgba(255, 180, 200, 0.25);
}

#album-detail-canvas {
    width: 110px;
    height: 110px;
    display: block;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.15));
    pointer-events: none;
}

.bath-card-thumb-canvas {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.12));
    pointer-events: none;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 3px 0;
    border-bottom: 1px dashed #ffe0e9;
}

.detail-label { font-weight: bold; color: #ff6088; }
.detail-val { color: #555; }

.close-btn {
    background: #ffd6e0;
    border: none;
    color: #ff477e;
    font-weight: bold;
    padding: 10px 26px;
    border-radius: 22px;
    cursor: pointer;
    margin-top: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease;
    display: inline-block;
}

.close-btn:active {
    transform: scale(0.94);
}

/* ════════════════════════════════════════════════════
   ⚡ カットイン演出：ここで問題です！！
   ════════════════════════════════════════════════════ */
.quiz-cutin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(255, 60, 100, 0.96) 0%, rgba(180, 20, 60, 0.98) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: all;
    animation: cutinFadeIn 0.25s ease-out forwards;
}

@keyframes cutinFadeIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

.cutin-bg-rays {
    position: absolute;
    width: 250vw;
    height: 250vw;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 230, 80, 0.35) 0deg 15deg,
        transparent 15deg 30deg
    );
    animation: rotateRays 12s linear infinite;
    pointer-events: none;
}

@keyframes rotateRays {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cutin-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 24px;
    animation: cutinBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cutinBounce {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.cutin-sub {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fffb96;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 8px;
}

.cutin-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 900;
    color: #fffb00;
    text-shadow: 
        0 4px 0 #d90429,
        0 8px 16px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 240, 100, 0.9);
    letter-spacing: 4px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cutin-tag {
    font-size: 1.05rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* ════════════════════════════════════════════════════
   ❓ クイズモーダル：スクイーズ4択クイズ
   ════════════════════════════════════════════════════ */
.quiz-card {
    max-width: 440px;
    width: 92%;
    border: 4px solid #ff758f;
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(230, 57, 70, 0.35);
    padding: 18px 16px;
    background: #fffdf9;
}

.quiz-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff0f3;
    padding: 10px 14px;
    border-radius: 18px;
    border: 2px dashed #ffb3c1;
    margin-bottom: 12px;
}

.quiz-challenger-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
    animation: challengerWiggle 1.5s ease-in-out infinite;
}

@keyframes challengerWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-8deg) scale(1.08); }
    75% { transform: rotate(8deg) scale(1.08); }
}

.quiz-challenger-info {
    text-align: left;
    flex: 1;
}

.quiz-category-badge {
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-block;
    background: #ff4d6d;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 3px;
}

.quiz-challenger-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #590d22;
}

.quiz-question-box {
    background: #ffffff;
    border: 3px solid #ffe5ec;
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 14px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.quiz-question-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #333333;
    line-height: 1.5;
    text-align: left;
}

/* 4択グリッド */
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.quiz-opt-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 3px solid #e9ecef;
    border-radius: 18px;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    color: #495057;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.quiz-opt-btn:active {
    transform: scale(0.94);
}

.quiz-opt-btn .opt-prefix {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
    color: #ffffff;
    flex-shrink: 0;
}

.btn-opt-a .opt-prefix { background: #e63946; }
.btn-opt-b .opt-prefix { background: #1d3557; }
.btn-opt-c .opt-prefix { background: #2a9d8f; }
.btn-opt-d .opt-prefix { background: #e76f51; }

.btn-opt-a:hover, .btn-opt-a:active { border-color: #e63946; background: #fff5f5; }
.btn-opt-b:hover, .btn-opt-b:active { border-color: #1d3557; background: #f0f4f8; }
.btn-opt-c:hover, .btn-opt-c:active { border-color: #2a9d8f; background: #f0fdf4; }
.btn-opt-d:hover, .btn-opt-d:active { border-color: #e76f51; background: #fff7ed; }

.quiz-opt-btn .opt-text {
    flex: 1;
    line-height: 1.3;
}

/* 解答後の結果表示ボックス */
.quiz-result-box {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px dashed #ffccd5;
    animation: resultPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes resultPop {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-stamp {
    font-size: 1.6rem;
    font-weight: 900;
    padding: 6px 18px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 8px;
    transform: rotate(-4deg);
    animation: stampSlam 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampSlam {
    0% { transform: scale(2.2) rotate(15deg); opacity: 0; }
    100% { transform: scale(1) rotate(-4deg); opacity: 1; }
}

.stamp-correct {
    color: #e63946;
    border: 4px solid #e63946;
    background: rgba(230, 57, 70, 0.08);
}

.stamp-wrong {
    color: #1d3557;
    border: 4px solid #1d3557;
    background: rgba(29, 53, 87, 0.08);
}

.quiz-result-msg {
    font-size: 0.92rem;
    font-weight: bold;
    color: #555555;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* ⏱️ 15秒クイズタイマー */
.quiz-timer-container {
    margin-bottom: 8px;
    background: #fff8fa;
    border-radius: 12px;
    padding: 6px 10px;
    border: 1.5px solid #ffccd5;
}

.quiz-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 4px;
}

.quiz-timer-track {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.quiz-timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff758c 0%, #ff477e 100%);
    border-radius: 10px;
    transition: width 0.1s linear, background 0.3s ease;
}

.quiz-timer-bar-fill.timer-warning {
    background: linear-gradient(90deg, #f39c12 0%, #e74c3c 100%);
    animation: timerPulse 0.4s ease infinite alternate;
}

@keyframes timerPulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.4); }
}

/* 🎪 ミニゲーム共通ヘッダー */
.minigame-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.minigame-avatar {
    font-size: 2.2rem;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
    animation: bounce 0.6s ease infinite alternate;
}

.minigame-badge {
    display: inline-block;
    background: #ff477e;
    color: white;
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 2px;
}

.minigame-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #444;
}

/* 🎵 ぷにぷにリズムビート */
.rhythm-card {
    max-width: 400px;
    border-color: #a0c4ff;
}

.rhythm-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: bold;
    color: #0077b6;
    margin-bottom: 4px;
}

.rhythm-gauge-track {
    width: 100%;
    height: 12px;
    background: #e0f2fe;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #bae6fd;
}

.rhythm-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8, #0077b6);
    border-radius: 10px;
    transition: width 0.15s ease;
}

.rhythm-track-area {
    position: relative;
    width: 100%;
    height: 70px;
    background: linear-gradient(180deg, #2b2d42 0%, #1d1e2c 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.rhythm-target-line {
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.rhythm-target-circle {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    animation: pulseTarget 0.8s ease infinite alternate;
}

@keyframes pulseTarget {
    from { transform: scale(0.95); opacity: 0.8; }
    to { transform: scale(1.1); opacity: 1; }
}

.rhythm-notes-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.rhythm-note {
    position: absolute;
    top: 15px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    will-change: left;
    user-select: none;
    pointer-events: none;
}

.rhythm-feedback {
    position: absolute;
    left: 45px;
    top: 18px;
    transform: translateX(-50%);
    font-size: 1.1rem;
    font-weight: 900;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.rhythm-feedback.show-perfect {
    color: #ffd166;
    text-shadow: 0 0 8px rgba(255, 209, 102, 0.8);
    animation: feedbackPop 0.35s ease forwards;
}

.rhythm-feedback.show-great {
    color: #06d6a0;
    text-shadow: 0 0 8px rgba(6, 214, 160, 0.8);
    animation: feedbackPop 0.35s ease forwards;
}

.rhythm-feedback.show-miss {
    color: #ef476f;
    text-shadow: 0 0 8px rgba(239, 71, 111, 0.8);
    animation: feedbackPop 0.35s ease forwards;
}

@keyframes feedbackPop {
    0% { opacity: 0; transform: translateX(-50%) scale(0.6); }
    40% { opacity: 1; transform: translateX(-50%) scale(1.2); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-15px) scale(1); }
}

.rhythm-control-area {
    margin-top: 6px;
}

.rhythm-tap-btn {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #ff758c 0%, #ff477e 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow: 0 6px 16px rgba(255, 71, 126, 0.4);
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.06s ease;
}

.rhythm-tap-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #ff477e 0%, #e63946 100%);
}

/* 🍓 ぷにぷにキャッチ */
.catch-card {
    max-width: 380px;
    border-color: #ffd166;
}

.catch-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 6px;
}

.catch-canvas-wrapper {
    position: relative;
    width: 100%;
    background: #fdf0d5;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #ffd166;
    touch-action: none;
}

#catch-canvas {
    display: block;
    width: 100%;
    height: 240px;
    touch-action: none;
}

.catch-swipe-hint {
    font-size: 0.75rem;
    color: #8c7250;
    margin-top: 4px;
    font-weight: bold;
}

/* 💥 ぷにぷに連打ラッシュ */
.mash-card {
    max-width: 380px;
    border-color: #f77f00;
}

.mash-status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: bold;
    color: #d62828;
    margin-bottom: 6px;
}

.mash-gauge-track {
    width: 100%;
    height: 16px;
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid #ffba08;
}

.mash-gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffba08, #e85d04, #d00000);
    border-radius: 12px;
    transition: width 0.08s ease;
}

.mash-target-wrapper {
    background: #fff8e7;
    border-radius: 24px;
    padding: 24px 10px;
    border: 3px dashed #f77f00;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mash-target-squeeze {
    font-size: 5rem;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
    display: inline-block;
    transition: transform 0.05s ease;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

.mash-target-wrapper:active .mash-target-squeeze {
    transform: scale(0.85) scaleY(0.75);
}

.mash-squish {
    animation: mashSquishAnim 0.12s ease-out;
}

@keyframes mashSquishAnim {
    0% { transform: scale(1.18, 0.82); }
    50% { transform: scale(0.88, 1.12); }
    100% { transform: scale(1, 1); }
}

.mash-particle {
    position: absolute;
    pointer-events: none;
    font-size: 1.5rem;
    animation: mashParticleFly 0.4s ease-out forwards;
    user-select: none;
}

@keyframes mashParticleFly {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.4); }
}

.mash-tap-hint {
    font-size: 0.88rem;
    font-weight: 900;
    color: #e85d04;
    margin-top: 10px;
    animation: bounce 0.5s ease infinite alternate;
}

/* 🎩 シャッフルカップ・ミニゲーム */
.shuffle-card {
    max-width: 360px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border: 3px solid #f97316;
}

.shuffle-status-msg {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ea580c;
    background: #ffedd5;
    padding: 8px 14px;
    border-radius: 20px;
    margin: 10px auto 16px auto;
    text-align: center;
    border: 1px dashed #fdba74;
}

.shuffle-stage {
    position: relative;
    width: 100%;
    height: 160px;
    background: #fed7aa;
    border-radius: 16px;
    border: 2px solid #fdba74;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 20px;
}

.shuffle-cup-item {
    position: relative;
    width: 80px;
    height: 110px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), left 0.3s ease;
}

.shuffle-cup-item:hover {
    transform: scale(1.05);
}

.shuffle-cup-item:active {
    transform: scale(0.95);
}

.shuffle-cup-item.disabled {
    pointer-events: none;
}

.cup-body {
    font-size: 4.2rem;
    line-height: 1;
    z-index: 5;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3));
    user-select: none;
    -webkit-user-select: none;
}

.shuffle-cup-item.lifted .cup-body {
    transform: translateY(-54px);
    filter: drop-shadow(0 12px 14px rgba(0,0,0,0.25));
}

.cup-content {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%) scale(0.4);
    font-size: 2.0rem;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 🎩 帽子が持ち上がった時だけ、中のスクイーズが完全に出現！ */
.shuffle-cup-item.lifted .cup-content {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.shuffle-cup-item.reveal-hit .cup-content {
    animation: popBounce 0.5s ease;
}

/* 🎒 装備中のお風呂アイテムトレイ */
.bath-equipped-tray {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    border: 1.5px dashed #86efac;
    border-radius: 12px;
    padding: 6px 10px;
    margin-top: 10px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.bath-equipped-tray:hover {
    background: #dcfce7;
}

.bath-equipped-tray:active {
    transform: scale(0.99);
}

.equipped-label {
    font-weight: 900;
    color: #166534;
}

.bath-item-tag {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 2px 7px;
    font-weight: bold;
    color: #15803d;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.btn-change-bath-items {
    margin-left: auto;
    background: #15803d;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.25);
    transition: transform 0.15s, background 0.15s;
}

.btn-change-bath-items:hover {
    background: #166534;
    transform: scale(1.05);
}

/* 🛁 お風呂グッズ選択モーダル */
.bath-equipment-card {
    max-width: 440px;
    width: 92%;
    padding: 18px 14px;
}

.bath-equip-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bath-equip-tab {
    flex: 1;
    min-width: 70px;
    padding: 7px 4px;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.bath-equip-tab.active {
    background: #0ea5e9;
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
}

.bath-equip-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 4px;
}

.bath-equip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 12px;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.bath-equip-item.equipped {
    background: #ecfdf5;
    border-color: #10b981;
}

.bath-equip-item.locked {
    opacity: 0.55;
    background: #f1f5f9;
    border-style: dashed;
}

.bath-equip-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.bath-equip-info {
    flex: 1;
    min-width: 0;
}

.bath-equip-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 2px;
}

.bath-equip-effect {
    font-size: 0.72rem;
    color: #0284c7;
    font-weight: bold;
    margin-bottom: 1px;
}

.bath-equip-desc {
    font-size: 0.68rem;
    color: #64748b;
    line-height: 1.2;
}

.btn-equip-action {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, background 0.2s;
}

.btn-equip-action.is-equipped {
    background: #10b981;
    color: #ffffff;
    cursor: default;
}

.btn-equip-action.can-equip {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.btn-equip-action.can-equip:hover {
    background: #0284c7;
    transform: scale(1.05);
}

.btn-equip-action.is-locked {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════
   💡 ミニゲーム 6️⃣：ぷにぷにメモリー（記憶・順番当て）
   ══════════════════════════════════════════════════════════════ */
.memory-card {
    border-top: 6px solid #f59e0b;
    max-width: 360px;
    padding: 16px;
}

.memory-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fef3c7;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #92400e;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.memory-pad-btn {
    height: 90px;
    border-radius: 18px;
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15), 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.08s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.memory-pad-btn.pad-0 { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.memory-pad-btn.pad-1 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.memory-pad-btn.pad-2 { background: linear-gradient(135deg, #ffd166 0%, #f77f00 100%); }
.memory-pad-btn.pad-3 { background: linear-gradient(135deg, #48cae4 0%, #0077b6 100%); }

.memory-pad-btn:active, .memory-pad-btn.pad-pressed {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.memory-pad-btn.pad-lit {
    filter: brightness(1.6) drop-shadow(0 0 16px #ffffff) !important;
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9) !important;
}

/* ══════════════════════════════════════════════════════════════
   🎯 ミニゲーム 7️⃣：ジャストストップ（目押しタイミング勝負）
   ══════════════════════════════════════════════════════════════ */
.timing-card {
    border-top: 6px solid #ec4899;
    max-width: 360px;
    padding: 16px;
}

.timing-status-bar {
    text-align: center;
    background: #fdf2f8;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #be185d;
}

.timing-track-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.timing-gauge-track {
    position: relative;
    height: 48px;
    background: #334155;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
}

.timing-safe-zone {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 20%;
    width: 60%;
    background: rgba(16, 185, 129, 0.35);
    border: 2px dashed rgba(52, 211, 153, 0.8);
    border-radius: 12px;
}

.timing-critical-zone {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 45%;
    width: 10%;
    background: linear-gradient(180deg, #fef08a, #eab308);
    border: 2px solid #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 14px #facc15;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    color: #713f12;
    z-index: 2;
    letter-spacing: 0.5px;
}

.timing-needle {
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: 0%;
    width: 8px;
    background: #ef4444;
    border-radius: 4px;
    box-shadow: 0 0 10px #ef4444, 0 0 20px #ffffff;
    z-index: 5;
    transform: translateX(-50%);
}

.timing-stop-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 6px 0 #991b1b, 0 10px 20px rgba(239, 68, 68, 0.4);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.timing-stop-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #991b1b;
}

/* ══════════════════════════════════════════════════════════════
   🌟 超ド迫力！特大レアリティGET演出モーダル
   ══════════════════════════════════════════════════════════════ */
.rarity-get-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 5, 25, 0.94);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

/* 画面激震エフェクト */
.shake-screen {
    animation: screenEarthquake 0.6s cubic-bezier(.36,.07,.19,.97) both !important;
}

@keyframes screenEarthquake {
    10%, 90% { transform: translate3d(-3px, 4px, 0) scale(1.02); }
    20%, 80% { transform: translate3d(5px, -3px, 0) scale(0.98); }
    30%, 50%, 70% { transform: translate3d(-6px, 6px, 0) scale(1.03); }
    40%, 60% { transform: translate3d(6px, -5px, 0) scale(0.99); }
}

/* 光の放射線（サンバースト） */
.rarity-light-rays {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    pointer-events: none;
    animation: rotateSunburst 20s linear infinite;
    opacity: 0.6;
}

.rarity-light-rays.UR {
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 0, 128, 0.4) 0deg 15deg,
        transparent 15deg 30deg,
        rgba(0, 240, 255, 0.4) 30deg 45deg,
        transparent 45deg 60deg,
        rgba(255, 215, 0, 0.5) 60deg 75deg,
        transparent 75deg 90deg
    );
    opacity: 0.85;
}

.rarity-light-rays.SSR {
    background: repeating-conic-gradient(
        from 0deg,
        rgba(251, 191, 36, 0.45) 0deg 15deg,
        transparent 15deg 30deg,
        rgba(245, 158, 11, 0.25) 30deg 45deg,
        transparent 45deg 60deg
    );
    opacity: 0.75;
}

.rarity-light-rays.SR, .rarity-light-rays.S {
    background: repeating-conic-gradient(
        from 0deg,
        rgba(236, 72, 153, 0.3) 0deg 15deg,
        transparent 15deg 30deg
    );
    opacity: 0.5;
}

@keyframes rotateSunburst {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* カードコンテナ */
.rarity-get-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 50px rgba(255, 255, 255, 0.3);
    animation: popCardIn 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.rarity-get-card.UR {
    background: linear-gradient(165deg, #1e1035 0%, #2d124d 100%);
    border: 3px solid #ff007f;
    box-shadow: 0 0 40px #ff007f, 0 0 80px rgba(0, 240, 255, 0.5);
    color: #ffffff;
}

.rarity-get-card.SSR {
    background: linear-gradient(165deg, #2b1d06 0%, #3d2806 100%);
    border: 3px solid #fbbf24;
    box-shadow: 0 0 35px #f59e0b, 0 0 60px rgba(251, 191, 36, 0.4);
    color: #ffffff;
}

@keyframes popCardIn {
    0% { transform: scale(0.3) rotate(-6deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.rarity-ribbon {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ff477e, #ff80ab);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 71, 126, 0.4);
    animation: pulseRibbon 1.2s infinite alternate;
}

@keyframes pulseRibbon {
    from { transform: scale(0.96); }
    to { transform: scale(1.04); }
}

/* 特大レアリティバッジ爆発 */
.rarity-badge-stage {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

.get-rarity-badge {
    font-size: 1.8rem;
    font-weight: 900;
    padding: 6px 28px;
    border-radius: 30px;
    letter-spacing: 2px;
    display: inline-block;
    animation: blastBadge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.get-rarity-badge.UR {
    background: linear-gradient(90deg, #ff007f, #7928ca, #0070f3, #00dfd8);
    background-size: 300% 300%;
    color: #ffffff;
    box-shadow: 0 0 30px #ff007f, 0 0 50px #00dfd8;
    animation: blastBadge 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both, rainbowShift 2.5s ease infinite;
}

.get-rarity-badge.SSR {
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #d97706);
    color: #ffffff;
    box-shadow: 0 0 25px #f59e0b, 0 0 40px #fbbf24;
}

.get-rarity-badge.SR {
    background: linear-gradient(90deg, #ec4899, #f43f5e);
    color: #ffffff;
    box-shadow: 0 0 18px #ec4899;
}

.get-rarity-badge.S {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    color: #ffffff;
}

.get-rarity-badge.N {
    background: linear-gradient(90deg, #64748b, #94a3b8);
    color: #ffffff;
}

@keyframes blastBadge {
    0% { transform: scale(3.5); opacity: 0; filter: blur(10px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes rainbowShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* スクイーズ主役 */
.rarity-squeeze-showcase {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
}

.get-squeeze-avatar {
    font-size: 5.5rem;
    animation: squishyFloat 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
    z-index: 5;
}

@keyframes squishyFloat {
    0% { transform: scale(1, 1) translateY(0); }
    50% { transform: scale(1.12, 0.9) translateY(6px); }
    100% { transform: scale(0.92, 1.1) translateY(-10px); }
}

.get-squeeze-name {
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.rarity-tags-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rarity-tag {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: bold;
}

.rarity-get-card:not(.UR):not(.SSR) .rarity-tag {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.get-squeeze-comment {
    font-size: 0.82rem;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.4;
}

.rarity-get-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(90deg, #ff477e, #ff80ab);
    border: none;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 71, 126, 0.5);
    transition: transform 0.1s ease;
}

.rarity-get-btn:active {
    transform: scale(0.97);
}

/* 🌈 ホーム画面・高レアスクイーズ常時オーラエフェクト */
.squeeze-container.has-ur-aura::before {
    content: '';
    position: absolute;
    top: 10%; left: 10%; right: 10%; bottom: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 128, 0.35) 0%, rgba(0, 240, 255, 0.25) 50%, transparent 70%);
    filter: blur(25px);
    animation: rotateAura 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.squeeze-container.has-ssr-aura::before {
    content: '';
    position: absolute;
    top: 15%; left: 15%; right: 15%; bottom: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.4) 0%, rgba(245, 158, 11, 0.2) 60%, transparent 80%);
    filter: blur(20px);
    animation: rotateAura 8s linear infinite reverse;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotateAura {
    from { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    to { transform: rotate(360deg) scale(1); }
}

/* ════════════════════════════════════════════════════
   📛 プレイヤープロフィール・ネームバッジ
   ════════════════════════════════════════════════════ */
.player-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e9 100%);
    border: 2px solid #ffb3c6;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #d81159;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(216, 17, 89, 0.15);
    transition: all 0.2s ease;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-profile-badge:hover {
    transform: scale(1.04);
    background: #ffffff;
    border-color: #ff477e;
}

.profile-card {
    max-width: 360px;
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    text-align: center;
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    font-size: 2.2rem;
    background: #ffe3ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ff85a2;
}

.profile-input-group {
    text-align: left;
    flex: 1;
}

.profile-label {
    display: block;
    font-size: 0.72rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 4px;
}

.profile-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #ffccd5;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.profile-input:focus {
    border-color: #ff477e;
    box-shadow: 0 0 8px rgba(255, 71, 126, 0.3);
}

.profile-stats-box {
    display: flex;
    justify-content: space-around;
    background: #fff5f7;
    border: 1px solid #ffd1dc;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 12px;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-stat-icon {
    font-size: 1.2rem;
}

.p-stat-val {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ff477e;
}

.p-stat-lbl {
    font-size: 0.68rem;
    color: #777;
}

/* ════════════════════════════════════════════════════
   🤝 スクイーズ交換ステーション（#screen-trade）
   ════════════════════════════════════════════════════ */
.trade-container {
    padding: 8px 10px 24px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.trade-subnav {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.trade-subtab-btn {
    flex: 1;
    padding: 8px 4px;
    background: #ffffff;
    border: 2px solid #ffd1dc;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.trade-subtab-btn.active {
    background: linear-gradient(135deg, #ff477e 0%, #ff80ab 100%);
    border-color: #ff477e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 71, 126, 0.3);
}

.trade-card-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 10px;
    box-shadow: 0 4px 16px rgba(255, 140, 180, 0.15);
    border: 2px solid #ffe5ec;
    width: 100%;
    box-sizing: border-box;
}

.trade-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.trade-box-icon {
    font-size: 1.8rem;
    background: #fff0f5;
    border-radius: 14px;
    padding: 6px;
}

.trade-box-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #d81159;
    margin: 0;
}

.trade-box-desc {
    font-size: 0.75rem;
    color: #777;
    margin: 2px 0 0;
}

.trade-select-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    scrollbar-width: thin;
}

.trade-thumb-card {
    flex: 0 0 76px;
    height: 94px;
    background: #fffafc;
    border: 2px solid #ffd6e0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 4px;
    box-sizing: border-box;
}

.trade-thumb-card.selected {
    border-color: #ff477e;
    background: #ffe3ec;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.35);
}

.trade-thumb-name {
    font-size: 0.65rem;
    font-weight: bold;
    color: #444;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.trade-give-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff5f8;
    border-radius: 16px;
    padding: 12px;
    margin-top: 8px;
    border: 1px dashed #ffb3c6;
}

.trade-preview-canvas {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: radial-gradient(circle, #ffffff 40%, #ffe3eb 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.trade-item-name {
    font-size: 0.95rem;
    font-weight: 900;
    color: #333;
}

.trade-item-meta {
    font-size: 0.72rem;
    color: #777;
    margin-top: 2px;
}

.trade-item-aroma {
    font-size: 0.68rem;
    color: #9d4edd;
    margin-top: 2px;
}

.trade-code-result-box {
    margin-top: 12px;
    background: #e0f2fe;
    border: 2px solid #bae6fd;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
}

.code-result-title {
    font-size: 0.82rem;
    font-weight: bold;
    color: #0284c7;
    margin-bottom: 6px;
}

.code-display-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.code-input-display {
    flex: 1;
    background: #ffffff;
    border: 1px solid #7dd3fc;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: monospace;
    font-size: 0.92rem;
    font-weight: bold;
    color: #0369a1;
    text-align: center;
}

.copy-code-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s ease;
}

.copy-code-btn:active {
    background: #0369a1;
}

.code-hint {
    font-size: 0.68rem;
    color: #0369a1;
    margin: 6px 0 0;
    line-height: 1.3;
}

.code-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.code-input-field {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ffd1dc;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: monospace;
    font-weight: bold;
    color: #333;
    outline: none;
}

.code-input-field:focus {
    border-color: #ff477e;
}

.check-code-btn {
    background: linear-gradient(135deg, #7209b7, #560bad);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
}

.trade-receive-preview-area {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ffd1dc;
}

.receive-from-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #7209b7;
    margin-bottom: 6px;
}

.trade-target-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fdf2f8;
    border: 2px solid #fbcfe8;
    border-radius: 16px;
    padding: 10px;
    margin-bottom: 10px;
}

.trade-target-info {
    flex: 1;
}

.trade-return-select-box {
    margin-top: 8px;
}

.return-label {
    font-size: 0.78rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 4px;
}

/* 🌐 全国のスクイーズ掲示板カード */
.board-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #ffe5ec;
}

.board-desc {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.3;
}

.refresh-board-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: bold;
    color: #334155;
    cursor: pointer;
    white-space: nowrap;
}

.refresh-board-btn:active {
    background: #e2e8f0;
}

.board-offer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-offer-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 12px 10px;
    border: 2px solid #ffd6e0;
    box-shadow: 0 4px 12px rgba(255, 140, 180, 0.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.board-offer-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ffd1dc;
    padding-bottom: 6px;
    width: 100%;
    box-sizing: border-box;
}

.board-author-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: #d81159;
}

.board-post-time {
    font-size: 0.65rem;
    color: #aaa;
}

.board-exchange-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.board-exchange-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff5f8;
    border-radius: 14px;
    padding: 6px 4px;
    box-sizing: border-box;
}

.side-badge {
    font-size: 0.62rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 8px;
    margin-bottom: 3px;
    white-space: nowrap;
}

.side-badge.gives {
    background: #dcfce7;
    color: #15803d;
}

.side-badge.wants {
    background: #fef3c7;
    color: #b45309;
}

.board-thumb-canvas {
    width: 52px;
    height: 52px;
    border-radius: 10px;
}

.board-item-title {
    font-size: 0.68rem;
    font-weight: bold;
    color: #333;
    margin-top: 3px;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-exchange-arrow {
    font-size: 1.3rem;
    color: #ff477e;
    animation: bounceRight 1s infinite alternate;
}

@keyframes bounceRight {
    from { transform: translateX(-2px); }
    to { transform: translateX(2px); }
}

.board-trade-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(135deg, #ff477e, #ff80ab);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.3);
}

.board-trade-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* ════════════════════════════════════════════════════
   🤝 スクイーズ交換セレモニー演出（モーダル）
   ════════════════════════════════════════════════════ */
.trade-ceremony-card {
    width: 95% !important;
    max-width: 420px;
    background: linear-gradient(180deg, #fff0f5 0%, #ffffff 100%);
    border-radius: 28px;
    padding: 18px 12px;
    text-align: center;
    border: 3px solid #ffccd5;
    box-shadow: 0 10px 30px rgba(255, 71, 126, 0.3);
    box-sizing: border-box;
}

.ceremony-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #d81159;
    margin-bottom: 4px;
}

.ceremony-sub {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.ceremony-stage {
    position: relative;
    height: 160px;
    background: radial-gradient(circle, #ffffff 30%, #ffe8f0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    overflow: hidden;
    border: 2px solid #ffd1dc;
    margin-bottom: 12px;
    padding: 0 4px;
    box-sizing: border-box;
}

.ceremony-actor {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    min-width: 0;
}

.actor-balloon {
    background: #ffffff;
    border: 2px solid #ff85a2;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.68rem;
    font-weight: bold;
    color: #d81159;
    margin-bottom: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    animation: floatBalloon 1.5s ease-in-out infinite alternate;
    white-space: nowrap;
}

@keyframes floatBalloon {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

.ceremony-canvas {
    width: 76px;
    height: 76px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.actor-name {
    font-size: 0.72rem;
    font-weight: bold;
    color: #444;
    margin-top: 4px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ceremony-center-fx {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ceremony-center-fx.active {
    transform: translate(-50%, -50%) scale(1.4);
}

.trade-sparkle-ring {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.8));
    animation: rotateAura 3s linear infinite;
}

.ceremony-result-message {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ff477e;
    margin-top: 8px;
    line-height: 1.35;
    animation: popIn 0.4s ease;
}

@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ════════════════════════════════════════════════════
   🎲 本格スクイーズ交換卓モーダル（#modal-trade-table）
   ════════════════════════════════════════════════════ */
.trade-table-card {
    width: 95% !important;
    max-width: 420px;
    background: linear-gradient(180deg, #fdf6ec 0%, #fff 100%);
    border-radius: 24px;
    padding: 12px 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    border: 3px solid #e9d5a1;
    box-sizing: border-box;
    max-height: 94vh;
    overflow-y: auto;
}

.table-opponent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px 10px;
    margin-bottom: 8px;
    border: 1px solid #fae1dd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.table-opp-avatar {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    background: #ffe3ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff85a2;
    flex-shrink: 0;
}

.table-opp-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.table-opp-name {
    font-size: 0.82rem;
    font-weight: 900;
    color: #d81159;
}

.table-opp-balloon {
    font-size: 0.68rem;
    color: #555;
    background: #fff0f5;
    border-radius: 8px;
    padding: 3px 6px;
    margin-top: 2px;
    line-height: 1.25;
    word-break: break-word;
}

/* 卓上フェルトマット（スマホ横幅に完全フィット、はみ出し厳禁） */
.trade-table-felt {
    background: radial-gradient(circle, #2d6a4f 0%, #1b4332 100%);
    border: 4px solid #8d5b4c;
    border-radius: 18px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4px;
    box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.table-slot {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 110px;
    position: relative;
    transition: all 0.25s ease;
    box-sizing: border-box;
    overflow: hidden;
}

.table-slot.active-pick {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffd166;
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.6);
}

.slot-badge {
    font-size: 0.58rem;
    font-weight: bold;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
}

.slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-width: 0;
}

.slot-empty-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 12px 2px;
    line-height: 1.3;
}

.slot-squeeze-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    min-width: 0;
}

.slot-canvas {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: radial-gradient(circle, #ffffff 40%, #ffe3eb 100%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slot-sq-name {
    font-size: 0.65rem;
    font-weight: bold;
    color: #ffffff;
    margin-top: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    text-align: center;
    max-width: 88px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-decision-tag {
    position: absolute;
    bottom: -8px;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
    z-index: 5;
}

.slot-decision-tag.ok {
    background: #10b981;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.slot-decision-tag.ng {
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.table-center-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 2px;
}

.table-swap-icon {
    font-size: 1.2rem;
    color: #ffd166;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.table-guide-box {
    background: #fff0f5;
    border: 1.5px solid #ffccd5;
    border-radius: 12px;
    padding: 6px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #d81159;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
    box-sizing: border-box;
}

/* 卓上アルバム選択トレイ */
.table-album-tray {
    background: #ffffff;
    border: 2px solid #ffd1dc;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}

.table-album-scroll {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.table-pick-card {
    flex: 0 0 66px;
    height: 84px;
    background: #fffafd;
    border: 2px solid #ffb3c6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 3px;
    box-sizing: border-box;
}

.table-pick-card:hover {
    transform: translateY(-2px);
    border-color: #ff477e;
    box-shadow: 0 4px 10px rgba(255, 71, 126, 0.3);
}

.table-judgment-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.table-btn-ok {
    flex: 1;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    transition: transform 0.1s ease;
}

.table-btn-ok:active {
    transform: scale(0.96);
}

.table-btn-ng {
    flex: 1;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    transition: transform 0.1s ease;
}

.table-btn-ng:active {
    transform: scale(0.96);
}

.table-renego-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 6px;
}

.table-btn-renego {
    width: 100%;
    padding: 10px;
    font-size: 0.88rem;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    animation: pulseTarget 1s infinite alternate;
}

/* 掲示板新着通知モジュールランプ */
.tab-module-lamp {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.75rem;
    animation: lampBlink 0.7s infinite alternate;
    pointer-events: none;
}

.subtab-module-lamp {
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.6);
    animation: lampGlow 0.8s infinite alternate;
}

@keyframes lampBlink {
    from { transform: scale(0.9); opacity: 0.6; filter: drop-shadow(0 0 2px #ef4444); }
    to { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 8px #ef4444); }
}

@keyframes lampGlow {
    from { transform: scale(0.96); opacity: 0.85; filter: drop-shadow(0 0 3px #f59e0b); }
    to { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 10px #fbbf24); }
}

/* 👥 掲示板「お友達が投稿中！」専用カードスタイル */
.board-offer-card.friend-post {
    border: 2.5px solid #ff477e;
    background: linear-gradient(135deg, #fff5f8 0%, #fffbf0 100%);
    box-shadow: 0 6px 18px rgba(255, 71, 126, 0.22);
    position: relative;
    overflow: hidden;
}

.board-offer-card.friend-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff477e, #f59e0b, #ec4899);
}

.friend-post-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff477e, #f43f5e);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(255, 71, 126, 0.35);
    animation: pulseTarget 1s infinite alternate;
}

.friend-trade-action-btn {
    background: linear-gradient(135deg, #ff477e 0%, #d946ef 100%) !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 14px rgba(255, 71, 126, 0.45) !important;
    animation: pulseTarget 1.2s infinite alternate !important;
}

/* 🟢 交換卓 両者ログイン状態バー＆バッジ */
.table-room-status-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.room-status-pill {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(16, 185, 129, 0.15);
}

.blink-green {
    color: #10b981;
    font-size: 0.75rem;
    animation: lampBlink 0.6s infinite alternate;
}

.table-opp-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slot-badge-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.table-user-login-badge {
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 8px;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
}

.table-user-login-badge.online {
    animation: lampGlow 0.9s infinite alternate;
}

/* ════════════════════════════════════════════════
   🌟 UR専用 黄金・オーロラ超絶カットイン演出
   ════════════════════════════════════════════════ */
.quiz-cutin-overlay.ur-gold-cutin {
    background: radial-gradient(circle, rgba(120, 53, 15, 0.96) 0%, rgba(20, 5, 30, 0.98) 100%) !important;
}

.quiz-cutin-overlay.ur-gold-cutin .cutin-bg-rays {
    background: repeating-conic-gradient(
        from 0deg,
        rgba(251, 191, 36, 0.45) 0deg 15deg,
        rgba(236, 72, 153, 0.45) 15deg 30deg,
        rgba(99, 102, 241, 0.45) 30deg 45deg
    ) !important;
    animation: urGoldRays 5s linear infinite !important;
}

@keyframes urGoldRays {
    0% { transform: rotate(0deg) scale(1.6); }
    100% { transform: rotate(360deg) scale(1.6); }
}

.quiz-cutin-overlay.ur-gold-cutin .cutin-title {
    background: linear-gradient(135deg, #fff, #fef08a, #f59e0b, #ec4899, #818cf8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 0 20px #f59e0b) drop-shadow(0 0 35px #ec4899);
    animation: urRainbowGlow 1.2s ease-in-out infinite alternate;
    font-size: 2.1rem !important;
}

@keyframes urRainbowGlow {
    0% { filter: drop-shadow(0 0 15px #f59e0b) drop-shadow(0 0 25px #ec4899); }
    100% { filter: drop-shadow(0 0 25px #fbbf24) drop-shadow(0 0 45px #a855f7) scale(1.05); }
}

.quiz-cutin-overlay.ur-gold-cutin .cutin-sub {
    color: #fef08a !important;
    font-weight: 900;
    text-shadow: 0 0 12px #d97706;
}

.quiz-cutin-overlay.ur-gold-cutin .cutin-tag {
    background: linear-gradient(90deg, #b45309, #d97706, #f59e0b) !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.7);
    font-weight: bold;
}

/* ════════════════════════════════════════════════
   🎮 新ミニゲームスタイル（スラッシュ、タワー、スピン）
   ════════════════════════════════════════════════ */
/* スラッシュゲーム */
.slash-card {
    border: 3px solid #818cf8;
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.35);
}

.slash-canvas-container {
    position: relative;
    user-select: none;
    touch-action: none;
    margin: 8px 0;
}

/* タワーゲーム */
.tower-card {
    border: 3px solid #38bdf8;
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.35);
}

.tower-canvas-container {
    position: relative;
    user-select: none;
    touch-action: none;
    margin: 8px 0;
}

/* スピンゲーム */
.spin-card {
    border: 3px solid #f472b6;
    box-shadow: 0 12px 35px rgba(244, 114, 182, 0.35);
}

.spin-canvas-container {
    user-select: none;
    touch-action: none;
}

@keyframes spinRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 🐉 ドラゴン誕生・激アツ殻割れ覚醒モーダル */
.dragon-birth-card {
    position: relative;
    background: radial-gradient(circle at 50% 30%, #2b1055, #10002b 85%);
    border: 3px solid #ffd700;
    box-shadow: 0 0 45px rgba(255, 215, 0, 0.6), inset 0 0 25px rgba(255, 0, 128, 0.4);
    color: #ffffff;
    text-align: center;
    padding: 24px 20px;
    border-radius: 28px;
    max-width: 380px;
    width: 90%;
    overflow: hidden;
    animation: dragonBirthPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes dragonBirthPop {
    0% { transform: scale(0.6); opacity: 0; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.dragon-birth-aurora {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(255, 0, 128, 0.15) 40%, transparent 70%);
    animation: rotateAura 8s linear infinite;
    pointer-events: none;
}

.dragon-birth-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff007f, #ffd700);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.5);
    margin-bottom: 12px;
}

.dragon-birth-egg-cracked {
    font-size: 3.2rem;
    line-height: 1;
    margin: 10px 0;
    animation: dragonEggCrackBounce 1.2s ease infinite alternate;
}

@keyframes dragonEggCrackBounce {
    0% { transform: scale(1) rotate(-4deg); }
    100% { transform: scale(1.15) rotate(4deg); }
}

.dragon-birth-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    margin-bottom: 8px;
}

.dragon-birth-name {
    font-size: 1.15rem;
    font-weight: 900;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.4);
    margin-bottom: 12px;
}

.dragon-birth-desc {
    font-size: 0.85rem;
    color: #e0e7ff;
    line-height: 1.5;
    margin-bottom: 14px;
}

.dragon-birth-album-note {
    font-size: 0.8rem;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.15);
    padding: 6px 10px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px dashed rgba(255, 209, 102, 0.4);
}

.dragon-birth-btn {
    background: linear-gradient(135deg, #ffd700, #ff007f);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.05rem;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.6);
    cursor: pointer;
    border-radius: 20px;
    padding: 12px 24px;
}

/* ⚡ 画面の激震エフェクト（卵割れ覚醒用） */
.screen-shake-intense {
    animation: shakeIntense 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeIntense {
    10%, 90% { transform: translate3d(-3px, 2px, 0) rotate(-1deg); }
    20%, 80% { transform: translate3d(5px, -4px, 0) rotate(1.5deg); }
    30%, 50%, 70% { transform: translate3d(-7px, 5px, 0) rotate(-2deg); }
    40%, 60% { transform: translate3d(7px, -5px, 0) rotate(2deg); }
}
/* 📲 アカウント引き継ぎモーダル用テキスト選択・貼り付け許可スタイル */
#transfer-input-code-text,
#transfer-generated-code-text,
.transfer-card textarea,
.transfer-card input {
    user-select: text !important;
    -webkit-user-select: text !important;
    touch-action: auto !important;
    -webkit-touch-callout: default !important;
    pointer-events: auto !important;
}

