/* ============================================================
   DETALLE DE SORTEO — ANDERCODE
============================================================ */

.raffle-detail-page {
    --rd-purple: var(--mlf-primary, #7c3aed);
    --rd-purple-dark: var(--mlf-primary-dark, #5b21b6);
    --rd-ink: #17131f;
    --rd-muted: #6f6a78;
    --rd-line: rgba(124, 58, 237, .10);
    --rd-surface: #ffffff;
    --rd-soft: #faf7ff;
    --rd-radius: 26px;
    color: var(--rd-ink);
}

.raffle-detail-page a {
    text-decoration: none;
}

.raffle-detail-page ins.adsbygoogle {
    display: block;
    max-width: 100%;
    margin: 2rem auto;
}

.rd-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.rd-back {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--rd-purple);
    font-weight: 800;
}

.rd-admin-mark {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, .09);
    color: var(--rd-purple);
    font-size: .8rem;
    font-weight: 800;
}

.rd-hero {
    position: relative;
    border-radius: 32px;
    background: #17131f;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(23, 19, 31, .14);
    margin-bottom: 1.5rem;
}

.rd-hero::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    right: -100px;
    top: -170px;
    background: rgba(124, 58, 237, .28);
    filter: blur(10px);
    pointer-events: none;
}

.rd-hero-media {
    position: relative;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    background: #09090b;
    overflow: hidden;
}

.rd-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rd-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.54));
}

.rd-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.94);
    color: #ff0033;
    font-size: 1.35rem;
    box-shadow: 0 16px 34px rgba(0,0,0,.25);
    transition: transform .25s ease;
}

.rd-hero-media:hover .rd-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.rd-media-meta {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 18px;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.rd-media-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .72rem;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    backdrop-filter: blur(8px);
    font-size: .77rem;
    font-weight: 800;
}

.rd-hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(1.7rem, 4vw, 3.2rem);
}

.rd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .48rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #d8c6ff;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.rd-title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
    margin: 0 0 1rem;
}

.rd-question {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    margin-bottom: 1.25rem;
}

.rd-question small {
    display: block;
    color: #c9b2ff;
    font-weight: 800;
    margin-bottom: .35rem;
}

.rd-question p {
    color: rgba(255,255,255,.84);
    margin: 0;
    line-height: 1.65;
}

.rd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding: .72rem 1rem;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.16);
    font-weight: 800;
    transition: .2s ease;
}

.rd-btn-light {
    background: #fff;
    color: #17131f;
}

.rd-btn-light:hover {
    transform: translateY(-2px);
    color: var(--rd-purple);
}

.rd-btn-glass {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.rd-btn-glass:hover {
    background: rgba(255,255,255,.14);
    color: #fff;
}

.rd-btn-danger {
    background: rgba(220, 38, 38, .14);
    color: #fecaca;
    border-color: rgba(248, 113, 113, .25);
}

.rd-btn-danger:hover {
    background: #dc2626;
    color: #fff;
}

.rd-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: rgba(255,255,255,.58);
    font-size: .82rem;
    margin-top: .9rem;
}

.rd-progress-card {
    background: #fff;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    padding: 1.15rem 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    margin-bottom: 1.5rem;
}

.rd-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.rd-progress-head strong {
    font-size: 1rem;
}

.rd-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.rd-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem;
    border-radius: 16px;
    background: #f8f7fa;
    color: #8a8491;
}

.rd-step.is-done,
.rd-step.is-active {
    background: rgba(124, 58, 237, .08);
    color: var(--rd-purple);
}

.rd-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(124,58,237,.12);
    font-weight: 900;
    flex: 0 0 auto;
}

.rd-step strong,
.rd-step small {
    display: block;
}

.rd-step small {
    color: #8a8491;
    font-size: .72rem;
}

.rd-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rd-kpi {
    background: #fff;
    border: 1px solid var(--rd-line);
    border-radius: 22px;
    padding: 1.2rem;
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}

.rd-kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .85rem;
}

.rd-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--rd-purple);
    background: rgba(124,58,237,.09);
}

.rd-kpi strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--rd-ink);
}

.rd-kpi span {
    display: block;
    color: var(--rd-muted);
    margin-top: .4rem;
    font-size: .85rem;
}

.rd-layout {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.65fr);
    gap: 1.25rem;
    align-items: start;
}

.rd-sidebar {
    position: sticky;
    top: 88px;
    display: grid;
    gap: 1rem;
}

.rd-card {
    background: #fff;
    border: 1px solid var(--rd-line);
    border-radius: var(--rd-radius);
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.rd-card-pad {
    padding: 1.35rem;
}

.rd-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--rd-purple);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .55rem;
}

.rd-card h2,
.rd-card h3 {
    color: var(--rd-ink);
    font-weight: 900;
    letter-spacing: -.02em;
}

