/*
 * Rocket Wiki — Foundation 3.0
 * Base visual system shared by every page.
 */

:root {
    color-scheme: dark;
    --rocket-bg: #09090b;
    --rocket-bg-soft: #0f1014;
    --rocket-panel: #14151a;
    --rocket-panel-2: #1a1b21;
    --rocket-panel-3: #22232b;
    --rocket-border: rgba(255, 255, 255, 0.09);
    --rocket-border-strong: rgba(255, 255, 255, 0.16);
    --rocket-text: #f7f7f5;
    --rocket-muted: #aaaab3;
    --rocket-faint: #73737d;
    --rocket-red: #e51c2f;
    --rocket-red-strong: #ff3045;
    --rocket-red-dark: #8d101c;
    --rocket-gold: #f2c94c;
    --rocket-blue: #59c7e6;
    --rocket-green: #42cf85;
    --rocket-danger: #ff5364;
    --rocket-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --rocket-shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.26);
    --rocket-radius-xl: 30px;
    --rocket-radius-lg: 22px;
    --rocket-radius-md: 16px;
    --rocket-radius-sm: 11px;
    --rocket-content: 1240px;
    --rocket-header-height: 116px;

    /* Legacy aliases kept for feature styles. */
    --cobblemon-black: var(--rocket-bg);
    --cobblemon-dark: var(--rocket-panel);
    --cobblemon-darker: #070709;
    --cobblemon-blue: #274f9f;
    --cobblemon-blue-light: #3f75c8;
    --cobblemon-purple: #6d3fa5;
    --cobblemon-purple-dark: #442866;
    --cobblemon-red: var(--rocket-red);
    --cobblemon-red-dark: var(--rocket-red-dark);
    --cobblemon-gold: var(--rocket-gold);
    --cobblemon-gold-dark: #a9821d;
    --cobblemon-cyan: var(--rocket-blue);
    --cobblemon-white: var(--rocket-text);
    --cobblemon-text: var(--rocket-text);
    --text-muted: var(--rocket-muted);
}

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

html {
    min-width: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 28, 47, 0.55) #0c0c0f;
}

body {
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    background:
        radial-gradient(circle at 78% 4%, rgba(229, 28, 47, 0.11), transparent 27rem),
        radial-gradient(circle at 8% 42%, rgba(89, 199, 230, 0.05), transparent 24rem),
        var(--rocket-bg);
    color: var(--rocket-text);
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body::after {
    content: "R";
    position: fixed;
    right: -0.05em;
    bottom: -0.28em;
    z-index: -2;
    color: rgba(255, 255, 255, 0.016);
    font-family: Arial Black, Impact, sans-serif;
    font-size: min(52vw, 760px);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    transform: rotate(-5deg);
}

::selection {
    color: #fff;
    background: rgba(229, 28, 47, 0.75);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c0c0f; }
::-webkit-scrollbar-thumb { background: #3a3a42; border: 2px solid #0c0c0f; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--rocket-red); }

img, svg, video, canvas { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }

:focus-visible {
    outline: 3px solid rgba(242, 201, 76, 0.9);
    outline-offset: 3px;
}

.hidden, .is-hidden, [hidden] { display: none !important; }

.background-animation {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    overflow: hidden;
}

.background-animation::before,
.background-animation::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.background-animation::before {
    width: 32rem;
    height: 32rem;
    left: -16rem;
    top: 18rem;
    border: 1px solid rgba(229, 28, 47, 0.07);
    box-shadow: 0 0 0 5rem rgba(229, 28, 47, 0.014), 0 0 0 10rem rgba(229, 28, 47, 0.01);
}

.background-animation::after {
    width: 24rem;
    height: 24rem;
    right: -10rem;
    top: 6rem;
    border: 1px solid rgba(89, 199, 230, 0.06);
    box-shadow: 0 0 0 4rem rgba(89, 199, 230, 0.012);
}

/* Header */
.site-header,
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: var(--rocket-header-height);
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--rocket-border);
    background: rgba(9, 9, 11, 0.98);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.site-header__inner,
.header-content {
    width: min(var(--rocket-content), calc(100% - 36px));
    min-height: var(--rocket-header-height);
    margin: 0 auto;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 62px 46px;
    align-items: center;
    column-gap: 24px;
    row-gap: 0;
}

.site-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--rocket-text);
    text-decoration: none;
}

.site-brand__mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: contain;
    filter: drop-shadow(0 7px 13px rgba(0, 0, 0, 0.28));
    transition: transform 180ms ease;
}

