/* ===== ホームページ ===== */
.home-page {
    --home-ink: #1f2937;
    --home-muted: #64748b;
    --home-border: rgba(15, 23, 42, .1);
    --home-surface: rgba(255, 255, 255, .94);
    --home-accent: #4f46e5;
    --home-accent-strong: #3730a3;
    --home-card-radius: 8px;

    color: var(--home-ink);
    background:
        linear-gradient(180deg, rgba(17, 24, 39, .06), rgba(245, 245, 245, 0) 260px),
        #f5f5f5;
    min-height: calc(100vh - 3.5rem);
    padding: 22px clamp(12px, 3vw, 32px) 34px;
}

.home-page a {
    color: inherit;
}

.home-hero,
.home-section-grid,
.home-feature-panel,
.home-page-guide,
.home-app-guide {
    max-width: 1180px;
    margin: 0 auto;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    align-items: stretch;
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .9), rgba(79, 70, 229, .78)),
        url("../img/homehero.webp") center / cover;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    color: #fff;
}

.home-hero__eyebrow {
    margin: 0 0 10px;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: 0;
    color: rgba(255, 255, 255, .82);
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.home-hero__lead {
    max-width: 680px;
    margin: 16px 0 0;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, .9);
}

.home-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: center;
}

.home-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--home-card-radius);
    background: rgba(255, 255, 255, .9);
    color: #111827;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.home-quick-link:hover {
    background: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .22);
}

.home-quick-link:focus-visible,
.home-section-action-link:focus-visible,
.home-more-link:focus-visible,
.home-card-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .78);
    outline-offset: 3px;
}

.home-quick-link img {
    width: 48px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex: 0 0 auto;
}

.home-quick-link span {
    min-width: 0;
    line-height: 1.3;
}

.home-section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
    margin-bottom: 34px;
    min-width: 0;
}

.home-panel,
.home-page-guide {
    border: 1px solid var(--home-border);
    border-radius: var(--home-card-radius);
    background: var(--home-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.home-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    margin-bottom: 14px;
}

.home-section-head h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.25;
}

.home-section-head p {
    margin: 6px 0 0;
    color: var(--home-muted);
    font-size: .94rem;
    font-weight: 700;
    line-height: 1.6;
}

.home-status-badge,
.home-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid var(--home-label-border, rgba(15, 23, 42, .1));
    border-radius: 999px;
    background: var(--home-label-bg, rgba(255, 255, 255, .94));
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.home-section-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.home-section-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(79, 70, 229, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--home-accent-strong);
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.home-section-action-link:hover {
    border-color: rgba(79, 70, 229, .4);
    background: #eef2ff;
    text-decoration: none;
}

.home-event-request-mini {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(79, 70, 229, .24);
    border-radius: 999px;
    background: #fff;
    color: var(--home-accent-strong);
    font-size: .75rem;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.home-event-request-mini:hover {
    border-color: rgba(79, 70, 229, .4);
    background: #eef2ff;
    text-decoration: none;
}

.home-event-request-mini:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .78);
    outline-offset: 2px;
}

.home-event-request-mini.data-source-badge {
    gap: 0;
    border-radius: 999px;
    cursor: help;
}

.home-event-request-mini.data-source-badge::before {
    content: none;
}

.home-list {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding-bottom: 10px;
}

.home-list[data-home-news-list] {
    gap: 8px;
}

.home-feature-panel {
    margin-bottom: 28px;
    padding: 16px;
}

.home-section-grid + .home-feature-panel {
    margin-top: -20px;
}

.home-feature-stage {
    position: relative;
    min-width: 0;
}

.home-feature-list {
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    padding: 2px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-feature-list::-webkit-scrollbar {
    display: none;
}

.home-feature-track {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.home-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 20px) / 3);
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, .14);
    border-radius: var(--home-card-radius);
    background:
        linear-gradient(135deg, rgba(238, 242, 255, .9), rgba(255, 255, 255, .98) 46%),
        #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .055);
}

.home-feature-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef2ff;
    text-decoration: none;
}

.home-feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease, filter .2s ease;
}

.home-feature-card__body {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 12px 12px 8px;
}

.home-feature-card h3 {
    margin: 0;
    color: var(--home-ink);
    font-size: 1.05rem;
    line-height: 1.35;
}

.home-feature-card p {
    display: -webkit-box;
    min-height: calc(.9rem * 1.55 * 2);
    overflow: hidden;
    margin: 0;
    color: var(--home-muted);
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-feature-card__image[href]:hover img {
    filter: brightness(.94);
    transform: scale(1.02);
}

.home-feature-card__image[href]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .78);
    outline-offset: -3px;
}

.home-feature-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(79, 70, 229, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--home-accent-strong);
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    cursor: pointer;
    transform: translateY(-50%);
}

.home-feature-nav:hover {
    border-color: rgba(79, 70, 229, .4);
    background: #eef2ff;
}

.home-feature-nav:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .78);
    outline-offset: 2px;
}

.home-feature-nav--prev {
    left: 8px;
}

.home-feature-nav--next {
    right: 8px;
}

