
/* =========================================================
   В ГОСТЯХ У ГОРДОНА — custom design for Sortition prizes
   This file is loaded after the active GameCMS theme CSS.
   ========================================================= */

.sortition #prizes {
    position: relative;
    display: block;
    text-align: left;
    margin-left: -30px;
    margin-right: -30px;
    padding: 22px 30px 30px;
    background:
        radial-gradient(circle at 15% 20%, rgba(126, 87, 255, .20), transparent 32%),
        radial-gradient(circle at 85% 80%, rgba(255, 35, 116, .16), transparent 35%),
        linear-gradient(135deg, rgba(17, 14, 35, .96), rgba(38, 20, 66, .96));
    border-top: 1px solid rgba(178, 151, 255, .22);
    border-bottom: 1px solid rgba(255, 64, 147, .18);
    box-sizing: border-box;
}

/* Place label: 1 місце / 2 місце / 3 місце */
.sortition #prizes h5 {
    position: relative;
    width: fit-content;
    min-width: 155px;
    margin: 16px 0 12px;
    padding: 10px 20px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .2px;
    background: linear-gradient(135deg, rgba(38, 31, 70, .98), rgba(77, 32, 105, .98));
    border: 1px solid rgba(191, 157, 255, .75);
    border-radius: 12px;
    box-shadow:
        0 5px 18px rgba(0,0,0,.32),
        inset 0 0 18px rgba(145, 105, 255, .10);
}

/* Decorative gradient outline */
.sortition #prizes h5::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 14px;
    background: linear-gradient(90deg, #7b5cff, #d93dff, #ff3d8d, #7b5cff);
    opacity: .75;
}

/* Prize card */
.sortition #prizes .prize {
    display: flex;
    position: relative;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 142px;
    margin: 0 0 18px;
    padding: 14px 22px 14px 16px;
    box-sizing: border-box;
    line-height: normal;
    overflow: hidden;
    cursor: pointer;

    background:
        linear-gradient(135deg, rgba(31, 27, 47, .96), rgba(48, 28, 68, .94));
    border: 1px solid rgba(151, 126, 255, .45);
    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.06);

    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sortition #prizes .prize:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 105, 255, .80);
    box-shadow:
        0 12px 30px rgba(0,0,0,.35),
        0 0 20px rgba(139, 91, 255, .16),
        inset 0 1px 0 rgba(255,255,255,.08);
}

/* Small decorative vertical accent */
.sortition #prizes .prize::before {
    content: "";
    width: 4px;
    align-self: stretch;
    flex: 0 0 4px;
    border-radius: 5px;
    background: linear-gradient(180deg, #7a63ff, #e43cff, #ff4b91);
    box-shadow: 0 0 12px rgba(190, 71, 255, .35);
    order: 0;
}

/* Prize image */
.sortition #prizes .prize .sortition-prize-icon {
    display: block;
    flex: 0 0 170px;
    width: 170px;
    height: 116px;
    object-fit: contain;
    object-position: center;
    margin: 0;
}

/* Text area */
.sortition #prizes .prize > span {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    color: #fff;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 750;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

.sortition #prizes .prize > span + span {
    margin-top: 4px;
}

.sortition #prizes .prize > span small {
    display: block;
    color: #bfaeff;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
}

/* The old Font Awesome icon is no longer needed */
.sortition #prizes .prize i.fa {
    display: none;
}

.sortition #prizes .prize p {
    margin: 8px 0 0;
}

/* Modal remains compatible with the existing module */
.sortition #prizes .modal {
    text-align: left;
}

/* Mobile */
@media (max-width: 700px) {
    .sortition #prizes {
        margin-left: -15px;
        margin-right: -15px;
        padding: 16px 15px 22px;
    }

    .sortition #prizes h5 {
        min-width: 135px;
        font-size: 18px;
        padding: 9px 15px;
    }

    .sortition #prizes .prize {
        gap: 10px;
        min-height: 105px;
        padding: 10px;
        border-radius: 11px;
    }

    .sortition #prizes .prize::before {
        width: 3px;
        flex-basis: 3px;
    }

    .sortition #prizes .prize .sortition-prize-icon {
        flex-basis: 105px;
        width: 105px;
        height: 78px;
    }

    .sortition #prizes .prize > span {
        font-size: 16px;
        line-height: 1.25;
    }

    .sortition #prizes .prize > span small {
        font-size: 14px;
    }
}

/* v3 — centered minimalist prize text */
.sortition #prizes .prize .sortition-prize-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
    padding: 0 18px;
}

