/*
Theme Name: SimHaven Theme 2.0
Theme URI: https://playsimhaven.com/
Author: SimHaven
Description: A modern, game-first WordPress theme for the SimHaven community.
Version: 2.0.2
Text Domain: simhaven-theme-2
*/

:root {
    --ink: #10213c;
    --ink-soft: #41516a;
    --navy: #0c2442;
    --navy-deep: #07182f;
    --blue: #168bd2;
    --blue-dark: #0871b8;
    --blue-pale: #e8f5fd;
    --green: #36b742;
    --green-dark: #24852e;
    --yellow: #f4c84a;
    --surface: #ffffff;
    --surface-soft: #f4f8fb;
    --surface-raised: #ffffff;
    --line: #cfe0ec;
    --link: #0871b8;
    --link-hover: #0c2442;
    --header-background: rgba(255, 255, 255, 0.97);
    --header-line: rgba(16, 33, 60, 0.12);
    --header-shadow: 0 4px 16px rgba(12, 36, 66, 0.06);
    --field-border: #aebfcd;
    --article-ink: #273a53;
    --social-badge-background: #e8f5fd;
    --logo-filter: none;
    --shadow: 0 16px 38px rgba(15, 43, 74, 0.12);
    --shell: 1180px;
    --narrow: 780px;
    --radius: 8px;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --ink: #eef6fc;
    --ink-soft: #b5c7d7;
    --blue-pale: #183a53;
    --green-dark: #69db73;
    --surface: #081521;
    --surface-soft: #0d1d2c;
    --surface-raised: #12283a;
    --line: #2b465c;
    --link: #66c7ff;
    --link-hover: #a9e2ff;
    --header-background: rgba(8, 21, 33, 0.97);
    --header-line: rgba(181, 199, 215, 0.18);
    --header-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
    --field-border: #45647b;
    --article-ink: #d7e5ef;
    --social-badge-background: #e8f5fd;
    --logo-filter: drop-shadow(0 0 1px rgba(214, 237, 255, 0.72));
    --shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --ink: #eef6fc;
        --ink-soft: #b5c7d7;
        --blue-pale: #183a53;
        --green-dark: #69db73;
        --surface: #081521;
        --surface-soft: #0d1d2c;
        --surface-raised: #12283a;
        --line: #2b465c;
        --link: #66c7ff;
        --link-hover: #a9e2ff;
        --header-background: rgba(8, 21, 33, 0.97);
        --header-line: rgba(181, 199, 215, 0.18);
        --header-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
        --field-border: #45647b;
        --article-ink: #d7e5ef;
        --social-badge-background: #e8f5fd;
        --logo-filter: drop-shadow(0 0 1px rgba(214, 237, 255, 0.72));
        --shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
body.menu-is-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}
h1, h2, h3, h4 {
    margin: 0 0 0.65rem;
    color: var(--ink);
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
p { margin: 0 0 1rem; }
.site-shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.narrow-shell { width: min(calc(100% - 40px), var(--narrow)); margin-inline: auto; }
.section-space { padding-block: 76px; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    z-index: 99999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--surface-raised);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid var(--header-line);
    background: var(--header-background);
    box-shadow: var(--header-shadow);
}
.header-inner {
    display: grid;
    grid-template-columns: 210px 1fr auto auto;
    align-items: center;
    min-height: 84px;
    gap: 24px;
}
.site-logo { display: inline-flex; width: 190px; }
.site-logo img { width: 100%; max-height: 62px; object-fit: contain; filter: var(--logo-filter); }
.desktop-nav { justify-self: center; }
.desktop-nav ul, .mobile-menu ul { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}
.desktop-nav a:hover, .desktop-nav .current-menu-item > a { color: var(--link); }
.header-actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.theme-picker { display: inline-flex; align-items: center; }
.theme-picker select {
    width: 112px;
    min-height: 40px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--surface-raised);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 22px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(22, 139, 210, 0.2);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { border-color: var(--blue-dark); color: #fff; background: var(--blue-dark); }
.button-secondary { color: var(--link); background: transparent; box-shadow: none; }
.button-secondary:hover { color: #fff; background: var(--blue-dark); }
.button-light { border-color: #fff; color: var(--blue-dark); background: #fff; }
.button-light:hover { border-color: var(--blue-pale); color: var(--navy); background: var(--blue-pale); }
.button-outline-light { border-color: #fff; color: #fff; background: transparent; box-shadow: none; }
.button-outline-light:hover { color: var(--navy); background: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-raised); }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--ink); content: ""; }
.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }
.mobile-menu { display: none; padding: 24px 0; border-top: 1px solid var(--line); background: var(--surface-raised); }
.mobile-menu[hidden] { display: none; }

