:root {
    color-scheme: dark;
    --bg: #050b16;
    --bg-soft: #0b1322;
    --panel: rgba(20, 30, 50, .78);
    --panel-strong: rgba(28, 39, 64, .9);
    --line: rgba(150, 170, 220, .14);
    --text: #f8fbff;
    --muted: #9aa8bf;
    --purple: #8b5cf6;
    --purple-2: #a78bfa;
    --green: #42e66b;
    --orange: #ff8a2a;
    --gold: #f6c945;
    --blue: #56c8ff;
}

html, body {
    min-height: 100%;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(139, 92, 246, .18), transparent 28rem),
        radial-gradient(circle at 78% 8%, rgba(86, 200, 255, .12), transparent 30rem),
        linear-gradient(145deg, #030712 0%, #07111f 52%, #050a13 100%);
    color: var(--text);
}

a, .btn-link { color: var(--purple-2); }
h1:focus { outline: none; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.mud-layout { background: transparent !important; }
.app-bar {
    height: 84px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 17, 31, .78) !important;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
    z-index: 1300 !important;
}

.app-bar .mud-toolbar {
    min-height: 84px;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.35rem;
}

.brand-lockup img {
    width: 256px;
    height: 67px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, .45));
}

.brand-lockup .mud-icon-root {
    color: var(--purple-2);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, .85));
}

.brand-lockup span span { color: var(--purple-2); }
.top-user {
    border: 1px solid var(--line) !important;
    border-radius: 16px !important;
    background: rgba(25, 35, 58, .78) !important;
    color: var(--text) !important;
    padding: 8px 14px !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.drawer-toggle {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 auto;
    border-radius: 14px !important;
    z-index: 3;
}

.app-drawer {
    width: 280px;
    padding-top: 14px;
    z-index: 1100 !important;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(12, 23, 41, .98), rgba(4, 10, 19, .98)) !important;
    box-shadow: 18px 0 58px rgba(0, 0, 0, .28);
}

.app-drawer .mud-drawer-content {
    overflow-y: auto;
}

.main-content { min-height: 100vh; }
.content-shell {
    padding: 34px 28px 30px;
    max-width: 1760px;
}

.nav-menu { padding: 18px 18px 28px; }
.nav-section {
    color: #748098;
    padding: 12px 14px 8px;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04rem;
}

.nav-menu .mud-nav-link {
    min-height: 56px;
    margin: 6px 0;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #d9e2f1 !important;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.nav-menu .mud-nav-link:hover,
.nav-menu .mud-nav-link.active {
    transform: translateX(3px);
    border-color: rgba(167, 139, 250, .34);
    background: linear-gradient(135deg, rgba(139, 92, 246, .42), rgba(91, 62, 172, .24));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 28px rgba(75, 45, 160, .22);
}

.nav-menu .mud-icon-root { color: #d7ccff !important; }
.logout-form {
    padding: 0 8px;
    margin: 8px 0 18px;
}

.legal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    justify-content: center;
    padding: 20px 28px 30px;
    color: #aebbd2;
    font-size: .88rem;
}

.legal-footer a { color: #d8cbff; text-decoration: none; }
.legal-footer a:hover { color: #fff; text-decoration: underline; }
.legal-content h2 { margin-top: 0; }
.legal-content p { color: #d7deec; line-height: 1.7; }
.legal-details { display: grid; gap: 10px; }
.legal-details div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.legal-details dt { color: #9aa8bf; }
.legal-details dd { margin: 0; color: #f8fbff; }
.whatsapp-float {
    position: fixed;
    z-index: 1200;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 17px;
    border-radius: 999px;
    background: #25d366;
    color: #062111;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34);
}
.whatsapp-float svg { width: 25px; height: 25px; }
.whatsapp-float:hover { color: #062111; background: #42e681; transform: translateY(-2px); }
@media (max-width: 620px) {
    .legal-details div { grid-template-columns: 1fr; gap: 2px; }
    .whatsapp-float { right: 16px; bottom: 16px; padding: 13px; }
    .whatsapp-float span { display: none; }
}

.logout-form .mud-button-root {
    min-height: 42px;
    border-radius: 10px !important;
}

.mud-button-root,
.section-heading button,
.upload-button,
.room-alert-close {
    touch-action: manipulation;
    transition: transform .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.mud-button-root:hover,
.mud-button-root:focus-visible,
.section-heading button:hover,
.section-heading button:focus-visible,
.upload-button:hover,
.room-alert-close:hover,
.room-alert-close:focus-visible,
.top-user:hover,
.top-user:focus-visible {
    transform: translateY(-2px) scale(1.012);
    filter: saturate(1.14) brightness(1.07);
    border-color: rgba(167, 139, 250, .58) !important;
    box-shadow: 0 14px 30px rgba(139, 92, 246, .3), 0 0 20px rgba(86, 200, 255, .12) !important;
}

.mud-button-root:active,
.section-heading button:active,
.upload-button:active,
.room-alert-close:active,
.top-user:active {
    transform: translateY(1px) scale(.985);
    filter: brightness(.96);
}

.glass-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(25, 35, 58, .86), rgba(10, 19, 33, .82));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .05),
        0 24px 70px rgba(0, 0, 0, .32);
    backdrop-filter: blur(18px);
    transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .09), transparent 28%),
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .16), transparent 18rem);
}

.glass-panel::after {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(135deg, rgba(167, 139, 250, .45), transparent 26%, transparent 72%, rgba(86, 200, 255, .28)),
        radial-gradient(circle at 18% 12%, rgba(167, 139, 250, .24), transparent 18rem),
        radial-gradient(circle at 82% 90%, rgba(86, 200, 255, .16), transparent 16rem);
    opacity: .38;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    padding: 1px;
    animation: panelBacklight 4.8s ease-in-out infinite;
}

.glass-panel:hover {
    border-color: rgba(167, 139, 250, .36);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .07),
        0 26px 76px rgba(0, 0, 0, .34),
        0 0 34px rgba(139, 92, 246, .16);
}

.premium-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 372px;
    gap: 20px;
}

.ambient-stage {
    position: fixed;
    inset: 78px 0 0 280px;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient-stage span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--purple-2);
    box-shadow: 0 0 14px var(--purple-2), 0 0 32px rgba(139, 92, 246, .42);
    opacity: .58;
    animation: floatParticle 9s linear infinite;
}

.ambient-stage span:nth-child(1) { left: 8%; bottom: -20px; animation-delay: 0s; }
.ambient-stage span:nth-child(2) { left: 22%; bottom: -70px; animation-delay: 1.3s; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.ambient-stage span:nth-child(3) { left: 46%; bottom: -34px; animation-delay: 2.5s; background: var(--blue); box-shadow: 0 0 18px var(--blue); }
.ambient-stage span:nth-child(4) { left: 69%; bottom: -52px; animation-delay: 3.8s; }
.ambient-stage span:nth-child(5) { left: 84%; bottom: -24px; animation-delay: 5s; background: var(--green); box-shadow: 0 0 18px var(--green); }
.ambient-stage span:nth-child(6) { left: 35%; bottom: -96px; animation-delay: 6.2s; width: 10px; height: 10px; }

.main-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.hero-room {
    isolation: isolate;
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr) 184px;
    gap: 24px;
    align-items: center;
    min-height: 280px;
    padding: 28px;
}

.hero-room.action-pulse {
    animation: actionGlow 1.4s ease both;
}

.sparkle-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sparkle-field i {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #fff;
    opacity: .76;
    box-shadow: 0 0 12px #fff, 0 0 24px rgba(167, 139, 250, .85);
    animation: sparklePop 2.8s ease-in-out infinite;
}

.sparkle-field i:nth-child(1) { left: 9%; top: 18%; animation-delay: .1s; }
.sparkle-field i:nth-child(2) { left: 16%; top: 30%; animation-delay: .8s; background: var(--gold); }
.sparkle-field i:nth-child(3) { left: 38%; top: 14%; animation-delay: 1.4s; }
.sparkle-field i:nth-child(4) { right: 22%; top: 19%; animation-delay: 2s; background: var(--blue); }
.sparkle-field i:nth-child(5) { right: 12%; bottom: 32%; animation-delay: .5s; }
.sparkle-field i:nth-child(6) { left: 58%; bottom: 18%; animation-delay: 1.8s; background: var(--green); }

.prize-orb {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    border: 1px solid rgba(167, 139, 250, .24);
    border-radius: 50%;
    background:
        radial-gradient(circle at 48% 42%, rgba(167, 139, 250, .48), rgba(79, 46, 174, .16) 48%, transparent 70%),
        rgba(9, 14, 28, .86);
    box-shadow: 0 0 42px rgba(139, 92, 246, .36), inset 0 0 28px rgba(167, 139, 250, .22);
}

.orb-ring {
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(167, 139, 250, .45);
    border-radius: 50%;
    animation: orbWave 2.9s ease-out infinite;
}

.orb-ring.delay { animation-delay: 1.35s; }

.prize-orb .mud-icon-root {
    font-size: 5.6rem;
    color: #d8c7ff;
    filter: drop-shadow(0 0 18px rgba(167, 139, 250, .9));
    animation: trophyFloat 3.8s ease-in-out infinite;
}

.hero-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.hero-title-row h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, .45);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 90, 120, .72);
    background: rgba(120, 26, 48, .34);
    color: #ff718f;
    font-weight: 800;
}

.status-pill.open {
    border-color: rgba(66, 230, 107, .62);
    background: rgba(28, 120, 52, .24);
    color: var(--green);
}

.status-pill.done {
    border-color: rgba(246, 201, 69, .76);
    background: rgba(144, 102, 16, .22);
    color: var(--gold);
}

.special-room-panel,
.special-room-card {
    border-color: rgba(246, 201, 69, .58) !important;
    background:
        radial-gradient(circle at 85% 10%, rgba(246, 201, 69, .18), transparent 11rem),
        radial-gradient(circle at 12% 22%, rgba(167, 139, 250, .18), transparent 14rem),
        linear-gradient(145deg, rgba(36, 27, 54, .9), rgba(10, 18, 33, .86)) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .06),
        0 24px 70px rgba(0, 0, 0, .32),
        0 0 34px rgba(246, 201, 69, .14) !important;
}

.special-room-card:hover,
.special-room-panel:hover {
    border-color: rgba(246, 201, 69, .82) !important;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .08),
        0 28px 76px rgba(0, 0, 0, .34),
        0 0 46px rgba(246, 201, 69, .22) !important;
}

.special-room-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(246, 201, 69, .58);
    border-radius: 999px;
    background: rgba(246, 201, 69, .13);
    color: var(--gold);
    font-weight: 900;
    box-shadow: 0 0 18px rgba(246, 201, 69, .16);
}

.special-room-badge.compact {
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    font-size: .82rem;
}

.special-room-badge .mud-icon-root {
    color: var(--gold);
    font-size: 1.12rem;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    margin: 26px 0;
}

.metric-row > div {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.metric-row span,
.side-card > span,
.winner-body span {
    display: block;
    color: var(--muted);
    font-size: .95rem;
}

.metric-row strong {
    display: block;
    margin-top: 6px;
    color: var(--purple-2);
    font-size: 1.32rem;
}

.metric-row .info { color: var(--blue); }
.metric-row .success, .success { color: var(--green); }
.metric-row .warning { color: var(--orange); }

.progress-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.progress-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(88, 95, 120, .42);
    overflow: hidden;
}

.progress-fill {
    position: relative;
    height: 100%;
    min-width: 2%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #c4b5fd);
    box-shadow: 0 0 18px rgba(167, 139, 250, .45), 0 0 34px rgba(86, 200, 255, .16);
    transition: width .35s ease;
}

.progress-fill::after {
    content: "";
    position: absolute;
    inset: -12px 0;
    background: radial-gradient(ellipse at center, rgba(167, 139, 250, .45), transparent 65%);
    filter: blur(10px);
    opacity: .72;
    animation: progressGlow 2.8s ease-in-out infinite;
}

.auto-room-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(139, 92, 246, .28);
    border-radius: 12px;
    background: rgba(40, 34, 85, .32);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.auto-room-note:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, .5);
    box-shadow: 0 12px 34px rgba(139, 92, 246, .18);
}

.auto-room-note .mud-icon-root { color: var(--purple-2); }
.auto-room-note strong { display: block; color: var(--purple-2); }
.auto-room-note span { color: #d7deec; }

.activity-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    color: #d7deec;
}

.activity-strip strong {
    display: block;
    color: #f4f0ff;
}

.activity-strip span:not(.live-dot) {
    color: var(--muted);
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(66, 230, 107, .7);
    animation: livePulse 1.35s ease-out infinite;
}

.countdown-card {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    align-self: start;
    min-height: 132px;
    border: 1px solid rgba(167, 139, 250, .3);
    border-radius: 14px;
    background: rgba(22, 27, 50, .82);
}

.countdown-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, .12), transparent);
    animation: countdownScan 2.4s ease-in-out infinite;
}

.countdown-card span { color: #eef2ff; }
.countdown-card strong {
    font-size: 2.75rem;
    line-height: 1;
    color: var(--purple-2);
    text-shadow: 0 0 18px rgba(167, 139, 250, .65);
}

.participants-panel,
.draw-panel,
.side-card,
.winner-card,
.empty-state {
    padding: 20px;
}

.section-heading,
.side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading > div,
.side-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2,
.side-title h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 850;
}

.section-heading .mud-icon-root,
.side-title .mud-icon-root { color: var(--purple-2); }

.section-heading span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(139, 92, 246, .25);
    color: var(--purple-2);
    font-weight: 800;
}

.section-heading button {
    border: 1px solid rgba(167, 139, 250, .34);
    border-radius: 10px;
    background: rgba(18, 15, 38, .72);
    color: #d9ccff;
    padding: 8px 14px;
    font-weight: 700;
}

.participant-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.participant-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(38, 50, 76, .8), rgba(21, 31, 49, .82));
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    animation: cardEnter .55s ease both;
}

