@font-face {
    font-family: 'GrassEvent';
    src: url('resources/GRASSEVENT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- Universal & Theme Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: #f5fff5;
    color: #334e58; 
    line-height: 1.7;
    overflow-x: hidden;
    perspective: 1200px; 
}

h1, h2, h3 { font-family: 'Lora', serif; color: #2a7d31; }

/* --- Meadow Hero Section (Homepage) --- */
#meadow-hero { /* Styles for the BIG hero on index.html */
    min-height: 90vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    position: relative; 
    overflow: hidden; 
    padding: 20px;
}
/* ... other existing #meadow-hero child styles like .sky-background, .hills-background etc. ... */
.sky-background {
    position: absolute; top: 0; left: 0; right: 0; height: 78%;
    background: linear-gradient(to bottom, #87CEEB 0%, #ADD8E6 70%, #c1e1ec 100%);
    z-index: -3;
}
.cloud {
    position: absolute; background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%; opacity: 0.8; filter: blur(2px);
    animation: drift 60s linear infinite;
}
.cloud1 { width: 200px; height: 60px; top: 10%; left: 15%; animation-duration: 70s; }
.cloud2 { width: 300px; height: 80px; top: 20%; left: 60%; opacity: 0.6; animation-duration: 90s; animation-delay: -20s; }
.cloud3 { width: 150px; height: 50px; top: 35%; left: 30%; animation-duration: 50s; }
.cloud::before, .cloud::after {
    content: ''; position: absolute; background-color: rgba(255, 255, 255, 0.9); border-radius: 50%;
}
.cloud1::before { width: 100px; height: 100px; bottom: 0; left: 30px; }
.cloud1::after { width: 120px; height: 80px; bottom: 0; right: 20px; }
.cloud2::before { width: 150px; height: 120px; bottom: 0; left: 50px; }
.cloud2::after { width: 180px; height: 100px; bottom: 0; right: 40px; }
.cloud3::before { width: 80px; height: 80px; bottom: 0; left: 20px; }
.cloud3::after { width: 90px; height: 70px; bottom: 0; right: 15px; }

@keyframes drift {
    from { transform: translateX(-250px); }
    to { transform: translateX(calc(100vw + 250px)); }
}
.hills-background {
    position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,20 Q25,5 50,15 T100,10 L100,20 Z' fill='%236B8E23'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0,15 Q20,0 45,10 T90,5 L100,20 L0,20 Z' fill='%2390EE90'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-position: 0 100%, -50px 95%;
    background-size: 300px 100px, 400px 120px; z-index: -2;
    animation: swayHills 10s ease-in-out infinite alternate;
}
@keyframes swayHills { from { background-position-x: 0, -50px; } to { background-position-x: -10px, -60px; } }

#meadow-hero .hero-content-meadow #meadow-hero-logo { /* Specific to homepage hero logo */
    max-width: 280px; margin-bottom: 15px;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.2));
    animation: gentleBob 5s ease-in-out infinite alternate;
    position: relative; z-index: 1;
}
@keyframes gentleBob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

#meadow-hero .hero-content-meadow #site-title-meadow { /* Specific to homepage hero title */
    font-family: 'GrassEvent', 'Lora', serif;
    font-size: clamp(2.8rem, 7vw, 4.5rem); color: #386641;
    text-shadow: 1px 1px 0px #fff, 2px 2px 3px rgba(0,0,0,0.1); margin-bottom: 5px;
}
#meadow-hero .hero-content-meadow #site-tagline-meadow { /* Specific to homepage hero tagline */
    font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: #556B2F; margin-bottom: 30px;
}
#meadow-hero .hero-content-meadow .cta-button-meadow { /* Specific to homepage hero CTA */
    font-family: 'Nunito', sans-serif; font-weight: 800; padding: 12px 28px;
    background-color: #6B8E23; color: #fff; text-decoration: none;
    border-radius: 50px; font-size: 1.1rem; box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
