/* ============================================
   COMPANION VIEW — The Device Screen Interface
   Simulates the elderly user's photo frame device
   ============================================ */

.companion-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6d3 0%, #ffe4f0 50%, #e6f4ff 100%);
    padding: var(--space-lg);
}

/* The physical frame */
.companion-frame {
    animation: fadeInUp 0.8s ease-out;
}

.frame-wood-border {
    background: linear-gradient(145deg, #d4a574, #8b6340);
    border-radius: 28px;
    padding: 22px;
    box-shadow:
        0 30px 80px rgba(139, 99, 64, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.frame-wood-border::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    pointer-events: none;
}

.frame-wood-border::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    pointer-events: none;
}

/* The screen */
.companion-screen {
    width: 380px;
    height: 600px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-light) 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Status Bar */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(180, 136, 249, 0.1);
}

.status-time {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.status-icons {
    display: flex;
    gap: var(--space-md);
    font-size: 0.85rem;
}

.status-heart {
    animation: heartbeat 2s ease-in-out infinite;
}

/* Screen Content */
.screen-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.mode {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.mode.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

/* Photo Mode */
.photo-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder {
    width: 280px;
    height: 320px;
    background: linear-gradient(135deg, var(--lavender-light), var(--pink-light), var(--mint-light));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    box-shadow: 0 8px 30px var(--shadow-soft);
    border: 3px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    position: relative;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: opacity 0.6s ease;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.6s ease;
}

.photo-icon {
    font-size: 5rem;
    animation: float 6s ease-in-out infinite;
}

/* Greeting Mode */
.companion-avatar {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 30px var(--shadow-soft);
    border: 4px solid var(--white);
    animation: float 5s ease-in-out infinite;
}

.avatar-face {
    position: relative;
    width: 100px;
    height: 80px;
}

.avatar-eyes {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 10px;
}

.av-eye {
    width: 16px;
    height: 20px;
    background: var(--text-dark);
    border-radius: 50%;
    position: relative;
    animation: blink 4s ease-in-out infinite;
}

.av-eye::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    top: 3px;
    right: 3px;
}

.avatar-blush {
    width: 20px;
    height: 12px;
    background: var(--pink-mid);
    border-radius: 50%;
    position: absolute;
    top: 42px;
    opacity: 0.5;
}

.avatar-blush.left { left: 8px; }
.avatar-blush.right { right: 8px; }

.avatar-mouth {
    width: 24px;
    height: 12px;
    border-bottom: 3px solid var(--text-dark);
    border-radius: 0 0 50% 50%;
    margin: 8px auto 0;
}

.greeting-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.5;
    max-width: 300px;
}

/* Reminder Mode */
.reminder-mode {
    background: linear-gradient(180deg, var(--yellow-light), var(--peach));
}

.reminder-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: float 3s ease-in-out infinite;
}

.reminder-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.reminder-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-mid);
    text-align: center;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.reminder-actions {
    display: flex;
    gap: var(--space-md);
}

.companion-btn {
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-done {
    background: linear-gradient(135deg, var(--mint-mid), var(--mint-deep));
    color: white;
    box-shadow: 0 4px 15px rgba(109, 213, 176, 0.4);
}

.btn-done:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 213, 176, 0.5);
}

.btn-later {
    background: var(--white);
    color: var(--text-mid);
    border: 2px solid var(--peach-deep);
}

.btn-later:hover {
    background: var(--peach);
    transform: translateY(-2px);
}

.btn-cancel {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid var(--pink-mid);
    margin-top: var(--space-lg);
}

.btn-cancel:hover {
    background: var(--pink-light);
}

/* Chat Mode */
.chat-mode {
    justify-content: flex-end;
    padding: var(--space-md);
}

.chat-messages {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) 0;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease-out;
}

.companion-bubble {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px var(--shadow-soft);
}

.user-bubble {
    background: linear-gradient(135deg, var(--lavender-mid), var(--pink-mid));
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    width: 100%;
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.text-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.chat-text-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    border: 2px solid var(--lavender-mid);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease;
}

.chat-text-input:focus {
    outline: none;
    border-color: var(--pink-mid);
}

.chat-text-input::placeholder {
    color: var(--text-light);
}

.send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--pink-mid), var(--lavender-mid));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--shadow-mid);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lavender-mid);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.voice-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--lavender-light), var(--pink-light));
    border: 2px solid var(--lavender-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: all 0.3s ease;
}

.voice-btn:hover {
    background: linear-gradient(135deg, var(--lavender-mid), var(--pink-mid));
    border-color: var(--lavender-deep);
}

.voice-btn.listening {
    background: linear-gradient(135deg, var(--coral), var(--pink-deep));
    border-color: var(--coral);
    animation: pulse 1.5s ease-in-out infinite;
}

.voice-icon {
    font-size: 1.5rem;
}

.voice-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.voice-btn.listening .voice-label {
    color: white;
}

/* Voice Output Toggle Button */
.voice-output-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--lavender-mid);
    background: var(--cream);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.voice-output-btn:hover {
    background: var(--lavender-light);
    transform: scale(1.1);
}

/* Speaking Indicator */
.speaking-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--lavender-light), var(--pink-light));
    border-radius: 20px;
    margin: 4px 0;
    animation: fadeInUp 0.3s ease;
}

