/* Reset and Base Styles */
    :root {
      /* Updated Colors based on design */
      --primary-bg: #12081C; /* Deep purple background */
      --secondary-bg: #1A0D2A; /* Slightly lighter purple */
      --card-bg: #211138; /* Card backgrounds */
      --card-bg-hover: #2C1A4A; /* Slightly lighter card hover */
      --highlight-primary: #A12568; /* Pink */
      --highlight-secondary: #E63984; /* Brighter Pink */
      --text-light: #F0E6FF; /* Light text */
      --text-medium: #A094B7; /* Medium emphasis text */
      --text-dark: #6B5F87; /* Low emphasis text */
      --border-color: #3A2A5A; /* Subtle border */
      --success-color: #39E6A3; /* Green for 'Completed' */
      --info-color: #39A3E6; /* Blue for 'In Development' */
      --warning-color: #E6B439; /* Yellow (if needed) */

      /* Community Icon Colors (Based on Target Image) */
      --discord-icon-bg: #3a459f; /* Darker Blue from target */
      --patreon-icon-bg: #a12568; /* Darker Red/Pink from target */
      --substar-icon-bg: #4e4a65; /* Darker Gray/Purple from target */
      --itchio-icon-bg: #a12568; /* Darker Red/Pink from target */

      --font-primary: 'Montserrat', sans-serif;
      --transition: all 0.3s ease;
      --container-width: 1200px;
      --gradient-button: linear-gradient(90deg, #9d31c7 0%, #e63984 100%);
      --gradient-hero-bg: linear-gradient(180deg, #1a0d2a 0%, #12081c 100%);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-primary);
      background-color: var(--primary-bg);
      color: var(--text-light);
      line-height: 1.7;
      font-size: 16px;
      overflow-x: hidden;
    }
    img { max-width: 100%; height: auto; display: block; }
    a { color: var(--highlight-secondary); text-decoration: none; transition: var(--transition); }
    a:hover { color: var(--text-light); }
    h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
    h1 { font-size: 2.8rem; margin-bottom: 1rem; }
    h2 { font-size: 2.2rem; margin-bottom: 1.5rem; text-align: center; }
    h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
    h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
    p { margin-bottom: 1rem; color: var(--text-medium); }
    ul { list-style: none; padding-left: 0; }
    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      margin: -1px;
      padding: 0;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    .container {
      max-width: var(--container-width);
      margin: 0 auto;
      padding: 0 1rem; /* Padding for mobile */
    }
    @media (min-width: 768px) {
      .container { padding: 0 2rem; }
    }

    /* Buttons */
    .btn {
      display: inline-flex; /* Use flex for icon alignment */
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.8rem 1.8rem;
      border: none;
      border-radius: 30px;
      background: var(--gradient-button);
      color: var(--text-light);
      font-weight: 700;
      font-size: 1rem;
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(161, 37, 104, 0.4);
      filter: brightness(1.15);
    }
    .btn-secondary {
       background: none;
       border: 2px solid var(--card-bg-hover);
       color: var(--text-medium);
       background-color: var(--card-bg);
    }
    .btn-secondary:hover {
        background-color: var(--card-bg-hover);
        border-color: var(--border-color);
        color: var(--text-light);
    }
    .btn-link { /* For footer/community links */
       display: inline-flex;
       align-items: center;
       gap: 0.4rem;
       color: var(--highlight-secondary);
       font-weight: 600;
       background: none;
       padding: 0;
       border: none;
       box-shadow: none;
       border-radius: 0;
       white-space: nowrap; /* FIX 3: Prevent wrapping in community card */
    }
    .btn-link:hover {
        color: var(--text-light);
        transform: none;
        box-shadow: none;
        filter: brightness(1.1);
        text-decoration: underline;
    }
    .btn img { /* Icon size in buttons */
       height: 1em;
       width: auto;
       display: inline-block;
       vertical-align: middle;
    }


    /* Section Styling */
    .section {
      padding: 4rem 0;
      position: relative;
      overflow: hidden; /* Contain potential pseudo-elements */
    }
    .section-dark { background-color: var(--secondary-bg); }
    .section-title { margin-bottom: 1rem; color: var(--text-light); }
    .section-subtitle {
      text-align: center;
      color: var(--text-medium);
      max-width: 700px;
      margin: 0 auto 2.5rem auto;
      font-size: 1.1rem;
    }

    /* --- Header --- */
    .main-header {
      background-color: rgba(18, 8, 28, 0.8); /* Semi-transparent header */
      backdrop-filter: blur(10px);
      padding: 0.8rem 0; /* Slightly reduced padding */
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 1000;
    }
    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .header-logo img {
      height: 35px; /* Adjusted size */
    }
    .main-nav {
       display: none; /* Hide full nav on mobile */
    }
    .mobile-nav-toggle { /* Add a hamburger icon/button here if needed */
        display: block;
        /* Style your hamburger button */
    }
    .header-socials {
      display: flex;
      gap: 0.8rem; /* Reduced gap */
      align-items: center;
    }
    .header-socials a img {
       height: 18px; /* Icon size */
       opacity: 0.8;
       transition: var(--transition);
    }
    .header-socials a:hover img {
       opacity: 1;
       transform: scale(1.1);
    }

    /* Desktop Header Adjustments */
    @media (min-width: 992px) {
      .header-logo img { height: 45px; }
      .mobile-nav-toggle { display: none; } /* Hide hamburger */
      .main-nav { display: block; } /* Show full nav */
      .main-nav ul { display: flex; gap: 1.5rem; margin: 0; }
      .main-nav a { color: var(--text-medium); font-weight: 600; padding: 0.5rem; font-size: 0.95rem; }
      .main-nav a:hover, .main-nav a.active { color: var(--text-light); }
      .header-socials { gap: 1rem; }
      .header-socials a img { height: 20px; }
    }
    @media (min-width: 1200px) {
       .main-nav ul { gap: 2rem; }
       .main-nav a { font-size: 1rem; }
    }

    /* --- Hero Section --- */
    .hero {
      padding: 6rem 0 4rem 0; /* Adjusted padding */
      text-align: center;
      background: var(--gradient-hero-bg);
      position: relative;
    }
     /* Optional: Add subtle background pattern or overlay if needed */
    .hero-logo {
       max-width: 180px; /* Control logo size */
       margin: 0 auto 1.5rem auto;
    }
    .hero h1 {
        color: var(--text-light);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
        font-size: 2.5rem; /* Adjusted size */
    }
    .hero .section-subtitle {
      margin-bottom: 2rem;
      font-size: 1.1rem;
      color: var(--text-medium);
    }
    .hero .btn {
        padding: 0.9rem 2rem; /* Slightly larger button */
    }
    .hero-previews {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      max-width: 600px; /* Limit width */
      margin: 3rem auto 0 auto;
      opacity: 0.8;
    }
    .hero-preview-item {
      border-radius: 8px;
      border: 1px solid var(--border-color);
      aspect-ratio: 3 / 4;
      overflow: hidden;
      transition: var(--transition);
    }
    .hero-preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .hero-preview-item:hover {
        transform: scale(1.05);
        border-color: var(--highlight-secondary);
        box-shadow: 0 4px 10px rgba(0,0,0, 0.2);
    }

    @media (min-width: 768px) {
       .hero { padding: 8rem 0 6rem 0; }
       .hero-logo { max-width: 220px; margin-bottom: 2rem; }
       .hero h1 { font-size: 3.5rem; }
       .hero .section-subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; }
       .hero-previews { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; max-width: 800px; }
    }

    /* --- Development Progress --- */
    #updates { text-align: center; }
    .dev-progress-image-container {
      max-width: 600px;
      margin: 1rem auto 1.5rem auto;
      background-color: var(--card-bg);
      padding: 0.5rem;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      overflow: hidden;
    }
    .dev-progress-image-container img {
       border-radius: 8px;
    }
    #updates .btn-link {
        font-size: 0.9rem;
    }

    /* --- Play Latest Game --- */
    .latest-game-section { padding: 5rem 0; }
    .latest-game-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
    }
    .latest-game-cover {
        text-align: center;
    }
    .latest-game-cover img {
        border-radius: 12px;
        border: 1px solid var(--border-color);
        max-width: 280px;
        margin: 0 auto 1.5rem auto;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    .latest-game-info h3 { /* Visually hidden heading for semantics */
       position: absolute; width: 1px; height: 1px; margin: -1px;
       padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
    }
    .latest-game-info .subtitle {
       font-size: 1.6rem;
       font-weight: 700;
       color: var(--text-light);
       margin-bottom: 1rem;
       line-height: 1.3;
       text-align: center;
    }
    .latest-game-description {
       color: var(--text-medium);
       margin-bottom: 2.5rem;
       text-align: center;
       font-size: 1rem;
       line-height: 1.7;
       max-width: 550px;
       margin-left: auto;
       margin-right: auto;
    }
    .latest-game-availability {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .latest-game-availability h4 {
       font-size: 1.1rem;
       font-weight: 600;
       margin-bottom: 1.5rem;
       color: var(--text-light);
       text-align: center;
    }
    .availability-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 550px;
        margin: 0 auto;
    }
    .availability-link {
       display: flex;
       flex-direction: row;
       align-items: center;
       background-color: var(--card-bg);
       padding: 0.8rem 1.2rem;
       border-radius: 8px;
       border: 1px solid var(--border-color);
       transition: var(--transition);
       box-shadow: 0 2px 5px rgba(0,0,0,0.05);
       text-decoration: none;
       color: inherit;
    }
    .availability-link:hover {
        background-color: var(--card-bg-hover);
        border-color: var(--highlight-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .availability-icon {
        margin-right: 1rem;
        flex-shrink: 0;
    }
    .availability-icon img {
        height: 24px;
        width: 24px;
        display: block;
    }
    .availability-text {
        flex-grow: 1;
        text-align: left;
    }
    .availability-text strong {
       display: block;
       color: var(--text-light);
       font-weight: 600;
       font-size: 1rem;
       margin-bottom: 0.1rem;
       line-height: 1.3;
    }
    .availability-text span {
        font-size: 0.8rem;
        color: var(--text-medium);
        line-height: 1.4;
        display: block;
    }
    .availability-arrow {
       margin-left: auto;
       padding-left: 1rem;
       color: var(--text-medium);
       font-size: 1.2rem;
       font-weight: 600;
       line-height: 1;
       transition: var(--transition);
       flex-shrink: 0;
    }
    .availability-link:hover .availability-arrow {
       color: var(--highlight-secondary);
       transform: translateX(3px);
    }

    @media (min-width: 768px) {
       .latest-game-container {
           grid-template-columns: auto 1fr;
           gap: 3rem;
           text-align: left;
       }
       .latest-game-cover img {
           margin: 0;
           max-width: 320px;
       }
       .latest-game-info .subtitle,
       .latest-game-description,
       .latest-game-availability h4 {
          text-align: left;
          margin-left: 0;
          margin-right: 0;
       }
       .latest-game-description { max-width: none; }
       .availability-links {
           margin: 0;
           max-width: 550px;
       }
    }
     @media (min-width: 992px) {
        .latest-game-container { gap: 4rem; }
        .latest-game-cover img { max-width: 350px; }
        .latest-game-info .subtitle { font-size: 1.8rem; }
     }

    /* --- Game Screenshots --- */
    .previews-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    .previews-grid a {
        display: block;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        border: 1px solid var(--border-color);
        transition: var(--transition);
        box-shadow: 0 2px 5px rgba(0,0,0, 0.1);
    }
     .previews-grid a:hover {
        border-color: var(--highlight-secondary);
        transform: scale(1.03);
        box-shadow: 0 5px 15px rgba(0,0,0, 0.2);
     }
    .previews-grid img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
    .screenshots-footer {
        text-align: center;
        color: var(--text-dark);
        font-size: 0.85rem;
    }
    @media (min-width: 576px) {
         .previews-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    }
    @media (min-width: 992px) {
        .previews-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
    }

    /* Lightbox Modal */
    .lightbox-modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.92); padding-top: 50px; backdrop-filter: blur(3px); }
    .lightbox-content { margin: auto; display: block; width: 95%; max-width: 900px; max-height: 85vh; object-fit: contain; animation: zoom 0.4s; }
    @keyframes zoom { from {transform: scale(0.7)} to {transform: scale(1)} }
    .lightbox-close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 10002; text-shadow: 0 0 5px rgba(0,0,0,0.5); }
    .lightbox-close:hover, .lightbox-close:focus { color: #bbb; text-decoration: none; }

    /* --- Game Library --- */
    .game-library-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-bottom: 1.5rem;
      background-color: var(--card-bg);
      padding: 0.8rem;
      border-radius: 8px;
    }
    .library-search, .library-filter, .library-sort {
      flex-grow: 1;
      min-width: 120px;
    }
    .library-search input, .library-filter select, .library-sort select {
      width: 100%;
      padding: 0.6rem 0.8rem;
      background-color: var(--secondary-bg);
      border: 1px solid var(--border-color);
      border-radius: 5px;
      color: var(--text-light);
      font-family: var(--font-primary);
      font-size: 0.9rem;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A094B7'%3E%3Cpath fill-rule='evenodd' d='M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd' /%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 0.5rem center;
      background-size: 1.2em 1.2em;
      padding-right: 2rem;
    }
    .library-search input {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23A094B7'%3E%3Cpath fill-rule='evenodd' d='M9.965 11.026a5 5 0 1 1 1.06-1.06l2.755 2.754a.75.75 0 1 1-1.06 1.06l-2.755-2.754ZM10.5 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z' clip-rule='evenodd' /%3E%3C/svg%3E");
      padding-left: 2rem;
      background-position: left 0.5rem center;
    }
    .library-search input::placeholder { color: var(--text-dark); }
    .library-info {
      text-align: right;
      color: var(--text-medium);
      margin-bottom: 1.5rem;
      font-size: 0.9rem;
    }
    .library-grid {
      display: grid;
      grid-template-columns: 1fr; /* Mobile: 1 column */
      gap: 1.5rem;
    }

    /* --- Library Item: Base & Mobile --- */
    .library-item {
      background-color: var(--card-bg);
      border-radius: 8px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      border: 1px solid var(--border-color);
      transition: var(--transition);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }
     .library-item:hover {
        background-color: var(--card-bg-hover);
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
        border-color: var(--highlight-primary);
     }

    /* Cover Styles: Mobile First */
    .library-item-cover {
      width: 100%;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background-color: var(--secondary-bg);
    }
    .library-item-cover img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    /* Content Styles: Base */
    .library-item-content {
      padding: 1rem;
      display: flex;
      flex-direction: column;
      flex-grow: 1;
      min-width: 0; /* Fix potential flex overflow */
    }
    .library-item-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 0.3rem;
    }
    .library-item-description {
        font-size: 0.9rem;
        color: var(--text-medium);
        margin-bottom: 0.8rem;
        flex-grow: 1;
        line-height: 1.5;
    }
    .library-item-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 0.5rem;
      margin-top: auto;
    }
    .library-item-meta {
      font-size: 0.8rem;
      color: var(--text-dark);
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap; /* Allow badge to wrap if needed */
    }
    .library-item-status {
      display: inline-block;
      padding: 0.2rem 0.6rem;
      border-radius: 15px;
      font-size: 0.7rem;
      font-weight: 700;
      line-height: 1;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      white-space: nowrap; /* Prevent status text wrapping */
    }
    .status-completed { background-color: var(--success-color); color: var(--primary-bg); }
    .status-development { background-color: var(--info-color); color: var(--primary-bg); }

    .library-item-links {
      display: flex;
      gap: 0.6rem;
      margin-left: auto; /* Push links to the right */
      flex-shrink: 0; /* Prevent links shrinking */
    }
    .library-item-links img {
      height: 16px;
      opacity: 0.7;
      transition: var(--transition);
    }
     .library-item-links a:hover img {
        opacity: 1;
        transform: scale(1.1);
     }

    /* --- Desktop Overrides for Library Item (992px+) --- */
    @media (min-width: 768px) {
      .library-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 992px) {
      .library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
      }
      .game-library-controls {
        flex-wrap: nowrap;
      }
      .library-search { flex-grow: 2; }
      .library-filter, .library-sort { flex-grow: 1; }

      .library-item {
        display: grid;
        grid-template-columns: 190px 1fr;
        align-items: stretch;
      }
      .library-item-cover {
        width: 100%;
        aspect-ratio: auto;
        margin: 0;
        height: 100%;
      }
      .library-item-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .library-item-content {
        padding: 1.2rem 1.5rem;
      }
    }
    /* --- End Desktop Overrides --- */


    /* --- Never Miss a Release --- */
     .subscribe-placeholder {
        background-color: var(--card-bg);
        border-radius: 8px;
        padding: 1.5rem;
        border: 1px solid var(--border-color);
        max-width: 600px;
        margin: 2rem auto 2.5rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
     }

    .never-miss-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    .never-miss-item {
        background-color: var(--card-bg);
        padding: 1.5rem 1rem;
        border-radius: 12px;
        text-align: center;
        border: 1px solid var(--border-color);
    }
    .never-miss-icon img {
        height: 30px;
        margin: 0 auto 1rem auto;
        opacity: 0.9;
    }
    .never-miss-item h4 {
        color: var(--text-light);
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }
    .never-miss-item p {
        font-size: 0.85rem;
        color: var(--text-medium);
        margin-bottom: 0;
        line-height: 1.5;
    }
    @media (min-width: 768px) {
       .never-miss-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem;}
       .never-miss-item { padding: 2rem 1.5rem; }
       .never-miss-icon img { height: 35px; }
       .never-miss-item h4 { font-size: 1.1rem; }
       .never-miss-item p { font-size: 0.9rem; }
    }


    /* --- Join Community --- */
    .community-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 1.5rem;
    }
    .community-card {
        background-color: var(--card-bg);
        padding: 1.5rem;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        transition: var(--transition);
    }
    .community-card:hover {
        background-color: var(--card-bg-hover);
        transform: translateY(-3px);
        border-color: var(--highlight-primary);
    }

    /* Updated Community Icon Styles */
    .community-icon { /* Style the container DIV */
        width: 60px; /* Base size */
        height: 60px;
        padding: 12px; /* Padding around the icon */
        border-radius: 10px;
        margin: 0 auto 1rem auto; /* Center horizontally, add bottom margin */
        display: flex; /* Center the image */
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .community-icon img { /* Style the image itself */
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        /* Assume image sources provide the correct light-colored logo */
        /* If source images are BLACK/DARK single color, uncomment below */
        /* filter: brightness(0) invert(1); */
    }

    /* Specific background colors for the icon container (from target image) */
    .community-icon.icon-discord {
        background-color: var(--discord-icon-bg);
    }
    .community-icon.icon-patreon {
        background-color: var(--patreon-icon-bg);
    }
    .community-icon.icon-subscribestar {
        background-color: var(--substar-icon-bg);
    }
    .community-icon.icon-itchio {
        background-color: var(--itchio-icon-bg);
    }
    /* End Updated Community Icon Styles */


    .community-card h4 {
        color: var(--text-light);
        margin-bottom: 0.5rem;
    }
    .community-card p {
        font-size: 0.9rem;
        color: var(--text-medium);
        margin-bottom: 1.5rem;
        flex-grow: 1;
    }
    .community-card .btn-link {
        margin-top: auto;
        /* white-space: nowrap; --- Moved to base .btn-link style */
    }

    @media (min-width: 576px) {
       .community-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (min-width: 992px) {
        .community-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
         .community-card { padding: 2rem; }
         /* Icon size remains 60x60 based on target */
         /* .community-icon { width: 60px; height: 60px; padding: 12px; } */
    }
     @media (max-width: 575px) { /* Slightly smaller icons on very small screens */
        .community-icon {
            width: 50px;
            height: 50px;
            padding: 10px;
        }
    }


    /* --- Support Options --- */
    .support-tiers-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
      margin-bottom: 3rem;
    }
    .support-tier {
      background-color: var(--card-bg);
      padding: 1.5rem;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      text-align: center;
      display: flex;
      flex-direction: column;
      position: relative;
      transition: var(--transition);
    }
    .support-tier:hover {
       transform: translateY(-3px);
       box-shadow: 0 6px 20px rgba(0,0,0, 0.15);
    }
    .support-tier.highlighted {
        border: 2px solid var(--highlight-secondary);
        background-color: var(--card-bg-hover);
        box-shadow: 0 8px 30px rgba(161, 37, 104, 0.2);
    }
    .best-value-badge {
        position: absolute;
        top: -1px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--gradient-button);
        color: var(--text-light);
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
        font-weight: 700;
        border-radius: 0 0 10px 10px;
        z-index: 1;
    }
    .tier-icon img {
        height: 28px;
        margin: 0 auto 0.8rem auto;
        opacity: 0.9;
    }
    .tier-name {
        color: var(--text-light);
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }
    .tier-price {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--text-light);
        margin-bottom: 0.1rem;
    }
    .tier-price span {
        font-size: 0.85rem;
        font-weight: 400;
        color: var(--text-medium);
    }
    .tier-features {
        list-style: none;
        padding: 1.2rem 0;
        margin: 1.2rem 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        flex-grow: 1;
    }
    .tier-features li {
        margin-bottom: 0.7rem;
        color: var(--text-medium);
        font-size: 0.9rem;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .tier-features li::before {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2339E6A3'%3E%3Cpath fill-rule='evenodd' d='M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z' clip-rule='evenodd' /%3E%3C/svg%3E");
        width: 1em;
        height: 1em;
        display: inline-block;
        margin-top: 0.15em;
        flex-shrink: 0;
    }
    .tier-join-info {
        font-size: 0.8rem;
        color: var(--text-dark);
        margin-bottom: 1.2rem;
    }
    .tier-button .btn {
        width: 100%;
    }
    .support-tier:not(.highlighted) .tier-button .btn {
        background: var(--secondary-bg);
        border: 1px solid var(--border-color);
        color: var(--text-medium);
    }
     .support-tier:not(.highlighted):hover .tier-button .btn {
        background: var(--card-bg-hover);
        color: var(--text-light);
        border-color: var(--highlight-primary);
     }

    @media (min-width: 768px) {
      .support-tiers-grid { grid-template-columns: repeat(2, 1fr); }
      .support-tier { padding: 2rem 1.5rem; }
    }
    @media (min-width: 1200px) {
        .support-tiers-grid { grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
    }

    .support-main-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    .support-main-buttons .btn {
        padding: 0.9rem 2rem;
        min-width: 220px;
        font-size: 1rem;
    }
    .support-main-buttons .btn img { height: 1.1em; }


    /* --- Footer --- */
    .main-footer {
      background-color: var(--secondary-bg);
      padding: 4rem 0 2rem 0;
      margin-top: 4rem;
      border-top: 1px solid var(--border-color);
    }
    .footer-grid {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 2.5rem;
    }
    .footer-about .footer-logo img {
      height: 40px;
      margin-bottom: 1rem;
    }
    .footer-about p {
      font-size: 0.9rem;
      color: var(--text-medium);
      max-width: 350px;
      margin-bottom: 1.5rem;
    }
    .footer-socials {
      display: flex;
      gap: 1rem;
    }
    .footer-socials a img {
      height: 20px;
      opacity: 0.7;
      transition: var(--transition);
    }
     .footer-socials a:hover img { opacity: 1; transform: scale(1.1); }

    .footer-links h4, .footer-support h4, .footer-latest h4, .footer-subscribe h4 {
      color: var(--text-light);
      margin-bottom: 1rem;
      font-size: 1rem;
      font-weight: 600;
    }
    .footer-links ul li, .footer-support ul li {
      margin-bottom: 0.6rem;
    }
    .footer-links ul li a, .footer-support ul li a {
      color: var(--text-medium);
      font-size: 0.9rem;
    }
    .footer-links ul li a:hover, .footer-support ul li a:hover {
      color: var(--highlight-secondary);
      text-decoration: underline;
    }

    .footer-latest-content {
      background-color: var(--card-bg);
      padding: 1rem;
      border-radius: 8px;
      border: 1px solid var(--border-color);
      text-align: center;
    }
    .footer-latest-content img {
       height: 100px;
       width: 100%;
       object-fit: cover;
       border-radius: 5px;
       background-color: var(--secondary-bg);
       margin-bottom: 0.8rem;
    }
    .footer-latest-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-light);
        margin-bottom: 0.3rem;
    }
    .footer-latest-date {
        font-size: 0.8rem;
        color: var(--text-dark);
        margin-bottom: 1rem;
    }
    .footer-latest-content .btn-link {
        font-size: 0.9rem;
    }

    .footer-subscribe h4 { margin-bottom: 1rem; }
     .emailoctopus-form-wrapper {
       margin-bottom: 0.5rem;
     }
     .emailoctopus-form-wrapper form { display: flex; }
     .emailoctopus-form-wrapper input[type="email"] {
         flex-grow: 1; padding: 0.7rem 1rem; border: 1px solid var(--border-color); background-color: var(--secondary-bg); color: var(--text-light); border-radius: 5px 0 0 5px; font-size: 0.9rem; outline: none;
     }
      .emailoctopus-form-wrapper button[type="submit"] {
          padding: 0.7rem 1rem; border: none; background-color: var(--highlight-primary); color: var(--text-light); cursor: pointer; border-radius: 0 5px 5px 0; font-weight: 600; font-size: 0.9rem; transition: var(--transition);
      }
      .emailoctopus-form-wrapper button[type="submit"]:hover { filter: brightness(1.1); }
     .subscribe-powered-by { display: none; }

    .footer-bottom {
      border-top: 1px solid var(--border-color);
      margin-top: 3rem;
      padding-top: 1.5rem;
      text-align: center;
      font-size: 0.8rem;
      color: var(--text-dark);
      line-height: 1.6;
    }
    .footer-bottom a { color: var(--text-medium); }
    .footer-bottom a:hover { color: var(--highlight-secondary); }

    @media (min-width: 576px) {
       .footer-grid { grid-template-columns: repeat(2, 1fr); }
       .footer-about, .footer-subscribe { grid-column: span 1; }
       .footer-latest { grid-column: span 2; }
    }
    @media (min-width: 992px) {
       .footer-grid {
          grid-template-columns: 1.5fr 1fr 1fr 1fr;
          gap: 2rem;
       }
        .footer-about { grid-column: span 1; }
        .footer-latest { grid-column: span 1; }
        .footer-subscribe { grid-column: span 2; }
    }
    @media (min-width: 1200px) {
        .footer-grid {
            grid-template-columns: 1.7fr 1fr 1fr 1fr 1.3fr;
            gap: 2.5rem;
        }
        .footer-about { grid-column: span 1; }
        .footer-subscribe { grid-column: span 1; }
    }


    /* --- Age Verification Gate --- */
    #ageGate { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(18, 8, 28, 0.97); z-index: 9999; display: flex; justify-content: center; align-items: center; padding: 1rem; backdrop-filter: blur(5px); }
    .age-content { background: var(--secondary-bg); padding: 2rem; border-radius: 15px; text-align: center; width: 100%; max-width: 500px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); border: 1px solid var(--border-color); animation: scaleIn 0.6s ease-out; }
    @keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
    .age-content h1 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-light); }
    .age-content h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--highlight-secondary); font-weight: 600; }
    .age-content p { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-medium); }
    .age-inputs-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin-bottom: 1.5rem; }
    .age-input { background: var(--primary-bg) !important; color: var(--text-light) !important; border: 1px solid var(--border-color); padding: 0.6rem; border-radius: 5px; font-size: 0.9rem; flex-grow: 1; min-width: 70px; text-align: center; margin: 0; cursor: pointer; appearance: none; }
    .age-input:focus { outline: 2px solid var(--highlight-secondary); }
    #ageSubmitBtn { width: 100%; max-width: 200px; margin-top: 1rem; }
     @media (min-width: 768px) {
        .age-content { padding: 3rem; max-width: 600px; }
        .age-content h1 { font-size: 2.2rem; }
        .age-content h2 { font-size: 1.3rem; }
        .age-content p { font-size: 1rem; }
     }

     /* --- Back to Top Button --- */
    .back-to-top { position: fixed; bottom: 20px; right: 20px; background: var(--highlight-primary); color: white; width: 40px; height: 40px; border-radius: 8px; display: none; justify-content: center; align-items: center; font-size: 1.5rem; text-decoration: none; z-index: 999; opacity: 0.8; transition: opacity 0.3s ease, background-color 0.3s ease; border: 1px solid var(--border-color); }
    .back-to-top:hover { opacity: 1; background-color: var(--highlight-secondary); }


    /* --- Scroll Animations --- */
    .scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; will-change: opacity, transform; }
    .scroll-animate.is-visible { opacity: 1; transform: translateY(0); }