#meadow-hero .hero-content-meadow .cta-button-meadow:hover { transform: translateY(-2px); background-color: #556B2F; box-shadow: 0 6px 12px rgba(0,0,0,0.25); }
#meadow-hero .hero-content-meadow .cta-button-meadow i { margin-left: 8px; }
#meadow-hero .hero-content-meadow .cta-button-meadow--ghost {
    background-color: transparent;
    color: #386641;
    border: 2px solid #6B8E23;
    box-shadow: none;
}
#meadow-hero .hero-content-meadow .cta-button-meadow--ghost:hover {
    background-color: rgba(107, 142, 35, 0.12);
    border-color: #556B2F;
    color: #2a4d1e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.hero-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}


/* --- Site Header on Detail Page (Targeting the element with ID and Class) --- */
#meadow-hero.site-header-detail-page { /* INCREASED SPECIFICITY HERE */
    min-height: auto !important; /* Override homepage hero min-height forcefully if needed */
    height: 80px; 
    padding: 10px 20px;
    background: linear-gradient(to bottom, #a1d2e6 0%, #bde0ee 100%); /* Adjusted gradient */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex; /* Reset from column to row */
    flex-direction: row; 
    justify-content: flex-start; 
    align-items: center; /* Vertically center items */
    text-align: left; 
    position: sticky; /* Make it sticky to the top */
    top: 0;
    z-index: 1001; /* Ensure it's above page content */
    overflow: visible; /* Allow potential dropdowns if any */
}

#meadow-hero.site-header-detail-page .hero-content-meadow { /* Styles for content within smaller header */
    width: 100%; 
    text-align: left;
    display: flex; /* To align logo and any potential nav items */
    align-items: center;
    justify-content: flex-start; /* Align items to the start */
    padding: 0; /* Reset padding from main hero if any */
    margin: 0; /* Reset margin */
}

#meadow-hero.site-header-detail-page .sky-background,
#meadow-hero.site-header-detail-page .hills-background,
#meadow-hero.site-header-detail-page #site-title-meadow, /* Hide big title */
#meadow-hero.site-header-detail-page #site-tagline-meadow, /* Hide tagline */
#meadow-hero.site-header-detail-page .cta-button-meadow { /* Hide CTA */
    display: none; 
}

#meadow-hero-logo-small { /* ID used in game-detail.html for the smaller logo */
    max-height: 50px; /* Adjusted size for smaller header */
    max-width: 150px; /* Ensure it doesn't get too wide */
    filter: drop-shadow(1px 1px 3px rgba(0,0,0,0.15));
    animation: none; 
    margin: 0; 
    display: block; /* Ensure it behaves as a block for margin/padding */
}
.header-logo-link {
    display: inline-block;
}
.header-back-link {
    color: #386641;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-left: 20px;
}
.header-back-link:hover { text-decoration: underline; }
.header-back-link i { margin-right: 5px; }

.game-banner-name-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-banner-name-link:hover .game-banner-name-meadow {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Focus Styles for Accessibility --- */
.cta-button-meadow:focus-visible,
.game-banner-action-button:focus-visible,
.action-button-detail:focus-visible,
.back-link:focus-visible,
.header-back-link:focus-visible,
.header-logo-link:focus-visible,
.game-banner-name-link:focus-visible {
    outline: 3px solid #2a7d31;
    outline-offset: 3px;
}


/* --- Game Pastures (Full-Width Banners on Homepage) --- */
#game-pastures { 
    padding: 40px 20px; 
    background-color: #f5fff5; 
}
#game-pastures h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); color: #2a7d31; margin-bottom: 30px; }

#games-collection-meadow { 
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.game-banner-meadow { 
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-radius: 12px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}
.game-banner-meadow:hover {
    transform: translateY(-10px) rotateX(8deg) rotateY(-4deg) scale(1.03);
    box-shadow: 0 12px 30px rgba(42, 125, 49, 0.25);
}