.home-feature-nav[hidden] {
    display: none;
}

.home-feature-card--empty {
    grid-column: 1 / -1;
    flex-basis: 100%;
    min-height: auto;
    padding: 14px;
}

.home-feature-card--empty p {
    display: block;
    min-height: 0;
    overflow: visible;
    -webkit-line-clamp: initial;
}

.home-list-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--home-card-radius);
    background: #fff;
}

.home-list-item > div {
    min-width: 0;
}

.home-event-item {
    grid-template-columns: 1fr;
    gap: 7px;
    border-left: 3px solid transparent;
}

.home-event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.home-event-meta .home-label {
    margin-bottom: 0;
}

.home-news-button {
    position: relative;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    align-items: center;
    padding: 10px;
    border-left: 4px solid rgba(79, 70, 229, .42);
    background: linear-gradient(90deg, rgba(238, 242, 255, .74), #fff 120px);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-news-button:hover {
    border-color: rgba(37, 99, 235, .55);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.home-news-button:hover .home-news-action,
.home-news-button:focus-visible .home-news-action {
    color: var(--home-accent);
}

.home-news-button:active {
    transform: translateY(0);
}

.home-news-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

.home-news-body {
    min-width: 0;
}

.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.home-news-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--news-category-border, rgba(100, 116, 139, .3));
    border-radius: 999px;
    background: var(--news-category-bg, #f1f5f9);
    color: var(--news-category-text, #475569);
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.home-news-category--all,
.home-news-category--site {
    --news-category-border: rgba(79, 70, 229, .28);
    --news-category-bg: #eef2ff;
    --news-category-hover-bg: #e0e7ff;
    --news-category-active-bg: #c7d2fe;
    --news-category-text: #3730a3;
}

.home-news-category--bugfix {
    --news-category-border: rgba(234, 88, 12, .28);
    --news-category-bg: #fff7ed;
    --news-category-hover-bg: #ffedd5;
    --news-category-active-bg: #fed7aa;
    --news-category-text: #c2410c;
}

.home-news-category--other {
    --news-category-border: rgba(100, 116, 139, .3);
    --news-category-bg: #f1f5f9;
    --news-category-hover-bg: #e2e8f0;
    --news-category-active-bg: #cbd5e1;
    --news-category-text: #475569;
}

.home-news-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--home-accent-strong);
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    transition: color .16s ease;
}

.home-news-action::before {
    content: "› ";
}

.home-list-item.home-news-button time {
    font-size: .8rem;
}

.home-list-item.home-news-button h3 {
    font-size: .9rem;
    line-height: 1.4;
}

.home-list-item.home-news-button p {
    font-size: .84rem;
    line-height: 1.55;
}

.home-list-item time {
    color: var(--home-muted);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.5;
}

.home-list-item h3 {
    margin: 0;
    font-size: .98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.home-list-item p {
    margin: 4px 0 0;
    color: var(--home-muted);
    font-size: .9rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.home-event-calendar {
    margin-bottom: 14px;
}

.home-event-layout {
    display: grid;
    grid-template-columns: minmax(340px, .92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
}

.home-event-mobile-overview {
    display: none;
}

.home-event-mobile-tab-list {
    height: auto;
    max-height: none;
    overflow-y: visible;
}

.home-event-mobile-section {
    display: grid;
    gap: 8px;
}

.home-event-mobile-section__title {
    margin: 0;
    color: var(--home-ink);
    font-size: .98rem;
    font-weight: 900;
    line-height: 1.35;
}

.home-event-mobile-section__list {
    display: grid;
    gap: 7px;
}

.home-event-mobile-card,
.home-event-mobile-row {
    position: relative;
    min-width: 0;
    border: 1px solid var(--home-event-mobile-border, var(--home-border));
    border-left: 4px solid var(--home-event-mobile-accent, rgba(79, 70, 229, .48));
    border-radius: var(--home-card-radius);
    background:
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
}

.home-event-link {
    display: grid;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-event-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(15, 23, 42, .11);
}

.home-event-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .32);
    outline-offset: 2px;
}

.home-event-link__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--home-event-mobile-border, rgba(79, 70, 229, .24));
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--home-event-mobile-accent, var(--home-accent-strong));
    font-size: .74rem;
    font-weight: 900;
    line-height: 1.2;
}

.home-event-link:hover .home-event-link__action {
    background: #fff;
}

.home-event-mobile-card {
    padding: 9px 10px;
}

