@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

#project-end-scene {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: #000;
    color: #fff;
    isolation: isolate;
    transition: opacity 90ms linear, visibility 90ms linear;
}

#project-end-scene.end-visible {
    visibility: visible;
    opacity: 1;
}

#project-end-scene,
#project-end-scene * { box-sizing: border-box; }

.end-void {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #000;
}

/* =========================================================
   RANDOM BACKGROUND INTRUSIONS — V3
========================================================= */
.end-intrusions {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 70ms linear;
}

.end-cut-black .end-intrusions { opacity: 0; }

.end-intrusion {
    position: absolute;
    max-width: 30vw;
    color: rgba(255,255,255,.9);
    font-family: "Press Start 2P", "Courier New", monospace;
    font-size: clamp(6px, .72vw, 10px);
    line-height: 1.65;
    letter-spacing: .08em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--intrusion-scale, 1));
    text-shadow:
        0 0 3px rgba(255,255,255,.72),
        0 0 10px rgba(255,255,255,.19);
    animation: endIntrusionAppear var(--intrusion-life, 650ms) steps(2, end) both;
}

.end-intrusion-dim {
    color: rgba(255,255,255,.38);
    text-shadow: 0 0 7px rgba(255,255,255,.14);
}

.end-intrusion-red {
    color: rgba(255,78,101,.76);
    text-shadow:
        0 0 4px rgba(255,62,89,.62),
        0 0 14px rgba(255,37,72,.2);
}

.end-intrusion-mirror {
    transform: translate(-50%, -50%) scaleX(-1) scale(var(--intrusion-scale, 1));
}

.end-intrusion-final {
    z-index: 9;
    color: #fff;
    font-size: clamp(7px, .82vw, 12px);
    text-shadow: 0 0 5px #fff, 0 0 18px rgba(255,255,255,.42);
    animation: endIntrusionFinal var(--intrusion-life, 130ms) steps(1, end) both;
}

/* =========================================================
   CODE SKULLS — SOLO HACKING / IMPOSSIBLE
========================================================= */
.end-skulls {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 60ms linear;
}

.end-cut-black .end-skulls {
    opacity: 0;
}

