/* Lean competition chrome — no Tailwind. Mirrors /play/maze-world/ boot weight. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: #050507;
    color: #e2e8f0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Match main page scrollbar on /competitions/ (layouts/app.blade.php) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0B0F;
}

::-webkit-scrollbar-thumb {
    background: #2D2D39;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B4B63;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.mwc-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 0 1.5rem;
    background: rgba(23, 23, 33, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

.mwc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
}

.mwc-brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    background: linear-gradient(to bottom right, #2563eb, #9333ea);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s ease;
}

.mwc-brand:hover .mwc-brand-mark {
    transform: rotate(12deg);
}

.mwc-brand-title {
    font-family: Orbitron, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 640px) {
    .mwc-brand-title {
        font-size: 1.25rem;
    }
}

.mwc-top-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
    gap: 1.5rem;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.25rem; /* text-sm */
    font-weight: 500;
    color: #94a3b8;
}

.mwc-top-links a {
    display: inline-block;
    line-height: 1.25rem;
    padding-bottom: 0.25rem; /* pb-1 — same box as site header */
    border-bottom: 2px solid transparent;
}

.mwc-top-links a:hover {
    color: #fff;
}

.mwc-top-links a.is-active {
    color: #fff;
    border-bottom-color: #3b82f6; /* border-blue-500 */
}

.mwc-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}

.mwc-top-search {
    position: relative;
    display: none;
    align-items: center;
}

@media (min-width: 1280px) {
    .mwc-top-search {
        display: flex;
    }
}

.mwc-top-search-icon {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

.mwc-top-search input {
    width: 11rem;
    margin: 0;
    padding: 0.375rem 0.625rem 0.375rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font: inherit;
    font-size: 0.75rem;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.mwc-top-search input::placeholder {
    color: #6b7280;
}

.mwc-top-search input:focus {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.mwc-top-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #94a3b8;
}

.mwc-top-auth a:hover,
.mwc-top-logout button:hover {
    color: #60a5fa;
}

.mwc-top-logout {
    display: inline-flex;
    margin: 0;
}

.mwc-top-logout button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.mwc-top-signup {
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.mwc-top-signup:hover {
    opacity: 0.92;
    color: #fff !important;
}

/* Match site header: primary nav from lg up; guest CTA stays visible on mobile. */
@media (max-width: 1023px) {
    .mwc-top {
        gap: 0.75rem;
        padding: 0 1rem;
        justify-content: space-between;
    }

    .mwc-top-links {
        display: none;
    }

    .mwc-top-auth {
        margin-left: 0;
    }

    .mwc-top-login {
        display: none;
    }
}

.mwc-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    padding: 4.25rem 0.85rem 1.25rem;
}

@media (max-height: 1200px) {
    .mwc-shell {
        padding-bottom: 0.2rem;
        gap: 0.75rem;
    }

    #challenge-maze-card {
        padding: 0.25rem;
    }

    #challenge-timer-row {
        margin-bottom: 0.2rem;
    }
}

@media (min-width: 1024px) {
    .mwc-shell {
        grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
        gap: 1.5rem;
        padding: 4.35rem 1.25rem 1.25rem 13.5rem;
    }
}

@media (min-width: 1024px) and (max-height: 1200px) {
    .mwc-shell {
        gap: 0.75rem;
        padding-bottom: 0.2rem;
    }
}

.mwc-nav {
    display: none;
}

@media (min-width: 1024px) {
    .mwc-nav {
        /* Match .game-worlds-left-nav on /competitions/ */
        display: block;
        position: fixed;
        top: 3.5rem;
        left: env(safe-area-inset-left, 0px);
        bottom: 0;
        z-index: 30;
        width: 12rem;
        padding: 0;
        overflow: auto;
        overscroll-behavior-y: contain;
        /* Match .game-worlds-nav-scroll scrollbar on /competitions/ */
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
        scrollbar-gutter: stable;
        -webkit-overflow-scrolling: touch;
        border-right: 1px solid rgba(0, 242, 255, 0.15);
        background: rgba(15, 15, 25, 0.8);
        backdrop-filter: blur(20px);
    }

    .mwc-nav::-webkit-scrollbar {
        width: 6px;
    }

    .mwc-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .mwc-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 1px;
    }

    .mwc-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 242, 255, 0.25);
    }
}

