/* Full-screen TV display for Members Draw */

.md-display-body {
    background: radial-gradient(1200px 800px at 20% 20%, rgba(255,255,255,0.08), rgba(0,0,0,0)),
                radial-gradient(900px 700px at 80% 30%, rgba(255,215,0,0.10), rgba(0,0,0,0)),
                radial-gradient(800px 600px at 70% 90%, rgba(0,255,170,0.08), rgba(0,0,0,0)),
                hsla(223.78,51.39%,18.24%,1);
    color: #f7fafc;
    overflow: hidden;
}

.md-display {
    min-height: 100vh;
    padding: 48px 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.md-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.md-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.md-logo {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

.md-kicker {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
}

.md-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.0;
    margin-top: 6px;
}

.md-status {
    font-size: 22px;
    font-weight: 600;
    opacity: 0.9;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
}

.md-stage {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.md-wheel-wrap {
    position: relative;
    display: grid;
    place-items: center;
    height: min(78vh, 860px);
    width: fit-content;
    margin: 0px 75px;
}

.md-pointer {
    position: absolute;
    top: 45.5%;
    right: -35px;
    width: 0;
    height: 0;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    /* Points left (toward wheel center) */
    border-right: 44px solid #f6e05e;
    filter: drop-shadow(0 14px 26px rgba(0,0,0,0.45));
    z-index: 3;
    /* Sit flush on the wheel rim (triangle tip touches the circle edge) */
    /* transform: translate(0, -50%); */
}

.md-wheel {
    width: min(74vh, 860px);
    height: min(74vh, 860px);
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    box-shadow:
        0 35px 80px rgba(0,0,0,0.55),
        inset 0 0 0 14px rgba(255,255,255,0.10),
        inset 0 0 0 2px rgba(255,255,255,0.14);
    position: relative;
    /* Allow the pointer triangle to overlap the rim cleanly */
    overflow: visible;
}

/* Remove glossy highlight overlay (flat segments) */
.md-wheel::after {
    content: none;
}

.md-wheel-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: none;
    transform: rotate(0deg);
    will-change: transform;
    position: relative;
}

.md-seg {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 0 0;
    width: 50%;
    pointer-events: none;
}

.md-seg-text {
    display: inline-block;
    position: absolute;
    right: 4px;
    top: 0;
    transform-origin: 100% 50%;
    text-align: right;
    /* transform is set dynamically */
    max-width: 92%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.92);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 26px rgba(0,0,0,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-seg-text.md-winner-seg {
    color: #fffdf1;
    text-shadow: 0 10px 26px rgba(0,0,0,0.55), 0 0 22px rgba(246, 224, 94, 0.35);
}

/* For very dense wheels, shrink labels further */
.md-wheel-face[data-dense="1"] .md-seg-text {
    font-size: 10px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.md-reveal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 30px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.md-amount {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #f6e05e;
    text-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.md-winner {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.06;
}

.md-outcome {
    display: none;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;
    padding: 18px 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    text-align: center;
}

.md-outcome.is-visible {
    display: block;
}

.md-outcome.md-outcome-present {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(74, 222, 128, 0.45);
    color: #dcfce7;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.md-outcome.md-outcome-absent {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(252, 165, 165, 0.4);
    color: #fee2e2;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.md-outcome.md-outcome-neutral {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #f1f5f9;
}

.md-sub {
    font-size: 22px;
    opacity: 0.9;
    font-weight: 600;
}

.md-footer {
    display: flex;
    justify-content: space-between;
    opacity: 0.85;
    font-weight: 600;
    font-size: 18px;
}

/* Animations */
.md-pop {
    animation: mdPop 900ms cubic-bezier(.2,.9,.2,1) both;
}

@keyframes mdPop {
    0% { transform: translateY(18px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.md-spin-glow {
    animation: mdGlow 1200ms ease-in-out infinite alternate;
}

@keyframes mdGlow {
    from { box-shadow: 0 35px 80px rgba(0,0,0,0.55), inset 0 0 0 14px rgba(255,255,255,0.10), inset 0 0 0 2px rgba(255,255,255,0.14); }
    to { box-shadow: 0 45px 95px rgba(0,0,0,0.65), inset 0 0 0 14px rgba(255,255,255,0.13), inset 0 0 0 2px rgba(255,255,255,0.18); }
}

@media (max-width: 1100px) {
    .md-stage {
        grid-template-columns: 1fr;
    }
    .md-title { font-size: 44px; }
    .md-amount { font-size: 54px; }
    .md-winner { font-size: 44px; }
}

