:root {
    color-scheme: light;
    --ink: #1b211d;
    --paper: #f6f7f2;
    --muted: #69716b;
    --line: #d8ddd5;
    --soft-text: #5b645d;
    --soft-light: #c5cbc5;
    --placeholder: #e5e8df;
    --color-primary: var(--accent);
    --color-bg-dark: var(--ink);
    --color-bg-dark-alpha: rgb(27 33 29 / 93%);
    --color-text-light: #f6f7f2;
    --accent: #33b642;
    --accent-alt: #43df7f;
    --display: "Chau Philomene One", Georgia, serif;
    --body: "Hanken Grotesk", sans-serif;
}

html[data-game="solis"] {
    --accent: #ec8e14;
    --accent-alt: #33acf8;
}

html[data-game="between-death"] {
    --accent: #7468a8;
    --accent-alt: #e260bb;
}

html[data-game="dont-let-it-fall"] {
    --accent: #2e9c9b;
    --accent-alt: #6748f0;
}

html[data-game="sketch-fleets"] {
    --accent: #b29633;
    --accent-alt: #e27b52;
}

html[data-game="buffbuff"] {
    --accent: #3ad635;
    --accent-alt: #72aa39;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #edf1ec;
    --paper: #151a16;
    --muted: #a7b0a8;
    --line: #374039;
    --soft-text: #c1c9c2;
    --soft-light: #d5dbd5;
    --placeholder: #28302a;
    --color-bg-dark: #101511;
    --color-bg-dark-alpha: rgb(16 21 17 / 95%);
    --color-text-light: #edf1ec;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.news-footer {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 6vw, 92px);
}

.news-site-header {
    flex-direction: row;
    justify-content: space-between;
    min-height: 85px;
    padding: 8px clamp(16px, 4vw, 64px);
    background: linear-gradient(to bottom, var(--color-bg-dark-alpha) 0%, transparent 100%);
    backdrop-filter: none;
    border-bottom: 0;
    color: var(--color-text-light);
}

html[data-theme="light"] #barebone-header.news-site-header:not(.news-site-header-over-banner) {
    background: var(--ink);
    color: var(--paper);
}

html[data-theme="light"] #barebone-header.news-site-header:not(.news-site-header-over-banner).scrolled {
    background: var(--ink);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

#barebone-header.news-site-header {
    display: grid;
    flex-direction: row;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-content: stretch;
}

#barebone-header.news-site-header-over-banner {
    margin-bottom: -85px;
}

.news-site-header-over-banner + main .news-intro {
    padding-top: 109px;
}

.news-brand {
    display: inline-flex;
    align-items: center;
}

.news-brand img {
    display: block;
    width: 154px;
    max-height: 42px;
    object-fit: contain;
    object-position: left center;
}

.news-header-controls {
    display: flex;
    align-items: center;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 10px;
    order: 0;
}

#barebone-header.news-site-header .news-center-links {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 3vw, 36px);
    width: max-content;
    margin: 0;
    cursor: default;
}

#barebone-header.news-site-header .news-center-links .barebone-sections-item,
#barebone-header.news-site-header .news-center-links .barebone-sections-item + .barebone-sections-item {
    margin: 0;
}

.news-site-header .news-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    order: 0;
    width: auto;
    padding: 0;
    cursor: default;
}

.news-site-header .news-brand img {
    width: auto;
    height: 58px;
    max-width: min(27vw, 220px);
    max-height: 58px;
    object-position: right center;
}

#barebone-header.news-site-header .barebone-logo img {
    width: auto;
    height: 58px;
    max-width: min(27vw, 220px);
    max-height: 58px;
}

.header-link,
.news-footer a {
    font-size: 13px;
    font-weight: 700;
}

.header-actions,
.language-switch {
    display: flex;
    align-items: center;
}

.header-actions {
    gap: 26px;
}

.language-switch {
    gap: 4px;
    padding: 3px;
    border: 1px solid rgb(255 255 255 / 22%);
}

.language-switch a {
    padding: 7px 9px;
    color: #c5cbc5;
    font-size: 11px;
    font-weight: 700;
}

.language-switch a[aria-current="page"] {
    background: var(--accent);
    color: var(--ink);
}

.news-site-header .language-switch a {
    color: var(--color-text-light);
}

.news-site-header .language-switch a[aria-current="page"] {
    color: #1b211d;
}

.news-theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-light);
    cursor: pointer;
}