.mwc-nav-inner {
    /* Match left-nav content: pt-5 px-3 pb-3 */
    padding: 1.25rem 0.75rem 0.75rem;
}

.mwc-nav-section {
    margin: 0 0 1.5rem; /* mb-6 */
}

.mwc-nav-section:last-child {
    margin-bottom: 0;
}

.mwc-nav-label {
    margin: 0 0 0.75rem; /* mb-3 */
    padding: 0 0.5rem; /* px-2 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #cbd5e1; /* text-gray-300 */
}

.mwc-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* space-y-1 */
}

.mwc-nav-list a,
.mwc-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
    padding: 0.375rem 0.625rem; /* py-1.5 px-2.5 */
    font-size: 13px;
    line-height: 1.375;
    color: #64748b; /* text-gray-500 */
    /* Reserve active bar width so label/items don't shift when selection changes */
    border-left: 4px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.mwc-nav-toggle {
    width: 100%;
    border-top: none;
    border-right: none;
    border-bottom: none;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.mwc-nav-list a:hover,
.mwc-nav-toggle:hover {
    color: #fff;
}

.mwc-nav-list a.is-active,
.mwc-nav-toggle.is-active {
    /* Match .nav-item-active — color only, no padding change */
    color: #00f2ff !important;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.38) 0%, rgba(0, 242, 255, 0.16) 52%, rgba(0, 242, 255, 0.04) 85%, transparent 100%);
    border-left-color: #00f2ff;
}

.mwc-nav-sub {
    list-style: none;
    margin: 0.125rem 0 0.25rem 1.25rem;
    padding: 0 0 0 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mwc-nav-sub.hidden {
    display: none;
}

.mwc-nav-list img,
.mwc-nav-icon {
    width: 1.5rem; /* w-6 */
    height: 1.5rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.mwc-nav-list img {
    object-fit: cover;
}

.mwc-nav-more {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.375rem 0.625rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: rgba(34, 211, 238, 0.9);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.mwc-nav-more:hover {
    color: #67e8f9;
    background: rgba(255, 255, 255, 0.04);
}

.mwc-nav-icon svg {
    width: 1rem;
    height: 1rem;
}

.mwc-nav-icon--fire {
    color: rgba(251, 191, 36, 0.9);
}

.mwc-nav-icon--clock {
    color: rgba(52, 211, 153, 0.9);
}

.mwc-nav-icon--map {
    color: rgba(34, 211, 238, 0.9);
}

.mwc-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(23, 23, 33, 0.7);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

#challenge-maze-card {
    padding: 0.55rem;
    min-width: 0;
}

#challenge-side-panel {
    padding: 1rem 1.1rem;
    min-width: 0;
    max-height: none;
}

@media (min-width: 1024px) {
    #challenge-side-panel {
        overflow: auto;
        overscroll-behavior: contain;
    }
}

#challenge-timer-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
    margin-bottom: 0.4rem;
}

.mwc-timer-left,
.mwc-timer-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.mwc-timer-left {
    justify-content: flex-start;
}

.mwc-timer-right {
    justify-content: flex-end;
}

.mwc-timer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#challenge-howto-toggle {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}

#challenge-howto-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #7dd3fc;
}

.mwc-howto-mark {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

#challenge-howto-panel {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 30;
    width: min(calc(100vw - 2rem), 18rem);
    margin-top: 0.35rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #12121a;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

#challenge-howto-panel p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #cbd5e1;
}

#challenge-howto-panel p + p {
    margin-top: 0.65rem;
}

