:root {
    --navy: #10243f;
    --blue: #1976d2;
    --sky: #eaf6ff;
    --red: #ef5350;
    --yellow: #ffd54f;
    --green: #1f9d67;
    --ink: #172033;
    --muted: #5f6b7a;
    --white: #ffffff;
    --card-shadow: 0 16px 40px rgba(16, 36, 63, .12);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 0%, rgba(25, 118, 210, .14), transparent 28rem),
    linear-gradient(180deg, #f8fcff 0%, #eef8ff 45%, #fff 100%);
    line-height: 1.6;
}

a {
    color: inherit
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(16, 36, 63, .08);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900
}

.ball {
    width: 42px;
    height: 42px;
    background: linear-gradient(var(--red) 0 45%, #1a1d24 45% 55%, #fff 55%);
    border: 3px solid #1a1d24;
    position: relative;
    flex: 0 0 auto;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
    border-radius: 999px;
}

.ball::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    translate: -50% -50%;
    width: 12px;
    height: 12px;
    background: white;
    border: 3px solid #1a1d24;
    border-radius: 999px;
}

.brand span {
    display: block;
    line-height: 1.05
}

.brand small {
    display: block;
    color: var(--blue);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #d8e4ee;
    background: #fff;
    padding: 10px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
}

.nav-toggle span + span {
    margin-top: 6px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 750;
    padding: 10px 12px;
}

.nav-links a:hover {
    background: var(--sky)
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger::after {
    content: "";
    display: inline-block;
    width: .42em;
    height: .42em;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    rotate: 45deg;
    translate: 0 -2px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    display: grid;
    min-width: 210px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(16, 36, 63, .1);
    box-shadow: 0 16px 34px rgba(16, 36, 63, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.nav-dropdown-menu a {
    padding: 9px 10px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-cta {
    background: var(--navy) !important;
    color: white !important
}

.hero {
    padding: 76px 0 54px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns:1.12fr .88fr;
    align-items: center;
    gap: 52px
}

h1 {
    font-size: clamp(2.7rem, 7vw, 5.7rem);
    line-height: .96;
    letter-spacing: -.055em;
    margin: 22px 0 22px;
    color: var(--navy);
}

h1 .accent {
    color: var(--blue)
}

.hero-copy {
    font-size: 1.14rem;
    max-width: 650px;
    color: var(--muted)
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    text-decoration: none;
    font-weight: 850;
    border: 2px solid transparent;
    transition: .2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: var(--blue);
    color: white;
    box-shadow: 0 10px 24px rgba(25, 118, 210, .27)
}

.btn-secondary {
    background: white;
    color: var(--navy);
    border-color: #d8e4ee
}

.hero-card {
    position: relative;
    min-height: 430px;
    color: white;
}

.mini-stats {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 10px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 14px 8px;
}

.stat strong {
    display: block;
    font-size: 1.25rem
}

.stat span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .75)
}

section {
    padding: 78px 0
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 8px 0 14px;
    color: var(--navy)
}

.section-copy {
    max-width: 720px;
    color: var(--muted);
    margin: 0
}

.social-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px;
    margin-top: 34px
}

.social-card {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 26px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 36, 63, .07);
    text-decoration: none;
    transition: .2s ease;
}

.social-card::after {
    content: "";
    position: absolute;
    inset: auto -34px -46px auto;
    width: 126px;
    height: 126px;
    border-radius: 999px;
    opacity: .11;
    pointer-events: none;
}

.social-card:hover {
    transform: translateY(-5px)
}

.social-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.social-icon img {
    width: 50px;
    height: 50px;
}

.discord::after {
    background: #5865f2;
}

.campfire::after {
    background: #f06445;
}

.facebook::after {
    background: #1877f2;
}

.social-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem
}

.social-card p {
    color: var(--muted);
    margin: 0 0 18px
}

.link-label {
    font-weight: 900;
    color: var(--blue)
}

.meetups {
    background: linear-gradient(180deg, #10243f, #173a67);
    color: white
}

.meetups .section-title {
    color: white
}

.meetups .section-copy {
    color: rgba(255, 255, 255, .75)
}

.meetup-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 18px;
    margin-top: 34px
}

