@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

:root {
    --black: #1a1a1a;
    --white: #f5f5f5;
    --grey: #666;
    --light-grey: #ccc;
    --vintage-paper: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Courier Prime', monospace;
    background: linear-gradient(135deg, var(--vintage-paper) 0%, var(--white) 100%);
    color: var(--black);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Noise Texture Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Train Animation */
.train-container {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.train {
    position: relative;
    animation: trainMove 15s linear infinite;
}

.train-icon {
    font-size: 3rem;
    color: var(--black);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.smoke {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(100,100,100,0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: smokeRise 2s ease-out infinite;
}

.smoke1 {
    left: -10px;
    animation-delay: 0s;
}

.smoke2 {
    left: -20px;
    animation-delay: 0.5s;
}

.smoke3 {
    left: -30px;
    animation-delay: 1s;
}

@keyframes trainMove {
    0% { transform: translateX(-100px); }
    100% { transform: translateX(calc(100vw + 100px)); }
}

@keyframes smokeRise {
    0% {
        opacity: 0.6;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.5);
    }
}

.tracks {
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        var(--black) 0px,
        var(--black) 10px,
        transparent 10px,
        transparent 20px
    );
    margin-top: 10px;
    opacity: 0.3;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.vintage-frame {
    position: relative;
    padding: 4rem;
    border: 3px solid var(--black);
    background: var(--white);
    box-shadow: 
        0 0 0 10px var(--white),
        0 0 0 13px var(--black),
        20px 20px 40px rgba(0,0,0,0.3);
    animation: fadeInScale 1s ease-out;
    max-width: 90vw;
    width: 100%;
}

.corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--black);
}

.corner.top-left {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
}

.corner.top-right {
    top: -15px;
    right: -15px;
    border-left: none;
    border-bottom: none;
}

.corner.bottom-left {
    bottom: -15px;
    left: -15px;
    border-right: none;
    border-top: none;
}

.corner.bottom-right {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
}

.vintage-title {
    font-family: 'Playfair Display', serif;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.vintage-title .line {
    display: block;
    animation: slideInLeft 1s ease-out backwards;
}

.vintage-title .line:nth-child(1) {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    animation-delay: 0.3s;
}

.vintage-title .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    animation-delay: 0.6s;
}

.vintage-title .name {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 3px solid var(--black);
    border-bottom: 3px solid var(--black);
    padding: 1rem 0;
    margin-top: 1rem;
    animation-delay: 0.9s;
}

.ticket-punch {
    position: absolute;
    top: -30px;
    right: -30px;
    font-size: 3rem;
    color: var(--black);
    transform: rotate(15deg);
    animation: punchStamp 0.5s ease-out 1.5s backwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes punchStamp {
    0% {
        transform: rotate(15deg) scale(0) translateY(-100px);
    }
    50% {
        transform: rotate(15deg) scale(1.2);
    }
    100% {
        transform: rotate(15deg) scale(1);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: var(--black);
    animation: bounce 2s ease-in-out infinite;
}

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

/* Stations */
.station {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.station.visible {
    opacity: 1;
    transform: translateY(0);
}

.station-sign {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 3rem;
    border: 3px solid var(--black);
    background: var(--white);
    box-shadow: 5px 5px 0 var(--black);
    position: relative;
    max-width: 90vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.station-sign.grand {
    padding: 2rem 4rem;
    animation: shake 0.5s ease-in-out;
}

.station-sign i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.station-sign h2 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* Content Cards */
.content-card {
    max-width: 800px;
    width: 100%;
    padding: 3rem;
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: 15px 15px 0 rgba(0,0,0,0.2);
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--light-grey);
    pointer-events: none;
}

.vintage-badge {
    text-align: center;
    margin-bottom: 2rem;
    animation: rotateIn 0.8s ease-out;
}

.vintage-badge.large {
    margin-bottom: 1rem;
}

.vintage-badge i {
    color: var(--black);
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.content-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.vintage-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    color: var(--grey);
}

.vintage-text.large {
    font-size: 1.4rem;
}

.decorative-line {
    width: 200px;
    height: 3px;
    background: var(--black);
    margin: 2rem auto;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--black);
    border-radius: 50%;
    top: -3.5px;
}

.decorative-line::before {
    left: -15px;
}

.decorative-line::after {
    right: -15px;
}

/* Stamp */
.stamp {
    margin-top: 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border: 3px dashed var(--black);
    display: inline-block;
    transform: rotate(-5deg);
    animation: stampIn 0.6s ease-out 0.5s backwards;
}

.stamp i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

@keyframes stampIn {
    0% {
        opacity: 0;
        transform: rotate(-5deg) scale(0);
    }
    50% {
        transform: rotate(-5deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: rotate(-5deg) scale(1);
    }
}

/* Qualities Grid */
.qualities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.quality-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--black);
    background: var(--vintage-paper);
    transition: transform 0.3s ease;
}

.quality-item:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 0 var(--black);
}

.quality-item i {
    font-size: 2.5rem;
    color: var(--black);
}

.quality-item span {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Final Station - Celebration */
.celebration {
    position: relative;
    overflow: hidden;
}

.big-congrats {
    font-size: 3rem !important;
    margin: 2rem 0 !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Gift Reveal */
.gift-reveal {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px dashed var(--black);
}

.gift-box {
    text-align: center;
    margin: 2rem 0;
    animation: giftBounce 2s ease-in-out infinite;
}

.gift-box i {
    color: var(--black);
}

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

.vintage-ribbon {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--black);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    position: relative;
}

.vintage-ribbon::before,
.vintage-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    width: 0;
    height: 0;
    border-style: solid;
}

.vintage-ribbon::before {
    left: 0;
    border-width: 15px 0 0 20px;
    border-color: var(--black) transparent transparent transparent;
}

.vintage-ribbon::after {
    right: 0;
    border-width: 0 0 15px 20px;
    border-color: transparent transparent var(--black) transparent;
}

.vintage-ribbon i {
    margin-right: 0.5rem;
}

/* Confetti */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--black);
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(1000%) rotate(720deg);
        opacity: 0;
    }
}

