/* 1588 reusable shell, data, form, forum, lottery, and administration components. */
.c1588-topbar {
    position: relative;
    z-index: 20;
    min-height: var(--1588-header-height);
    background: var(--1588-topbar-bg);
    border-bottom: var(--1588-border-width) solid var(--1588-topbar-border);
    color: var(--1588-text-inverse);
}

.c1588-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--1588-space-4);
    min-height: var(--1588-header-height);
    padding-inline: var(--1588-page-gutter);
}

.c1588-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--1588-space-2);
    min-height: 40px;
    color: var(--1588-text-inverse);
    font-family: var(--1588-font-heading);
    font-size: var(--1588-font-size-lg);
    font-weight: 700;
    white-space: nowrap;
}

.c1588-brand:hover {
    color: var(--1588-text-inverse);
    text-decoration: none;
}

.c1588-brand__mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--1588-radius-sm);
    background: var(--1588-color-brand-red);
    color: var(--1588-text-inverse);
    font-weight: 800;
}

.c1588-site-nav {
    min-width: 0;
}

.c1588-site-nav__list {
    display: flex;
    align-items: center;
    gap: var(--1588-space-1);
    padding: 0;
    margin: 0;
    list-style: none;
}

.c1588-site-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-inline: var(--1588-space-3);
    border-radius: var(--1588-radius-sm);
    color: var(--1588-nav-link-color);
    font-size: var(--1588-font-size-sm);
    white-space: nowrap;
}

.c1588-site-nav__link:hover,
.c1588-site-nav__link.is-active {
    background: var(--1588-nav-link-active-bg);
    color: var(--1588-text-inverse);
    text-decoration: none;
}

.c1588-header-actions {
    display: flex;
    align-items: center;
    gap: var(--1588-space-2);
}

.c1588-admin-layout {
    display: grid;
    min-height: calc(100vh - var(--1588-header-height));
    background: var(--1588-bg-page);
}

.c1588-admin-sidebar {
    background: var(--1588-admin-sidebar-bg);
    color: var(--1588-text-inverse);
}

.c1588-admin-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: var(--1588-space-1);
    padding: var(--1588-space-4) var(--1588-space-2);
    margin: 0;
    list-style: none;
}

.c1588-admin-sidebar__link {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-inline: var(--1588-space-3);
    border-radius: var(--1588-radius-sm);
    color: var(--1588-admin-sidebar-link);
    font-size: var(--1588-font-size-sm);
}

.c1588-admin-sidebar__link:hover,
.c1588-admin-sidebar__link.is-active {
    background: var(--1588-admin-sidebar-active);
    color: var(--1588-text-inverse);
    text-decoration: none;
}

.c1588-admin-main {
    min-width: 0;
    padding: var(--1588-page-gutter);
}

.c1588-card {
    overflow: hidden;
    background: var(--1588-surface);
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
    box-shadow: var(--1588-shadow-card);
}

.c1588-card__header,
.c1588-card__body,
.c1588-card__footer {
    padding: var(--1588-card-padding);
}

.c1588-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--1588-space-4);
    border-bottom: var(--1588-border-width) solid var(--1588-border);
}

.c1588-card__title {
    margin: 0;
    color: var(--1588-text-strong);
    font-family: var(--1588-font-heading);
    font-size: var(--1588-font-size-lg);
    line-height: var(--1588-line-height-tight);
}

.c1588-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--1588-space-3);
    border-top: var(--1588-border-width) solid var(--1588-border);
}

.c1588-table-wrap {
    overflow-x: auto;
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
    background: var(--1588-surface);
}

.c1588-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    color: var(--1588-text);
    font-size: var(--1588-font-size-sm);
}

.c1588-table th,
.c1588-table td {
    padding: var(--1588-space-3) var(--1588-space-4);
    border-bottom: var(--1588-border-width) solid var(--1588-border);
    text-align: left;
    vertical-align: middle;
}

.c1588-table th {
    background: var(--1588-table-header-bg);
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.c1588-table tbody tr:last-child td {
    border-bottom: 0;
}

.c1588-table tbody tr:hover {
    background: var(--1588-table-row-hover);
}

.c1588-table__number,
.c1588-table__numeric {
    font-family: var(--1588-font-mono);
    font-variant-numeric: tabular-nums;
}

.c1588-form {
    display: flex;
    flex-direction: column;
    gap: var(--1588-space-4);
}

.c1588-form--inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: var(--1588-space-3);
}

.c1588-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--1588-space-1);
    min-width: 0;
}

.c1588-form__label {
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-sm);
    font-weight: 600;
}

.c1588-form__control {
    width: 100%;
    min-height: var(--1588-control-height);
    padding: 0 var(--1588-space-3);
    border: var(--1588-border-width) solid var(--1588-border-strong);
    border-radius: var(--1588-radius-sm);
    background: var(--1588-surface);
}

.c1588-form__control:focus {
    border-color: var(--1588-info);
    box-shadow: 0 0 0 3px var(--1588-focus-ring);
    outline: 0;
}

.c1588-form__textarea {
    min-height: 112px;
    padding-block: var(--1588-space-2);
    resize: vertical;
}

.c1588-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--1588-space-2);
}

.c1588-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 var(--1588-space-4);
    border: var(--1588-border-width) solid transparent;
    border-radius: var(--1588-radius-sm);
    background: var(--1588-color-brand-blue);
    color: var(--1588-text-inverse);
    font-size: var(--1588-font-size-sm);
    font-weight: 700;
    line-height: 1;
}

.c1588-button:hover {
    background: var(--1588-color-brand-navy);
    color: var(--1588-text-inverse);
    text-decoration: none;
}

.c1588-button--primary {
    background: var(--1588-color-brand-red);
}

.c1588-button--primary:hover {
    background: var(--1588-color-brand-red-deep);
}

.c1588-button--secondary {
    border-color: var(--1588-border-strong);
    background: var(--1588-surface);
    color: var(--1588-text);
}

.c1588-button--secondary:hover {
    background: var(--1588-bg-subtle);
    color: var(--1588-text-strong);
}

.c1588-button--ghost {
    background: transparent;
    color: currentColor;
}

.c1588-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--1588-badge-height);
    padding-inline: var(--1588-space-2);
    border-radius: var(--1588-radius-pill);
    background: var(--1588-info-bg);
    color: var(--1588-info);
    font-size: var(--1588-font-size-xs);
    font-weight: 700;
    white-space: nowrap;
}

.c1588-status-badge.is-success,
.c1588-status--settled {
    background: var(--1588-success-bg);
    color: var(--1588-success);
}

.c1588-status-badge.is-warning,
.c1588-status--unsettled {
    background: var(--1588-warning-bg);
    color: var(--1588-warning);
}

.c1588-status-badge.is-danger {
    background: var(--1588-danger-bg);
    color: var(--1588-danger);
}

.c1588-status-badge.is-info {
    background: var(--1588-info-bg);
    color: var(--1588-info);
}

.c1588-empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: var(--1588-space-8) var(--1588-card-padding);
    color: var(--1588-text-muted);
    text-align: center;
}

.c1588-empty-state__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--1588-space-3);
    border-radius: 50%;
    background: var(--1588-color-gray-100);
    color: var(--1588-color-gray-400);
}

.c1588-empty-state__title {
    margin: 0 0 var(--1588-space-1);
    color: var(--1588-text-strong);
    font-size: var(--1588-font-size-lg);
}

.c1588-empty-state__description {
    max-width: 42ch;
    margin: 0;
}

.c1588-forum-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
    background: var(--1588-surface);
    list-style: none;
}

.c1588-forum-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: var(--1588-space-4);
    min-height: 48px;
    padding: var(--1588-space-3) var(--1588-space-4);
    border-bottom: var(--1588-border-width) solid var(--1588-border);
}

