/* Extracted from templates/hud/raffle_details.html (07-10-2026): a static file the browser can cache. Edit here, not in the template. */
body {
    background: linear-gradient(135deg, #1a0033 0%, #4b0082 50%, #00ddeb 100%);
    min-height: 100vh;
}

:root {
    --raffles-main-block-shadow: 0 0 12px rgba(0, 0, 0, 0.78), 0 8px 20px rgba(0, 0, 0, 0.62);
    --raffles-main-block-inset: inset 0 0 0 1px rgba(255, 209, 102, 0.14);
    --raffles-disabled-btn-border: rgba(255, 177, 102, 0.58);
    --raffles-disabled-btn-bg: linear-gradient(140deg, rgba(44, 30, 45, 0.92), rgba(56, 32, 44, 0.88));
    --raffles-disabled-btn-color: #ffd8b2;
    --raffles-disabled-btn-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.16), 0 8px 20px rgba(0, 0, 0, 0.34);
}

.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #edf2ff;
}

.topbar-countdown {
    width: 100%;
    display: flex;
    align-items: center;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.hero-side > .hero-body {
    flex: 1 1 auto;
    height: auto;
}

.countdown-spotlight {
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 187, 120, 0.5);
    border-radius: 14px;
    background: linear-gradient(155deg, rgba(25, 17, 45, 0.95), rgba(11, 18, 31, 0.95));
    padding: 0.55rem 0.75rem 0.7rem;
    position: relative;
    box-shadow: var(--raffles-main-block-shadow), var(--raffles-main-block-inset);
}

.countdown-kicker {
    color: #ffc98d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.countdown-main {
    color: #fff3e0;
    font-size: clamp(2.5rem, 5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin-bottom: 0;
}

.countdown-sub {
    color: #b9c8e0;
    font-size: 0.78rem;
    min-height: 1.05rem;
    margin-top: 0.24rem;
}

.countdown-remaining {
    margin-top: -0.6rem;
    margin-bottom: 0.2rem;
    color: #ffe6bf;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.countdown-remaining.low-stock {
    color: #ff8c00;
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.36);
    animation: countdownRemainingPulse 1.4s ease-in-out infinite;
}

.countdown-remaining.critical-stock {
    color: #ff2b2b;
    text-shadow: 0 0 12px rgba(255, 43, 43, 0.62);
    animation: countdownRemainingPulseCritical 0.95s ease-in-out infinite;
}

@keyframes countdownRemainingPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes countdownRemainingPulseCritical {
    0%, 100% {
        transform: scale(1);
        opacity: 0.96;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

.countdown-note {
    margin-top: 0.36rem;
    font-size: 0.72rem;
    color: #aebbd3;
    line-height: 1.35;
}

.countdown-spotlight.warning {
    border-color: rgba(245, 158, 11, 0.82);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
}

.countdown-spotlight.warning .countdown-main {
    color: #ffd6a8;
}

.countdown-spotlight.warning .countdown-sub {
    color: #ffc98d;
}

.countdown-spotlight.critical {
    border-color: rgba(239, 68, 68, 0.9);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.34);
}

.countdown-spotlight.critical .countdown-main {
    color: #aa0000;
}

.countdown-spotlight.critical .countdown-sub {
    color: #ff8f8f;
}

/* Countdown block: colour and gentle motion by state (read from the status pill). */
.countdown-spotlight {
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.countdown-spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: 220% 220%;
    opacity: 0.9;
    animation: countdownAurora 12s ease-in-out infinite;
    pointer-events: none;
}

.countdown-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 35%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    transform: skewX(-18deg);
    animation: countdownShine 6.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes countdownAurora {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes countdownShine {
    0%, 55% { left: -40%; }
    85%, 100% { left: 120%; }
}

@keyframes countdownGlowLive {
    0%, 100% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.22), 0 10px 26px rgba(0, 0, 0, 0.55); }
    50% { box-shadow: 0 0 30px rgba(255, 123, 0, 0.3), 0 10px 26px rgba(0, 0, 0, 0.55); }
}

@keyframes countdownGlowHot {
    0%, 100% { box-shadow: 0 0 18px rgba(249, 115, 22, 0.35), 0 10px 26px rgba(0, 0, 0, 0.55); }
    50% { box-shadow: 0 0 34px rgba(239, 68, 68, 0.5), 0 10px 26px rgba(0, 0, 0, 0.55); }
}

