/* Dynamic Oshilot pages built from the supplied redesign. */
.oshilot-banner-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.oshilot-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.oshilot-banner-media .visual-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.oshilot-banner-name {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.oshilot-banner-name strong {
    min-width: 0;
    line-height: 1.45;
}

.oshilot-banner-name span {
    flex: 0 0 auto;
    color: var(--pink);
    font-size: 12px;
}

.empty-state {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    padding: 34px 20px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

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

.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
}

.lot-info-head > .status {
    margin-bottom: 10px;
}

.lot-info-head > p {
    margin: -6px 0 18px;
    color: #555;
    line-height: 1.75;
}

.lot-ticket-form {
    display: grid;
    grid-template-columns: minmax(180px, .6fr) minmax(220px, 1fr);
    gap: 12px;
    margin-top: 18px;
    align-items: end;
}

.lot-ticket-control {
    display: grid;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
}

.lot-ticket-control select {
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 0 12px;
    color: #111;
    font: inherit;
}

/* The detail summary has a narrow purchase column at desktop widths too. */
.oshilot-detail-page .lot-ticket-form {
    grid-template-columns: minmax(0, 1fr);
}

.oshilot-detail-page .lot-ticket-form > *,
.oshilot-detail-page .lot-ticket-control select,
.oshilot-detail-page .lot-sticky-cta > * {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.oshilot-detail-page .lot-prize {
    grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr);
}

.oshilot-detail-page .lot-rank h2 {
    margin: 0;
}

.oshilot-detail-page .lot-rank span {
    padding: 5px 6px;
    font-size: 11px;
    white-space: nowrap;
}

.oshilot-detail-page .lot-prize-body {
    min-width: 0;
    overflow-wrap: anywhere;
}

.oshilot-detail-page .lot-prize-description + .lot-prize-description {
    margin-top: 16px;
}

.oshilot-detail-page .lot-prize-description h3 {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 10px;
}

@media (max-width: 880px) {
    .oshilot-detail-page .lot-prize {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .oshilot-detail-page .lot-prize-description h3 {
        font-size: 16px;
    }
}

.checkout-layout .checkout-panel {
    min-width: 0;
    padding: 18px;
}

.checkout-layout .checkout-campaign-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.checkout-layout .checkout-campaign-card img {
    width: 132px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.checkout-layout .checkout-campaign-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.checkout-layout .summary form {
    margin: 14px 0 8px;
}

.description-panel {
    border: 2px solid var(--pink);
    border-radius: 18px;
    background: #fff;
    padding: 22px;
    line-height: 1.9;
}

.description-panel p,
.oshilot-description-steps p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.description-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.collection-purchase-list {
    display: grid;
    gap: 12px;
}

.collection-purchase-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.collection-purchase-card h2 {
    margin: 0 0 6px;
    font-size: 16px;
}

.collection-purchase-actions {
    display: grid;
    gap: 8px;
}

.collection-rank-summary {
    display: grid;
    place-items: center;
    width: 58px;
    min-height: 58px;
    border-radius: 14px;
    background: #111;
    color: var(--pink);
    font-weight: 900;
}

.status[class*="tone-"] {
    border: 1px solid var(--line);
}

.status.tone-paid,
.status.tone-completed,
.status.tone-success {
    background: #e9fbef;
    color: #16733b;
}

.status.tone-warning,
.status.tone-pending {
    background: #fff7d9;
    color: #785c00;
}

.status.tone-danger,
.status.tone-cancelled,
.status.tone-failed {
    background: #fff0f2;
    color: #b60024;
}

.oshilot-play-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
    gap: 20px;
    align-items: start;
}

.oshilot-play-stage .unity-player-shell,
.oshilot-play-stage .play-demo-stage,
.oshilot-play-stage .play-result-panel {
    border: 2px solid var(--pink);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(255, 0, 168, .08);
}

.oshilot-play-stage .unity-player-shell {
    min-width: 0;
    overflow: hidden;
}

.oshilot-play-stage .unity-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #111;
}

.oshilot-play-stage .play-result-panel {
    padding: 20px;
}

.oshilot-play-stage .result-action-row {
    display: grid;
    gap: 8px;
}

@media (max-width: 880px) {
    .lot-ticket-form,
    .oshilot-play-stage {
        grid-template-columns: 1fr;
    }

    .checkout-layout .checkout-campaign-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .checkout-layout .checkout-campaign-card > span {
        grid-column: 2;
    }

    .collection-history-head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .oshilot-banner-name {
        display: grid;
        gap: 5px;
    }

    .checkout-layout .checkout-campaign-card {
        grid-template-columns: 1fr;
    }

    .checkout-layout .checkout-campaign-card img {
        width: 100%;
    }

    .checkout-layout .checkout-campaign-card > span {
        grid-column: auto;
    }

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

/* Keep a useful hero when no campaign banner is available. */
.oshilot-guide-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 1220 / 720;
    overflow: hidden;
    margin: 0 0 18px;
    padding: clamp(24px, 4vw, 56px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--yellow);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.oshilot-guide-banner:hover { color: #fff; }
.oshilot-guide-banner:focus-visible { outline: 4px solid var(--pink); outline-offset: 4px; }
.oshilot-guide-art { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.oshilot-guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 86%;
    padding: clamp(24px, 3.6vw, 46px) clamp(16px, 3vw, 36px);
    background: var(--ink);
    box-shadow: 12px 12px 0 var(--pink);
    text-align: center;
}
.oshilot-guide-kicker { color: var(--cyan); font-size: clamp(9px, 1.1vw, 12px); font-weight: 900; letter-spacing: .22em; }
.oshilot-guide-brand { display: block; width: min(620px, 100%); margin: clamp(15px, 2.3vw, 28px) 0 16px; }
.oshilot-guide-logo {
    display: block;
    width: 100%;
    aspect-ratio: 700 / 164;
    background: linear-gradient(105deg, var(--pink) 0%, #ff934f 17%, var(--yellow) 33%, #a5ff58 65%, var(--cyan) 94%);
    -webkit-mask: url('/images/oshilot.png') center / contain no-repeat;
    mask: url('/images/oshilot.png') center / contain no-repeat;
}
.oshilot-guide-description { font-size: clamp(12px, 1.7vw, 20px); font-weight: 800; line-height: 1.7; letter-spacing: .06em; }
.oshilot-guide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 52px;
    margin-top: 24px;
    padding: 12px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: clamp(16px, 2vw, 23px);
    font-weight: 900;
    line-height: 1.4;
    transition: background .2s ease;
}
.oshilot-guide-arrow { color: #c60082; font-size: 1.3em; transition: transform .2s ease; }
.oshilot-guide-banner:hover .oshilot-guide-cta { background: var(--yellow); }
.oshilot-guide-banner:hover .oshilot-guide-arrow { transform: translateX(4px); }
.oshilot-guide-caption { margin-top: 12px; color: #e9e9e9; font-size: clamp(10px, 1.2vw, 13px); font-weight: 600; }
@media (max-width: 600px) {
    .oshilot-guide-banner { aspect-ratio: 1 / 1; padding: 22px; border-radius: 18px; }
    .oshilot-guide-content { width: 100%; padding: 26px 14px; box-shadow: 7px 7px 0 var(--pink); }
    .oshilot-guide-brand { margin: 18px 0 14px; }
    .oshilot-guide-description { font-size: 12px; }
    .oshilot-guide-description > span { display: block; }
    .oshilot-guide-cta { gap: 14px; min-height: 46px; margin-top: 18px; padding: 10px 20px; font-size: 16px; }
    .oshilot-guide-caption { margin-top: 10px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .oshilot-guide-cta, .oshilot-guide-arrow { transition: none; }
}