.c1588-forum-list__item:last-child {
    border-bottom: 0;
}

.c1588-forum-list__item:hover {
    background: var(--1588-bg-subtle);
}

.c1588-forum-list__title {
    min-width: 0;
    overflow: hidden;
    color: var(--1588-text-strong);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c1588-forum-list__meta {
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-xs);
    white-space: nowrap;
}

.c1588-forum-thread {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: var(--1588-space-6);
    padding: var(--1588-card-padding);
    background: var(--1588-surface);
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
}

.c1588-forum-thread__author {
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-sm);
}

.c1588-forum-thread__content {
    min-width: 0;
}

.c1588-forum-thread__content > :first-child {
    margin-top: 0;
}

.c1588-forum-tabs {
    display: flex;
    gap: var(--1588-space-1);
    overflow-x: auto;
    padding-bottom: var(--1588-space-1);
}

.c1588-forum-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding-inline: var(--1588-space-3);
    border-bottom: 2px solid transparent;
    color: var(--1588-text-muted);
    white-space: nowrap;
}

.c1588-forum-tabs__link:hover,
.c1588-forum-tabs__link.is-active {
    border-color: var(--1588-color-brand-red);
    color: var(--1588-color-brand-red);
    text-decoration: none;
}

.c1588-number-card {
    display: flex;
    flex-direction: column;
    gap: var(--1588-space-3);
    height: 100%;
    padding: var(--1588-space-4);
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
    background: var(--1588-surface);
}

.c1588-number-card__title {
    margin: 0;
    color: var(--1588-text-strong);
    font-size: var(--1588-font-size-md);
}

.c1588-lottery-panel {
    overflow: hidden;
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
    background: var(--1588-surface);
    box-shadow: var(--1588-shadow-card);
}

.c1588-lottery-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--1588-space-4);
    padding: var(--1588-space-4) var(--1588-card-padding);
    background: var(--1588-color-brand-navy);
    color: var(--1588-text-inverse);
}

.c1588-lottery-panel__body {
    padding: var(--1588-card-padding);
}

.c1588-lottery-tabs {
    display: flex;
    gap: var(--1588-space-2);
    overflow-x: auto;
    padding: var(--1588-space-2);
    background: var(--1588-bg-subtle);
}

.c1588-lottery-tabs__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-inline: var(--1588-space-4);
    border-radius: var(--1588-radius-sm);
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-sm);
    font-weight: 700;
    white-space: nowrap;
}

.c1588-lottery-tabs__link:hover,
.c1588-lottery-tabs__link.is-active {
    background: var(--1588-lottery-accent);
    color: var(--1588-text-inverse);
    text-decoration: none;
}

.c1588-number-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(40px, 1fr));
    gap: var(--1588-space-2);
}

.c1588-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 var(--1588-space-2);
    border: var(--1588-border-width) solid transparent;
    border-radius: 50%;
    background: var(--1588-color-gray-200);
    color: var(--1588-text-strong);
    font-family: var(--1588-font-mono);
    font-size: var(--1588-font-size-sm);
    font-weight: 700;
    line-height: 1;
}

.c1588-ball--red {
    background: var(--1588-color-ball-red);
    color: var(--1588-text-inverse);
}

.c1588-ball--blue {
    background: var(--1588-color-ball-blue);
    color: var(--1588-text-inverse);
}

.c1588-ball--green {
    background: var(--1588-color-ball-green);
    color: var(--1588-text-inverse);
}

.c1588-ball.is-selected {
    border-color: var(--1588-color-brand-navy-deep);
    box-shadow: 0 0 0 3px var(--1588-focus-ring);
    transform: translateY(-1px);
}

.c1588-ball.is-disabled {
    opacity: 0.42;
    filter: grayscale(0.4);
}

.c1588-draw-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--1588-space-3);
    padding: var(--1588-space-3) var(--1588-space-4);
    background: var(--1588-bg-subtle);
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-sm);
}

.c1588-bet-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--1588-space-3);
    padding: var(--1588-space-4) var(--1588-card-padding);
    border-top: var(--1588-border-width) solid var(--1588-border);
    background: var(--1588-surface);
}

.c1588-bet-summary__amount {
    color: var(--1588-color-brand-red);
    font-family: var(--1588-font-mono);
    font-weight: 700;
}

.c1588-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--1588-space-1);
}

.c1588-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding-inline: var(--1588-space-2);
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-sm);
    background: var(--1588-surface);
    color: var(--1588-text);
}

.c1588-pagination__link:hover,
.c1588-pagination__link.is-active {
    border-color: var(--1588-color-brand-blue);
    background: var(--1588-color-brand-blue);
    color: var(--1588-text-inverse);
    text-decoration: none;
}

.c1588-promo-card {
    overflow: hidden;
    border: var(--1588-border-width) solid var(--1588-border);
    border-radius: var(--1588-radius-card);
    background: var(--1588-surface);
    box-shadow: var(--1588-shadow-card);
}

.c1588-promo-card__media {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--1588-color-gray-200);
}

.c1588-promo-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c1588-promo-card__body {
    padding: var(--1588-space-4);
}

.c1588-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: var(--1588-space-6);
    background: var(--1588-modal-backdrop);
}

.c1588-modal__dialog {
    width: min(100%, 640px);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    border-radius: var(--1588-radius-card);
    background: var(--1588-surface);
    box-shadow: var(--1588-shadow-float);
}

.c1588-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: none;
    min-height: var(--1588-mobile-nav-height);
    align-items: stretch;
    justify-content: space-around;
    border-top: var(--1588-border-width) solid var(--1588-border);
    background: var(--1588-surface);
    box-shadow: var(--1588-shadow-mobile-nav);
}

.c1588-mobile-nav__link {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-xs);
}

.c1588-mobile-nav__link:hover,
.c1588-mobile-nav__link.is-active {
    color: var(--1588-color-brand-red);
    text-decoration: none;
}

@media (max-width: 767px) {
    .c1588-topbar__inner {
        padding-inline: var(--1588-page-gutter);
    }

    .c1588-site-nav {
        display: none;
    }

    .c1588-site-nav__list {
        width: max-content;
    }

    .c1588-header-actions {
        display: none;
    }

    .c1588-admin-layout {
        display: block;
    }

    .c1588-admin-sidebar {
        display: none;
    }

    .c1588-admin-main {
        padding: var(--1588-page-gutter);
        padding-bottom: calc(var(--1588-mobile-nav-height) + var(--1588-space-6));
    }

    .c1588-card__header,
    .c1588-card__footer,
    .c1588-bet-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .c1588-form--inline {
        grid-template-columns: 1fr;
    }

    .c1588-form__control,
    .c1588-form__textarea,
    .c1588-form__select {
        min-width: 0;
        max-width: 100%;
    }

    .c1588-forum-list__item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: var(--1588-space-2);
        min-height: 56px;
    }

    .c1588-forum-list__meta:last-child {
        display: none;
    }

    .c1588-forum-thread {
        grid-template-columns: 1fr;
        gap: var(--1588-space-3);
    }

    .c1588-number-grid {
        grid-template-columns: repeat(5, minmax(40px, 1fr));
    }

    .c1588-ball {
        width: 100%;
    }

    .c1588-mobile-nav {
        display: flex;
    }
}

@media (min-width: 992px) {
    .c1588-admin-layout {
        grid-template-columns: var(--1588-sidebar-width) minmax(0, 1fr);
    }

    .c1588-form--inline .c1588-form__actions {
        justify-content: flex-end;
    }

    .c1588-mobile-nav {
        display: none;
    }
}

/* 49-library inspired public portal: original 1588 branding and same-origin content only. */
.c1588-topbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: #eef1f3;
    color: #20252b;
    backdrop-filter: blur(12px);
}

