/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
    overflow-x: hidden;
}

/* Welcome Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.welcome-overlay.hidden {
    animation: fadeOut 0.5s ease forwards;
    pointer-events: none;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.6s ease;
}

.welcome-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.instructions {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.instructions h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.instructions ul {
    list-style: none;
    margin-bottom: 20px;
}

.instructions li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.instructions li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #FFD700;
}

.keyboard-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

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

.key {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.key-label {
    margin-left: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.start-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    animation: pulse 2s ease infinite;
    text-transform: uppercase;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.start-btn:active {
    transform: translateY(-1px);
}

.audio-notice {
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

/* Controls */
.controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.control-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.control-btn.play {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.control-btn.stop {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    color: white;
}

.control-btn.clear {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    color: white;
}

.control-btn.random {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.control-btn.random:hover {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.control-btn.randomizing {
    animation: randomSpin 0.5s ease;
}

.control-btn.playing {
    animation: pulse 0.5s ease infinite;
}

label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.label-text {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-display {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

input[type="range"] {
    width: 150px;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: none;
}

/* Pad Grid */
.pad-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.pad {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.pad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.2s;
}

.pad:hover::before {
    opacity: 1;
}

.pad:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.pad.active {
    animation: padHit 0.3s ease;
    transform: scale(0.95);
}

.pad-label {
    font-size: 0.85rem;
    margin-bottom: 5px;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.pad-key {
    font-size: 1.5rem;
    z-index: 1;
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Individual pad colors */
.pad[data-pad="0"] { background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%); }
.pad[data-pad="1"] { background: linear-gradient(135deg, #4ECDC4 0%, #1A7F7A 100%); }
.pad[data-pad="2"] { background: linear-gradient(135deg, #FFE66D 0%, #F4A259 100%); }
.pad[data-pad="3"] { background: linear-gradient(135deg, #95E1D3 0%, #38A3A5 100%); }
.pad[data-pad="4"] { background: linear-gradient(135deg, #A8E6CF 0%, #56AB91 100%); }
.pad[data-pad="5"] { background: linear-gradient(135deg, #FFB6B9 0%, #FD79A8 100%); }
.pad[data-pad="6"] { background: linear-gradient(135deg, #C7CEEA 0%, #6C7AE0 100%); }
.pad[data-pad="7"] { background: linear-gradient(135deg, #FFDAC1 0%, #FF9A76 100%); }
.pad[data-pad="8"] { background: linear-gradient(135deg, #B4A7D6 0%, #7B68A0 100%); }
.pad[data-pad="9"] { background: linear-gradient(135deg, #89CFF0 0%, #4A8DB8 100%); }
.pad[data-pad="10"] { background: linear-gradient(135deg, #F7DC6F 0%, #D4AF37 100%); }
.pad[data-pad="11"] { background: linear-gradient(135deg, #85E085 0%, #45A049 100%); }
.pad[data-pad="12"] { background: linear-gradient(135deg, #FF8A80 0%, #E5393E 100%); }
.pad[data-pad="13"] { background: linear-gradient(135deg, #82B1FF 0%, #2962FF 100%); }
.pad[data-pad="14"] { background: linear-gradient(135deg, #EA80FC 0%, #9C27B0 100%); }
.pad[data-pad="15"] { background: linear-gradient(135deg, #FFD180 0%, #FF6E40 100%); }

/* Sequencer */
.sequencer-container {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease 0.6s backwards;
}

.sequencer-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sequencer-grid {
    display: grid;
    grid-template-columns: auto repeat(16, 1fr);
    gap: 3px;
    align-items: center;
}

.seq-label {
    font-size: 0.7rem;
    padding: 5px;
    text-align: right;
    font-weight: bold;
    opacity: 0.8;
}

.seq-step {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
}

.seq-step:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.seq-step.active {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.seq-step.playing {
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px #FFD700;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes padHit {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes randomSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .welcome-content {
        padding: 25px;
        max-width: 90%;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }

    .instructions {
        padding: 20px;
    }

    .instructions h3 {
        font-size: 1rem;
    }

    .instructions li {
        font-size: 0.9rem;
    }

    .key {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 0.9rem;
    }

    .key-label {
        font-size: 0.8rem;
    }

    .start-btn {
        font-size: 1.1rem;
        padding: 15px 30px;
    }

    .pad-container {
        gap: 10px;
    }

    .pad-label {
        font-size: 0.7rem;
    }

    .pad-key {
        font-size: 1.2rem;
    }

    .controls {
        flex-direction: column;
    }

    .sequencer-grid {
        gap: 2px;
    }

    .seq-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .pad-container {
        gap: 8px;
    }

    .pad-label {
        font-size: 0.6rem;
    }

    .pad-key {
        font-size: 1rem;
        padding: 3px 6px;
    }

    input[type="range"] {
        width: 120px;
    }
}

/* ================================
   MUSIC PET STYLES
   ================================ */

/* Pet Container */
.pet-container {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* Pet Info Header */
.pet-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pet-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pet-label {
    font-size: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.pet-change-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1.2rem;
    padding: 5px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pet-change-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Experience Bar */
.pet-exp-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pet-exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Pet Character */
.pet-character {
    font-size: 5rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.pet-character:hover {
    transform: scale(1.1);
}

/* Pet Animations */
@keyframes jump {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-15px) scaleY(1.15); }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

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

@keyframes clap {
    0%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.2); }
    50% { transform: scale(0.95); }
}

@keyframes silly {
    0%, 100% { transform: rotate(0deg) scaleX(1); }
    25% { transform: rotate(20deg) scaleX(1.3); }
    50% { transform: rotate(-20deg) scaleX(0.7); }
    75% { transform: rotate(20deg) scaleX(1.3); }
}

@keyframes nod {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(10px) rotate(5deg); }
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }
    25% {
        transform: scale(1.3) rotate(-15deg);
        filter: drop-shadow(0 0 20px gold);
    }
    50% {
        transform: scale(1.5) rotate(0deg);
        filter: drop-shadow(0 0 30px gold);
    }
    75% {
        transform: scale(1.3) rotate(15deg);
        filter: drop-shadow(0 0 20px gold);
    }
}

.pet-character.jump { animation: jump 0.6s ease; }
.pet-character.bounce { animation: bounce 0.6s ease; }
.pet-character.spin { animation: spin 0.6s ease; }
.pet-character.dance { animation: dance 0.6s ease; }
.pet-character.clap { animation: clap 0.6s ease; }
.pet-character.silly { animation: silly 0.6s ease; }
.pet-character.nod { animation: nod 0.4s ease; }
.pet-character.sway { animation: sway 0.8s ease; }
.pet-character.celebrate { animation: celebrate 2s ease; }

/* Sleepy State */
.pet-character.sleepy {
    opacity: 0.5;
    filter: grayscale(0.3);
    animation: sleepyBob 3s ease-in-out infinite;
}

@keyframes sleepyBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Speech Bubble */
.pet-speech-bubble {
    position: relative;
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: bold;
    max-width: 250px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.pet-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.pet-speech-bubble.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Pet Selection Modal */
.pet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.pet-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.3s ease;
}

.pet-modal-content h2,
.pet-modal-content h3 {
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.pet-modal-content h3 {
    font-size: 1.3rem;
    margin-top: 30px;
}

/* Pet Grid */
.pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pet-option {
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pet-option:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pet-option.current {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.pet-option.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.pet-option-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
}

.pet-option-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.pet-option-level {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Accessory Grid */
.accessory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.accessory-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessory-option:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.accessory-option.current {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.accessory-option.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.accessory-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}

.accessory-name {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.accessory-level {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Close Button */
.close-modal-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Pet Styles */
@media (max-width: 768px) {
    .pet-character {
        font-size: 4rem;
    }

    .pet-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .accessory-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 480px) {
    .pet-character {
        font-size: 3.5rem;
    }

    .pet-container {
        padding: 15px;
        min-height: 160px;
    }

    .pet-speech-bubble {
        font-size: 0.85rem;
        padding: 10px 15px;
    }
}