.meetup-card {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 24px;
}

.meetup-card .tag {
    display: inline-block;
    padding: 6px 10px;
    font-size: .78rem;
    font-weight: 900;
    background: var(--yellow);
    color: #4c3900;
}

.meetup-card h3 {
    font-size: 1.35rem;
    margin: 16px 0 8px
}

.meetup-card h2 {
    font-size: 1.35rem;
    margin: 16px 0 8px
}

.meetup-card p {
    color: rgba(255, 255, 255, .76);
    margin: 0
}

.meetup-note {
    margin-top: 24px;
    padding: 18px 20px;
    background: rgba(255, 213, 79, .12);
    border: 1px solid rgba(255, 213, 79, .32);
    color: #fff4c2;
}

.meetup-note a {
    color: #fff;
    font-weight: 900;
    text-decoration: underline;
}

.meetups-page {
    padding-top: 58px;
}

.meetup-live-list {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.meetup-home-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.meetup-home-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.meetup-home-actions .btn {
    min-width: 210px;
}

.meetup-type-grid {
    margin-top: 34px;
}

.campfire-meetup-card,
.meetup-empty {
    background: #fff;
    border: 1px solid rgba(16, 36, 63, .1);
    color: var(--ink);
}

.meetups .campfire-meetup-card,
.meetups .meetup-empty {
    background: rgba(255, 255, 255, .96);
}

.meetups .data-status {
    color: rgba(255, 255, 255, .78);
}

.campfire-meetup-card {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    min-height: 170px;
    overflow: visible;
}

.campfire-meetup-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: #f4ebff;
    color: #332057;
    text-decoration: none;
}

.campfire-meetup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campfire-meetup-image-placeholder {
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 210, 104, .42), transparent 28%),
        linear-gradient(135deg, #2b174a, #8f3a32);
}

.campfire-meetup-image-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    color: #ef6c43;
    font-weight: 950;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .24);
}

.campfire-meetup-body {
    position: relative;
    padding: 48px 20px 18px;
}

.campfire-meetup-body h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.22rem;
    line-height: 1.25;
}

.meetup-address {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.campfire-meetup-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.campfire-meetup-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    background: #fff8df;
    border: 1px solid #f1d988;
    color: #6a4f00;
}

.campfire-meetup-meta .source-link {
    margin-left: auto;
}

.meetup-empty {
    padding: 18px;
}

.meetup-empty h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.16rem;
}

.meetup-empty p {
    margin: 8px 0 0;
    color: var(--muted);
}

.live-game-data {
    background: #fff
}

.home-live-events {
    padding-top: 58px;
    padding-bottom: 58px;
}

.events-page {
    padding-top: 58px;
}

.live-data-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.live-data-header .btn {
    flex: 0 0 auto
}

.meetup-source {
    margin-top: 12px;
}

.meetup-source a {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.meetup-source a:hover {
    text-decoration: underline;
}

.campfire-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 116px;
    margin: -12px 0 24px;
    padding: 20px 24px;
    overflow: hidden;
    background: radial-gradient(circle at 88% 18%, rgba(255, 210, 104, .34), transparent 24%),
    radial-gradient(circle at 10% 100%, rgba(255, 116, 48, .28), transparent 28%),
    linear-gradient(135deg, #1e1235 0%, #332057 58%, #8f3a32 100%);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 18px 44px rgba(58, 29, 88, .2);
}

.campfire-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
    opacity: .24;
    pointer-events: none;
}

.campfire-banner img {
    position: relative;
    z-index: 1;
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
}

.campfire-banner span {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    max-width: 760px;
    padding: 12px 14px;
    background: rgba(20, 12, 35, .68);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.campfire-banner strong {
    color: #fff;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .26);
}

.campfire-banner small {
    color: rgba(255, 255, 255, .92);
    font-size: .94rem;
    font-weight: 700;
}

.campfire-banner:hover,
.campfire-banner:focus-visible {
    border-color: rgba(255, 230, 154, .85);
    box-shadow: 0 22px 52px rgba(58, 29, 88, .28);
    outline: none;
}

.live-data-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 22px;
}