.participant-card:nth-child(2) { animation-delay: .05s; }
.participant-card:nth-child(3) { animation-delay: .1s; }
.participant-card:nth-child(4) { animation-delay: .15s; }
.participant-card:nth-child(5) { animation-delay: .2s; }
.participant-card:nth-child(6) { animation-delay: .25s; }
.participant-card:nth-child(7) { animation-delay: .3s; }
.participant-card:nth-child(8) { animation-delay: .35s; }
.participant-card:nth-child(9) { animation-delay: .4s; }
.participant-card:nth-child(10) { animation-delay: .45s; }
.participant-card:nth-child(11) { animation-delay: .5s; }

.participant-card:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, .42);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .22);
}

.participant-card strong,
.draw-person span,
.winner-list strong { color: var(--text); }
.participant-card span { color: #c8b9ff; }
.participant-more {
    border-style: dashed;
    color: var(--purple-2);
}

.participant-more .mud-icon-root { font-size: 2.2rem; }

.participant-avatar,
.draw-avatar,
.winner-avatar,
.mini-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(145deg, #e5e7eb, #a8b0bf);
    color: #334155;
    font-weight: 900;
}

.participant-avatar { width: 54px; height: 54px; }
.draw-avatar { width: 54px; height: 54px; }
.winner-avatar { width: 78px; height: 78px; border: 2px solid var(--gold); }
.mini-avatar { width: 32px; height: 32px; }

.participant-avatar img,
.draw-avatar img,
.winner-avatar img,
.mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.draw-panel {
    border-color: rgba(139, 92, 246, .55);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, .18), 0 24px 70px rgba(0, 0, 0, .34);
}

.draw-rail {
    display: flex;
    gap: 18px;
    overflow: hidden;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(13, 22, 38, .84);
}

.draw-track {
    display: flex;
    gap: 18px;
    min-width: max-content;
    animation: drawMarquee 22s linear infinite;
}

.draw-rail:hover .draw-track {
    animation-play-state: paused;
}

.draw-person {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 70px;
}

.draw-person.selected .draw-avatar {
    outline: 4px solid rgba(139, 92, 246, .95);
    box-shadow: 0 0 22px rgba(167, 139, 250, .85);
    animation: selectedPulse 1.4s ease-in-out infinite;
}

.draw-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    color: #d7deec;
}

.spinner-dot {
    width: 22px;
    height: 22px;
    border: 4px solid rgba(167, 139, 250, .24);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin .85s linear infinite;
}

.side-column { min-width: 0; }
.side-card,
.winner-card { min-height: 150px; }

.wallet-balance {
    display: block;
    margin: 6px 0 16px;
    color: var(--green);
    font-size: 1.85rem;
}

.primary-action {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(92deg, #5b21b6 0%, #7c3aed 52%, #a855f7 100%);
    box-shadow: 0 12px 28px rgba(139, 92, 246, .38), inset 0 1px rgba(255, 255, 255, .18);
    color: white;
    padding: 12px 16px;
    font-weight: 850;
    text-decoration: none;
    transform: translateY(0) scale(1);
    touch-action: manipulation;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background-position .26s ease;
    background-size: 160% 100%;
}

.danger-action {
    border-color: rgba(239, 68, 68, .42) !important;
    color: #fecaca !important;
}

.danger-action:hover,
.danger-action:focus-visible {
    border-color: rgba(248, 113, 113, .72) !important;
    background: rgba(127, 29, 29, .28) !important;
    color: #fff !important;
}

.profile-menu a[href="Account/Manage/TwoFactorAuthentication"],
.account-manage-nav a[href="Account/Manage/TwoFactorAuthentication"] {
    display: none !important;
}

.shimmer-action::after,
.buy-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: translateX(-110%);
    animation: buttonSweep 2.3s ease-in-out infinite;
}

.primary-action:hover,
.primary-action:focus-visible {
    transform: translateY(-2px) scale(1.015);
    background-position: 100% 0;
    filter: saturate(1.18) brightness(1.08);
    box-shadow: 0 18px 40px rgba(139, 92, 246, .56), 0 0 28px rgba(168, 85, 247, .2), inset 0 1px rgba(255, 255, 255, .24);
}

.primary-action:active {
    transform: translateY(1px) scale(.985);
    filter: saturate(1.1) brightness(.98);
    box-shadow: 0 8px 18px rgba(139, 92, 246, .38), inset 0 2px 10px rgba(0, 0, 0, .22);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.room-live-link:focus-visible,
.section-heading button:focus-visible,
.room-list-card:focus-visible,
.upload-button:focus-within,
.mud-button-root:focus-visible {
    outline: 3px solid rgba(86, 200, 255, .5);
    outline-offset: 3px;
}

.participation-box {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.quota-ring {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border: 9px solid rgba(139, 92, 246, .95);
    border-left-color: rgba(167, 139, 250, .34);
    border-radius: 50%;
    box-shadow: 0 0 24px rgba(139, 92, 246, .42);
    animation: ringBreath 2.6s ease-in-out infinite;
}

.quota-ring strong { font-size: 1.35rem; }
.quota-ring span { margin-top: -20px; color: #d6cdfb; }
.participation-box p { margin: 0 0 12px; color: #d7deec; }
.ready-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
}

.ready-line .mud-icon-root { font-size: 1.2rem; }
.buy-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.buy-row .mud-button-root {
    width: 100%;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 48px minmax(58px, 1fr) 48px;
    align-items: center;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, .28);
    border-radius: 12px;
    background: rgba(6, 12, 23, .62);
}

.quantity-stepper button {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 48px;
    border: 0;
    background: rgba(167, 139, 250, .12);
    color: #e5dcff;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.quantity-stepper button:not(:disabled):hover,
.quantity-stepper button:not(:disabled):focus-visible {
    background: rgba(167, 139, 250, .28);
    color: #fff;
}

.quantity-stepper button:not(:disabled):active {
    transform: scale(.96);
}

.quantity-stepper button:disabled {
    cursor: not-allowed;
    color: rgba(154, 168, 191, .5);
    background: rgba(88, 95, 120, .12);
}

.quantity-stepper input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--text);
    font-weight: 900;
    text-align: center;
    outline: 0;
}

.quantity-jumps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.quantity-jumps button {
    min-height: 38px;
    border: 1px solid rgba(167, 139, 250, .24);
    border-radius: 10px;
    background: rgba(22, 18, 48, .62);
    color: #d9ccff;
    font-weight: 850;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quantity-jumps button:not(:disabled):hover,
.quantity-jumps button:not(:disabled):focus-visible {
    transform: translateY(-1px);
    border-color: rgba(167, 139, 250, .54);
    background: rgba(139, 92, 246, .22);
}

.quantity-jumps button:disabled {
    cursor: not-allowed;
    color: rgba(154, 168, 191, .48);
    background: rgba(88, 95, 120, .12);
}

.purchase-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: center;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(246, 201, 69, .28);
    border-radius: 12px;
    background: rgba(246, 201, 69, .08);
}

.purchase-summary span {
    color: var(--muted);
}

.purchase-summary strong {
    color: var(--gold);
    font-size: 1.25rem;
}

.purchase-summary small {
    grid-column: 1 / -1;
    color: #d7deec;
}

.buy-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(92deg, #5b21b6, #7c3aed 58%, #a855f7 100%) !important;
    background-size: 160% 100% !important;
    box-shadow: 0 0 22px rgba(139, 92, 246, .35), inset 0 1px rgba(255, 255, 255, .18) !important;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background-position .26s ease !important;
}

.buy-button:hover,
.buy-button:focus-visible {
    transform: translateY(-2px) scale(1.015);
    background-position: 100% 0 !important;
    filter: saturate(1.18) brightness(1.08);
    box-shadow: 0 0 36px rgba(167, 139, 250, .62), 0 0 24px rgba(168, 85, 247, .2) !important;
}

.buy-button:active {
    transform: translateY(1px) scale(.985);
    filter: brightness(.96);
}

.quota-input .mud-input-root {
    color: var(--text) !important;
    background: rgba(6, 12, 23, .62);
}

.winner-card {
    border-color: rgba(246, 201, 69, .82);
    box-shadow: inset 0 0 30px rgba(246, 201, 69, .08), 0 0 28px rgba(246, 201, 69, .18);
    animation: winnerGlow 3s ease-in-out infinite;
}

.winner-card .side-title .mud-icon-root,
.winner-card h3 { color: var(--gold); }

.winner-body {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: center;
}

.winner-body strong {
    display: block;
    margin: 4px 0 10px;
    color: var(--gold);
    font-size: 1.25rem;
}

.winner-list {
    display: grid;
    gap: 12px;
}

.winner-list > div {
    display: grid;
    grid-template-columns: 28px 34px 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.winner-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.winner-list span { color: #f4f0ff; font-weight: 800; }
.winner-list em {
    border: 1px solid rgba(246, 201, 69, .28);
    border-radius: 6px;
    color: var(--gold);
    font-style: normal;
    padding: 3px 6px;
}
.winner-list b { color: var(--green); font-weight: 850; }

.live-room-page {
    position: relative;
    display: grid;
    gap: 24px;
}

.back-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #d8deeb;
    font-weight: 650;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.back-link:hover {
    color: var(--purple-2);
    transform: translateX(-3px);
}

.live-room-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.live-main,
.live-side {
    display: grid;
    gap: 22px;
}

.live-main.draw-spotlight .draw-arena {
    order: -1;
    min-height: 390px;
    border-color: rgba(246, 201, 69, .64);
    box-shadow: inset 0 0 38px rgba(246, 201, 69, .08), 0 0 42px rgba(246, 201, 69, .18);
}

.live-summary {
    isolation: isolate;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 260px;
    gap: 26px;
    align-items: center;
    min-height: 166px;
    padding: 22px 26px;
}

.live-prize-orb {
    width: 126px;
    height: 126px;
}

.live-prize-orb .mud-icon-root {
    font-size: 4.8rem;
}

.live-prize-orb img {
    position: relative;
    z-index: 2;
    width: 76%;
    height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(245, 158, 11, .2)) drop-shadow(0 0 14px rgba(139, 92, 246, .46));
}

.side-title-trophy {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
}

.side-title-trophy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(245, 158, 11, .24));
}

.live-summary-info {
    min-width: 0;
}

.live-summary .hero-title-row h1 {
    font-size: clamp(2rem, 3vw, 2.55rem);
}

.live-metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin: 18px 0 0;
}

.summary-countdown {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 128px;
    overflow: hidden;
    padding-left: 28px;
    border-left: 1px solid var(--line);
    text-align: center;
}

.summary-countdown > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d9dfed;
}

.summary-countdown .mud-icon-root {
    color: #abb7ca;
    font-size: 1.2rem;
}

.summary-countdown strong {
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--purple-2);
    font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    line-height: 1.05;
    text-shadow: 0 0 24px rgba(167, 139, 250, .72);
}

.summary-countdown.is-result strong {
    font-size: clamp(1.45rem, 2.4vw, 2.35rem);
    line-height: 1.12;
}

.summary-countdown small {
    max-width: 100%;
    color: #d9dfed;
    font-size: 1rem;
    line-height: 1.25;
}

.draw-arena {
    min-height: 330px;
    padding: 28px 0 24px;
    border-color: rgba(139, 92, 246, .48);
    background:
        radial-gradient(circle at 50% 48%, rgba(139, 92, 246, .24), transparent 22rem),
        linear-gradient(145deg, rgba(23, 25, 58, .9), rgba(8, 13, 28, .88));
}

.arena-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    color: var(--purple-2);
    letter-spacing: .42rem;
    text-transform: uppercase;
}

.arena-title span {
    width: 12px;
    height: 12px;
    background: #fff;
    clip-path: polygon(50% 0%, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0% 50%, 37% 37%);
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, .9));
    animation: sparklePop 2.4s ease-in-out infinite;
}

.arena-line {
    height: 2px;
    margin: 26px 0 0;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, .9), transparent);
    box-shadow: 0 0 16px rgba(167, 139, 250, .8);
}

.arena-line.bottom {
    margin: 0 0 24px;
}

.arena-pointer {
    position: relative;
    z-index: 2;
    width: 0;
    height: 0;
    margin: -18px auto 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 0;
    border-bottom: 24px solid #fff;
    filter: drop-shadow(0 0 12px rgba(167, 139, 250, .95));
}

.arena-pointer.bottom {
    margin: -4px auto -18px;
    transform: rotate(180deg);
}

.arena-rail {
    position: relative;
    overflow: hidden;
    width: calc(100% - 36px);
    height: 176px;
    margin: 0 auto;
    padding: 22px 0;
    border: 1px solid rgba(167, 139, 250, .24);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(5, 10, 19, .92), transparent 12%, transparent 88%, rgba(5, 10, 19, .92)),
        rgba(10, 16, 32, .54);
    box-shadow: inset 0 0 34px rgba(139, 92, 246, .18), 0 0 40px rgba(139, 92, 246, .18);
}

.arena-rail::before,
.arena-rail::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: auto;
    z-index: 3;
    background: linear-gradient(180deg, transparent, rgba(246, 201, 69, .95), transparent);
    box-shadow: 0 0 22px rgba(246, 201, 69, .8);
}

.arena-rail::after {
    width: 132px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid rgba(246, 201, 69, .34);
    border-right: 1px solid rgba(246, 201, 69, .34);
    background: rgba(246, 201, 69, .03);
    box-shadow: inset 0 0 30px rgba(246, 201, 69, .08);
}

.arena-track {
    display: flex;
    align-items: center;
    gap: 30px;
    width: max-content;
    min-width: max-content;
    padding: 0 34px;
    animation: arenaSpin 80s linear infinite;
}

.arena-person {
    display: grid;
    gap: 7px;
    place-items: center;
    min-width: 104px;
    min-height: 126px;
    opacity: 1;
    filter: none;
    transform: none;
}

.arena-person em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    min-width: 58px;
    padding: 0 9px;
    border: 1px solid rgba(246, 201, 69, .52);
    border-radius: 999px;
    background: rgba(246, 201, 69, .1);
    color: var(--gold);
    font-size: .78rem;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
}

.arena-person.is-mine .arena-avatar {
    border-color: rgba(66, 230, 107, .72);
    box-shadow: 0 0 28px rgba(66, 230, 107, .24);
}

.arena-person.is-mine em {
    border-color: rgba(66, 230, 107, .56);
    background: rgba(66, 230, 107, .1);
    color: var(--green);
}

.arena-person.selected {
    opacity: 1;
    filter: none;
    transform: scale(1.04);
}