.game-logo-wrapper-meadow {
    flex-shrink: 0;
    width: 180px;
    padding: 8px;
    background-color: #e8f5e9;
    border: 4px solid #6B8E23;
    border-radius: 10px;
    box-shadow:
        inset 0 0 0 2px #90EE90,
        2px 2px 6px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
.game-banner-logo-img { 
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.game-details-meadow { 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.game-banner-name-meadow {
    font-size: 1.6rem;
    color: #386641;
    margin-bottom: 8px;
}
.game-banner-description-snippet {
    font-size: 0.9rem;
    color: #5a6e5f;
    line-height: 1.5;
    margin-bottom: 15px;
}
.game-banner-platforms-preview {
    font-size: 0.9rem;
    color: #556B2F;
    margin-bottom: 15px;
}
.game-banner-platforms-preview strong { font-weight: 700; }
.game-banner-platforms-preview i { margin-left: 5px; color: #6B8E23; }

.game-banner-copyright {
    font-size: 0.78rem;
    color: #8a9e8f;
    margin-bottom: 10px;
    font-style: italic;
}

.game-banner-links {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.game-banner-action-button {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    padding: 8px 15px; text-decoration: none;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid;
    font-size: 0.9rem;
}
.game-banner-action-button {
    background-color: #f0f0f0; color: #555; border-color: #ccc;
}
.game-banner-action-button.play { background-color: #90EE90; color: #386641; border-color: #77cc77; }
.game-banner-action-button.youtube { background-color: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.game-banner-action-button:hover { box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.game-banner-action-button.disabled {
    background-color: #e0e0e0; color: #999; border-color: #ccc;
    cursor: not-allowed; pointer-events: none;
}
.game-banner-action-button.disabled:hover { box-shadow: none; transform: none; }


/* --- Game Detail Page Specific Styles --- */
.game-detail-page-content {
    max-width: 960px;
    margin: 30px auto; /* Space below sticky header */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.breadcrumb-nav {
    margin-bottom: 25px;
    font-size: 0.9rem;
}
.back-link {
    color: #556B2F;
    text-decoration: none;
    font-weight: 700;
}
.back-link:hover {
    text-decoration: underline;
}
#breadcrumb-game-name {
    color: #777;
}

.game-hero-detail {
    text-align: center;
    margin-bottom: 40px;
}
.hero-visual-container {
    margin-bottom: 20px;
    background-color: #e9f5e9; 
    border-radius: 8px;
    overflow: hidden; 
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.youtube-embed-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
#game-hero-image-detail {
    max-width: 100%;
    object-fit: cover; 
    border-radius: 0; 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%;
}

.hero-video-fallback-link {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #6B8E23;
    margin-top: 6px;
    text-decoration: none;
}
.hero-video-fallback-link:hover { text-decoration: underline; }

.hero-video-thumb-link {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: block;
}
.hero-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-video-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
    pointer-events: none;
    transition: transform 0.15s ease, color 0.15s ease;
}
.hero-video-thumb-link:hover .hero-video-play-btn {
    color: #ff0000;
    transform: translate(-50%, -50%) scale(1.12);
}

.hero-video-label {
    font-size: 1.1rem;
    color: #2a7d31;
    margin-bottom: 10px;
    text-align: center;
}

#game-title-detail {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: #386641;
    margin-bottom: 5px;
}
#game-tagline-detail {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #6B8E23; 
    font-style: italic;
}

.game-content-columns {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 40px;
}

.game-story-and-sights h2,
.game-essentials-and-actions h3 {
    font-size: 1.5rem;
    color: #2a7d31;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4e6d4; 
}

#game-full-description.prose-style .description-subheading {
    font-size: 1.1rem;
    color: #386641;
    font-weight: 700;
    margin-top: 1.4em;
    margin-bottom: 0.4em;
}
.key-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}
.key-features-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.7;
    color: #4a5e52;
}
.key-features-list li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #6B8E23;
    font-weight: 700;
}
#game-full-description.prose-style p {
    margin-bottom: 1em;
    line-height: 1.7;
    color: #4a5e52;
}
#game-full-description.prose-style strong {
    color: #386641;
    font-weight: 700;
}