.live-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 7px;
    background: #edf6fc;
    border: 1px solid #dceaf3;
}

.live-tab {
    border: 0;
    background: transparent;
    color: var(--navy);
    padding: 11px 16px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.live-tab.active {
    background: var(--navy);
    color: #fff;
}

.events-page-grid {
    grid-template-columns: 1fr;
    gap: 28px;
}

.event-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.event-hub-card {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 230px;
    padding: 24px;
    background: #f8fcff;
    border: 1px solid #dceaf3;
    color: inherit;
    text-decoration: none;
}

.event-hub-card:hover,
.event-hub-card:focus-visible {
    border-color: rgba(25, 118, 210, .45);
    box-shadow: 0 14px 30px rgba(16, 36, 63, .1);
    outline: none;
}

.event-hub-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.25rem;
}

.event-hub-card p {
    margin: 0;
    color: var(--muted);
}

.news-page {
    padding-top: 58px;
}

.news-source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -10px 0 24px;
}

.news-source-row a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    background: #f8fcff;
    border: 1px solid #dceaf3;
    color: var(--navy);
    font-size: .92rem;
    font-weight: 850;
    text-decoration: none;
}

.news-source-row a:hover,
.news-source-row a:focus-visible {
    border-color: rgba(25, 118, 210, .45);
    color: var(--blue);
    outline: none;
}

.news-feed {
    display: grid;
    gap: 14px;
    max-width: 940px;
}

.news-card,
.news-empty {
    background: #fff;
    border: 1px solid rgba(16, 36, 63, .1);
}

.news-card {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    overflow: hidden;
}

.news-empty {
    padding: 18px;
}

.news-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    background: #edf6fc;
    color: var(--navy);
    text-decoration: none;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-image-placeholder {
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(25, 118, 210, .12), rgba(56, 142, 60, .14)),
        #f4fbff;
    text-align: center;
}

.news-card-image-placeholder span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(16, 36, 63, .12);
    color: var(--blue);
    font-size: 1.7rem;
    font-weight: 950;
}

.news-card-image-placeholder strong {
    color: var(--navy);
    font-size: .95rem;
    line-height: 1.25;
}

.news-card-body {
    padding: 18px;
}

.news-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.news-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #edf6fc;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 0;
}

.news-card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    background: #eaf6ee;
    border: 1px solid #c9e6d4;
    color: #16643a;
    font-size: .78rem;
    font-weight: 900;
}

.news-card-meta p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 750;
}

.news-card h2,
.news-empty h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.18rem;
    line-height: 1.25;
}

.news-text {
    margin: 10px 0 0;
    color: var(--ink);
    line-height: 1.58;
}

.news-text a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.news-text a:hover {
    text-decoration: underline;
}

.news-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 12px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 750;
}

.news-card-footer .source-link {
    margin-left: auto;
}

.news-empty p {
    margin: 8px 0 0;
    color: var(--muted);
}

@media (max-width: 720px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        min-height: 190px;
    }
}

.live-panel {
    min-width: 0;
}

.live-panel[hidden] {
    display: none;
}

.event-section + .event-section {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid #dceaf3;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h2, .panel-heading h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.35rem;
}

.panel-heading .tag {
    display: inline-flex;
    padding: 6px 10px;
    background: var(--yellow);
    color: #4c3900;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-list, .raid-list {
    display: grid;
    gap: 12px;
}

.event-carousel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
}

.event-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 14px 0 4px;
}

.event-carousel-track .event-card {
    flex: 0 0 min(360px, 84%);
    scroll-snap-align: start;
}

.carousel-button {
    border: 1px solid #dceaf3;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 1.75rem;
    font-weight: 850;
    cursor: pointer;
    min-width: 42px;
}

.carousel-button:hover, .carousel-button:focus-visible {
    background: var(--navy);
    color: #fff;
}

.current-event-list, .upcoming-event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
    padding-top: 12px;
}

.event-card {
    position: relative;
    background: white;
    border: 1px solid rgba(16, 36, 63, .08);
    padding: 42px 18px 18px;
}

.raid-tier {
    background: white;
    border: 1px solid rgba(16, 36, 63, .08);
    padding: 18px;
}

