/* ==========================================================
   INDEX / LANDING — Crater auth-page polish
========================================================== */

.index-hub {
    width: 100%;
    font-family: Verdana, Arial, sans-serif;
}

.index-hub--guest {
    --crater-chrome-offset: 155px;
}

.index-split {
    display: flex;
    gap: 22px;
    width: 100%;
    align-items: stretch;
    min-height: calc(100vh - var(--crater-chrome-offset, 210px) - 24px);
}

.index-main {
    flex: 1.65;
    min-width: 0;
}

.index-sidebar {
    flex: 1;
    min-width: 270px;
}


/* ==========================================================
   HERO / WELCOME
========================================================== */

.index-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 28px 22px 18px;
    border: 1px solid #340000;
    border-top: 4px solid #8d0000;
    background:
        linear-gradient(rgba(74, 4, 4, .94), rgba(119, 10, 10, .92)),
        repeating-linear-gradient(135deg, #6f0909 0 14px, #790d0d 14px 28px);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px #330000;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.index-hero::before,
.index-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    pointer-events: none;
}

.index-hero::before {
    width: 220px;
    height: 220px;
    top: -120px;
    left: -90px;
}

.index-hero::after {
    width: 160px;
    height: 160px;
    right: -70px;
    bottom: -90px;
}

.index-eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.index-hero-brand {
    position: relative;
    z-index: 1;
}