.arena-avatar {
    display: grid;
    place-items: center;
    overflow: hidden;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 3px solid rgba(167, 139, 250, .45);
    background: linear-gradient(145deg, #e5e7eb, #a8b0bf);
    color: #334155;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(139, 92, 246, .25);
}

.arena-person.selected .arena-avatar {
    width: 96px;
    height: 96px;
    border-color: #d8c7ff;
    outline: 6px solid rgba(139, 92, 246, .45);
    box-shadow: 0 0 40px rgba(167, 139, 250, .9);
}

.arena-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.arena-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 28px;
    border: 1px solid rgba(167, 139, 250, .64);
    border-radius: 999px;
    background: rgba(39, 25, 78, .58);
    color: var(--purple-2);
    font-weight: 800;
    box-shadow: 0 0 24px rgba(139, 92, 246, .24);
}

.draw-arena.finished .arena-track {
    justify-content: center;
    width: 100%;
    min-width: 100%;
    padding: 0 18px;
    transform: translateX(0);
    animation: none;
}

.draw-arena.finished .arena-person:not(.selected) {
    opacity: .42;
    filter: saturate(.65);
}

.draw-arena.finished .arena-person.selected {
    min-width: 132px;
    transform: none;
    animation: arenaWinnerReveal .42s ease-out both;
}

.live-participants {
    padding: 18px;
}

.live-participant-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.live-participant-grid .participant-card {
    position: relative;
}

.participant-online {
    position: absolute;
    right: 14px;
    top: 19px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(66, 230, 107, .9);
}

.live-side .side-card,
.live-side .winner-card {
    padding: 22px;
}

.prize-side-card {
    min-height: 206px;
    border-color: rgba(139, 92, 246, .42);
    background:
        radial-gradient(circle at 86% 25%, rgba(246, 201, 69, .12), transparent 7rem),
        linear-gradient(145deg, rgba(44, 28, 88, .82), rgba(16, 24, 42, .9));
}

.side-prize {
    display: block;
    margin: 18px 0 10px;
    color: var(--green);
    font-size: 2.45rem;
    line-height: 1;
}

.side-progress {
    margin-top: 18px;
}

.quotas-side-card .quota-total-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}

.quota-total-row strong {
    color: var(--blue);
    font-size: 2.35rem;
}

.quota-total-row .mud-icon-root {
    color: var(--purple);
    font-size: 4.8rem;
    filter: drop-shadow(0 0 18px rgba(139, 92, 246, .45));
}

.live-winner-card .winner-body {
    grid-template-columns: 88px 1fr;
}

.live-winner-card em {
    display: inline-flex;
    margin-left: 12px;
    padding: 4px 12px;
    border: 1px solid rgba(246, 201, 69, .48);
    border-radius: 999px;
    color: var(--gold);
    font-style: normal;
}

.live-winner-card b {
    display: block;
    color: var(--green);
    font-size: 1.2rem;
}

.live-winner-card small {
    color: var(--muted);
}

.live-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.live-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, 100%);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(16, 27, 47, .78);
    color: #dbe6f6;
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.live-user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-summary {
    min-height: 214px;
}

.main-progress {
    margin-top: 18px;
}

.summary-help,
.arena-subtitle,
.muted-copy {
    margin: 12px 0 0;
    color: #c8d2e4;
}

.draw-arena.waiting .arena-track {
    animation-duration: 80s;
    animation-timing-function: linear;
}

.draw-arena.scheduled .arena-track {
    animation: none;
    transform: translateX(0);
}

.draw-arena.drawing .arena-track {
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.draw-arena.drawing.revealing .arena-track {
    animation-duration: 5.2s;
}

.draw-arena.finished {
    border-color: rgba(246, 201, 69, .58);
    background:
        radial-gradient(circle at 50% 48%, rgba(246, 201, 69, .18), transparent 22rem),
        linear-gradient(145deg, rgba(38, 30, 56, .9), rgba(8, 13, 28, .88));
}

.arena-subtitle {
    max-width: 720px;
    margin: 12px auto 0;
    padding: 0 20px;
    text-align: center;
}

.arena-person span {
    max-width: 106px;
    overflow: hidden;
    color: #eef2ff;
    font-size: .82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-card.is-me {
    border-color: rgba(66, 230, 107, .45);
    box-shadow: inset 0 0 20px rgba(66, 230, 107, .06), 0 12px 28px rgba(0, 0, 0, .2);
}

.participant-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.participant-name-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-name-row em {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(66, 230, 107, .42);
    border-radius: 999px;
    background: rgba(66, 230, 107, .12);
    color: var(--green);
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
}

.participant-card small {
    display: block;
    margin-top: 3px;
    color: #95a3b9;
    font-size: .82rem;
}

.participating-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(66, 230, 107, .46);
    border-radius: 999px;
    background: rgba(66, 230, 107, .1);
    color: var(--green);
    font-size: .82rem;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: inset 0 0 18px rgba(66, 230, 107, .06);
}

.participating-pill.compact {
    min-height: 28px;
    padding: 0 9px;
    font-size: .74rem;
}

.participating-pill .mud-icon-root {
    color: var(--green);
    font-size: 1rem;
}

.live-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
    gap: 18px;
}

.activity-list,
.winner-mini-list {
    display: grid;
    gap: 12px;
}

.activity-list > div,
.winner-mini-list > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 58px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 15, 28, .48);
}

.activity-list .mud-icon-root {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(139, 92, 246, .16);
    color: var(--purple-2);
}

.activity-list p,
.winner-mini-list p {
    margin: 0;
    color: #dbe5f4;
}

.activity-list strong,
.winner-mini-list strong {
    color: var(--text);
}

.activity-list span,
.winner-mini-list span {
    color: var(--muted);
    font-size: .86rem;
    white-space: nowrap;
}

.wallet-buy-card .primary-action {
    margin-top: 8px;
}

.blocked-text {
    display: block;
    margin-top: 10px;
    color: #ff9aaa;
}

.participation-card p {
    margin: 0 0 10px;
    color: #dbe5f4;
}

.participation-card p strong,
.participation-card b {
    color: var(--purple-2);
}

.participation-card b {
    display: block;
    margin-top: 12px;
}

.participation-card em {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 7px 11px;
    border: 1px solid rgba(66, 230, 107, .36);
    border-radius: 999px;
    background: rgba(66, 230, 107, .1);
    color: var(--green);
    font-style: normal;
    font-weight: 900;
}

.rules-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rules-card li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(150, 170, 220, .1);
    color: #cbd5e1;
}

.rules-card li:last-child {
    border-bottom: 0;
}

.rules-card li:not(:has(span)) {
    justify-content: flex-start;
}

.rules-card span {
    color: var(--muted);
}

.rules-card strong {
    color: var(--text);
}

.purchase-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(1, 5, 12, .72);
    backdrop-filter: blur(10px);
    animation: modalFade .18s ease both;
}

.purchase-modal {
    width: min(520px, 100%);
    padding: 24px;
    animation: modalPop .22s ease both;
}

.participants-modal {
    width: min(760px, 100%);
    max-height: min(720px, 88vh);
    overflow: auto;
    padding: 24px;
    animation: modalPop .22s ease both;
}

.all-participants-list {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.all-participants-list > div {
    display: grid;
    grid-template-columns: 40px minmax(120px, 1fr) auto minmax(160px, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 15, 28, .52);
}

.all-participants-list strong {
    color: var(--text);
}

.all-participants-list span {
    color: var(--purple-2);
    font-weight: 800;
}

.all-participants-list small {
    color: #cbd5e1;
}

.purchase-modal dl {
    display: grid;
    gap: 10px;
    margin: 18px 0 22px;
}

.purchase-modal dl > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.purchase-modal dt {
    color: var(--muted);
}

.purchase-modal dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    text-align: right;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal-actions.single {
    grid-template-columns: 1fr;
}

.modal-actions .primary-action,
.modal-actions .secondary-action {
    width: 100%;
}

.room-alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(1, 5, 12, .64);
    backdrop-filter: blur(10px);
    animation: modalFade .18s ease both;
}

.room-alert-popup {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 18px;
    width: min(520px, 100%);
    padding: 26px;
    border-color: rgba(246, 201, 69, .48);
    background:
        radial-gradient(circle at 18% 22%, rgba(246, 201, 69, .16), transparent 9rem),
        linear-gradient(145deg, rgba(21, 28, 46, .96), rgba(10, 14, 28, .96));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .42), 0 0 34px rgba(246, 201, 69, .14);
    animation: modalPop .22s ease both;
}

.room-alert-popup .primary-action {
    grid-column: 1 / -1;
}

.room-alert-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border: 1px solid rgba(246, 201, 69, .5);
    border-radius: 18px;
    background: rgba(246, 201, 69, .1);
    color: var(--gold);
    box-shadow: inset 0 0 24px rgba(246, 201, 69, .08), 0 0 22px rgba(246, 201, 69, .18);
}

.room-alert-icon .mud-icon-root {
    font-size: 2.2rem;
}

.room-alert-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--purple-2);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .18rem;
    text-transform: uppercase;
}

.room-alert-popup h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.15;
}

.room-alert-popup p {
    margin: 10px 0 0;
    color: #d5deee;
    line-height: 1.5;
}

.room-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(8, 15, 28, .72);
    color: #d9e2f2;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.public-dashboard,
.how-page {
    position: relative;
    display: grid;
    gap: 20px;
}

.dashboard-hero,
.how-hero {
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    align-items: center;
    min-height: 300px;
    padding: 34px;
}

.dashboard-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(167, 139, 250, .38);
    border-radius: 999px;
    background: rgba(139, 92, 246, .14);
    color: var(--purple-2);
    font-weight: 850;
}

.dashboard-hero h1,
.how-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: .98;
    font-weight: 950;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .45);
}

.dashboard-hero p,
.how-hero p {
    max-width: 700px;
    margin: 18px 0 0;
    color: #ccd6e8;
    font-size: 1.08rem;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-actions .primary-action {
    width: auto;
    min-width: 210px;
}

.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 18px;
    border: 1px solid rgba(167, 139, 250, .38);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(18, 15, 38, .75), rgba(48, 31, 100, .45));
    color: #d9ccff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, .06);
    touch-action: manipulation;
    transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    transform: translateY(-2px) scale(1.012);
    border-color: rgba(167, 139, 250, .72);
    background: linear-gradient(135deg, rgba(64, 41, 130, .78), rgba(18, 15, 38, .68));
    color: #fff;
    box-shadow: 0 14px 30px rgba(139, 92, 246, .26), inset 0 1px rgba(255, 255, 255, .1);
}

.secondary-action:active {
    transform: translateY(1px) scale(.985);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .18);
}

.dashboard-trophy {
    position: relative;
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(167, 139, 250, .38), rgba(82, 44, 168, .16) 56%, transparent 70%),
        rgba(8, 13, 28, .72);
    box-shadow: 0 0 70px rgba(139, 92, 246, .34);
}

.dashboard-trophy .mud-icon-root {
    color: #d8c7ff;
    font-size: 6.2rem;
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, .9));
    animation: trophyFloat 3.8s ease-in-out infinite;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-stat {
    display: grid;
    gap: 8px;
    min-height: 156px;
    padding: 20px;
}

.dashboard-stat .mud-icon-root {
    color: var(--purple-2);
    font-size: 2rem;
}

.dashboard-stat span,
.dashboard-stat small {
    color: var(--muted);
}

.dashboard-stat strong {
    color: var(--text);
    font-size: 2.15rem;
    line-height: 1;
}

.dashboard-stat.highlight {
    border-color: rgba(246, 201, 69, .48);
    box-shadow: inset 0 0 28px rgba(246, 201, 69, .08), 0 0 30px rgba(246, 201, 69, .12);
}

.dashboard-stat.highlight .mud-icon-root,
.dashboard-stat.highlight strong {
    color: var(--gold);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 22px;
    align-items: start;
}

.dashboard-feature,
.dashboard-news,
.dashboard-winners,
.dashboard-how,
.rules-panel {
    padding: 22px;
}

.dashboard-feature {
    padding: 18px 20px;
}

.dashboard-feature .section-heading {
    margin-bottom: 10px;
}

.dashboard-feature .section-heading a {
    color: var(--purple-2);
    font-weight: 850;
    text-decoration: none;
}

.featured-room-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.mini-trophy {
    width: 70px;
    height: 70px;
}

.mini-trophy .mud-icon-root {
    font-size: 2.8rem;
}

.featured-room-row h3 {
    margin: 0 0 4px;
    font-size: 1.28rem;
    line-height: 1.08;
}

.featured-room-row p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.35;
}

.featured-room-row > strong {
    color: var(--green);
    font-size: 1.72rem;
    white-space: nowrap;
}

.featured-room-row .progress-wrap {
    gap: 8px;
}

.dashboard-empty {
    color: var(--muted);
    padding: 18px 0;
}

.news-list,
.quick-steps,
.rules-grid {
    display: grid;
    gap: 12px;
}

.news-list > div,
.quick-steps > div,
.rules-grid p {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(14, 23, 39, .62);
}

.news-list strong,
.quick-steps strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.news-list span,
.quick-steps p,
.rules-grid p {
    color: #cbd5e1;
}

.quick-steps > div {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
}

.quick-steps > div span,
.how-step > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #a78bfa);
    color: white;
    font-weight: 950;
    box-shadow: 0 0 18px rgba(139, 92, 246, .35);
}

.quick-steps > div p {
    grid-column: 2;
    margin: 0;
}

.how-hero .primary-action {
    width: fit-content;
    min-width: 190px;
    margin-top: 24px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.how-step {
    display: grid;
    gap: 12px;
    min-height: 236px;
    padding: 22px;
}

.how-step .mud-icon-root {
    color: var(--purple-2);
    font-size: 2.5rem;
    filter: drop-shadow(0 0 16px rgba(139, 92, 246, .42));
}

.how-step h2 {
    margin: 0;
    font-size: 1.3rem;
}

.how-step p {
    margin: 0;
    color: #cbd5e1;
}

.rules-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.register-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 130px);
}

.register-card {
    width: min(980px, 100%);
    padding: 32px;
}

.register-intro {
    margin-bottom: 24px;
}

.register-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 950;
}