.countdown-main {
    background: linear-gradient(180deg, #ffffff 0%, #ffe3c2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
    font-variant-numeric: tabular-nums;
}

/* Live: green → orange → pink, slow breathing glow. */
.countdown-spotlight:has(.status-pill.active) {
    border-color: rgba(52, 211, 153, 0.6);
    animation: countdownGlowLive 4s ease-in-out infinite;
}

.countdown-spotlight:has(.status-pill.active)::before {
    background-image: linear-gradient(120deg, rgba(16, 185, 129, 0.5), rgba(13, 148, 136, 0.28) 30%, rgba(25, 17, 45, 0.15) 55%, rgba(255, 123, 0, 0.3) 80%, rgba(255, 20, 147, 0.32));
}

/* Ending / sold out cooldown: amber → red, faster glow. */
.countdown-spotlight:has(.status-pill.ending) {
    border-color: rgba(251, 191, 36, 0.8);
    animation: countdownGlowHot 2.2s ease-in-out infinite;
}

.countdown-spotlight:has(.status-pill.ending)::before {
    background-image: linear-gradient(120deg, rgba(245, 158, 11, 0.45), rgba(25, 17, 45, 0.15) 50%, rgba(239, 68, 68, 0.42));
    animation-duration: 6s;
}

.countdown-spotlight:has(.status-pill.ending) .countdown-main {
    background-image: linear-gradient(180deg, #ffffff 0%, #ffc56b 100%);
}

/* Last minutes (existing "critical" class): red. */
.countdown-spotlight.critical:has(.status-pill) {
    border-color: rgba(248, 113, 113, 0.95);
    animation: countdownGlowHot 1.4s ease-in-out infinite;
}

.countdown-spotlight.critical:has(.status-pill)::before {
    background-image: linear-gradient(120deg, rgba(239, 68, 68, 0.38), rgba(25, 17, 45, 0.2) 50%, rgba(249, 115, 22, 0.3));
}

.countdown-spotlight.critical:has(.status-pill) .countdown-main {
    background-image: linear-gradient(180deg, #ffffff 0%, #ff8a8a 100%);
    color: transparent;
}

/* Settled: purple → gold, calm shine. */
.countdown-spotlight:has(.status-pill.settled) {
    border-color: rgba(196, 181, 253, 0.6);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.3), 0 10px 26px rgba(0, 0, 0, 0.55);
}

.countdown-spotlight:has(.status-pill.settled)::before {
    background-image: linear-gradient(120deg, rgba(109, 40, 217, 0.5), rgba(25, 17, 45, 0.15) 50%, rgba(255, 179, 71, 0.36));
}

.countdown-spotlight:has(.status-pill.settled) .countdown-main {
    background-image: linear-gradient(180deg, #fff6df 0%, #ffcf6e 100%);
}

/* Ended without settlement yet: deep red, no shine. */
.countdown-spotlight:has(.status-pill.ended)::before {
    background-image: linear-gradient(120deg, rgba(170, 0, 0, 0.3), rgba(25, 17, 45, 0.2) 60%);
}

.countdown-spotlight:has(.status-pill.ended)::after {
    display: none;
}

/* Buy button: livelier, with a hover lift. */
.countdown-spotlight .topbar-buy-btn:not(:disabled) {
    background: linear-gradient(130deg, #ff7b00, #ff1493);
    border-color: rgba(255, 214, 160, 0.85);
    box-shadow: 0 6px 18px rgba(255, 70, 70, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.countdown-spotlight .topbar-buy-btn:not(:disabled):hover,
.countdown-spotlight .topbar-buy-btn:not(:disabled):focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 10px 24px rgba(255, 70, 70, 0.5);
    outline: none;
}


/* Tickets sold bar and winner line inside the countdown block. */
.countdown-progress {
    width: min(320px, 86%);
    height: 8px;
    margin: 0.55rem auto 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.countdown-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff7b00, #ff1493);
    box-shadow: 0 0 10px rgba(255, 70, 120, 0.55);
    transition: width 0.6s ease;
}

.countdown-progress-label {
    margin-bottom: 0.7rem;
    color: #e6ecf7;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.buy-feedback.feedback-flash {
    animation: buyFeedbackFlash 1.4s ease-out 1;
}

@keyframes buyFeedbackFlash {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.75); }
    35% { box-shadow: 0 0 0 6px rgba(255, 90, 90, 0.35); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .buy-feedback.feedback-flash {
        animation: none;
    }
}

.countdown-winner {
    margin: 0.35rem auto 0.1rem;
    color: #fff3d6;
    font-size: 0.95rem;
    font-weight: 600;
}

.countdown-winner .winner-trophy {
    vertical-align: -0.2em;
    margin-right: 0.15rem;
}

.countdown-winner .winner-trophy svg {
    width: 1.15em;
    height: 1.15em;
}

.countdown-winner strong {
    color: #ffcf6e;
    font-weight: 900;
}

.countdown-you-won {
    margin: 0.45rem auto 0;
    color: #ffcf6e;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255, 179, 71, 0.55);
}

.countdown-share-win {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    margin: 0.6rem auto 0.2rem;
    padding: 0.5rem 1.15rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 233, 180, 0.9);
    background: linear-gradient(130deg, #f59e0b, #ffcf6e);
    color: #2a1800;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 179, 71, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.countdown-share-win:hover,
.countdown-share-win:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 10px 24px rgba(255, 179, 71, 0.45);
    outline: none;
}

.countdown-share-win:focus-visible {
    box-shadow: 0 0 0 2px #fff3d6, 0 10px 24px rgba(255, 179, 71, 0.45);
}

.purchase-success-share {
    margin-top: 0.85rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.purchase-success-share[hidden] {
    display: none;
}

.purchase-success-share-copy {
    color: #c4d0e4;
    font-size: 0.84rem;
    margin-bottom: 0.55rem;
}

.purchase-success-share-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: #0b0d12;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.purchase-success-share-x:hover,
.purchase-success-share-x:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    outline: none;
}

.purchase-success-share-x:focus-visible {
    box-shadow: 0 0 0 2px rgba(255, 211, 146, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .countdown-share-win,
    .purchase-success-share-x {
        transition: none;
    }

    .countdown-share-win:hover,
    .countdown-share-win:focus-visible,
    .purchase-success-share-x:hover,
    .purchase-success-share-x:focus-visible {
        transform: none;
    }
}

.countdown-spotlight.has-winner .countdown-sub {
    display: none;
}

/* Sold out (waiting for the draw): intense red. */
.countdown-spotlight.is-sold-out:has(.status-pill) {
    border-color: rgba(248, 113, 113, 0.95);
    animation: countdownGlowHot 1.6s ease-in-out infinite;
}

.countdown-spotlight.is-sold-out:has(.status-pill)::before {
    background-image: linear-gradient(120deg, rgba(239, 68, 68, 0.55), rgba(25, 17, 45, 0.15) 50%, rgba(255, 20, 147, 0.42));
}

.countdown-spotlight.is-sold-out .countdown-sub {
    color: #ffd0d0;
    font-weight: 800;
}

/* Flash raffle: electric yellow frame while live, white-hot while the winner is drawn. */
@keyframes countdownGlowFlash {
    0%, 100% { box-shadow: 0 0 18px rgba(250, 204, 21, 0.28), 0 10px 26px rgba(0, 0, 0, 0.55); }
    50% { box-shadow: 0 0 32px rgba(125, 211, 252, 0.3), 0 10px 26px rgba(0, 0, 0, 0.55); }
}

@keyframes countdownGlowFlashDraw {
    0%, 100% { box-shadow: 0 0 22px rgba(250, 204, 21, 0.45), 0 10px 26px rgba(0, 0, 0, 0.55); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.4), 0 10px 26px rgba(0, 0, 0, 0.55); }
}

.countdown-spotlight.is-flash:not(.critical):not(.is-sold-out):has(.status-pill.active) {
    border-color: rgba(250, 204, 21, 0.85);
    animation: countdownGlowFlash 3s ease-in-out infinite;
}

.countdown-spotlight.is-flash:not(.critical):not(.is-sold-out):has(.status-pill.active)::before {
    background-image: linear-gradient(120deg, rgba(250, 204, 21, 0.42), rgba(25, 17, 45, 0.15) 45%, rgba(125, 211, 252, 0.28) 75%, rgba(250, 204, 21, 0.32));
    animation-duration: 8s;
}

.countdown-spotlight.is-flash:not(.critical):not(.is-sold-out):has(.status-pill.active) .countdown-main {
    background-image: linear-gradient(180deg, #ffffff 0%, #fde68a 100%);
}

.countdown-spotlight.is-flash.is-sold-out:has(.status-pill) {
    border-color: rgba(254, 240, 138, 0.95);
    animation: countdownGlowFlashDraw 1.2s ease-in-out infinite;
}

.countdown-spotlight.is-flash.is-sold-out:has(.status-pill)::before {
    background-image: linear-gradient(120deg, rgba(250, 204, 21, 0.55), rgba(25, 17, 45, 0.12) 50%, rgba(255, 255, 255, 0.28));
    animation-duration: 3s;
}

.countdown-spotlight.is-flash.is-sold-out .countdown-sub {
    color: #fef08a;
}

.countdown-flash-badge {
    position: absolute;
    top: 0.48rem;
    left: 0.48rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.55rem 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1c1504;
    background: linear-gradient(135deg, #fef08a 0%, #facc15 55%, #f59e0b 100%);
    border: 1px solid rgba(254, 240, 138, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 14px rgba(250, 204, 21, 0.45);
}

.countdown-flash-bolt {
    display: inline-flex;
    animation: countdownFlashBolt 3.2s ease-in-out infinite;
}

@keyframes countdownFlashBolt {
    0%, 86%, 100% { opacity: 1; transform: scale(1); }
    89% { opacity: 0.35; transform: scale(0.92); }
    92% { opacity: 1; transform: scale(1.12); }
    95% { opacity: 0.6; }
}

.countdown-flash-rules > span {
    white-space: nowrap;
}

.countdown-spotlight.is-flash .countdown-progress-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #facc15 60%, #fef9c3 100%);
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.countdown-flash-rules {
    margin: 0.25rem 0 0.4rem;
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
    .countdown-spotlight.is-flash,
    .countdown-spotlight.is-flash::before,
    .countdown-flash-bolt {
        animation: none !important;
    }
}

.countdown-spotlight .topbar-buy-btn#top-buy-cta:not(:disabled) {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
    /* Purchase = green ("go"); Repeat Winner Show keeps the brand gradient. */
    background: linear-gradient(135deg, #10b981 0%, #16a34a 55%, #22c55e 100%);
    border-color: rgba(167, 243, 208, 0.9);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.countdown-spotlight .topbar-buy-btn#top-buy-cta:not(:disabled):hover,
.countdown-spotlight .topbar-buy-btn#top-buy-cta:not(:disabled):focus-visible {
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.55), 0 0 18px rgba(52, 211, 153, 0.45);
}

@media (max-width: 760px) {
    /* On phones the pill goes above the countdown so it never covers the numbers. */
    .topbar-countdown .countdown-spotlight .status-pill {
        position: static;
        display: inline-block;
        margin-bottom: 0.3rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .countdown-spotlight,
    .countdown-spotlight::before,
    .countdown-spotlight::after {
        animation: none !important;
    }
}

.topbar-buy-btn {
    margin-top: 0.45rem;
    border: 1px solid rgba(255, 190, 128, 0.62);
    border-radius: 999px;
    background: linear-gradient(130deg, rgba(255, 123, 0, 0.44), rgba(255, 20, 147, 0.36));
    color: #fff3df;
    font-weight: 800;
    padding: 0.44rem 0.9rem;
    cursor: pointer;
}

.topbar-buy-btn:disabled {
    cursor: not-allowed;
    border-color: var(--raffles-disabled-btn-border);
    background: var(--raffles-disabled-btn-bg);
    color: var(--raffles-disabled-btn-color);
    box-shadow: var(--raffles-disabled-btn-shadow);
    opacity: 1;
    filter: saturate(0.9);
}

.status-pill {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.07em;
    border-radius: 999px;
    padding: 0.28rem 0.68rem;
    border: 1px solid transparent;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 1.0), 0 3px 6px rgba(0, 0, 0, 0.75);
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.9);
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

@keyframes active-pill-pulse {
    0% {
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.34);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 22px rgba(52, 211, 153, 0.58);
        transform: scale(1.03);
    }
    100% {
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.34);
        transform: scale(1);
    }
}

.countdown-spotlight .status-pill {
    position: absolute;
    top: 0.48rem;
    right: 0.48rem;
    z-index: 3;
}

.status-pill.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(34, 197, 94, 0.92));
    border-color: rgba(52, 211, 153, 0.95);
    color: #ffe8e8;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.46);
    animation: active-pill-pulse 2.8s ease-in-out infinite;
}

.status-pill.ended {
    background: linear-gradient(135deg, rgba(170, 0, 0, 0.96), rgba(204, 38, 38, 0.93));
    border-color: rgba(170, 0, 0, 0.95);
    color: #ffe8e8;
    box-shadow: 0 0 18px rgba(170, 0, 0, 0.55);
}

.status-pill.settled {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.95), rgba(139, 92, 246, 0.92));
    border-color: rgba(196, 181, 253, 0.95);
    color: #ffe8e8;
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.5);
}

.status-pill.ending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.96), rgba(249, 115, 22, 0.93));
    border-color: rgba(251, 191, 36, 0.95);
    color: #ffe8e8;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.46);
}

.detail-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.hero-art {
    min-height: 320px;
    height: auto;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.48), rgba(255, 123, 0, 0.55));
    background-color: #000;
    background-clip: padding-box;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(120, 135, 164, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 1), var(--raffles-main-block-shadow), var(--raffles-main-block-inset);
    cursor: zoom-in;
    transition: border-color 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.hero-art.is-focus-pinned {
    border-color: rgba(255, 201, 141, 0.88);
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 201, 141, 0.18), 0 0 40px rgba(255, 133, 32, 0.26);
}

.hero-art.is-focus-pinned {
    cursor: zoom-out;
}

.hero-art-focus-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1190;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(circle at 50% 28%, rgba(31, 47, 91, 0.46), rgba(2, 4, 8, 0.88));
    backdrop-filter: blur(10px) saturate(1.06);
    transition: opacity 220ms ease, visibility 220ms ease;
    pointer-events: none;
}

.hero-art-focus-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.hero-art-focus-stage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(92vw, 1480px);
    height: min(86vh, 880px);
    z-index: 1200;
    border-radius: 18px;
    border: 1px solid rgba(255, 205, 156, 0.34);
    background: linear-gradient(180deg, rgba(5, 8, 15, 0.96) 0%, rgba(4, 7, 14, 0.92) 100%);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 205, 156, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms ease;
    overflow: hidden;
}

.hero-art-focus-stage.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.hero-art-focus-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%, rgba(0, 0, 0, 0.36) 100%);
    z-index: 2;
}

.hero-art-focus-preview {
    position: absolute;
    inset: 0;
    background-color: rgba(2, 4, 8, 0.96);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.hero-art-focus-preview:not(.has-image) {
    background-image: linear-gradient(135deg, rgba(126, 34, 206, 0.42), rgba(255, 123, 0, 0.46));
}

.hero-art-focus-hint {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(255, 206, 158, 0.45);
    border-radius: 999px;
    background: rgba(7, 11, 18, 0.62);
    color: #ffdcb9;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.72rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

body.hero-art-focus-lock {
    overflow: hidden;
}

.hero-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 46%);
}

.hero-art::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: #000;
    z-index: 3;
    pointer-events: none;
}

.hero-art.has-image::before {
    background: linear-gradient(180deg, rgba(9, 12, 20, 0.05) 30%, rgba(5, 8, 15, 0.88) 100%);
}

.hero-art-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0.65rem;
    display: grid;
    gap: 0.4rem;
    align-content: end;
    background: linear-gradient(180deg, rgba(6, 9, 16, 0.40) 20%, rgba(5, 8, 15, 0.90) 100%);
}