.news-theme-toggle:hover {
    border-color: var(--accent-alt);
    color: var(--accent-alt);
}

.header-link span,
.news-footer a span {
    color: var(--accent-alt);
}

.news-intro {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 440px;
    padding: 24px clamp(22px, 9vw, 138px) 40px;
    background: var(--ink);
    color: white;
}

.news-intro::after {
    position: absolute;
    right: 9%;
    bottom: -125px;
    width: 300px;
    height: 300px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgb(255 255 255 / 3%), 0 0 0 68px rgb(255 255 255 / 3%);
    content: "";
    pointer-events: none;
    z-index: 1;
}

.news-intro-image {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    opacity: .64;
}

.news-intro::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgb(27 33 29 / 96%) 0%, rgb(27 33 29 / 78%) 44%, rgb(27 33 29 / 18%) 100%);
    content: "";
    pointer-events: none;
}

.news-intro > *:not(.news-intro-image) {
    position: relative;
    z-index: 2;
}

.intro-topline,
.intro-rule {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--soft-light);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.intro-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(28px, 6vw, 88px);
    margin-top: 58px;
}

.intro-copy-column {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 720px;
}

.news-intro-logo,
.article-hero-logo {
    display: block;
    width: min(28%, 300px);
    max-height: 220px;
    flex: 0 0 28%;
    object-fit: contain;
    filter: drop-shadow(0 3px 18px rgb(0 0 0 / 45%));
}

.news-intro.has-game-logo .intro-copy-column {
    max-width: 640px;
}

.news-intro.has-game-logo .news-intro-logo {
    width: min(36%, 380px);
    max-height: 300px;
    flex-basis: 36%;
    transform: scale(1.12);
    transform-origin: center;
}

html[data-game="between-death"] .news-intro.has-game-logo .news-intro-logo,
html[data-game="solis"] .news-intro.has-game-logo .news-intro-logo {
    transform: scale(1.12);
}

html[data-game="dont-let-it-fall"] .news-intro.has-game-logo .news-intro-logo {
    transform: scale(1.55);
}

html[data-game="sketch-fleets"] .news-intro.has-game-logo .news-intro-logo {
    transform: scale(1.4);
}

html[data-game="solis"] .article-hero-logo,
html[data-game="between-death"] .article-hero-logo {
    transform: scale(1.12);
    transform-origin: center;
}

html[data-game="dont-let-it-fall"] .article-hero-logo {
    transform: scale(1.4);
    transform-origin: center;
}

html[data-game="sketch-fleets"] .article-hero-logo {
    transform: scale(1.28);
    transform-origin: center;
}

.intro-kicker {
    margin: 0 0 10px;
    color: var(--accent-alt);
    font-size: 13px;
    font-weight: 800;
}

.news-intro h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(54px, 8vw, 104px);
    font-weight: 400;
    line-height: .94;
}

.news-intro h1 span {
    color: var(--accent);
}

.intro-copy {
    max-width: 410px;
    margin: 20px 0 30px;
    color: var(--soft-light);
    font-size: 15px;
    line-height: 1.65;
}

.intro-rule {
    position: relative;
    z-index: 1;
    max-width: 440px;
    padding-top: 12px;
    border-top: 1px solid rgb(255 255 255 / 25%);
}

.intro-rule span:last-child {
    color: var(--accent-alt);
    font-size: 17px;
}

.news-filters {
    display: flex;
    align-items: center;
    gap: 27px;
    overflow-x: auto;
    padding: 0 clamp(22px, 9vw, 138px);
    border-bottom: 1px solid var(--line);
    scrollbar-width: thin;
}

.filter-label,
.filter-link {
    flex: 0 0 auto;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.filter-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.filter-link {
    position: relative;
    color: var(--soft-text);
    font-weight: 600;
}

.filter-logo {
    display: none;
}

.filter-link:hover,
.filter-link.is-active {
    color: var(--ink);
}

.filter-link.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--accent);
    content: "";
}

.story-list {
    max-width: 1160px;
    min-height: 300px;
    margin: 0 auto;
    padding: 20px 30px 90px;
}

.story-row {
    display: grid;
    grid-template-columns: minmax(220px, 38%) 1fr;
    gap: clamp(25px, 5vw, 68px);
    padding: 38px 0;
    border-bottom: 1px solid var(--line);
    animation: story-arrive .45s ease both;
}

.story-row[hidden],
.article-main[hidden] {
    display: none !important;
}