.home-event-mobile-card__body,
.home-event-mobile-row__body {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.home-event-mobile-card__meta,
.home-event-mobile-row__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

.home-event-mobile-card strong,
.home-event-mobile-row strong {
    min-width: 0;
    overflow: hidden;
    color: var(--home-ink);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-mobile-card__body .home-label,
.home-event-mobile-row__body .home-label {
    width: fit-content;
    margin-bottom: 0;
}

.home-event-mobile-description {
    margin: 0;
    color: var(--home-muted);
    font-size: .8rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.home-event-mobile-card__date {
    color: var(--home-accent-strong);
    font-size: .8rem;
    font-weight: 800;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.home-event-mobile-row {
    padding: 8px 10px;
}

.home-event-mobile-row__date {
    color: var(--home-muted);
    font-size: .82rem;
    font-weight: 900;
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.home-event-mobile-card--official {
    --home-event-mobile-accent: rgba(226, 69, 69, .72);
    --home-event-mobile-border: rgba(226, 69, 69, .22);
    --home-event-mobile-bg-start: rgba(254, 226, 226, .82);
    --home-event-mobile-bg-soft: rgba(226, 69, 69, .1);
}

.home-event-mobile-card--tournament {
    --home-event-mobile-accent: rgba(124, 58, 237, .7);
    --home-event-mobile-border: rgba(124, 58, 237, .22);
    --home-event-mobile-bg-start: rgba(237, 233, 254, .82);
    --home-event-mobile-bg-soft: rgba(124, 58, 237, .1);
}

.home-event-mobile-card--prediction {
    --home-event-mobile-accent: rgba(232, 200, 43, .78);
    --home-event-mobile-border: rgba(232, 200, 43, .28);
    --home-event-mobile-bg-start: rgba(254, 249, 195, .86);
    --home-event-mobile-bg-soft: rgba(232, 200, 43, .12);
}

.home-event-mobile-card--user {
    --home-event-mobile-accent: rgba(37, 99, 235, .72);
    --home-event-mobile-border: rgba(37, 99, 235, .24);
    --home-event-mobile-bg-start: rgba(219, 234, 254, .86);
    --home-event-mobile-bg-soft: rgba(37, 99, 235, .1);
}

.home-event-mobile-card--craft {
    --home-event-mobile-accent: rgba(42, 183, 106, .72);
    --home-event-mobile-border: rgba(42, 183, 106, .22);
    --home-event-mobile-bg-start: rgba(220, 252, 231, .82);
    --home-event-mobile-bg-soft: rgba(42, 183, 106, .1);
}

.home-event-mobile-card--pack {
    --home-event-mobile-accent: rgba(14, 165, 233, .72);
    --home-event-mobile-border: rgba(14, 165, 233, .22);
    --home-event-mobile-bg-start: rgba(224, 242, 254, .86);
    --home-event-mobile-bg-soft: rgba(14, 165, 233, .1);
}

.home-event-mobile-card--login {
    --home-event-mobile-accent: rgba(20, 184, 166, .72);
    --home-event-mobile-border: rgba(20, 184, 166, .22);
    --home-event-mobile-bg-start: rgba(204, 251, 241, .82);
    --home-event-mobile-bg-soft: rgba(20, 184, 166, .1);
}

.home-event-mobile-card--sale {
    --home-event-mobile-accent: rgba(14, 165, 233, .72);
    --home-event-mobile-border: rgba(14, 165, 233, .22);
    --home-event-mobile-bg-start: rgba(224, 242, 254, .86);
    --home-event-mobile-bg-soft: rgba(14, 165, 233, .1);
}

.home-event-mobile-card--site {
    --home-event-mobile-accent: rgba(79, 70, 229, .72);
    --home-event-mobile-border: rgba(79, 70, 229, .22);
    --home-event-mobile-bg-start: rgba(238, 242, 255, .86);
    --home-event-mobile-bg-soft: rgba(79, 70, 229, .1);
}

.home-event-mobile-card--other {
    --home-event-mobile-accent: rgba(100, 116, 139, .64);
    --home-event-mobile-border: rgba(100, 116, 139, .22);
    --home-event-mobile-bg-start: rgba(241, 245, 249, .88);
    --home-event-mobile-bg-soft: rgba(100, 116, 139, .1);
}

.home-event-mobile-card--other .home-event-link__action {
    border-color: rgba(71, 85, 105, .38);
    background: rgba(255, 255, 255, .92);
    color: #334155;
}

.home-event-mobile-card--other:hover .home-event-link__action {
    border-color: #475569;
    color: #1e293b;
}

.home-event-mobile-more,
.home-event-mobile-empty {
    margin: 0;
    color: var(--home-muted);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.5;
}

.home-event-mobile-calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(79, 70, 229, .22);
    border-radius: var(--home-card-radius);
    background: var(--home-accent);
    color: #fff;
    font: inherit;
    font-size: .95rem;
    font-weight: 900;
    cursor: pointer;
}

.home-event-mobile-calendar-button:hover {
    background: var(--home-accent-strong);
}

.home-event-mobile-calendar-button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

.home-event-list-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--home-event-calendar-height, auto);
    min-height: 0;
    gap: 12px;
}

.home-event-list-title {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.4;
}

.home-event-desktop-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    height: 100%;
    min-width: 0;
    min-height: 0;
    gap: 10px;
}

.home-event-desktop-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
}

.home-event-desktop-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: var(--home-card-radius);
    background: #fff;
    color: var(--home-muted);
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.home-event-tab-badge {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .68rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 0 2px #fff;
}

.home-event-desktop-tab.is-active .home-event-tab-badge {
    box-shadow: 0 0 0 2px #eef2ff;
}

.home-event-desktop-tab:hover {
    border-color: rgba(79, 70, 229, .34);
    background: #eef2ff;
    color: var(--home-accent-strong);
}