.raid-tier h4 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.08rem;
}

.event-card h4 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.08rem;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    margin: 0 0 10px;
}

.event-date strong {
    font-weight: 900;
}

.event-date-icon {
    flex: 0 0 auto;
    font-size: 1rem;
    line-height: 1;
}

.event-card p, .raid-boss p, .data-status {
    margin: 0;
    color: var(--muted);
}

.event-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .92rem;
}

.event-type-badge {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: -12px;
    left: 14px;
    z-index: 1;
    width: max-content;
    max-width: calc(100% - 28px);
    min-height: 24px;
    padding: 3px 8px;
    background: #edf6fc;
    border: 1px solid #dceaf3;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.event-time-badge {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 1;
    min-height: 26px;
    max-width: calc(100% - 28px);
    padding: 4px 9px;
    border: 1px solid rgba(16, 36, 63, .1);
    background: #f7fafc;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.event-time-happening-now {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.event-time-happening-today {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #075985;
}

.event-time-happening-soon {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.event-time-coming-up {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.raid-boss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.events-page .raid-boss-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.raid-boss {
    background: #f8fcff;
    border: 1px solid #dceaf3;
    padding: 12px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.raid-boss h5 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: .98rem;
}

.raid-boss-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    grid-row: span 2;
}

.raid-boss-body {
    min-width: 0;
}

.boss-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
    grid-column: 1 / -1;
}

.boss-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    background: #edf6fc;
    color: var(--navy);
    font-size: .76rem;
    font-weight: 850;
}

.boss-chip.shiny {
    background: #fff7d6;
    color: #6c5200;
}

.boss-chip.shadow {
    background: #ece8f4;
    color: #44296d;
}

.raid-counter {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #dceaf3;
}

.raid-counter strong {
    display: block;
    margin-bottom: 7px;
    color: var(--navy);
    font-size: .82rem;
}

.counter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.counter-chip {
    display: inline-flex;
    align-items: center;
    border: 0;
    min-height: 24px;
    padding: 3px 7px;
    background: #e9f7ee;
    color: #15522d;
    font: inherit;
    font-size: .76rem;
    font-weight: 850;
    cursor: pointer;
}

.counter-chip:hover, .counter-chip:focus-visible {
    background: #15522d;
    color: #fff;
}

.source-link {
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.source-link:hover {
    text-decoration: underline;
}

.rocket-filter {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.rocket-filter label {
    color: var(--navy);
    font-size: .9rem;
    font-weight: 850;
}

.rocket-filter-control {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rocket-filter input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8e4ee;
    padding: 9px 12px;
    color: var(--ink);
    font: inherit;
}

.rocket-filter input:focus {
    border-color: var(--blue);
    outline: 3px solid rgba(25, 118, 210, .14);
}

.rocket-filter .btn {
    min-height: 44px;
    padding-block: 9px;
    white-space: nowrap;
}

.rocket-list {
    display: grid;
    gap: 16px;
}

.rocket-source-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: .92rem;
}

.rocket-section {
    display: grid;
    gap: 8px;
    padding: 0;
}

.rocket-section[hidden] {
    display: none;
}

.rocket-section + .rocket-section {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #dceaf3;
}

.rocket-grid {
    display: grid;
    gap: 14px;
}

.rocket-grid-boss {
    grid-template-columns: minmax(0, 1fr);
}

.rocket-grid-leaders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rocket-grid-grunts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rocket-card {
    background: white;
    border: 1px solid rgba(16, 36, 63, .08);
    padding: 16px;
}

.rocket-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rocket-card h4 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 1.08rem;
}

.rocket-type-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    background: #ece8f4;
    color: #44296d;
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.rocket-quote {
    position: relative;
    margin: 0 0 12px;
    padding: 9px 12px;
    background: #f4f0fb;
    border: 1px solid #d9cdea;
    color: #34214f;
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.35;
}

.rocket-quote::after {
    content: "";
    position: absolute;
    left: 16px;
    bottom: -7px;
    width: 12px;
    height: 12px;
    background: #f4f0fb;
    border-right: 1px solid #d9cdea;
    border-bottom: 1px solid #d9cdea;
    rotate: 45deg;
}

