@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --corner-radius: 6px;
    --c-bg:      #00062c;
    --c-surface: #00137d;
    --c-panel:   #002d8e;
    --c-lighterpanel: #0055bc;
    --c-accent:  #7ecfff;
}

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

body {
    background-color: var(--c-bg);
    background-image:
        radial-gradient(ellipse 60% 50% at 15% 40%, rgba(10, 40, 120, 0.55) 0%, transparent 100%),
        radial-gradient(ellipse 50% 60% at 85% 70%, rgba(5, 20, 90, 0.5) 0%, transparent 100%),
        radial-gradient(ellipse 40% 40% at 50% 0%, rgba(20, 60, 160, 0.35) 0%, transparent 100%);
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.site-wrapper {
    max-width: 1020px;
    margin: 16px auto;
    position: relative;
    z-index: 1;
    background: var(--c-panel);
    min-height: calc(100vh - 32px);
    border-radius: var(--corner-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 80px rgba(0, 80, 255, 0.25), 0 0 200px rgba(0, 40, 180, 0.15);
}

/* ─── Navbar ─────────────────────────────────────────── */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 12px;
    background: var(--c-panel);
    margin-top: 0;
}

.nav-icon img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.nav-icon:hover img {
    transform: scale(1.12);
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 130px;
    padding: 9px 0;
    background: var(--c-bg);
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--corner-radius);
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.nav-btn i {
    font-size: 0.9rem;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--c-surface);
    color: var(--c-accent);
}

.nav-mobile-title {
    display: none;
}

.nav-hamburger {
    display: none;
}

/* ─── Main Content ────────────────────────────────────── */

.content {
    flex: 1;
    padding: 40px 48px 64px;
    background: var(--c-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.logo-wrap {
    text-align: center;
    padding-top: 8px;
}

.game-logo {
    max-width: 640px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 24px rgba(0, 80, 255, 0.4));
}

/* ─── Divider ─────────────────────────────────────────── */

.star-divider {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: rgba(127, 207, 255, 0.5);
    user-select: none;
    width: 100%;
    text-align: center;
}

/* ─── Info Box ────────────────────────────────────────── */

.info-box {
    background: var(--c-panel);
    border-radius: var(--corner-radius);
    padding: 22px 32px;
    width: 100%;
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: center;
    color: #fff;
}

.info-box strong {
    color: #fff;
    font-weight: 800;
}

.info-box a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 700;
}

.info-box a:hover {
    text-decoration: underline;
    color: var(--c-accent);
    opacity: 0.8;
}

.info-box p + p {
    margin-top: 16px;
}

/* ─── Footer ─────────────────────────────────────────── */

.footer {
    background: var(--c-panel);
    padding: 20px 24px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--c-bg);
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.social-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.social-btn:hover {
    opacity: 0.75;
    transform: scale(1.1);
}

/* ─── Section Titles ──────────────────────────────────── */

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--c-accent);
    text-shadow: 0 0 18px rgba(127, 207, 255, 0.4);
    text-align: center;
    text-transform: uppercase;
}

/* ─── Gallery ─────────────────────────────────────────── */

.gallery-content {
    gap: 40px;
    align-items: stretch;
}

.gallery-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.gallery-category {
    width: 100%;
}

.gallery-category-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--c-accent);
    margin-bottom: 4px;
    text-align: left;
}

/* ─── Carousel (replica of sxnackx.art carousel) ──────── */