.speaking-icon {
    font-size: 1.1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.speaking-text {
    font-size: 0.85rem;
    color: var(--text-mid);
    font-weight: 500;
}

.speaking-waves {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.speaking-waves .wave {
    display: inline-block;
    width: 3px;
    height: 12px;
    background: var(--lavender-deep);
    border-radius: 2px;
    animation: soundWave 0.8s ease-in-out infinite;
}

.speaking-waves .wave:nth-child(2) {
    animation-delay: 0.15s;
    height: 18px;
}

.speaking-waves .wave:nth-child(3) {
    animation-delay: 0.3s;
    height: 10px;
}

@keyframes soundWave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

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

/* Replay Button on Chat Bubbles */
.replay-btn {
    display: inline-block;
    background: none;
    border: 1.5px solid var(--lavender-mid);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.replay-btn:hover {
    opacity: 1;
    background: var(--lavender-light);
    transform: scale(1.1);
}

/* Brain Games Mode */
.games-mode {
    justify-content: flex-start;
    padding-top: var(--space-lg);
}

.games-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.games-subtitle {
    font-family: var(--font-body);
    color: var(--text-mid);
    margin-bottom: var(--space-lg);
}

/* Game Selector */
.game-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.game-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 320px;
}

.game-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--lavender-mid);
    background: linear-gradient(135deg, var(--white), var(--lavender-light));
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-mid);
    border-color: var(--pink-mid);
    background: linear-gradient(135deg, var(--pink-light), var(--lavender-light));
}

.game-choice-btn:active {
    transform: scale(0.96);
}

.game-choice-icon {
    font-size: 2.2rem;
}

.game-choice-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Game Screens */
.game-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

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

.game-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    margin-bottom: var(--space-md);
}

.game-back-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 2px solid var(--lavender-mid);
    background: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-back-btn:hover {
    background: var(--lavender-light);
    color: var(--lavender-deep);
}

.game-screen-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-dark);
}

.game-instruction {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-mid);
    margin-bottom: var(--space-md);
    text-align: center;
}

/* Memory Match */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

.memory-card {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--lavender-light), var(--pink-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--lavender-mid);
    user-select: none;
}

.memory-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--shadow-mid);
}

.memory-card.hidden {
    background: linear-gradient(135deg, var(--lavender-mid), var(--pink-mid));
}

.memory-card.hidden::after {
    content: '?';
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: white;
}

.memory-card.matched {
    background: linear-gradient(135deg, var(--mint-light), var(--mint-mid));
    border-color: var(--mint-deep);
    animation: matchPop 0.4s ease;
}

/* Sliding Puzzle */
.sliding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    max-width: 240px;
}

.sliding-tile {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--lavender-mid), var(--pink-mid));
    border: 2px solid var(--lavender-deep);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.sliding-tile:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 12px var(--shadow-mid);
}

.sliding-tile.empty {
    background: var(--cream);
    border: 2px dashed var(--lavender-light);
    cursor: default;
}

.sliding-tile.empty:hover {
    transform: none;
    box-shadow: none;
}

.sliding-tile.correct {
    background: linear-gradient(135deg, var(--mint-mid), var(--mint-deep));
    border-color: var(--mint-deep);
}

/* Word Match */
.word-prompt {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: float 4s ease-in-out infinite;
}

.word-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.word-choice-btn {
    padding: 14px 10px;
    border-radius: var(--radius-md);
    border: 2px solid var(--lavender-mid);
    background: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.word-choice-btn:hover {
    background: var(--lavender-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-soft);
}

.word-choice-btn.correct {
    background: linear-gradient(135deg, var(--mint-light), var(--mint-mid));
    border-color: var(--mint-deep);
    color: #2d8a5e;
    animation: matchPop 0.4s ease;
}

.word-choice-btn.wrong {
    background: #fff0f0;
    border-color: var(--coral);
    color: #cc4444;
    animation: shake 0.4s ease;
}

/* Pattern Recall */
.pattern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 220px;
    margin-bottom: var(--space-md);
}

.pattern-tile {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.pattern-tile:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.pattern-tile.flash {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    border-color: white;
}

.pattern-tile.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.games-score {
    margin-top: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-mid);
}

/* Shake animation for wrong answers */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Music Mode */
.music-mode {
    background: linear-gradient(180deg, var(--lavender-light), var(--pink-light));
}

.music-visual {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.music-note {
    font-size: 2.5rem;
    animation: musicBounce 2s ease-in-out infinite;
}

.music-note.delay-1 { animation-delay: 0.3s; }
.music-note.delay-2 { animation-delay: 0.6s; }

.music-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
}

.music-track {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: var(--space-xl);
}

.music-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-mid);
}

.music-play {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--pink-mid), var(--lavender-mid));
    color: white;
}

/* Emergency Mode */
.emergency-mode {
    background: linear-gradient(180deg, #fff0f0, #ffe0e0);
}

.emergency-pulse {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 100, 100, 0.1);
    animation: emergencyPulse 2s ease-in-out infinite;
}

.emergency-icon {
    font-size: 4rem;
    z-index: 1;
    margin-bottom: var(--space-md);
}

.emergency-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #cc0000;
    z-index: 1;
    margin-bottom: var(--space-sm);
}

.emergency-text {
    font-size: 1rem;
    color: var(--text-mid);
    z-index: 1;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(180, 136, 249, 0.1);
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--lavender-light);
    transform: scale(1.15);
}

.nav-btn:active {
    transform: scale(0.95);
}

.sos-nav-btn {
    background: #fff0f0;
    border: 2px solid var(--coral);
}

.sos-nav-btn:hover {
    background: #ffe0e0;
}

/* Back Link */
.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-mid);
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--lavender-deep);
    background: var(--white);
    transform: translateX(-3px);
}

/* Additional Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes musicBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes emergencyPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

@keyframes matchPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 500px) {
    .companion-screen {
        width: 100%;
        max-width: 360px;
        height: 560px;
    }

    .frame-wood-border {
        padding: 16px;
    }
}