/* Footer */
.vintage-footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--black);
    color: var(--white);
    position: relative;
    z-index: 2;
}

.railway-line {
    width: 200px;
    height: 4px;
    background: var(--white);
    margin: 0 auto 2rem;
    position: relative;
}

.railway-line::before,
.railway-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    top: -3px;
}

.railway-line::before {
    left: -15px;
}

.railway-line::after {
    right: -15px;
}

.vintage-footer p {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.vintage-footer i {
    margin: 0 0.5rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .vintage-frame {
        padding: 2.5rem;
    }

    .vintage-title .name {
        font-size: 3.5rem;
    }

    .content-card {
        padding: 2.5rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Train */
    .train-container {
        top: 10px;
    }

    .train-icon {
        font-size: 1.8rem;
    }

    .smoke {
        width: 12px;
        height: 12px;
    }

    /* Hero */
    .hero {
        padding: 0.5rem;
    }

    .vintage-frame {
        padding: 1.2rem;
        margin: 0.5rem;
        max-width: 95vw;
    }

    .corner {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }

    .corner.top-left,
    .corner.top-right {
        top: -8px;
    }

    .corner.bottom-left,
    .corner.bottom-right {
        bottom: -8px;
    }

    .corner.top-left,
    .corner.bottom-left {
        left: -8px;
    }

    .corner.top-right,
    .corner.bottom-right {
        right: -8px;
    }

    .vintage-title .line:nth-child(1) {
        font-size: 0.85rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.5rem;
    }

    .vintage-title .subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .vintage-title .name {
        font-size: 1.8rem;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        border-width: 2px;
    }

    .ticket-punch {
        font-size: 1.8rem;
        top: -15px;
        right: -15px;
    }

    .scroll-indicator {
        font-size: 1.3rem;
        bottom: 15px;
    }

    /* Stations */
    .station {
        padding: 2.5rem 0.8rem;
        min-height: auto;
    }

    .station-sign {
        padding: 0.8rem 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 3px 3px 0 var(--black);
        max-width: 95vw;
    }

    .station-sign i {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .station-sign h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .station-sign.grand {
        padding: 1.2rem 2rem;
    }

    /* Content Cards */
    .content-card {
        padding: 1.5rem;
        box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
        max-width: 95vw;
        margin: 0 auto;
    }

    .content-card::before {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }

    .content-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .vintage-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .vintage-text br {
        display: none;
    }

    .vintage-text.large {
        font-size: 1rem;
    }

    .vintage-badge i {
        font-size: 2rem !important;
    }

    .vintage-badge.large i {
        font-size: 2.5rem !important;
    }

    .decorative-line {
        width: 120px;
        margin: 1.5rem auto;
    }

    /* Qualities */
    .qualities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quality-item {
        padding: 1rem;
    }

    .quality-item i {
        font-size: 1.8rem;
    }

    .quality-item span {
        font-size: 1rem;
    }

    /* Celebration */
    .big-congrats {
        font-size: 1.6rem !important;
        line-height: 1.3;
    }

    /* Gift */
    .gift-box i {
        font-size: 3rem !important;
    }

    .gift-reveal h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .vintage-ribbon {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }

    /* Stamp */
    .stamp {
        font-size: 1.1rem;
        padding: 0.8rem 1.3rem;
    }

    .stamp i {
        font-size: 1.3rem;
    }

    /* Footer */
    .vintage-footer {
        padding: 2rem 1rem;
    }

    .vintage-footer p {
        font-size: 0.85rem;
    }

    /* Easter Egg Counter */
    .easter-egg-counter {
        top: 50px;
        right: 8px;
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        gap: 0.3rem;
    }

    /* Hidden Message */
    .message-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 92%;
    }

    .message-content i {
        font-size: 2.5rem;
    }

    .message-content p {
        font-size: 1.1rem;
    }

    .message-content button {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }

    /* Ticket Game */
    .ticket-game {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .ticket-game h4 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .game-instruction {
        font-size: 0.9rem;
        padding: 0 0.5rem;
        line-height: 1.4;
    }

    .ticket-card {
        padding: 0.8rem 0.6rem;
        max-width: 95%;
        box-shadow: 3px 3px 0 var(--black);
        border-width: 2px;
    }

    .ticket-header {
        font-size: 0.95rem;
        padding-bottom: 0.6rem;
        margin-bottom: 0.8rem;
    }

    .ticket-body {
        gap: 0.25rem;
        margin-bottom: 0.8rem;
        padding: 0;
    }

    .stamp-spot {
        border-width: 1px;
        max-width: 50px;
    }

    .stamp-spot i {
        font-size: 0.9rem;
    }

    .ticket-footer {
        font-size: 0.7rem;
        padding-top: 0.6rem;
        margin-top: 0.8rem;
    }

    .game-success {
        font-size: 1rem;
        padding: 1rem;
        margin-top: 1.5rem;
    }

    /* Memory Game */
    .memory-game {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .memory-game h4 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        max-width: 320px;
    }

    .memory-front i {
        font-size: 1.3rem;
    }

    .memory-back i {
        font-size: 1.6rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .vintage-frame {
        padding: 1rem;
        margin: 0.3rem;
        max-width: 98vw;
    }

    .vintage-title .line:nth-child(1) {
        font-size: 0.75rem;
    }

    .vintage-title .subtitle {
        font-size: 0.75rem;
    }

    .vintage-title .name {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }

    .station {
        padding: 2rem 0.5rem;
    }

    .station-sign {
        padding: 0.6rem 1rem;
        max-width: 98vw;
    }

    .station-sign h2 {
        font-size: 1.1rem;
    }

    .station-sign i {
        font-size: 1.1rem;
    }

    .content-card {
        padding: 1rem;
        max-width: 98vw;
    }

    .content-card h3 {
        font-size: 1.2rem;
    }

    .big-congrats {
        font-size: 1.4rem !important;
    }

    .memory-grid {
        max-width: 260px;
        gap: 0.3rem;
    }

    .memory-front i {
        font-size: 1.1rem;
    }

    .memory-back i {
        font-size: 1.3rem;
    }

    .ticket-card {
        padding: 0.6rem 0.4rem;
        max-width: 98%;
        border-width: 2px;
    }

    .ticket-header {
        font-size: 0.85rem;
        padding-bottom: 0.5rem;
    }

    .ticket-body {
        gap: 0.15rem;
    }

    .stamp-spot {
        border-width: 1px;
        max-width: 40px;
    }

    .stamp-spot i {
        font-size: 0.75rem;
    }

    .ticket-footer {
        font-size: 0.6rem;
        padding-top: 0.5rem;
    }

    .easter-egg-counter {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        top: 45px;
        right: 5px;
    }

    .message-content {
        padding: 1.2rem;
    }

    .message-content p {
        font-size: 1rem;
    }

    .gift-box i {
        font-size: 2.5rem !important;
    }

    .ticket-game h4,
    .memory-game h4 {
        font-size: 1.1rem;
    }

    .game-instruction {
        font-size: 0.85rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hidden-egg:hover {
        transform: none;
    }

    .quality-item:hover {
        transform: none;
    }

    .stamp-spot:hover {
        background: var(--white);
        transform: none;
    }

    .message-content button:hover {
        background: var(--black);
        transform: none;
    }

    /* Make touch targets larger */
    .hidden-egg {
        padding: 10px;
        margin: -10px;
    }

    .stamp-spot,
    .memory-card {
        min-height: 60px;
    }

    .scroll-indicator {
        padding: 10px;
    }
}

/* ========== INTERACTIVE GAMES & EASTER EGGS ========== */

/* Easter Egg Counter */
.easter-egg-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--black);
    color: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0.7;
    max-width: calc(100vw - 40px);
}

.easter-egg-counter:hover {
    opacity: 1;
    transform: scale(1.1);
}

.easter-egg-counter i {
    color: gold;
    animation: sparkle 2s ease-in-out infinite;
}

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

/* Hidden Eggs */
.hidden-egg {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hidden-egg:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px gold);
}

.hidden-egg.found {
    animation: eggFound 0.6s ease-out;
}

@keyframes eggFound {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(360deg); }
    100% { transform: scale(1); }
}

/* Hidden Message Overlay */
.hidden-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-out;
}