.index-logo {
    display: block;
    height: 72px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.index-hero h1,
.index-welcome-banner h1 {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: normal;
    letter-spacing: .5px;
    line-height: 1.05;
}

.index-hero-tagline {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 14px auto 16px;
    color: #f3dddd;
    font-size: 12px;
    line-height: 1.55;
    text-shadow: none;
}

.index-hero-tagline strong {
    color: #fff;
}

.index-hero-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.index-btn {
    min-width: 96px;
    padding: 9px 14px;
    border: 1px solid #8f8178;
    border-radius: 3px;
    background: linear-gradient(#fff, #ded6d0);
    color: #4f0707;
    font: bold 12px Verdana, Arial, sans-serif;
    text-decoration: none;
}

.index-btn:hover {
    background: linear-gradient(#fff, #ebe4de);
}

.index-btn--primary {
    border-color: #4e0000;
    background: linear-gradient(#bd1818, #7c0707);
    color: #fff;
    text-shadow: 0 1px #350000;
}

.index-btn--primary:hover {
    background: linear-gradient(#ce2020, #900a0a);
}

.index-btn--discord {
    border-color: #4e0000;
    background: linear-gradient(#8d1a1a, #5a0c0c);
    color: #fff;
}

.index-hero-pokemon {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 96px;
    margin-top: 10px;
}

.index-hero-pokemon img {
    width: 78px;
    height: 78px;
    margin: 0 -6px;
    object-fit: contain;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .45));
}

.index-hero-pokemon-featured {
    z-index: 2;
    width: 104px !important;
    height: 104px !important;
}

.index-welcome-banner {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #340000;
    border-top: 4px solid #8d0000;
    background: linear-gradient(#b31515, #790707);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 1px #3b0000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.index-welcome-banner p:last-child {
    margin: 8px 0 0;
    color: #f3dddd;
    font-size: 12px;
    line-height: 1.5;
    text-shadow: none;
}


/* ==========================================================
   NEWS
========================================================== */

.index-news {
    padding: 4px 2px 8px;
}

.index-news-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #8d0000;
}

.index-news-ball {
    position: relative;
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    box-sizing: border-box;
    border: 2px solid #333;
    border-radius: 50%;
    background: linear-gradient(#aa0c0c 0 44%, #333 44% 56%, #eee 56%);
}

.index-news-ball::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #333;
    border-radius: 50%;
    background: #fff;
}

.index-news-header h2 {
    margin: 0;
    color: #760909;
    font-size: 18px;
}

.index-news-item {
    margin-bottom: 18px;
    padding: 14px 14px 12px;
    border: 1px solid #c8bcb4;
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(113, 50, 32, .035) 31px 32px),
        #fff;
}

.index-news-item--pinned {
    border-color: #b08080;
    box-shadow: inset 3px 0 0 #8d0000;
}

.index-news-item h3 {
    margin: 0 0 4px;
    color: #a10000;
    font-size: 15px;
}

.index-news-pin {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 6px;
    background: #8d0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    vertical-align: middle;
}

.index-news-date {
    margin: 0 0 8px;
    color: #888;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.index-news-body,
.index-news-item p {
    margin: 0;
    color: #222;
    font-size: 12px;
    line-height: 1.55;
}

.index-news-body a,
.index-news-item a {
    color: #7a1212;
    font-weight: bold;
    text-decoration: none;
}

.index-news-body a:hover,
.index-news-item a:hover {
    text-decoration: underline;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.index-side-card {
    padding: 18px 16px;
    border: 1px solid #340000;
    border-top: 4px solid #8d0000;
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(113, 50, 32, .04) 31px 32px),
        #fff;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.index-side-title {
    margin: 0 0 14px;
    color: #760909;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
}

.index-side-title span {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.index-side-cta {
    display: block;
    margin: 0 0 14px;
    padding: 11px 12px;
    border: 1px solid #4e0000;
    border-radius: 3px;
    background: linear-gradient(#bd1818, #7c0707);
    color: #fff;
    font: bold 12px Verdana, Arial, sans-serif;
    text-decoration: none;
    text-shadow: 0 1px #350000;
}

.index-side-cta:hover {
    background: linear-gradient(#ce2020, #900a0a);
}

.index-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.index-quick-link {
    padding: 6px 12px;
    border: 1px solid #a69b94;
    border-radius: 2px;
    background: linear-gradient(#fff, #ebe4de);
    color: #4f0707;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
}

.index-quick-link:hover {
    border-color: #8d0000;
    color: #8d0000;
}

.index-messages {
    margin-bottom: 12px;
    padding: 12px 0;
    border-top: 1px solid #d9d0ca;
    border-bottom: 1px solid #d9d0ca;
    font-size: 12px;
    line-height: 1.7;
}

.index-msg-new {
    color: #a20000;
    font-weight: bold;
    text-decoration: none;
}

.index-msg-new:hover,
.index-msg-inbox:hover {
    text-decoration: underline;
}

.index-msg-inbox {
    color: #222;
    text-decoration: none;
}

.index-stat-line {
    margin: 7px 0;
    font-size: 11px;
}

.index-stat-line a {
    color: #b00000;
    font-weight: bold;
    text-decoration: none;
}

.index-stat-line a:hover {
    text-decoration: underline;
}

.index-notice {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d5af31;
    border-left: 4px solid #c08a00;
    background: #fff9d8;
    color: #333;
    font-size: 11px;
    line-height: 1.5;
    text-align: left;
}

.index-discord-link {
    display: block;
    margin-top: 12px;
    padding: 9px 10px;
    border: 1px solid #550606;
    background: linear-gradient(#8d1a1a, #5a0c0c);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
}

.index-discord-link:hover {
    color: #ffe39a;
}

.index-guest-blurb {
    margin: 4px 0 0;
    color: #6c625e;
    font-size: 11px;
    line-height: 1.5;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
    .index-split {
        flex-direction: column;
        min-height: 0;
        gap: 16px;
    }

    .index-sidebar {
        min-width: 0;
        width: 100%;
    }

    .index-hero {
        padding-block: 22px 12px;
    }

    .index-hero-pokemon img {
        width: 64px;
        height: 64px;
    }

    .index-hero-pokemon-featured {
        width: 86px !important;
        height: 86px !important;
    }
}


/* ==========================================================
   FAQ PROMO CARD (guest sidebar)
========================================================== */

.index-faq-card {
    margin-top: 14px;
}

.index-faq-blurb {
    margin: 0 0 14px;
    color: #333;
    font-size: 11px;
    line-height: 1.55;
}

.index-faq-cta {
    display: block;
    text-align: center;
}