#challenge-timer-label {
    font-size: 0.875rem;
    color: #cbd5e1;
}

#challenge-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mwc-next {
    color: rgba(34, 211, 238, 0.9);
    font-size: 0.8125rem;
    white-space: nowrap;
}

.mwc-next:hover {
    color: #67e8f9;
}

.mwc-start-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.mwc-next--start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.4);
    background: rgba(8, 47, 73, 0.72);
    color: #a5f3fc;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mwc-next--start:hover {
    background: rgba(14, 116, 144, 0.55);
    border-color: rgba(103, 232, 249, 0.65);
    color: #ecfeff;
}

#challenge-maze-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

#mw-challenge-host {
    position: relative;
    z-index: 0;
    width: 100%;
    height: calc(100dvh - 8.75rem);
    min-height: 320px;
    background: #000;
}

#mw-challenge-host canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#challenge-maze-wrap .pm-boot-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#challenge-maze-wrap .pm-boot-loading.pm-boot-loading-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#challenge-maze-wrap .pm-boot-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

#challenge-maze-wrap .pm-boot-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(103, 232, 249, 0.18);
    border-top-color: #67e8f9;
    animation: mwc-spin 0.75s linear infinite;
}

#challenge-maze-wrap .pm-boot-loading-text {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

@keyframes mwc-spin {
    to {
        transform: rotate(360deg);
    }
}

#challenge-start-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(0.5px);
}

#challenge-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 0.75rem;
    background: linear-gradient(90deg, #2563eb, #9333ea);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.4);
}

#challenge-start-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

#challenge-timer-row #pm-audio-controls {
    position: relative;
    height: 28px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    gap: 5px;
}

#challenge-timer-row #mute-button {
    width: 22px;
    height: 22px;
    padding: 2px;
    border: none;
    border-radius: 7px;
    background: transparent;
    object-fit: contain;
    cursor: pointer;
}

#challenge-timer-row .pm-volume-popover {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 110px;
    padding: 10px 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

#challenge-timer-row .pm-volume-popover[hidden] {
    display: none !important;
}

#challenge-timer-row #bgm-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 88px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    outline: none;
    cursor: pointer;
    transform: rotate(-90deg);
    transform-origin: center center;
}

#challenge-timer-row #bgm-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #67e8f9;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
    cursor: pointer;
}

#challenge-timer-row #bgm-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #67e8f9;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
    cursor: pointer;
}

#challenge-timer-row #pm-haze-controls {
    position: relative;
    height: 28px;
    padding: 0 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    width: max-content;
}

#challenge-timer-row .pm-haze-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #fdba74;
    cursor: pointer;
    flex-shrink: 0;
}

#challenge-timer-row .pm-haze-icon:hover {
    background: rgba(251, 146, 60, 0.16);
    color: #fb923c;
}

#challenge-timer-row .pm-haze-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#challenge-timer-row .pm-haze-value {
    flex-shrink: 0;
    min-width: 2em;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fdba74;
    text-align: right;
    line-height: 1;
    user-select: none;
}

#challenge-timer-row #pm-page-transparency {
    -webkit-appearance: none;
    appearance: none;
    width: 76px;
    height: 4px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.45), rgba(251, 146, 60, 0.85));
    outline: none;
    cursor: pointer;
    flex: 0 0 76px;
}

#challenge-timer-row #pm-page-transparency::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fb923c;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.45);
    cursor: pointer;
}

#challenge-timer-row #pm-page-transparency::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fb923c;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.45);
    cursor: pointer;
}

#challenge-timer-row #pm-haze-tip {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 40;
    width: min(240px, 70vw);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.94);
    border: 1px solid rgba(251, 146, 60, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
    color: #ffedd5;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#challenge-timer-row #pm-haze-tip strong {
    font-size: 12px;
    color: #fdba74;
}

#challenge-timer-row #pm-haze-tip span {
    font-size: 12px;
    line-height: 1.35;
}