.register-intro p {
    max-width: 680px;
    color: #cbd5e1;
}

.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: #dbe4f3;
    font-weight: 800;
}

.form-field input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(167, 139, 250, .22);
    border-radius: 12px;
    background: rgba(6, 12, 23, .68);
    color: var(--text);
    padding: 0 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus {
    border-color: rgba(167, 139, 250, .68);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .16);
}

.password-meter {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(88, 95, 120, .42);
}

.password-meter-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #ef4444;
    transition: width .25s ease, background .25s ease;
}

.password-meter-fill.strength-1 { width: 20%; background: #ef4444; }
.password-meter-fill.strength-2 { width: 40%; background: #f97316; }
.password-meter-fill.strength-3 { width: 60%; background: #f6c945; }
.password-meter-fill.strength-4 { width: 80%; background: #56c8ff; }
.password-meter-fill.strength-5 { width: 100%; background: var(--green); }

.password-meter-placeholder {
    visibility: hidden;
}

.password-hint {
    color: var(--muted);
    font-size: .9rem;
}

.password-hint-placeholder {
    visibility: hidden;
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.register-actions .primary-action {
    width: auto;
    min-width: 180px;
}

.account-manage-page,
.history-page,
.profile-page {
    display: grid;
    gap: 20px;
}

.profile-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 178px;
    padding: 26px;
    background:
        radial-gradient(circle at 12% 36%, rgba(139, 92, 246, .24), transparent 16rem),
        linear-gradient(145deg, rgba(20, 29, 52, .92), rgba(8, 14, 27, .9));
}

.profile-hero img {
    width: 100%;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(139, 92, 246, .45));
}

.profile-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 950;
    line-height: 1;
}

.profile-hero p {
    max-width: 680px;
    margin: 10px 0 0;
    color: #cbd5e1;
    line-height: 1.5;
}

.profile-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.profile-menu {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.profile-menu a,
.account-manage-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #dbe5f4;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-menu a:hover,
.profile-menu a.active,
.account-manage-nav .nav-link.active,
.account-manage-nav .nav-link:hover {
    transform: translateX(3px);
    border-color: rgba(167, 139, 250, .34);
    background: linear-gradient(135deg, rgba(139, 92, 246, .34), rgba(91, 62, 172, .22));
    box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 10px 28px rgba(75, 45, 160, .2);
    color: #fff;
}

.profile-menu .mud-icon-root {
    color: #d7ccff;
}

.profile-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px;
}

.profile-photo-panel {
    min-height: 100%;
}

.profile-photo-panel small {
    color: var(--muted);
    line-height: 1.35;
    text-align: center;
}

.profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-form .full,
.profile-actions {
    grid-column: 1 / -1;
}

.profile-actions .secondary-action {
    min-width: 160px;
}

.account-settings-shell {
    display: grid;
    gap: 22px;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-settings-grid main > .account-manage-page .account-card {
    margin: 0;
}

/* Um único menu para todas as áreas de perfil e segurança. */
.profile-page .profile-grid > .profile-menu:not(.account-profile-nav) { display: none; }

.account-security-page > .account-profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
}

.account-security-page > .account-profile-nav a {
    flex: 1 1 170px;
}

.account-security-page,
.two-factor-page {
    display: grid;
    gap: 20px;
}

.account-security-hero,
.two-factor-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 230px;
    padding: 30px 34px;
    background: radial-gradient(circle at 88% 25%, rgba(139, 92, 246, .3), transparent 16rem), linear-gradient(145deg, rgba(20, 29, 52, .94), rgba(8, 14, 27, .92));
}

.account-security-hero h1,
.two-factor-hero h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.45rem);
    line-height: 1;
}

.account-security-hero p,
.two-factor-hero p {
    max-width: 720px;
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.55;
}

.account-security-hero > .mud-icon-root,
.two-factor-hero > .mud-icon-root {
    font-size: clamp(5rem, 12vw, 9rem);
    color: rgba(191, 160, 255, .8);
    filter: drop-shadow(0 0 26px rgba(139, 92, 246, .5));
}

.account-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.account-security-card,
.two-factor-card,
.authenticator-setup-card {
    padding: 24px;
}

.account-security-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 340px;
}

.security-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.security-card-heading > .mud-icon-root {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 1px solid rgba(167, 139, 250, .32);
    border-radius: 14px;
    color: #d9ccff;
    background: rgba(124, 58, 237, .17);
}

.security-card-heading span,
.authenticator-qr-panel > span {
    color: #bca6eb;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.security-card-heading h2,
.security-card-heading h3 {
    margin: 3px 0 0;
    font-size: 1.18rem;
}

.security-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 11px;
    border-radius: 999px;
    font-weight: 800;
}

.security-status.is-enabled { background: rgba(34, 197, 94, .15); color: #8df0ad; }
.security-status.is-optional { background: rgba(139, 92, 246, .16); color: #d9ccff; }
.account-security-card .primary-action { width: 100%; margin-top: auto; }

.security-form {
    display: grid;
    gap: 14px;
}

.security-form .mud-button-root { margin-top: auto; }

.two-factor-card {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.two-factor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.two-factor-actions .secondary-action { min-width: 0; }

.authenticator-setup-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 26px;
    align-items: center;
}

.authenticator-steps {
    display: grid;
    gap: 14px;
}

.authenticator-steps > div {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.authenticator-steps span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 900;
}

.authenticator-steps p { margin: 0; color: #dbe5f4; }

.authenticator-qr-panel {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px;
    border: 1px solid rgba(167, 139, 250, .25);
    border-radius: 18px;
    background: rgba(8, 15, 28, .52);
}

.authenticator-qr-panel img {
    width: min(220px, 100%);
    height: auto;
    padding: 9px;
    border-radius: 12px;
    background: #fff;
}

.authenticator-qr-panel code {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #e7dcff;
    text-align: center;
}

.authenticator-code-form {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
    max-width: 420px;
}

/* Formulários de conta: mantém as telas do Identity dentro da linguagem visual da plataforma. */
.account-settings-grid main > h3 {
    margin: 0 0 16px;
    font-size: clamp(1.45rem, 3vw, 2rem);
    color: #fff;
}

.account-settings-grid main > .row {
    width: min(680px, 100%);
    margin: 0;
    padding: 26px;
    border: 1px solid rgba(167, 139, 250, .24);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 29, 52, .86), rgba(8, 14, 27, .9));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .05);
}

.account-settings-grid main > .row > [class*="col-"] {
    width: 100%;
    max-width: none;
    padding: 0;
}

.account-settings-grid main .form-floating {
    position: relative;
    margin-bottom: 16px;
}

.account-settings-grid main .form-control {
    min-height: 56px;
    border: 1px solid rgba(167, 139, 250, .3);
    border-radius: 12px;
    background: rgba(7, 13, 27, .72);
    color: #f8fafc;
    box-shadow: inset 0 1px rgba(255, 255, 255, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.account-settings-grid main .form-control::placeholder { color: transparent; }

.account-settings-grid main .form-control:focus {
    border-color: #a78bfa;
    background: rgba(10, 17, 34, .94);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .16);
    color: #fff;
}

.account-settings-grid main .form-floating > label,
.account-settings-grid main .form-label {
    color: #b9c6dc;
}

.account-settings-grid main .form-floating > .form-control:focus ~ label,
.account-settings-grid main .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #d9ccff;
}

.account-settings-grid main .btn-primary,
.authenticator-code-form .mud-button-root {
    min-height: 50px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(91, 50, 185, .28);
}

.account-settings-grid main .btn-primary:hover,
.authenticator-code-form .mud-button-root:hover { filter: brightness(1.08); transform: translateY(-1px); }

.account-settings-grid main .alert,
.authenticator-code-form .validation-summary-errors {
    margin: 0 0 16px;
    border: 1px solid rgba(167, 139, 250, .25);
    border-radius: 12px;
    background: rgba(139, 92, 246, .12);
    color: #ece7ff;
}

.account-settings-grid main .text-danger,
.authenticator-code-form .text-danger,
.authenticator-code-form .validation-message {
    display: block;
    margin-top: 6px;
    color: #ff9aaa !important;
    font-size: .86rem;
    font-weight: 700;
}

.authenticator-code-form .mud-input-control { margin: 0; }

.authenticator-code-field {
    display: grid;
    gap: 8px;
}

.authenticator-code-field label {
    color: #d9ccff;
    font-size: .9rem;
    font-weight: 800;
}

.authenticator-code-field .form-control {
    min-height: 56px;
    border: 1px solid rgba(167, 139, 250, .34);
    border-radius: 12px;
    background: rgba(7, 13, 27, .78);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-align: center;
}

.authenticator-code-field .form-control:focus {
    border-color: #a78bfa;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}

.authenticator-code-form .mud-input-outlined-border {
    border-color: rgba(167, 139, 250, .34) !important;
}

.authenticator-code-form .mud-input:focus-within .mud-input-outlined-border {
    border-color: #a78bfa !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .14);
}

@media (max-width: 980px) {
    .account-security-grid { grid-template-columns: 1fr; }
    .account-security-card { min-height: 0; }
}

@media (max-width: 620px) {
    .account-security-hero,
    .two-factor-hero,
    .authenticator-setup-card { grid-template-columns: 1fr; }
    .account-security-hero,
    .two-factor-hero { padding: 24px; }
    .account-security-hero > .mud-icon-root,
    .two-factor-hero > .mud-icon-root { display: none; }
    .authenticator-qr-panel { max-width: 280px; width: 100%; justify-self: center; }
    .two-factor-actions .secondary-action { width: 100%; }
}

.account-card {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.account-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.account-photo-panel {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 15, 28, .5);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 148px;
    height: 148px;
    overflow: hidden;
    border: 3px solid rgba(167, 139, 250, .48);
    border-radius: 50%;
    background: linear-gradient(145deg, #e5e7eb, #a8b0bf);
    color: #334155;
    font-size: 3rem;
    font-weight: 950;
    box-shadow: 0 0 34px rgba(139, 92, 246, .28);
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(167, 139, 250, .38);
    border-radius: 12px;
    background: rgba(139, 92, 246, .14);
    color: #d9ccff;
    cursor: pointer;
    font-weight: 850;
}

.upload-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.account-manage-nav {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(8, 15, 28, .48);
    list-style: none;
}

.account-manage-nav .nav-item {
    margin: 0;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.history-card {
    padding: 20px;
}

.history-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.history-card-head span,
.history-lines span {
    color: var(--muted);
}

.history-card-head h2 {
    margin: 4px 0 0;
    font-size: 1.3rem;
}

.history-card-head > strong {
    color: var(--purple-2);
}

.history-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.history-metrics > div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 15, 28, .5);
}

.history-metrics span {
    color: var(--muted);
    font-size: .86rem;
}

.history-metrics strong {
    color: var(--text);
}

.history-lines {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #dbe5f4;
}

.history-lines p {
    margin: 0;
}

.winner-history {
    border-color: rgba(246, 201, 69, .62);
    box-shadow: 0 0 36px rgba(246, 201, 69, .14), inset 0 0 24px rgba(246, 201, 69, .06);
}

.login-page {
    position: relative;
    min-height: calc(100vh - 126px);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 22px 0;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: -14%;
    pointer-events: none;
    background:
        linear-gradient(rgba(167, 139, 250, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(86, 200, 255, .045) 1px, transparent 1px);
    background-size: 52px 52px;
    transform: perspective(900px) rotateX(58deg) translateY(14%);
    transform-origin: center bottom;
    opacity: .44;
    animation: gridDrift 12s linear infinite;
}

.login-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 22%, rgba(139, 92, 246, .36), transparent 22rem),
        radial-gradient(circle at 78% 20%, rgba(86, 200, 255, .22), transparent 24rem),
        radial-gradient(circle at 52% 88%, rgba(246, 201, 69, .12), transparent 20rem);
    filter: saturate(1.3);
}

.login-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-effects span {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--purple-2);
    box-shadow: 0 0 18px var(--purple-2), 0 0 44px rgba(139, 92, 246, .5);
    animation: floatParticle 8s linear infinite;
}

.login-effects span:nth-child(1) { left: 10%; bottom: -30px; animation-delay: .2s; }
.login-effects span:nth-child(2) { left: 34%; bottom: -80px; animation-delay: 2.1s; background: var(--blue); box-shadow: 0 0 18px var(--blue), 0 0 44px rgba(86, 200, 255, .42); }
.login-effects span:nth-child(3) { left: 72%; bottom: -50px; animation-delay: 1.1s; background: var(--gold); box-shadow: 0 0 18px var(--gold), 0 0 44px rgba(246, 201, 69, .36); }
.login-effects span:nth-child(4) { left: 88%; bottom: -90px; animation-delay: 3.3s; background: var(--green); box-shadow: 0 0 18px var(--green), 0 0 44px rgba(66, 230, 107, .32); }

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    gap: 22px;
    align-items: stretch;
}

.login-panel,
.login-showcase {
    padding: 30px;
    min-height: 640px;
}

.login-panel {
    display: grid;
    align-content: center;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.login-brand-logo {
    width: 188px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 0 22px rgba(139, 92, 246, .45));
}

.login-brand-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(167, 139, 250, .4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .42), rgba(86, 200, 255, .13));
    box-shadow: 0 0 32px rgba(139, 92, 246, .34);
}

.login-brand-icon img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    object-fit: cover;
}

.login-brand-icon .mud-icon-root {
    color: #d8c7ff;
    font-size: 2.4rem;
    filter: drop-shadow(0 0 14px rgba(167, 139, 250, .8));
}

.login-brand span {
    display: block;
    color: var(--purple-2);
    font-weight: 900;
}

.login-brand strong {
    display: block;
    color: var(--text);
    font-size: 1.25rem;
}

.login-intro h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.55rem);
    line-height: 1;
    font-weight: 950;
    text-shadow: 0 0 28px rgba(139, 92, 246, .22);
}

.login-intro p {
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 1rem;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #cbd5e1;
    font-size: .95rem;
}

.login-options label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.login-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--purple);
}

.login-options a,
.login-links a {
    color: var(--purple-2);
    font-weight: 850;
    text-decoration: none;
}

.login-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    font-size: 1rem;
}

.login-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
}

