#game-container.room-page .page-backdrop {
    z-index: 0;
}

#game-container.room-page .page-vignette {
    z-index: 1;
}

#game-container.room-page .page-backdrop {
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 226, 159, 0.1), transparent 18%),
        linear-gradient(180deg, rgba(12, 10, 9, 0.32), rgba(12, 10, 9, 0.62));
    filter: none;
    transform: none;
    opacity: 1;
}

#game-container.room-page .page-vignette {
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 214, 138, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.36)),
        radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.54));
}

.room-page #ambient-particles {
    z-index: 4;
    mix-blend-mode: screen;
    opacity: 0.78;
}

.room-page .hub-stage {
    height: 100%;
    padding: 0;
    z-index: 3;
}

.room-shell,
.room-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-scene {
    overflow: hidden;
}

.room-scene-image,
.room-hotspot-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.room-scene-image {
    z-index: 2;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.room-hotspot-map {
    z-index: 5;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.room-hotspot {
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.room-hotspot-shape {
    fill: rgba(255, 126, 46, 0.02);
    stroke: rgba(255, 193, 139, 0);
    stroke-width: 3px;
    vector-effect: non-scaling-stroke;
    pointer-events: all;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition:
        fill 180ms ease,
        stroke 180ms ease,
        filter 180ms ease,
        opacity 180ms ease;
}

.room-hotspot:hover .room-hotspot-shape,
.room-hotspot.is-active .room-hotspot-shape,
.room-hotspot:focus-visible .room-hotspot-shape {
    fill: rgba(255, 121, 42, 0.16);
    stroke: rgba(255, 214, 170, 0.92);
    filter:
        drop-shadow(0 0 10px rgba(255, 127, 58, 0.34))
        drop-shadow(0 0 18px rgba(255, 127, 58, 0.18));
}

.room-hotspot.is-pressed .room-hotspot-shape {
    fill: rgba(255, 121, 42, 0.22);
    stroke: rgba(255, 225, 194, 1);
}

.room-page .action-rail {
    position: fixed;
    left: clamp(18px, 2vw, 30px);
    right: clamp(18px, 2vw, 30px);
    bottom: var(--action-rail-bottom);
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    justify-content: stretch;
    pointer-events: none;
    z-index: 8;
}

.room-page .action-rail-side,
.room-page .action-rail-right-cluster {
    pointer-events: auto;
}

.room-page .action-rail-side {
    width: auto;
}

.room-page .room-action-rail-menu-cluster {
    grid-template-columns: repeat(3, var(--action-rail-side-icon-size));
}

.room-page .room-rail-right-cluster {
    grid-template-columns: var(--action-rail-side-icon-size) max-content;
    width: auto;
    justify-content: end;
}

.room-page #close-side-menu-button,
.room-page #character-button,
.room-page #challenges-shortcut-button,
.room-page #timeline-toggle-button {
    width: var(--action-rail-side-icon-size);
    min-width: var(--action-rail-side-icon-size);
    padding: 0;
    align-items: center;
    justify-content: center;
}

.room-page #character-button,
.room-page #challenges-shortcut-button {
    display: none;
}

.room-page #character-button.has-notification,
.room-page #challenges-shortcut-button.has-notification {
    display: flex;
}

.room-page #character-button .menu-toggle-icon,
.room-page #challenges-shortcut-button .menu-toggle-icon {
    width: 1em;
    height: 1em;
}

.room-page .action-rail button {
    border-radius: 20px;
}

.room-page #marketplace-button {
    order: 2;
    width: auto;
    min-width: max-content;
    padding-inline: 18px;
}

.room-page .action-rail-popover-anchor {
    order: 1;
}

.room-page .marketplace-button-content {
    gap: 0;
}

.room-page .marketplace-button-wallet {
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--hub-text);
}

.room-page .marketplace-button-gold-icon {
    width: 18px;
    height: 18px;
}

.puppy-mama-button {
    width: 100%;
    min-height: clamp(42px, 6vh, 58px);
    margin-top: 14px;
    padding: 0 18px;
    border: 1px solid rgba(255, 137, 188, 0.58);
    border-radius: 5px;
    background: linear-gradient(180deg, #b83b70, #5f1839);
    color: #fff0f7;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(16px, 2.25vh, 22px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow:
        0 12px 20px rgba(0, 0, 0, 0.34),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 22px rgba(255, 90, 169, 0.16);
}

.puppy-mama-icon {
    margin-right: 8px;
}

.puppy-mama-modal-content p {
    margin: 0 0 18px;
    color: rgba(246, 235, 225, 0.9);
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(18px, 2.7vh, 28px);
    font-weight: 700;
    line-height: 1.1;
}

.puppy-mama-modal-content button {
    min-height: clamp(38px, 5.6vh, 52px);
    padding: 0 18px;
    border: 1px solid rgba(255, 137, 188, 0.54);
    border-radius: 5px;
    background: linear-gradient(180deg, #b83b70, #5f1839);
    color: #fff0f7;
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(15px, 2.1vh, 21px);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.room-page .action-rail-menu-cluster .action-drawer-panel,
.room-page .action-rail-right-cluster .action-drawer-panel {
    width: calc(var(--action-rail-secondary-width) + var(--action-rail-side-icon-size) + var(--action-rail-gap));
}

.room-page .action-rail-right-cluster .action-drawer-panel {
    left: auto;
    right: 0;
}

.room-page .action-drawer-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 900px) and (orientation: landscape) {
    .room-hotspot-shape {
        stroke-width: 2px;
    }

    .room-page .room-rail-right-cluster {
        grid-template-columns: var(--action-rail-side-icon-size) max-content;
    }

    .room-page #marketplace-button {
        min-width: max-content;
        padding-inline: 12px;
    }
}