.home-event-desktop-tab:focus-visible,
.home-event-desktop-back:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

.home-event-desktop-tabs .home-event-desktop-tab.is-active {
    border-color: rgba(79, 70, 229, .5);
    background: #eef2ff;
    color: var(--home-accent-strong);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, .28);
}

.home-event-desktop-list {
    display: grid;
    align-content: start;
    align-items: start;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    gap: 7px;
    padding-right: 0;
}

.home-event-desktop-card {
    position: relative;
    align-self: start;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid var(--home-event-mobile-border, var(--home-border));
    border-left: 4px solid var(--home-event-mobile-accent, rgba(79, 70, 229, .48));
    border-radius: var(--home-card-radius);
    background:
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
}

.home-event-desktop-card.has-card-image {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .78) 52%, rgba(255, 255, 255, .12)),
        var(--home-event-card-image) right center / auto 100% no-repeat,
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
}

body.is-pwa-standalone .home-event-desktop-card {
    border-color: var(--home-event-mobile-border, var(--home-border));
    border-left-color: var(--home-event-mobile-accent, rgba(79, 70, 229, .48));
    background:
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 3px 10px rgba(15, 23, 42, .06);
}

body.is-pwa-standalone .home-event-desktop-card.has-card-image {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .78) 52%, rgba(255, 255, 255, .12)),
        var(--home-event-card-image) right center / auto 100% no-repeat,
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
}

body.is-pwa-standalone .home-event-calendar-summary__list {
    gap: 7px;
    padding: 8px;
}

body.is-pwa-standalone .home-event-calendar-summary__item,
body.is-pwa-standalone .home-event-calendar-summary__item:first-child {
    border: 1px solid var(--home-event-mobile-border, var(--home-border));
    border-left: 4px solid var(--home-event-mobile-accent, rgba(79, 70, 229, .48));
    border-radius: var(--home-card-radius);
    background:
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .72),
        0 3px 10px rgba(15, 23, 42, .06);
}

body.is-pwa-standalone .home-event-calendar-summary__item.has-summary-image,
body.is-pwa-standalone .home-event-calendar-summary__item.has-summary-image:first-child {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, .12)),
        var(--home-event-summary-image) right center / auto 100% no-repeat,
        linear-gradient(90deg, var(--home-event-mobile-bg-start, rgba(238, 242, 255, .82)), rgba(255, 255, 255, .96) 120px),
        linear-gradient(135deg, var(--home-event-mobile-bg-soft, rgba(79, 70, 229, .08)), rgba(255, 255, 255, .98));
}

.home-event-desktop-card__body {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.home-event-desktop-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.home-event-desktop-card strong {
    min-width: 0;
    overflow: hidden;
    color: var(--home-ink);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-desktop-card__date {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border: 1px solid rgba(14, 165, 233, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    justify-self: end;
    color: var(--home-accent-strong);
    font-size: .82rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.home-event-desktop-card .home-label {
    width: fit-content;
    margin-bottom: 0;
}

.home-event-desktop-card__details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.home-event-desktop-card__time {
    color: var(--home-ink);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.3;
}

.home-event-ended-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .12);
    color: #64748b;
    font-size: .72rem;
    font-weight: 900;
    line-height: 1.2;
}

.home-event-desktop-card.is-ended .home-event-desktop-card__meta,
.home-event-desktop-card.is-ended .home-event-desktop-card__details,
.home-event-desktop-card.is-ended .home-event-desktop-card__description {
    opacity: .62;
}

.home-event-calendar-summary__item.is-ended .home-event-calendar-summary__meta,
.home-event-calendar-summary__item.is-ended .home-event-calendar-summary__body strong,
.home-event-calendar-summary__item.is-ended .home-event-calendar-summary__body p {
    opacity: .62;
}

.home-event-desktop-card__description {
    margin: 0;
    color: var(--home-muted);
    font-size: .82rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.home-event-desktop-more,
.home-event-desktop-empty {
    margin: 0;
    color: var(--home-muted);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.5;
}

.home-event-show-more {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(79, 70, 229, .28);
    border-radius: var(--home-card-radius);
    background: #fff;
    color: var(--home-accent-strong);
    font: inherit;
    font-size: .84rem;
    font-weight: 900;
    cursor: pointer;
}

.home-event-show-more:hover {
    border-color: rgba(79, 70, 229, .5);
    background: #eef2ff;
}

.home-event-show-more:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

.home-event-desktop-selected-head {
    display: grid;
    gap: 8px;
}

.home-event-desktop-back {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--home-accent-strong);
    font: inherit;
    font-size: .86rem;
    font-weight: 900;
    cursor: pointer;
}

.home-event-desktop-back:hover {
    text-decoration: underline;
}

.home-event-desktop-title {
    margin: 0;
    color: var(--home-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.4;
}

.home-event-modal-panel {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.home-event-modal-list {
    max-height: 320px;
}

.home-event-calendar-inline {
    display: block;
}

.home-event-calendar-controls {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.home-event-calendar-controls__title {
    min-width: 0;
    overflow: hidden;
    color: var(--home-ink);
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: var(--home-card-radius);
    background: #fff;
    color: var(--home-accent-strong);
    font: inherit;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
}

.home-event-calendar-nav:hover {
    background: #eef2ff;
}

.home-event-calendar-nav:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .3);
    outline-offset: 2px;
}

.home-event-calendar__table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--home-card-radius);
    background: #fff;
    overflow: hidden;
}

.home-event-calendar__table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.home-event-calendar__table th,
.home-event-calendar__table td {
    border-top: 1px solid rgba(15, 23, 42, .08);
    border-left: 1px solid rgba(15, 23, 42, .08);
    vertical-align: top;
}

.home-event-calendar__table th:first-child,
.home-event-calendar__table td:first-child {
    border-left: 0;
}

.home-event-calendar__table th {
    padding: 7px 6px;
    background: #f8fafc;
    color: var(--home-muted);
    font-size: .78rem;
    font-weight: 900;
    text-align: center;
}

.home-event-calendar__day,
.home-event-calendar__blank {
    height: 86px;
    padding: 3px;
}

.home-event-calendar__blank {
    background: #f8fafc;
}

.home-event-calendar__day {
    position: relative;
    background: #fff;
}

.home-event-calendar__day.is-today {
    background: linear-gradient(180deg, rgba(238, 242, 255, .95), #fff 64%);
    box-shadow: inset 0 0 0 2px rgba(79, 70, 229, .56);
}

.home-event-calendar__day.has-event {
    background: #fcfdff;
    cursor: pointer;
}

.home-event-calendar__day.is-today.has-event {
    background: linear-gradient(180deg, rgba(238, 242, 255, .98), #fcfdff 68%);
}

.home-event-calendar__day.has-event:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .32);
    outline-offset: -3px;
}

.home-event-calendar__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--home-ink);
    font-size: .76rem;
    font-weight: 900;
}