.hero-art-kicker {
    justify-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111;
    color: #ddd;
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-art-traits-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.hero-art-traits-head .hero-art-rarity-badge {
    padding: 0.18rem 0.5rem;
    font-size: 0.66rem;
}

/* A bare provider rank has no reliable tier. Keep it deliberately
   neutral, matching the NFT TRAITS label rather than implying rarity. */
.hero-art-traits-head .hero-art-rarity-badge.tier-default {
    border-color: rgba(255, 255, 255, 0.16);
    background: #111;
    color: #ddd;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-art-rarity-badge {
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 195, 122, 0.58);
    background: rgba(13, 19, 31, 0.8);
    color: #ffe7c5;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(2px);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.hero-art-top-left-badges {
    position: absolute;
    top: 0.64rem;
    left: 0.64rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    max-width: calc(100% - 8.1rem);
}

.hero-art-top-right-badges {
    position: absolute;
    top: 0.64rem;
    right: 0.64rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    max-width: calc(100% - 8.1rem);
}

.hero-art-title-badge {
    border-radius: 999px;
    padding: 0.29rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(199, 122, 147, 0.62);
    background: linear-gradient(135deg, rgba(63, 20, 37, 0.88), rgba(36, 14, 27, 0.9));
    color: #efd6df;
    box-shadow: 0 0 10px rgba(99, 36, 61, 0.28);
    backdrop-filter: blur(2px);
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
    overflow-wrap: anywhere;
    flex-shrink: 0;
}

.hero-art-market-value-badge {
    border-radius: 999px;
    padding: 0.25rem 0.62rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 198, 131, 0.62);
    background: linear-gradient(135deg, rgba(53, 32, 12, 0.9), rgba(40, 23, 10, 0.9));
    color: #ffe6c2;
    box-shadow: 0 0 10px rgba(148, 95, 32, 0.28);
    backdrop-filter: blur(2px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.hero-art-market-value-badge strong {
    color: #ffd18d;
    font-weight: 900;
}

.hero-art-my-tickets-badge {
    border-radius: 999px;
    padding: 0.24rem 0.6rem;
    font-size: 0.69rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(134, 188, 255, 0.62);
    background: linear-gradient(135deg, rgba(18, 34, 74, 0.9), rgba(74, 45, 130, 0.88));
    color: #e6f0ff;
    box-shadow: 0 0 10px rgba(116, 99, 255, 0.28);
    backdrop-filter: blur(2px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.hero-art-my-tickets-badge strong {
    color: #bde6ff;
    font-weight: 900;
}

.hero-art-my-tickets-badge.is-hidden {
    display: none;
}

.hero-art-likes-badge {
    border-radius: 999px;
    padding: 0.17rem 0.58rem 0.15rem;
    border: 1px solid rgba(255, 138, 138, 0.7);
    background: linear-gradient(135deg, rgba(92, 28, 36, 0.9), rgba(58, 17, 24, 0.9));
    color: #ffecef;
    box-shadow: 0 0 12px rgba(255, 102, 128, 0.32);
    backdrop-filter: blur(2px);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-art-likes-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 160, 160, 0.8);
    box-shadow: 0 0 14px rgba(255, 112, 136, 0.4);
}

.hero-art-likes-badge.is-unliked {
    border-color: rgba(174, 180, 192, 0.72);
    background: linear-gradient(135deg, rgba(57, 62, 75, 0.9), rgba(40, 44, 54, 0.9));
    box-shadow: 0 0 10px rgba(130, 138, 156, 0.24);
    color: #e6e9f2;
}

.hero-art-likes-badge.is-unliked:hover {
    border-color: rgba(194, 200, 214, 0.8);
    box-shadow: 0 0 13px rgba(154, 164, 184, 0.3);
}

.hero-art-likes-badge.is-unliked .hero-art-likes-count {
    color: #d8deea;
}

.hero-art-likes-badge.is-unliked .raffle-like-btn {
    color: #aab2c5;
}

.hero-art-likes-row {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 0.38rem;
}

.hero-art-likes-badge .raffle-like-btn {
    margin: 0;
    line-height: 1;
    color: #ff6f88;
}

.hero-art-likes-badge .raffle-like-heart-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.hero-art-likes-count {
    margin-top: 0;
    color: #ffd7df;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

.hero-art-rarity-badge.tier-common {
    border-color: rgba(174, 184, 201, 0.8);
    background: rgba(44, 53, 68, 0.84);
    color: #edf2ff;
}

.hero-art-rarity-badge.tier-uncommon {
    border-color: rgba(84, 214, 150, 0.86);
    background: rgba(10, 62, 40, 0.85);
    color: #dbffef;
}

.hero-art-rarity-badge.tier-rare {
    border-color: rgba(118, 171, 255, 0.86);
    background: rgba(14, 36, 82, 0.86);
    color: #e3efff;
}

.hero-art-rarity-badge.tier-epic {
    border-color: rgba(198, 147, 255, 0.86);
    background: rgba(54, 24, 92, 0.86);
    color: #f4e6ff;
}

.hero-art-rarity-badge.tier-legendary {
    border-color: rgba(255, 196, 102, 0.92);
    background: rgba(98, 54, 8, 0.9);
    color: #fff0cb;
}

.hero-art-rarity-badge.tier-mythic {
    border-color: rgba(255, 146, 183, 0.94);
    background: linear-gradient(135deg, rgba(120, 18, 54, 0.9), rgba(110, 54, 12, 0.9));
    color: #ffe8f2;
    box-shadow: 0 0 16px rgba(255, 82, 141, 0.38);
}

.hero-art-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
}

.hero-art-trait {
    border: 1px solid rgba(128, 145, 176, 0.45);
    background: rgba(8, 12, 21, 0.78);
    color: #e8efff;
    border-radius: 8px;
    padding: 0.2rem 0.52rem;
    font-size: 0.7rem;
    line-height: 1.25;
    max-width: 100%;
}

.hero-art-trait strong {
    color: #ffd6a8;
    font-weight: 800;
}

/* Most valuable trait of the NFT (priced at raffle creation). */
.hero-art-trait.is-top {
    border-color: rgba(255, 199, 92, 0.85);
    background: linear-gradient(135deg, rgba(58, 40, 8, 0.9), rgba(8, 12, 21, 0.85));
    color: #fff4dc;
    animation: heroTopTraitGlow 2.4s ease-in-out infinite;
}

.hero-art-trait.is-top strong {
    color: #ffd36b;
}

@keyframes heroTopTraitGlow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(255, 199, 92, 0.25), 0 0 6px rgba(255, 190, 70, 0.25); }
    50% { box-shadow: 0 0 0 1px rgba(255, 210, 120, 0.55), 0 0 14px rgba(255, 190, 70, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art-trait.is-top { animation: none; box-shadow: 0 0 10px rgba(255, 190, 70, 0.45); }
}

.top-trait-ref {
    color: #ffd36b;
}

.hero-body {
    height: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(120, 135, 164, 0.35);
    border-radius: 12px;
    background: rgba(8, 12, 20, 0.9);
    box-shadow: var(--raffles-main-block-shadow), var(--raffles-main-block-inset);
}

.hero-body-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero-share-link-btn {
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.hero-share-actions .topbar-buy-btn {
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.2;
}

.hero-share-x-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #0b0d12;
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-share-x-btn:hover,
.hero-share-x-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
    outline: none;
}

.raffle-like-btn {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #ff4b4b;
    font-weight: 800;
    line-height: 1.2;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.raffle-like-btn:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.03);
}

.raffle-like-btn.is-active {
    transform: scale(1.02);
}

.raffle-like-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.raffle-like-btn::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.raffle-like-heart-icon {
    width: 1.46rem;
    height: 1.46rem;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 0 0 rgba(255, 64, 96, 0));
    transition: filter 0.28s ease, transform 0.22s ease;
}

.raffle-like-heart-outline,
.raffle-like-heart-fill {
    transition: opacity 0.22s ease, transform 0.22s ease, fill 0.22s ease, stroke 0.22s ease;
    transform-origin: center;
}

.raffle-like-heart-outline {
    opacity: 1;
    fill: none;
    stroke: #ff6660;
    stroke-width: 1.9;
}

.raffle-like-heart-fill {
    opacity: 0;
    fill: #e10600;
    stroke: #e10600;
    stroke-width: 1.1;
    transform: scale(0.7);
}

.raffle-like-btn.is-active .raffle-like-heart-outline {
    opacity: 0;
    transform: scale(0.84);
}

.raffle-like-btn.is-active .raffle-like-heart-fill {
    opacity: 1;
    transform: scale(1);
}

.raffle-like-btn.is-active .raffle-like-heart-icon {
    filter: drop-shadow(0 0 9px rgba(225, 6, 0, 0.72));
}

.raffle-like-btn.like-anim .raffle-like-heart-icon {
    animation: raffleLikeHeartPop 0.56s cubic-bezier(0.19, 1, 0.22, 1);
}

.raffle-like-btn.like-anim::after {
    animation: raffleLikeBurst 0.62s ease-out;
}

@keyframes raffleLikeHeartPop {
    0% { transform: scale(0.72) rotate(-8deg); }
    45% { transform: scale(1.22) rotate(6deg); }
    70% { transform: scale(0.94) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes raffleLikeBurst {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(255, 38, 38, 0.58), 0 0 0 0 rgba(255, 96, 96, 0.34);
        transform: scale(0.4);
    }
    100% {
        opacity: 0;
        box-shadow: 0 0 0 18px rgba(255, 38, 38, 0), 0 0 0 28px rgba(255, 96, 96, 0);
        transform: scale(1.28);
    }
}

#raffle-like-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#raffle-like-metric.is-hidden {
    display: none;
}

#raffle-like-metric .metric-label {
    width: 100%;
    text-align: left;
}

#raffle-like-heart {
    display: inline-block;
    line-height: 1;
}

.raffle-like-row {
    width: 100%;
    margin-top: 0.28rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
}

.metric-sub {
    margin-top: 0;
    color: #ffe1bb;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    line-height: 1;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .status-pill.active {
        animation: none;
    }

    .metric.sold-out-surface::before {
        animation: none;
    }

    .buy-availability.critical,
    .buy-availability.critical .buy-availability-fill,
    .buy-availability.critical .buy-availability-badge,
    .buy-availability-critical-hint.reveal-once {
        animation: none;
    }
}

