/* ============================================================
   HUB v2 -- homepage-only redesign, namespaced under .hub2-*
   so nothing here collides with the shared, sitewide rules in
   main.css (.hub-header / .tile / .simulator-tiles etc, which
   other pages don't use but are left alone regardless).
   ============================================================ */

/* hub.css is only ever linked from index.html, so overriding the bare `body`
   selector here is safe -- it can't leak into any other page's stylesheet.
   main.css's own body rule paints a *different* radial gradient than the one
   #main-hub used to paint on top of itself, and since #main-hub doesn't
   cover the ad slot / footer below it (they're siblings, not children), the
   two different gradients met at a hard seam. Fix: one solid color, defined
   once, so every section of this page -- hub, ad slot, footer -- shares the
   exact same base with nothing to seam against. */
/* body's own 20px padding (main.css) plus #main-hub's own 40px/20px padding
   (also main.css, "Landing Hub Styles") nested two nearly-identical-but-not-
   quite insets inside each other -- body's flat color with nothing drawn on
   it, then #main-hub's identical flat color WITH the accent glow drawn on
   top starting at its own edge, which reads as a rectangular border/frame
   right at that boundary. Dropping body's padding to 0 leaves exactly one
   inset (#main-hub's), so there's only one edge, not two nested ones. */
/* min-height:100vh (main.css) stretches body to the full device screen
   height under the forced width=1200 viewport -- since the layout viewport's
   height scales along with its width, 100vh there equals the whole physical
   screen, which is taller than this page's actual content on most phones.
   That left a big dead strip of background below the footer with nothing in
   it. min-height:0 lets body's height track its real content instead. */
html {
    background: #0a0707;
}

body {
    background: #0a0707;
    padding: 0;
    min-height: 0;
}

/* Kill main.css's separate fixed-position red radial overlay -- it's a
   second, independently-centered tint layer that doesn't line up with
   #main-hub's own accent glow below, and having two red tints with
   different centers/falloffs is the other half of the banding artifact. */
body::before {
    display: none;
}

#main-hub {
    --hub-bg: #0a0707;
    --hub-bg2: #120909;
    --hub-ink: #f3ece3;
    --hub-ink-dim: rgba(243, 236, 227, 0.56);
    --hub-ink-faint: rgba(243, 236, 227, 0.32);
    --hub-line: rgba(255, 255, 255, 0.09);
    --hub-red: #ff4444;
    --hub-red-rgb: 255, 68, 68;

    /* Just an atmospheric accent glow over the shared solid base above --
       not a second competing background layer. */
    background: radial-gradient(ellipse 900px 480px at 14% -8%, rgba(var(--hub-red-rgb), 0.14), transparent 60%);
    padding-bottom: 10px;
    position: relative;
}

/* Faint broadcast-static grain -- a real nod to the site's horror/found-footage
   subject matter, not decoration for its own sake. Kept subtle and static
   (no animation) so it never competes with content or costs battery. */
#main-hub::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
    opacity: 0.5;
}

.hub2-wrap {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Nav ── */
.hub2-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 26px 0 18px;
    border-bottom: 1px solid var(--hub-line);
}

.hub2-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hub2-brand-name {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 0.82rem;
    text-transform: uppercase;
    color: var(--hub-ink-dim);
    white-space: nowrap;
}

.hub2-navlinks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hub2-navlinks a {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hub-ink-dim);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 5px;
    border: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.hub2-navlinks a:hover {
    color: var(--hub-ink);
    border-color: var(--hub-line);
    background: rgba(255, 255, 255, 0.03);
}

.hub2-navlinks a.start {
    color: #ffb3b3;
    border-color: rgba(var(--hub-red-rgb), 0.32);
    background: rgba(var(--hub-red-rgb), 0.08);
}

.hub2-navlinks a.discord {
    color: #fff;
    background: rgba(88, 101, 242, 0.85);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub2-navlinks a.discord:hover {
    background: #5865f2;
    border-color: transparent;
}

/* ── Hero ── */
.hub2-hero {
    padding: 50px 0 38px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.hub2-wordmark {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--hub-red);
    text-wrap: balance;
}

.hub2-tagline {
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: clamp(0.7rem, 1.6vw, 0.92rem);
    font-weight: 300;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--hub-ink-faint);
    margin-top: 6px;
}

.hub2-hero-credit {
    margin-top: 16px;
    display: inline-block;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--hub-ink-faint);
    text-decoration: none;
}