.home-event-calendar__day.is-today .home-event-calendar__date {
    background: var(--home-accent);
    color: #fff;
}

.home-event-calendar__events {
    display: grid;
    gap: 1px;
    margin-top: 2px;
}

.home-event-calendar__event,
.home-event-calendar__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 1px 2px;
    border-radius: 4px;
    font-size: .43rem;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-calendar__more {
    width: fit-content;
    max-width: 100%;
    background: #e5e7eb;
    color: #475569;
}

.home-event-calendar-summary {
    margin-top: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: var(--home-card-radius);
    background: #fff;
    overflow: hidden;
}

.home-event-calendar-summary h4 {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
    font-size: .98rem;
    line-height: 1.35;
}

.home-event-calendar-summary__tabs {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

.home-event-calendar-summary__list {
    display: grid;
    gap: 8px;
    padding: 8px;
}

.home-event-calendar-summary__item {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-left: 3px solid transparent;
    border-radius: 6px;
}

.home-event-calendar-summary__item.has-summary-image {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, .12)),
        var(--home-event-summary-image) right center / auto 100% no-repeat,
        #fff;
}

.home-event-calendar-summary__item:first-child {
    border-top: 1px solid rgba(15, 23, 42, .08);
}

.home-event-calendar-summary__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
}

.home-event-calendar-summary__meta time {
    color: var(--home-muted);
    font-size: .82rem;
    font-weight: 900;
}

.home-event-calendar-summary__meta .home-label {
    margin-bottom: 0;
}

.home-event-calendar-summary__item strong {
    display: block;
    font-size: .94rem;
    line-height: 1.45;
}

.home-event-calendar-summary__body {
    display: grid;
    gap: 4px;
}

.home-event-calendar-summary__item p,
.home-event-calendar-summary__empty {
    margin: 3px 0 0;
    color: var(--home-muted);
    font-size: .86rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.home-event-calendar-summary__empty {
    padding: 12px;
}

.home-event-calendar-summary__item.is-highlighted,
.home-event-item.is-highlighted {
    animation: home-event-summary-highlight .9s ease;
}

.home-event-calendar-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
}

.home-event-calendar-modal__content {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(920px, 100%);
    max-height: min(760px, 92vh);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .34);
    overflow: hidden;
}

.home-event-calendar-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, .08);
    color: var(--home-ink);
    font-size: 1.4rem;
    font-weight: 900;
    cursor: pointer;
}

.home-event-calendar-modal__close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .36);
    outline-offset: 2px;
}

.home-event-calendar-modal__head {
    padding: 18px 62px 14px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #f8fafc;
}

.home-event-calendar-modal__head h3 {
    margin: 0;
    overflow: hidden;
    font-size: 1.15rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-calendar-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
}

@keyframes home-event-summary-highlight {
    0%,
    100% {
        border-left-color: transparent;
        background: #fff;
        box-shadow: none;
    }

    20%,
    72% {
        border-left-color: var(--home-accent);
        background: rgba(79, 70, 229, .08);
        box-shadow: inset 0 0 0 2px rgba(79, 70, 229, .24);
    }

    46% {
        border-left-color: transparent;
        background: #fff;
        box-shadow: none;
    }
}

.home-news-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(4px);
}