.c1588-topbar__inner {
    min-height: 62px;
}

.c1588-brand {
    color: #20252b;
    font-size: 18px;
}

.c1588-brand:hover {
    color: #20252b;
}

.c1588-brand__mark {
    width: 36px;
    height: 28px;
    border-radius: 4px;
    background: #06bf70;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}

.c1588-header-actions--icons {
    gap: 18px;
}

.c1588-header-actions--icons > a {
    display: grid;
    place-items: center;
    color: #222;
    font-size: 20px;
    line-height: 1;
}

.c1588-header-actions--icons small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 400;
}

.c1588-portal {
    padding: 0 0 88px;
    overflow-x: hidden;
    background: #fff;
}

.c1588-portal * {
    min-width: 0;
}

.c1588-portal .c1588-container,
body[data-site="1588"] .c1588-topbar__inner {
    max-width: 720px;
}

.c1588-portal__stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c1588-portal-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    margin-top: 10px;
    padding: 10px 15px;
    overflow: hidden;
    border: 1px solid #aae7cb;
    border-radius: 12px;
    background: linear-gradient(135deg, #effff7, #dff8ea);
    color: #167a4d;
}

.c1588-portal-notice__icon {
    font-size: 22px;
}

.c1588-portal-notice__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.45;
}

.c1588-portal-notice__text strong {
    font-size: 15px;
}

.c1588-portal-notice__text span {
    overflow: hidden;
    color: #4d826a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c1588-portal-hero {
    position: relative;
    min-height: 170px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(125deg, #05b96e 0%, #12cc7d 56%, #75e9b3 100%);
    box-shadow: none;
    color: #fff;
}

.c1588-portal-hero::before,
.c1588-portal-hero::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    content: "";
}

.c1588-portal-hero::before {
    top: -55px;
    right: 75px;
    width: 180px;
    height: 180px;
}

.c1588-portal-hero::after {
    right: -35px;
    bottom: -75px;
    width: 210px;
    height: 210px;
}

.c1588-portal-hero__copy {
    position: relative;
    z-index: 1;
    padding: 24px 30px;
}

.c1588-portal-hero__eyebrow {
    display: inline-flex;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    font-size: 12px;
}

.c1588-portal-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(34px, 8vw, 56px);
    line-height: 1;
    letter-spacing: -2px;
    text-shadow: 0 3px 0 rgba(0,0,0,.08);
}

.c1588-portal-hero p {
    margin: 12px 0 0;
    font-size: 15px;
}

.c1588-portal-hero__mark {
    position: absolute;
    z-index: 1;
    right: 28px;
    bottom: 20px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border: 7px solid rgba(255,255,255,.88);
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    transform: rotate(-9deg);
}

.c1588-portal-draw {
    border-color: #13c779;
    border-radius: 10px;
    box-shadow: none;
}

.c1588-portal-draw__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f6f7f8;
}

.c1588-portal-draw__tabs button {
    min-height: 54px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #80858b;
    font-weight: 700;
}

.c1588-portal-draw__tabs button.is-active {
    background: #06c273;
    color: #fff;
}

.c1588-portal-draw__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 15px 5px;
    font-size: 15px;
    line-height: 1.2;
}

.c1588-portal-draw__heading strong {
    color: #303236;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
}

.c1588-portal-draw__heading em {
    color: #08b76b;
    font-style: normal;
}

.c1588-portal-draw__heading b {
    color: #f13f47;
}

.c1588-portal-draw__heading i {
    color: inherit;
    font-style: normal;
}

.c1588-portal-draw__heading a {
    color: #08b76b;
}

.c1588-portal-balls {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 18px minmax(0, 1fr);
    gap: 3px;
    align-items: start;
    padding: 11px 12px 9px;
}

.c1588-portal-ball {
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 4px;
}

.c1588-portal-ball b {
    --c1588-ball-tilt: -3deg;
    display: grid;
    position: relative;
    width: 50px;
    max-width: 100%;
    aspect-ratio: 1;
    place-items: center;
    border: 4px solid currentColor;
    border-radius: 50%;
    background: #fff;
    color: #2d80d5;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    transform: rotate(var(--c1588-ball-tilt));
    transform-origin: center;
}

.c1588-portal-ball b::after {
    position: absolute;
    right: -2px;
    bottom: 1px;
    width: 12px;
    height: 5px;
    border: 3px solid currentColor;
    border-left-color: transparent;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: rotate(-34deg);
}

.c1588-portal-ball:nth-of-type(2) b { --c1588-ball-tilt: 2deg; }
.c1588-portal-ball:nth-of-type(3) b { --c1588-ball-tilt: -2deg; }
.c1588-portal-ball:nth-of-type(4) b { --c1588-ball-tilt: 3deg; }
.c1588-portal-ball:nth-of-type(5) b { --c1588-ball-tilt: -4deg; }
.c1588-portal-ball:nth-of-type(6) b { --c1588-ball-tilt: 2deg; }
.c1588-portal-ball:nth-of-type(8) b { --c1588-ball-tilt: -2deg; }