.login-showcase {
    isolation: isolate;
    display: grid;
    align-content: center;
    gap: 24px;
    border-color: rgba(167, 139, 250, .24);
    background:
        radial-gradient(circle at 72% 18%, rgba(246, 201, 69, .13), transparent 10rem),
        radial-gradient(circle at 18% 44%, rgba(139, 92, 246, .26), transparent 18rem),
        linear-gradient(145deg, rgba(18, 27, 49, .9), rgba(7, 13, 27, .9));
}

.showcase-trophy {
    position: relative;
    display: grid;
    place-items: center;
    width: 168px;
    height: 168px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 45%, rgba(167, 139, 250, .58), rgba(76, 35, 171, .16) 58%, transparent 72%),
        rgba(6, 12, 23, .58);
    box-shadow:
        0 0 76px rgba(139, 92, 246, .42),
        inset 0 0 34px rgba(167, 139, 250, .22);
}

.showcase-trophy span {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(167, 139, 250, .42);
    border-radius: 50%;
    animation: orbWave 2.6s ease-out infinite;
}

.showcase-trophy .mud-icon-root {
    color: #d8c7ff;
    font-size: 5.8rem;
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, .9));
    animation: trophyFloat 3.6s ease-in-out infinite;
}

.showcase-trophy img {
    width: 132px;
    height: 132px;
    border-radius: 34px;
    object-fit: cover;
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, .75));
    animation: trophyFloat 3.6s ease-in-out infinite;
}

.showcase-copy {
    text-align: center;
}

.showcase-copy h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 950;
}

.showcase-copy p {
    max-width: 620px;
    margin: 16px auto 0;
    color: #cbd5e1;
}

.login-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.login-stats > div {
    display: grid;
    gap: 8px;
    min-height: 126px;
    padding: 16px;
    border: 1px solid rgba(167, 139, 250, .18);
    border-radius: 14px;
    background: rgba(8, 15, 28, .56);
    box-shadow: 0 0 24px rgba(139, 92, 246, .08);
}

.login-stats .mud-icon-root {
    color: var(--purple-2);
    font-size: 1.85rem;
}

.login-stats span {
    color: var(--muted);
}

.login-stats strong {
    color: var(--green);
    font-size: 1.15rem;
}

.login-activity {
    display: grid;
    gap: 10px;
}

.login-activity > div {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(150, 170, 220, .12);
    border-radius: 12px;
    background: rgba(6, 12, 23, .44);
    color: #dbe5f4;
}

.login-activity i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(66, 230, 107, .72);
    animation: livePulse 1.35s ease-out infinite;
}

.external-login-box {
    border: 1px solid rgba(66, 230, 107, .18);
    border-radius: 14px;
    background: rgba(66, 230, 107, .06);
    padding: 14px;
    color: #cbd5e1;
}

.external-login-box h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: var(--green);
}

.external-login-box p {
    margin: 0;
    color: #dbe5f4;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 420px;
    text-align: center;
}

.admin-header,
.admin-section-title,
.rooms-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.admin-header {
    padding: 6px 2px 0;
}

.admin-header + .mud-grid {
    margin-top: 4px;
}

.admin-stat {
    border: 1px solid var(--line);
    background: rgba(20, 30, 50, .78) !important;
}

.admin-actions {
    white-space: nowrap;
}

.admin-room-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
    gap: 18px;
    padding: 16px 8px 20px;
}

.admin-form-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    min-height: 56px;
    color: var(--muted);
}

.admin-form-summary strong {
    color: var(--green);
}

.admin-model-form,
.admin-simulator {
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 0%, rgba(139, 92, 246, .12), transparent 18rem),
        rgba(20, 30, 50, .72) !important;
}

.admin-model-form {
    display: grid;
    gap: 10px;
}

.admin-radio-group {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(167, 139, 250, .18);
    border-radius: 12px;
    background: rgba(8, 15, 28, .46);
}

.admin-switches {
    display: grid;
    gap: 2px;
    margin-top: 16px;
}

.admin-template-actions,
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.admin-template-actions {
    margin-top: 18px;
}

.simulator-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.simulator-grid > div {
    display: grid;
    gap: 6px;
    min-height: 84px;
    padding: 14px;
    border: 1px solid rgba(150, 170, 220, .12);
    border-radius: 12px;
    background: rgba(8, 15, 28, .48);
}

.simulator-grid span {
    color: var(--muted);
    font-size: .9rem;
}

.simulator-grid strong {
    color: var(--text);
    font-size: 1.2rem;
}

.rooms-page {
    display: grid;
    gap: 24px;
}

.rooms-toolbar {
    padding: 18px 20px;
}

.rooms-filter {
    width: min(260px, 100%);
}

.rooms-layout {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.rooms-card-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px));
    justify-content: start;
    align-items: stretch;
}

.rooms-list {
    display: grid;
    gap: 16px;
}

.room-list-card {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 16px;
    text-align: left;
    color: var(--text);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
    touch-action: manipulation;
}

.room-entry-card {
    cursor: pointer;
    text-decoration: none;
}

.room-compact-card {
    min-height: 340px;
    gap: 14px;
    padding: 18px;
    align-content: start;
}

.room-compact-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.room-compact-title {
    position: relative;
    gap: 8px;
    padding-bottom: 0;
}

.room-compact-title .status-pill {
    order: 1;
}

.room-compact-title h2 {
    order: 2;
    min-height: 2.4em;
}

.room-compact-title small {
    order: 3;
    width: 100%;
}

.room-compact-title .special-room-badge,
.room-compact-title .participating-pill {
    order: 4;
    position: static;
    transform: none;
}

.room-compact-title .special-room-badge ~ .participating-pill {
    margin-left: 0;
}

.room-compact-title h2 {
    font-size: 1.18rem;
    line-height: 1.2;
}

.room-compact-title small {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.room-compact-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.room-compact-metrics > div {
    min-width: 0;
    min-height: 62px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(8, 15, 28, .34);
}

.room-compact-metrics span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 750;
}

.room-compact-metrics strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.room-compact-metrics .metric-success {
    color: var(--success);
}

.compact-progress {
    gap: 7px;
}

.room-compact-card .compact-progress {
    display: grid;
}

.room-compact-card .room-compact-foot {
    display: flex;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.room-compact-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 750;
}

.room-compact-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.room-compact-info .mud-icon-root {
    color: #9be3ff;
    font-size: 1rem;
}

.room-avatar-stack {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding-right: 4px;
}

.room-avatar-stack .mini-avatar {
    width: 30px;
    height: 30px;
    margin-left: -8px;
    border: 2px solid rgba(8, 15, 28, .96);
}

.room-avatar-stack .mini-avatar:first-child {
    margin-left: 0;
}

.room-avatar-stack em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    margin-left: -6px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, .84);
    color: var(--text);
    font-size: .78rem;
    font-style: normal;
    font-weight: 900;
}

.room-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.room-card-title {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.room-card-title h2 {
    width: 100%;
    margin: 0;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.15;
}

.room-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    gap: 18px;
    align-items: start;
}

.room-card-main {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.room-card-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 10px;
}

.room-card-metrics > div {
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(8, 15, 28, .34);
}

.room-card-metrics span {
    display: block;
    color: var(--muted);
    font-size: .88rem;
}

.room-card-metrics strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 1.08rem;
}

.room-card-buy {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 15, 28, .38);
}

.room-card-participants {
    display: grid;
    gap: 10px;
}

.compact-heading {
    margin-bottom: 0;
}

.compact-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.room-card-winner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(246, 201, 69, .34);
    border-radius: 12px;
    background: rgba(246, 201, 69, .1);
    color: #f8e7a3;
    font-weight: 800;
}

.room-card-winner .mud-icon-root {
    color: var(--gold);
}

.room-card-winner em {
    color: #fff7cc;
    font-style: normal;
}

.room-list-card:hover,
.room-list-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, .46);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3), 0 0 22px rgba(139, 92, 246, .14);
}

.room-list-card:active {
    transform: translateY(1px) scale(.992);
}

.room-list-card.selected {
    border-color: rgba(66, 230, 107, .58);
    box-shadow: 0 0 0 1px rgba(66, 230, 107, .2), 0 18px 42px rgba(0, 0, 0, .28);
}

.room-list-card strong {
    font-size: 1rem;
}

.room-live-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(86, 200, 255, .28);
    border-radius: 999px;
    background: rgba(86, 200, 255, .08);
    color: #9be3ff;
    font-weight: 850;
    box-shadow: 0 0 18px rgba(86, 200, 255, .12);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.room-list-card:hover .room-live-link,
.room-live-link:hover,
.room-live-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(86, 200, 255, .62);
    background: rgba(86, 200, 255, .16);
    color: #e2f8ff;
    box-shadow: 0 0 26px rgba(86, 200, 255, .25);
}

.room-live-link .mud-icon-root {
    color: #9be3ff;
    font-size: 1.1rem;
}

.room-list-metrics {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: .9rem;
}

.room-detail {
    min-width: 0;
}

.room-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.room-detail-actions .primary-action {
    width: fit-content;
    gap: 8px;
    min-width: 190px;
}

.room-detail-actions span {
    color: #cbd5e1;
    font-weight: 800;
}

.compact-room {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 220px;
}

.compact-room .countdown-card {
    display: none;
}

.compact-participants {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state .mud-icon-root {
    font-size: 4rem;
    color: var(--purple-2);
}

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #ff8a8a; }

#blazor-error-ui {
    color-scheme: light only;
    background: #fff3cd;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floatParticle {
    0% { transform: translate3d(0, 0, 0) scale(.8); opacity: 0; }
    12% { opacity: .7; }
    78% { opacity: .42; }
    100% { transform: translate3d(42px, -92vh, 0) scale(1.7); opacity: 0; }
}

@keyframes panelBacklight {
    0%, 100% { opacity: .28; filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0)); }
    50% { opacity: .62; filter: drop-shadow(0 0 18px rgba(139, 92, 246, .45)); }
}

@keyframes gridDrift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 52px 52px, 52px 52px; }
}

@keyframes actionGlow {
    0% { box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 24px 70px rgba(0, 0, 0, .32); }
    35% { box-shadow: inset 0 0 42px rgba(66, 230, 107, .16), 0 0 0 2px rgba(66, 230, 107, .34), 0 0 58px rgba(66, 230, 107, .24); }
    100% { box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 24px 70px rgba(0, 0, 0, .32); }
}

@keyframes sparklePop {
    0%, 100% { transform: scale(.25) rotate(0deg); opacity: 0; }
    35% { opacity: .95; }
    50% { transform: scale(1.25) rotate(45deg); opacity: .85; }
}

@keyframes orbWave {
    0% { transform: scale(.86); opacity: .78; }
    70%, 100% { transform: scale(1.22); opacity: 0; }
}

@keyframes progressSheen {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes progressGlow {
    0%, 100% { opacity: .42; transform: scaleY(.72); }
    50% { opacity: .9; transform: scaleY(1); }
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(66, 230, 107, .72); }
    70% { box-shadow: 0 0 0 12px rgba(66, 230, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 230, 107, 0); }
}

@keyframes countdownScan {
    0%, 100% { transform: translateY(-120%); opacity: 0; }
    45% { opacity: 1; }
    70% { transform: translateY(120%); opacity: 0; }
}