.rocket-slots {
    display: grid;
    gap: 8px;
}

.rocket-slot {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
}

.rocket-slot-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--navy);
    color: #fff;
    font-weight: 900;
    font-size: .82rem;
}

.rocket-pokemon-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rocket-pokemon-counter {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rocket-pokemon {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    background: #edf6fc;
    color: var(--navy);
    font-size: .82rem;
    font-weight: 850;
}

.rocket-counter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.rocket-counter-row > span:first-child {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.modal-open {
    overflow: hidden;
}

.counter-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16, 36, 63, .52);
}

.counter-modal[hidden] {
    display: none;
}

.counter-modal-panel {
    position: relative;
    width: min(520px, 100%);
    max-height: min(640px, 90vh);
    overflow: auto;
    background: #fff;
    border: 1px solid #dceaf3;
    padding: 26px;
    box-shadow: 0 22px 60px rgba(16, 36, 63, .24);
}

.counter-modal-panel h3 {
    margin: 0 42px 6px 0;
    color: var(--navy);
    font-size: 1.35rem;
}

.counter-modal-copy {
    margin: 0 0 18px;
    color: var(--muted);
}

.counter-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: 1px solid #dceaf3;
    background: #f8fcff;
    color: var(--navy);
    font: inherit;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.counter-modal-close:hover, .counter-modal-close:focus-visible {
    background: var(--navy);
    color: #fff;
}

.counter-modal-list {
    margin: 0;
    padding-left: 22px;
    color: var(--navy);
    font-weight: 750;
}

.counter-modal-list li + li {
    margin-top: 8px;
}

.admin-grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 22px;
    margin-top: 34px
}

.admin-card {
    background: white;
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(16, 36, 63, .07);
    display: flex;
    gap: 20px;
    align-items: center;
}

.avatar {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 1.4rem;
    color: white;
    background: linear-gradient(145deg, var(--blue), var(--navy));
}

.admin-card h3 {
    margin: 0;
    font-size: 1.35rem
}

.admin-role {
    color: var(--green);
    font-weight: 900;
    margin: 3px 0 8px
}

.admin-card p {
    margin: 0;
    color: var(--muted)
}

.contact-panel {
    position: relative;
    overflow: hidden;
    margin-top: 34px;
    padding: 28px;
    background: radial-gradient(circle at 92% 10%, rgba(255, 255, 255, .18), transparent 26%),
    linear-gradient(135deg, #404eed 0%, #5865f2 52%, #3340a7 100%);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    display: grid;
    grid-template-columns:auto 1fr auto;
    gap: 18px;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 20px 46px rgba(64, 78, 237, .22);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-panel::after {
    content: "";
    position: absolute;
    inset: auto -48px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

.contact-panel:hover,
.contact-panel:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .58);
    box-shadow: 0 26px 56px rgba(64, 78, 237, .3);
    outline: none;
}

.contact-panel-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .24);
}

.contact-panel-icon img {
    width: 46px;
    height: 46px;
}

.contact-panel h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.5rem
}

.contact-panel p {
    margin: 0;
    color: rgba(255, 255, 255, .84)
}

.contact-panel .btn {
    position: relative;
    z-index: 1;
    background: #fff !important;
    color: #404eed !important;
    border-color: rgba(255, 255, 255, .7);
    box-shadow: none;
}