.platform-cards-section {
    margin-top: 30px;
}
.platform-cards-section h2 {
    font-size: 1.5rem;
    color: #2a7d31;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4e6d4;
}
.platform-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #fafffa;
    border: 1px solid #ddeedd;
    border-radius: 8px;
    margin-bottom: 12px;
}
.platform-card-icon {
    font-size: 2rem;
    color: #6B8E23;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    padding-top: 2px;
}
.platform-card-icon-cluster {
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-shrink: 0;
    align-items: flex-start;
    padding-top: 2px;
}
.platform-card-info {
    flex-grow: 1;
}
.platform-card-name {
    font-family: 'Lora', serif;
    font-weight: 700;
    color: #386641;
    font-size: 1.05rem;
    margin-bottom: 4px;
}
.platform-card-control {
    font-size: 0.875rem;
    color: #4a5e52;
    line-height: 1.4;
    margin-bottom: 10px;
}
.platform-card-button {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-card-button.available {
    background-color: #6B8E23;
    color: #fff;
    border-color: #556B2F;
}
.platform-card-button.available:hover {
    background-color: #556B2F;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.platform-card-button.unavailable {
    background-color: #e0e0e0;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
}

.game-quote-meadow {
    border-left: 4px solid #6B8E23;
    margin: 25px 0;
    padding: 12px 20px;
    background-color: #f5fff5;
    border-radius: 0 6px 6px 0;
}
.game-quote-meadow p {
    font-style: italic;
    color: #4a5e52;
    line-height: 1.6;
    margin-bottom: 6px;
}
.game-quote-meadow cite {
    font-size: 0.85rem;
    color: #6B8E23;
    font-style: normal;
    font-weight: 700;
}

.details-panel, .actions-panel {
    background-color: #fafffa; 
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddeedd;
    margin-bottom: 25px;
}
.details-panel p {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #4a5e52;
}
.details-panel strong {
    color: #386641;
}
.platform-list ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.platform-list ul li i {
    font-size: 1.6rem;
    color: #6B8E23;
}
.platform-text-alongside-icons {
    font-size: 0.9rem;
    color: #556B2F;
    margin-left: 5px;
}

.actions-panel {
    text-align: center;
}
.watch-thumb-container {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}
.watch-thumb-link {
    display: block;
    position: relative;
}
.watch-thumb-img {
    width: 100%;
    display: block;
}
.watch-thumb-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: none;
    transition: transform 0.15s ease, color 0.15s ease;
}
.watch-thumb-link:hover .watch-thumb-play {
    color: #ff0000;
    transform: translate(-50%, -50%) scale(1.12);
}
.action-button-detail {
    font-family: 'Nunito', sans-serif; font-weight: 700;
    padding: 12px 20px; text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    display: block; 
    margin-bottom: 10px;
    border: 1px solid;
    font-size: 1rem;
    text-align: center;
}
.action-button-detail.primary-action {
    background-color: #6B8E23; color: #fff; border-color: #556B2F;
}
.action-button-detail.primary-action:hover {
    background-color: #556B2F;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.action-button-detail.secondary-action.youtube-action {
    background-color: #ADD8E6; color: #1e5067; border-color: #9cc2d2;
}
.action-button-detail.secondary-action.youtube-action i { margin-right: 6px; }
.action-button-detail.secondary-action.youtube-action:hover {
    background-color: #9ebfcf;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.action-button-detail.disabled-detail { /* Class used in game-detail.js */
    background-color: #e0e0e0; color: #999; border-color: #ccc;
    cursor: not-allowed; pointer-events: none;
}
.action-button-detail.disabled-detail:hover { box-shadow: none; transform: none; }