#challenge-timer-row .pm-haze-tip__ok {
    align-self: flex-end;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(251, 146, 60, 0.55);
    background: rgba(251, 146, 60, 0.18);
    color: #ffedd5;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

/* Vertical relic tray along the right edge of the maze (in-game overlay). */
#challenge-maze-wrap #challenge-relic-strip {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

#challenge-maze-wrap #challenge-relic-strip-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

#challenge-maze-wrap #challenge-relic-strip .pm-relic-tray-slot {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(103, 232, 249, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    flex: 0 0 auto;
}

#challenge-maze-wrap #challenge-relic-strip .pm-relic-tray-slot.is-empty {
    background: rgba(15, 23, 42, 0.45);
    border: 1px dashed rgba(148, 163, 184, 0.35);
}

#challenge-maze-wrap #challenge-relic-strip .pm-relic-tray-slot.is-filled {
    border-color: rgba(103, 232, 249, 0.55);
}

#challenge-maze-wrap #challenge-relic-strip .pm-relic-tray-slot img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

#challenge-maze-wrap #challenge-relic-strip.is-ready {
    border-color: rgba(103, 232, 249, 0.55);
    box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.4), 0 0 16px rgba(34, 211, 238, 0.22), 0 8px 22px rgba(0, 0, 0, 0.28);
    background: rgba(2, 6, 23, 0.55);
}

@media (max-width: 640px) {
    #challenge-maze-wrap #challenge-relic-strip {
        right: 6px;
        padding: 8px 5px;
    }

    #challenge-maze-wrap #challenge-relic-strip .pm-relic-tray-slot {
        width: 30px;
        height: 30px;
    }
}

.mwc-timer-right .mwc-next {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

#challenge-exit-hint {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    z-index: 8;
    width: max-content;
    max-width: min(92%, 380px);
    margin: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.88);
    border: 1px solid rgba(103, 232, 249, 0.45);
    color: #e0f2fe;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

#challenge-exit-hint[hidden] {
    display: none !important;
}

.mwc-side-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mwc-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.mwc-title-row h1 {
    margin: 0;
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mwc-share {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.mwc-share:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mwc-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mwc-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.mwc-stat-heat {
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.1);
    color: rgba(252, 211, 77, 0.95);
}

.mwc-stat-plays {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
}

.mwc-banner {
    margin-bottom: 1.1rem;
    padding: 1rem;
    border-radius: 0.75rem;
}

.mwc-banner-fail {
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.05);
    color: #fca5a5;
    font-size: 0.875rem;
    font-weight: 600;
}

.mwc-banner-win {
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.05);
}

.mwc-banner-win > p {
    margin: 0 0 1rem;
    color: #6ee7b7;
    font-size: 0.875rem;
    font-weight: 600;
}

.mwc-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.mwc-form input[type='text'] {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.875rem;
}

.mwc-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.mwc-form-actions button {
    flex: 1;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
}

.mwc-btn-submit {
    border: none;
    background: linear-gradient(90deg, #059669, #0d9488);
    color: #fff;
}

.mwc-btn-skip {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.mwc-board-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.mwc-board-empty {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.mwc-board-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mwc-board-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.mwc-board-rank {
    width: 2rem;
    flex-shrink: 0;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

.mwc-board-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.mwc-board-time {
    flex-shrink: 0;
    color: rgba(103, 232, 249, 0.9);
    font-variant-numeric: tabular-nums;
    font-size: 0.8rem;
}

.mwc-board-moves {
    width: 3.5rem;
    flex-shrink: 0;
    text-align: right;
    color: #64748b;
    font-variant-numeric: tabular-nums;
    font-size: 0.75rem;
}

.mwc-flash {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    font-size: 0.75rem;
}

#challenge-your-time {
    margin: 0 0 0.75rem;
    color: rgba(167, 243, 208, 0.9);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}