.story-image {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 220px;
    aspect-ratio: 1.48;
    background: var(--placeholder);
}

.story-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.story-image:hover img {
    transform: scale(1.035);
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
    font-family: var(--display);
    font-size: 36px;
}

.image-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
    font-size: 19px;
}

.story-details {
    align-self: center;
    padding: 4px 0;
}

.story-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.story-meta span {
    color: var(--accent);
}

.story-details h2 {
    max-width: 650px;
    margin: 15px 0 10px;
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.08;
}

.story-details h2 a:hover {
    color: var(--accent);
}

.story-details p,
.empty-state p {
    max-width: 560px;
    margin: 0;
    color: var(--soft-text);
    font-size: 15px;
    line-height: 1.65;
}

.read-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 13px;
    font-weight: 800;
}

.read-link span {
    color: var(--accent);
    font-size: 18px;
    transition: transform .2s ease;
}

.read-link:hover span {
    transform: translateX(4px);
}

.empty-state {
    padding: 76px 0;
}

.empty-mark {
    color: var(--accent);
    font-size: 27px;
}

.empty-state h2 {
    margin: 16px 0 8px;
    font-family: var(--display);
    font-size: 36px;
    font-weight: 400;
}

.news-footer {
    min-height: 90px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.news-footer > a:first-child {
    color: var(--ink);
}

.news-footer span {
    font-size: 12px;
}

.article-main {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px 30px 100px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.back-link:hover {
    color: var(--accent);
}

.article-heading {
    padding-top: 24px;
}

.article-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    background: var(--ink);
    color: white;
}

.article-hero::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(0deg, rgb(27 33 29 / 96%) 0%, rgb(27 33 29 / 66%) 48%, rgb(27 33 29 / 4%) 100%);
    content: "";
}