.rd-winner {
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(250,204,21,.18), transparent 40%),
        #fff;
}

.rd-winner-avatar,
.rd-winner-empty {
    width: 100px;
    height: 100px;
    margin: .8rem auto 1rem;
    border-radius: 50%;
}

.rd-winner-avatar {
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.13);
}

.rd-winner-empty {
    display: grid;
    place-items: center;
    background: rgba(124,58,237,.09);
    color: var(--rd-purple);
    font-size: 2.1rem;
}

.rd-winner-comment {
    background: #faf9fb;
    border-radius: 15px;
    padding: .8rem;
    color: var(--rd-muted);
    line-height: 1.55;
    font-size: .9rem;
}

.rd-control-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.rd-control-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #eeeaf3;
}

.rd-control-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rd-control-row span {
    color: var(--rd-muted);
    font-size: .84rem;
}

.rd-control-row strong {
    color: var(--rd-ink);
    font-size: .86rem;
    text-align: right;
}

.rd-participants {
    padding: 1.4rem;
}

.rd-participants-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.rd-participants-head p {
    color: var(--rd-muted);
    margin: .35rem 0 0;
}

.rd-toolbar {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    align-items: center;
    padding: .9rem;
    border-radius: 18px;
    background: #faf9fb;
    margin-bottom: 1rem;
}

.rd-search {
    flex: 1 1 230px;
    position: relative;
}

.rd-search i {
    position: absolute;
    left: .95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #918a9c;
}

.rd-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #e7e2eb;
    border-radius: 12px;
    padding: .65rem .85rem .65rem 2.55rem;
    outline: 0;
    background: #fff;
}

.rd-search input:focus {
    border-color: rgba(124,58,237,.5);
    box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}