footer {
    padding: 36px 0;
    color: var(--muted);
    border-top: 1px solid rgba(16, 36, 63, .08);
    background: white;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.disclaimer {
    font-size: .84rem;
    max-width: 700px
}

.placeholder-banner {
    background: #fff7d6;
    border-bottom: 1px solid #f1dd84;
    color: #6c5200;
    padding: 10px 16px;
    text-align: center;
    font-weight: 750;
    font-size: .9rem;
}

@media (max-width: 1040px) {
    .event-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rocket-grid-grunts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav {
        min-height: 68px;
        position: relative;
    }

    .nav-toggle {
        display: grid;
        align-content: center;
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 16px;
        right: 16px;
        z-index: 40;
        display: none;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        background: #fff;
        border: 1px solid rgba(16, 36, 63, .1);
        box-shadow: 0 20px 42px rgba(16, 36, 63, .16);
    }

    .site-header.nav-open .nav-links {
        display: grid;
    }

    .nav-links a,
    .nav-dropdown {
        display: block;
    }

    .nav-dropdown-trigger::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin: 0 0 6px 10px;
        padding: 0 0 0 10px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-left: 2px solid #dceaf3;
    }

    .nav-dropdown-menu a {
        padding: 8px 10px;
        color: var(--muted);
        font-size: .94rem;
    }

    .hero-grid {
        grid-template-columns:1fr
    }

    .hero-card {
        min-height: auto
    }

    .social-grid, .meetup-grid, .live-data-grid, .event-hub-grid, .events-page .raid-boss-grid, .current-event-list, .upcoming-event-list, .rocket-grid {
        grid-template-columns:1fr
    }

    .meetup-home-preview {
        grid-template-columns:1fr;
    }

    .campfire-meetup-card {
        grid-template-columns:1fr;
    }

    .campfire-meetup-image {
        min-height: 190px;
    }

    .live-data-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-grid {
        grid-template-columns:1fr
    }

}

@media (max-width: 620px) {
    .hero {
        padding-top: 52px
    }

    .campfire-banner {
        align-items: flex-start;
        padding: 18px;
    }

    .campfire-banner img {
        width: 56px;
        height: 56px;
    }

    .mini-stats {
        grid-template-columns:1fr
    }

    .admin-card {
        align-items: flex-start
    }

    .contact-panel {
        grid-template-columns:1fr
    }

    .contact-panel .actions {
        margin-top: 0
    }

    .raid-boss-grid {
        grid-template-columns:1fr
    }
}


/* Trainer tools */
.tools-section {
    background: #fff
}

.tool-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding: 7px;
    background: #edf6fc;
    width: max-content;
    max-width: 100%;
}

.tool-tab {
    border: 0;
    background: transparent;
    color: var(--navy);
    padding: 11px 16px;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.tool-tab.active {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 36, 63, .18)
}

.tool-panel {
    margin-top: 0;
    min-width: 0;
}

.tool-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 24px;
    align-items: stretch
}

.tool-form {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 16px;
    background: #fff;
    padding: 22px;
    border: 1px solid #e0eaf0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px
}

.field.full, .tool-form .full {
    grid-column: 1/-1
}

.field label, .check-group legend {
    font-weight: 850;
    color: var(--navy)
}

.field input, .field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cddbe5;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.field input:focus, .field select:focus {
    outline: 3px solid rgba(25, 118, 210, .15);
    border-color: var(--blue)
}

.custom-stats {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px
}

.tool-result {
    min-height: 100%;
    padding: 28px;
    background: linear-gradient(145deg, #10243f, #1b4c81);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.tool-result h3 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.15;
    margin: 9px 0
}

.tool-result p {
    margin: 0 0 15px;
    color: rgba(255, 255, 255, .76)
}

.result-label {
    display: inline-flex;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .14);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.result-metrics {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 12px;
}

.result-metric {
    padding: 12px;
    background: rgba(255, 255, 255, .1);
}

.result-metric strong {
    display: block;
    font-size: 1.25rem
}

.result-metric span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .7)
}

.tool-disclaimer {
    margin: 18px 0 0;
    font-size: .88rem;
    color: var(--muted)
}

.check-group {
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.check-group legend {
    margin-bottom: 9px
}

.check-group label {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    background: #f4f8fb;
    font-weight: 700;
}

.check-group input {
    accent-color: var(--blue)
}

.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px
}