.hidden-message.active {
    display: flex;
}

.message-content {
    background: var(--white);
    padding: 3rem;
    border: 5px solid var(--black);
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    animation: slideInScale 0.5s ease-out;
}

.message-content i {
    font-size: 4rem;
    color: var(--black);
    margin-bottom: 1rem;
    animation: heartbeat 1s ease-in-out infinite;
}

.message-content p {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}

.message-content button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.message-content button:hover {
    background: var(--grey);
    transform: scale(1.05);
}

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

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ticket Stamp Game */
.ticket-game {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px dashed var(--black);
}

.ticket-game h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.game-instruction {
    text-align: center;
    color: var(--grey);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.ticket-card {
    background: var(--vintage-paper);
    border: 3px solid var(--black);
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 5px 5px 0 var(--black);
    width: 100%;
}

.ticket-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--black);
    margin-bottom: 1.5rem;
}

.ticket-body {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.stamp-spot {
    aspect-ratio: 1;
    border: 2px dashed var(--grey);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
    max-width: 60px;
    min-width: 0;
}

.stamp-spot:hover {
    background: var(--light-grey);
    transform: scale(1.05);
}

.stamp-spot i {
    font-size: 1.5rem;
    color: var(--light-grey);
}

.stamp-spot.stamped {
    background: var(--black);
    border-color: var(--black);
    animation: stampIt 0.4s ease-out;
}

.stamp-spot.stamped i {
    color: var(--white);
}

@keyframes stampIt {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(10deg); }
}