.site-brand:hover .site-brand__mark { transform: translateY(-2px) rotate(-3deg); }

.site-brand__copy {
    display: grid;
    line-height: 1.12;
}

.site-brand__copy strong {
    font-size: 0.94rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-brand__copy small {
    margin-top: 4px;
    color: var(--rocket-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
}

.site-nav__link {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    color: #b8b8c1;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color 160ms ease, background 160ms ease;
}

.site-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav__link.is-active { color: #fff; background: var(--rocket-red); }

.site-header__actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.site-server-link,
.site-menu-button,
.site-login-button,
.user-logged-card {
    height: 42px;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.site-server-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}

.site-server-link--logo {
    position: absolute;
    left: 50%;
    top: 31px;
    z-index: 2;
    width: clamp(126px, 12vw, 172px);
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: translate(-50%, -50%);
    transition: transform 160ms ease, opacity 160ms ease;
}

.site-server-link--logo:hover {
    background: transparent;
    border-color: transparent;
    opacity: .92;
    transform: translate(-50%, calc(-50% - 1px));
}

.site-server-link__logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 7px 14px rgba(0,0,0,.32));
}

.site-menu-button {
    position: static;
    width: auto;
    min-width: 0;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 900;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-menu-button:hover { background: var(--rocket-red); border-color: var(--rocket-red); transform: translateY(-1px); }
.site-menu-button__icon { font-size: 1rem; line-height: 1; }

.site-login-button {
    min-width: 78px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-color: rgba(229, 28, 47, .52);
    background: rgba(229, 28, 47, .1);
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.site-login-button:hover {
    border-color: var(--rocket-red);
    background: var(--rocket-red);
    transform: translateY(-1px);
}
.site-login-button:focus-visible { outline: 3px solid rgba(229, 28, 47, .22); outline-offset: 2px; }
.site-login-button__icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0;
}
.site-login-button__icon img {
    display: block;
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    image-rendering: pixelated;
}

.user-logged-card {
    position: static;
    width: auto;
    max-width: 150px;
    padding: 4px 10px 4px 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    box-shadow: none;
}

.user-logged-skin { width: 31px; height: 31px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; line-height: 0; }
.user-logged-skin.is-fallback::before { content: "?"; width: 100%; height: 100%; display: grid; place-items: center; color: #aaaab3; font-weight: 900; }
.user-logged-skin img { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; image-rendering: pixelated; }
.user-logged-nick { overflow: hidden; font-size: 0.78rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

/* Shared layout */
.main-content {
    position: relative;
    z-index: 1;
    width: min(var(--rocket-content), calc(100% - 36px));
    min-height: calc(100vh - var(--rocket-header-height) - 180px);
    margin: 0 auto;
    padding: 48px 0 80px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rocket-red-strong);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button--primary { color: #fff; background: var(--rocket-red); box-shadow: 0 12px 28px rgba(229, 28, 47, 0.2); }
.button--primary:hover { background: var(--rocket-red-strong); box-shadow: 0 16px 34px rgba(229, 28, 47, 0.28); }
.button--secondary { color: #f3f3f5; border-color: var(--rocket-border-strong); background: rgba(255, 255, 255, 0.035); }
.button--secondary:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.text-link { color: #e8e8ed; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--rocket-gold); }

/* Home */
.home-main { padding-top: 34px; }

.home-hero {
    min-height: 610px;
    padding: 56px clamp(30px, 5vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(390px, .82fr);
    align-items: center;
    gap: clamp(30px, 6vw, 84px);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-xl);
    background:
        linear-gradient(125deg, rgba(255,255,255,.026), transparent 45%),
        #101115;
    box-shadow: var(--rocket-shadow);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--rocket-red);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -8%;
    top: -28%;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255,255,255,.008), 0 0 0 130px rgba(255,255,255,.006);
    pointer-events: none;
}

.home-hero__copy { position: relative; z-index: 3; }
.home-hero h1 {
    max-width: 760px;
    margin: 20px 0 22px;
    font-size: clamp(3.05rem, 5.4vw, 5.7rem);
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.98;
}
.home-hero h1 em { color: var(--rocket-red-strong); font-style: normal; }
.home-hero__lead { max-width: 640px; margin: 0; color: #b7b7c0; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.7; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }

.home-hero__stats {
    margin: 43px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.home-hero__stats > div { min-width: 135px; padding: 0 25px; border-left: 1px solid var(--rocket-border); }
.home-hero__stats > div:first-child { padding-left: 0; border-left: 0; }
.home-hero__stats dt { font-size: 1.15rem; font-weight: 900; }
.home-hero__stats dd { margin: 3px 0 0; color: var(--rocket-faint); font-size: .74rem; font-weight: 700; }

.home-hero__visual {
    position: relative;
    z-index: 2;
    width: min(100%, 500px);
    aspect-ratio: 1;
    min-height: 0;
    justify-self: center;
    isolation: isolate;
}
.home-hero__emblem {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(69%, 338px);
    aspect-ratio: 551 / 564;
    display: grid;
    place-items: center;
    transform: translate(-50%,-50%);
    opacity: .94;
    filter: drop-shadow(0 30px 45px rgba(0,0,0,.35));
}
.home-hero__emblem::before { content: ""; position: absolute; inset: -24px; z-index: -1; border: 1px solid rgba(229,28,47,.24); border-radius: 50%; background: rgba(229,28,47,.07); }
.home-hero__emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 551 / 564;
}
.home-hero__pokemon { position: absolute; z-index: 3; object-fit: contain; filter: drop-shadow(0 22px 25px rgba(0,0,0,.55)); }
.home-hero__pokemon--meowth { width: 230px; left: -12px; bottom: -10px; transform: rotate(-5deg); }
.home-hero__pokemon--wobbuffet { width: 235px; right: -10px; top: 5px; transform: rotate(3deg); }
.home-hero__orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; transform: translate(-50%,-50%); }
.home-hero__orbit--one { width: 430px; height: 430px; }
.home-hero__orbit--two { width: 315px; height: 315px; border-style: dashed; border-color: rgba(242,201,76,.16); }

.home-tools { padding: 76px 0 20px; }
.section-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(2rem, 3.2vw, 3.2rem); letter-spacing: -.04em; line-height: 1.05; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--rocket-muted); }

.categories-carousel.home-tools__grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
}

.category-card {
    min-width: 0;
    min-height: 260px;
    padding: 30px;
    grid-column: span 4;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-lg);
    background: #121318;
    box-shadow: none;
    cursor: pointer;
    transition: transform 190ms ease, border-color 190ms ease, background 190ms ease, box-shadow 190ms ease;
}
.category-card::before { content: ""; position: absolute; inset: auto -15% -45% auto; width: 65%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.028); }
.category-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.2); background: #17181e; box-shadow: var(--rocket-shadow-sm); }
.category-card--feature { min-height: 390px; grid-column: span 6; }
.category-card--solo-feature { grid-column: span 12; min-height: 360px; }
.category-card--solo-feature .category-card__copy { width: min(58%, 660px); }
.category-card--solo-feature .category-card__art--large { width: min(38%, 310px); right: 5%; bottom: -24px; }
.category-card--red { background: linear-gradient(135deg, rgba(229,28,47,.19), transparent 48%), #151216; }
.category-card--gold { background: linear-gradient(135deg, rgba(242,201,76,.12), transparent 48%), #151513; }
.category-card__copy { position: relative; z-index: 3; width: min(69%, 470px); display: flex; flex-direction: column; align-items: flex-start; }
.category-card--compact .category-card__copy { width: 73%; }
.home-tools__grid .category-card--compact { grid-column: span 6; }
.category-card--breeding { background: linear-gradient(135deg, rgba(242,201,76,.11), rgba(229,28,47,.08) 48%, transparent), #151416; }
.category-card--breeding .category-card__kicker { color: var(--rocket-gold); }
.category-card__kicker { color: var(--rocket-red-strong); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.category-card--gold .category-card__kicker { color: var(--rocket-gold); }
.category-card h3 { margin: 13px 0 12px; color: #fff; font-size: clamp(1.45rem, 2.1vw, 2.15rem); line-height: 1.05; letter-spacing: -.035em; }
.category-card p { margin: 0; color: #a9a9b2; line-height: 1.6; }
.category-btn { margin-top: auto; padding: 16px 0 0; border: 0; background: none; color: #fff; font-weight: 900; cursor: pointer; }
.category-btn span { display: inline-block; margin-left: 5px; color: var(--rocket-red-strong); transition: transform 160ms ease; }
.category-card:hover .category-btn span { transform: translateX(4px); }
.category-card__art { position: absolute; right: -6px; bottom: -14px; z-index: 2; width: min(40%, 170px); max-height: 76%; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0,0,0,.45)); transition: transform 220ms ease; }
.category-card__art--large { width: min(46%, 270px); }
.category-card:hover .category-card__art { transform: translateY(-6px) scale(1.035); }

.home-guild {
    margin-top: 96px;
    padding: clamp(30px, 4vw, 46px);
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) minmax(230px, 340px);
    align-items: center;
    gap: clamp(24px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-lg);
    background: rgba(255,255,255,.026);
}
.home-guild__emblem { width: 84px; align-self: center; }
.home-guild__emblem img { width: 100%; height: auto; max-height: 92px; object-fit: contain; }
.home-guild__copy { min-width: 0; }
.home-guild__copy h2 { margin: 8px 0 9px; font-size: clamp(1.6rem, 2.6vw, 2.35rem); letter-spacing: -.04em; }
.home-guild__copy p { max-width: 690px; margin: 0; color: var(--rocket-muted); }
.home-guild__signoff { margin-top: 16px !important; color: #d8d8de !important; line-height: 1.55; }
.home-guild__signoff strong { color: #fff; }
.home-guild__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.home-guild__logo { justify-self: end; width: min(100%, 340px); opacity: .9; }
.home-guild__logo img { width: 100%; height: auto; max-height: 112px; display: block; object-fit: contain; }

/* Page headings */
.page-header {
    min-height: 270px;
    margin: 0 0 28px;
    padding: 42px clamp(28px, 5vw, 58px);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 280px);
    align-items: center;
    gap: 30px;
    text-align: left;
    border: 1px solid var(--rocket-border);
    border-radius: var(--rocket-radius-xl);
    background: linear-gradient(120deg, rgba(229,28,47,.12), transparent 43%), #111217;
    box-shadow: var(--rocket-shadow-sm);
}
.page-header::after { content: ""; position: absolute; right: -80px; top: -140px; width: 430px; height: 430px; border: 1px solid rgba(255,255,255,.045); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.008); }
.page-header__copy { position: relative; z-index: 2; }
.page-title { margin: 13px 0 10px; color: #fff; font-family: inherit; font-size: clamp(2.45rem, 5vw, 5rem); font-weight: 900; letter-spacing: -.06em; line-height: .98; text-shadow: none; }
.page-subtitle { max-width: 720px; margin: 0; color: #aaaab4; font-size: 1.03rem; text-shadow: none; }
.page-header__art, .page-header__brand-art { position: relative; z-index: 2; justify-self: center; align-self: end; width: min(100%, 235px); }
.page-header__art img { width: 100%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0,0,0,.5)); }
.page-header__brand-art { width: min(100%, 360px); align-self: center; }
.page-header__brand-art img { width: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.4)); }

/* Shared content panels */
.wiki-section,
.products-section {
    border-radius: var(--rocket-radius-lg);
}

.empty-state,
.wiki-empty-state {
    padding: 70px 28px;
    border: 1px dashed rgba(255,255,255,.13);
    border-radius: var(--rocket-radius-lg);
    background: rgba(255,255,255,.018);
    text-align: center;
}
.empty-icon { font-size: 2.4rem; opacity: .7; filter: none; }
.empty-message { margin: 13px 0 6px; color: #fff; font-size: 1.25rem; text-shadow: none; }
.empty-description { margin: 0; color: var(--rocket-muted); }

/* Footer */
.site-footer,
.footer {
    position: relative;
    z-index: 2;
    margin: 30px 0 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--rocket-border);
    background: #0b0b0e;
    box-shadow: none;
}
.site-footer__inner,
.footer-content {
    width: min(var(--rocket-content), calc(100% - 36px));
    min-height: 132px;
    margin: 0 auto;
    padding: 26px 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 34px;
}
.site-footer__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-footer__brand img { width: 42px; height: 42px; }
.site-footer__brand span { display: grid; line-height: 1.15; }
.site-footer__brand strong { font-size: .84rem; font-weight: 900; text-transform: uppercase; }
.site-footer__brand small { margin-top: 4px; color: var(--rocket-faint); font-size: .7rem; }
.site-footer__note { margin: 0; color: #71717b; font-size: .76rem; text-align: center; }
.site-footer__links { display: flex; align-items: center; gap: 18px; }
.site-footer__links a { color: #a3a3ab; font-size: .78rem; font-weight: 800; text-decoration: none; }
.site-footer__links a:hover { color: #fff; }

/* Dialogs and general controls */
.guild-info-modal,
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(4,4,6,.82);
    backdrop-filter: blur(14px);
}
.guild-info-modal.show,
.contact-modal.show { display: grid; }
.modal-content,
.guild-modal-content {
    width: min(100%, 620px);
    max-height: min(860px, calc(100vh - 48px));
    overflow-y: auto;
    padding: 36px;
    position: relative;
    border: 1px solid var(--rocket-border-strong);
    border-radius: var(--rocket-radius-lg);
    background: #15161b;
    box-shadow: var(--rocket-shadow);
}
.close-modal,
.close-modal-btn,
.modal-close {
    width: 38px;
    height: 38px;
    padding: 0;
    display: grid;
    place-items: center;
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 5;
    border: 1px solid var(--rocket-border-strong);
    border-radius: 11px;
    background: rgba(255,255,255,.045);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}
.close-modal:hover, .close-modal-btn:hover, .modal-close:hover { background: var(--rocket-red); border-color: var(--rocket-red); }
.guild-title { display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: 1.35rem; }
.guild-master-ball-left, .guild-master-ball-right { width: 28px; }
.guild-logo-section { display: flex; justify-content: center; margin: 22px 0; }
.guild-logo-modal { width: 150px; }
.guild-description { color: var(--rocket-muted); }
.guild-description > p { text-align: center; }
.guild-features { margin: 24px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.feature-item { min-height: 82px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--rocket-border); border-radius: 12px; background: rgba(255,255,255,.025); color: #dddde2; font-size: .85rem; }
.feature-icon--pokemon { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; filter: drop-shadow(0 7px 10px rgba(0,0,0,.28)); }
.guild-motto { color: var(--rocket-gold); font-weight: 800; }

input, select, textarea {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 12px;
    background: #101116;
    color: #fff;
    box-shadow: none;
}
input::placeholder, textarea::placeholder { color: #686873; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: rgba(229,28,47,.75); outline: 3px solid rgba(229,28,47,.12); }

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

@media (max-width: 1100px) {
    .site-header__inner { gap: 14px; }
    .site-brand__copy { display: none; }
    .site-nav__link { padding-inline: 11px; }
    .home-hero { grid-template-columns: minmax(0,1fr) minmax(330px,.7fr); min-height: 560px; }
    .home-hero h1 { font-size: clamp(3rem, 6vw, 4.8rem); }
    .home-hero__pokemon--meowth { width: 190px; }
    .home-hero__pokemon--wobbuffet { width: 195px; }
    .home-hero__orbit--one { width: 365px; height: 365px; }
    .category-card { grid-column: span 6; }
    .category-card--feature { min-height: 360px; }
}

@media (max-width: 850px) {
    :root { --rocket-header-height: 116px; }
    .site-header__inner { width: min(100% - 22px, var(--rocket-content)); min-height: 116px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); grid-template-rows: 60px 46px; gap: 0 10px; }
    .site-brand__copy { display: grid; }
    .site-brand__mark { width: 40px; height: 40px; flex-basis: 40px; }
    .site-brand__copy strong { font-size: .82rem; }
    .site-brand__copy small { font-size: .61rem; }
    .site-nav { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; overflow-x: auto; justify-content: flex-start; border: 0; border-top: 1px solid var(--rocket-border); border-radius: 0; background: transparent; padding: 7px 0; scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav__link { flex: 0 0 auto; padding: 7px 12px; }
    .site-header__actions { grid-column: 3; grid-row: 1; }
    .site-server-link--logo { display: inline-flex; top: 30px; width: clamp(112px, 23vw, 145px); }
    .site-menu-button__text { display: none; }
    .site-menu-button { width: 42px; padding: 0; }
    .site-login-button { min-width: 74px; padding-inline: 12px; }
    .user-logged-card { max-width: 110px; }

    .main-content { width: min(100% - 24px, var(--rocket-content)); padding-top: 24px; }
    .home-main { padding-top: 16px; }
    .home-hero { min-height: 0; padding: 38px 28px 0; grid-template-columns: 1fr; gap: 20px; }
    .home-hero__copy { text-align: left; }
    .home-hero h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
    .home-hero__visual { min-height: 0; width: min(100%, 470px); justify-self: center; }
    .home-hero__stats { margin-top: 34px; }
    .home-tools { padding-top: 72px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
    .category-card, .category-card--feature { grid-column: span 12; min-height: 300px; }
    .category-card--feature { min-height: 350px; }
    .home-guild { grid-template-columns: 68px minmax(0,1fr); padding: 28px; }
    .home-guild__emblem { width: 64px; align-self: start; }
    .home-guild__logo { grid-column: 1 / -1; justify-self: center; width: min(100%, 300px); margin-top: 4px; }
    .page-header { min-height: 230px; padding: 34px 30px; grid-template-columns: minmax(0,1fr) 150px; }
    .site-footer__inner { grid-template-columns: 1fr auto; }
    .site-footer__note { grid-column: 1/-1; grid-row: 2; text-align: left; }
}

@media (max-width: 600px) {
    .site-brand__copy small { display: none; }
    .site-server-link--logo { width: clamp(98px, 31vw, 124px); }
    .site-brand__copy strong { font-size: .76rem; }
    .user-logged-card { max-width: 84px; padding-right: 6px; }
    .user-logged-nick { display: none; }
    .main-content { width: min(100% - 16px, var(--rocket-content)); padding-bottom: 54px; }
    .home-hero { padding: 30px 20px 0; border-radius: 22px; }
    .home-hero h1 { margin-top: 14px; font-size: clamp(2.4rem, 13vw, 3.7rem); }
    .home-hero__lead { font-size: .96rem; }
    .home-hero__actions { flex-direction: column; }
    .home-hero__actions .button { width: 100%; }
    .home-hero__stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
    .home-hero__stats > div { min-width: 0; padding: 0 9px; }
    .home-hero__stats dt { font-size: .94rem; }
    .home-hero__stats dd { font-size: .63rem; }
    .home-hero__visual { min-height: 0; width: min(100%, 340px); }
    .home-hero__emblem { width: 230px; }
    .home-hero__pokemon--meowth { width: 145px; left: -4px; }
    .home-hero__pokemon--wobbuffet { width: 150px; right: -2px; }
    .home-hero__orbit--one { width: 285px; height: 285px; }
    .home-hero__orbit--two { width: 215px; height: 215px; }
    .home-tools { padding-top: 62px; }
    .section-heading h2 { font-size: 2.15rem; }
    .category-card, .category-card--feature { min-height: 280px; padding: 24px; border-radius: 18px; }
    .category-card__copy, .category-card--compact .category-card__copy { width: 74%; }
    .category-card h3 { font-size: 1.55rem; }
    .category-card p { font-size: .88rem; }
    .category-card__art, .category-card__art--large { width: 38%; }
    .home-guild { margin-top: 68px; grid-template-columns: 1fr; padding: 25px; gap: 20px; }
    .home-guild__emblem { width: 58px; justify-self: start; }
    .home-guild__logo { grid-column: auto; width: min(100%, 260px); justify-self: center; }
    .page-header { min-height: 220px; padding: 28px 22px; grid-template-columns: minmax(0,1fr) 95px; border-radius: 22px; }
    .page-title { font-size: clamp(2.2rem, 12vw, 3.5rem); }
    .page-subtitle { font-size: .92rem; }
    .page-header__art { width: 110px; }
    .page-header__brand-art { width: 145px; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 18px; }
    .site-footer__links { justify-content: flex-start; }
    .site-footer__note { grid-column: auto; grid-row: auto; }
    .guild-features { grid-template-columns: 1fr; }
    .feature-item { min-height: 76px; padding: 10px 12px; }
    .feature-icon--pokemon { width: 50px; height: 50px; flex-basis: 50px; }
    .modal-content, .guild-modal-content { padding: 28px 20px; }
}

@media (max-width: 390px) {
    .site-header__inner { width: calc(100% - 14px); grid-template-columns: minmax(0, 1fr) max-content; gap: 0 6px; }
    .site-brand { gap: 7px; }
    .site-brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
    .site-brand__copy { display: none; }
    .site-header__actions { gap: 6px; }
    .site-login-button { min-width: 68px; padding-inline: 10px; }
}

@media (max-width: 850px) {
    .category-card--solo-feature .category-card__copy { width: 68%; }
    .category-card--solo-feature .category-card__art--large { width: min(43%, 250px); right: 0; }
}

@media (max-width: 600px) {
    .category-card--solo-feature .category-card__copy { width: 74%; }
    .category-card--solo-feature .category-card__art--large { width: min(42%, 190px); right: -14px; bottom: -8px; }
}
@media (max-width: 430px) {
    .site-brand__copy { display: none; }
    .site-server-link--logo { width: 98px; }
    .home-guild__actions { align-items: stretch; flex-direction: column; gap: 12px; }
    .home-guild__actions .button,
    .home-guild__actions .text-link { width: 100%; justify-content: center; text-align: center; }
}