@keyframes cardEnter {
    0% { opacity: 0; transform: translateY(12px) scale(.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drawMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes buttonSweep {
    0%, 42% { transform: translateX(-120%); }
    72%, 100% { transform: translateX(120%); }
}

@keyframes ringBreath {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(139, 92, 246, 0)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 16px rgba(139, 92, 246, .65)); transform: scale(1.035); }
}

@keyframes winnerGlow {
    0%, 100% { box-shadow: inset 0 0 30px rgba(246, 201, 69, .08), 0 0 28px rgba(246, 201, 69, .18); }
    50% { box-shadow: inset 0 0 42px rgba(246, 201, 69, .16), 0 0 44px rgba(246, 201, 69, .28); }
}

@keyframes arenaSpin {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes arenaWinnerReveal {
    0% { opacity: .72; transform: scale(.96); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes selectedPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.04); }
}
@keyframes trophyFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1380px) {
    .premium-grid { grid-template-columns: 1fr; }
    .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .app-bar {
        height: 68px;
        padding: 0 8px;
    }

    .app-bar .mud-toolbar {
        min-height: 68px;
        gap: 8px;
        padding: 0 6px;
    }

    .brand-lockup img {
        width: min(190px, 52vw);
        height: 51px;
    }

    .content-shell {
        width: 100%;
        max-width: 100%;
        padding: 14px;
    }

    .ambient-stage {
        inset: 68px 0 0;
    }

    .hero-room {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .prize-orb {
        width: 112px;
        height: 112px;
        justify-self: center;
    }

    .prize-orb .mud-icon-root {
        font-size: 4rem;
    }

    .countdown-card { min-height: 110px; }
    .participant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side-column { grid-template-columns: 1fr; }
    .admin-header,
    .admin-section-title,
    .rooms-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-room-detail,
    .rooms-layout {
        grid-template-columns: 1fr;
    }

    .rooms-card-list {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px));
        justify-content: start;
    }

    .room-detail {
        order: -1;
    }

    .rooms-list {
        gap: 12px;
    }

    .compact-room {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .room-detail-actions .primary-action,
    .room-live-link {
        width: 100%;
    }

    .compact-participants {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-room-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .live-main,
    .live-side {
        display: contents;
    }

    .live-summary { order: 1; }
    .draw-arena { order: 2; }
    .wallet-buy-card { order: 3; }
    .participation-card { order: 4; }
    .live-participants { order: 5; }
    .prize-side-card { order: 6; }
    .quotas-side-card { order: 7; }
    .live-winner-card { order: 8; }
    .live-bottom-grid { order: 9; }
    .rules-card { order: 10; }

    .live-main.draw-spotlight .draw-arena {
        order: 2;
        min-height: 340px;
    }

    .live-summary {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 18px;
        min-height: auto;
        padding: 20px;
    }

    .live-summary .summary-countdown {
        grid-column: 1 / -1;
        min-height: auto;
        padding: 14px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .live-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-bottom-grid {
        grid-template-columns: 1fr;
    }

    .live-participant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-participants-list > div {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .all-participants-list small {
        grid-column: 2 / -1;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }
    .account-layout,
    .account-settings-grid,
    .history-grid {
        grid-template-columns: 1fr;
    }
    .history-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .login-panel,
    .login-showcase {
        min-height: auto;
    }
    .login-showcase {
        order: -1;
    }
}

@media (max-width: 620px) {
    html,
    body {
        overflow-x: hidden;
    }

    h1,
    h2,
    h3,
    p,
    strong,
    span,
    small,
    a,
    button {
        max-width: 100%;
    }

    .primary-action,
    .secondary-action,
    .mud-button-root {
        min-width: 0 !important;
    }

    .content-shell {
        padding: 10px;
    }

    .glass-panel {
        border-radius: 14px;
    }

    .participants-panel,
    .draw-panel,
    .side-card,
    .winner-card,
    .empty-state {
        padding: 16px;
    }

    .hero-title-row {
        gap: 9px;
    }

    .hero-title-row h1 {
        width: 100%;
        font-size: 1.85rem;
        line-height: 1.05;
    }

    .status-pill,
    .special-room-badge,
    .participating-pill {
        min-height: 30px;
        padding: 0 10px;
        font-size: .78rem;
    }

    .metric-row {
        gap: 10px;
        margin: 18px 0;
    }

    .metric-row > div {
        min-height: 74px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(8, 15, 28, .34);
    }

    .metric-row strong {
        font-size: 1.06rem;
    }

    .progress-wrap {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .progress-wrap > span {
        justify-self: end;
    }

    .rooms-toolbar {
        padding: 14px;
        margin-bottom: 0;
    }

    .rooms-page,
    .rooms-layout {
        gap: 14px;
    }

    .room-list-card {
        padding: 14px;
    }

    .room-list-card strong {
        font-size: .95rem;
        line-height: 1.25;
    }

    .room-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .participation-box {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
    }

    .quota-ring {
        width: 76px;
        height: 76px;
        border-width: 7px;
    }

    .quota-ring strong {
        font-size: 1rem;
    }

    .quota-ring span {
        margin-top: -16px;
        font-size: .78rem;
    }

    .live-room-page {
        gap: 14px;
    }

    .live-topline {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .back-link,
    .live-user-chip {
        width: 100%;
    }

    .live-user-chip {
        justify-content: center;
        border-radius: 12px;
    }

    .live-summary {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .live-prize-orb {
        width: 92px;
        height: 92px;
        justify-self: start;
    }

    .live-prize-orb .mud-icon-root {
        font-size: 3.35rem;
    }

    .live-summary .hero-title-row h1 {
        font-size: 1.8rem;
    }

    .live-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
    }

    .summary-help {
        font-size: .9rem;
        line-height: 1.4;
    }

    .summary-countdown strong {
        font-size: 2rem;
    }

    .draw-arena {
        min-height: 292px;
        padding: 20px 0 18px;
    }

    .live-main.draw-spotlight .draw-arena {
        min-height: 312px;
    }

    .arena-title {
        gap: 10px;
        padding: 0 14px;
        font-size: .82rem;
        letter-spacing: .18rem;
        text-align: center;
    }

    .arena-title span {
        width: 9px;
        height: 9px;
        flex: 0 0 auto;
    }

    .arena-subtitle {
        padding: 0 14px;
        font-size: .9rem;
        line-height: 1.35;
    }

    .arena-line {
        margin-top: 20px;
    }

    .arena-rail {
        width: calc(100% - 18px);
        height: 152px;
        padding: 18px 0;
        border-radius: 16px;
    }

    .arena-rail::after {
        width: 104px;
    }

    .arena-track {
        gap: 18px;
        padding: 0 18px;
    }

    .arena-person {
        min-width: 86px;
        min-height: 110px;
        gap: 5px;
    }

    .arena-avatar {
        width: 62px;
        height: 62px;
        border-width: 2px;
    }

    .arena-person.selected .arena-avatar {
        width: 74px;
        height: 74px;
        outline-width: 4px;
    }

    .arena-person em {
        min-width: 48px;
        min-height: 22px;
        font-size: .7rem;
    }

    .arena-person span {
        max-width: 82px;
        font-size: .76rem;
    }

    .arena-message {
        max-width: calc(100% - 28px);
        padding: 9px 13px;
        font-size: .88rem;
        text-align: center;
    }

    .draw-arena.finished .arena-track {
        gap: 12px;
        padding: 0 8px;
    }

    .draw-arena.finished .arena-person.selected {
        min-width: 96px;
    }

    .section-heading {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .section-heading > div {
        min-width: 0;
    }

    .section-heading h2,
    .side-title h3 {
        font-size: 1rem;
    }

    .section-heading button {
        width: 100%;
    }

    .participant-grid { grid-template-columns: 1fr; }
    .live-participant-grid { grid-template-columns: 1fr; }

    .participant-card {
        min-height: 70px;
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 10px;
    }

    .participant-avatar {
        width: 46px;
        height: 46px;
    }

    .participant-online {
        right: 10px;
        top: 14px;
    }

    .buy-row { grid-template-columns: 1fr; }

    .purchase-summary {
        grid-template-columns: 1fr;
    }

    .wallet-balance,
    .side-prize,
    .quota-total-row strong {
        font-size: 1.85rem;
    }

    .quota-total-row .mud-icon-root {
        font-size: 3.6rem;
    }

    .winner-body,
    .live-winner-card .winner-body {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .winner-avatar {
        width: 64px;
        height: 64px;
    }

    .winner-list > div { grid-template-columns: 26px 34px 1fr; }
    .winner-list em,
    .winner-list b { justify-self: start; }
    .dashboard-winners .winner-list > div {
        grid-template-columns: 28px 40px minmax(0, 1fr);
        gap: 8px 10px;
        align-items: center;
    }

    .dashboard-winners .winner-list > div > span {
        grid-row: 1 / span 2;
        align-self: start;
        padding-top: 7px;
    }

    .dashboard-winners .winner-list .mini-avatar {
        grid-row: 1 / span 2;
        align-self: start;
    }

    .dashboard-winners .winner-list strong {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .dashboard-winners .winner-list em {
        grid-column: 3;
        width: fit-content;
        max-width: 100%;
    }

    .dashboard-winners .winner-list b {
        grid-column: 3;
        overflow-wrap: anywhere;
    }
    .compact-participants {
        grid-template-columns: 1fr;
    }
    .login-panel,
    .login-showcase {
        padding: 22px;
    }
    .login-options,
    .login-links {
        align-items: flex-start;
        flex-direction: column;
    }
    .login-stats {
        grid-template-columns: 1fr;
    }
    .history-metrics,
    .all-participants-list > div {
        grid-template-columns: 1fr;
    }

    .participants-modal,
    .purchase-modal,
    .room-alert-popup {
        width: 100%;
        padding: 18px;
    }

    .room-alert-popup {
        grid-template-columns: 1fr;
    }

    .room-alert-icon {
        width: 54px;
        height: 54px;
    }

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .showcase-trophy {
        width: 128px;
        height: 128px;
    }
    .showcase-trophy .mud-icon-root {
        font-size: 4.4rem;
    }
}

@media (max-width: 1180px) {
    .dashboard-grid,
    .dashboard-stats,
    .how-steps,
    .rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero,
    .how-hero {
        grid-template-columns: minmax(0, 1fr) 168px;
    }

    .dashboard-trophy {
        width: 156px;
        height: 156px;
    }

    .dashboard-trophy .mud-icon-root {
        font-size: 5rem;
    }

    .featured-room-row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 14px;
    }

    .featured-room-row > strong {
        grid-column: 2;
        justify-self: start;
    }

    .live-room-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .live-summary {
        grid-template-columns: 126px minmax(0, 1fr);
    }

    .live-summary .summary-countdown {
        grid-column: 1 / -1;
        min-height: auto;
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .rooms-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .login-shell {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    }
}

@media (max-width: 980px) {
    .app-drawer {
        width: min(280px, 86vw);
        height: 100dvh;
        padding-top: 12px;
        z-index: 1400 !important;
        box-shadow: 24px 0 70px rgba(0, 0, 0, .48);
    }

    .app-drawer .mud-drawer-content {
        height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .nav-menu {
        padding: 16px 14px 22px;
    }

    .dashboard-hero,
    .how-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: auto;
        padding: 24px;
    }

    .dashboard-hero h1,
    .how-hero h1 {
        font-size: clamp(2rem, 8vw, 3.2rem);
        line-height: 1.04;
    }

    .dashboard-actions .primary-action,
    .dashboard-actions .secondary-action,
    .how-hero .primary-action {
        width: 100%;
    }

    .dashboard-trophy {
        justify-self: center;
    }

    .dashboard-stats,
    .how-steps,
    .rules-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-stat {
        min-height: 132px;
    }

    .featured-room-row {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }

    .featured-room-row > strong {
        font-size: 1.35rem;
        white-space: normal;
    }

    .register-grid,
    .simulator-grid,
    .admin-room-detail {
        grid-template-columns: 1fr;
    }

    .rooms-layout {
        grid-template-columns: 1fr;
    }

    .room-card-head,
    .room-card-body {
        grid-template-columns: 1fr;
    }

    .room-card-head .room-live-link {
        width: 100%;
    }

    .room-card-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rooms-filter {
        width: 100%;
    }

    .room-list-card {
        min-width: 0;
    }

    .room-compact-head {
        grid-template-columns: 1fr;
    }

    .room-compact-head .room-live-link {
        width: 100%;
    }

    .room-compact-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-shell {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .login-showcase {
        min-height: auto;
    }

    .login-brand {
        min-width: 0;
    }

    .account-card,
    .register-card {
        padding: 24px;
    }
}

@media (max-width: 620px) {
    .mud-main-content,
    .content-shell,
    .public-dashboard,
    .how-page,
    .rooms-page,
    .live-room-page,
    .history-page,
    .account-manage-page,
    .profile-page {
        min-width: 0;
    }

    .app-bar .mud-toolbar {
        overflow: hidden;
    }

    .brand-lockup {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-lockup img {
        width: min(182px, 56vw);
        height: 48px;
    }

    .wallet-top {
        max-width: 116px;
        padding: 7px 10px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-hero,
    .how-hero,
    .dashboard-feature,
    .dashboard-news,
    .dashboard-winners,
    .dashboard-how,
    .rules-panel,
    .register-card,
    .account-card,
    .history-card {
        padding: 16px;
    }

    .dashboard-eyebrow {
        max-width: 100%;
        white-space: normal;
    }

    .dashboard-hero h1,
    .how-hero h1,
    .register-intro h1,
    .login-intro h1 {
        font-size: 1.85rem;
        line-height: 1.08;
    }

    .dashboard-hero p,
    .how-hero p,
    .login-intro p,
    .showcase-copy p {
        font-size: .95rem;
        line-height: 1.45;
    }

    .dashboard-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-trophy {
        width: 118px;
        height: 118px;
    }

    .dashboard-trophy .mud-icon-root {
        font-size: 3.8rem;
    }

    .dashboard-stats,
    .dashboard-grid,
    .how-steps,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stat {
        min-height: auto;
        padding: 16px;
    }

    .dashboard-stat strong {
        font-size: 1.7rem;
        overflow-wrap: anywhere;
    }

    .featured-room-row {
        grid-template-columns: 1fr;
    }

    .featured-room-row .mini-trophy {
        justify-self: start;
        width: 64px;
        height: 64px;
    }

    .featured-room-row > strong {
        grid-column: auto;
    }

    .news-list > div,
    .quick-steps > div,
    .rules-grid p,
    .how-step {
        padding: 14px;
    }

    .quick-steps > div {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .quick-steps > div p {
        grid-column: 1 / -1;
    }

    .rooms-toolbar .mud-typography-h4,
    .admin-header .mud-typography-h4 {
        font-size: 1.6rem;
    }

    .admin-header {
        gap: 14px;
        margin-bottom: 18px;
        padding: 2px 2px 0;
    }

    .admin-header .mud-button-root {
        width: 100%;
    }

    .admin-header + .mud-grid {
        margin-left: -6px;
        margin-right: -6px;
    }

    .admin-stat {
        min-height: 94px;
        padding: 16px !important;
    }

    .admin-stat .mud-typography-h4 {
        font-size: 1.85rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    .room-list-card {
        gap: 10px;
    }

    .room-compact-card {
        aspect-ratio: auto;
        gap: 8px;
        padding: 10px 12px;
        align-content: initial;
    }

    .rooms-card-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .room-compact-head {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
    }

    .room-compact-head .room-live-link {
        width: auto;
        min-height: 30px;
        padding: 0 10px;
        font-size: .78rem;
    }

    .room-compact-title {
        gap: 5px;
        padding-bottom: 0;
    }

    .room-compact-title .special-room-badge,
    .room-compact-title .participating-pill {
        position: static;
    }

    .room-compact-title h2 {
        width: auto;
        min-width: 0;
        flex: 1 1 150px;
        min-height: 0;
        margin-top: 1px;
        font-size: .95rem;
        line-height: 1.15;
    }

    .room-compact-title small {
        font-size: .72rem;
    }

    .room-card-title h2 {
        font-size: 1.05rem;
        line-height: 1.25;
    }

    .room-card-metrics:not(.room-compact-metrics) {
        grid-template-columns: 1fr;
    }

    .room-card-metrics:not(.room-compact-metrics) > div {
        min-height: auto;
    }

    .room-compact-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .room-compact-metrics > div {
        min-height: 40px;
        padding: 5px 6px;
        border-radius: 8px;
    }

    .room-compact-metrics span {
        font-size: .66rem;
    }

    .room-compact-metrics strong {
        margin-top: 2px;
        font-size: .74rem;
        line-height: 1.1;
    }

    .room-compact-card .compact-progress {
        display: grid;
        gap: 4px;
    }

    .compact-progress .progress-label {
        font-size: .78rem;
    }

    .compact-progress .mud-progress-linear {
        height: 5px;
    }

    .room-compact-card .room-compact-foot {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px 10px;
        font-size: .76rem;
    }

    .room-avatar-stack {
        display: none;
    }

    .room-compact-info .mud-icon-root {
        font-size: .92rem;
    }

    .room-card-buy {
        padding: 12px;
    }

    .quantity-stepper {
        grid-template-columns: 52px minmax(58px, 1fr) 52px;
    }

    .quantity-stepper button,
    .quantity-stepper input {
        min-height: 52px;
        height: 52px;
    }

    .room-list-card .status-pill,
    .room-list-card .special-room-badge,
    .room-list-card .participating-pill {
        width: fit-content;
        max-width: 100%;
        white-space: normal;
    }

    .room-detail .mud-grid {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .participation-box {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .live-bottom-grid,
    .activity-list > div,
    .winner-mini-list > div {
        grid-template-columns: 1fr;
    }

    .live-summary {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 18px;
    }

    .live-prize-orb {
        width: 104px;
        height: 104px;
        justify-self: center;
    }

    .live-summary-info {
        text-align: center;
    }

    .live-summary .hero-title-row {
        justify-content: center;
    }

    .live-summary .hero-title-row h1 {
        font-size: 1.95rem;
        text-align: center;
    }

    .live-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .live-metrics > div {
        align-items: center;
        min-height: 72px;
        text-align: center;
    }

    .summary-help {
        max-width: 30ch;
        margin-left: auto;
        margin-right: auto;
    }

    .live-summary .summary-countdown {
        text-align: center;
    }

    .activity-list .mud-icon-root,
    .winner-mini-list .mini-avatar {
        justify-self: start;
    }

    .activity-list span,
    .winner-mini-list span {
        white-space: normal;
    }

    .rules-card li {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .purchase-modal-backdrop,
    .room-alert-backdrop {
        padding: 10px;
    }

    .purchase-modal dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .purchase-modal dd {
        text-align: left;
    }

    .login-page {
        min-height: auto;
        padding: 10px 0;
        overflow: visible;
    }

    .login-panel,
    .login-showcase {
        padding: 16px;
    }

    .login-brand {
        align-items: flex-start;
    }

    .login-brand-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .login-brand-icon img {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .showcase-trophy img {
        width: 100px;
        height: 100px;
        border-radius: 26px;
    }

    .form-field input {
        min-height: 48px;
    }

    .register-actions,
    .admin-template-actions,
    .admin-table-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-hero {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 18px;
        text-align: center;
    }

    .profile-hero img {
        max-width: 178px;
    }

    .profile-grid,
    .profile-card,
    .profile-form,
    .account-settings-grid,
    .account-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-menu {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .profile-card {
        padding: 16px;
    }

    .profile-actions .primary-action,
    .profile-actions .secondary-action {
        width: 100%;
    }

    .account-avatar {
        width: 112px;
        height: 112px;
        font-size: 2.2rem;
    }

    .history-card-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .history-card-head > strong {
        justify-self: start;
    }

    .history-lines {
        overflow-wrap: anywhere;
    }
}

.wallet-page {
    position: relative;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.wallet-loading {
    border-radius: 14px;
}

.wallet-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 24px;
    align-items: stretch;
    min-height: 230px;
    padding: 28px;
}

.wallet-hero-copy,
.wallet-total-card,
.wallet-metric,
.wallet-action-panel,
.wallet-rules,
.wallet-history {
    position: relative;
    z-index: 1;
}

.wallet-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(86, 200, 255, .28);
    border-radius: 999px;
    background: rgba(26, 84, 104, .18);
    color: #9be7ff;
    font-weight: 800;
}

.wallet-eyebrow .mud-icon-root {
    color: #9be7ff;
}

.wallet-hero h1 {
    max-width: 12ch;
    margin: 18px 0 14px;
    font-size: clamp(2.25rem, 5vw, 4.1rem);
    line-height: .98;
    font-weight: 950;
}

.wallet-hero p {
    max-width: 56ch;
    margin: 0;
    color: #c7d4e8;
    font-size: 1.05rem;
    line-height: 1.55;
}

.wallet-total-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    min-height: 164px;
    padding: 26px 28px;
    border: 1px solid rgba(66, 230, 107, .28);
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 10%, rgba(66, 230, 107, .22), transparent 10rem),
        radial-gradient(circle at 92% 12%, rgba(86, 200, 255, .1), transparent 9rem),
        linear-gradient(145deg, rgba(8, 54, 42, .9), rgba(10, 22, 38, .92));
    box-shadow:
        inset 0 1px rgba(255, 255, 255, .07),
        0 18px 44px rgba(0, 0, 0, .24),
        0 0 28px rgba(66, 230, 107, .08);
}

.two-factor-login-page {
    min-height: calc(100dvh - 92px);
    align-content: center;
}

.two-factor-login-shell {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
    width: min(680px, 100%);
}

.two-factor-login-shell .login-panel {
    min-height: 0;
    padding: clamp(24px, 5vw, 42px);
}

.two-factor-login-shell .login-brand {
    justify-content: center;
    margin-bottom: 18px;
}

.two-factor-login-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border: 1px solid rgba(167, 139, 250, .36);
    border-radius: 20px;
    background: radial-gradient(circle at 35% 25%, rgba(167, 139, 250, .34), rgba(72, 43, 142, .22));
    color: #d8caff;
    box-shadow: 0 14px 34px rgba(79, 45, 159, .24), inset 0 1px rgba(255, 255, 255, .08);
}

.two-factor-login-icon .mud-icon-root { font-size: 2rem; }

.two-factor-login-shell .login-intro {
    text-align: center;
}

.two-factor-login-shell .login-intro .dashboard-eyebrow {
    margin-inline: auto;
}

.two-factor-login-shell .login-intro h1 {
    max-width: none;
    font-size: clamp(2rem, 5vw, 3.15rem);
}

.two-factor-login-shell .login-intro p {
    max-width: 48ch;
    margin-inline: auto;
}

.two-factor-login-form {
    width: min(460px, 100%);
    margin: 0 auto;
}

.two-factor-login-form .form-field input {
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-align: center;
}

.two-factor-login-options {
    justify-content: flex-start;
}

.two-factor-recovery-link {
    justify-content: center;
    text-align: center;
}

.wallet-total-card span,
.wallet-total-card small,
.wallet-metric span,
.wallet-metric small,
.wallet-panel-copy,
.wallet-rule-grid span,
.wallet-transaction p,
.wallet-transaction small,
.wallet-transaction-values span,
.wallet-pix-result span,
.wallet-empty-history span {
    color: var(--muted);
}

.wallet-total-card strong {
    display: block;
    margin: 10px 0 8px;
    color: #effff5;
    font-size: clamp(2.15rem, 3.7vw, 3.1rem);
    line-height: 1;
    letter-spacing: -.04em;
    text-shadow: 0 0 22px rgba(66, 230, 107, .18);
}

.wallet-total-card span {
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.wallet-total-card small {
    max-width: 28ch;
    line-height: 1.35;
}

.wallet-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.wallet-metric {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 132px;
    padding: 18px;
}

.wallet-metric-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(20, 30, 50, .82);
}

.wallet-metric-icon.available { color: #42e66b; border-color: rgba(66, 230, 107, .32); background: rgba(24, 90, 48, .2); }
.wallet-metric-icon.withdrawable { color: #56c8ff; border-color: rgba(86, 200, 255, .32); background: rgba(18, 77, 105, .2); }
.wallet-metric-icon.reserved { color: #f6c945; border-color: rgba(246, 201, 69, .34); background: rgba(104, 78, 16, .2); }
.wallet-metric-icon.history { color: #f0a1ff; border-color: rgba(240, 161, 255, .3); background: rgba(96, 44, 112, .2); }

.wallet-metric strong {
    display: block;
    margin: 5px 0 4px;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.wallet-workspace {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wallet-action-panel,
.wallet-rules,
.wallet-history {
    padding: 22px;
}

.wallet-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.wallet-panel-head > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wallet-panel-head h2 {
    margin: 0;
    font-size: 1.24rem;
    line-height: 1.2;
}

.wallet-panel-head .mud-icon-root {
    color: #9be7ff;
}

.wallet-panel-head > span {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(86, 200, 255, .24);
    border-radius: 999px;
    background: rgba(86, 200, 255, .1);
    color: #b6efff;
    font-size: .84rem;
    font-weight: 800;
}

.wallet-panel-copy {
    min-height: 52px;
    margin: 0 0 18px;
    line-height: 1.45;
}

.wallet-action-panel .mud-input-control {
    margin-top: 6px;
}

.wallet-action-button {
    width: 100%;
    min-height: 50px;
    margin-top: 16px !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
}

.wallet-action-button.secondary {
    background: linear-gradient(135deg, #16a085, #268bd2) !important;
}

.wallet-pix-key-grid {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.wallet-pix-key-grid .mud-input-control:last-child {
    grid-column: 1 / -1;
}

.wallet-pix-key-form {
    display: grid;
    gap: 2px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.wallet-pix-key-form > strong {
    color: var(--text);
    font-size: .92rem;
}

.wallet-saved-pix-key-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.wallet-saved-pix-key {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(86, 200, 255, .28);
    border-radius: 12px;
    background: rgba(18, 77, 105, .18);
}

.wallet-saved-pix-key.selected {
    border-color: rgba(66, 230, 107, .42);
    background: rgba(10, 40, 34, .28);
}

.wallet-saved-pix-key > div {
    display: grid;
    gap: 4px;
}

.wallet-saved-pix-key span {
    color: var(--muted);
    font-size: .82rem;
}

.wallet-saved-pix-key strong {
    color: var(--text);
    font-size: .98rem;
}

.wallet-saved-pix-key small {
    color: var(--muted);
}

.wallet-form-field {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(167, 139, 250, .38);
    border-radius: 4px;
    background: rgba(7, 14, 29, .82);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.wallet-form-field legend {
    width: auto;
    margin: 0 0 0 -4px;
    padding: 0 5px;
    color: #dbe7f8;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
}

.wallet-form-field input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 0 2px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4f7ff;
    font: inherit;
    font-weight: 700;
    caret-color: #a78bfa;
    box-shadow: none;
}

.wallet-form-field input::placeholder { color: #8190aa; opacity: 1; }

.wallet-form-field:focus-within {
    border-color: #b69cff;
    background: rgba(10, 18, 36, .98);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
}

.wallet-auth-code-field {
    margin-top: 12px;
}

.wallet-auth-code-field input {
    letter-spacing: .12em;
}

.wallet-action-panel .mud-input-root,
.wallet-action-panel .mud-input-slot,
.wallet-action-panel .mud-select-input,
.wallet-action-panel .mud-input-adornment {
    color: #f4f7ff !important;
    -webkit-text-fill-color: currentColor;
}

.wallet-action-panel input.mud-input-slot,
.wallet-action-panel textarea.mud-input-slot {
    background: transparent !important;
}

.wallet-action-panel .mud-input-outlined-border {
    border-color: rgba(167, 139, 250, .38) !important;
}

.wallet-action-panel .mud-input:focus-within .mud-input-outlined-border {
    border-color: #b69cff !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .12);
}

.wallet-action-button.mud-disabled,
.wallet-action-button:disabled {
    background: rgba(54, 70, 94, .72) !important;
    color: #94a3b8 !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

.wallet-pix-result {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(66, 230, 107, .28);
    border-radius: 12px;
    background: rgba(10, 40, 34, .34);
}

.wallet-pix-result img {
    width: min(220px, 100%);
    border-radius: 10px;
    background: #fff;
}

.wallet-rule-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.wallet-rule-grid > div {
    min-height: 132px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(12, 23, 41, .56);
}

.wallet-rule-grid strong,
.wallet-pix-result strong,
.wallet-empty-history strong {
    display: block;
    color: var(--text);
}

.wallet-rule-grid span {
    display: block;
    margin-top: 8px;
    line-height: 1.42;
}

.wallet-empty-history {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 38px 18px;
    text-align: center;
}

.wallet-empty-history .mud-icon-root {
    color: var(--purple-2);
    font-size: 3rem;
}

.wallet-transaction-list {
    display: grid;
    gap: 10px;
}

.wallet-transaction {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) minmax(170px, auto);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(10, 18, 33, .58);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.wallet-transaction:hover {
    transform: translateY(-1px);
    border-color: rgba(86, 200, 255, .28);
    background: rgba(18, 29, 48, .7);
}

.wallet-transaction-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    color: var(--text);
    background: rgba(30, 42, 66, .8);
}

.wallet-transaction-icon.credit { color: #42e66b; background: rgba(24, 90, 48, .2); }
.wallet-transaction-icon.withdraw { color: #56c8ff; background: rgba(18, 77, 105, .2); }
.wallet-transaction-icon.purchase { color: #f6c945; background: rgba(104, 78, 16, .2); }

.wallet-transaction-main > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.wallet-transaction-main strong {
    color: var(--text);
}

.wallet-transaction-main p {
    margin: 4px 0;
    line-height: 1.35;
}

.wallet-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(150, 170, 220, .12);
    color: #cbd7ee;
    font-size: .78rem;
    font-weight: 800;
}

.wallet-status.done { background: rgba(66, 230, 107, .16); color: #8ff2a4; }
.wallet-status.pending { background: rgba(246, 201, 69, .16); color: #f7d873; }
.wallet-status.failed { background: rgba(255, 113, 143, .16); color: #ff91a9; }

.wallet-transaction-values {
    display: grid;
    justify-items: end;
    gap: 3px;
    text-align: right;
}

.wallet-transaction-values strong {
    font-size: 1.08rem;
}

.wallet-transaction-values .positive { color: #8ff2a4; }
.wallet-transaction-values .negative { color: #ffb36b; }

@media (max-width: 1180px) {
    .wallet-balance-grid,
    .wallet-rule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-hero,
    .wallet-workspace {
        grid-template-columns: 1fr;
    }

    .wallet-hero h1 {
        max-width: 16ch;
    }
}

@media (max-width: 720px) {
    .wallet-page {
        gap: 14px;
    }

    .wallet-hero,
    .wallet-action-panel,
    .wallet-rules,
    .wallet-history {
        padding: 16px;
    }

    .wallet-hero {
        min-height: auto;
    }

    .wallet-hero h1 {
        font-size: 2.05rem;
        line-height: 1.05;
    }

    .wallet-balance-grid,
    .wallet-rule-grid,
    .wallet-pix-key-grid {
        grid-template-columns: 1fr;
    }

    .wallet-metric {
        min-height: auto;
        padding: 14px;
    }

    .wallet-panel-head {
        align-items: stretch;
        flex-direction: column;
    }

    .wallet-panel-head > span {
        width: fit-content;
    }

    .wallet-panel-copy {
        min-height: auto;
    }

    .wallet-transaction {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
    }

    .wallet-transaction-icon {
        width: 40px;
        height: 40px;
    }

    .wallet-transaction-values {
        grid-column: 1 / -1;
        justify-items: start;
        text-align: left;
        padding-left: 54px;
    }
}

/* Dashboard visual refresh inspired by the Sala Premiada mockup. */
.app-bar {
    height: 78px;
    background: rgba(5, 12, 24, .84) !important;
    border-bottom-color: rgba(116, 89, 216, .18);
}

.app-bar .mud-toolbar {
    min-height: 78px;
}

.app-drawer {
    padding-top: 8px;
    background:
        radial-gradient(circle at 32% 6%, rgba(124, 58, 237, .18), transparent 14rem),
        linear-gradient(180deg, rgba(6, 15, 31, .98), rgba(3, 9, 19, .98)) !important;
}

.brand-lockup img {
    width: 206px;
    height: 58px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-actions .wallet-top {
    min-width: 210px;
    min-height: 54px;
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 16px !important;
    border-radius: 14px !important;
    border-color: rgba(86, 200, 255, .18) !important;
    background:
        radial-gradient(circle at 12% 18%, rgba(86, 200, 255, .12), transparent 6rem),
        rgba(13, 22, 43, .92) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .05);
}

.top-actions .wallet-top .mud-button-label {
    display: grid;
    justify-items: start;
    gap: 3px;
    line-height: 1.05;
}

.top-actions .wallet-top span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.top-actions .wallet-top strong {
    color: var(--text);
    font-size: 1.06rem;
    font-weight: 950;
    letter-spacing: -.02em;
}

.top-icon-button {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px !important;
    color: #c9d4ea !important;
}

.profile-chip {
    position: relative;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(167, 139, 250, .32);
    border-radius: 50%;
    background: rgba(19, 27, 47, .86);
    text-decoration: none;
}

.profile-chip img,
.profile-chip > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(145deg, #dbe4f3, #9aa8bf);
    color: #0b1322;
    font-weight: 950;
}

.profile-chip i {
    position: absolute;
    right: 2px;
    bottom: 4px;
    width: 11px;
    height: 11px;
    border: 2px solid #07101f;
    border-radius: 50%;
    background: var(--green);
}

.nav-menu {
    display: flex;
    min-height: calc(100vh - 100px);
    flex-direction: column;
    padding: 14px 18px 18px;
}

.nav-menu .mud-nav-link {
    min-height: 52px;
    border-radius: 10px;
}

.nav-menu .mud-nav-link.active {
    background: linear-gradient(135deg, rgba(116, 58, 237, .66), rgba(49, 36, 105, .74));
}

.nav-referral-card {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 6px;
    padding: 18px 14px 16px;
    border: 1px solid rgba(167, 139, 250, .22);
    border-radius: 12px;
    background:
        radial-gradient(circle at 24% 8%, rgba(167, 139, 250, .24), transparent 7rem),
        linear-gradient(145deg, rgba(18, 26, 48, .88), rgba(8, 15, 29, .9));
    text-align: center;
}

.nav-referral-card > div {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: rgba(124, 58, 237, .24);
    color: #dccdff;
    box-shadow: 0 0 24px rgba(124, 58, 237, .28);
}

.nav-referral-card strong {
    color: var(--text);
}

.nav-referral-card span {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.3;
}

.nav-referral-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 40px;
    border-radius: 9px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.public-dashboard {
    gap: 16px;
}

.dashboard-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(330px, .95fr);
    gap: 18px;
}

.dashboard-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
    min-height: 316px;
    padding: 34px 34px 30px;
}

.dashboard-hero::before {
    background:
        radial-gradient(circle at 76% 40%, rgba(124, 58, 237, .26), transparent 17rem),
        radial-gradient(circle at 54% 20%, rgba(86, 200, 255, .1), transparent 13rem),
        linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 26%);
}

.dashboard-hero-copy {
    position: relative;
    z-index: 1;
}

.dashboard-eyebrow {
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin-bottom: 16px;
    padding: 0 13px;
    border-radius: 9px;
    color: #c29cff;
}

.dashboard-eyebrow span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3d7f;
    box-shadow: 0 0 12px rgba(255, 61, 127, .7);
}

.dashboard-hero h1 {
    max-width: 610px;
    font-size: clamp(2.45rem, 4.2vw, 4.05rem);
    line-height: 1;
}

.dashboard-hero h1 strong {
    display: block;
    color: var(--purple);
}

.dashboard-hero p {
    max-width: 540px;
    margin-top: 16px;
    color: #b8c4d9;
    line-height: 1.42;
}

.dashboard-actions .primary-action,
.dashboard-actions .secondary-action {
    min-height: 50px;
    border-radius: 9px;
}

.dashboard-actions .primary-action .mud-icon-root,
.dashboard-actions .secondary-action .mud-icon-root,
.nav-referral-card .mud-icon-root {
    font-size: 1.1rem;
}

.dashboard-trophy {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    display: grid;
    place-items: center;
    width: 330px;
    height: 330px;
    max-width: 100%;
    aspect-ratio: 1;
    align-self: center;
    justify-self: center;
    isolation: isolate;
    margin: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .3), rgba(72, 35, 145, .12) 46%, transparent 72%),
        radial-gradient(circle at 50% 54%, rgba(245, 158, 11, .1), transparent 64%);
}

.dashboard-trophy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, .2);
    box-shadow: inset 0 0 46px rgba(124, 58, 237, .12), 0 0 48px rgba(124, 58, 237, .14);
}

.dashboard-trophy::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 76%;
    height: 22%;
    bottom: 9%;
    border: 1px solid rgba(245, 184, 75, .22);
    border-radius: 50%;
    transform: rotate(-8deg);
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, .3));
}

.dashboard-trophy img {
    display: block;
    width: 82%;
    height: 82%;
    object-fit: contain;
    object-position: center;
    filter: saturate(1.08) contrast(1.03) drop-shadow(0 18px 24px rgba(48, 22, 105, .4)) drop-shadow(0 0 16px rgba(245, 158, 11, .18));
    -webkit-mask-image: none;
    mask-image: none;
}

.premium-trophy-icon {
    display: grid;
    place-items: center;
}

.premium-trophy-icon img,
.mini-trophy img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, .2)) drop-shadow(0 0 8px rgba(139, 92, 246, .3));
}

.dashboard-stat > .dashboard-stat-trophy {
    grid-row: span 3;
    place-self: center;
    width: 50px;
    height: 50px;
    padding: 6px;
    border: 1px solid rgba(245, 184, 75, .2);
    border-radius: 16px;
    background: radial-gradient(circle, rgba(124, 58, 237, .26), rgba(124, 58, 237, .1));
}

.recommended-room-head .mini-trophy img {
    width: 48px;
    height: 48px;
}

.news-list > div > .news-trophy-icon {
    grid-row: span 2;
    place-self: center;
    width: 40px;
    height: 40px;
    padding: 4px;
    border: 1px solid rgba(245, 184, 75, .18);
    border-radius: 10px;
    background: radial-gradient(circle, rgba(124, 58, 237, .28), rgba(124, 58, 237, .1));
}

.dashboard-next-step {
    min-height: 316px;
    padding: 24px 26px;
}

.dashboard-next-step p {
    margin: 0 0 18px;
    color: var(--muted);
}

.section-heading.compact {
    margin-bottom: 12px;
}

.step-timeline {
    display: grid;
    gap: 16px;
}

.step-timeline > div {
    position: relative;
    display: grid;
    grid-template-columns: 48px 36px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.step-timeline > div:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 64px;
    top: 46px;
    width: 2px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(139, 92, 246, .7), rgba(139, 92, 246, .05));
}

.step-timeline span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(167, 139, 250, .18);
    border-radius: 15px;
    background: rgba(28, 25, 55, .58);
    color: #bda8ff;
}

.step-timeline b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

.step-timeline strong,
.step-timeline small {
    grid-column: 3;
}

.step-timeline strong {
    color: var(--text);
    line-height: 1.15;
}

.step-timeline small {
    color: var(--muted);
    line-height: 1.28;
}

.dashboard-stats {
    gap: 12px;
}

.dashboard-stat {
    grid-template-columns: 58px minmax(0, 1fr);
    align-content: center;
    min-height: 94px;
    padding: 16px 18px;
}

.dashboard-stat .mud-icon-root {
    grid-row: span 3;
    place-self: center;
    padding: 12px;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(124, 58, 237, .2);
}

.dashboard-stat strong {
    font-size: 1.52rem;
}

.dashboard-stat span,
.dashboard-stat small {
    line-height: 1.1;
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(308px, 365px);
    gap: 16px;
}

.dashboard-main-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.dashboard-feature,
.dashboard-news,
.dashboard-winners {
    padding: 16px 18px;
}

.dashboard-feature .section-heading,
.dashboard-news .section-heading,
.dashboard-winners .section-heading {
    margin-bottom: 14px;
}

.section-heading a {
    color: #b99cff;
    font-weight: 850;
    font-size: .88rem;
    text-decoration: none;
}

.recommended-rooms {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.recommended-room-card {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(167, 139, 250, .16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 10% 16%, rgba(124, 58, 237, .2), transparent 8rem),
        rgba(11, 19, 35, .74);
}

.room-card-topline,
.room-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.room-card-topline small,
.room-card-foot span {
    color: var(--muted);
    font-size: .8rem;
}

.room-status {
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(150, 170, 220, .14);
    color: #d6e0f2;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.room-status.open {
    background: rgba(66, 230, 107, .14);
    color: #61f487;
}

.room-status.live {
    background: rgba(255, 61, 127, .16);
    color: #ff75a6;
}

.room-status.soon {
    background: rgba(86, 200, 255, .16);
    color: #8de4ff;
}

.recommended-room-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.recommended-room-head .mini-trophy {
    width: 54px;
    height: 54px;
}

.recommended-room-head .mini-trophy .mud-icon-root {
    font-size: 2.2rem;
}

.recommended-room-head h3 {
    margin: 0 0 10px;
    color: #eee9ff;
    font-size: 1.08rem;
    line-height: 1.12;
}

.recommended-room-head dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.recommended-room-head dt {
    color: var(--muted);
    font-size: .78rem;
}

.recommended-room-head dd {
    margin: 2px 0 0;
    color: var(--gold);
    font-weight: 950;
}

.compact-progress {
    grid-template-columns: minmax(0, 1fr) 44px;
}

.room-card-foot strong {
    color: var(--green);
    font-size: .82rem;
}

.recommended-room-card .primary-action {
    min-height: 42px;
    border-radius: 7px;
}

.dashboard-news {
    display: grid;
    gap: 14px;
}

.news-list > div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 5px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
}

.news-list > div > .mud-icon-root {
    grid-row: span 2;
    place-self: center;
    padding: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #c7b3ff;
    background: rgba(124, 58, 237, .2);
}

.participation-reasons {
    display: grid;
    gap: 9px;
    padding-top: 2px;
}

.participation-reasons h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.participation-reasons > div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    font-size: .9rem;
}

.participation-reasons .mud-icon-root {
    color: #a78bfa;
    font-size: 1rem;
}

.dashboard-winners .winner-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-winners .winner-list > div:not(.dashboard-empty) {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(167, 139, 250, .14);
    border-radius: 8px;
    background: rgba(10, 18, 33, .66);
}

.dashboard-winners .winner-list .mini-avatar {
    grid-row: span 3;
    width: 40px;
    height: 40px;
}

.dashboard-winners .winner-list strong,
.dashboard-winners .winner-list em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-winners .winner-list em,
.dashboard-winners .winner-list small {
    color: var(--muted);
    font-size: .78rem;
    font-style: normal;
}

.dashboard-winners .winner-list span {
    justify-self: end;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(66, 230, 107, .14);
    color: #61f487;
    font-size: .72rem;
    font-weight: 900;
}

.dashboard-winners .winner-list b {
    justify-self: end;
    color: var(--green);
}

.dashboard-winners .winner-list small {
    justify-self: end;
}

@media (max-width: 1080px) {
    .dashboard-top-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-news {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .dashboard-news .section-heading {
        grid-column: 1 / -1;
    }

    .dashboard-winners .winner-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1320px) and (min-width: 1081px) {
    .dashboard-top-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) minmax(292px, 330px);
    }

    .dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 190px;
        padding: 28px;
    }

    .dashboard-hero h1 {
        font-size: clamp(2.1rem, 3.3vw, 3.2rem);
    }

    .dashboard-trophy {
        width: 220px;
        height: 220px;
    }

    .recommended-rooms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommended-room-card:last-child {
        grid-column: 1 / -1;
    }

    .dashboard-winners .winner-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .top-actions .wallet-top {
        min-width: 0;
    }

    .top-actions .wallet-top span {
        display: none;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-trophy {
        width: 310px;
        height: 310px;
        margin: 18px auto 0;
    }

    .recommended-rooms,
    .dashboard-winners .winner-list,
    .dashboard-news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .top-icon-button,
    .profile-chip {
        display: none;
    }

    .top-actions .wallet-top {
        max-width: 132px;
    }

    .dashboard-top-grid,
    .dashboard-grid,
    .dashboard-main-stack {
        display: contents;
        gap: 14px;
    }

    .public-dashboard {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .dashboard-hero { order: 1; }
    .dashboard-feature { order: 2; }
    .dashboard-next-step { order: 3; }
    .dashboard-stats { order: 4; }
    .dashboard-winners { order: 5; }
    .dashboard-news { order: 6; }

    .dashboard-hero,
    .dashboard-next-step,
    .dashboard-feature,
    .dashboard-news,
    .dashboard-winners {
        padding: 16px;
    }

    .dashboard-trophy {
        width: 270px;
        height: 270px;
    }

    .dashboard-hero h1 {
        font-size: 2rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .step-timeline > div {
        grid-template-columns: 42px 32px minmax(0, 1fr);
    }

    .step-timeline > div:not(:last-child)::after {
        left: 56px;
    }

    .recommended-room-head dl,
    .room-card-foot {
        grid-template-columns: 1fr;
    }

    .room-card-foot {
        display: grid;
        justify-items: start;
    }
}