.hero-title {
    font-size: 1.7rem;
    margin: 0;
}

.hero-sub {
    color: #c9d3e8;
    margin-bottom: 0.9rem;
    font-size: 0.96rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.metric {
    border: 1px solid rgba(116, 130, 160, 0.34);
    border-radius: 10px;
    background: rgba(12, 17, 28, 0.78);
    padding: 0.62rem;
}

.metric.sold-out-surface {
    position: relative;
    overflow: hidden;
    background-clip: padding-box;
    background: rgba(12, 17, 28, 0.78);
    border-width: 2px;
    border-color: rgba(255, 183, 77, 0.46);
    box-shadow: 0 14px 30px rgba(255, 145, 48, 0.3), 0 0 24px rgba(255, 163, 71, 0.3);
}

.metric.metric-xtra-time {
    border-color: rgba(214, 78, 78, 0.7);
    background: rgba(94, 18, 24, 0.25);
    box-shadow: inset 0 0 0 1px rgba(214, 78, 78, 0.12), 0 8px 18px rgba(175, 40, 40, 0.12);
}

.metric.metric-xtra-time .metric-label {
    color: #ffd6d6;
}

.metric.metric-xtra-time .metric-action-btn {
    border-color: rgba(255, 141, 141, 0.7);
    background: rgba(199, 44, 44, 0.18);
    color: #ffdad8;
}

.metric.metric-xtra-time .metric-action-btn:hover {
    background: rgba(199, 44, 44, 0.28);
}

.xtra-time-state:empty {
    display: none;
}

.xtra-time-state {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.metric.metric-xtra-time.is-used {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(30, 41, 59, 0.35);
    box-shadow: none;
}

.metric.metric-xtra-time.is-used .metric-label {
    color: #cbd5e1;
}

.metric.metric-xtra-time.is-used .xtra-time-state {
    border: 1px solid rgba(203, 213, 225, 0.4);
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
}

.metric.metric-xtra-time.is-pending .xtra-time-state {
    border: 1px solid rgba(251, 191, 36, 0.6);
    background: rgba(120, 53, 15, 0.45);
    color: #fde68a;
}

.metric.metric-xtra-time .metric-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.metric.metric-xtra-time .metric-action-btn:disabled:hover {
    background: rgba(199, 44, 44, 0.18);
}

.metric.metric-winner-audit {
    border-color: rgba(74, 222, 128, 0.75);
    background: rgba(12, 44, 20, 0.28);
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.14), 0 8px 18px rgba(34, 197, 94, 0.12);
}

.metric.metric-winner-audit .metric-label {
    color: #c8ffe0;
}

.metric.metric-winner-audit .metric-value.metric-value-link {
    color: #7ee7a6;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.metric.metric-winner-audit .metric-value.metric-value-link:hover {
    color: #a8ffce;
}

.metric.sold-out-surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/static/img/raffles/sold_out.png');
    background-size: 75% auto;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.86;
    filter: saturate(1.22) contrast(1.14) brightness(1.06);
    animation: sold-out-pulse 2.7s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.metric.sold-out-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 17, 28, 0.72) 0%, rgba(12, 17, 28, 0.78) 100%);
    pointer-events: none;
    z-index: 1;
}

.metric.sold-out-surface > * {
    position: relative;
    z-index: 2;
}

@keyframes sold-out-pulse {
    0%,
    100% {
        opacity: 0.8;
        filter: saturate(1.12) contrast(1.08) brightness(1.04);
    }

    50% {
        opacity: 1;
        filter: saturate(1.48) contrast(1.28) brightness(1.16);
    }
}

.metric-label {
    color: #9fb0cc;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.22rem;
}

.metric-label .detail-help-dot {
    margin-left: 0.28rem;
    transform: translateY(-2px);
}

.metric-value {
    color: #ffe1bb;
    font-weight: 700;
}

.metric-action-btn {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.08rem auto 0;
    border: 1px solid rgba(255, 190, 128, 0.44);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 139, 22, 0.22), rgba(255, 71, 87, 0.16));
    color: #ffe9c9;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.metric-action-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 208, 161, 0.64);
    box-shadow: 0 10px 22px rgba(255, 111, 31, 0.23);
}

.metric-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

.detail-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-card {
    min-width: 0;
    border: 1px solid rgba(120, 135, 164, 0.35);
    border-radius: 12px;
    background: rgba(8, 12, 20, 0.9);
    padding: 0.95rem;
    box-shadow: var(--raffles-main-block-shadow), var(--raffles-main-block-inset);
}

#buy-tickets-section {
    transition: border-color 200ms ease, box-shadow 220ms ease, background 220ms ease, transform 200ms ease;
}

#buy-tickets-section.buy-state-open {
    border-color: rgba(76, 223, 146, 0.34);
    background: linear-gradient(155deg, rgba(8, 12, 20, 0.92), rgba(11, 30, 22, 0.9));
    box-shadow: 0 0 0 1px rgba(76, 223, 146, 0.12), 0 10px 24px rgba(12, 38, 26, 0.38);
}

#buy-tickets-section.buy-state-open:hover {
    border-color: rgba(76, 223, 146, 0.5);
    box-shadow: 0 0 0 1px rgba(76, 223, 146, 0.18), 0 14px 30px rgba(18, 58, 36, 0.45), 0 0 20px rgba(58, 204, 132, 0.16);
    transform: translateY(-1px);
}

#buy-tickets-section.buy-state-open #buy-tickets-open {
    border-color: rgba(76, 223, 146, 0.55);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.5), rgba(16, 185, 129, 0.46));
    color: #eafff2;
    box-shadow: 0 8px 20px rgba(16, 112, 69, 0.34);
}

#buy-tickets-section.buy-state-open #buy-tickets-open:hover {
    border-color: rgba(110, 255, 179, 0.68);
    box-shadow: 0 12px 24px rgba(16, 112, 69, 0.45), 0 0 18px rgba(62, 214, 143, 0.26);
    filter: saturate(1.06);
}

#buy-tickets-section.buy-state-locked {
    border-color: rgba(255, 127, 149, 0.36);
    background: linear-gradient(155deg, rgba(8, 12, 20, 0.93), rgba(34, 14, 24, 0.9));
    box-shadow: 0 0 0 1px rgba(255, 127, 149, 0.11), 0 10px 24px rgba(62, 17, 35, 0.4);
}

#buy-tickets-section.buy-state-locked:hover {
    border-color: rgba(255, 127, 149, 0.52);
    box-shadow: 0 0 0 1px rgba(255, 127, 149, 0.18), 0 14px 30px rgba(78, 20, 42, 0.46), 0 0 20px rgba(255, 127, 149, 0.16);
    transform: translateY(-1px);
}

/* Ended raffle: "Live now" cross-sell (same green as an open buy card). */
#buy-tickets-section.is-live-now,
#buy-tickets-section.is-live-now:hover {
    border-color: rgba(76, 223, 146, 0.3);
    background: linear-gradient(155deg, rgba(8, 12, 20, 0.92), rgba(11, 30, 22, 0.88));
    box-shadow: 0 0 0 1px rgba(76, 223, 146, 0.1), 0 10px 24px rgba(12, 38, 26, 0.34);
    transform: none;
}

.live-now-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.live-now-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.live-now-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.14rem 0.5rem 0.14rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(74, 222, 128, 0.45);
    background: rgba(22, 163, 74, 0.16);
    color: #bbf7d0;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

.live-now-dot {
    position: relative;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.85);
}

.live-now-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: #4ade80;
    animation: liveNowPulse 1.8s ease-out infinite;
}

@keyframes liveNowPulse {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(2.8); opacity: 0; }
}

.live-now-all {
    flex: 0 0 auto;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(76, 223, 146, 0.4);
    color: #bbf7d0;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.live-now-all:hover,
.live-now-all:focus-visible {
    border-color: rgba(110, 255, 179, 0.7);
    background: rgba(22, 163, 74, 0.18);
    color: #eafff2;
}

.live-now-lead {
    margin: 0 0 0.8rem;
    color: #9fb0cc;
    font-size: 0.86rem;
}

.live-now-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.live-now-card {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
    padding: 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(120, 135, 164, 0.3);
    background: rgba(14, 20, 32, 0.85);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.live-now-card:hover,
.live-now-card:focus-visible {
    border-color: rgba(76, 223, 146, 0.55);
    box-shadow: 0 10px 22px rgba(12, 38, 26, 0.45), 0 0 16px rgba(58, 204, 132, 0.14);
    transform: translateY(-2px);
    outline: none;
}

.live-now-card.is-flash {
    border-color: rgba(250, 204, 21, 0.4);
}

.live-now-art {
    position: relative;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(76, 223, 146, 0.12), rgba(255, 132, 0, 0.12));
}

.live-now-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-now-flash {
    position: absolute;
    left: 4px;
    bottom: 4px;
    padding: 0.08rem 0.36rem;
    border-radius: 999px;
    background: #facc15;
    color: #1a1200;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.live-now-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    flex: 1 1 auto;
}

.live-now-name {
    color: #f8fbff;
    font-weight: 800;
    font-size: 0.94rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-now-price {
    color: #c4d0e4;
    font-size: 0.8rem;
}

.live-now-price strong {
    color: #ffd27a;
}

.live-now-track {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(120, 135, 164, 0.25);
    overflow: hidden;
}

.live-now-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff8a00, #ff2d95);
}

.live-now-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: #9fb0cc;
    font-size: 0.74rem;
    white-space: nowrap;
}

.live-now-ends {
    color: #bbf7d0;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .live-now-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    .live-now-head {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .live-now-dot::after {
        animation: none;
    }

    .live-now-card,
    .live-now-card:hover,
    .live-now-card:focus-visible {
        transform: none;
        transition: none;
    }
}

#buy-tickets-section.buy-state-locked #buy-tickets-open[disabled] {
    border-color: rgba(255, 144, 166, 0.62);
    background: linear-gradient(140deg, rgba(88, 28, 47, 0.86), rgba(101, 33, 56, 0.82));
    color: #ffe3ea;
    box-shadow: 0 8px 20px rgba(64, 18, 35, 0.44), inset 0 0 0 1px rgba(255, 181, 196, 0.15);
    filter: saturate(0.98);
}

.detail-card h3 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    color: #f8fbff;
}