/* Layout helpers for standalone pages */
.layout-static {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout-static main {
  flex-grow: 1;
}

/* Contact page */
.contact-wrapper {
  padding: 3rem 0;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-card {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-card h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: var(--secondary-bg);
  color: var(--text-light);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--highlight-secondary);
  box-shadow: 0 0 0 3px rgba(230, 57, 132, 0.3);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
  align-self: center;
  min-width: 150px;
}

.hidden-field {
  opacity: 0;
  position: absolute;
  height: 0;
  width: 0;
  pointer-events: none;
}

.contact-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-medium);
}

.contact-info p {
  margin: 0.4rem 0;
}

.contact-info a {
  color: var(--highlight-secondary);
  font-weight: 600;
}

.contact-info a:hover {
  color: var(--text-light);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 3rem;
  }

  .contact-card h2 {
    font-size: 2rem;
  }
}

/* Privacy policy page */
.privacy-wrapper {
  padding: 3rem 0;
  flex-grow: 1;
}

.privacy-card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.privacy-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 700;
  text-align: center;
  padding-bottom: 0.75rem;
}

.effective-date {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.privacy-card h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.privacy-card h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-medium);
  font-weight: 600;
}

.privacy-card p,
.privacy-card li {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-medium);
}

.privacy-card ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-card li {
  margin-left: 1.5rem;
}

.privacy-card strong {
  font-weight: 600;
  color: var(--text-light);
}

.privacy-card a {
  color: var(--highlight-secondary);
  text-decoration: underline;
  font-weight: 600;
}

.privacy-card a:hover {
  color: var(--text-light);
  filter: brightness(1.1);
}

@media (min-width: 768px) {
  .privacy-card {
    padding: 2.5rem;
  }

  .privacy-card h1 {
    font-size: 2.2rem;
  }

  .privacy-card h2 {
    font-size: 1.6rem;
  }

  .privacy-card p,
  .privacy-card li {
    font-size: 1rem;
  }
}

/* Thank-you page */
.thank-you-wrapper {
  padding: 3rem 1rem;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.thank-you-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 550px;
  width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: fadeIn 0.8s 0.2s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thank-you-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.thank-you-card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.thank-you-card p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text-medium);
}

.home-link {
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .thank-you-card {
    padding: 3.5rem;
  }

  .thank-you-card h1 {
    font-size: 2.2rem;
  }

  .thank-you-card p {
    font-size: 1.1rem;
  }

  .home-link {
    font-size: 1rem;
  }
}