.sortition #prizes .prize .sortition-prize-title {
    width: 100%;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
}

.sortition #prizes .prize .sortition-prize-subtitle {
    width: 100%;
    color: #caa7ff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 650;
    text-align: center;
    opacity: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,.35);
}

@media (max-width: 900px) {
    .sortition #prizes .prize .sortition-prize-title { font-size: 18px; }
    .sortition #prizes .prize .sortition-prize-subtitle { font-size: 15px; }
}

@media (max-width: 700px) {
    .sortition #prizes .prize .sortition-prize-info {
        padding: 0 5px;
        gap: 3px;
    }
    .sortition #prizes .prize .sortition-prize-title { font-size: 16px; }
    .sortition #prizes .prize .sortition-prize-subtitle { font-size: 14px; }
}


/* =========================================================
   Medal styling for the 3 prize places:
   1st = gold, 2nd = silver, 3rd = bronze.
   Only the outline/accent changes; the card fill stays dark.
   ========================================================= */

/* 1st place — GOLD */
.sortition #prizes h5:nth-of-type(1) {
    border-color: rgba(255, 215, 80, .95);
    box-shadow:
        0 5px 18px rgba(0,0,0,.32),
        0 0 14px rgba(255, 196, 50, .20),
        inset 0 0 18px rgba(255, 205, 70, .08);
}

.sortition #prizes h5:nth-of-type(1)::before {
    background: linear-gradient(90deg, #b97800, #ffe58a, #f5b51b, #fff0a8, #b97800);
    opacity: .9;
}

.sortition #prizes h5:nth-of-type(1) + .prize {
    border-color: rgba(255, 202, 70, .62);
    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        0 0 18px rgba(255, 190, 40, .10),
        inset 0 1px 0 rgba(255,235,150,.08);
}

.sortition #prizes h5:nth-of-type(1) + .prize::before {
    background: linear-gradient(180deg, #fff0a0, #ffc52f, #d88900);
    box-shadow: 0 0 13px rgba(255, 196, 50, .42);
}

/* 2nd place — SILVER */
.sortition #prizes h5:nth-of-type(2) {
    border-color: rgba(215, 225, 240, .90);
    box-shadow:
        0 5px 18px rgba(0,0,0,.32),
        0 0 14px rgba(205, 220, 240, .16),
        inset 0 0 18px rgba(220,230,245,.07);
}

.sortition #prizes h5:nth-of-type(2)::before {
    background: linear-gradient(90deg, #7f8b9b, #f4f7fb, #bfc9d6, #ffffff, #7f8b9b);
    opacity: .9;
}

.sortition #prizes h5:nth-of-type(2) + .prize {
    border-color: rgba(195, 210, 230, .56);
    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        0 0 18px rgba(205, 220, 240, .08),
        inset 0 1px 0 rgba(235,242,250,.07);
}

.sortition #prizes h5:nth-of-type(2) + .prize::before {
    background: linear-gradient(180deg, #f4f7fb, #b9c4d2, #788596);
    box-shadow: 0 0 13px rgba(210, 225, 242, .32);
}

/* 3rd place — BRONZE */
.sortition #prizes h5:nth-of-type(3) {
    border-color: rgba(224, 145, 83, .92);
    box-shadow:
        0 5px 18px rgba(0,0,0,.32),
        0 0 14px rgba(211, 116, 55, .16),
        inset 0 0 18px rgba(225, 130, 65, .07);
}

.sortition #prizes h5:nth-of-type(3)::before {
    background: linear-gradient(90deg, #87401f, #efad78, #c96b38, #ffd0a8, #87401f);
    opacity: .9;
}

.sortition #prizes h5:nth-of-type(3) + .prize {
    border-color: rgba(218, 137, 82, .58);
    box-shadow:
        0 8px 25px rgba(0,0,0,.25),
        0 0 18px rgba(210, 115, 55, .08),
        inset 0 1px 0 rgba(245,180,130,.07);
}

.sortition #prizes h5:nth-of-type(3) + .prize::before {
    background: linear-gradient(180deg, #ffd0a8, #d47a43, #91441f);
    box-shadow: 0 0 13px rgba(220, 130, 70, .32);
}


/* =========================================================
   TEXT CONTOURS — outline around the whole text block,
   NOT around individual letters.

   Main title: white text + colored frame.
   Subtitle: separate frame with another color.
   1st = gold, 2nd = silver, 3rd = bronze.
   ========================================================= */