.event-banner {
    max-height: 0;
    border-top: 1px solid transparent;
    color: #fff;
    background:
        radial-gradient(circle at 14% 50%, rgba(78, 215, 91, 0.2), transparent 32%),
        linear-gradient(100deg, #071a31 0%, #0c3450 58%, #0b493f 100%);
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: max-height 260ms ease, opacity 200ms ease, transform 260ms ease, border-color 200ms ease;
}
.event-banner[hidden] { display: none; }
.event-banner.is-visible {
    max-height: 240px;
    border-top-color: rgba(255, 255, 255, 0.13);
    opacity: 1;
    transform: translateY(0);
}
.event-banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 58px;
    padding-block: 8px;
}
.event-banner-message { min-width: 0; }
.event-banner-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #73e77c;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.event-banner-effects {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 3px;
    min-width: 0;
}
.event-effect {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    color: #dcecf4;
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
}
.event-effect + .event-effect::before {
    margin-inline: 10px;
    color: rgba(115, 231, 124, 0.8);
    content: "\2022";
    font-size: 11px;
}
.event-effect-name { color: #fff; font-weight: 900; }
.event-effect-value { color: #dcecf4; font-weight: 700; }
.event-effect-time {
    color: #bcd2df;
    font-size: 10px;
    font-weight: 700;
}
.event-effect-time::before { margin-right: 4px; content: "\2014"; }
.event-banner-timer {
    min-width: 142px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    text-align: right;
    white-space: nowrap;
}
.event-banner-timer span {
    display: block;
    color: #bcd2df;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.event-banner-timer strong {
    display: block;
    color: #fff;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.25;
}

.community-rail {
    position: fixed;
    z-index: 90;
    top: 50%;
    right: 0;
    width: 54px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    transition: width 180ms ease;
    overflow: hidden;
}
.community-rail:hover, .community-rail:focus-within { width: 180px; }
.community-rail-title { display: block; width: 150px; margin: 0 0 8px 46px; color: var(--ink-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.social-links { display: flex; gap: 10px; }
.social-links-rail { flex-direction: column; }
.social-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.social-links-rail .social-link { width: 154px; min-height: 38px; }
.social-badge { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 6px; background: var(--social-badge-background); }
.social-badge img { width: 19px; height: 19px; object-fit: contain; }
.social-links-footer { flex-wrap: wrap; margin-top: 20px; }
.social-links-footer .social-text { display: none; }

.home-hero {
    position: relative;
    min-height: 610px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}
.hero-overlay { position: absolute; z-index: 0; inset: 0; background: rgba(5, 22, 39, 0.56); }
.hero-character-art {
    position: absolute;
    z-index: 1;
    right: max(20px, calc((100vw - var(--shell)) / 2 - 70px));
    bottom: 0;
    width: clamp(528px, 48vw, 760px);
    pointer-events: none;
    filter: drop-shadow(0 18px 18px rgba(2, 12, 24, 0.3));
    animation: hero-characters-rise 760ms cubic-bezier(0.2, 0.72, 0.24, 1) 120ms both;
}
.hero-character-art img { width: 100%; }
.hero-content { position: relative; z-index: 2; padding-block: 92px; }
.hero-content h1 { max-width: 500px; color: #fff; font-size: 68px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.22); }
.hero-content > p { max-width: 500px; color: #fff; font-size: 20px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--link); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.eyebrow-light { color: #bde9ff; }
.hero-platforms { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: #fff; font-size: 13px; font-weight: 700; }
.platform-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.46); border-radius: 5px; background: rgba(255, 255, 255, 0.9); }
.platform-mark img { width: 18px; height: 18px; }

@keyframes hero-characters-rise {
    from { opacity: 0; transform: translateY(18%); }
    to { opacity: 1; transform: translateY(0); }
}

.city-pulse { padding-block: 42px; color: #fff; background: var(--navy); }
.city-pulse h2 { color: #fff; font-size: 30px; }
.city-pulse-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.live-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #8b98a9; }
.status-dot.is-online { background: #43d45b; box-shadow: 0 0 0 4px rgba(67, 212, 91, 0.16); }
.pulse-grid { display: grid; grid-template-columns: 0.8fr 0.9fr 1.35fr 2fr; gap: 1px; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.15); }
.pulse-item { min-width: 0; padding: 20px; background: var(--navy-deep); }
.pulse-item > span:last-child { display: block; color: #9eb3cb; font-size: 12px; }
.pulse-item strong { display: block; margin: 3px 0; color: #fff; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 27px; line-height: 1.2; }
.pulse-label { display: block; color: #8ed6ff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.pulse-job select { width: 100%; margin: 5px 0 8px; padding: 7px 9px; border: 1px solid #34506e; border-radius: 4px; color: #fff; background: #102d4f; }
.pulse-job strong { font-size: 20px; }
.pulse-lots ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 8px 0 0; padding: 0; list-style: none; }
.pulse-lots .lot-tile { display: flex; min-width: 0; min-height: 34px; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid rgba(142, 214, 255, 0.2); border-radius: 4px; color: #fff; background: rgba(16, 45, 79, 0.72); font-size: 12px; transition: border-color 160ms ease, background-color 160ms ease; }
.pulse-lots .lot-tile:hover { border-color: rgba(142, 214, 255, 0.48); background: #102d4f; }
.pulse-lots .lot-name { overflow: hidden; min-width: 0; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.pulse-lots .lot-visitors { flex: none; padding: 3px 6px; border-radius: 8px; color: #dfffe7; background: rgba(67, 212, 91, 0.16); font-size: 11px; font-weight: 900; white-space: nowrap; }
.pulse-lots .lot-tile-empty { grid-column: 1 / -1; justify-content: flex-start; color: #9eb3cb; }
.money-market { margin-top: 18px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.15); background: var(--navy-deep); }
.money-market-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.money-market-heading h3 { margin: 0; color: #fff; font-size: 18px; }
.money-market-heading > span { color: #9eb3cb; font-size: 12px; }
.money-market-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.money-market-item { min-width: 0; padding: 11px; border: 1px solid rgba(142, 214, 255, 0.2); border-radius: 5px; background: rgba(16, 45, 79, 0.72); }
.money-market-item-top { display: flex; min-height: 17px; align-items: center; justify-content: space-between; gap: 5px; }
.money-market-name { overflow: hidden; color: #d9edff; font-size: 11px; font-weight: 900; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.money-market-bonus { flex: none; padding: 2px 5px; border-radius: 9px; color: #172400; background: #b9e852; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.money-market-percent { display: block; margin: 5px 0 3px; color: #fff; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 24px; line-height: 1; }
.money-market-change { display: block; overflow: hidden; color: #9eb3cb; font-size: 10px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.money-market-item.is-up .money-market-change { color: #8de89c; }
.money-market-item.is-down .money-market-change { color: #ffaaaa; }
.money-market-message { grid-column: 1 / -1; padding: 12px; color: #9eb3cb; text-align: center; }

.feature-band { background: var(--blue-pale); }
.section-heading { margin-bottom: 34px; }
.centered-heading { max-width: 760px; margin-inline: auto; text-align: center; }
.centered-heading > p { color: var(--ink-soft); font-size: 18px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); box-shadow: var(--shadow); }
.feature-card p { color: var(--ink-soft); }
.feature-number { display: inline-block; margin-bottom: 30px; color: var(--green-dark); font-family: "Trebuchet MS", Arial, sans-serif; font-size: 24px; font-weight: 900; }

.story-section { display: grid; gap: 92px; }
.story-row { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 68px; }
.story-row-reverse .story-image { order: 2; }
.story-image { position: relative; }
.story-image::after { position: absolute; z-index: -1; right: -14px; bottom: -14px; width: 78%; height: 78%; border-radius: var(--radius); background: var(--blue-pale); content: ""; }
.story-image img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.story-image-identity img { aspect-ratio: auto; object-fit: contain; }
.story-copy p { color: var(--ink-soft); font-size: 18px; }
.text-link, .card-link { font-weight: 800; }
.about-stories { padding-bottom: 76px; }

.news-section { background: var(--surface-soft); }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); box-shadow: var(--shadow); }
.news-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-pale); }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.news-card:hover .news-card-image img { transform: scale(1.025); }
.news-card-body { padding: 24px; }
.news-card time { color: var(--ink-soft); font-size: 13px; }
.news-card h3 { margin-top: 6px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card p { color: var(--ink-soft); }
.news-archive-grid { row-gap: 30px; }
.pagination-wrap { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.page-numbers.current { color: #fff; background: var(--blue-dark); }

.home-cta { background: var(--surface); }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 54px; border-radius: var(--radius); color: #fff; background: var(--blue-dark); box-shadow: var(--shadow); }
.cta-panel h2 { color: #fff; }
.cta-panel p { margin: 0; color: #d8effc; }

.site-footer { padding-top: 62px; color: #d2e0ef; background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 50px; }
.footer-brand > img { width: 190px; margin-bottom: 20px; }
.footer-brand > p { max-width: 370px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-column h2 { color: #fff; font-size: 14px; text-transform: uppercase; }
.footer-column a, .footer-column span { color: #d2e0ef; font-size: 14px; text-decoration: none; }
.footer-platforms { display: grid; gap: 9px; }
.footer-platforms span { display: flex; align-items: center; gap: 9px; }
.footer-platforms img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-bottom p { margin: 0; color: #8fa7c0; font-size: 12px; }

.page-banner { padding-block: 72px; border-bottom: 1px solid var(--line); background: var(--blue-pale); }
.page-banner p { max-width: 680px; margin: 0; color: var(--ink-soft); font-size: 18px; }
.compact-banner { padding-block: 64px; }
.about-hero { position: relative; min-height: 360px; display: grid; align-items: center; background-image: var(--about-image); background-position: center; background-size: cover; }
.about-hero-overlay { position: absolute; inset: 0; background: rgba(4, 22, 39, 0.64); }
.about-hero .site-shell { position: relative; z-index: 1; }
.about-hero h1, .about-hero p { max-width: 760px; color: #fff; }
.about-hero p { font-size: 20px; }
.about-intro p { color: var(--ink-soft); font-size: 19px; }
.page-content { color: var(--ink-soft); }
.page-content h2, .page-content h3 { margin-top: 1.6em; }

.rules-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 54px; }
.rules-index { position: sticky; top: 112px; padding: 20px; border-left: 4px solid var(--blue); background: var(--surface-soft); }
.rules-index > strong { display: block; margin-bottom: 12px; }
.rules-index nav { display: grid; gap: 7px; }
.rules-index a { color: var(--ink-soft); font-size: 13px; line-height: 1.3; text-decoration: none; }
.rules-index a:hover { color: var(--link); }
.rules-content { max-width: 780px; }
.rules-content > p:first-child { font-size: 19px; }
.rules-content h2 { padding-top: 34px; margin-top: 36px; border-top: 1px solid var(--line); font-size: 28px; scroll-margin-top: 110px; }
.rules-content p { color: var(--ink-soft); }

.download-banner .version-pill { display: inline-block; margin-top: 22px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--link); background: var(--surface-raised); font-size: 13px; font-weight: 800; }
.platform-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.platform-download-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid var(--line); border-top: 5px solid var(--blue); border-radius: var(--radius); background: var(--surface-raised); box-shadow: var(--shadow); }
.platform-card-header { display: flex; align-items: center; gap: 16px; }
.platform-card-header h2 { margin: 0; font-size: 24px; }
.platform-card-header span:not(.platform-icon) { color: var(--ink-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.platform-icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; border-radius: 6px; background: var(--blue-pale); }
.platform-icon img { width: 26px; height: 26px; }
.platform-download-card > p { min-height: 52px; margin: 22px 0; color: var(--ink-soft); }
.platform-download-card dl { margin: 0 0 18px; }
.platform-download-card dl div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.platform-download-card dt { color: var(--ink-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.platform-download-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.checksum { margin-bottom: 20px; }
.checksum summary { color: var(--link); font-size: 13px; font-weight: 800; cursor: pointer; }
.checksum code { display: block; margin-top: 8px; padding: 9px; overflow-wrap: anywhere; background: var(--surface-soft); font-size: 10px; }
.platform-download-button { width: 100%; margin-top: auto; }
.download-help { background: var(--surface-soft); }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.help-grid article { padding: 30px; border-left: 5px solid var(--blue); background: var(--surface-raised); }
.help-grid ol { padding-left: 22px; }
.security-note { border-left-color: var(--yellow) !important; }

.article-header { padding-block: 72px 42px; text-align: center; }
.article-header h1 { font-size: 52px; }
.entry-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-soft); font-size: 13px; }
.entry-meta span + span::before { margin-right: 18px; color: #91a2b4; content: "•"; }
.article-featured-image { margin-bottom: 48px; }
.article-featured-image img { width: 100%; max-height: 720px; border-radius: var(--radius); object-fit: contain; background: var(--surface-soft); box-shadow: var(--shadow); }
.article-content { color: var(--article-ink); font-size: 18px; }
.article-content h2, .article-content h3 { margin-top: 1.7em; }
.article-content img { border-radius: 6px; }
.post-navigation { margin-block: 50px; padding-block: 24px; border-block: 1px solid var(--line); }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { font-weight: 800; text-decoration: none; }

.comments-area { margin-block: 50px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.comment-list { padding-left: 22px; }
.comment-list li { margin-bottom: 22px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 5px; font-weight: 700; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; padding: 12px; border: 1px solid var(--field-border); border-radius: 4px; color: var(--ink); background: var(--surface-raised); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { font-weight: 400; }
.form-submit { justify-self: start; }
.empty-state { min-height: 60vh; display: grid; align-items: center; padding-block: 90px; text-align: center; }

@media (max-width: 1100px) {
    .header-inner { grid-template-columns: 180px 1fr auto auto; }
    .site-logo { width: 170px; }
    .desktop-nav ul { gap: 16px; }
    .header-actions .button-secondary { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .pulse-grid { grid-template-columns: repeat(2, 1fr); }
    .money-market-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .platform-download-grid { grid-template-columns: 1fr; }
    .platform-download-card > p { min-height: 0; }
}

@media (max-width: 1250px) {
    .community-rail { display: none; }
}

@media (max-width: 899px) {
    h1 { font-size: 40px; }
    h2 { font-size: 31px; }
    .section-space { padding-block: 58px; }
    .header-inner { grid-template-columns: 1fr auto auto; min-height: 72px; gap: 12px; }
    .desktop-nav, .header-actions { display: none; }
    .menu-toggle { display: block; }
    .mobile-menu { display: block; max-height: calc(100vh - 72px); overflow-y: auto; }
    .event-banner.is-visible ~ .mobile-menu { max-height: calc(100vh - 230px); }
    .event-banner-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding-block: 9px; }
    .event-banner-message { min-width: 0; }
    .event-banner-timer { grid-column: 2; grid-row: 1; }
    .mobile-menu ul { flex-direction: column; gap: 0; }
    .mobile-menu li { border-bottom: 1px solid var(--line); }
    .mobile-menu nav > ul a { display: block; padding: 12px 2px; color: var(--ink); font-weight: 800; text-decoration: none; }
    .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 20px; }
    .social-links-mobile { flex-wrap: wrap; padding-bottom: 8px; }
    .home-hero { min-height: 560px; }
    .hero-content h1 { font-size: 55px; }
    .story-row { grid-template-columns: 1fr; gap: 36px; }
    .story-row-reverse .story-image { order: 0; }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .cta-panel { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-grid > :last-child { grid-column: 2 / -1; }
    .rules-layout { grid-template-columns: 1fr; }
    .rules-index { position: static; }
    .rules-index nav { grid-template-columns: repeat(2, 1fr); }
    .help-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1099px) {
    .hero-character-art { display: none; }
    .hero-content h1 { max-width: 720px; }
    .hero-content > p { max-width: 640px; }
}

@media (max-width: 620px) {
    .site-shell, .narrow-shell { width: min(calc(100% - 28px), var(--shell)); }
    h1 { font-size: 35px; }
    h2 { font-size: 28px; }
    .site-logo { width: 150px; }
    .theme-picker select { width: 104px; padding-inline: 6px; }
    .home-hero { min-height: 600px; background-position: 65% center; }
    .hero-content { padding-block: 72px; }
    .hero-content h1 { font-size: 44px; }
    .hero-content > p { font-size: 17px; }
    .button-row, .button-row .button { width: 100%; }
    .hero-platforms { flex-wrap: wrap; }
    .city-pulse-heading, .split-heading { align-items: flex-start; flex-direction: column; }
    .pulse-grid, .feature-grid, .news-grid { grid-template-columns: 1fr; }
    .pulse-lots ul { grid-template-columns: 1fr; }
    .money-market { padding: 14px; }
    .money-market-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .money-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card:last-child:nth-child(odd) { grid-column: auto; }
    .feature-card { min-height: 0; }
    .story-section { gap: 66px; }
    .cta-panel { padding: 36px 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > :last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .about-hero { min-height: 340px; }
    .rules-index nav { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 38px; }
    .article-content { font-size: 17px; }
    .entry-meta span + span::before { display: none; }
    .platform-download-card { padding: 22px; }
    .mobile-actions { grid-template-columns: 1fr; }
    .event-banner-inner { grid-template-columns: 1fr; gap: 8px; }
    .event-banner-effects { flex-direction: column; align-items: flex-start; }
    .event-banner-timer { grid-column: 1; grid-row: auto; padding: 7px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.16); border-left: 0; text-align: left; }
    .event-banner-timer span, .event-banner-timer strong { display: inline; }
    .event-banner-timer strong { margin-left: 5px; }
    .event-effect { max-width: 100%; white-space: normal; }
    .event-effect + .event-effect::before { display: none; }
}

@media (max-width: 360px) {
    .header-inner { gap: 8px; }
    .site-logo { width: 120px; }
    .theme-picker select { width: 96px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .hero-character-art { opacity: 1; transform: none; }
}
