* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #ecdec0;
    --burgundy: #9a2720;
    --gray: #666;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--cream) 0%, #d4c5a9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Vintage texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px);
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 10px 40px rgba(154, 39, 32, 0.15),
        0 0 0 1px rgba(154, 39, 32, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

/* Decorative corner ornaments */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--burgundy) 0%, transparent 70%);
    opacity: 0.1;
}

.card::before {
    top: 0;
    left: 0;
    border-top-left-radius: 20px;
}

.card::after {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
    border-top-left-radius: 20px;
}

/* Header Section */
.card-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.photo-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    position: relative;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 3px solid var(--burgundy);
    border-radius: 50%;
    opacity: 0.3;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--burgundy);
    border-radius: 50%;
    opacity: 0.5;
}

.store-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 20px rgba(154, 39, 32, 0.2);
    position: relative;
    z-index: 1;
}

.store-name {
    font-size: 28px;
    color: var(--burgundy);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: slideUp 0.5s ease-out 0.3s both;
}

.store-tagline {
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
    letter-spacing: 0.3px;
    animation: slideUp 0.5s ease-out 0.4s both;
}

/* Buttons Grid */
.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before,
.btn:active::before {
    opacity: 1;
}

.btn-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.btn span {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Primary Button - Save Contact */
.btn-primary {
    background: linear-gradient(135deg, var(--burgundy) 0%, #7a1f19 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(154, 39, 32, 0.3);
    border: 2px solid var(--burgundy);
}

.btn-primary:hover,
.btn-primary:active {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(154, 39, 32, 0.4);
}

.btn-full {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 22px 20px;
    animation: slideUp 0.5s ease-out 0.5s both;
}

.btn-full .btn-icon {
    margin-bottom: 0;
}

.btn-full span {
    font-size: 16px;
    font-weight: 600;
}

/* Secondary Buttons */
.btn-secondary {
    background: white;
    color: var(--burgundy);
    border: 2px solid var(--cream);
    box-shadow: 0 2px 10px rgba(154, 39, 32, 0.1);
}

.btn-secondary:hover,
.btn-secondary:active {
    transform: translateY(-2px);
    border-color: var(--burgundy);
    box-shadow: 0 4px 15px rgba(154, 39, 32, 0.2);
}

.btn-secondary:hover .btn-icon,
.btn-secondary:active .btn-icon {
    transform: scale(1.1);
}

/* Social Media Buttons */
.btn-social {
    background: linear-gradient(135deg, var(--cream) 0%, #dcc9a9 100%);
    border-color: var(--cream);
}

/* Button animation stagger */
.btn-secondary:nth-child(2) { animation: scaleIn 0.4s ease-out 0.6s both; }
.btn-secondary:nth-child(3) { animation: scaleIn 0.4s ease-out 0.65s both; }
.btn-secondary:nth-child(4) { animation: scaleIn 0.4s ease-out 0.7s both; }
.btn-secondary:nth-child(5) { animation: scaleIn 0.4s ease-out 0.75s both; }
.btn-secondary:nth-child(6) { animation: scaleIn 0.4s ease-out 0.8s both; }
.btn-secondary:nth-child(7) { animation: scaleIn 0.4s ease-out 0.85s both; }

/* Footer Ornament */
.card-footer {
    text-align: center;
    padding-top: 20px;
}

.ornament {
    width: 100px;
    height: 3px;
    margin: 0 auto 20px;
    background: linear-gradient(90deg, transparent, var(--burgundy), transparent);
    position: relative;
    opacity: 0.4;
}

.ornament::before,
.ornament::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--burgundy);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.ornament::before {
    left: -15px;
}

.ornament::after {
    right: -15px;
}

.powered-by {
    font-size: 12px;
    color: var(--gray);
    margin-top: 15px;
    opacity: 0.8;
}

.powered-by a {
    color: var(--burgundy);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.powered-by a:hover {
    opacity: 0.7;
}

/* Pac-Man Game Styles */
.game-container {
    margin: 30px 0 20px;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, #f5ead8 100%);
    border-radius: 15px;
    border: 2px solid rgba(154, 39, 32, 0.1);
    text-align: center;
    animation: slideUp 0.5s ease-out 0.9s both;
}

.game-title {
    font-size: 18px;
    color: var(--burgundy);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#snake-canvas {
    width: 100%;
    max-width: 320px;
    height: auto;
    border: 3px solid var(--burgundy);
    border-radius: 10px;
    background: #f5ead0;
    display: block;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(154, 39, 32, 0.2);
    touch-action: none;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.control-row {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid var(--burgundy);
    border-radius: 10px;
    color: var(--burgundy);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(154, 39, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:active {
    transform: scale(0.95);
    background: var(--burgundy);
    color: white;
}

.control-btn:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(154, 39, 32, 0.25);
}

.game-score {
    font-size: 16px;
    font-weight: 600;
    color: var(--burgundy);
    padding: 10px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(154, 39, 32, 0.1);
}

#score {
    color: var(--gray);
    font-weight: 700;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .card {
        padding: 30px 20px;
    }

    .photo-frame {
        width: 120px;
        height: 120px;
    }

    .store-name {
        font-size: 24px;
    }

    .store-tagline {
        font-size: 13px;
    }

    .buttons-grid {
        gap: 12px;
    }

    .btn {
        padding: 18px 12px;
        min-height: 90px;
    }

    .btn-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }

    .btn span {
        font-size: 13px;
    }

    .btn-full {
        padding: 20px 18px;
    }

    .btn-full span {
        font-size: 15px;
    }

    .game-container {
        padding: 20px 15px;
        margin: 25px 0 15px;
    }

    .game-title {
        font-size: 16px;
    }

    #snake-canvas {
        max-width: 280px;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .game-score {
        font-size: 14px;
        min-width: 130px;
    }

    .powered-by {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .store-name {
        font-size: 22px;
    }

    .btn {
        padding: 16px 10px;
        min-height: 85px;
    }

    .btn span {
        font-size: 12px;
    }

    #snake-canvas {
        max-width: 240px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.97);
    }

    .btn-primary:active {
        transform: scale(0.97) translateY(0);
    }
}

/* Accessibility */
.btn:focus-visible {
    outline: 3px solid var(--burgundy);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    body {
        background: white;
    }

    body::before {
        display: none;
    }

    .card {
        box-shadow: none;
        border: 2px solid var(--gray);
    }
}