.home-news-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(900px, 100%);
    height: min(88vh, 820px);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .34);
    overflow: hidden;
}

.home-news-modal-screen {
    flex: 1 1 auto;
    min-height: 0;
}

.home-news-modal-list-screen,
.home-news-modal-detail-screen {
    display: flex;
    flex-direction: column;
}

.home-news-modal-screen[hidden] {
    display: none;
}

.home-news-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .92);
    color: #111827;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.home-news-modal-close:hover {
    background: #fff;
}

.home-news-modal-close:focus-visible,
.home-news-modal-back:focus-visible,
.home-news-modal-filter-button:focus-visible,
.home-news-modal-list-card:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .34);
    outline-offset: 2px;
}

.home-news-modal-list-head {
    padding: 24px 64px 16px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(224, 231, 255, .9));
    color: #1f1b4f;
}

.home-news-modal-list-head h3 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.home-news-modal-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.home-news-modal-filter-button {
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid var(--news-category-border, rgba(79, 70, 229, .18));
    border-radius: 999px;
    background: var(--news-category-bg, #eef2ff);
    color: var(--news-category-text, #3730a3);
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
}

.home-news-modal-filter-button:hover {
    border-color: var(--news-category-border, rgba(79, 70, 229, .42));
    background: var(--news-category-hover-bg, #e0e7ff);
    color: var(--news-category-text, #3730a3);
}

.home-news-modal-filter-button.is-active,
.home-news-modal-filter-button.is-active:hover {
    border-color: var(--news-category-border, var(--home-accent));
    background: var(--news-category-active-bg, #c7d2fe);
    color: var(--news-category-text, #3730a3);
}

.home-news-modal-list {
    display: grid;
    gap: 12px;
    padding: 16px 24px 24px;
    overflow-y: auto;
}

.home-news-modal-list-card {
    display: grid;
    gap: 8px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-left: 4px solid rgba(79, 70, 229, .55);
    border-radius: 14px;
    background: #fff;
    color: #273244;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.home-news-modal-list-card:hover {
    border-left-color: var(--home-accent);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .1);
    transform: translateY(-1px);
}

.home-news-modal-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-news-modal-list-meta time {
    color: var(--home-muted);
    font-size: .84rem;
    font-weight: 800;
}

.home-news-modal-list-category {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}

.home-news-modal-list-card h4,
.home-news-modal-list-card p {
    margin: 0;
}

.home-news-modal-list-card h4 {
    color: #1e293b;
    font-size: 1rem;
}

.home-news-modal-list-card p {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
}

.home-news-modal-list-action {
    color: var(--home-accent-strong);
    font-size: .84rem;
    font-weight: 900;
}

.home-news-modal-list-action::before {
    content: "› ";
}

.home-news-modal-back {
    align-self: flex-start;
    margin: 14px 64px 0 16px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--home-accent-strong);
    font: inherit;
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
}

.home-news-modal-back:hover {
    background: rgba(79, 70, 229, .08);
}

.home-news-modal-hero {
    padding: 24px 64px 18px 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(238, 242, 255, .86) 48%, rgba(199, 210, 254, .82)),
        linear-gradient(135deg, rgba(79, 70, 229, .18), rgba(124, 58, 237, .24)),
        url("../img/homehero.webp") center 34% / cover no-repeat;
    background-blend-mode: normal, screen, normal;
    color: #1f1b4f;
}

.home-news-modal-hero h3 {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.35;
    letter-spacing: .01em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}

.home-news-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.home-news-modal-meta time,
.home-news-modal-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(79, 70, 229, .2);
    border-radius: 999px;
    background: rgba(224, 231, 255, .9);
    color: #3730a3;
    box-shadow: 0 6px 18px rgba(79, 70, 229, .1);
    font-size: .82rem;
    font-weight: 800;
}

.home-news-modal-meta .home-news-category {
    border-color: var(--news-category-border);
    background: var(--news-category-bg);
    color: var(--news-category-text);
}

.home-news-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
}

.home-news-modal-note {
    color: #273244;
    font-size: .98rem;
    line-height: 1.95;
    white-space: pre-wrap;
}

.home-news-modal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 22px;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--home-accent);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.home-news-modal-link[hidden] {
    display: none;
}

.home-news-modal-link:hover {
    background: var(--home-accent-strong);
    text-decoration: none;
}