.hub2-hero-credit:hover {
    color: var(--hub-ink-dim);
}

/* ── Grid ──
   Deliberately NOT a uniform N-cards-per-row grid: the first (newest) tile
   spans two columns and two rows so it reads as a real front-page lead, the
   rest fall into a denser field around it. Breaks the "row of identical
   cards" pattern on purpose rather than presenting nine equal boxes. */
.hub2-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 128px;
    gap: 12px;
    padding-bottom: 8px;
    margin-top: 8px;
}

.hub2-card.new {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 900px) {
    .hub2-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 136px; }
    .hub2-card.new { grid-column: span 3; grid-row: span 1; }
}
@media (max-width: 560px) {
    .hub2-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .hub2-card.new { grid-column: span 2; }
    .hub2-card { min-height: 148px; }
}
@media (max-width: 400px) {
    .hub2-grid { grid-template-columns: 1fr; }
    .hub2-card.new { grid-column: span 1; }
}

/* justify-content:flex-start (not center) so every card's title sits at the
   exact same offset from the top regardless of how many lines its own
   description wraps to -- centering the whole stack made titles drift up or
   down relative to their neighbors whenever one tagline was longer. */
.hub2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--gc-line, var(--hub-line));
    border-radius: 0;
    padding: 14px 15px 13px;
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.hub2-card:hover {
    transform: translateY(-3px);
    border-color: var(--gc, var(--hub-line));
}

.hub2-card-title {
    position: relative;
    z-index: 1;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 1.4rem;
    line-height: 1.02;
    letter-spacing: 0.01em;
    color: var(--gc, var(--hub-ink));
}

.hub2-card.new .hub2-card-title {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.hub2-card-tag {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--hub-ink-dim);
    margin-top: 5px;
}

.hub2-card.new .hub2-card-tag {
    font-size: 0.86rem;
    max-width: 70%;
}

/* Featured card is big enough to read as a poster, not a list item -- center
   its whole content block instead of following the left-aligned/top-pinned
   rule the smaller grid cards use. */
.hub2-card.new {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hub2-card.new .hub2-card-tag {
    max-width: 90%;
}

/* Taken out of flex flow entirely (rather than margin-top:auto, which the
   other cards use) -- inside a justify-content:center column, an auto-margin
   sibling eats all the free space for itself, which pushed the title/tag
   group up against the top instead of letting them sit in the true center.
   Absolute positioning here means the title/tag block is the only thing left
   in flow, so it centers properly, while this still lands bottom-left like
   every other card's release line. */
.hub2-card.new .hub2-card-rel {
    position: absolute;
    left: 15px;
    bottom: 13px;
    margin-top: 0;
    padding-top: 0;
    text-align: left;
}

.hub2-card-eyebrow {
    position: absolute;
    top: 13px;
    left: 15px;
    z-index: 1;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gc, var(--hub-red));
}

/* Pinned to the bottom via margin-top:auto (flex column) so it always sits
   at the card's bottom edge regardless of how many lines the tagline above
   it wraps to -- independent of the title's own top-anchored position. */
.hub2-card-rel {
    position: relative;
    z-index: 1;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 0.64rem;
    letter-spacing: 0.03em;
    color: var(--hub-ink);
    margin-top: auto;
    padding-top: 10px;
}

.hub2-card-flag {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    font-family: 'Oswald', 'Arial', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gc, var(--hub-red));
    border: 1px solid var(--gc-line, var(--hub-line));
    border-radius: 3px;
    padding: 3px 8px;
    margin-bottom: 12px;
}

.hub2-card-info {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hub-ink-faint);
    font-size: 0.85rem;
    line-height: 1;
    padding: 2px;
    opacity: 0.5;
    transition: opacity 0.18s ease;
}

.hub2-card-info:hover {
    opacity: 1;
}

/* ── SEO / about blurb ── */
.hub2-about {
    max-width: 880px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.hub2-about details {
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--hub-line);
    border-radius: 9px;
    padding: 15px 20px;
}

.hub2-about summary {
    cursor: pointer;
    color: var(--hub-ink-faint);
    font-size: 0.82rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', 'Arial', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hub2-about summary::-webkit-details-marker { display: none; }

.hub2-about-body {
    margin-top: 15px;
    color: var(--hub-ink-dim);
    font-size: 0.88rem;
    line-height: 1.7;
}

.hub2-about-body p + p { margin-top: 12px; }