/* Raffle Proof: one card for custody, draw and settlement (replaces On-chain Audit + both timelines). */
.raffle-details-card .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.2rem;
}

.raffle-details-card .detail-list li.extra-info-item {
    grid-column: 1 / -1;
}

.raffle-proof {
    --proof-done: #4ade80;
    --proof-current: #fbbf24;
    --proof-attention: #fb7185;
    --proof-muted: #7d8ba1;
    border-color: rgba(89, 200, 167, 0.3);
    background:
        radial-gradient(circle at 6% 0%, rgba(59, 194, 150, 0.12), transparent 34%),
        radial-gradient(circle at 96% 100%, rgba(255, 151, 66, 0.07), transparent 38%),
        linear-gradient(145deg, rgba(8, 19, 24, 0.96), rgba(8, 12, 20, 0.94));
    padding: 1.15rem 1.15rem 1.05rem;
}

.raffle-proof-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.05rem;
}

.raffle-proof-title h3 {
    margin: 0 0 0.3rem;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

.raffle-proof-title p {
    margin: 0;
    max-width: 46rem;
    color: #a8b8d0;
    font-size: 0.84rem;
    line-height: 1.5;
}

.raffle-proof-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.38rem;
    flex: 0 0 auto;
}

.raffle-proof-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.62rem;
    border: 1px solid rgba(94, 234, 212, 0.34);
    border-radius: 999px;
    background: rgba(13, 71, 61, 0.28);
    color: #9af5d4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.raffle-proof-status::before {
    content: '';
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--proof-done);
    box-shadow: 0 0 9px rgba(74, 222, 128, 0.85);
}

.raffle-proof[data-proof-overall="live"] .raffle-proof-status::before,
.raffle-proof[data-proof-overall="settling"] .raffle-proof-status::before {
    animation: raffleProofBlink 1.6s ease-in-out infinite;
}

.raffle-proof[data-proof-overall="settling"] .raffle-proof-status {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(92, 64, 14, 0.3);
    color: #ffe3a1;
}

.raffle-proof[data-proof-overall="settling"] .raffle-proof-status::before {
    background: var(--proof-current);
    box-shadow: 0 0 9px rgba(251, 191, 36, 0.8);
}

.raffle-proof[data-proof-overall="attention"] .raffle-proof-status {
    border-color: rgba(251, 113, 133, 0.45);
    background: rgba(97, 22, 43, 0.34);
    color: #ffd1da;
}

.raffle-proof[data-proof-overall="attention"] .raffle-proof-status::before {
    background: var(--proof-attention);
    box-shadow: 0 0 9px rgba(251, 113, 133, 0.8);
}

.raffle-proof-count {
    color: #8f9fb8;
    font-size: 0.72rem;
    white-space: nowrap;
}

.raffle-proof-count strong {
    color: #e8fff4;
}

@keyframes raffleProofBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.raffle-proof-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.raffle-proof-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.9rem 0.95rem 0.95rem;
    border: 1px solid rgba(110, 128, 158, 0.24);
    border-radius: 12px;
    background: rgba(12, 18, 29, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Thin connector between neighbouring steps of the same row. */
.raffle-proof-step:not(:nth-child(3n))::after {
    content: '';
    position: absolute;
    top: 1.95rem;
    right: calc(-0.85rem - 1px);
    width: 0.85rem;
    height: 1px;
    background: rgba(112, 146, 185, 0.34);
}

.raffle-proof-step[data-state="done"]:not(:nth-child(3n))::after {
    background: rgba(74, 222, 128, 0.6);
}

.raffle-proof-step[data-state="done"] {
    border-color: rgba(74, 222, 128, 0.3);
    background: linear-gradient(150deg, rgba(16, 64, 45, 0.34), rgba(12, 22, 30, 0.72) 70%);
}

.raffle-proof-step[data-state="current"] {
    border-color: rgba(251, 191, 36, 0.42);
    background: linear-gradient(150deg, rgba(92, 64, 14, 0.32), rgba(12, 18, 29, 0.72) 70%);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08) inset, 0 8px 22px rgba(80, 55, 10, 0.18);
}

.raffle-proof-step[data-state="attention"] {
    border-color: rgba(251, 113, 133, 0.45);
    background: linear-gradient(150deg, rgba(97, 22, 43, 0.34), rgba(12, 18, 29, 0.72) 70%);
}

.raffle-proof-step[data-state="skipped"] {
    border-style: dashed;
    background: rgba(12, 18, 29, 0.5);
}

.raffle-proof-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(115, 139, 174, 0.6);
    border-radius: 999px;
    background: #121c2c;
    color: #8393aa;
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
}