.ticket-footer {
    font-style: italic;
    text-align: center;
    padding-top: 1rem;
    border-top: 2px dashed var(--black);
    font-size: 0.9rem;
}

.game-success {
    display: none;
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--black);
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    border-radius: 5px;
    animation: successPop 0.6s ease-out;
}

.game-success.show {
    display: block;
}

.game-success i {
    margin-right: 0.5rem;
    color: gold;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Memory Game */
.memory-game {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 3px dashed var(--black);
}

.memory-game h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.memory-card {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.memory-front,
.memory-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--black);
    background: var(--white);
    backface-visibility: hidden;
    transition: transform 0.6s ease;
}

.memory-front {
    background: var(--vintage-paper);
}

.memory-front i {
    font-size: 2rem;
    color: var(--grey);
}

.memory-back {
    transform: rotateY(180deg);
    background: var(--white);
}

.memory-back i {
    font-size: 2.5rem;
    color: var(--black);
}

.memory-card.flipped .memory-front {
    transform: rotateY(180deg);
}

.memory-card.flipped .memory-back {
    transform: rotateY(0deg);
}

.memory-card.matched {
    animation: matchFound 0.6s ease-out;
}

.memory-card.matched .memory-back {
    background: var(--black);
}

.memory-card.matched .memory-back i {
    color: gold;
}

@keyframes matchFound {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(5deg); }
}