.article-hero-image {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.article-hero-copy {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    padding: clamp(24px, 5vw, 58px);
}

.article-hero-logo {
    position: relative;
    z-index: 1;
    width: 32%;
    max-height: 245px;
    flex-basis: 32%;
    margin: 0 clamp(24px, 5vw, 58px) clamp(24px, 5vw, 58px) 0;
}

.article-hero .story-meta {
    color: #e1e5df;
}

.article-hero .story-meta span {
    color: var(--accent-alt);
}

.article-hero h1 {
    max-width: 760px;
    margin: 18px 0 12px;
    font-family: var(--display);
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 400;
    line-height: 1;
}

.article-hero .article-deck {
    max-width: 690px;
    margin: 0;
    color: #e1e5df;
    font-size: 18px;
    line-height: 1.55;
}

.article-heading h1 {
    max-width: 830px;
    margin: 16px 0;
    font-family: var(--display);
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 400;
    line-height: 1;
}

.article-deck {
    max-width: 690px;
    margin: 0 0 30px;
    color: var(--soft-text);
    font-size: 19px;
    line-height: 1.55;
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.article-body {
    max-width: 680px;
    margin: 44px auto 0;
    font-size: 17px;
    line-height: 1.8;
}

.article-share {
    max-width: 680px;
    margin: 44px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.article-share-label {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.article-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.article-share-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font: 700 13px var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.article-share-button:hover {
    border-color: var(--accent);
    background: var(--placeholder);
    color: var(--ink);
}

.article-share-button i {
    color: var(--accent);
    font-size: 15px;
}

.article-share-button[hidden] {
    display: none;
}

.article-share-status {
    display: block;
    min-height: 20px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

.article-body h2 {
    margin: 40px 0 12px;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
}

.article-body a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body .news-media {
    margin: 34px 0;
}

.article-body .news-media img,
.article-body .news-media video {
    display: block;
    width: 100%;
    height: auto;
}

.article-body .news-embed {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #101411;
}

.article-body .news-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.article-body .news-media figcaption {
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

@keyframes story-arrive {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
    #barebone-header.news-site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        justify-content: stretch;
        min-height: 66px;
        padding: 8px 16px;
    }

    #barebone-header.news-site-header-over-banner {
        margin-bottom: -96px;
    }

    .news-site-header-over-banner + main .news-intro {
        padding-top: 106px;
    }

    #barebone-header.news-site-header .barebone-logo img {
        height: 42px;
        max-width: 27vw;
        max-height: 42px;
    }

    #barebone-header.news-site-header .news-center-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 4px 22px;
    }

    #barebone-header.news-site-header .news-center-links .barebone-sections-item {
        font-size: 23px;
    }

    .news-header-controls {
        gap: 7px;
    }

    .news-site-header .language-switch {
        gap: 2px;
        padding: 2px;
    }

    .news-site-header .language-switch a {
        padding: 7px 6px;
        font-size: 10px;
    }

    .news-theme-toggle {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .news-intro {
        min-height: 400px;
        padding-top: 20px;
    }

    .news-intro-logo,
    .article-hero-logo {
        display: none;
    }

    .news-intro::after {
        right: -180px;
    }

    .intro-topline {
        font-size: 9px;
    }

    .intro-kicker {
        margin-top: 0;
    }

    .intro-layout {
        gap: 12px;
        margin-top: 48px;
    }

    .news-intro-logo {
        width: 28%;
        max-height: 130px;
        flex-basis: 28%;
    }

    .news-intro.has-game-logo .news-intro-logo {
        width: 34%;
        max-height: 160px;
        flex-basis: 34%;
        transform: scale(1.08);
    }

    .news-intro.has-game-logo .intro-layout {
        position: relative;
        display: block;
        margin-top: 12px;
    }

    .news-intro.has-game-logo .intro-copy-column {
        max-width: none;
        padding-top: 88px;
    }

    .news-intro.has-game-logo .news-intro-logo {
        position: absolute;
        top: 0;
        right: 0;
        width: 104px;
        height: 78px;
        max-width: 104px;
        max-height: 78px;
        object-fit: contain;
        transform: none;
    }

    html[data-game="dont-let-it-fall"] .news-intro-logo {
        transform: scale(1.25);
    }

    html[data-game="sketch-fleets"] .news-intro-logo {
        transform: scale(1.18);
    }

    .news-filters {
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        padding-left: 16px;
        padding-right: 22px;
        border-bottom: 0;
    }

    .news-filters .filter-label,
    .filter-link .filter-text {
        display: none;
    }

    .news-filters .filter-link {
        width: 48px;
        height: 48px;
        min-height: 48px;
        display: inline-flex;
        flex: 0 0 48px;
        align-items: center;
        justify-content: center;
        padding: 3px;
        overflow: hidden;
        border: 0;
        border-radius: 50%;
        background: radial-gradient(circle, rgb(25 31 26 / 58%) 0%, transparent 78%);
        box-shadow: none;
    }

    .news-filters .filter-link.is-active {
        background: radial-gradient(circle, var(--accent) 0%, transparent 78%);
    }

    .news-filters .filter-link.is-active::after {
        content: none;
    }

    .news-filters .filter-logo {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: scale(1);
    }

    .news-filters .filter-link[data-filter-game="solis"] .filter-logo {
        transform: scale(1.05);
    }

    .news-filters .filter-link[data-filter-game="between-death"] .filter-logo {
        transform: scale(1);
    }

    .news-filters .filter-link[data-filter-game="dont-let-it-fall"] .filter-logo {
        transform: scale(1.2);
    }

    .news-filters .filter-link[data-filter-game="sketch-fleets"] .filter-logo {
        transform: scale(1.15);
    }

    html[data-theme="dark"] .news-filters .filter-link:not(.is-active) {
        border-color: transparent;
        background: radial-gradient(circle, rgb(0 0 0 / 58%) 0%, transparent 78%);
        box-shadow: none;
    }

    .filter-label,
    .filter-link {
        min-height: 48px;
    }

    .story-list {
        padding: 0 22px 60px;
    }

    .story-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 0;
    }

    .story-image {
        min-height: 0;
    }

    .news-footer {
        min-height: 76px;
        flex-wrap: wrap;
        gap: 9px 18px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .news-footer > span {
        display: none;
    }

    .article-main {
        padding: 16px 22px 70px;
    }

    .article-heading {
        padding-top: 22px;
    }

    .article-hero {
        min-height: 390px;
    }

    .article-hero-copy {
        padding: 24px 16px 24px 22px;
    }

    .article-hero-logo {
        width: 28%;
        max-height: 140px;
        flex-basis: 28%;
        margin: 0 12px 24px 0;
        transform: scale(1.08);
    }

    html[data-game="dont-let-it-fall"] .article-hero-logo {
        transform: scale(1.2);
    }

    html[data-game="sketch-fleets"] .article-hero-logo {
        transform: scale(1.15);
    }

    .article-hero .article-deck {
        font-size: 17px;
    }

    .article-body {
        margin-top: 32px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}