.raffle-proof-step[data-state="done"] .raffle-proof-marker {
    border-color: rgba(74, 222, 128, 0.9);
    background: linear-gradient(145deg, #12714c, #0e4737);
    color: #dbffea;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.32);
}

.raffle-proof-step[data-state="current"] .raffle-proof-marker {
    border-color: rgba(251, 191, 36, 0.92);
    background: linear-gradient(145deg, #805718, #4a3210);
    color: #fff0bc;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.34);
    animation: settlementTimelinePulse 1.8s ease-in-out infinite;
}

.raffle-proof-step[data-state="attention"] .raffle-proof-marker {
    border-color: rgba(251, 113, 133, 0.9);
    background: linear-gradient(145deg, #85213c, #461425);
    color: #ffe1e7;
    box-shadow: 0 0 15px rgba(251, 113, 133, 0.3);
}

.raffle-proof-step[data-state="skipped"] .raffle-proof-marker {
    border-style: dashed;
    background: rgba(35, 44, 60, 0.76);
}

@keyframes settlementTimelinePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.raffle-proof-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.raffle-proof-eyebrow {
    color: var(--proof-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.raffle-proof-label {
    margin-top: 0.12rem;
    color: #f4f8ff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
}

.raffle-proof-explainer {
    margin: 0.32rem 0 0;
    color: #a8b8d0;
    font-size: 0.78rem;
    line-height: 1.48;
}

.raffle-proof-detail {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    max-width: 100%;
    margin-top: 0.55rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(125, 139, 161, 0.12);
    color: #b9c6da;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.raffle-proof-step[data-state="done"] .raffle-proof-detail {
    background: rgba(74, 222, 128, 0.1);
    color: #b9f5d2;
}

.raffle-proof-step[data-state="current"] .raffle-proof-detail {
    background: rgba(251, 191, 36, 0.12);
    color: #ffe3a1;
}

.raffle-proof-step[data-state="attention"] .raffle-proof-detail {
    background: rgba(251, 113, 133, 0.13);
    color: #ffd1da;
}

.raffle-proof-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.raffle-proof-actions:not(:has(> :not([hidden]))) {
    display: none;
}

.raffle-proof-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 1.75rem;
    padding: 0.22rem 0.56rem;
    border: 1px solid rgba(142, 232, 199, 0.32);
    border-radius: 999px;
    background: rgba(14, 71, 55, 0.3);
    color: #c9f8e6;
    font-size: 0.7rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.raffle-proof-chip[hidden] {
    display: none;
}

.raffle-proof-chip-meta {
    color: #8ee8c7;
    font-weight: 800;
}

.raffle-proof-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.01em;
}

.raffle-proof-seed {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(51, 65, 85, 0.3);
    color: #d7e1f0;
}

.raffle-proof-seed .raffle-proof-chip-meta {
    color: #9fb0c9;
}

.raffle-proof-replay {
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(120, 67, 10, 0.28);
    color: #ffd29a;
}

a.raffle-proof-chip:hover,
a.raffle-proof-chip:focus-visible {
    border-color: rgba(176, 255, 222, 0.7);
    background: rgba(20, 100, 74, 0.42);
    color: #ffffff;
    outline: none;
}

a.raffle-proof-replay:hover,
a.raffle-proof-replay:focus-visible {
    border-color: rgba(255, 199, 120, 0.8);
    background: rgba(150, 85, 14, 0.4);
}

a.raffle-proof-chip:focus-visible,
.raffle-proof-rule a:focus-visible {
    box-shadow: 0 0 0 2px rgba(142, 232, 199, 0.55);
}

.raffle-proof-rules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(120, 135, 164, 0.18);
}

.raffle-proof-rule {
    min-width: 0;
}

.raffle-proof-rule dt {
    color: var(--proof-muted);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.raffle-proof-rule dd {
    margin: 0.22rem 0 0;
    color: #ffe2bc;
    font-size: 0.9rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.raffle-proof-rule dd a {
    color: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    text-decoration: none;
    border-radius: 4px;
}

.raffle-proof-rule dd a:hover,
.raffle-proof-rule dd a:focus-visible {
    color: #fff3e0;
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

.raffle-proof-rule > span {
    display: block;
    margin-top: 0.16rem;
    color: #8f9fb8;
    font-size: 0.72rem;
    line-height: 1.4;
}

@media (max-width: 1100px) {
    .raffle-proof-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .raffle-proof-step:not(:nth-child(3n))::after {
        content: none;
    }

    .raffle-proof-rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .raffle-details-card .detail-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .raffle-proof {
        padding: 0.95rem;
    }

    .raffle-proof-head {
        flex-direction: column;
        gap: 0.7rem;
    }

    .raffle-proof-summary {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }

    /* Vertical stepper: markers joined by one line, no card chrome. */
    .raffle-proof-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .raffle-proof-step,
    .raffle-proof-step[data-state] {
        padding: 0 0 1rem;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .raffle-proof-step:last-child {
        padding-bottom: 0;
    }

    .raffle-proof-step:not(:last-child)::before {
        content: '';
        position: absolute;
        top: 2.1rem;
        bottom: 0;
        left: calc(1.05rem - 0.5px);
        width: 1px;
        background: rgba(112, 146, 185, 0.34);
    }

    .raffle-proof-step[data-state="done"]:not(:last-child)::before {
        background: rgba(74, 222, 128, 0.55);
    }

    .raffle-proof-label {
        font-size: 0.92rem;
    }

    .raffle-proof-rules {
        gap: 0.8rem 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .raffle-proof-step[data-state="current"] .raffle-proof-marker,
    .raffle-proof-status::before {
        animation: none !important;
    }
}

.detail-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.detail-help-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.92rem;
    height: 0.92rem;
    border-radius: 999px;
    border: 1px solid rgba(139, 92, 246, 0.62);
    background: rgba(16, 22, 36, 0.9);
    color: #d7def0;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    text-transform: none;
    box-shadow: 0 0 8px rgba(20, 241, 149, 0.12), 0 0 12px rgba(153, 69, 255, 0.16);
    cursor: help;
    user-select: none;
}

.detail-help-dot[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    min-width: 220px;
    max-width: 340px;
    padding: 0.46rem 0.58rem;
    border-radius: 9px;
    border: 1px solid rgba(139, 92, 246, 0.45);
    background: rgba(7, 10, 17, 0.96);
    color: #d9e3f6;
    font-size: 0.72rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: normal;
    box-shadow: 0 0 16px rgba(20, 241, 149, 0.16), 0 0 26px rgba(153, 69, 255, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 35;
}

.detail-help-dot[data-tooltip]:hover::after,
.detail-help-dot[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.detail-help-dot.tooltip-flip-right[data-tooltip]::after {
    left: auto;
    right: 0;
    transform: translateY(4px);
}

.detail-help-dot.tooltip-flip-right[data-tooltip]:hover::after,
.detail-help-dot.tooltip-flip-right[data-tooltip]:focus-visible::after {
    transform: translateY(0);
}

.detail-help-dot.tooltip-flip-left[data-tooltip]::after {
    left: 0;
    right: auto;
    transform: translateY(4px);
}

.detail-help-dot.tooltip-flip-left[data-tooltip]:hover::after,
.detail-help-dot.tooltip-flip-left[data-tooltip]:focus-visible::after {
    transform: translateY(0);
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

/* Label and value share a line while both fit; otherwise the value
   drops below the label (right-aligned) instead of being squeezed
   into a one-character column. */
.detail-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.2rem 0.7rem;
    color: #c4d0e4;
    font-size: 0.92rem;
}

.detail-list li strong {
    flex: 0 1 auto;
    margin-left: auto;
    color: #ffe2bc;
    font-weight: 700;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    overflow-wrap: anywhere;
}

.detail-list li > span:first-child {
    flex: 0 1 auto;
    min-width: 0;
}

.detail-list li.extra-info-item {
    display: block;
}

.detail-list li[hidden] {
    display: none;
}

.detail-list li strong.winner-value.is-pending {
    color: #9fb0cc;
    font-weight: 600;
}

.detail-list li.extra-info-item strong {
    text-align: left;
}

.detail-list li.extra-info-item span {
    display: block;
    margin-bottom: 0.25rem;
}

.raffle-extra-info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.raffle-extra-info-text {
    display: block;
    color: #ffe2bc;
    line-height: 1.45;
    font-size: 0.91rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.raffle-extra-info-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid rgba(255, 220, 182, 0.32);
    border-radius: 0.45rem;
    background: rgba(27, 30, 47, 0.75);
    color: #ffe2bc;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.raffle-extra-info-edit-btn:hover,
.raffle-extra-info-edit-btn:focus-visible {
    border-color: rgba(255, 220, 182, 0.58);
    background: rgba(44, 49, 75, 0.9);
    transform: translateY(-1px);
    outline: none;
}

.raffle-extra-info-edit-btn svg {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}

.winner-bubble {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(76, 223, 146, 0.48);
    background: rgba(24, 98, 62, 0.32);
    box-shadow: 0 0 0 1px rgba(149, 255, 202, 0.08) inset;
}

.winner-value {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.winner-trophy {
    display: inline-flex;
    filter: drop-shadow(0 0 6px rgba(255, 194, 61, 0.55));
}

.winner-gold-pill {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 232, 170, 0.95);
    background: linear-gradient(135deg, #ffe6a3 0%, #ffc23d 45%, #f0a500 70%, #ffd77a 100%);
    color: #2a1600;
    font-weight: 900;
    box-shadow: 0 0 14px rgba(255, 194, 61, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.winner-gold-pill::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-20deg);
    animation: winnerGoldShine 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes winnerGoldShine {
    0%, 60% { left: -60%; }
    90%, 100% { left: 130%; }
}

.winner-gold-pill .bubble-player-link:hover,
.winner-gold-pill .bubble-player-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .winner-gold-pill::after {
        animation: none;
        display: none;
    }
}

.creator-bubble {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(199, 122, 147, 0.62);
    background: linear-gradient(135deg, rgba(63, 20, 37, 0.88), rgba(36, 14, 27, 0.9));
    box-shadow: 0 0 10px rgba(99, 36, 61, 0.28);
    backdrop-filter: blur(2px);
}

.bubble-player-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.bubble-player-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.timeline {
    margin-top: 1rem;
}

.timeline ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.timeline li {
    border-left: 3px solid rgba(255, 151, 66, 0.5);
    padding-left: 0.72rem;
    color: #d5deef;
    font-size: 0.92rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.winner-audit-card {
    margin-top: 1rem;
}

.winner-audit-head {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.winner-audit-replay-btn {
    border: 1px solid rgba(134, 227, 173, 0.45);
    background: linear-gradient(145deg, rgba(18, 83, 58, 0.45), rgba(10, 54, 38, 0.55));
    color: #d6ffe9;
    border-radius: 9px;
    padding: 0.48rem 0.78rem;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.winner-audit-replay-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(170, 255, 210, 0.62);
    box-shadow: 0 8px 18px rgba(13, 79, 54, 0.3);
}

.winner-audit-replay-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.winner-audit-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.75rem;
}

.winner-audit-metric {
    border: 1px solid rgba(108, 128, 158, 0.35);
    border-radius: 9px;
    background: rgba(12, 18, 30, 0.88);
    padding: 0.52rem 0.62rem;
}

.winner-audit-metric .label {
    display: block;
    color: #9aaed0;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 0.16rem;
    letter-spacing: 0.04em;
}

.winner-audit-metric .value {
    color: #ffe0bc;
    font-size: 0.92rem;
    font-weight: 700;
    word-break: break-word;
}

.winner-audit-participants {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.winner-audit-participant {
    border: 1px solid rgba(93, 112, 139, 0.34);
    border-radius: 8px;
    background: rgba(30, 0, 60, 0.2);
    padding: 0.44rem 0.56rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #d8e2f5;
}

.winner-audit-sequence {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
    gap: 0.35rem;
}

.winner-audit-slot {
    border: 1px solid rgba(89, 106, 130, 0.35);
    border-radius: 8px;
    background: rgba(12, 16, 26, 0.85);
    padding: 0.36rem 0.44rem;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.winner-audit-slot-index {
    display: block;
    color: #8fa3c9;
    font-size: 0.68rem;
    margin-bottom: 0.1rem;
}

.winner-audit-slot-name {
    color: #e8efff;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
}

.winner-audit-slot.is-active {
    border-color: rgba(255, 182, 94, 0.72);
    background: linear-gradient(145deg, rgba(109, 66, 18, 0.44), rgba(77, 47, 15, 0.46));
    box-shadow: 0 0 0 1px rgba(255, 193, 124, 0.16) inset;
}

.winner-audit-slot.is-winner {
    border-color: rgba(110, 236, 162, 0.84);
    background: linear-gradient(145deg, rgba(23, 96, 65, 0.55), rgba(14, 68, 47, 0.56));
    box-shadow: 0 0 0 1px rgba(184, 255, 219, 0.18) inset, 0 0 16px rgba(85, 214, 146, 0.22);
    position: relative;
    overflow: hidden;
    animation: winnerAuditSlotPulse 1s ease-in-out infinite;
}

.winner-audit-slot.is-winner::after {
    content: '';
    position: absolute;
    inset: -40% -10%;
    background: linear-gradient(120deg, transparent 30%, rgba(215, 255, 234, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: winnerAuditShimmer 1.45s ease-out infinite;
    pointer-events: none;
}

@keyframes winnerAuditSlotPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(184, 255, 219, 0.22) inset, 0 0 16px rgba(85, 214, 146, 0.28);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(201, 255, 227, 0.32) inset, 0 0 26px rgba(85, 214, 146, 0.46), 0 0 40px rgba(85, 214, 146, 0.28);
        transform: scale(1.01);
    }
}

@keyframes winnerAuditShimmer {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

.winner-audit-status {
    margin-top: 0.6rem;
    color: #9cb2d9;
    font-size: 0.82rem;
}

.full-span {
    grid-column: 1 / -1;
}

.purchase-stream {
    display: grid;
    gap: 0.6rem;
}

.purchase-entry {
    border: 1px solid rgba(101, 116, 146, 0.42);
    border-radius: 10px;
    background: rgba(13, 18, 29, 0.82);
    overflow: hidden;
}

.purchase-entry summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.64rem 0.72rem;
    color: #e8efff;
    font-size: 0.9rem;
    font-weight: 700;
}

.purchase-entry summary::-webkit-details-marker {
    display: none;
}

.purchase-summary-right {
    color: #ffd6a8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.purchase-buyer-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.purchase-user {
    color: #ffdeba;
    font-size: 0.79rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(255, 183, 116, 0.45);
    border-radius: 999px;
    background: rgba(255, 123, 0, 0.16);
}

.purchase-user-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.purchase-user-link:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.purchase-body {
    border-top: 1px solid rgba(101, 116, 146, 0.3);
    padding: 0.62rem 0.72rem;
    display: grid;
    gap: 0.45rem;
    color: #c4d0e4;
    font-size: 0.86rem;
}

.purchase-label {
    color: #9eb0cd;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.purchase-amount {
    color: #ffe4c1;
    font-weight: 700;
    margin-left: 0.25rem;
}

.purchase-link {
    color: #ffd7ad;
    text-decoration: none;
    word-break: break-all;
}

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

.purchase-entry summary {
    transition: background-color 0.2s ease;
}

.purchase-entry summary:hover {
    background: rgba(255, 255, 255, 0.035);
}

.purchase-entry summary:focus-visible {
    outline: 2px solid rgba(255, 215, 170, 0.85);
    outline-offset: -2px;
    border-radius: 10px;
}

.purchase-summary-right {
    white-space: nowrap;
}

.purchase-summary-right::after {
    content: '';
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    margin-left: 0.6em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.75;
    transform: translateY(-0.22em) rotate(45deg);
    transition: transform 0.2s ease;
}

.purchase-entry[open] .purchase-summary-right::after {
    transform: translateY(0.05em) rotate(225deg);
}

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

.purchase-body > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.purchase-more-btn {
    display: none;
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.62rem 1rem;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 179, 71, 0.5);
    border-radius: 10px;
    background: rgba(255, 123, 0, 0.1);
    color: #ffd8a1;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.purchase-more-btn:hover {
    background: rgba(255, 123, 0, 0.18);
    border-color: rgba(255, 179, 71, 0.8);
}

.purchase-more-btn:focus-visible {
    outline: 2px solid rgba(255, 215, 170, 0.9);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .purchase-entry summary,
    .purchase-summary-right::after,
    .purchase-more-btn {
        transition: none;
    }
}

.purchase-claim-row {
    border-top: 1px dashed rgba(101, 116, 146, 0.35);
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    display: grid;
    gap: 0.4rem;
}

.purchase-claim-btn {
    border: 1px solid rgba(255, 188, 120, 0.55);
    border-radius: 9px;
    background: rgba(255, 132, 0, 0.22);
    color: #fff4e3;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.42rem 0.62rem;
    width: fit-content;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease;
}

.purchase-claim-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(255, 132, 0, 0.32);
}

.purchase-claim-btn:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
}

.purchase-claim-feedback {
    min-height: 1.1em;
    color: #aebdd8;
    font-size: 0.76rem;
    line-height: 1.3;
}

.purchase-claim-feedback.success {
    color: #9ef3c7;
}

.purchase-claim-feedback.error {
    color: #ff9d9d;
}

.buy-form {
    display: grid;
    gap: 0.65rem;
}

.wallet-row {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    flex-wrap: wrap;
}

.wallet-btn {
    border: 1px solid rgba(255, 188, 120, 0.55);
    border-radius: 10px;
    background: rgba(255, 132, 0, 0.28);
    color: #fff4e3;
    font-weight: 700;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
}

.wallet-btn.disconnect {
    border-color: rgba(255, 127, 149, 0.6);
    background: rgba(150, 48, 68, 0.36);
    color: #ffdce4;
}

.wallet-btn.done {
    border-color: rgba(26, 209, 158, 0.66);
    background: rgba(26, 209, 158, 0.24);
    color: #dcfff4;
}

.advanced-block {
    border: 1px solid rgba(96, 111, 137, 0.34);
    border-radius: 9px;
    background: rgba(13, 18, 29, 0.85);
    padding: 0.55rem 0.62rem;
}

.advanced-block summary {
    cursor: pointer;
    color: #ffe2bc;
    font-size: 0.84rem;
    font-weight: 700;
}

.buy-field {
    display: grid;
    gap: 0.28rem;
}

.buy-field label {
    color: #a9b8d1;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buy-field input {
    border: 1px solid rgba(110, 126, 154, 0.45);
    border-radius: 9px;
    background: rgba(14, 20, 31, 0.92);
    color: #f2f6ff;
    padding: 0.58rem 0.62rem;
}

.buy-field select {
    border: 1px solid rgba(110, 126, 154, 0.45);
    border-radius: 9px;
    background: rgba(14, 20, 31, 0.92);
    color: #f2f6ff;
    padding: 0.58rem 0.62rem;
}

.buy-submit {
    margin-top: 0.2rem;
    border: 1px solid rgba(255, 188, 120, 0.55);
    border-radius: 10px;
    background: linear-gradient(140deg, rgba(255, 132, 0, 0.48), rgba(255, 20, 147, 0.42));
    color: #fff4e3;
    font-weight: 800;
    padding: 0.62rem 0.8rem;
    cursor: pointer;
}

.buy-submit:disabled {
    cursor: not-allowed;
    border-color: var(--raffles-disabled-btn-border);
    background: var(--raffles-disabled-btn-bg);
    color: var(--raffles-disabled-btn-color);
    box-shadow: var(--raffles-disabled-btn-shadow);
    opacity: 1;
    filter: saturate(0.9);
}

.buy-note {
    color: #b9c7de;
    font-size: 0.82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.buy-availability {
    margin: 0.15rem 0 0.82rem;
    border: 1px solid rgba(112, 132, 164, 0.38);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(9, 14, 24, 0.92), rgba(11, 23, 20, 0.86));
    padding: 0.6rem 0.72rem 0.68rem;
    box-shadow: inset 0 0 0 1px rgba(168, 190, 226, 0.08), 0 10px 22px rgba(5, 10, 18, 0.34);
}

.buy-availability-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.42rem;
}

.buy-availability-title {
    color: #d9e8ff;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.buy-availability-badge {
    border: 1px solid rgba(84, 233, 160, 0.46);
    border-radius: 999px;
    background: rgba(16, 120, 76, 0.34);
    color: #d5ffec;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.16rem 0.5rem;
    white-space: nowrap;
}

.buy-availability.low .buy-availability-badge {
    border-color: rgba(255, 184, 107, 0.55);
    background: rgba(142, 88, 16, 0.34);
    color: #ffe8cb;
}

.buy-availability.critical .buy-availability-badge {
    border-color: rgba(255, 133, 159, 0.58);
    background: rgba(125, 34, 58, 0.36);
    color: #ffe1e9;
    animation: buyAvailabilityCriticalBadgePulse 1.9s ease-in-out infinite;
}

.buy-availability.critical {
    animation: buyAvailabilityCriticalCardPulse 2.1s ease-in-out infinite;
}

.buy-availability.soldout .buy-availability-badge {
    border-color: rgba(255, 128, 128, 0.6);
    background: rgba(108, 24, 24, 0.42);
    color: #ffe5e5;
}

.buy-availability-track {
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.buy-availability-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #16a34a 0%, #10b981 55%, #34d399 100%);
    transition: width 0.8s ease, filter 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.36);
}

.buy-availability.low .buy-availability-fill {
    background: linear-gradient(90deg, #f59e0b 0%, #fb923c 55%, #f97316 100%);
    box-shadow: 0 0 11px rgba(245, 158, 11, 0.4);
}

.buy-availability.critical .buy-availability-fill,
.buy-availability.soldout .buy-availability-fill {
    background: linear-gradient(90deg, #ef4444 0%, #ec4899 100%);
    box-shadow: 0 0 11px rgba(239, 68, 68, 0.44);
}

.buy-availability.critical .buy-availability-fill {
    animation: buyAvailabilityCriticalBarPulse 1.55s ease-in-out infinite;
}

@keyframes buyAvailabilityCriticalBarPulse {
    0%, 100% {
        filter: saturate(1) brightness(1);
        box-shadow: 0 0 9px rgba(239, 68, 68, 0.34);
    }
    50% {
        filter: saturate(1.18) brightness(1.08);
        box-shadow: 0 0 16px rgba(236, 72, 153, 0.56);
    }
}

@keyframes buyAvailabilityCriticalBadgePulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 133, 159, 0);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 133, 159, 0.36);
    }
}

@keyframes buyAvailabilityCriticalCardPulse {
    0%, 100% {
        border-color: rgba(255, 133, 159, 0.4);
    }
    50% {
        border-color: rgba(255, 133, 159, 0.62);
    }
}

.buy-availability-foot {
    margin-top: 0.44rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.42rem 0.75rem;
    color: #cad7ee;
    font-size: 0.76rem;
    line-height: 1.3;
}

.buy-availability-foot strong {
    color: #f7fbff;
    font-weight: 800;
}

.buy-availability-critical-hint {
    margin-top: 0.36rem;
    color: #ffd7e4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-2px);
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease;
    pointer-events: none;
    text-shadow: 0 0 8px rgba(255, 117, 156, 0.22);
}

.buy-availability-critical-hint.is-active {
    opacity: 1;
    max-height: 1.4rem;
    transform: translateY(0);
}

.buy-availability-critical-hint.reveal-once {
    animation: buyAvailabilityCriticalHintFade 0.9s ease-out 1;
}

@keyframes buyAvailabilityCriticalHintFade {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }
    65% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.buy-note.basc-status {
    margin-top: -0.15rem;
    padding: 0.3rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(110, 126, 154, 0.35);
    background: rgba(14, 20, 31, 0.55);
    font-size: 0.79rem;
}

.buy-note.basc-status.ok {
    border-color: rgba(76, 223, 146, 0.45);
    color: #d6ffea;
}

.buy-note.basc-status.warn {
    border-color: rgba(255, 127, 149, 0.48);
    color: #ffd7df;
}

.buy-note.buy-auto-sync-note {
    margin-top: -0.12rem;
    padding: 0.28rem 0.46rem;
    border-radius: 8px;
    border: 1px solid rgba(76, 223, 146, 0.32);
    background: rgba(15, 46, 34, 0.32);
    color: #d8ffea;
    font-size: 0.77rem;
}

.buy-feedback {
    display: none;
    border-radius: 9px;
    padding: 0.55rem 0.62rem;
    font-size: 0.86rem;
}

.buy-feedback.success {
    display: block;
    border: 1px solid rgba(76, 223, 146, 0.48);
    background: rgba(25, 92, 61, 0.35);
    color: #d6ffea;
}

.buy-feedback.error {
    display: block;
    border: 1px solid rgba(255, 127, 149, 0.5);
    background: rgba(116, 33, 56, 0.32);
    color: #ffd7df;
}

.settle-divider {
    margin: 1rem 0 0.8rem;
    border-top: 1px solid rgba(106, 121, 149, 0.35);
    padding-top: 0.85rem;
}

.raffle-notice-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1600;
}

.raffle-notice-modal.open {
    display: flex;
}

.raffle-warning-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 15, 0.74);
}

.raffle-warning-panel {
    position: relative;
    width: min(96vw, 500px);
    border: 1px solid rgba(126, 142, 172, 0.5);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(10, 14, 24, 0.98), rgba(8, 11, 20, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.48);
    padding: 1rem;
}

.raffle-warning-title {
    color: #ffe7c9;
    font-size: 1.03rem;
    font-weight: 800;
}

.raffle-warning-actions {
    margin-top: 0.35rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
}

.raffle-modal-btn {
    border: 1px solid rgba(124, 138, 168, 0.48);
    border-radius: 10px;
    background: rgba(48, 60, 87, 0.35);
    color: #d8e2f6;
    padding: 0.46rem 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.raffle-modal-btn.primary {
    border-color: rgba(255, 190, 128, 0.58);
    background: linear-gradient(130deg, rgba(255, 123, 0, 0.4), rgba(255, 20, 147, 0.35));
    color: #fff2e0;
}

.raffle-modal-btn.buy-basc {
    border-color: rgba(76, 223, 146, 0.55);
    background: linear-gradient(130deg, rgba(34, 197, 94, 0.18), rgba(20, 184, 166, 0.24));
    color: #e9fff7;
    font-weight: 800;
}

.raffle-modal-btn.buy-basc:hover {
    background: linear-gradient(130deg, rgba(34, 197, 94, 0.28), rgba(20, 184, 166, 0.34));
}

.raffle-modal-btn:disabled {
    cursor: not-allowed;
    border-color: var(--raffles-disabled-btn-border);
    background: var(--raffles-disabled-btn-bg);
    color: var(--raffles-disabled-btn-color);
    box-shadow: var(--raffles-disabled-btn-shadow);
    opacity: 1;
    filter: saturate(0.9);
}

.xtra-time-subtext {
    margin-top: 0.35rem;
    color: #aebddb;
    font-size: 0.82rem;
}

.xtra-time-plan-grid {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.xtra-time-plan-btn {
    border: 1px solid rgba(118, 137, 171, 0.48);
    border-radius: 10px;
    background: rgba(16, 22, 36, 0.8);
    color: #dce7ff;
    text-align: left;
    padding: 0.6rem 0.72rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    transition: border-color 130ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.xtra-time-plan-btn:hover {
    border-color: rgba(255, 201, 145, 0.62);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(255, 119, 39, 0.16);
}

.xtra-time-plan-btn.is-selected {
    border-color: rgba(255, 187, 118, 0.74);
    background: linear-gradient(140deg, rgba(255, 129, 24, 0.22), rgba(255, 65, 93, 0.16));
    box-shadow: 0 0 0 1px rgba(255, 205, 157, 0.22);
}

.xtra-time-plan-days {
    font-size: 0.94rem;
    font-weight: 800;
    color: #ffe8c7;
}

.xtra-time-plan-fee {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffd29e;
    white-space: nowrap;
}

.purchase-success-modal .raffle-warning-panel {
    border-color: rgba(76, 223, 146, 0.48);
    width: min(96vw, 560px);
}

.purchase-success-modal.open .raffle-warning-panel {
    animation: purchase-pop 220ms ease-out;
}

.raffle-ending-modal .raffle-warning-panel {
    border-color: rgba(255, 93, 120, 0.7);
    width: min(96vw, 620px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 0 18px rgba(255, 86, 112, 0.38), 0 0 34px rgba(255, 64, 96, 0.24);
    animation: raffleEndingPulseRed 1.15s ease-in-out infinite;
}

.raffle-ending-modal.winner .raffle-warning-panel {
    border-color: rgba(76, 223, 146, 0.92);
    box-shadow: 0 0 18px rgba(76, 223, 146, 0.4), 0 0 36px rgba(40, 199, 111, 0.28);
    animation: raffleEndingPulseGreen 1.05s ease-in-out infinite;
}

@keyframes raffleEndingPulseRed {
    0%, 100% {
        box-shadow: 0 0 14px rgba(255, 86, 112, 0.34), 0 0 28px rgba(255, 64, 96, 0.22);
    }
    50% {
        box-shadow: 0 0 26px rgba(255, 86, 112, 0.58), 0 0 46px rgba(255, 64, 96, 0.34);
    }
}

@keyframes raffleEndingPulseGreen {
    0%, 100% {
        box-shadow: 0 0 14px rgba(76, 223, 146, 0.36), 0 0 30px rgba(40, 199, 111, 0.24);
    }
    50% {
        box-shadow: 0 0 28px rgba(76, 223, 146, 0.64), 0 0 50px rgba(40, 199, 111, 0.36);
    }
}

.raffle-ending-title {
    color: #ffe7cf;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.raffle-ending-subtitle {
    margin-top: 0.2rem;
    color: #ffd4a5;
    font-size: 0.9rem;
}

.raffle-ending-prize {
    margin-top: 0.22rem;
    color: #ffe7cf;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.95;
}

.raffle-ending-reel {
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 168, 115, 0.45);
    border-radius: 12px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 123, 0, 0.18), rgba(10, 14, 24, 0.92));
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem;
    position: relative;
    overflow: visible;
}

.raffle-ending-reel-name.winner-halo {
    color: #ffe7b3;
    background: linear-gradient(135deg, rgba(133, 94, 36, 0.26) 0%, rgba(198, 146, 57, 0.24) 36%, rgba(255, 221, 132, 0.2) 68%, rgba(255, 241, 191, 0.24) 100%);
    border: 1px solid rgba(226, 178, 86, 0.65);
    border-radius: 14px;
    padding: 0.2rem 0.8rem;
    box-shadow: 0 0 16px rgba(176, 125, 40, 0.35), 0 0 28px rgba(255, 205, 110, 0.45), 0 0 42px rgba(255, 234, 156, 0.26);
    animation: winnerNameHaloPulse 1.05s ease-in-out infinite;
    overflow: hidden;
}

.raffle-ending-reel-name.winner-shimmer::after {
    content: '';
    position: absolute;
    top: -18%;
    left: -32%;
    width: 30%;
    height: 136%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 247, 221, 0.88) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: winnerShimmerSweep 1.6s ease-out 1;
    z-index: 2;
}

.raffle-ending-reel.impact {
    animation: raffleEndingImpactFlash 300ms ease-out;
}

.raffle-ending-reel.flash-impact {
    animation: raffleEndingGoldImpact 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.raffle-ending-reel.flash-impact::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 244, 198, 0.42), rgba(255, 204, 94, 0.22) 45%, rgba(255, 255, 255, 0) 75%);
    pointer-events: none;
    animation: raffleEndingGoldImpactGlow 280ms ease-out;
    z-index: 1;
}

.raffle-ending-reel.flash-impact::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -34%;
    width: 34%;
    height: 150%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 242, 203, 0.66), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    pointer-events: none;
    animation: raffleEndingGoldImpactSweep 1.1s ease-out 1;
    z-index: 2;
}