/* --- Footer (Shared) --- */
#meadow-footer {
    text-align: center; padding: 25px 20px;
    background-color: #e6f2e6; border-top: 1px solid #cde2cd;
    color: #556B2F; font-size: 0.9rem;
}
.footer-inspiration-meadow { font-size: 0.8rem; color: #6B8E23; margin-top: 5px; }

/* Utility for Modals (if any were still used) */
.modal-hidden-meadow { display: none !important; }


/* --- Section Wave Dividers --- */
.wave-top {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-top svg {
    display: block;
    width: 100%;
    height: 80px;
}
.wave-into-beyond { background-color: #f5fff5; }
.wave-into-fieldnotes { background-color: #eef7e8; }
.wave-into-about { background-color: #faf6ee; }

/* --- Shared Section Styles --- */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
}
.section-heading-underline {
    width: 60px;
    height: 3px;
    background: #6B8E23;
    border-radius: 2px;
    margin: 12px auto 16px;
}
.section-subtitle {
    text-align: center;
    color: #556B2F;
    font-size: 1rem;
    margin-bottom: 40px;
}

/* --- Beyond the Screen Section --- */
#beyond-the-screen { background-color: #eef7e8; }
#beyond-the-screen h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #2a7d31;
    margin-bottom: 0;
}

#tabletop-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tabletop-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(42, 125, 49, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}
.tabletop-card:hover {
    transform: translateY(-10px) rotateX(8deg) rotateY(-4deg) scale(1.03);
    box-shadow: 0 12px 30px rgba(42, 125, 49, 0.25);
}
.tabletop-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.tabletop-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.tabletop-card-name {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: #2a7d31;
    margin-bottom: 8px;
}
.tabletop-card-description {
    font-size: 0.9rem;
    color: #556B2F;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 16px;
}
.tabletop-card-link {
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 20px;
    background-color: #386641;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.tabletop-card-link:hover {
    background-color: #2a7d31;
    transform: translateY(-1px);
}

/* --- Field Notes Section --- */
#field-notes { background-color: #faf6ee; }
#field-notes h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #2a7d31;
    margin-bottom: 0;
}

#studio-videos-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.video-card {
    background-color: #ffffff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.07);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    border-radius: 12px;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}
.video-card:hover {
    transform: translateY(-10px) rotateX(8deg) rotateY(-4deg) scale(1.03);
    box-shadow: 0 12px 30px rgba(42, 125, 49, 0.25);
}

.video-thumb-wrapper {
    flex-shrink: 0;
    width: 300px;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.video-thumb-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
}
.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.video-thumb-wrapper:hover .video-thumb-img { transform: scale(1.04); }

.video-play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.video-play-overlay i { color: #fff; font-size: 1.3rem; margin-left: 4px; }
.video-thumb-wrapper:hover .video-play-overlay {
    background-color: rgba(200, 0, 0, 0.75);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.video-card-title {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    color: #386641;
    margin-bottom: 10px;
}
.video-card-description {
    font-size: 0.9rem;
    color: #5a6e5f;
    line-height: 1.5;
}

/* --- About Coo Chew Games Section --- */
#about-coo-chew { background-color: #edf5ed; }
#about-coo-chew h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #2a7d31;
    margin-bottom: 0;
}
.about-inner { padding-bottom: 50px; }

.about-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-mascot-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.15));
    flex-shrink: 0;
}
.about-text {
    color: #4a5e52;
    font-size: 1rem;
    line-height: 1.7;
}
.about-text p { margin-bottom: 1em; }
.about-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.about-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #386641;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid #6B8E23;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.about-link:hover {
    background-color: #386641;
    color: #fff;
}


/* --- Photo Strips (Game Detail Page) --- */
.photo-strip {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #d4e6d4;
}

.photo-strip__heading {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    color: #2a7d31;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4e6d4;
}