@media (max-width: 480px) {
    .home-news-modal {
        padding: 10px;
    }

    .home-news-modal-content {
        height: 92vh;
        border-radius: 14px;
    }

    .home-news-modal-close {
        top: 10px;
        right: 10px;
        width: 34px;
        border-radius: 10px;
    }

    .home-news-modal-hero {
        padding: 22px 52px 18px 18px;
    }

    .home-news-modal-list-head {
        padding: 20px 52px 14px 18px;
    }

    .home-news-modal-filter {
        gap: 6px;
        padding: 12px 14px;
    }

    .home-news-modal-filter-button {
        min-height: 32px;
        padding: 5px 10px;
        font-size: .78rem;
    }

    .home-news-modal-list {
        gap: 10px;
        padding: 12px 14px 16px;
    }

    .home-news-modal-list-card {
        padding: 13px;
    }

    .home-news-modal-back {
        margin: 10px 48px 0 10px;
    }

    .home-news-modal-body {
        padding: 16px 18px 18px;
    }

    .home-news-modal-note {
        font-size: .94rem;
        line-height: 1.85;
    }

    .home-event-calendar-modal {
        padding: 10px;
    }

    .home-event-calendar-modal__content {
        border-radius: 14px;
    }

    .home-event-calendar-modal__head {
        padding: 15px 48px 11px 12px;
    }

    .home-event-calendar-modal__head h3 {
        font-size: .86rem;
        line-height: 1.25;
    }

    .home-event-calendar-modal__close {
        top: 8px;
        right: 8px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1.2rem;
    }

    .home-event-calendar-modal__body {
        padding: 10px;
    }

    .home-event-calendar__table caption {
        padding: 8px 10px;
        font-size: .92rem;
    }

    .home-event-calendar__table th {
        padding: 5px 2px;
        font-size: .7rem;
    }

    .home-event-calendar__day,
    .home-event-calendar__blank {
        height: 68px;
        padding: 2px;
    }

    .home-event-calendar__date {
        width: 18px;
        height: 18px;
        font-size: .7rem;
    }

    .home-event-calendar__events {
        gap: 1px;
        margin-top: 2px;
    }

    .home-event-calendar__event,
    .home-event-calendar__more {
        padding: 1px;
        border-radius: 4px;
        font-size: .38rem;
        line-height: 1.08;
    }

    .home-event-modal-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-event-calendar-summary {
        margin-top: 10px;
    }

    .home-event-calendar-summary h4 {
        padding: 8px 10px;
        font-size: .92rem;
    }

    .home-event-calendar-summary__tabs {
        padding: 8px 10px;
    }

    .home-event-calendar-summary__item {
        padding: 9px 10px;
    }

}

.home-label {
    margin-bottom: 5px;
}

.home-label--official {
    --home-label-border: rgba(226, 69, 69, .22);
    color: #b91c1c;
}

.home-label--tournament {
    --home-label-border: rgba(124, 58, 237, .22);
    color: #6d28d9;
}

.home-label--prediction {
    --home-label-border: rgba(232, 200, 43, .3);
    color: #854d0e;
}

.home-label--user {
    --home-label-border: rgba(37, 99, 235, .24);
    color: #1d4ed8;
}

.home-label--pack {
    --home-label-border: rgba(14, 165, 233, .22);
    color: #0369a1;
}

.home-label--login {
    --home-label-border: rgba(20, 184, 166, .22);
    color: #0f766e;
}

.home-label--sale {
    --home-label-border: rgba(14, 165, 233, .22);
    color: #0369a1;
}

.home-label--craft {
    --home-label-border: rgba(16, 185, 129, .22);
    color: #047857;
}

.home-label--site {
    --home-label-border: rgba(79, 70, 229, .22);
    color: var(--home-accent-strong);
}

.home-label--other {
    --home-label-border: rgba(100, 116, 139, .22);
    color: #475569;
}

.home-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 14px;
    border-radius: var(--home-card-radius);
    border: 2px solid var(--home-accent);
    background: #fff;
    color: var(--home-accent);
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.home-more-link:hover {
    border-color: var(--home-accent);
    background: #6366f1;
    color: #fff;
    text-decoration: none;
}

.home-more-link span {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: .72rem;
}

.home-more-link.is-disabled {
    border-color: #e5e7eb;
    background: #e5e7eb;
    color: #6b7280;
    cursor: default;
}

.home-event-submit {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, .2);
    border-radius: var(--home-card-radius);
    background: rgba(79, 70, 229, .06);
}

.home-event-submit p {
    margin: 0 0 8px;
    color: var(--home-ink);
    font-size: .9rem;
    line-height: 1.65;
}

.home-event-submit .home-more-link {
    width: fit-content;
    margin-top: 0;
}

.home-event-submit--wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.home-event-submit--wide p {
    margin: 0;
}

.home-event-submit--wide .home-more-link {
    flex: 0 0 auto;
    width: auto;
}

.home-page-guide {
    margin-top: 34px;
    padding: 18px;
}

.home-section-grid + .home-page-guide {
    margin-top: 42px;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-page-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: var(--home-card-radius);
    background: #fff;
    overflow: hidden;
}

.home-page-card__thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 40 / 21;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .08), rgba(79, 70, 229, .12)),
        #f8fafc;
    overflow: hidden;
}

.home-page-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page-card__thumb span {
    display: grid;
    place-items: center;
    width: 58px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(79, 70, 229, .12);
    color: var(--home-accent-strong);
    font-size: 1.55rem;
    font-weight: 900;
}

.home-page-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 9px;
    padding: 14px;
}

.home-page-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.home-page-card p {
    flex: 1 1 auto;
    margin: 0;
    color: var(--home-muted);
    font-size: .92rem;
    line-height: 1.65;
}

.home-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: var(--home-card-radius);
    border: 2px solid var(--home-accent);
    background: #fff;
    color: var(--home-accent);
    font-weight: 800;
    text-decoration: none;
}