/* Remove letter-by-letter stroke and make the title itself a framed block. */
.sortition #prizes .prize .sortition-prize-title {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 14px;
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    white-space: normal;

    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 9px;

    -webkit-text-stroke: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.55);
    box-shadow:
        0 0 8px rgba(255,255,255,.06),
        inset 0 0 10px rgba(255,255,255,.025);
}

/* Subtitle is also its own framed block, with a different color. */
.sortition #prizes .prize .sortition-prize-subtitle {
    display: inline-block;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px 13px;
    margin: 0;
    color: #e2d5ff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 650;
    text-align: center;

    background: rgba(145, 90, 255, .08);
    border: 1px solid rgba(180, 135, 255, .72);
    border-radius: 8px;

    -webkit-text-stroke: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.45);
    box-shadow: 0 0 8px rgba(150,90,255,.10);
}

/* 1st place — GOLD title frame */
.sortition #prizes h5:nth-of-type(1) + .prize .sortition-prize-title {
    border-color: rgba(255, 215, 80, .95);
    box-shadow:
        0 0 10px rgba(255, 195, 45, .13),
        inset 0 0 10px rgba(255, 205, 70, .04);
}

/* 1st place — PURPLE/GOLD contrasting subtitle frame */
.sortition #prizes h5:nth-of-type(1) + .prize .sortition-prize-subtitle {
    color: #eadbff;
    background: rgba(255, 190, 45, .07);
    border-color: rgba(255, 190, 45, .90);
    box-shadow: 0 0 9px rgba(255, 190, 45, .12);
}

/* 2nd place — SILVER title frame */
.sortition #prizes h5:nth-of-type(2) + .prize .sortition-prize-title {
    border-color: rgba(220, 230, 242, .95);
    box-shadow:
        0 0 10px rgba(215, 225, 240, .12),
        inset 0 0 10px rgba(235, 242, 250, .04);
}

/* 2nd place — BLUE subtitle frame */
.sortition #prizes h5:nth-of-type(2) + .prize .sortition-prize-subtitle {
    color: #e0eaff;
    background: rgba(115, 170, 255, .07);
    border-color: rgba(135, 185, 255, .90);
    box-shadow: 0 0 9px rgba(120, 175, 255, .12);
}

/* 3rd place — BRONZE title frame */
.sortition #prizes h5:nth-of-type(3) + .prize .sortition-prize-title {
    border-color: rgba(230, 155, 95, .95);
    box-shadow:
        0 0 10px rgba(220, 125, 65, .12),
        inset 0 0 10px rgba(245, 180, 130, .04);
}

/* 3rd place — WARM RED/BRONZE contrasting subtitle frame */
.sortition #prizes h5:nth-of-type(3) + .prize .sortition-prize-subtitle {
    color: #ffe0d0;
    background: rgba(210, 105, 60, .07);
    border-color: rgba(225, 140, 85, .90);
    box-shadow: 0 0 9px rgba(220, 125, 65, .12);
}

/* Keep mobile text compact. */
@media (max-width: 900px) {
    .sortition #prizes .prize .sortition-prize-title {
        font-size: 18px;
        padding: 4px 11px;
    }

    .sortition #prizes .prize .sortition-prize-subtitle {
        font-size: 15px;
        padding: 3px 10px;
    }
}

@media (max-width: 700px) {
    .sortition #prizes .prize .sortition-prize-title {
        font-size: 16px;
        padding: 3px 8px;
        border-radius: 7px;
    }

    .sortition #prizes .prize .sortition-prize-subtitle {
        font-size: 14px;
        padding: 3px 8px;
        border-radius: 6px;
    }
}


/* =========================================================
   TOP SORTITION HERO — countdown + participation button
   Added without changing the working prize-card design below.
   ========================================================= */

/* The active top block is the one containing #ending. */
.sortition.block:has(#ending) {
    position: relative;
    overflow: hidden;
    padding-bottom: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(129, 83, 255, .16), transparent 42%),
        radial-gradient(circle at 15% 90%, rgba(52, 112, 255, .10), transparent 34%),
        linear-gradient(145deg, #120d29 0%, #1c1235 52%, #25113c 100%);
    border: 1px solid rgba(157, 112, 255, .28);
    border-radius: 16px;
    box-shadow:
        0 12px 35px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.035);
}