.carousel {
    position: relative;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.carousel-track-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: var(--corner-radius);
    background: rgba(0, 0, 0, 0.45);
    aspect-ratio: 9 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide.cs-in-right  { animation: cs-slide-in-right  0.1s ease forwards; }
.carousel-slide.cs-in-left   { animation: cs-slide-in-left   0.1s ease forwards; }
.carousel-slide.cs-out-left  { animation: cs-slide-out-left  0.1s ease forwards; }
.carousel-slide.cs-out-right { animation: cs-slide-out-right 0.1s ease forwards; }

@keyframes cs-slide-in-right  { from { opacity: 0; transform: translateX(50px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes cs-slide-in-left   { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cs-slide-out-left  { from { opacity: 1; transform: translateX(0);     } to { opacity: 0; transform: translateX(-50px); } }
@keyframes cs-slide-out-right { from { opacity: 1; transform: translateX(0);     } to { opacity: 0; transform: translateX(50px);  } }

.carousel-slide img,
.carousel-slide video {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.carousel-play-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    pointer-events: none;
}

.carousel-placeholder {
    color: rgba(255,255,255,0.4);
    font-size: 1em;
    letter-spacing: 0.05em;
    padding: 40px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(77%) sepia(6%) saturate(4150%) hue-rotate(175deg) brightness(101%) contrast(101%);
    transition: filter 0.2s;
}

.carousel-btn:hover {
    background: rgba(126, 207, 255, 0.18);
}

.carousel-btn:hover img {
    filter: brightness(0) invert(1);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--c-accent);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: var(--c-accent);
}

.carousel-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.72));
    padding: 28px 14px 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    border-radius: 0 0 var(--corner-radius) var(--corner-radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3;
}

.carousel:hover .carousel-caption-bar,
.carousel:focus-within .carousel-caption-bar {
    opacity: 1;
    pointer-events: auto;
}

.carousel-caption-bar a {
    color: var(--c-accent);
}

.carousel-caption-bar a:hover {
    text-decoration: underline;
}

/* Two-column gallery grid (2+ categories) */
.gallery-content.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    align-items: start;
}

.gallery-content.gallery-grid > .section-title,
.gallery-content.gallery-grid > .gallery-empty {
    grid-column: 1 / -1;
}

/* Odd last category: centered, same width as one grid column */
.gallery-category--solo {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin-inline: auto;
    width: 100%;
}

/* ─── FAQ ─────────────────────────────────────────────── */

.faq-content {
    gap: 24px;
}

.faq-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.faq-list {
    width: 100%;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--c-panel);
    border-radius: var(--corner-radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--c-lighterpanel);
    border: none;
    border-radius: var(--corner-radius);
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease;
}

.faq-question:hover {
    background: color-mix(in srgb, var(--c-lighterpanel) 80%, white 20%);
}

.faq-item.open .faq-question {
    border-radius: var(--corner-radius) var(--corner-radius) 0 0;
}

.faq-question-text {
    flex: 1;
}

.faq-toggle-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-caret-icon {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(110%) opacity(0.6);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-caret-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 16px 20px 20px;
}

.faq-md {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.65;
}

.faq-md p         { margin: 0 0 0.75em; }
.faq-md p:last-child { margin-bottom: 0; }
.faq-md strong    { color: #fff; }
.faq-md a         { color: var(--c-accent); }
.faq-md a:hover   { text-decoration: underline; }
.faq-md ul, .faq-md ol { padding-left: 1.4em; margin: 0 0 0.75em; }
.faq-md li        { margin-bottom: 0.3em; }
.faq-md code      { background: rgba(0,0,0,0.3); border-radius: 3px; padding: 0.1em 0.4em; font-size: 0.88em; }
.faq-md pre       { background: rgba(0,0,0,0.4); border-radius: 6px; padding: 12px 14px; overflow-x: auto; margin: 0 0 0.75em; }
.faq-md pre code  { background: none; padding: 0; }

/* ─── Blog ─────────────────────────────────────────── */

.blog-content {
    align-items: stretch;
    gap: 18px;
}

.blog-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.blog-search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--c-bg);
    border-radius: var(--corner-radius);
    padding: 0 14px;
    height: 40px;
    min-width: 280px;
    flex: 1;
}

.blog-search-wrap i {
    color: var(--c-accent);
}

.blog-search {
    border: 0;
    outline: none;
    width: 100%;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
}

.blog-search::placeholder {
    color: rgba(127, 207, 255, 0.4);
}

.blog-view-toggle {
    display: inline-flex;
    gap: 0;
}

.blog-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: var(--c-bg);
    color: #fff;
    height: 40px;
    width: 40px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.blog-toggle-btn:first-child {
    border-radius: var(--corner-radius) 0 0 var(--corner-radius);
}

.blog-toggle-btn:last-child {
    border-radius: 0 var(--corner-radius) var(--corner-radius) 0;
}

.blog-toggle-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(110%);
    transition: filter 0.18s ease;
}

.blog-toggle-btn.active,
.blog-toggle-btn:hover {
    background: var(--c-panel);
}

.blog-toggle-btn.active img,
.blog-toggle-btn:hover img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(6%) saturate(4150%) hue-rotate(175deg) brightness(101%) contrast(101%);
}

.blog-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.blog-filter-wrap {
    position: relative;
}

.blog-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--corner-radius);
    background: var(--c-bg);
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease;
}

.blog-filter-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.blog-filter-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(110%);
    transition: filter 0.18s ease;
}

.blog-filter-btn.active,
.blog-filter-btn:hover {
    background: var(--c-panel);
}

