.entropy-screen {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: #050505;
    display: none;
    flex-direction: column;
}
.entropy-screen.active {
    display: flex;
}

/* ── Canvas (full-screen, behind everything) ── */
.entropy-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    z-index: 1;
}

/* ── Halo layer ── */
.entropy-halo-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.entropy-halo-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(0,229,255,0.45);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    /* duration overridden per-element in JS (2.5–3.8s) */
    animation: entropyHaloExpand 3s cubic-bezier(0.08, 0.82, 0.17, 1) forwards;
}
@keyframes entropyHaloExpand {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 0.7; }
    10%  { transform: translate(-50%, -50%) scale(0.15); opacity: 0.6; }
    30%  { transform: translate(-50%, -50%) scale(0.4); opacity: 0.45; }
    55%  { transform: translate(-50%, -50%) scale(0.65); opacity: 0.25; }
    80%  { transform: translate(-50%, -50%) scale(0.85); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ── TOP zone: title + stats ── */
.entropy-top {
    position: relative;
    z-index: 3;
    pointer-events: none;
    padding-top: env(safe-area-inset-top, 20px);
    background: rgba(5,5,5,0.35);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.entropy-header {
    text-align: center;
    padding: 0 20px 2px;
    color: #fff;
}
.entropy-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(57,255,20,0.3);
    margin: 0;
}
.entropy-header p {
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    margin-top: 2px;
}
.entropy-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px 0;
    padding: 2px 20px 0;
}
.entropy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.entropy-stat-val {
    font-family: var(--font-mono, 'SF Mono', monospace);
    font-size: 16px;
    font-weight: 700;
    color: #00e5ff;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px rgba(0,229,255,0.5);
}
.entropy-stat-lbl {
    font-size: 8.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.22);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ── BOTTOM zone: progress + button ── */
.entropy-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 16px 24px calc(env(safe-area-inset-bottom, 20px) + 20px);
    pointer-events: none;
    background: rgba(5,5,5,0.35);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-top: 1px solid rgba(255,255,255,0.06);
}
.entropy-bottom > * {
    pointer-events: auto;
}
.entropy-progress-track {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.entropy-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--neon, #39FF14);
    box-shadow: 0 0 10px rgba(57,255,20,0.5), 0 0 4px rgba(57,255,20,0.3);
    transition: width 0.15s ease-out;
}
.entropy-label {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}
.entropy-btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--neon, #39FF14);
    color: #000;
    font-size: 16px;
    font-weight: 700;
    margin-top: 16px;
    opacity: 0.25;
    pointer-events: none;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font);
}
.entropy-btn:not([disabled]) {
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 0 20px rgba(57,255,20,0.3), 0 0 8px rgba(57,255,20,0.2);
}
.entropy-btn:not([disabled]):active {
    transform: scale(0.97);
}
.entropy-btn-pulse {
    animation: entropyBtnPulse 2s ease-in-out infinite;
}
@keyframes entropyBtnPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(57,255,20,0.3), 0 0 8px rgba(57,255,20,0.2); }
    50%      { box-shadow: 0 0 30px rgba(57,255,20,0.5), 0 0 14px rgba(57,255,20,0.35); }
}

/* ── Confirmation overlay ── */
.entropy-confirm {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5,5,5,0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.entropy-confirm.active {
    opacity: 1;
}
.entropy-confirm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(57,255,20,0.12);
    border: 2px solid rgba(57,255,20,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--neon, #39FF14);
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(57,255,20,0.2);
}
.entropy-confirm-text {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    text-shadow: 0 0 16px rgba(57,255,20,0.3);
}