.raffle-ending-reel-name {
    font-size: clamp(1.35rem, 4.7vw, 2rem);
    font-weight: 900;
    color: #fff2e3;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.45);
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}

.raffle-ending-timer {
    margin-top: 0.36rem;
    text-align: center;
    color: #ffd6a8;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    min-height: 1.2rem;
}

.raffle-ending-modal.impact-shake .raffle-warning-panel {
    animation: raffleEndingImpactShake 120ms cubic-bezier(0.36, 0, 0.66, -0.2);
}

.raffle-ending-reel-name.impact {
    animation: raffleEndingWinnerImpact 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes raffleEndingImpactFlash {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        filter: brightness(1);
    }
    35% {
        box-shadow: 0 0 22px rgba(255, 245, 224, 0.38), 0 0 38px rgba(255, 179, 71, 0.28);
        filter: brightness(1.14);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
        filter: brightness(1);
    }
}

@keyframes raffleEndingWinnerImpact {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    55% {
        transform: scale(1.12);
        filter: brightness(1.18);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes raffleEndingGoldImpact {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    48% {
        transform: scale(1.04);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes raffleEndingGoldImpactGlow {
    0% {
        opacity: 0;
        transform: scale(0.86);
    }
    52% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0;
        transform: scale(1.16);
    }
}

@keyframes raffleEndingGoldImpactSweep {
    0% {
        left: -36%;
        opacity: 0;
    }
    14% {
        opacity: 1;
    }
    100% {
        left: 124%;
        opacity: 0;
    }
}

@keyframes raffleEndingImpactShake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    50% { transform: translateX(7px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes winnerNameHaloPulse {
    0%, 100% {
        opacity: 0.72;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes winnerShimmerSweep {
    0% {
        left: -34%;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    100% {
        left: 124%;
        opacity: 0;
    }
}

.raffle-ending-note {
    margin-top: 0.55rem;
    color: #cdd8eb;
    font-size: 0.84rem;
    text-align: center;
}

.raffle-ending-winner {
    margin-top: 0.6rem;
    text-align: center;
    color: #7cf2a2;
    font-size: 1.03rem;
    font-weight: 800;
    min-height: 1.4rem;
}

.purchase-success-title {
    color: #d6ffea;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.purchase-success-copy {
    color: #c4d0e4;
    line-height: 1.5;
    margin: 0;
}

.purchase-success-link {
    margin-top: 0.7rem;
    display: inline-flex;
    text-decoration: none;
    border: 1px solid rgba(255, 190, 128, 0.58);
    border-radius: 999px;
    background: rgba(255, 123, 0, 0.2);
    color: #ffe6c8;
    padding: 0.42rem 0.78rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.purchase-success-link:hover {
    background: rgba(255, 123, 0, 0.3);
}

@keyframes purchase-pop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

    .hero-body-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-art {
        min-height: 600px; height: auto;
    }

    .hero-art-focus-stage {
        width: min(95vw, 1480px);
        height: min(74vh, 880px);
        border-radius: 14px;
    }

    .hero-art-focus-hint {
        font-size: 0.68rem;
        bottom: 0.62rem;
        padding: 0.22rem 0.58rem;
    }

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

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: contents;
    }

    .topbar-countdown {
        order: -1;
    }

}

@media (max-width: 760px) {
    .detail-page {
        padding: 1rem;
    }

    /* Purchase Transparency: buyer / user + time, nothing wider than the card. */
    .purchase-entry summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.4rem 0.6rem;
        padding: 0.62rem 0.7rem;
        font-size: 0.86rem;
    }

    .purchase-buyer-tag {
        display: contents;
    }

    .purchase-buyer-line {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
    }

    .purchase-user {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .purchase-summary-right {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }

    .purchase-body {
        padding: 0.62rem 0.7rem;
        font-size: 0.82rem;
    }

    .purchase-stream:not(.is-expanded) > .purchase-entry:nth-child(n+6):not([open]) {
        display: none;
    }

    #purchase-transparency-root:has(.purchase-entry:nth-child(6)) + .purchase-more-btn {
        display: flex;
    }

    /* Seed hash gets the full row instead of wrapping inside half a column. */
    .winner-audit-metric:nth-child(3):last-child {
        grid-column: 1 / -1;
    }
}