/* Header/title of the giveaway */
.sortition.block:has(#ending) > .block_head {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 48px);
    box-sizing: border-box;
    margin: 22px auto 20px;
    padding: 13px 34px 14px;

    color: #ffffff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .2px;
    text-align: center;

    background:
        linear-gradient(135deg, rgba(39, 24, 68, .98), rgba(66, 29, 83, .96));
    border: 1px solid rgba(190, 111, 255, .78);
    border-radius: 12px;

    box-shadow:
        0 0 0 2px rgba(112, 71, 205, .16),
        0 8px 22px rgba(0,0,0,.24),
        inset 0 1px 0 rgba(255,255,255,.08);

    text-shadow:
        0 2px 5px rgba(0,0,0,.55),
        0 0 12px rgba(220, 190, 255, .16);
}

/* Colored glow around the title frame */
.sortition.block:has(#ending) > .block_head::before {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(224, 72, 255, .30);
    border-radius: 14px;
    pointer-events: none;
}

/* Small centered decorative line under the title */
.sortition.block:has(#ending) > .block_head::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 9px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #765cff, #d63cff, #ff4b91);
    box-shadow: 0 0 11px rgba(207, 64, 255, .42);
}

/* Countdown area */
.sortition .ending {
    position: relative;
    margin: 0 !important;
    padding: 30px 24px 26px !important;
    background:
        radial-gradient(circle at 50% 50%, rgba(123, 92, 255, .13), transparent 58%),
        linear-gradient(135deg, rgba(14, 12, 31, .96), rgba(31, 18, 54, .96)) !important;
    border-bottom: 1px solid rgba(155, 117, 255, .18);
}

/* Caption above the numbers */
.sortition .ending::before {
    content: "ДО ЗАКІНЧЕННЯ РОЗІГРАШУ";
    display: block;
    margin: 0 0 18px;
    color: #d8caff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0,0,0,.45);
}

/* Countdown itself */
.sortition #ending {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    text-align: center;
}

/* Each time unit */
.sortition #ending span {
    position: relative;
    min-width: 112px;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 12px 17px 10px !important;

    color: #ffffff !important;
    font-size: 48px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;

    background:
        linear-gradient(145deg, rgba(42, 31, 70, .98), rgba(29, 22, 50, .98)) !important;
    border: 1px solid rgba(159, 125, 255, .58) !important;
    border-radius: 12px !important;

    box-shadow:
        0 7px 18px rgba(0,0,0,.30),
        inset 0 1px 0 rgba(255,255,255,.06),
        0 0 14px rgba(130, 95, 255, .08) !important;

    text-shadow:
        0 2px 7px rgba(0,0,0,.55),
        0 0 12px rgba(190, 160, 255, .16);
}

/* Small colored top accent on every timer cell */
.sortition #ending span::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: -1px;
    height: 2px;
    border-radius: 3px;
    background: linear-gradient(90deg, #765cff, #d63cff, #ff4b91);
    box-shadow: 0 0 9px rgba(207, 64, 255, .28);
}

/* Units */
.sortition #ending i {
    display: block !important;
    margin-top: 7px;
    color: #bda9e9 !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    font-weight: 650 !important;
    font-style: normal !important;
    text-transform: lowercase;
    text-shadow: none;
}

/* Participation button */
.sortition .participate {
    position: relative;
    margin: 24px auto 8px !important;
    padding: 13px 30px !important;

    color: #fff !important;
    font-size: 19px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: .15px;

    background:
        linear-gradient(135deg, #6845d8 0%, #8b3fd3 50%, #c13e9b 100%) !important;
    border: 1px solid rgba(230, 210, 255, .92) !important;
    border-radius: 11px !important;

    box-shadow:
        0 7px 18px rgba(0,0,0,.28),
        0 0 18px rgba(151, 75, 255, .22),
        inset 0 1px 0 rgba(255,255,255,.18) !important;

    text-shadow:
        0 1px 3px rgba(0,0,0,.55) !important;

    cursor: pointer;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        filter .18s ease;
}

.sortition .participate::before {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(177, 135, 255, .38);
    border-radius: 13px;
    pointer-events: none;
}

.sortition .participate:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        0 10px 23px rgba(0,0,0,.34),
        0 0 25px rgba(167, 82, 255, .34),
        inset 0 1px 0 rgba(255,255,255,.22) !important;
}

.sortition .participate:active {
    transform: translateY(0);
}

/* Messages below the button */
.sortition #participate_result {
    text-align: center;
}

.sortition #participate_result p {
    display: inline-block;
    margin: 8px auto 0;
    padding: 8px 13px;
    border-radius: 8px;
    background: rgba(18, 13, 35, .55);
}