/* Carousel strip */
.photo-strip__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #6B8E23 #e8f5e9;
}
.photo-strip__track::-webkit-scrollbar { height: 6px; }
.photo-strip__track::-webkit-scrollbar-track { background: #e8f5e9; border-radius: 3px; }
.photo-strip__track::-webkit-scrollbar-thumb { background: #6B8E23; border-radius: 3px; }

.photo-strip__card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background-color: #fafffa;
    border: 1px solid #ddeedd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0;
}
.photo-strip__card:hover {
    box-shadow: 0 6px 18px rgba(42, 125, 49, 0.18);
    transform: translateY(-3px);
}

.photo-strip__img {
    width: 100%;
    height: 173px;
    object-fit: cover;
    display: block;
}

/* Grid strip */
.event-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.event-gallery__item {
    background-color: #fafffa;
    border: 1px solid #ddeedd;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    margin: 0;
}
.event-gallery__item:hover {
    box-shadow: 0 6px 18px rgba(42, 125, 49, 0.18);
    transform: translateY(-3px);
}

.event-gallery__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}


/* --- Photo Lightbox --- */
#photo-lightbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    outline: none;
}
#photo-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.88);
}
#lightbox-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
#lightbox-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
#lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* body { perspective: none; } /* Optionally disable perspective for simpler mobile hover */
    
    /* Homepage Hero Responsive */
    #meadow-hero .hero-content-meadow #meadow-hero-logo { max-width: 180px; }
    #meadow-hero .hero-content-meadow #site-title-meadow { font-size: 2.2rem; }
    #meadow-hero .hero-content-meadow #site-tagline-meadow { font-size: 1rem; }
    
    /* Homepage Banners Responsive */
    .game-banner-meadow {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .game-banner-meadow:hover { 
        transform: translateY(-6px) scale(1.01); 
        box-shadow: 0 8px 20px rgba(42, 125, 49, 0.15);
    }
    .game-logo-wrapper-meadow {
        width: 160px;
        margin-bottom: 20px;
    }
    .game-details-meadow { align-items: center; }
    .game-banner-links { justify-content: center; }

    /* Beyond the Screen / Field Notes / About responsive */
    #tabletop-games-grid { grid-template-columns: repeat(2, 1fr); }
    .video-card { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
    .video-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 8px 20px rgba(42, 125, 49, 0.15); }
    .video-thumb-wrapper { width: 100%; }
    .wave-top svg { height: 50px; }
    .about-layout { flex-direction: column; text-align: center; }
    .about-links { justify-content: center; }

    /* Detail Page Responsive */
    #meadow-hero.site-header-detail-page { height: 70px; }
    #meadow-hero-logo-small { max-height: 40px; }
    .photo-strip__card { flex: 0 0 220px; }
    .photo-strip__img { height: 147px; }
    .event-gallery__grid { grid-template-columns: repeat(2, 1fr); }

    .game-content-columns {
        grid-template-columns: 1fr; 
    }
    .game-hero-detail { margin-bottom: 30px; }
    #game-title-detail { font-size: 2rem; }
    #game-tagline-detail { font-size: 1.1rem; }
    .actions-panel { margin-top: 30px; }
}

@media (max-width: 480px) {
    /* Homepage Banners */
    .game-banner-name-meadow { font-size: 1.4rem; }
    .game-banner-description-snippet { font-size: 0.85rem; }
    .game-banner-links { flex-direction: column; align-items: stretch; }
    .game-banner-action-button { width: 100%; justify-content: center; }

    /* Beyond the Screen / Field Notes narrow */
    #tabletop-games-grid { grid-template-columns: 1fr; }

    /* Detail Page */
    #meadow-hero.site-header-detail-page { height: 60px; }
    #meadow-hero-logo-small { max-height: 35px; }
    .photo-strip__card { flex: 0 0 200px; }
    .photo-strip__img { height: 133px; }
    .event-gallery__grid { grid-template-columns: 1fr; }
    .game-detail-page-content { padding: 15px; }
    .action-button-detail { font-size: 0.9rem; padding: 10px 15px; }
}