/* ========================================
   FUN STYLES - Games, Animations, Easter Eggs
   ======================================== */

/* ========================================
   INTERNSHIP BANNER
   ======================================== */

.internship-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(90deg, #800000, #9B2335, #c4a4a4, #9B2335, #800000);
    background-size: 300% 100%;
    animation: gradientMove 4s ease infinite;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.has-banner {
    --banner-height: 50px;
}

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

.banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
}

.banner-icon {
    font-size: 1.25rem;
    animation: bounce 1s ease infinite;
}

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

.banner-btn {
    padding: 0.4rem 1rem;
    background: white;
    color: #800000;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Adjust page for banner */
.has-banner .page-header {
    padding-top: calc(var(--nav-height) + var(--banner-height) + 2rem);
}

.has-banner .hero {
    padding-top: calc(var(--nav-height) + var(--banner-height));
}

/* ========================================
   ROSE-HULMAN PAGE STYLES
   ======================================== */

.rose-header {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 50%);
}

.rose-logo-container {
    margin-bottom: 0.75rem;
}

.rose-emblem {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9B2335, #800000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(155, 35, 53, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 40px rgba(155, 35, 53, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(155, 35, 53, 0.7); }
}

.emblem-text {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.rose-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.rose-stat {
    text-align: center;
}

.rose-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #800000, #9B2335 70%, #c4a4a4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rose-stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Internship Section */
.internship-section {
    background: linear-gradient(135deg, rgba(155, 35, 53, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.internship-card {
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 1.25rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.internship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.internship-badge {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.pulse-animation {
    animation: pulse-badge 2s ease-in-out infinite;
}

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

.internship-card h2 {
    font-size: 1.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.internship-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.internship-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.detail-item i {
    color: var(--accent-primary);
    width: 20px;
}

/* Journey Cards */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.journey-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.journey-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.journey-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.journey-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Curriculum Tracks */
.curriculum-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.curriculum-track {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.75rem;
}

.curriculum-track h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.curriculum-track h3 i {
    color: var(--accent-primary);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.course-item.completed {
    color: #10b981;
}

.course-item.completed i {
    color: #10b981;
}

.course-item.current {
    background: rgba(155, 35, 53, 0.1);
    border: 1px solid rgba(155, 35, 53, 0.3);
    color: var(--accent-primary);
}

.course-item.upcoming {
    color: var(--text-muted);
}

/* Skills Showcase */
.skill-bar-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-bar-item {
    width: 100%;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-bar {
    height: 12px;
    background: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 6px;
    width: 0;
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    to { width: var(--fill-width); }
}

/* Hover Card Effect */
.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(155, 35, 53, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(155, 35, 53, 0.5); }
    to { box-shadow: 0 0 40px rgba(155, 35, 53, 0.7); }
}

/* ========================================
   FUN PAGE STYLES
   ======================================== */

.fun-page {
    background: var(--bg-primary);
}

.fun-link {
    background: linear-gradient(90deg, #9B2335, #e8a0a0, #800000, #e8a0a0, #9B2335) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: rainbow-move 3s ease infinite;
    font-weight: 700 !important;
}

.fun-link:hover {
    background: linear-gradient(90deg, #9B2335, #e8a0a0, #800000, #e8a0a0, #9B2335) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

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

.fun-header {
    position: relative;
    overflow: hidden;
}

.fun-emojis {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    left: var(--x);
    animation: float-up 4s ease-in-out infinite;
    animation-delay: var(--delay);
    opacity: 0.6;
}

@keyframes float-up {
    0%, 100% {
        transform: translateY(100px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.rainbow-text {
    background: linear-gradient(90deg, #9B2335, #c4a4a4, #800000, #c4a4a4, #9B2335);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-move 3s ease infinite;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.game-card {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
    border: 1px solid rgba(155, 35, 53, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0.9;
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(155, 35, 53, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.25;
    pointer-events: none;
}

.game-card > * {
    position: relative;
    z-index: 1;
}

.game-card:hover {
    border-color: rgba(155, 35, 53, 0.45);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 45px rgba(155, 35, 53, 0.22);
}

@media (hover: none) {
    .game-card:hover {
        transform: none;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    }

    .game-card:active {
        transform: scale(0.99);
    }
}

.game-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    background: linear-gradient(135deg, rgba(155, 35, 53, 0.18), rgba(155, 35, 53, 0.05));
    border: 1px solid rgba(155, 35, 53, 0.25);
    border-radius: 16px;
    box-shadow: inset 0 0 15px rgba(155, 35, 53, 0.08);
}

.game-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.game-card .btn {
    min-width: 140px;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
}

/* Game Modals */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

.game-container {
    background: #ffffff;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.close-game {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(155, 35, 53, 0.08);
    border: 1px solid rgba(155, 35, 53, 0.2);
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-game:hover {
    color: var(--accent-primary);
    background: rgba(155, 35, 53, 0.15);
}

.game-container h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.game-container > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.game-timer {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 1rem 0;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.game-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(155, 35, 53, 0.1);
    border: 1px solid rgba(155, 35, 53, 0.2);
    border-radius: 10px;
    display: none;
}

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

.game-result h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.game-result p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Click Speed Game */
.click-area {
    width: 200px;
    height: 200px;
    background: var(--accent-gradient);
    border-radius: 50%;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s ease;
    user-select: none;
    touch-action: manipulation;
}

.click-area:active {
    transform: scale(0.95);
}

.click-area span {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    color: #ffffff;
}

.click-area small {
    color: #ffffff;
    opacity: 0.8;
}

/* Typing Game */
.typing-container {
    max-width: 600px;
}

.typing-display {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typing-word {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--accent-primary);
}

.typing-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-align: center;
    font-family: var(--font-mono);
    touch-action: manipulation;
}

.typing-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.typing-stats {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.typing-stats strong {
    color: var(--accent-primary);
}

/* Memory Game */
.memory-container {
    max-width: 450px;
}

.memory-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}

.memory-card {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.memory-card:hover {
    border-color: var(--accent-primary);
    background: rgba(155, 35, 53, 0.05);
}

.memory-card.flipped {
    background: var(--accent-gradient);
    border-color: transparent;
}

.memory-card.matched {
    background: #10b981;
    border-color: transparent;
    cursor: default;
}

.memory-card .card-front {
    display: none;
}

.memory-card .card-back {
    color: var(--text-muted);
}

.memory-card.flipped .card-front,
.memory-card.matched .card-front {
    display: block;
}

.memory-card.flipped .card-back,
.memory-card.matched .card-back {
    display: none;
}

/* Reaction Game */
.reaction-box {
    width: 100%;
    height: 200px;
    background: #ef4444;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.1s ease;
    margin: 1rem 0;
    touch-action: manipulation;
}

.reaction-box.waiting {
    background: #ef4444;
}

.reaction-box.ready {
    background: #10b981;
}

.reaction-box.too-early {
    background: #f59e0b;
}

.reaction-box span {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    color: white;
}

.reaction-history {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.reaction-time {
    padding: 0.25rem 0.75rem;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Fun Facts */
.fun-facts-carousel {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fun-fact {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.fun-fact.active {
    opacity: 1;
    transform: translateX(0);
}

.fact-emoji {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.fun-fact p {
    font-size: 1.25rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--text-secondary);
}

.fact-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.fact-dot {
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
}

.fact-dot:hover {
    opacity: 0.8;
}

.fact-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    opacity: 1;
}

/* Leaderboard */
.leaderboard {
    max-width: 500px;
    margin: 0 auto;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.leaderboard-item:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 15px rgba(155, 35, 53, 0.1);
}

.lb-game {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

.lb-score {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

/* Easter Egg */
.easter-egg {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    z-index: 9999;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .internship-banner {
        height: auto;
        padding: 0.5rem;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .banner-icon {
        display: none;
    }

    .rose-stats {
        gap: 1.5rem;
    }

    .rose-stat-number {
        font-size: 2rem;
    }

    .internship-card {
        padding: 2rem 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .memory-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .memory-card {
        font-size: 1.2rem;
    }
}

/* ========================================
   ENHANCED RESPONSIVE STYLES
   ======================================== */

/* Tablets */
@media (max-width: 768px) {
    /* Internship card */
    .internship-card {
        padding: 1.5rem 1rem;
    }

    .internship-card h2 {
        font-size: 1.5rem;
    }

    .internship-card p {
        font-size: 1rem;
    }

    .internship-badge {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .detail-item {
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    /* Journey grid */
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .journey-card {
        padding: 1rem;
    }

    .journey-icon {
        font-size: 1.75rem;
    }

    .journey-card h3 {
        font-size: 1rem;
    }

    .journey-card p {
        font-size: 0.85rem;
    }

    /* Curriculum */
    .curriculum-container {
        grid-template-columns: 1fr;
    }

    /* Games grid */
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem;
    }

    .game-card {
        padding: 1.25rem 1rem;
    }

    .game-icon {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }

    .game-card h3 {
        font-size: 1rem;
    }

    .game-card .btn {
        width: 100%;
        max-width: none;
    }

    /* Game modals */
    .game-modal {
        align-items: flex-end;
        padding: 0;
        height: 100vh;
        height: 100dvh;
    }

    .game-container {
        width: 100%;
        max-width: 100%;
        padding: 1.25rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
        margin: 0;
        max-height: calc(100dvh - 0.5rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 18px 18px 0 0;
    }

    .close-game {
        position: sticky;
        top: 0.75rem;
        margin-left: auto;
        align-self: flex-end;
        z-index: 2;
    }

    .game-container h2 {
        font-size: 1.5rem;
    }

    .game-timer {
        font-size: 2.5rem;
    }

    .click-area {
        width: 150px;
        height: 150px;
    }

    .click-area span {
        font-size: 2.5rem;
    }

    /* CTA content */
    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    /* Leaderboard */
    .leaderboard-item {
        padding: 0.75rem 1rem;
    }

    .lb-game {
        font-size: 0.9rem;
    }

    .lb-score {
        font-size: 1rem;
    }

    /* Fun facts */
    .fact-emoji {
        font-size: 3rem;
    }

    .fun-fact p {
        font-size: 1.1rem;
    }

    /* Skill bars */
    .skill-bar-header {
        font-size: 0.9rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    /* Banner */
    .internship-banner {
        padding: 0.4rem;
    }

    .banner-content {
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .banner-btn {
        padding: 0.3rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Internship card */
    .internship-card h2 {
        font-size: 1.25rem;
    }

    /* Journey grid - single column */
    .journey-grid {
        grid-template-columns: 1fr;
    }

    /* Games grid - single column */
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        padding: 1rem;
    }

    .game-icon {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .game-card .btn {
        width: 100%;
        max-width: none;
    }

    /* Game modals */
    .game-modal {
        padding: 0;
    }

    .game-container {
        padding: 1.1rem 1rem calc(1.75rem + env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
    }

    .game-container h2 {
        font-size: 1.25rem;
    }

    .game-timer {
        font-size: 2rem;
    }

    .click-area {
        width: 120px;
        height: 120px;
    }

    .click-area span {
        font-size: 2rem;
    }

    /* Typing game */
    .typing-word {
        font-size: 1.5rem;
    }

    .typing-input {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .typing-stats {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    /* Memory game */
    .memory-grid {
        gap: 4px;
    }

    .memory-card {
        font-size: 1rem;
        border-radius: 6px;
    }

    /* Reaction game */
    .reaction-box {
        height: 150px;
    }

    .reaction-box span {
        font-size: 1rem;
    }

    /* Rose stats */
    .rose-stats {
        gap: 0.75rem;
    }

    .rose-stat-number {
        font-size: 1.75rem;
    }

    .rose-stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    /* Rose emblem */
    .rose-emblem {
        width: 60px;
        height: 60px;
    }

    .emblem-text {
        font-size: 1.1rem;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }

    /* Fun facts */
    .fun-facts-carousel {
        min-height: 120px;
    }

    .fact-emoji {
        font-size: 2.5rem;
    }

    .fun-fact p {
        font-size: 1rem;
    }

    .fact-dots {
        gap: 0.4rem;
    }

    .fact-dot {
        width: 10px;
        height: 10px;
    }

    /* Leaderboard */
    .leaderboard-item {
        padding: 0.6rem 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .banner-content span {
        font-size: 0.7rem;
    }

    .internship-card h2 {
        font-size: 1.1rem;
    }

    .rose-stat-number {
        font-size: 1.5rem;
    }

    .game-container h2 {
        font-size: 1.1rem;
    }

    .click-area {
        width: 100px;
        height: 100px;
    }

    .click-area span {
        font-size: 1.75rem;
    }

    .typing-word {
        font-size: 1.25rem;
    }

    .game-icon {
        width: 46px;
        height: 46px;
        font-size: 1.6rem;
    }

    .memory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape orientation fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .game-modal {
        padding: 0.5rem;
        height: 100vh;
        height: 100dvh;
    }

    .game-container {
        max-height: 95vh;
        padding: 1rem;
    }

    .click-area {
        width: 100px;
        height: 100px;
    }

    .click-area span {
        font-size: 1.5rem;
    }

    .game-timer {
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    .reaction-box {
        height: 100px;
    }
}

/* ========================================
   BACKGROUND SECTION FIXES
   ======================================== */

/* Fix rose-stats in background sections */
.section-bg .rose-stat-number {
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-bg .rose-stat-label {
    color: rgba(255, 255, 255, 0.85);
}

/* Fix internship card in background sections */
.section-bg .internship-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.section-bg .internship-card h2 {
    color: #ffffff;
}

.section-bg .internship-card p {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .detail-item {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .detail-item i {
    color: rgba(255, 255, 255, 0.9);
}

/* Fix game cards in background sections */
.section-bg .game-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.section-bg .game-card h3 {
    color: #ffffff;
}

.section-bg .game-card p {
    color: rgba(255, 255, 255, 0.85);
}

.section-bg .game-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Fix leaderboard in background sections */
.section-bg .leaderboard-item {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-bg .lb-game {
    color: #ffffff;
}

.section-bg .lb-score {
    color: rgba(255, 255, 255, 0.9);
}