.c1588-portal-ball.is-red b { color: #ec4e55; }
.c1588-portal-ball.is-green b { color: #16bb6f; }
.c1588-portal-ball small { color: #303236; font-size: 13px; white-space: nowrap; }
.c1588-portal-plus { align-self: center; padding-bottom: 21px; color: #777; font-size: 22px; font-weight: 700; text-align: center; }
.c1588-portal-ball.is-special { position: relative; }

.c1588-portal-draw__meta {
    margin: 0;
    padding: 3px 14px 12px;
    color: #e06b34;
    font-size: 12px;
    text-align: center;
}

.c1588-portal-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    padding: 2px 4px 12px;
    border-bottom: 7px solid #f1f2f3;
}

.c1588-portal-links a {
    display: grid;
    min-height: 40px;
    place-items: center;
    border-radius: 4px;
    background: #f6f6f6;
    color: #555;
    font-size: 13px;
}

.c1588-portal-tools {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 8px;
    padding: 10px 4px 16px;
    border-bottom: 7px solid #f1f2f3;
}

.c1588-portal-tools a,
.c1588-portal-years a {
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #404348;
    font-size: 12px;
    text-align: center;
}

.c1588-portal-tools i {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 7px;
    place-items: center;
    border-radius: 50%;
    background: #3bd9a4;
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
}

.c1588-portal-tools img {
    display: block;
    width: 52px;
    height: 52px;
    margin-bottom: 7px;
    object-fit: contain;
}

.c1588-portal-tools .is-blue { background:#3798e4; }.c1588-portal-tools .is-orange { background:#f09a25; }.c1588-portal-tools .is-green { background:#43d56d; }.c1588-portal-tools .is-cyan { background:#39bde0; }.c1588-portal-tools .is-purple { background:#d653ec; }.c1588-portal-tools .is-red { background:#eb5b62; }.c1588-portal-tools .is-indigo { background:#5b6bea; }.c1588-portal-tools .is-teal { background:#37bfc4; }.c1588-portal-tools .is-coral { background:#f47d72; }

.c1588-portal-years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 4px 12px;
}

.c1588-portal-years i {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    place-items: center;
    border-radius: 50%;
    background: #19c983;
    color: #fff;
    font-size: 24px;
    font-style: normal;
}

.c1588-portal-years i.is-muted { background: #ddd; color: #f5f5f5; }
.c1588-portal-forum { border-radius: 0; box-shadow: none; }

.c1588-mobile-nav__link {
    flex-direction: column;
    gap: 2px;
    font-size: 20px;
}

.c1588-mobile-nav__link small { font-size: 10px; }
.c1588-mobile-nav__link--featured span { display:grid; width:42px; height:42px; margin-top:-18px; place-items:center; border:5px solid #fff; border-radius:50%; background:#09c375; color:#fff; }

@media (max-width: 767px) {
    .c1588-topbar__inner { padding-inline: 12px; }
    .c1588-brand { margin-left: auto; }
    .c1588-brand__mark { position: absolute; left: 12px; }
    .c1588-header-actions--icons { display: flex; margin-left: auto; gap: 12px; }
    .c1588-header-actions--icons > a:nth-child(2) { display: none; }
    .c1588-header-actions--icons > a { font-size: 18px; }
    .c1588-portal .c1588-container { width: min(100% - 16px, 720px); }
    .c1588-portal-notice { margin-top: 8px; }
    .c1588-portal-hero { min-height: 145px; }
    .c1588-portal-hero__copy { padding: 20px; }
    .c1588-portal-hero__mark { right: 18px; width: 60px; height: 60px; font-size: 26px; }
    .c1588-portal-draw__heading { flex-wrap: wrap; }
    .c1588-portal-ball b { width: 42px; border-width: 3px; font-size: 17px; }
    .c1588-portal-balls { gap: 4px; padding-inline: 8px; }
    .c1588-portal-links { gap: 7px; }
    .c1588-portal-links a { font-size: 12px; }
    .c1588-portal-tools { gap: 14px 4px; }
    .c1588-portal-tools i,
    .c1588-portal-tools img { width: 46px; height: 46px; font-size: 21px; }
    .c1588-portal-years i { width: 43px; height: 43px; }
    .c1588-mobile-nav__link { min-width: 0; }
    body[data-site="1588"] > footer { display: none; }
}

@media (min-width: 768px) {
    .c1588-portal { padding-top: 12px; }
}

/* 1588 portal visual pass: a compact, 480px-first canvas using local data only. */
:root {
    --1588-portal-width: 480px;
    --1588-portal-primary: #07c160;
    --1588-portal-primary-dark: #06ad56;
    --1588-portal-text: #333;
    --1588-portal-muted: #999;
    --1588-portal-page: #e8e8e8;
    --1588-portal-line: #f0f0f0;
}

body[data-site="1588"] {
    background: #e8e8e8;
}

body[data-site="1588"] > .c1588-topbar {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: var(--1588-portal-width);
    min-height: 46px;
    margin-inline: auto;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--1588-portal-line);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .03);
    color: var(--1588-portal-text);
    backdrop-filter: blur(12px);
}

body[data-site="1588"] > .c1588-topbar .c1588-topbar__inner {
    position: relative;
    width: 100%;
    max-width: var(--1588-portal-width);
    min-height: 46px;
    padding: 0 8px;
    gap: 0;
}

body[data-site="1588"] .c1588-brand {
    position: relative;
    z-index: 1;
    min-height: 40px;
    margin-left: 0;
    width: 94px;
    gap: 0;
    color: var(--1588-portal-text);
    font-size: 11px;
    font-weight: 700;
}

body[data-site="1588"] .c1588-brand:hover {
    color: var(--1588-portal-text);
}

body[data-site="1588"] .c1588-brand__name {
    display: none;
}

body[data-site="1588"] .c1588-brand__logo {
    display: block;
    width: 92px;
    height: 34px;
    object-fit: contain;
}

body[data-site="1588"] .c1588-brand__mark {
    position: static;
    width: 38px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, #12b34a 0%, #078f3b 100%);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
    color: #fff;
    font-size: 15px;
}

body[data-site="1588"] .c1588-topbar__title {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    min-height: 46px;
    place-items: center;
    color: var(--1588-portal-text);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    transform: translateX(-50%);
}

body[data-site="1588"] .c1588-site-nav {
    display: none;
}

body[data-site="1588"] .c1588-header-actions--icons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1px;
    margin-left: auto;
}

body[data-site="1588"] .c1588-header-actions--icons > a,
body[data-site="1588"] .c1588-header-actions--icons > button {
    display: flex;
    width: 39px;
    min-height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
}

body[data-site="1588"] .c1588-header-actions--icons > a:hover,
body[data-site="1588"] .c1588-header-actions--icons > button:hover {
    color: var(--1588-portal-primary-dark);
    text-decoration: none;
}

body[data-site="1588"] .c1588-header-actions--icons svg {
    width: 20px;
    height: 20px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body[data-site="1588"] .c1588-header-actions--icons svg circle {
    fill: none;
}

body[data-site="1588"] .c1588-header-actions--icons small {
    display: block;
    font-size: 9px;
    line-height: 1.1;
}

body[data-site="1588"] .c1588-share-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

body[data-site="1588"] .c1588-portal {
    width: 100%;
    max-width: var(--1588-portal-width);
    min-height: calc(100vh - 46px);
    margin-inline: auto;
    padding: 0 0 76px;
    overflow-x: hidden;
    background: #fff;
    box-shadow: 0 0 24px rgba(0, 0, 0, .08);
}

body[data-site="1588"] .c1588-portal .c1588-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

body[data-site="1588"] .c1588-portal__stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body[data-site="1588"] .c1588-portal-hero {
    position: relative;
    min-height: 118px;
    margin: 8px 8px 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #78a0b5;
    box-shadow: none;
    color: #8b3a0c;
}

body[data-site="1588"] .c1588-portal-hero::before,
body[data-site="1588"] .c1588-portal-hero::after {
    position: absolute;
    content: "";
}

body[data-site="1588"] .c1588-portal-hero::before {
    inset: 14px 14px 14px 28px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: linear-gradient(90deg, #0b648d 0%, #176f94 48%, #5794ae 100%);
}

body[data-site="1588"] .c1588-portal-hero::after {
    inset: 0 auto 0 14px;
    width: 14px;
    height: auto;
    border-radius: 0;
    background: rgba(255, 255, 255, .22);
}

body[data-site="1588"] .c1588-portal-hero__copy {
    position: relative;
    z-index: 1;
    padding: 17px 20px;
}

body[data-site="1588"] .c1588-portal-hero__eyebrow {
    display: inline-block;
    padding: 2px 8px;
    border: 0;
    border-radius: 3px;
    background: rgba(255, 255, 255, .85);
    color: #d04b08;
    font-size: 12px;
    font-weight: 700;
}

body[data-site="1588"] .c1588-portal-hero h1 {
    margin: 4px 0 0;
    color: #c84508;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 1px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}

body[data-site="1588"] .c1588-portal-hero p {
    margin: 5px 0 0;
    color: #7d300c;
    font-size: 13px;
    font-weight: 700;
}

body[data-site="1588"] .c1588-portal-hero__mark {
    right: 16px;
    bottom: 15px;
    display: flex;
    width: 76px;
    height: 76px;
    flex-direction: column;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(0, 92, 127, .72);
    color: #e95109;
    line-height: 1;
    transform: rotate(-9deg);
}

body[data-site="1588"] .c1588-portal-hero__mark strong {
    font-size: 29px;
    font-weight: 900;
}

body[data-site="1588"] .c1588-portal-hero__mark small {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
}

body[data-site="1588"] .c1588-portal-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0 8px;
    padding: 6px 2px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--1588-portal-line);
    border-radius: 0;
    background: #fff;
    color: #555;
}

body[data-site="1588"] .c1588-portal-notice__icon {
    flex: 0 0 auto;
    color: #f28a19;
    font-size: 16px;
}

body[data-site="1588"] .c1588-portal-notice__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.35;
}

body[data-site="1588"] .c1588-portal-notice__text strong {
    overflow: hidden;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-notice__text span {
    overflow: hidden;
    color: #999;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-draw {
    margin: 0 8px;
    overflow: hidden;
    border: 1px solid var(--1588-portal-primary);
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: none;
}

body[data-site="1588"] .c1588-portal-draw__tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 50px;
    background: #f7f7f7;
}

body[data-site="1588"] .c1588-portal-draw__tabs button {
    min-height: 50px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 14px;
    font-weight: 700;
}

body[data-site="1588"] .c1588-portal-draw__tabs button.is-active {
    background: var(--1588-portal-primary);
    color: #fff;
}

body[data-site="1588"] .c1588-portal-draw__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 38px;
    padding: 8px 10px 2px;
    color: #666;
    font-size: 12px;
}

body[data-site="1588"] .c1588-portal-draw__heading strong {
    color: #333;
    font-size: 15px;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-draw__heading span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-draw__heading b {
    color: #f13f47;
    font-weight: 500;
}

body[data-site="1588"] .c1588-portal-draw__heading a {
    flex: 0 0 auto;
    color: var(--1588-portal-primary-dark);
    font-size: 12px;
}

body[data-site="1588"] .c1588-portal-balls {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 9px 9px 5px;
}

body[data-site="1588"] .c1588-portal-ball {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    place-items: center;
    gap: 3px;
}

body[data-site="1588"] .c1588-portal-ball b {
    position: relative;
    display: grid;
    width: min(40px, 100%);
    aspect-ratio: 1;
    place-items: center;
    border: 3px solid currentColor;
    border-radius: 50%;
    overflow: visible;
    background: radial-gradient(circle at 38% 32%, #fff 0 58%, #fafafa 72%, #fff 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12), inset -2px -2px 0 rgba(0, 0, 0, .035);
    color: #2b6de5;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

body[data-site="1588"] .c1588-portal-ball b::after {
    position: absolute;
    right: -2px;
    bottom: 2px;
    width: 12px;
    height: 6px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: rotate(-43deg);
}

body[data-site="1588"] .c1588-portal-ball.is-red b { color: #ee0a24; }
body[data-site="1588"] .c1588-portal-ball.is-green b { color: #07c160; }
body[data-site="1588"] .c1588-portal-ball small {
    overflow: hidden;
    color: #777;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body[data-site="1588"] .c1588-portal-ball.is-special { margin-left: 5px; }
body[data-site="1588"] .c1588-portal-ball.is-special::before {
    left: -8px;
    top: 11px;
    color: #888;
    font-size: 17px;
}

body[data-site="1588"] .c1588-portal-draw__meta {
    margin: 0;
    padding: 2px 10px 10px;
    color: #e06b34;
    font-size: 11px;
    text-align: center;
}

body[data-site="1588"] .c1588-portal-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px 8px 12px;
    border-bottom: 7px solid #f1f2f3;
    background: #fff;
}

body[data-site="1588"] .c1588-portal-links a {
    display: grid;
    min-height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    color: #555;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-links a:hover {
    background: #eafaf2;
    color: var(--1588-portal-primary-dark);
    text-decoration: none;
}

body[data-site="1588"] .c1588-portal-tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 5px;
    padding: 11px 8px 16px;
    border-bottom: 7px solid #f1f2f3;
    background: #fff;
}

body[data-site="1588"] .c1588-portal-tools a,
body[data-site="1588"] .c1588-portal-years a {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    color: #404348;
    font-size: 11px;
    text-align: center;
}

body[data-site="1588"] .c1588-portal-tools a:hover,
body[data-site="1588"] .c1588-portal-years a:hover {
    color: var(--1588-portal-primary-dark);
    text-decoration: none;
}

body[data-site="1588"] .c1588-portal-tools i,
body[data-site="1588"] .c1588-portal-tools img {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    place-items: center;
    border-radius: 50%;
    object-fit: contain;
}

body[data-site="1588"] .c1588-portal-tools i {
    background: #3bd9a4;
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
}

body[data-site="1588"] .c1588-portal-tools .is-cyan { background: #39bde0; }
body[data-site="1588"] .c1588-portal-tools .is-purple { background: #d653ec; }

body[data-site="1588"] .c1588-portal-years {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 8px 13px;
    border-bottom: 7px solid #f1f2f3;
    background: #fff;
}

body[data-site="1588"] .c1588-portal-years i {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    place-items: center;
    border-radius: 50%;
    background: var(--1588-portal-primary);
    color: #fff;
    font-size: 24px;
    font-style: normal;
}

body[data-site="1588"] .c1588-portal-years i.is-muted {
    background: #ddd;
    color: #f5f5f5;
}

body[data-site="1588"] .c1588-portal-gallery {
    padding: 12px 8px 16px;
    border-bottom: 7px solid #f1f2f3;
    background: #fff;
}

body[data-site="1588"] .c1588-portal-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

body[data-site="1588"] .c1588-portal-gallery__header h2 {
    margin: 2px 0 0;
    color: #333;
    font-size: 17px;
    line-height: 1.2;
}

body[data-site="1588"] .c1588-portal-gallery__header a {
    color: var(--1588-portal-primary-dark);
    font-size: 12px;
}

body[data-site="1588"] .c1588-portal-gallery__eyebrow {
    color: var(--1588-portal-primary-dark);
    font-size: 10px;
}

body[data-site="1588"] .c1588-portal-gallery__series {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 9px;
    scrollbar-width: none;
}

body[data-site="1588"] .c1588-portal-gallery__series::-webkit-scrollbar { display: none; }

body[data-site="1588"] .c1588-portal-gallery__series a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #777;
    font-size: 11px;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-gallery__series a.is-active,
body[data-site="1588"] .c1588-portal-gallery__series a:hover {
    background: var(--1588-portal-primary);
    color: #fff;
    text-decoration: none;
}

body[data-site="1588"] .c1588-portal-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body[data-site="1588"] .c1588-portal-gallery__card {
    overflow: hidden;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .06);
}

body[data-site="1588"] .c1588-portal-gallery__card > a {
    display: block;
    color: inherit;
}

body[data-site="1588"] .c1588-portal-gallery__card > a:hover {
    text-decoration: none;
}

body[data-site="1588"] .c1588-portal-gallery__thumb {
    position: relative;
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f4e5c4, #d9b477);
    color: rgba(134, 78, 26, .82);
}

body[data-site="1588"] .c1588-portal-gallery__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-site="1588"] .c1588-portal-gallery__thumb::after {
    position: absolute;
    right: -24px;
    bottom: -32px;
    width: 108px;
    height: 108px;
    border: 13px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    content: "";
}

body[data-site="1588"] .c1588-portal-gallery__thumb span {
    position: relative;
    z-index: 1;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1px;
}

body[data-site="1588"] .c1588-portal-gallery__thumb b {
    position: absolute;
    right: 7px;
    bottom: 5px;
    z-index: 1;
    color: rgba(255, 255, 255, .85);
    font-size: 10px;
    font-weight: 500;
}

body[data-site="1588"] .c1588-portal-gallery__card-copy {
    display: flex;
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 8px;
}

body[data-site="1588"] .c1588-portal-gallery__card-copy strong {
    overflow: hidden;
    color: #444;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-site="1588"] .c1588-portal-gallery__card-copy time {
    color: #aaa;
    font-size: 10px;
}

body[data-site="1588"] .c1588-portal-gallery__empty {
    display: grid;
    grid-column: 1 / -1;
    min-height: 128px;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #999;
    text-align: center;
}

body[data-site="1588"] .c1588-portal-gallery__empty[data-portal-gallery-empty][hidden] { display: none; }
body[data-site="1588"] .c1588-portal-gallery__empty span { color: #c8c8c8; font-size: 32px; }
body[data-site="1588"] .c1588-portal-gallery__empty strong { color: #777; font-size: 13px; font-weight: 500; }
body[data-site="1588"] .c1588-portal-gallery__empty small { font-size: 11px; }

body[data-site="1588"] .c1588-portal-forum {
    margin: 0 8px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .04);
}

body[data-site="1588"] .c1588-portal-forum .c1588-card__header {
    min-height: 44px;
    padding: 9px 10px;
    border-bottom: 1px solid #f0f0f0;
}

body[data-site="1588"] .c1588-portal-forum .c1588-card__title { font-size: 15px; }
body[data-site="1588"] .c1588-portal-forum .c1588-card__header a { color: var(--1588-portal-primary-dark); font-size: 12px; }
body[data-site="1588"] .c1588-portal-forum .c1588-forum-list { border: 0; border-radius: 0; }
body[data-site="1588"] .c1588-portal-forum .c1588-forum-list__item { min-height: 43px; padding: 8px 10px; gap: 8px; }
body[data-site="1588"] .c1588-portal-forum .c1588-forum-list__title { color: #555; font-size: 12px; font-weight: 500; }
body[data-site="1588"] .c1588-portal-forum .c1588-forum-list__meta { font-size: 10px; }
body[data-site="1588"] .c1588-portal-forum .c1588-status-badge { min-height: 20px; font-size: 10px; }

body[data-site="1588"] .c1588-mobile-nav {
    left: 50%;
    right: auto;
    width: min(100%, var(--1588-portal-width));
    min-height: 50px;
    transform: translateX(-50%);
    border-top-color: #eee;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}

body[data-site="1588"] .c1588-mobile-nav__link {
    gap: 1px;
    color: #999;
    font-size: 19px;
}

body[data-site="1588"] .c1588-mobile-nav__link small {
    font-size: 10px;
}

body[data-site="1588"] .c1588-mobile-nav__link:hover,
body[data-site="1588"] .c1588-mobile-nav__link.is-active {
    color: var(--1588-portal-primary);
}

body[data-site="1588"] .c1588-mobile-nav__link--featured span {
    width: 42px;
    height: 42px;
    margin-top: -18px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--1588-portal-primary);
    color: #fff;
}

body[data-site="1588"] > main.c1588-portal + footer.c1588-card { display: none; }

@media (max-width: 360px) {
    body[data-site="1588"] .c1588-portal-hero__mark { right: 10px; width: 66px; height: 66px; }
    body[data-site="1588"] .c1588-portal-hero__mark strong { font-size: 25px; }
    body[data-site="1588"] .c1588-portal-balls { gap: 2px; padding-inline: 5px; }
    body[data-site="1588"] .c1588-portal-ball b { border-width: 2px; font-size: 15px; }
    body[data-site="1588"] .c1588-portal-ball small { font-size: 9px; }
    body[data-site="1588"] .c1588-portal-tools { gap: 14px 2px; padding-inline: 4px; }
    body[data-site="1588"] .c1588-portal-tools i,
    body[data-site="1588"] .c1588-portal-tools img { width: 46px; height: 46px; }
    body[data-site="1588"] .c1588-portal-years { gap: 2px; padding-inline: 4px; }
    body[data-site="1588"] .c1588-portal-years i { width: 43px; height: 43px; }
}

@media (min-width: 768px) {
    body[data-site="1588"] .c1588-mobile-nav { display: none; }
    body[data-site="1588"] .c1588-portal { margin-bottom: 24px; }
}

/* Reference lottery-balls.css: colored shell, white inner circle, and lower-right highlight. */
:root {
    --1588-lottery-ball-blue: #3399ff;
    --1588-lottery-ball-green: #13cb46;
    --1588-lottery-ball-red: #ff3333;
    --1588-lottery-ball-ink: #666;
}

.c1588-lottery-ball-face {
    --c1588-lottery-ball-size: 28px;
    --c1588-lottery-ball-color: var(--1588-lottery-ball-blue);
    position: relative;
    display: inline-block;
    flex: none;
    width: var(--c1588-lottery-ball-size);
    min-width: var(--c1588-lottery-ball-size);
    height: var(--c1588-lottery-ball-size);
    min-height: var(--c1588-lottery-ball-size);
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--c1588-lottery-ball-color);
    color: var(--1588-lottery-ball-ink);
    font: 700 calc(var(--c1588-lottery-ball-size) * .505) / var(--c1588-lottery-ball-size) Arial, "Liberation Sans", Helvetica, sans-serif;
    text-align: center;
    text-indent: -1px;
    user-select: none;
    vertical-align: middle;
}

.c1588-lottery-ball-face::before {
    position: absolute;
    left: 6.19%;
    top: 6.19%;
    width: 78.57%;
    height: 78.57%;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.c1588-lottery-ball-face::after {
    position: absolute;
    left: 69.52%;
    top: 71.43%;
    width: 23.43%;
    height: 10.71%;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: rotate(-49.75deg);
}

.c1588-lottery-ball-face > span {
    position: relative;
    z-index: 1;
    display: block;
    line-height: inherit;
    transform: translate(-1px, 0);
}

.c1588-lottery-ball-face.c1588-ball--blue,
body[data-site="1588"] .c1588-portal-ball.is-blue b.c1588-lottery-ball-face {
    --c1588-lottery-ball-color: var(--1588-lottery-ball-blue);
}

.c1588-lottery-ball-face.c1588-ball--green,
body[data-site="1588"] .c1588-portal-ball.is-green b.c1588-lottery-ball-face {
    --c1588-lottery-ball-color: var(--1588-lottery-ball-green);
}

.c1588-lottery-ball-face.c1588-ball--red,
body[data-site="1588"] .c1588-portal-ball.is-red b.c1588-lottery-ball-face {
    --c1588-lottery-ball-color: var(--1588-lottery-ball-red);
}

.c1588-secondary-page .c1588-draw-balls .c1588-lottery-ball-face {
    --c1588-lottery-ball-size: 28px;
}

.c1588-secondary-page .c1588-draw-balls .c1588-ball.c1588-lottery-ball-face {
    border: 0;
    font-size: calc(var(--c1588-lottery-ball-size) * .505);
}

.c1588-secondary-page .c1588-draw-balls .c1588-lottery-ball-face.c1588-ball--pending {
    border: 1px dashed #cfd6da;
    background: #f5f7f8;
    color: #a3aaae;
}

.c1588-secondary-page .c1588-draw-balls .c1588-lottery-ball-face.c1588-ball--pending::before,
.c1588-secondary-page .c1588-draw-balls .c1588-lottery-ball-face.c1588-ball--pending::after {
    display: none;
}

body[data-site="1588"] .c1588-portal-ball b.c1588-lottery-ball-face {
    --c1588-lottery-ball-size: clamp(28px, 8.333vw, 40px);
    display: inline-block;
    width: var(--c1588-lottery-ball-size);
    max-width: none;
    height: var(--c1588-lottery-ball-size);
    box-sizing: border-box;
    border: 0;
    border-radius: 50%;
    background: var(--c1588-lottery-ball-color);
    box-shadow: none;
    color: var(--1588-lottery-ball-ink);
    font-size: calc(var(--c1588-lottery-ball-size) * .505);
    line-height: var(--c1588-lottery-ball-size);
    text-align: center;
    transform: none;
}

body[data-site="1588"] .c1588-lottery-plus {
    --c1588-lottery-plus-size: clamp(6px, 1.75vw, 8.4px);
    position: relative;
    flex: 0 0 var(--c1588-lottery-plus-size);
    width: var(--c1588-lottery-plus-size);
    height: var(--c1588-lottery-plus-size);
    margin: calc(var(--c1588-lottery-plus-size) * 2.62) calc(var(--c1588-lottery-plus-size) * .45) 0;
    padding: 0;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

.c1588-lottery-plus::before,
.c1588-lottery-plus::after {
    position: absolute;
    background: #999;
    content: "";
}

.c1588-lottery-plus::before {
    left: 0;
    top: 42%;
    width: 100%;
    height: 16%;
}

.c1588-lottery-plus::after {
    left: 42%;
    top: 0;
    width: 16%;
    height: 100%;
}

/* Secondary public/member pages: the same 480px mobile canvas without changing data flows. */
:root {
    --1588-secondary-width: 480px;
    --1588-secondary-primary: #07c160;
    --1588-secondary-primary-dark: #06ad56;
    --1588-secondary-page: #e8e8e8;
    --1588-secondary-line: #edf0f2;
}

body[data-site="1588"],
body[data-view^="member-"] {
    background: var(--1588-secondary-page);
}

body[data-site="1588"] > footer.c1588-card {
    width: min(100%, var(--1588-secondary-width));
    max-width: var(--1588-secondary-width);
    margin-inline: auto;
    border-radius: 0;
}

body[data-site="1588"] > footer.c1588-site-footer {
    margin-top: 18px;
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-xs);
    text-align: center;
}

body[data-site="1588"] > footer.c1588-site-footer .c1588-card__body {
    display: block;
    padding: 14px 16px;
}

.c1588-draw-detail__meta,
.c1588-draw-detail__time {
    color: var(--1588-text-muted);
    font-size: var(--1588-font-size-sm);
}

.c1588-draw-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 18px;
}

.c1588-draw-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
}

.c1588-draw-ball-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.c1588-draw-ball__zodiac {
    color: var(--1588-text-muted);
    font-size: 10px;
    line-height: 1;
}

.c1588-draw-picture {
    margin: 18px 0;
    text-align: center;
}

.c1588-draw-picture img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}

.c1588-draw-empty {
    color: var(--1588-text-muted);
}

body:has(main.c1588-secondary-page) .c1588-topbar__inner {
    width: min(100% - 16px, var(--1588-secondary-width));
    max-width: var(--1588-secondary-width);
    padding-inline: 0;
}

.c1588-secondary-page {
    width: min(100%, var(--1588-secondary-width));
    max-width: var(--1588-secondary-width);
    min-height: calc(100vh - 46px);
    margin-inline: auto;
    padding: 12px 0 76px;
    overflow-x: hidden;
    background: #fff;
    box-shadow: 0 0 24px rgba(35, 47, 56, .08);
}

.c1588-secondary-page > .c1588-container {
    width: 100%;
    max-width: none;
}

.c1588-secondary-page .c1588-stack {
    gap: 10px;
}

.c1588-secondary-page > .c1588-container > .c1588-card,
.c1588-secondary-page > .c1588-container > .c1588-grid,
.c1588-secondary-page > .c1588-container > .c1588-lottery-panel,
.c1588-secondary-page > .c1588-container > .c1588-empty-state {
    margin-inline: 8px;
}

.c1588-secondary-page .c1588-card,
.c1588-secondary-page .c1588-lottery-panel {
    border-color: var(--1588-secondary-line);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(25, 42, 52, .06);
}

.c1588-secondary-page .c1588-secondary-hero {
    background: #fff;
}

.c1588-secondary-page .c1588-card__header,
.c1588-secondary-page .c1588-card__body,
.c1588-secondary-page .c1588-card__footer {
    padding: 12px;
}

.c1588-secondary-page .c1588-card__header {
    min-height: 48px;
    gap: 8px;
    border-bottom-color: var(--1588-secondary-line);
}

.c1588-secondary-page .c1588-card__footer {
    gap: 8px;
    border-top-color: var(--1588-secondary-line);
    color: #999;
    font-size: 11px;
}

.c1588-secondary-page .c1588-card__title {
    color: #333;
    font-size: 17px;
}

.c1588-secondary-page p {
    color: #888;
    font-size: 12px;
}

.c1588-secondary-page .c1588-secondary-hero .c1588-card__body > p:first-child,
.c1588-secondary-page .c1588-secondary-hero .c1588-card__header p:first-child {
    margin-top: 0;
}

.c1588-secondary-page .c1588-status-badge {
    min-height: 22px;
    padding-inline: 8px;
    border-radius: 999px;
    font-size: 10px;
}

.c1588-secondary-page .c1588-button {
    min-height: 36px;
    border-radius: 6px;
    font-size: 12px;
}

.c1588-secondary-filter .c1588-form {
    gap: 10px;
}

.c1588-secondary-filter .c1588-form__control,
.c1588-secondary-page .c1588-form__control {
    min-height: 38px;
    border-color: #dfe5e8;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
}

.c1588-secondary-filter .c1588-form__label,
.c1588-secondary-page .c1588-form__label {
    color: #777;
    font-size: 11px;
}

.c1588-secondary-filter .c1588-button--primary,
.c1588-secondary-page .c1588-button--primary {
    border-color: var(--1588-secondary-primary);
    background: var(--1588-secondary-primary);
}

.c1588-secondary-filter .c1588-button--primary:hover,
.c1588-secondary-page .c1588-button--primary:hover {
    border-color: var(--1588-secondary-primary-dark);
    background: var(--1588-secondary-primary-dark);
}

.c1588-secondary-results .c1588-table-wrap {
    border: 0;
    border-radius: 0;
}

.c1588-secondary-page .c1588-table {
    min-width: 640px;
    font-size: 11px;
}

.c1588-secondary-page .c1588-table th,
.c1588-secondary-page .c1588-table td {
    padding: 9px 8px;
    border-bottom-color: var(--1588-secondary-line);
}

.c1588-secondary-page .c1588-table th {
    background: #fafbfb;
    color: #999;
    font-size: 10px;
    letter-spacing: 0;
    text-transform: none;
}

.c1588-secondary-page .c1588-table tbody tr:hover {
    background: #fbfffd;
}

.c1588-secondary-history-row .c1588-table__number {
    color: #333;
    font-weight: 700;
}

.c1588-draw-balls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.c1588-history-picture {
    display: inline-flex;
    width: min(180px, 100%);
    min-height: 84px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e1e7ea;
    border-radius: 8px;
    background: #f7fafb;
}

.c1588-history-picture img {
    display: block;
    width: 100%;
    max-height: 132px;
    object-fit: contain;
}

.c1588-secondary-page .c1588-draw-balls .c1588-ball {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    font-size: 11px;
}

.c1588-ball--pending {
    border: 1px dashed #cfd6da;
    background: #f5f7f8;
    color: #a3aaae;
}

.c1588-draw-pending {
    color: #a0a8ad;
    font-size: 10px;
    white-space: nowrap;
}

.c1588-secondary-state td {
    height: 94px;
    color: #999;
    text-align: center;
}

.c1588-secondary-loading,
.c1588-secondary-empty-inline,
.c1588-secondary-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: #999;
    font-size: 12px;
}

.c1588-secondary-loading::before {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid #dce3e6;
    border-top-color: var(--1588-secondary-primary);
    border-radius: 50%;
    content: "";
    animation: c1588-secondary-spin .8s linear infinite;
}

.c1588-secondary-error {
    color: #b36b6b;
}

.c1588-secondary-empty {
    display: grid;
    min-height: 168px;
    margin-top: 0;
    place-items: center;
    border: 1px dashed #dfe5e8;
    border-radius: 8px;
    background: #fcfdfd;
    box-shadow: none;
    text-align: center;
}

.c1588-secondary-empty > div {
    padding: 22px 16px;
}

.c1588-secondary-empty__icon,
.c1588-secondary-page .c1588-empty-state__icon {
    color: #c6cdd1;
}

.c1588-secondary-empty .c1588-empty-state__title,
.c1588-secondary-page .c1588-empty-state__title {
    color: #666;
    font-size: 15px;
}

.c1588-secondary-empty .c1588-empty-state__description,
.c1588-secondary-page .c1588-empty-state__description {
    color: #999;
    font-size: 11px;
}

.c1588-secondary-page .c1588-forum-tabs {
    gap: 6px;
    padding-bottom: 0;
}

.c1588-secondary-page .c1588-forum-tabs__link {
    min-height: 32px;
    padding-inline: 10px;
    border: 0;
    border-radius: 999px;
    background: #f5f6f6;
    color: #888;
    font-size: 11px;
}

.c1588-secondary-page .c1588-forum-tabs__link:hover,
.c1588-secondary-page .c1588-forum-tabs__link.is-active {
    background: #e9fff3;
    color: var(--1588-secondary-primary-dark);
}

.c1588-secondary-board-grid {
    gap: 10px;
}

.c1588-secondary-board-card {
    min-width: 0;
}

.c1588-secondary-board-card .c1588-card__body {
    min-height: 142px;
}

.c1588-secondary-page .c1588-forum-list {
    border: 0;
    border-radius: 0;
}

.c1588-secondary-page .c1588-forum-list__item {
    min-height: 48px;
    padding: 9px 12px;
    border-bottom-color: var(--1588-secondary-line);
}

.c1588-secondary-page .c1588-forum-list__title {
    color: #555;
    font-size: 12px;
    font-weight: 500;
}

.c1588-secondary-page .c1588-forum-list__meta {
    color: #aaa;
    font-size: 10px;
}

.c1588-secondary-article .c1588-card__body {
    min-height: 180px;
    color: #555;
    font-size: 13px;
    line-height: 1.8;
}

.c1588-secondary-article .c1588-card__body > :first-child {
    margin-top: 0;
}

.c1588-secondary-article .c1588-card__body img {
    border-radius: 6px;
}

.c1588-secondary-pagination {
    align-items: center;
    justify-content: flex-end;
    min-height: 34px;
}

.c1588-secondary-pagination .c1588-pagination__link {
    min-width: 32px;
    min-height: 32px;
    border-color: #e2e7e9;
    border-radius: 5px;
    color: #777;
    font-size: 11px;
}

.c1588-secondary-pagination .c1588-pagination__link.is-active {
    border-color: var(--1588-secondary-primary);
    background: var(--1588-secondary-primary);
}

.c1588-secondary-server-pagination {
    display: none;
}

body[data-view^="member-"] > .c1588-secondary-topbar {
    width: 100%;
    max-width: var(--1588-secondary-width);
    margin-inline: auto;
    background: rgba(255, 255, 255, .98);
    border-bottom-color: #edf0f2;
    box-shadow: 0 1px 8px rgba(25, 42, 52, .05);
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-topbar__inner {
    min-height: 46px;
    padding-inline: 8px;
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-brand {
    min-height: 46px;
    color: #252b30;
    font-size: 15px;
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-brand:hover {
    color: #252b30;
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-brand__mark {
    width: 30px;
    height: 26px;
    border-radius: 4px;
    background: var(--1588-secondary-primary);
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-brand__logo {
    display: block;
    width: 92px;
    height: 34px;
    object-fit: contain;
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-topbar__title {
    overflow: hidden;
    margin-left: auto;
    color: #888;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-view^="member-"] > .c1588-secondary-topbar .c1588-site-nav {
    display: none;
}

body[data-view^="member-"] .c1588-mobile-nav {
    left: 50%;
    right: auto;
    width: min(100%, var(--1588-secondary-width));
    min-height: 52px;
    transform: translateX(-50%);
    border-top-color: #edf0f2;
    box-shadow: 0 -2px 12px rgba(25, 42, 52, .08);
}

body[data-view^="member-"] .c1588-mobile-nav__link {
    gap: 1px;
    color: #9aa1a5;
    font-size: 18px;
}

body[data-view^="member-"] .c1588-mobile-nav__link small {
    font-size: 10px;
}

body[data-view^="member-"] .c1588-mobile-nav__link:hover,
body[data-view^="member-"] .c1588-mobile-nav__link.is-active {
    color: var(--1588-secondary-primary-dark);
}

body[data-view^="member-"] .c1588-mobile-nav__link--featured span {
    width: 40px;
    height: 40px;
    margin-top: -16px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--1588-secondary-primary);
    color: #fff;
}

body[data-view^="member-"] .c1588-definition-list {
    gap: 0;
}

body[data-view^="member-"] .c1588-definition-list > div {
    min-height: 42px;
    padding-block: 8px;
    border-bottom-color: var(--1588-secondary-line);
}

body[data-view^="member-"] .c1588-definition-list dt {
    color: #999;
    font-size: 11px;
}

body[data-view^="member-"] .c1588-definition-list dd {
    color: #444;
    font-size: 12px;
}

body[data-view="member-login"] .auth-card {
    margin-inline: 8px;
}

body[data-view="member-login"] .auth-card .c1588-card__body {
    padding: 16px 12px 18px;
}

body[data-view="member-login"] .auth-card .c1588-form {
    gap: 12px;
    margin-top: 16px;
}

body[data-view="member-login"] .auth-card .c1588-form__actions {
    margin-top: 4px;
}

body[data-view="member-login"] .auth-card .c1588-button {
    width: 100%;
}

@keyframes c1588-secondary-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    body:has(main.c1588-secondary-page) .c1588-topbar__inner {
        min-height: 46px;
    }

    .c1588-secondary-page .c1588-card__header,
    .c1588-secondary-page .c1588-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .c1588-secondary-page .c1588-card__footer {
        gap: 6px;
    }

    .c1588-secondary-board-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c1588-secondary-board-card .c1588-card__body {
        min-height: 164px;
        padding: 10px;
    }

    .c1588-secondary-page .c1588-forum-list__item {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (min-width: 768px) {
    body[data-view^="member-"] .c1588-mobile-nav {
        display: none;
    }

    .c1588-secondary-page {
        margin-bottom: 24px;
    }
}

/* Homepage banner carousel: supplied artwork rotates in the original banner slot. */
body[data-site="1588"] .c1588-banner-carousel {
    position: relative;
    min-height: 0;
    aspect-ratio: 2.06 / 1;
    margin: 8px 8px 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #eef3f5;
    box-shadow: none;
    color: inherit;
    isolation: isolate;
}

body[data-site="1588"] .c1588-banner-carousel::before,
body[data-site="1588"] .c1588-banner-carousel::after {
    display: none;
}

.c1588-banner-carousel__viewport {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.c1588-banner-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .45s ease;
    will-change: transform;
}

.c1588-banner-carousel__slide {
    position: relative;
    display: block;
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.c1588-banner-carousel__slide::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18));
    content: "";
    pointer-events: none;
}

.c1588-banner-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.c1588-banner-carousel__slide--ad img {
    object-fit: contain;
    background: #fff;
}

.c1588-banner-carousel__control {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 30px;
    height: 44px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    opacity: .82;
    transform: translateY(-50%);
    transition: background-color .2s ease, opacity .2s ease;
}

.c1588-banner-carousel__control:hover,
.c1588-banner-carousel__control:focus-visible {
    background: rgba(0, 0, 0, .52);
    opacity: 1;
}

.c1588-banner-carousel__control--prev { left: 8px; }
.c1588-banner-carousel__control--next { right: 8px; }

.c1588-banner-carousel__dots {
    position: absolute;
    z-index: 2;
    right: 50%;
    bottom: 10px;
    display: flex;
    gap: 6px;
    transform: translateX(50%);
}

.c1588-banner-carousel__dots button {
    display: block;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.c1588-banner-carousel__dots button.is-active {
    width: 20px;
    border-radius: 999px;
    background: #fff;
}

.c1588-banner-carousel__dots button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.c1588-banner-carousel__status {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    min-width: 38px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .34);
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
}

.c1588-banner-carousel__slide:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}

@media (max-width: 360px) {
    .c1588-banner-carousel__control {
        width: 26px;
        height: 38px;
        font-size: 28px;
    }

    .c1588-banner-carousel__control--prev { left: 5px; }
    .c1588-banner-carousel__control--next { right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .c1588-banner-carousel__track,
    .c1588-banner-carousel__control {
        transition: none;
    }
}