.home-card-button:hover {
    border-color: var(--home-accent);
    background: #6366f1;
    color: #fff;
    text-decoration: none;
}

.home-status-badge {
    background: #f3f4f6;
    color: #6b7280;
}

.home-page-card.is-coming-soon {
    background: #f9fafb;
}

.home-page-card.is-coming-soon .home-page-card__thumb,
.home-page-card.is-coming-soon .home-card-button.is-disabled {
    filter: grayscale(.35);
}

.home-card-button.is-disabled {
    border-color: #e5e7eb;
    background: #e5e7eb;
    color: #6b7280;
    cursor: default;
}

.home-app-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: var(--home-card-radius);
    background:
        linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(14, 165, 233, .08)),
        #fff;
}

.home-app-guide__body {
    min-width: 0;
}

.home-app-guide h2 {
    margin: 8px 0 0;
    font-size: 1.12rem;
    line-height: 1.4;
}

.home-app-guide p {
    margin: 8px 0 0;
    color: var(--home-muted);
    font-size: .95rem;
    line-height: 1.75;
}

.home-app-guide__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 0;
    border-radius: var(--home-card-radius);
    background: var(--home-accent);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.home-app-guide__button:hover {
    background: var(--home-accent-strong);
}

.home-app-guide__button:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .35);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero__content {
        min-height: 180px;
    }

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

    .home-event-layout {
        display: none;
    }

    .home-event-mobile-overview {
        display: grid;
        gap: 10px;
    }

    .home-event-request-mini {
        display: inline-flex;
    }

    .home-event-submit--wide {
        display: none;
    }
}

@media (max-width: 768px) {
    .home-page {
        min-height: calc(100vh - 2.5rem);
        padding: 12px 10px 24px;
    }

    .home-hero {
        padding: 18px;
    }

    .home-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-quick-link {
        min-height: 72px;
        padding: 10px;
        gap: 8px;
    }

    .home-quick-link img {
        width: 36px;
    }

    .home-section-grid {
        align-items: stretch;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .home-feature-list {
        scroll-snap-type: x proximity;
    }

    .home-feature-card {
        flex-basis: min(82vw, 360px);
        scroll-snap-align: start;
    }

    .home-feature-nav {
        width: 30px;
        height: 30px;
        font-size: .9rem;
    }

    .home-feature-nav--prev {
        left: 4px;
    }

    .home-feature-nav--next {
        right: 4px;
    }

    .home-panel {
        min-height: 0;
    }

    .home-event-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-event-calendar {
        margin-bottom: 14px;
    }

    .home-event-calendar-inline {
        display: none;
    }

    .home-event-submit:not(.home-event-submit--wide) .home-more-link {
        width: 100%;
    }

    .home-app-guide {
        grid-template-columns: 1fr;
    }

    .home-app-guide__button {
        width: 100%;
    }

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

@media (max-width: 700px) {
    .home-event-layout {
        display: none;
    }

    .home-event-request-mini {
        display: inline-flex;
    }

    .home-event-submit--wide {
        display: none;
    }

    .home-event-mobile-overview {
        display: grid;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 14px;
    }

    .home-hero__lead {
        margin-top: 12px;
        font-size: .95rem;
        line-height: 1.7;
    }

    .home-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-quick-link {
        align-items: center;
        justify-content: center;
        min-height: 64px;
        padding: 8px;
        gap: 6px;
        font-size: clamp(.8rem, 3.2vw, .92rem);
    }

    .home-quick-link img {
        width: 28px;
    }

    .home-quick-link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .home-page-guide {
        padding: 14px;
    }

    .home-page-card__thumb {
        aspect-ratio: 40 / 21;
    }

    .home-page-card__thumb img {
        width: 100%;
    }

    .home-page-card__thumb span {
        width: 48px;
        font-size: 1.25rem;
    }

    .home-page-card__body {
        gap: 9px;
        padding: 12px;
    }

    .home-page-card h3 {
        font-size: 1.04rem;
    }

    .home-page-card p {
        display: block;
        overflow: visible;
        font-size: .9rem;
        line-height: 1.65;
    }

    .home-card-button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: .92rem;
    }

    .home-list-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .home-news-button {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px 10px;
    }

    .home-news-meta {
        grid-column: 1 / -1;
    }

    .home-news-body {
        grid-column: 1 / -1;
    }

    .home-news-action {
        grid-column: 1 / -1;
        justify-self: end;
        align-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-event-link {
        transition: none;
    }

    .home-event-link:hover {
        transform: none;
    }

    .home-quick-link,
    .home-news-button,
    .home-news-modal-list-card {
        transition: none;
    }

    .home-feature-card__image img {
        transition: none;
    }

    .home-quick-link:hover,
    .home-news-button:hover,
    .home-news-modal-list-card:hover {
        transform: none;
    }

    .home-event-calendar-summary__item.is-highlighted,
    .home-event-item.is-highlighted {
        animation: none;
        border-left-color: var(--home-accent);
        background: rgba(79, 70, 229, .08);
        box-shadow: inset 0 0 0 2px rgba(79, 70, 229, .24);
    }
}