/* Mobile */
@media (max-width: 700px) {
    .sortition.block:has(#ending) > .block_head {
        max-width: calc(100% - 24px);
        margin: 14px auto 16px;
        padding: 11px 22px 12px;
        font-size: 21px;
    }

    .sortition .ending {
        padding: 23px 12px 20px !important;
    }

    .sortition .ending::before {
        margin-bottom: 13px;
        font-size: 13px;
    }

    .sortition #ending {
        gap: 7px;
    }

    .sortition #ending span {
        min-width: 82px;
        padding: 10px 9px 8px !important;
        font-size: 34px !important;
        border-radius: 10px !important;
    }

    .sortition #ending i {
        margin-top: 5px;
        font-size: 12px !important;
    }

    .sortition .participate {
        margin-top: 18px !important;
        padding: 11px 23px !important;
        font-size: 17px !important;
    }
}


/* =========================================================
   PRIZES SECTION TITLE — "Що можна виграти?"
   Compact framed heading matching the raffle design.
   ========================================================= */

/* The section heading itself */
.sortition #prizes > .block_head,
.sortition #prizes > h3,
.sortition #prizes > h4 {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 48px);
    box-sizing: border-box;
    margin: 18px auto 22px;
    padding: 12px 30px 13px;

    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
    text-align: center;
    letter-spacing: .15px;

    background:
        linear-gradient(135deg, rgba(39, 24, 68, .98), rgba(66, 29, 83, .96));
    border: 1px solid rgba(190, 111, 255, .78);
    border-radius: 12px;

    box-shadow:
        0 0 0 2px rgba(112, 71, 205, .14),
        0 7px 20px rgba(0,0,0,.25),
        inset 0 1px 0 rgba(255,255,255,.08);

    text-shadow:
        0 2px 5px rgba(0,0,0,.55),
        0 0 12px rgba(220,190,255,.14);
}

/* Subtle outer glow */
.sortition #prizes > .block_head::before,
.sortition #prizes > h3::before,
.sortition #prizes > h4::before {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(224, 72, 255, .28);
    border-radius: 14px;
    pointer-events: none;
}

/* Centered decorative accent */
.sortition #prizes > .block_head::after,
.sortition #prizes > h3::after,
.sortition #prizes > h4::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 9px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #765cff, #d63cff, #ff4b91);
    box-shadow: 0 0 11px rgba(207,64,255,.42);
}

@media (max-width: 700px) {
    .sortition #prizes > .block_head,
    .sortition #prizes > h3,
    .sortition #prizes > h4 {
        max-width: calc(100% - 24px);
        margin: 14px auto 18px;
        padding: 10px 20px 11px;
        font-size: 20px;
    }
}


/* =========================================================
   FIX v5 — REAL "Що можна виграти?" HEADER
   The heading is the sibling immediately before #prizes,
   not an element inside #prizes.
   ========================================================= */

.sortition .block_head:has(+ #prizes) {
    position: relative;
    width: fit-content !important;
    max-width: calc(100% - 48px) !important;
    box-sizing: border-box;

    margin: 22px auto 20px !important;
    padding: 13px 34px 14px !important;

    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-align: center !important;
    letter-spacing: .15px;

    background:
        linear-gradient(135deg, rgba(39, 24, 68, .98), rgba(66, 29, 83, .96)) !important;

    border: 1px solid rgba(190, 111, 255, .82) !important;
    border-radius: 12px !important;

    box-shadow:
        0 0 0 2px rgba(112, 71, 205, .16),
        0 8px 22px rgba(0,0,0,.28),
        inset 0 1px 0 rgba(255,255,255,.08) !important;

    text-shadow:
        0 2px 5px rgba(0,0,0,.55),
        0 0 12px rgba(220,190,255,.16) !important;
}

/* Outer colored contour */
.sortition .block_head:has(+ #prizes)::before {
    content: "";
    position: absolute;
    inset: -3px;
    border: 1px solid rgba(224, 72, 255, .34);
    border-radius: 14px;
    pointer-events: none;
}

/* Centered neon accent */
.sortition .block_head:has(+ #prizes)::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    margin: 9px auto 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #765cff, #d63cff, #ff4b91);
    box-shadow: 0 0 12px rgba(207,64,255,.45);
}

/* Mobile */
@media (max-width: 700px) {
    .sortition .block_head:has(+ #prizes) {
        max-width: calc(100% - 24px) !important;
        margin: 14px auto 16px !important;
        padding: 11px 22px 12px !important;
        font-size: 20px !important;
    }
}