.blog-filter-btn.active img,
.blog-filter-btn:hover img {
    filter: brightness(0) saturate(100%) invert(77%) sepia(6%) saturate(4150%) hue-rotate(175deg) brightness(101%) contrast(101%);
}

.blog-filter-badge {
    display: none;
    position: absolute;
    bottom: -5px;
    right: -6px;
    background: var(--c-accent);
    color: var(--c-bg);
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.blog-filter-badge.visible {
    display: flex;
}

.blog-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--c-surface);
    border: 1px solid rgba(126, 207, 255, 0.2);
    border-radius: var(--corner-radius);
    padding: 6px;
    min-width: 180px;
    z-index: 100;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.blog-filter-dropdown.open {
    display: flex;
}

.blog-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    transition: background 0.15s ease;
    user-select: none;
}

.blog-filter-option:hover {
    background: rgba(126, 207, 255, 0.1);
}

.blog-filter-option input[type="checkbox"] {
    accent-color: var(--c-accent);
    width: 14px;
    height: 14px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.blog-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 6px;
}

.blog-label-chip {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(126, 207, 255, 0.12);
    border: 1px solid rgba(126, 207, 255, 0.3);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: 0.02em;
}

.blog-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-grid[data-view="list"] {
    grid-template-columns: 1fr;
}

.blog-card {
    background: var(--c-panel);
    border-radius: var(--corner-radius);
    overflow: hidden;
    transition: background 0.18s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    background: var(--c-lighterpanel);
}

.blog-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.blog-thumb-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--c-bg);
}

.blog-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.blog-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-accent);
    font-size: 2rem;
}

.blog-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.blog-card-preview {
    display: none;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.78rem;
    color: rgba(127, 207, 255, 0.65);
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
}

.blog-meta-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-views-icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(80%) sepia(20%) saturate(500%) hue-rotate(180deg) brightness(110%) opacity(0.65);
}

.blog-top-row {
    display: flex;
    justify-content: flex-start;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 700;
}

.blog-back-link:hover {
    color: var(--c-accent);
    opacity: 0.8;
}

.blog-post {
    border-radius: var(--corner-radius);
    overflow: hidden;
}

.blog-post-header {
    background: var(--c-panel);
    padding: 20px;
}

.blog-post-body {
    background: var(--c-bg);
    padding: 20px;
}

.blog-post-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: rgba(127, 207, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 16px;
    align-items: center;
}

.blog-cover {
    width: 100%;
    border-radius: var(--corner-radius);
    overflow: hidden;
    margin-bottom: 0;
}

.blog-cover-media {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

video.blog-cover-media {
    cursor: default;
}

.blog-markdown {
    color: #fff;
    font-size: 1.03rem;
    line-height: 1.75;
}

.blog-markdown > * + * {
    margin-top: 14px;
}

.blog-markdown h1,
.blog-markdown h2,
.blog-markdown h3,
.blog-markdown h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--c-accent);
    line-height: 1.2;
}

.blog-markdown h1 { font-size: 2rem; }
.blog-markdown h2 { font-size: 1.6rem; }
.blog-markdown h3 { font-size: 1.3rem; }
.blog-markdown h4 { font-size: 1.1rem; }

.blog-markdown a {
    color: var(--c-accent);
}

.blog-markdown img,
.blog-inline-video,
.blog-markdown video {
    display: block;
    margin: 0 auto;
    max-height: 480px;
    width: auto;
    max-width: 100%;
    border-radius: var(--corner-radius);
    background: var(--c-bg);
    cursor: pointer;
}

.blog-markdown pre {
    background: var(--c-bg);
    border-radius: var(--corner-radius);
    padding: 12px;
    overflow-x: auto;
}

.blog-markdown code {
    font-family: Consolas, 'Courier New', monospace;
}