.rd-filter-group {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.rd-filter {
    border: 1px solid #e4dfea;
    background: #fff;
    color: #696271;
    border-radius: 999px;
    padding: .55rem .75rem;
    font-size: .78rem;
    font-weight: 800;
}

.rd-filter.active {
    background: var(--rd-purple);
    border-color: var(--rd-purple);
    color: #fff;
}

.rd-comment-list {
    display: grid;
    gap: .75rem;
}

.rd-comment {
    border: 1px solid #eee9f2;
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
    transition: .2s ease;
}

.rd-comment:hover {
    border-color: rgba(124,58,237,.22);
    box-shadow: 0 9px 22px rgba(15,23,42,.05);
}

.rd-comment.is-winner {
    background: linear-gradient(135deg, #fffdf6, #fff);
    border-color: rgba(234,179,8,.35);
}

.rd-comment-main {
    display: flex;
    gap: .8rem;
}

.rd-comment-avatar,
.rd-comment-avatar-empty {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.rd-comment-avatar {
    object-fit: cover;
}

.rd-comment-avatar-empty {
    display: grid;
    place-items: center;
    background: rgba(124,58,237,.08);
    color: var(--rd-purple);
}

.rd-comment-content {
    min-width: 0;
    flex: 1;
}

.rd-comment-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
}

.rd-comment-author {
    font-weight: 900;
    color: var(--rd-ink);
}

.rd-comment-date {
    display: block;
    color: #99929f;
    font-size: .74rem;
    margin-top: .12rem;
}

.rd-badges {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.rd-mini {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    padding: .34rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 900;
}

.rd-mini.valid { background: #ecfdf3; color: #15803d; }
.rd-mini.invalid { background: #fff1f2; color: #be123c; }
.rd-mini.likes { background: #f4f2f6; color: #696271; }
.rd-mini.winner { background: #fff7d6; color: #9a6700; }

.rd-comment-text {
    color: #5f5967;
    line-height: 1.58;
    margin-top: .65rem;
    overflow-wrap: anywhere;
}

.rd-invalid-reason {
    color: #be123c;
    font-size: .76rem;
    margin-top: .5rem;
}

.rd-load-more-wrap {
    text-align: center;
    margin-top: 1rem;
}

.rd-load-more {
    border: 1px solid rgba(124,58,237,.22);
    background: #fff;
    color: var(--rd-purple);
    border-radius: 13px;
    padding: .72rem 1.1rem;
    font-weight: 850;
}

.rd-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: var(--rd-muted);
}

.rd-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    background: rgba(124,58,237,.08);
    color: var(--rd-purple);
    font-size: 1.45rem;
}

.rd-admin-danger {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eeeaf3;
}

.rd-delete-btn {
    width: 100%;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #b91c1c;
    border-radius: 13px;
    padding: .72rem .9rem;
    font-weight: 850;
}

.rd-delete-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* DADO 3D — TARJETA DESTACADA DE LA DINÁMICA */
.rd-kpis > .rd-kpi--dice {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(170px, .65fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(1rem, 3.2vw, 2.5rem);
    position: relative;
    isolation: isolate;
    min-height: 218px;
    overflow: hidden;
    padding: clamp(1.3rem, 2.6vw, 2.2rem);
    border: 1px solid rgba(124,58,237,.17);
    border-radius: 24px;
    background:
        radial-gradient(circle at 49% 55%, rgba(167,139,250,.24), transparent 31%),
        radial-gradient(circle at 97% 2%, rgba(124,58,237,.12), transparent 32%),
        linear-gradient(115deg, #ffffff 10%, #f6f1ff 66%, #faf6ff 100%);
    box-shadow: 0 18px 42px rgba(62,34,120,.09);
}

.rd-kpis > .rd-kpi--dice::after {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    right: -100px;
    top: -110px;
    border: 1px solid rgba(124,58,237,.14);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.rd-dice-copy {
    min-width: 0;
}

.rd-kpi--dice .rd-dice-eyebrow,
.rd-kpi--dice .rd-dice-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: #6d35cd;
    font-size: .73rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.rd-dice-copy h3 {
    max-width: 490px;
    margin: .8rem 0 .6rem;
    color: #211632;
    font-size: clamp(1.4rem, 2.4vw, 2.15rem);
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: -.038em;
}

.rd-dice-copy h3 span {
    display: inline;
    color: #7c3aed;
    font-size: inherit;
    margin: 0;
}

.rd-dice-copy p {
    max-width: 390px;
    margin: 0;
    color: #62596d;
    font-size: .87rem;
    line-height: 1.65;
}

.rd-dice-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 170px;
    min-width: 0;
}

.rd-dice-stage::before,
.rd-dice-stage::after {
    position: absolute;
    content: "";
    width: 154px;
    height: 154px;
    border-radius: 50%;
    pointer-events: none;
}

.rd-dice-stage::before {
    background: rgba(124,58,237,.085);
    border: 1px solid rgba(124,58,237,.08);
}

.rd-dice-stage::after {
    width: 180px;
    height: 180px;
    border: 1px dashed rgba(124,58,237,.2);
    animation: rdDiceOrbit 30s linear infinite;
}

.rd-dice-button {
    appearance: none;
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 122px;
    height: 122px;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
    animation: rdDiceIdleFloat 4.3s ease-in-out infinite;
}

.rd-dice-button:hover:not(:disabled) {
    filter: drop-shadow(0 13px 12px rgba(104,50,198,.18));
}

.rd-dice-button:focus-visible {
    outline: 3px solid #7c3aed;
    outline-offset: 4px;
}

.rd-dice-button:disabled {
    cursor: wait;
    opacity: 1;
}

.rd-kpi--dice .rd-dice-scene {
    position: relative;
    display: block;
    margin: 0;
    font-size: 0;
    width: 96px;
    height: 96px;
    perspective: 560px;
    perspective-origin: center;
}

.rd-kpi--dice .rd-dice-cube {
    display: block;
    margin: 0;
    position: relative;
    width: 96px;
    height: 96px;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 1.45s cubic-bezier(.16,.72,.19,1);
}

.rd-kpi--dice .rd-dice-face {
    margin: 0;
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    box-sizing: border-box;
    padding: 13px;
    border: 2px solid rgba(143,101,229,.25);
    border-radius: 19px;
    background: linear-gradient(145deg, #ffffff 8%, #f2ebff 94%);
    box-shadow:
        inset -7px -7px 15px rgba(95,53,163,.08),
        inset 4px 4px 11px rgba(255,255,255,.9),
        0 2px 5px rgba(47,19,92,.10);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.rd-dice-face--1 { transform: translateZ(48px); }
.rd-dice-face--2 { transform: rotateX(90deg) translateZ(48px); }
.rd-dice-face--3 { transform: rotateY(90deg) translateZ(48px); }
.rd-dice-face--4 { transform: rotateY(-90deg) translateZ(48px); }
.rd-dice-face--5 { transform: rotateX(-90deg) translateZ(48px); }
.rd-dice-face--6 { transform: rotateY(180deg) translateZ(48px); }

.rd-dice-pip {
    display: block;
    width: 14px;
    height: 14px;
    margin: auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #a879f5, #6733c5 75%);
    box-shadow: inset 0 1px 3px rgba(39,14,78,.28);
}

.rd-dice-pip--top-left { grid-area: 1 / 1; }
.rd-dice-pip--top-right { grid-area: 1 / 3; }
.rd-dice-pip--middle-left { grid-area: 2 / 1; }
.rd-dice-pip--center { grid-area: 2 / 2; }
.rd-dice-pip--middle-right { grid-area: 2 / 3; }
.rd-dice-pip--bottom-left { grid-area: 3 / 1; }
.rd-dice-pip--bottom-right { grid-area: 3 / 3; }

.rd-dice-shadow {
    position: absolute;
    z-index: 1;
    bottom: -2px;
    left: 50%;
    width: 100px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: rgba(82,34,171,.19);
    filter: blur(9px);
}

.rd-dice-outcome {
    min-width: 0;
    position: relative;
    padding-left: clamp(1rem, 2vw, 1.8rem);
    border-left: 1px solid rgba(124,58,237,.13);
}

.rd-dice-result-line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .55rem;
    margin: .4rem 0 .9rem;
}

.rd-kpi--dice .rd-dice-result {
    display: block;
    min-width: 1ch;
    margin: 0;
    font-size: clamp(3.2rem, 5vw, 4.3rem);
    font-weight: 950;
    line-height: 1;
    color: #6d35cd;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 5px 15px rgba(124,58,237,.11);
}

.rd-kpi--dice .rd-dice-unit {
    display: inline;
    margin: 0;
    color: #675d75;
    font-size: .83rem;
    font-weight: 750;
}

.rd-dice-roll-again {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #7c3aed, #6025ba);
    box-shadow: 0 9px 18px rgba(124,58,237,.18);
    color: #fff;
    font-size: .84rem;
    font-weight: 850;
    transition: transform .2s ease, box-shadow .2s ease;
}

.rd-dice-roll-again:hover:not(:disabled) {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(124,58,237,.24);
}

.rd-dice-roll-again:focus-visible {
    outline: 3px solid #6d35cd;
    outline-offset: 3px;
}

.rd-dice-roll-again:disabled { cursor: wait; opacity: .7; }

.rd-dice-hint {
    display: block;
    margin-top: .6rem;
    color: #726981;
    font-size: .73rem;
    line-height: 1.3;
}

.rd-dice-button.is-rolling {
    animation: none;
    filter: drop-shadow(0 15px 18px rgba(124,58,237,.25));
}

@keyframes rdDiceOrbit { to { transform: rotate(360deg); } }
@keyframes rdDiceIdleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .rd-dice-cube,
    .rd-dice-button,
    .rd-dice-roll-again,
    .rd-dice-stage::after {
        animation: none !important;
        transition: none !important;
    }
}

.rd-modal .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(17, 10, 29, .24);
}

.rd-modal .modal-body {
    background:
        radial-gradient(circle at top, rgba(124,58,237,.12), transparent 42%),
        #fff;
}

@media (max-width: 1199.98px) {
    .rd-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-layout {
        grid-template-columns: minmax(250px, .8fr) minmax(0, 1.45fr);
    }
}

@media (max-width: 991.98px) {
    .rd-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rd-kpis > .rd-kpi--dice {
        grid-template-columns: minmax(0, 1fr) minmax(160px, .75fr);
        gap: 1.4rem;
    }

    .rd-dice-copy { grid-column: 1 / -1; }
    .rd-dice-stage { grid-column: 1; grid-row: 2; }
    .rd-dice-outcome { grid-column: 2; grid-row: 2; }

    .rd-layout {
        grid-template-columns: 1fr;
    }

    .rd-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .rd-kpis > .rd-kpi--dice {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        text-align: center;
        padding: 1.6rem 1.2rem;
    }
    .rd-dice-copy { grid-column: 1; grid-row: 1; }
    .rd-dice-copy p, .rd-dice-copy h3 { margin-left: auto; margin-right: auto; }
    .rd-dice-stage { grid-column: 1; grid-row: 2; min-height: 185px; }
    .rd-dice-outcome {
        grid-column: 1;
        grid-row: 3;
        padding-left: 0;
        border-left: 0;
    }
    .rd-dice-result-line { justify-content: center; }
    .rd-dice-copy h3 { font-size: 1.7rem; }

    .rd-hero {
        border-radius: 24px;
    }

    .rd-hero-copy {
        padding: 1.5rem;
    }

    .rd-steps {
        grid-template-columns: 1fr;
    }

    .rd-sidebar {
        grid-template-columns: 1fr;
    }

    .rd-comment-main {
        align-items: flex-start;
    }
}

@media (max-width: 575.98px) {
    .rd-kpis {
        grid-template-columns: 1fr 1fr;
        gap: .65rem;
    }

    .rd-kpi {
        padding: .9rem;
    }

    .rd-kpi strong {
        font-size: 1.25rem;
    }

    .rd-actions .rd-btn,
    .rd-actions form,
    .rd-actions form .rd-btn {
        width: 100%;
    }

    .rd-participants {
        padding: 1rem;
    }

    .rd-comment {
        padding: .85rem;
    }

    .rd-comment-avatar,
    .rd-comment-avatar-empty {
        width: 40px;
        height: 40px;
    }
}