.preset {
    border: 1px solid #cadce7;
    padding: 9px 13px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.preset:hover {
    border-color: var(--blue);
    color: var(--blue)
}

.type-groups {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: 10px
}

.type-group {
    padding: 12px;
    background: rgba(255, 255, 255, .09)
}

.type-group strong {
    display: block;
    margin-bottom: 5px
}

.type-chip {
    display: inline-block;
    padding: 4px 8px;
    margin: 3px 4px 3px 0;
    background: rgba(255, 255, 255, .14);
    font-size: .84rem;
    font-weight: 750;
}

@media (max-width: 860px) {
    .tool-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 620px) {
    .tool-form {
        grid-template-columns:1fr
    }

    .field.full, .tool-form .full, .custom-stats {
        grid-column: 1
    }

    .custom-stats {
        grid-template-columns:1fr
    }

    .check-group {
        grid-template-columns:1fr
    }
}


/* Dedicated resources page */
.resources-heading {
    font-size: clamp(2.5rem, 6vw, 4.8rem)
}

.resource-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.resource-page-header .btn {
    flex: 0 0 auto;
}

.resource-hub-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.resource-hub-card {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 24px;
    background: #f8fcff;
    border: 1px solid #dceaf3;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.resource-hub-card:hover,
.resource-hub-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(25, 118, 210, .45);
    box-shadow: 0 14px 30px rgba(16, 36, 63, .1);
    outline: none;
}

.resource-hub-card h2 {
    margin: 17px 0 7px;
    color: var(--navy);
    font-size: 1.25rem;
}

.resource-hub-card p {
    margin: 0 0 20px;
    color: var(--muted);
}

.resource-hub-card strong {
    margin-top: auto;
    color: var(--blue);
}

.resource-directory {
    margin-top: 52px;
    padding-top: 42px;
    border-top: 1px solid #d7e6ef;
}

.resource-directory-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 24px;
}

.resource-directory-heading p {
    margin: 0;
    color: var(--muted)
}

.resource-title {
    margin: 7px 0 0;
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    letter-spacing: -.035em;
}

.resource-card-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce8ef;
    box-shadow: 0 12px 28px rgba(16, 36, 63, .08);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: #9acbf0;
    box-shadow: 0 18px 36px rgba(16, 36, 63, .13);
}

.resource-category {
    align-self: flex-start;
    padding: 5px 9px;
    background: #e3f3ff;
    color: #075985;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.resource-card h3 {
    margin: 17px 0 7px;
    color: var(--navy);
    font-size: 1.3rem
}

.resource-card p {
    margin: 0 0 20px;
    color: var(--muted)
}

.resource-card strong {
    margin-top: auto;
    color: var(--blue)
}

@media (max-width: 900px) {
    .resource-hub-grid,
    .resource-card-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }
}

@media (max-width: 620px) {
    .resource-page-header,
    .resource-directory-heading {
        align-items: start;
        flex-direction: column
    }

    .resource-hub-grid,
    .resource-card-grid {
        grid-template-columns:1fr
    }
}


.field-help {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 2px;
}

.field-help.loaded {
    color: var(--green);
    font-weight: 750
}

.field-help.fallback {
    color: #9a6700;
    font-weight: 750
}


.tool-instructions {
    margin-bottom: 20px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #dce8ef;
}

.tool-instructions h3 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 1.2rem;
}

.tool-instructions ol {
    margin: 0;
    padding-left: 1.3rem;
}

.tool-instructions li + li {
    margin-top: 5px
}

.tool-instructions p {
    margin: 10px 0 0;
    color: var(--muted);
}

.best-buddy-field {
    justify-content: flex-end;
}

.checkbox-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #cddbe5;
    background: #fff;
    cursor: pointer;
}

.checkbox-card:hover {
    border-color: var(--blue)
}

.checkbox-card input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--blue);
}

.checkbox-card span {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.checkbox-card strong {
    color: var(--navy)
}

.checkbox-card small {
    margin-top: 3px;
    color: var(--muted);
}

.pokemon-combobox {
    position: relative;
}

.pokemon-combobox input {
    padding-right: 48px;
}

.pokemon-toggle {
    position: absolute;
    top: 5px;
    right: 6px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: #edf6fc;
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
}

.pokemon-toggle:hover {
    background: #dcefff;
}

.pokemon-options {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #cddbe5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(16, 36, 63, 0.18);
}

.pokemon-option {
    width: 100%;
    display: block;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.pokemon-option:hover,
.pokemon-option:focus {
    outline: none;
    background: #eaf6ff;
}

.pokemon-option.selected {
    background: #dcefff;
    color: var(--navy);
    font-weight: 850;
}

.pokemon-option-empty {
    padding: 12px;
    color: var(--muted);
    text-align: center;
}