.blog-markdown blockquote {
    border-left: 3px solid var(--c-accent);
    padding-left: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Custom media tags ({{media=…}}) ───────────────────── */
.sb-media-center {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.sb-media-center .sb-media-item {
    max-height: 460px;
    width: auto;
    max-width: 100%;
    border-radius: var(--corner-radius);
    cursor: pointer;
    display: block;
}

.sb-media-center video.sb-media-item {
    max-height: 460px;
    max-width: 100%;
    border-radius: var(--corner-radius);
    cursor: default;
}

/* ── Floated media layout ────────────────────────────── */
.sb-float-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 14px;
}

.sb-float-text {
    flex: 1;
    min-width: 0;
}

.sb-float-text > * + * {
    margin-top: 14px;
}

.sb-float-img {
    flex-shrink: 0;
    width: 38%;
}

.blog-markdown .sb-float-img .sb-media-item {
    width: 100%;
    max-height: none;
    height: auto;
    cursor: pointer;
}

.blog-markdown .sb-float-img video.sb-media-item {
    cursor: default;
}

@media (max-width: 600px) {
    .sb-float-wrap {
        flex-direction: column;
    }
    .sb-float-img {
        width: 100%;
    }
}

.blog-post-media {
    background: var(--c-panel);
    padding: 20px;
    margin-top: 0;
}

.blog-post-media h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem;
    color: var(--c-accent);
    margin-bottom: 12px;
}

.blog-post-media-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-media-item {
    margin: 0;
    background: var(--c-bg);
    border-radius: var(--corner-radius);
    overflow: hidden;
}

.blog-media-item img,
.blog-media-item video {
    width: 100%;
    height: 110px;
    display: block;
    background: var(--c-bg);
    object-fit: cover;
    cursor: pointer;
}

.blog-media-item figcaption {
    padding: 5px 8px;
    font-size: 0.78rem;
    color: rgba(127, 207, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-media-more {
    height: 100%;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 2px dashed rgba(127, 207, 255, 0.35);
    border-radius: var(--corner-radius);
    color: rgba(127, 207, 255, 0.65);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
    padding: 10px;
}

.blog-media-more i {
    font-size: 1.5rem;
    opacity: 0.7;
}

.blog-media-more:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.blog-grid[data-view="list"] .blog-card-link {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 140px;
}

.blog-grid[data-view="list"] .blog-thumb-wrap {
    aspect-ratio: auto;
    height: 100%;
}

.blog-grid[data-view="list"] .blog-card-preview {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
    margin: 4px 0 8px;
}

/* ─── Team ────────────────────────────────────────────── */

.team-content {
    gap: 36px;
}

.team-empty {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.team-category {
    width: 100%;
}

.team-category-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--c-accent);
    margin-bottom: 16px;
    text-align: left;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.team-card {
    flex: 0 0 calc(20% - 16px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.team-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--c-bg);
    flex-shrink: 0;
    margin-bottom: 6px;
}

.team-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--c-accent);
    opacity: 0.4;
}

.team-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.team-role {
    font-size: 0.78rem;
    color: rgba(127, 207, 255, 0.7);
    line-height: 1.3;
}

.team-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.team-social-link:hover {
    opacity: 1;
    transform: scale(1.18);
}

.team-social-link img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .content {
        padding: 28px 20px 48px;
    }

    .navbar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-btn {
        padding: 8px 13px;
        font-size: 0.95rem;
    }

    .info-box {
        padding: 18px 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .blog-search-wrap {
        min-width: 0;
    }

    .blog-toolbar-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-shrink: 0;
    }

    .blog-toggle-btn {
        width: 40px;
        flex: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid[data-view="list"] .blog-card-link {
        grid-template-columns: 1fr;
    }

    .blog-post-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ─── Portrait / Mobile ───────────────────────────────── */

@media (orientation: portrait) {
    #starfield {
        display: none;
    }

    .site-wrapper {
        border-radius: 0;
        margin: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .content {
        padding: 20px 16px 32px;
    }

    /* ── Navbar ── */

    .navbar {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        padding: 6px 16px 12px;
        gap: 4px;
        background: var(--c-panel);
    }

    .navbar.open .nav-links {
        display: flex;
        animation: sbNavSlide 0.18s ease;
    }

    @keyframes sbNavSlide {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav-btn {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        padding: 10px 14px;
        font-size: 1rem;
        letter-spacing: 0.04em;
    }

    .nav-mobile-title {
        display: block;
        flex: 1;
        text-align: center;
        font-family: 'Fredoka', sans-serif;
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #fff;
    }

    .nav-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        flex-shrink: 0;
    }

    .gallery-content.gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-category--solo {
        max-width: 100%;
    }

    .team-card {
        flex: 0 0 calc(50% - 10px);
    }

    .blog-post-title {
        font-size: 1.8rem;
    }

    .blog-cover-media {
        height: auto;
        object-fit: initial;
    }

    .nav-hamburger img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }
    .nav-hamburger .nav-icon-close { display: none; }
    .navbar.open .nav-hamburger .nav-icon-bars  { display: none; }
    .navbar.open .nav-hamburger .nav-icon-close { display: block; }
}