.end-code-skull {
    position: absolute;
    margin: 0;
    min-width: 72px;
    color: #fff;
    font-family: "Courier New", Consolas, monospace;
    font-size: clamp(7px, .72vw, 10px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: .04em;
    white-space: pre;
    opacity: 0;
    transform: translate(-50%, -50%) scale(var(--skull-scale, 1));
    filter: contrast(1.08);
    text-shadow:
        0 0 3px currentColor,
        0 0 11px currentColor;
    animation: endCodeSkull var(--skull-life, 650ms) steps(4, end) both;
}

.end-code-skull-green {
    color: #7cff8a;
    text-shadow:
        0 0 3px rgba(124,255,138,.95),
        0 0 10px rgba(124,255,138,.56),
        0 0 20px rgba(124,255,138,.18);
}

.end-code-skull-white {
    color: rgba(255,255,255,.92);
}

.end-code-skull-red {
    color: rgba(255,74,98,.94);
    text-shadow:
        0 0 4px rgba(255,74,98,.9),
        0 0 14px rgba(255,45,77,.48),
        0 0 24px rgba(255,33,65,.2);
}

.end-code-skull-final {
    z-index: 12;
    font-size: clamp(8px, .9vw, 13px);
    animation: endCodeSkullFinal var(--skull-life, 520ms) steps(5, end) both;
}

.end-stage {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: min(1100px, 92vw);
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 30px;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: "Press Start 2P", "Courier New", monospace;
    -webkit-font-smoothing: none;
    text-rendering: geometricPrecision;
}

.end-star {
    position: absolute;
    left: 8%;
    top: 50%;
    opacity: 0;
    color: #fff;
    font-size: clamp(13px, 1.25vw, 20px);
    text-shadow: 0 0 5px #fff, 0 0 14px rgba(255,255,255,.6);
    transform: translateY(-50%);
}

.end-star-visible { opacity: 1; }

.end-primary,
.end-secondary,
.end-progress {
    position: relative;
    color: #fff;
    line-height: 1.65;
    letter-spacing: .06em;
    text-shadow:
        0 0 3px rgba(255,255,255,.98),
        0 0 9px rgba(255,255,255,.62),
        0 0 22px rgba(255,255,255,.23);
}

.end-primary {
    max-width: 100%;
    font-size: clamp(16px, 2vw, 29px);
    white-space: nowrap;
}

.end-primary.end-opening-question {
    color: #fff;
    text-shadow:
        0 0 4px #fff,
        0 0 10px rgba(255,255,255,.96),
        0 0 22px rgba(255,255,255,.78),
        0 0 42px rgba(255,255,255,.48),
        0 0 72px rgba(255,255,255,.24);
}

.end-primary.end-opening-pulse {
    animation: endOpeningPulse 280ms ease-out both;
}

.end-secondary {
    font-size: clamp(14px, 1.55vw, 22px);
}

.end-progress {
    font-size: clamp(12px, 1.25vw, 18px);
    opacity: .92;
}

.end-progress-stalled {
    color: #fff3b0;
    text-shadow:
        0 0 4px rgba(255,243,176,.9),
        0 0 15px rgba(255,218,107,.3);
}

.end-failed {
    color: #ff465f;
    font-size: clamp(24px, 4vw, 58px);
    letter-spacing: .18em;
    text-shadow:
        0 0 4px rgba(255,70,95,.98),
        0 0 13px rgba(255,48,78,.72),
        0 0 34px rgba(255,32,65,.3);
    animation: endFailedFlicker 420ms steps(2, end) infinite;
}

.end-corrupt {
    animation: endMicroShift 105ms steps(2, end) infinite;
}

.end-cut-black .end-stage { opacity: 0; }

.end-white-flash {
    position: absolute;
    inset: 0;
    z-index: 50;
    opacity: 0;
    background: #fff;
    pointer-events: none;
}

.end-break-slice {
    position: absolute;
    left: -8%;
    z-index: 20;
    width: 116%;
    height: 14%;
    opacity: 0;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
}

.end-break-slice-a { top: 27%; }
.end-break-slice-b { top: 61%; }

.end-impact .end-primary {
    font-size: clamp(46px, 9.8vw, 168px);
    letter-spacing: .035em;
    animation: endImpossibleImpact 560ms steps(5, end) both;
    text-shadow:
        4px 0 0 rgba(255,0,93,.8),
        -4px 0 0 rgba(0,229,255,.8),
        0 0 8px #fff,
        0 0 30px #fff,
        0 0 80px rgba(255,255,255,.72);
}

.end-impact .end-white-flash { animation: endFlash 560ms steps(3, end); }
.end-impact .end-break-slice-a { animation: endSliceA 560ms steps(4, end); }
.end-impact .end-break-slice-b { animation: endSliceB 560ms steps(4, end); }
.end-impact { animation: endSceneShake 560ms steps(6, end); }


.end-question-box {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(720px, 86vw);
    min-height: 230px;
    padding: 42px 34px 34px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 26px;
    opacity: 0;
    transform: translate(-50%, -50%);
    border: 3px solid #fff;
    background: #000;
    box-shadow:
        0 0 4px rgba(255,255,255,.95),
        0 0 14px rgba(255,255,255,.38),
        inset 0 0 14px rgba(255,255,255,.07);
    pointer-events: none;
}

.end-question-visible {
    opacity: 1;
    /* The box used to keep pointer-events:none from its hidden state,
       which made the visible YES / NO buttons impossible to click. */
    pointer-events: auto;
}

.end-question-text,
.end-question-subtext,
.end-hacking-status,
.end-answer {
    color: #fff;
    text-align: center;
    font-family: "Press Start 2P", "Courier New", monospace;
    text-shadow:
        0 0 3px rgba(255,255,255,.98),
        0 0 10px rgba(255,255,255,.56),
        0 0 22px rgba(255,255,255,.18);
}

.end-question-text {
    min-height: 1.8em;
    font-size: clamp(15px, 2vw, 27px);
    line-height: 1.7;
    text-shadow:
        0 0 4px #fff,
        0 0 12px rgba(255,255,255,.78),
        0 0 28px rgba(255,255,255,.32);
}

.end-question-pulse {
    animation: endQuestionGlowPulse 320ms ease-out both;
}

.end-hacking-status {
    min-height: 1.6em;
    color: #7cff8a;
    font-size: clamp(8px, .9vw, 12px);
    line-height: 1.8;
    letter-spacing: .08em;
    opacity: .82;
    text-shadow:
        0 0 4px rgba(124,255,138,.9),
        0 0 10px rgba(124,255,138,.55),
        0 0 18px rgba(124,255,138,.25);
}

.end-hacking-status.end-user-present {
    color: #fff;
    opacity: 1;
    text-shadow:
        0 0 4px #fff,
        0 0 12px rgba(255,255,255,.92),
        0 0 30px rgba(255,255,255,.58),
        0 0 58px rgba(255,255,255,.24);
    animation: endUserPresentPulse 1050ms steps(3, end) both;
}

.end-answer {
    min-height: 1.8em;
    opacity: 0;
    font-size: clamp(20px, 3vw, 42px);
    letter-spacing: .09em;
}

.end-answer-visible {
    opacity: 1;
    color: #fff;
    text-shadow:
        0 0 4px #fff,
        0 0 14px rgba(255,255,255,.75),
        0 0 34px rgba(255,70,95,.28);
}

.end-final-impact .end-question-box {
    animation: endQuestionBreak 900ms steps(7, end) both;
}

.end-final-impact .end-answer {
    animation: endFinalImpossible 900ms steps(7, end) both;
}

.end-final-impact .end-white-flash { animation: endFinalFlash 900ms steps(4, end); }
.end-final-impact .end-break-slice-a { animation: endFinalSliceA 900ms steps(6, end); }
.end-final-impact .end-break-slice-b { animation: endFinalSliceB 900ms steps(6, end); }
.end-final-impact { animation: endFinalShake 900ms steps(9, end); }

@keyframes endQuestionBreak {
    0% { transform: translate(-50%,-50%) scale(1); clip-path: inset(0 0 0 0); }
    16% { transform: translate(calc(-50% + 18px),calc(-50% - 4px)) skewX(-2deg); }
    31% { clip-path: inset(0 0 56% 0); }
    44% { transform: translate(calc(-50% - 28px),calc(-50% + 8px)) scale(1.035); clip-path: inset(24% 0 18% 0); }
    61% { transform: translate(calc(-50% + 34px),calc(-50% - 5px)) skewX(5deg); }
    78% { opacity: .75; clip-path: inset(48% 0 0 0); }
    100% { opacity: 0; transform: translate(-50%,-50%) scale(1.12); clip-path: inset(50% 50% 50% 50%); }
}

@keyframes endFinalImpossible {
    0% { transform: scale(1); }
    16% { transform: scale(1.28) translateX(-14px); text-shadow: 5px 0 0 rgba(255,0,93,.9), -5px 0 0 rgba(0,229,255,.9), 0 0 34px #fff; }
    34% { transform: scale(.96) translateX(22px); }
    55% { transform: scale(1.42) skewX(-6deg); filter: blur(.8px); }
    76% { transform: scale(1.08) translateX(-30px); }
    100% { transform: scale(1.8); opacity: 0; filter: blur(4px); }
}

@keyframes endFinalFlash {
    0%, 10%, 100% { opacity: 0; }
    11%, 19% { opacity: 1; }
    38%, 43% { opacity: .42; }
    66%, 70% { opacity: .2; }
}

@keyframes endFinalSliceA {
    0%, 8%, 100% { opacity: 0; transform: translateX(0) scaleY(1); }
    9%, 30% { opacity: .9; transform: translateX(92px) scaleY(.18); }
    31%, 57% { opacity: .35; transform: translateX(-110px) scaleY(1.4); }
}

@keyframes endFinalSliceB {
    0%, 23%, 100% { opacity: 0; transform: translateX(0); }
    24%, 48% { opacity: .82; transform: translateX(-105px); }
    49%, 72% { opacity: .3; transform: translateX(88px) scaleY(.35); }
}

@keyframes endFinalShake {
    0%, 100% { transform: translate(0,0); }
    12% { transform: translate(-12px,5px); }
    25% { transform: translate(15px,-7px); }
    39% { transform: translate(-18px,-3px); }
    54% { transform: translate(14px,8px); }
    68% { transform: translate(-10px,5px); }
    82% { transform: translate(8px,-4px); }
}

@keyframes endIntrusionAppear {
    0% { opacity: 0; filter: blur(1px); }
    12% { opacity: .92; filter: blur(0); }
    72% { opacity: .72; }
    86% { opacity: .12; }
    100% { opacity: 0; filter: blur(.7px); }
}

@keyframes endIntrusionFinal {
    0%, 100% { opacity: 0; }
    10%, 82% { opacity: 1; }
}

@keyframes endCodeSkull {
    0%, 100% { opacity: 0; transform: translate(-50%,-50%) scale(.78); }
    10% { opacity: .2; transform: translate(calc(-50% - 3px),calc(-50% + 1px)) scale(var(--skull-scale,1)); }
    24% { opacity: .88; transform: translate(calc(-50% + 2px),calc(-50% - 1px)) scale(var(--skull-scale,1)); }
    43% { opacity: .34; clip-path: inset(0 0 42% 0); }
    58% { opacity: .78; clip-path: inset(33% 0 0 0); transform: translate(calc(-50% - 2px),-50%) scale(var(--skull-scale,1)); }
    78% { opacity: .28; clip-path: inset(0 0 0 0); }
}

@keyframes endCodeSkullFinal {
    0%, 100% { opacity: 0; transform: translate(-50%,-50%) scale(.64); }
    10% { opacity: 1; transform: translate(calc(-50% + 5px),calc(-50% - 2px)) scale(1.22); }
    28% { opacity: .3; clip-path: inset(0 0 55% 0); }
    42% { opacity: .96; transform: translate(calc(-50% - 6px),calc(-50% + 2px)) scale(.95); clip-path: inset(34% 0 0 0); }
    62% { opacity: .54; transform: translate(-50%,-50%) scale(1.34); clip-path: inset(0 0 0 0); }
    82% { opacity: .18; }
}

@keyframes endUserPresentPulse {
    0% { opacity: .2; transform: scale(.985); }
    16% { opacity: 1; transform: scale(1.018); }
    30% { opacity: .45; }
    46% { opacity: 1; }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes endOpeningPulse {
    0% { transform: scale(1); }
    45% {
        transform: scale(1.035);
        text-shadow:
            0 0 5px #fff,
            0 0 16px #fff,
            0 0 38px rgba(255,255,255,.88),
            0 0 78px rgba(255,255,255,.5),
            0 0 120px rgba(255,255,255,.25);
    }
    100% { transform: scale(1); }
}

@keyframes endQuestionGlowPulse {
    0% { transform: scale(1); }
    48% {
        transform: scale(1.028);
        text-shadow:
            0 0 5px #fff,
            0 0 16px rgba(255,255,255,.95),
            0 0 38px rgba(255,255,255,.55),
            0 0 70px rgba(255,255,255,.25);
    }
    100% { transform: scale(1); }
}

@keyframes endFailedFlicker {
    0%, 70% { opacity: 1; }
    71%, 86% { opacity: .12; }
    87%, 100% { opacity: .82; }
}

@keyframes endMicroShift {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(2px,-1px); }
}

@keyframes endImpossibleImpact {
    0% { transform: scale(.92); filter: blur(0); }
    18% { transform: scale(1.15) skewX(-4deg); }
    38% { transform: scale(.99) translateX(-18px); }
    62% { transform: scale(1.08) translateX(22px); filter: blur(1px); }
    100% { transform: scale(1); filter: blur(0); }
}

@keyframes endFlash {
    0%, 15%, 100% { opacity: 0; }
    16%, 25% { opacity: .84; }
    42%, 48% { opacity: .22; }
}

@keyframes endSliceA {
    0%, 14%, 100% { opacity: 0; transform: translateX(0); }
    15%, 35% { opacity: .72; transform: translateX(38px); }
    36%, 56% { opacity: .22; transform: translateX(-48px); }
}

@keyframes endSliceB {
    0%, 28%, 100% { opacity: 0; transform: translateX(0); }
    29%, 52% { opacity: .58; transform: translateX(-54px); }
    53%, 68% { opacity: .16; transform: translateX(30px); }
}

@keyframes endSceneShake {
    0%, 100% { transform: translate(0,0); }
    18% { transform: translate(-7px,3px); }
    36% { transform: translate(9px,-4px); }
    54% { transform: translate(-5px,-2px); }
    74% { transform: translate(4px,3px); }
}

@media (max-width: 680px) {
    .end-intrusion { max-width: 44vw; font-size: 6px; }
    .end-code-skull { font-size: 6px; min-width: 60px; }
    .end-stage { gap: 22px; }
    .end-primary { white-space: normal; }
    .end-star { left: 1%; }
}


/* =========================================================
   FINAL TGX RETURN CARD // V4.5
   Aparece DESPUÉS del último IMPOSSIBLE.
========================================================= */
.end-return-card {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    padding: 32px;
    background: #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-align: center;
}

.end-return-card.end-return-visible {
    visibility: visible;
    pointer-events: auto;
    animation: endReturnReveal 1.8s ease forwards;
}

.end-return-logo {
    color: #f7fbff;
    font: 900 clamp(64px, 11vw, 170px)/.82 Consolas, "Courier New", monospace;
    letter-spacing: .14em;
    margin-left: .14em;
    text-shadow:
        0 0 6px rgba(255,255,255,.92),
        0 0 24px rgba(100,226,255,.42),
        0 0 60px rgba(187,73,255,.34);
}

.end-return-title {
    color: #fff;
    font: 700 clamp(15px, 2vw, 30px)/1.2 Consolas, "Courier New", monospace;
    letter-spacing: .28em;
    margin-left: .28em;
    text-shadow: 0 0 12px rgba(255,255,255,.52);
}

.end-return-state {
    margin-top: 10px;
    color: rgba(128,238,255,.76);
    font: 600 clamp(9px, .9vw, 13px)/1.2 Consolas, "Courier New", monospace;
    letter-spacing: .22em;
}

.end-return-button {
    margin-top: 34px;
    min-width: min(340px, 78vw);
    padding: 13px 24px;
    border: 1px solid rgba(139,224,255,.42);
    background: rgba(5,8,14,.72);
    color: rgba(237,250,255,.9);
    font: 700 11px/1 Consolas, "Courier New", monospace;
    letter-spacing: .2em;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.end-return-button:hover {
    color: #fff;
    border-color: rgba(196,110,255,.78);
    box-shadow: 0 0 26px rgba(119,75,255,.18), inset 0 0 18px rgba(79,210,255,.05);
    transform: translateY(-1px);
}

.end-return-button:disabled {
    opacity: .35;
    cursor: default;
}

.end-return-card.end-return-leaving {
    animation: endReturnLeave 1s ease forwards;
    pointer-events: none;
}

@keyframes endReturnReveal {
    0% { opacity: 0; filter: blur(9px); }
    45% { opacity: .72; filter: blur(2px); }
    100% { opacity: 1; filter: blur(0); }
}

@keyframes endReturnLeave {
    from { opacity: 1; }
    to { opacity: 0; }
}


/* =========================================================
   FINAL TGX SIGNAL RAIN // FINAL CANDIDATE
   Solo números + pequeños TGX. Sin video, sin imagen de fondo.
========================================================= */
.end-return-rain,
.end-return-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.end-return-rain {
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.end-return-visible .end-return-rain {
    opacity: 1;
}

.end-return-column {
    position: absolute;
    left: var(--x);
    top: -34%;
    width: max-content;
    display: grid;
    gap: 14px;
    transform: translateX(-50%);
    color: rgba(112, 215, 255, var(--column-opacity, .18));
    font: 600 clamp(7px, .62vw, 10px)/1 Consolas, "Courier New", monospace;
    letter-spacing: .18em;
    text-align: center;
    text-shadow: 0 0 8px rgba(84, 218, 255, .18);
    animation: endReturnColumnFall var(--speed, 15s) linear var(--delay, 0s) infinite;
    will-change: transform;
}

.end-return-column:nth-child(3n) {
    color: rgba(191, 94, 255, var(--column-opacity, .18));
    text-shadow: 0 0 9px rgba(184, 79, 255, .22);
}

.end-return-column span {
    min-height: 10px;
    opacity: .72;
}

.end-return-column .end-return-tgx-token {
    color: rgba(213, 142, 255, .68);
    font-weight: 800;
    letter-spacing: .26em;
    text-shadow: 0 0 6px rgba(206, 102, 255, .48), 0 0 15px rgba(77, 213, 255, .16);
}

.end-return-vignette {
    z-index: 1;
    background:
        radial-gradient(circle at center, transparent 0 28%, rgba(0,0,0,.22) 55%, rgba(0,0,0,.82) 100%),
        linear-gradient(to bottom, rgba(0,0,0,.34), transparent 30%, transparent 72%, rgba(0,0,0,.48));
}

.end-return-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
}

@keyframes endReturnColumnFall {
    from { transform: translate3d(-50%, -42vh, 0); }
    to   { transform: translate3d(-50%, 138vh, 0); }
}


/* =========================================================
   FINAL POLISH — INTERACTIVE TERMINATION CONFIRMATION
========================================================= */
.end-question-subtext {
    min-height: 1.8em;
    color: #aeb9c0;
    text-align: center;
    font-size: clamp(9px, 1.05vw, 14px);
    line-height: 1.8;
    letter-spacing: .09em;
    text-shadow: 0 0 8px rgba(255,255,255,.18);
}
.end-choice-actions {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 180px));
    justify-content: center;
    gap: 18px;
    width: 100%;
    max-height: 90px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s ease, max-height .35s ease, margin .35s ease;
}
.end-choice-actions[aria-hidden="true"] {
    pointer-events: none;
}
.end-choice-actions.end-choice-resolved {
    opacity: 0;
    max-height: 0;
    margin: -10px 0;
    overflow: hidden;
}
.end-choice-button {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    touch-action: manipulation;
    border: 2px solid rgba(255,255,255,.88);
    background: #000;
    color: #fff;
    padding: 14px 18px;
    cursor: pointer;
    font: 700 clamp(10px,1vw,13px)/1 "Press Start 2P", "Courier New", monospace;
    letter-spacing: .12em;
    box-shadow: 0 0 8px rgba(255,255,255,.12), inset 0 0 10px rgba(255,255,255,.025);
    text-shadow: 0 0 8px rgba(255,255,255,.6);
    transition: transform .12s ease, box-shadow .12s ease, color .12s ease, border-color .12s ease;
}
.end-choice-button:hover,
.end-choice-button:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: #fff;
    box-shadow: 0 0 16px rgba(255,255,255,.42), inset 0 0 12px rgba(255,255,255,.06);
}
.end-choice-button[data-choice="yes"]:hover,
.end-choice-button[data-choice="yes"]:focus-visible {
    color: #ff7c90;
    border-color: #ff6b83;
    text-shadow: 0 0 10px rgba(255,74,103,.75);
}
.end-choice-button[data-choice="no"]:hover,
.end-choice-button[data-choice="no"]:focus-visible {
    color: #8eff9d;
    border-color: #7cff8a;
    text-shadow: 0 0 10px rgba(124,255,138,.65);
}
.end-choice-button:disabled {
    cursor: default;
}
.end-choice-confirmed {
    color: #ff7189;
    text-shadow: 0 0 10px rgba(255,67,98,.52);
}
.end-choice-cancelled {
    color: #7cff8a;
    text-shadow: 0 0 10px rgba(124,255,138,.45);
}

@media (max-width: 600px) {
    .end-choice-actions {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .end-choice-button { padding: 12px 10px; }
}

.end-choice-actions[aria-hidden="true"]:not(.end-choice-resolved) {
    opacity: 0;
    pointer-events: none;
}

.end-question-box {
    min-height: 310px;
    gap: 20px;
}
