/* Global Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 1000;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-center {
    flex: 1;
    text-align: center;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ip-config-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    font-weight: bold;
    position: relative;
}

.fullscreen-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
}

/* IP Configuration Dropdown */
.ip-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 350px;
    max-width: 90vw;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.ip-dropdown.hidden {
    display: none;
}

.ip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.refresh-btn {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    cursor: pointer;
    font-size: 0.8rem;
}

.refresh-btn:hover {
    background: rgba(78, 205, 196, 0.3);
}

.ip-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.ip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ip-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ip-item.selected {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.ip-info {
    flex: 1;
}

.adapter-name {
    font-weight: bold;
    font-size: 0.9rem;
    color: #4ecdc4;
}

.ip-address {
    font-size: 0.8rem;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

.select-btn {
    padding: 0.25rem 0.75rem;
    border: none;
    border-radius: 4px;
    background: #4ecdc4;
    color: #000;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    background: #44a08d;
    transform: scale(1.05);
}

.share-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.share-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #4ecdc4;
}

.share-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.share-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.copy-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.3);
}

.network-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-align: center;
}

.network-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.network-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.network-message.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

/* Screen Management */
.screen {
    position: fixed;
    top: 60px; /* Account for navbar */
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    padding: 2rem;
    overflow-y: auto;
    background: #1a1a1a;
}

.screen.active {
    display: block;
}

/* Menu visibility follows the event gate and screen controller. */
#menuScreen {
    background: #1a1a1a;
    color: #ffffff;
}

/* Debug - ensure menu container is visible */
.menu-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 2rem;
}

/* Menu Screen */
.menu-container {
    max-width: none;
    margin: 0 auto;
    text-align: left;
}

.logo-section {
    margin-bottom: 3rem;
}

.main-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff6b6b; /* Fallback color */
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: #ffffff;
}

.player-input {
    margin-bottom: 2rem;
}

.player-input input {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.player-input input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}

.menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.create-room-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.room-options {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ffffff;
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #4ecdc4;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #4ecdc4;
    border-color: #4ecdc4;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: bold;
    font-size: 12px;
}

.checkbox-label:hover input[type="checkbox"] {
    border-color: #44a08d;
}

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

.join-section input {
    flex: 1;
    max-width: 200px;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.join-section input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: none;
    letter-spacing: normal;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #000;
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
}

.btn-accent {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
}

.btn:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-small {
    padding: 0.75rem;
    min-width: auto;
    font-size: 1.2rem;
}

.btn-small:hover {
    transform: scale(1.05);
}

/* Room List */
.room-list-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.room-list-section h3 {
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.public-rooms {
    min-height: 0;
}

.room-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.room-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.room-item.game-started {
    background: rgba(255, 165, 0, 0.1);
    border-left: 4px solid #ff6b35;
}

.room-item.waiting {
    background: rgba(0, 255, 0, 0.1);
    border-left: 4px solid #4ecdc4;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.room-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.room-code {
    font-weight: bold;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
}

.room-status {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.room-status.playing {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
}

.room-status.waiting {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.player-count {
    color: #ccc;
    font-size: 0.9rem;
}

.host-name {
    color: #aaa;
    font-size: 0.9rem;
}

.room-players {
    font-size: 0.9rem;
    opacity: 0.8;
}

.join-room-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #4ecdc4;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.join-room-btn:hover:not(:disabled) {
    background: #44a08d;
    transform: scale(1.05);
}

.join-room-btn:disabled {
    background: #666;
    color: #999;
    cursor: not-allowed;
}

.no-rooms {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 2rem;
}

.error-message {
    text-align: center;
    color: #ff6b35;
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 6px;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-style: italic;
    opacity: 0.7;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Screen */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.loading-container {
    text-align: center;
}

.loading-container h2 {
    margin: 1rem 0;
    color: #4ecdc4;
}

.loading-container p {
    opacity: 0.7;
}

/* Game Screen Styles */
#gameScreen {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a2e;
    display: none;
    padding: 0 2rem;
}

.game-header {
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.game-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.game-controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.game-main {
    display: flex;
    height: calc(100vh - 110px);
}

.game-world-container {
    flex: 1;
    position: relative;
    background: #2c3e50;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-world {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 600px;
    background: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.game-object {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-object.wall {
    background: #34495e;
    border-color: #2c3e50;
}

.game-object.table {
    background: #8b4513;
    border-color: #654321;
}

.game-object.fridge {
    background: #bdc3c7;
    border-color: #95a5a6;
}

.game-object.door {
    background: #7f8c8d;
    border-color: #5d6d7e;
}

.game-object.sticky_note {
    background: #f39c12;
    border-color: #e67e22;
}

.game-object.key {
    background: #f1c40f;
    border-color: #f39c12;
}

.game-object.interactable {
    cursor: pointer;
}

.game-object.interactable:hover {
    border-color: #f39c12;
    border-width: 2px;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.game-object.interact-nearby {
    border-color: #f39c12 !important;
    border-width: 3px !important;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.8) !important;
}

.game-object.player {
    border-radius: 50%;
    z-index: 100;
    transition: all 0.3s ease;
}

.game-object.current-player {
    background: #e74c3c !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

.game-object.other-player {
    background: #3498db !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.6);
}

.game-area .player-name {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    background: rgba(0,0,0,0.8);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
}

.interaction-hint {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #f39c12;
    font-size: 12px;
    font-weight: bold;
    background: rgba(0,0,0,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    animation: bounce 0.5s infinite alternate;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0% { transform: translateX(-50%) translateY(0px); }
    100% { transform: translateX(-50%) translateY(-3px); }
}

.screen.active {
    animation: fadeIn 0.5s ease-out;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.no-interfaces {
    padding: 1rem;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
}

/* Player input section styling */
.name-input-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.name-input-section input {
    flex: 1;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 0.5rem;
    }
    
    .game-title {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ip-dropdown {
        min-width: 300px;
        left: -50px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .btn {
        min-width: 150px;
        padding: 0.8rem 1.5rem;
    }
    
    .join-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .join-section input {
        max-width: 100%;
    }
    
    .game-main {
        flex-direction: column;
    }
    
    .game-sidebar {
        width: 100%;
        height: 200px;
        flex-direction: row;
    }
    
    .inventory-panel, .clues-panel, .chat-panel {
        flex: 1;
    }
    
    .mobile-controls {
        display: block;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 1rem;
    }
    
    .ip-dropdown {
        min-width: 280px;
        left: -100px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .menu-actions {
        gap: 1rem;
    }
    
    .btn {
        min-width: 120px;
        font-size: 0.9rem;
    }
}

/* Game Sidebar Styles */
.game-sidebar {
    width: 300px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.inventory-panel, .clues-panel, .chat-panel {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inventory-panel h4, .clues-panel h4, .chat-panel h4 {
    margin-bottom: 0.5rem;
    color: #4ecdc4;
    font-size: 1rem;
    font-weight: bold;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    min-height: 80px;
}

.clues-list {
    min-height: 60px;
    font-size: 0.9rem;
    color: #bbb;
}

.chat-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    overflow-y: auto;
    max-height: 200px;
    min-height: 150px;
}

.chat-message {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.chat-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-player-name {
    font-weight: bold;
    color: #4ecdc4;
}

.chat-player-name.own-message {
    color: #ffd700;
}

.chat-timestamp {
    color: #888;
    font-size: 0.8rem;
}

.chat-message-content {
    color: #fff;
    line-height: 1.3;
}

.chat-message .player-name {
    font-weight: bold;
    color: #4ecdc4;
}

.chat-message .timestamp {
    color: #888;
    font-size: 0.8rem;
}

.chat-input-group {
    display: flex;
    gap: 0.5rem;
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
}

#chatInput::placeholder {
    color: #aaa;
}

#sendChatBtn {
    background: #4ecdc4;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 40px;
}

#sendChatBtn:hover {
    background: #44a08d;
}

/* Lobby Screen */
#lobbyScreen {
    background: #1a1a1a;
    color: #ffffff;
}

.lobby-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.room-info {
    text-align: center;
    margin-bottom: 2rem;
}

.room-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.room-code {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 2.5rem;
    letter-spacing: 3px;
}

.room-share {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.lobby-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.players-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
}

.players-section h3 {
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    border-left: 3px solid #4ecdc4;
}

.player-item.current-player {
    border-left-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.player-name {
    font-weight: bold;
}

.player-status {
    color: #27ae60;
    font-size: 0.9rem;
}

.game-settings {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
}

.game-settings h3 {
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.setting-group select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
}

.setting-group select option {
    background: #2c3e50;
    color: #ffffff;
}

.lobby-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.lobby-actions .btn {
    min-width: 150px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive lobby layout */
@media (max-width: 768px) {
    .lobby-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lobby-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .lobby-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.3s ease-out;
}

.notification-info {
    background: #3498db;
}

.notification-success {
    background: #27ae60;
}

.notification-warning {
    background: #f39c12;
}

.notification-error {
    background: #e74c3c;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Computer Icons in Rooms */
.game-object.computer {
    width: 30px;
    height: 30px;
    background-image: url('../../assets/images/computer.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #3498db;
    border-radius: 4px;
    cursor: pointer;
    position: absolute;
    z-index: 50;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    animation: computerPulse 2s infinite;
}

.game-object.computer:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.6);
    border-color: #e74c3c;
}

.game-object.computer.interactable {
    border-color: #f39c12;
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

@keyframes computerPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.5);
    }
}

/* Guard Styling */
.guard {
    position: absolute;
    z-index: 60;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.guard:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Cybersecurity Puzzle Overlay */
.puzzle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.puzzle-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid #3498db;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: puzzleSlideIn 0.5s ease-out;
}

@keyframes puzzleSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.puzzle-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 15px;
}

.puzzle-title {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.puzzle-title::before {
    content: '🔐';
    font-size: 1.5rem;
}

.puzzle-subtitle {
    color: #bdc3c7;
    font-size: 1rem;
}

.puzzle-content {
    margin-bottom: 25px;
}

.puzzle-riddle {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ecf0f1;
}

.puzzle-input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.puzzle-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #34495e;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.puzzle-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.puzzle-input::placeholder {
    color: #7f8c8d;
}

.puzzle-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.puzzle-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.puzzle-btn.submit {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
}

.puzzle-btn.submit:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.puzzle-btn.close {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
}

.puzzle-btn.close:hover {
    background: linear-gradient(45deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.puzzle-hint {
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #f39c12;
    font-size: 0.9rem;
    display: none;
}

.puzzle-hint.show {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.puzzle-success {
    background: rgba(46, 204, 113, 0.2);
    border: 2px solid #27ae60;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #2ecc71;
    font-weight: bold;
    margin-top: 15px;
    display: none;
}

.puzzle-success.show {
    display: block;
    animation: successPulse 0.6s ease-in;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.puzzle-error {
    background: rgba(231, 76, 60, 0.2);
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 15px;
    display: none;
}

.puzzle-error.show {
    display: block;
    animation: errorShake 0.5s ease-in;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Master Door Styling */
.master-door {
    position: absolute;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    border: 3px solid #c0392b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}

.master-door[data-is-unlocked="true"] {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
    animation: masterDoorPulse 2s infinite;
}

.master-door:hover {
    transform: scale(1.05);
}

.master-door[data-is-unlocked="true"]:hover {
    box-shadow: 0 0 30px rgba(39, 174, 96, 1);
}

@keyframes masterDoorPulse {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(39, 174, 96, 0.8);
    }
    50% { 
        box-shadow: 0 0 30px rgba(39, 174, 96, 1), 0 0 40px rgba(39, 174, 96, 0.6);
    }
}

/* Decoration Styling */
.decoration {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    transition: all 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.decoration.sofa {
    width: 60px;
    height: 60px;
    /* Background image will be set via JavaScript */
}

.decoration.plant {
    width: 40px;
    height: 50px;
    /* Background image will be set via JavaScript */
}

.decoration:hover {
    opacity: 1 !important;
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
}

/* Fallback styling if images don't load */
.decoration.sofa:not([style*="background-image"]) {
    background: linear-gradient(45deg, #8B4513, #A0522D);
    border: 2px solid #654321;
    border-radius: 8px;
}

.decoration.sofa:not([style*="background-image"])::before {
    content: '🛋️';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 30px;
}

.decoration.plant:not([style*="background-image"]) {
    background: linear-gradient(45deg, #228B22, #32CD32);
    border: 2px solid #006400;
    border-radius: 50%;
}

.decoration.plant:not([style*="background-image"])::before {
    content: '🪴';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 25px;
}

/* Corporate header and organizer-controlled event access. */
[hidden] { display: none !important; }
.navbar { display: flex; justify-content: space-between; }
.nav-right { justify-self: end; position: relative; }
.nav-center { min-width: 0; }
.company-logo { display: block; width: 188px; max-width: 100%; height: auto; margin: 0; }
body.event-locked .screen,
body.event-locked .puzzle-overlay,
body.event-locked .death-overlay,
body.event-locked .completion-overlay,
body.event-locked #fullscreenBtn { display: none !important; }
body.event-open .waiting-screen { display: none; }
.waiting-screen { min-height: 100dvh; padding: 100px 24px 40px; display: grid; place-items: center; text-align: center; }
.waiting-screen h1 { max-width: 820px; font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1.35; font-weight: 500; text-wrap: balance; }
.organizer-menu { position: absolute; top: calc(100% + 12px); right: 0; min-width: 150px; padding: 8px; background: #182334; border: 1px solid #475569; border-radius: 10px; box-shadow: 0 8px 30px #0008; }
.organizer-menu button { width: 100%; padding: 12px 20px; border: 0; border-radius: 6px; background: transparent; color: white; text-align: left; font: inherit; cursor: pointer; }
.organizer-menu button:hover, .organizer-menu button:focus-visible { background: #334155; }
.organizer-dialog { margin: auto; width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; color: #fff; background: #16213e; border: 1px solid #64748b; border-radius: 16px; }
.organizer-dialog::backdrop { background: #020617cc; }
.organizer-dialog h2 { margin-bottom: 24px; }
.organizer-dialog label { display: block; margin: 16px 0 8px; }
.organizer-dialog input { width: 100%; box-sizing: border-box; padding: 12px; font: inherit; color: #fff; background: #0f172a; border: 1px solid #64748b; border-radius: 6px; }
.organizer-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.organizer-error { color: #fda4af; margin-top: 16px; min-height: 1.5em; }
.organizer-actions button:disabled { opacity: 0.6; cursor: wait; }
@media (max-width: 768px) {
    .company-logo { width: 145px; }
    .nav-left { font-size: 0.7rem; }
    #connectionTools { display: flex; flex-direction: column; gap: 2px; }
    #retryConnection { padding: 2px 4px; font-size: 0.7rem; }
    #fullscreenBtn { display: none; }
}

/* Fixed teams: all eight remain visible, including empty and full rooms. */
.public-rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-card { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 0; padding: 20px; }
.team-name { font-size: 1.12rem; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.team-count { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.team-card .join-room-btn { margin-top: auto; }
.team-card .join-room-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.invited-team { outline: 2px solid #4ecdc4; outline-offset: 2px; }
.selection-notice { margin: 18px 0; line-height: 1.5; color: #d5e8f5; }
.name-input-section { flex-wrap: wrap; }
.name-input-section label { flex-basis: 100%; text-align: left; }
.team-waiting { padding: 24px 12px; line-height: 1.6; }
#roomCodeDisplay, #gameRoomCode { white-space: normal; overflow-wrap: anywhere; }
.game-info { flex-wrap: wrap; }
#organizerPhase { padding: 12px; }
@media (max-width: 600px) {
    .public-rooms { grid-template-columns: minmax(0, 1fr); }
    .game-info { gap: 8px; font-size: 0.85rem; }
}

/* Event clock, temporary PM block and final classification. */
.team-clock-panel { padding: 1rem; background: #182a40; border: 1px solid #46617f; border-radius: 10px; }
.team-clock-panel h4 { margin: 0; }
.team-clock-panel .countdown { font-size: 2.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: .4rem 0; color: #fff; }
#pmNotice { border-top: 1px solid #ddb15c; margin-top: .75rem; padding-top: .5rem; color: #ffe0a0; }
#pmBlockTime { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
#escapedNotice { color: #9ee6ba; }
.result-dialog { width: min(92vw, 480px); padding: 2rem; background: #182a40; color: #fff; border: 1px solid #7596bd; border-radius: 14px; text-align: center; }
.result-dialog::backdrop { background: rgba(0,0,0,.75); }
.result-dialog p { margin: 1rem 0; overflow-wrap: anywhere; }
.result-score { font-size: 2rem; font-weight: 700; }
.team-result, .team-result-status { width: 100%; overflow-wrap: anywhere; line-height: 1.5; margin: .4rem 0; }
.team-result { color: #b5e4fd; font-variant-numeric: tabular-nums; }
.return-team-btn { margin-top: .75rem; }
@media (max-width: 600px) { .team-clock-panel .countdown { font-size: 2rem; } .result-dialog { padding: 1.2rem; } }
@media (max-width: 768px) {
    .game-sidebar { width: 100%; height: auto; min-height: 0; flex-direction: column; border-left: 0; }
    .game-sidebar > * { flex: none; }
    .game-world-container { min-height: 0; }
}

/* Daily objects use shared world coordinates; labels remain text, never hidden answers. */
.daily-object { position: absolute; z-index: 12; padding: 0; border: 0; background: transparent url('../../assets/images/daily-desk.svg') center / 100% 100% no-repeat; cursor: pointer; overflow: visible; }
.daily-object:hover, .daily-object:focus-visible { filter: brightness(1.15); outline: 2px solid #f9d48b; outline-offset: 3px; }
.daily-object-label { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 12px/1.3 system-ui,sans-serif; color: #fff; background: #17283c; border-radius: 3px; padding: 1px 4px; }
.daily-coffee { background-image: url('../../assets/images/daily-coffee.svg'); }
.daily-pm-person { position: absolute; left: 50%; top: -17px; transform: translateX(-50%); width: 30px; height: 37px; background: url('../../assets/images/awakeguard.png') center / contain no-repeat; pointer-events: none; }
.daily-found .daily-object-label { color: #a3f3c2; }
.daily-meeting { position: absolute; border: 2px dashed #ddc075; border-radius: 50%; z-index: 2; box-sizing: border-box; background: #ddc07515; pointer-events: none; }
.daily-meeting.daily-group-ready { border-color: #8ce5af; background: #8ce5af18; }
.daily-objective { padding: 1rem; border-bottom: 1px solid #506478; color: #e9f1fa; }
.daily-objective h4 { margin: 0 0 .6rem; color: #f5d6a0; }
.daily-objective p { line-height: 1.45; margin: .4rem 0; font-size: .9rem; }
.daily-dialog { width: min(92vw,540px); max-height: 90vh; overflow: auto; box-sizing: border-box; padding: 1.5rem; border: 1px solid #bba179; border-radius: 14px; background: #182a40; color: #fff; }
.daily-dialog::backdrop { background: #000b; }
.daily-dialog h2 { margin-top: 0; }
.daily-dialog p { line-height: 1.5; }
.daily-dialog label { display: block; margin-bottom: .4rem; }
.daily-dialog input { width: 100%; box-sizing: border-box; padding: .7rem; font-size: 1rem; border-radius: 6px; border: 1px solid #758aa3; }
.daily-dialog input:disabled { opacity: .5; }
.daily-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
#dailyError { color: #ffc3b5; min-height: 1.2rem; }
#dailyReadiness { font-size: .85rem; color: #bad8f0; }
#dailyHint { border-left: 3px solid #f5d6a0; padding-left: .7rem; }
.daily-inventory-item, .daily-letter { display: inline-block; padding: .4rem .6rem; margin: .2rem; border: 1px solid #8ca8c5; border-radius: 6px; background: #263e59; color: #fff; }
.daily-letter { font-size: 1.15rem; font-weight: 700; }
.game-sidebar { overflow-y: auto; }
@media (max-width: 768px) {
    .game-main { height: auto; }
    .game-world-container { height: min(65vh,420px); min-height: 300px; flex: none; }
    .game-sidebar { overflow-y: visible; }
    .daily-actions .btn { flex: 1 1 100px; min-width: 0; }
    .daily-dialog { padding: 1rem; }
}

.daily-coffee .daily-object-label { left: auto; right: 0; transform: none; }

.overview-clock { margin: 1rem 0 1.4rem; padding: 1.2rem; border: 1px solid #6689ad; border-radius: 12px; background: #182a40; text-align: center; color: #eaf4ff; }
.overview-clock h3 { margin: 0 0 .5rem; }
.overview-clock p { margin: .35rem 0; line-height: 1.45; }
.overview-clock-value { font-size: clamp(2.4rem,7vw,3.7rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.overview-clock-phase { color: #c6e6ff; }
.overview-clock-notice { color: #ffdf9e; overflow-wrap: anywhere; }
@media (max-width: 600px) { .overview-clock { padding: .9rem; } }

/* Journey preview uses a readable room viewport and a text-based eight-room map. */
.workday-preview .game-world-container { position: relative; overflow: hidden; }
.workday-preview .game-world { margin: 0; position: absolute; left: 0; top: 0; }
.workday-room { position: absolute; background: #1a2738; border: 3px solid #a4b4cc; box-sizing: border-box; }
.workday-room h3 { position: absolute; left: 8px; top: 2px; max-width: 370px; font-size: 12px; color: #fff; margin: 0; }
.workday-room p { margin: 100px 24px; font-size: 14px; }
.workday-door { position: absolute; background: #d17948; z-index: 3; }
.workday-door-open { background: #54d79c; outline: 2px dashed white; }
.workday-player { position: absolute; transform: translate(-50%,-50%); z-index: 8; min-width: 20px; height: 20px; border-radius: 50%; background: #9d6be5; border: 2px solid #fff; color: #fff; font-size: 10px; text-shadow: 0 1px 2px #000; text-align: center; }
.workday-self { background: #00896c; }
.workday-progress { padding: 12px; background: #152136; border: 1px solid #798da9; border-radius: 8px; overflow-wrap: anywhere; }
.workday-stage-list { padding-left: 22px; font-size: 12px; }
.workday-stage-list [aria-current] { font-weight: bold; text-decoration: underline; }
#workdayForm input { width: 100%; box-sizing: border-box; margin: 8px 0; }
#workdayForm button { margin: 4px; }
.workday-preview .workday-world { max-width: none; max-height: none; }
.workday-tools { padding: 12px; border: 1px solid #8195af; border-radius: 8px; background: #152136; overflow-wrap: anywhere; }
.workday-tools form { border-top: 1px solid #8195af; padding-top: 8px; margin-top: 8px; }
.workday-tools select, #workdayPMDialog select { width: 100%; color: #fff; background: #25364e; border: 1px solid #a4b4cc; border-radius: 4px; padding: 8px; margin: 5px 0 10px; }
#workdayPMDialog form { border-top: 1px solid #8195af; padding: 12px 0; }
#workdayPMDialog label { display: block; }
.workday-pm-agent { position: absolute; transform: translate(-50%,-50%); z-index: 9; width: 36px; height: 40px; border-radius: 50%; border: 2px solid white; background: #e2b44d; color: #142137; font-weight: bold; cursor: pointer; }
.workday-pm-agent:focus-visible { outline: 4px solid #fff; }
.workday-pm-desk { position: absolute; border: 2px solid #c1a27d; background: #473425; font-size: 10px; text-align: center; }
.workday-world .daily-card, .workday-world .daily-note, .workday-world .daily-mechanism { background: #e8edf5; color: #142137; border: 2px solid #7990b1; }
@media (max-width:768px) { .workday-pm-agent { width:44px; height:44px; } }

/* Keep the full contents readable and retain scrolling while the PM updates. */
.workday-preview .game-sidebar { min-width: 0; min-height: 0; overflow-y: auto; }
.workday-preview .game-sidebar > * { flex-shrink: 0; min-width: 0; }
.workday-preview .inventory-grid, .workday-preview .clues-list {
    display: flex; flex-direction: column; gap: .5rem; min-height: 0;
    max-height: clamp(12rem,30vh,22rem); overflow-y: auto; overflow-x: hidden;
    overscroll-behavior: contain; scrollbar-gutter: stable; padding-right: .3rem;
}
.workday-preview .daily-inventory-item { flex: 0 0 auto; box-sizing: border-box; max-width: 100%; min-width: 0; margin: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.workday-preview .inventory-grid:focus-visible, .workday-preview .clues-list:focus-visible { outline: 2px solid #f9d48b; outline-offset: 2px; }
@media (max-width:768px) {
    .workday-preview .game-main { height: calc(100dvh - 110px); min-height: 0; overflow-y: auto; }
    .workday-preview .game-sidebar { overflow-y: visible; }
}

:is(.workday-preview,.context-dialog) .workday-tray { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; margin-block: .8rem; padding-block: .5rem; border-bottom: 1px solid #ffffff33; }
:is(.workday-preview,.context-dialog) .workday-tray select { width: 100%; min-width: 0; padding: .5rem; }
:is(.workday-preview,.context-dialog) #workdayLunchOrders { overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) #workdayLunchOrders button { white-space: normal; margin-block: .25rem; }

:is(.workday-preview,.context-dialog) .daily-order { background-image: url('../../assets/images/computer.png'); background-size: contain; background-repeat: no-repeat; background-position: center; border: 0; background-color: transparent; }

:is(.workday-preview,.context-dialog) .workday-handover-row { display: grid; gap: .4rem; padding-block: .65rem; border-bottom: 1px solid #ffffff33; overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) .workday-handover-row select { width: 100%; min-width: 0; padding: .5rem; }
:is(.workday-preview,.context-dialog) .workday-handover-row button { white-space: normal; }
:is(.workday-preview,.context-dialog) #workdayHandoverPositions { overflow-wrap: anywhere; }

:is(.workday-preview,.context-dialog) .workday-translation-row { display: grid; gap: .4rem; padding-block: .65rem; border-bottom: 1px solid #ffffff33; overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) .workday-translation-row select, :is(.workday-preview,.context-dialog) #workdayTranslationCode { width: 100%; min-width: 0; padding: .5rem; }
:is(.workday-preview,.context-dialog) #workdayTranslation { overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) #workdayTranslation button { white-space: normal; }
:is(.workday-preview,.context-dialog) .translation-pair { margin-block: .5rem; padding-block: .4rem; border-bottom: 1px solid #ffffff33; }
:is(.workday-preview,.context-dialog) #workdayTranslationForm { display: grid; gap: .5rem; margin-block: .75rem; }

:is(.workday-preview,.context-dialog) .workday-publication-module { display: grid; gap: .4rem; padding-block: .7rem; border-bottom: 1px solid #ffffff33; overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) #workdayPublication button { white-space: normal; }
:is(.workday-preview,.context-dialog) #workdayPublication { overflow-wrap: anywhere; }

:is(.workday-preview,.context-dialog) #workdayAnnouncement { overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) #workdayAnnouncement select { width: 100%; min-width: 0; padding: .5rem; }
:is(.workday-preview,.context-dialog) #workdayAnnouncement button { white-space: normal; }
:is(.workday-preview,.context-dialog) .workday-announcement-row { display: grid; gap: .4rem; padding-block: .65rem; border-bottom: 1px solid #ffffff33; overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) #workdayFinale { overflow-wrap: anywhere; }
:is(.workday-preview,.context-dialog) #workdayFinale select, :is(.workday-preview,.context-dialog) #workdayFinale input { width:100%; min-width:0; padding:.5rem; }
:is(.workday-preview,.context-dialog) #workdayFinale button { white-space:normal; }
.confirmation-team { display:flex; align-items:center; gap:.6rem; margin-block:.7rem; overflow-wrap:anywhere; }
.confirmation-team input { width:auto; flex:0 0 auto; }
#organizerConfirmationTeams { max-height:40vh; overflow-y:auto; }
#organizerConfirmationForm { display:grid; gap:.6rem; }
#resultPhrase { font-size:1.25rem; font-weight:700; overflow-wrap:anywhere; }

/* WBI overview: the desktop reference uses the browser viewport, not Fullscreen. */
#menuScreen { padding: 14px 24px; }
#menuScreen .menu-container { height: 100%; padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; gap: 12px; }
.overview-heading { text-align: center; flex: none; }
.overview-heading .main-title { font-size: clamp(1.4rem,2vw,2rem); margin: 0 0 4px; }
.overview-heading p { color: #bdcddd; font-size: .9rem; }
.overview-layout { display: grid; grid-template-columns: minmax(0,.34fr) minmax(0,.66fr); gap: 20px; flex: 1; min-height: 0; }
.overview-profile { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; min-height: 0; padding: 0 8px; }
.overview-profile .overview-clock { margin: 0; padding: 8px; }
.overview-clock h2, .game-tips h2 { font-size: 1rem; margin: 0 0 6px; }
.overview-profile .overview-clock p { margin: 2px 0; }
.overview-profile .overview-clock-value { font-size: 2.5rem; line-height: 1.05; }
.overview-profile .player-input { margin: 0; }
.overview-profile .player-input label { display: block; font-size: .95rem; margin-bottom: 6px; }
.overview-profile #playerName { max-width: none; text-align: left; padding: 10px 12px; border: 1px solid #71849b; }
.avatar-field { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.avatar-field > div { min-width: 0; flex: 1; }
.avatar-field input { width: 100%; max-width: none; font-size: .8rem; padding: 0; text-align: left; background: transparent; border: 0; }
#avatarPreview:empty { display: none; }
#avatarHelp { color: #becbd9; font-size: .78rem; margin: 8px 0 0; line-height: 1.4; }
#avatarError { color: #ffb6b6; font-size: .85rem; margin: 4px 0 0; }
#avatarError:empty { display: none; }
.overview-profile .selection-notice { margin: 0; font-size: .9rem; }
.game-tips { border-top: 1px solid #435064; padding-top: 10px; }
.game-tips ol { padding-left: 22px; font-size: .9rem; line-height: 1.45; }
.game-tips li { margin: 3px 0; }
.overview-layout .room-list-section { margin: 0; padding: 0; background: transparent; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.overview-layout #roomsTitle { font-size: 1rem; margin: 0 0 8px; }
.overview-layout .public-rooms { flex: 1; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(4,minmax(0,1fr)); gap: 8px; overflow: visible; }
.overview-layout .team-card { padding: 6px 10px; gap: 1px; margin: 0; border: 1px solid #415064; border-radius: 10px; background: #1b293a; }
.team-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.overview-layout .team-name { font-size: .92rem; line-height: 1.2; margin: 0; }
.overview-layout .team-count { font-size: .75rem; white-space: nowrap; color: #bdebe2; }
.team-participants { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px 6px; margin: 0; padding: 0; }
.team-participants li { min-width: 0; }
.team-participants .player-identity { font-size: .75rem; line-height: 1.15; gap: 4px; }
.team-participants .player-avatar { width: 16px; height: 16px; }
.team-empty { font-size: .8rem; color: #b8c7d9; grid-column: 1 / -1; }
.participant-offline { display: block; color: #ffd39c; font-size: .65rem; line-height: 1.1; }
.overview-layout .team-result, .overview-layout .team-result-status { font-size: .72rem; line-height: 1.2; margin: 0; }
.overview-layout .team-card .btn { padding: 4px 10px; min-height: 28px; font-size: .8rem; border-radius: 5px; }
.player-identity { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; vertical-align: middle; }
.identity-name { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.player-avatar { display: block; flex: 0 0 auto; width: 40px; height: 40px; max-width: 40px; max-height: 40px; object-fit: cover; border-radius: 50%; }
.chat-message-header .player-avatar { width: 24px; height: 24px; }
.workday-player { width: 26px; height: 26px; min-width: 0; border: 0; background: transparent; }
.workday-player > .player-identity, .game-world .player > .player-identity { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); flex-direction: column; gap: 2px; max-width: none; }
.workday-player .player-avatar { width: 26px; height: 26px; }
.workday-player .identity-name, .game-world .player .identity-name { font-size: 10px; line-height: 1.2; padding: 2px 4px; border-radius: 4px; background: #071321e6; white-space: nowrap; }
#connectionState { color: #c7f3e7; font-size: .75rem; white-space: nowrap; }
.lobby-container { max-width: 850px; margin: auto; }
.organizer-menu { max-height: calc(100dvh - 80px); overflow-y: auto; max-width: calc(100vw - 24px); }
:focus-visible { outline: 2px solid #88f4dc; outline-offset: 3px; }
@media (max-height: 700px), (max-width: 1199px) {
    #menuScreen .menu-container { height: auto; min-height: 100%; }
    .overview-layout { min-height: auto; }
    .overview-layout .public-rooms { grid-template-rows: repeat(4,minmax(140px,auto)); }
    .overview-profile { padding: 0; justify-content: start; }
}
@media (max-width: 1000px) {
    .overview-layout { grid-template-columns: minmax(0,1fr); }
    .overview-profile { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
    .overview-profile .overview-clock, .overview-profile .selection-notice { grid-column: 1 / -1; }
    .overview-profile .game-tips { grid-column: 2; grid-row: 2; }
}
@media (max-width: 600px) {
    #menuScreen { padding: 14px 12px; }
    .overview-profile { display: flex; gap: 14px; }
    .overview-layout .public-rooms { grid-template-columns: minmax(0,1fr); grid-template-rows: none; }
    .overview-layout .team-card { padding: 12px; }
    .overview-layout .team-name { font-size: 1rem; }
    .team-participants .player-identity { font-size: .85rem; }
    .team-participants .player-avatar { width: 32px; height: 32px; }
    .overview-layout .team-result, .overview-layout .team-result-status { font-size: .82rem; line-height: 1.4; }
    .overview-layout .team-card .btn { min-height: 36px; }
    .navbar { padding: 0 10px; }
    .company-logo { width: 120px; }
    .nav-right { gap: 6px; }
    .nav-right .nav-btn { padding: 8px 10px; }
    #connectionTools { display: block; }
    #connectionState { font-size: .65rem; }
    .game-header { flex-wrap: wrap; height: auto; gap: 6px; }
}

#enterEvent { width: 100%; margin-top: 10px; padding: 10px; font-size: .9rem; }
@media (max-width:1000px) { .team-participants { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Desktop game: one header, a room camera and four independently scrollable panels. */
#gameHeaderContext[hidden], #leaveGameBtn[hidden] { display:none !important; }
#gameHeaderContext { display:flex; flex:1; align-items:center; gap:20px; min-width:0; }
.in-game .navbar { gap:24px; height:auto; min-height:60px; padding:10px 20px; box-sizing:border-box; }
.in-game .nav-left { flex:none; }
.in-game .company-logo { width:145px; }
.in-game .nav-right { flex:none; }
#gameHeaderContext .timer { white-space:nowrap; font-variant-numeric:tabular-nums; font-size:21px; color:#7fe7ce; }
#gameHeaderContext .players-online { white-space:nowrap; }
#gameRoomCode { flex:1; min-width:0; overflow-wrap:anywhere; font-size:15px; line-height:1.35; }
#helpBtn { width:auto; min-width:64px; padding:0 8px; }
.in-game #gameScreen { top:var(--app-header-height,60px); padding:0; }
#gameScreen .game-main, #gameScreen.workday-preview .game-main { display:grid; grid-template-rows:minmax(0,1fr) 184px; height:100%; min-height:0; overflow:hidden; gap:10px; padding:10px 16px 14px; box-sizing:border-box; }
#gameScreen .game-world-container { min-width:0; min-height:0; height:auto; flex:initial; border:1px solid #41556b; border-radius:10px; background:radial-gradient(ellipse,#23344b,#101b2b); }
#cameraFrame { position:absolute; overflow:hidden; }
#gameScreen .game-dock { display:grid; grid-template-columns:minmax(130px,.65fr) minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1.65fr); gap:10px; min-height:0; min-width:0; }
.game-dock > * { margin:0; min-width:0; min-height:0; padding:12px; border:1px solid #41556b; border-radius:10px; background:#142034; display:flex; flex-direction:column; overflow:hidden; }
.game-dock h4 { flex:none; margin:0 0 8px; color:#80ddd1; font-size:14px; }
.game-dock .team-clock-panel { overflow-y:auto; }
.game-dock .team-clock-panel p { font-size:14px; }
.game-dock #teamScore { display:block; font-size:36px; line-height:1.1; color:#fff; font-variant-numeric:tabular-nums; }
#gameScreen .inventory-grid, #gameScreen .clues-list, #gameScreen .chat-messages { display:flex; flex-direction:column; flex:1; min-height:0; max-height:none; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; font-size:13px; gap:6px; }
.game-dock .daily-inventory-item { padding:6px; font-size:13px; }
.game-dock .chat-input-group { flex:none; display:flex; min-width:0; gap:5px; }
.game-dock #chatInput { min-width:0; width:100%; font-size:14px; }
.game-dock #sendChatBtn { min-width:40px; }
.game-dock .chat-message { font-size:13px; overflow-wrap:anywhere; }
#workdayProgress { position:absolute; top:6px; left:50%; transform:translateX(-50%); z-index:15; pointer-events:none; padding:4px 12px; max-width:85%; font-size:13px; background:#101b2be8; }
#pmNotice { position:absolute; bottom:8px; left:8px; right:8px; z-index:20; background:#342d18f5; border:1px solid #e9c26e; border-radius:8px; padding:8px 12px; font-size:13px; max-height:45%; overflow:auto; }
#pmNotice[hidden] { display:none; }
#pmNotice p { margin:0 0 4px; }
#pmBlockTime { font-variant-numeric:tabular-nums; }
.workday-world .daily-object-label, .workday-world .workday-pm-desk, .workday-world .workday-pm-agent, .workday-world .identity-name { font-size:var(--map-label-size,10px); }
.workday-world .workday-room h3 { font-size:var(--map-title-size,12px); }
.workday-world .player-avatar { width:var(--map-avatar-size,26px); height:var(--map-avatar-size,26px); max-width:none; max-height:none; border-radius:50%; object-fit:cover; }
.workday-world .workday-player { height:var(--map-avatar-size,26px); min-width:var(--map-avatar-size,26px); }
.workday-world .player-identity { max-width:none; }
.workday-world .identity-name { max-width:110px; overflow-wrap:anywhere; }
.context-dialog { width:min(650px,calc(100% - 32px)); }
.context-dialog .workday-tools { border:0; padding:0; }
.context-dialog h4 { margin:8px 0; }
.context-dialog, #workdayDialog, #workdayPMDialog { max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box; font-size:16px; }
.context-dialog input, .context-dialog select, .context-dialog button { font-size:16px; }
.context-close { margin-top:16px; }
.team-hint { padding:7px; border-left:3px solid #e9c26e; color:#f7dfa8; }
#gameWorld:focus-visible, .game-dock :focus-visible { outline:2px solid #f9d48b; outline-offset:2px; }
@media(max-width:1100px) {
 .in-game .navbar { flex-wrap:wrap; gap:8px 14px; }
 #gameHeaderContext { gap:12px; }
 .in-game .nav-right { margin-left:auto; }
 #gameScreen .game-dock { grid-template-columns:140px 1fr 1fr 1.3fr; }
}
@media(max-width:800px), (max-height:520px) {
 .in-game .navbar { padding:8px 10px; }
 #gameHeaderContext { flex-wrap:wrap; }
 #gameRoomCode { flex-basis:130px; }
 .in-game .company-logo { width:105px; }
 #gameScreen .game-main, #gameScreen.workday-preview .game-main { display:flex; flex-direction:column; overflow-y:auto; padding:8px; gap:8px; }
 #gameScreen .game-world-container { flex:none; height:340px; min-height:300px; }
 #gameScreen .game-dock { display:grid; grid-template-columns:1fr 1fr; flex:none; }
 .game-dock > * { height:200px; }
 #gameScreen .mobile-controls { display:flex; position:absolute; bottom:8px; left:8px; right:8px; width:auto; pointer-events:none; }
 .mobile-controls button { pointer-events:auto; }
 #pmNotice { bottom:105px; }
}
@media(max-width:480px) {
 #gameHeaderContext { order:3; flex-basis:100%; }
 #gameHeaderContext .timer { font-size:18px; }
 #gameRoomCode { font-size:13px; }
 #gameScreen .game-dock { grid-template-columns:1fr; }
 .game-dock > * { height:190px; }
 .game-dock .team-clock-panel { height:120px; }
 #gameScreen .game-world-container { height:310px; }
}
/* Touch controls keep their targets usable after the sidebar is removed. */
#gameScreen .mobile-controls { display:none; }
@media(max-width:800px), (max-height:520px) {
 #gameScreen .mobile-controls { display:flex; justify-content:space-between; align-items:end; z-index:25; }
 .d-pad { display:grid; grid-template-columns:repeat(3,36px); grid-template-rows:repeat(2,36px); gap:3px; }
 .d-up { grid-column:2; grid-row:1; } .d-left { grid-column:1; grid-row:2; } .d-down { grid-column:2; grid-row:2; } .d-right { grid-column:3; grid-row:2; }
 .d-btn, .action-btn { background:#17364de8; border:1px solid #9bdcd7; border-radius:7px; color:#fff; min-width:36px; min-height:36px; font-size:16px; touch-action:none; }
 .action-buttons { display:flex; gap:5px; }
 .action-btn { min-width:54px; padding:5px; }
 .action-btn small { font-size:10px; }
}

.context-dialog, #workdayDialog, #workdayPMDialog { margin:auto; }
.context-dialog > .workday-progress { border:0; padding:0; background:transparent; }
.context-dialog select { width:100%; min-width:0; color:#fff; background:#25364e; border:1px solid #a4b4cc; border-radius:4px; padding:8px; }
.context-dialog button { white-space:normal; }

/* Crisp vector furnishings: no enlarged bitmap screens or generic blank blocks. */
.workday-world .daily-object { background-color:transparent; background-repeat:no-repeat; background-position:center; background-size:100% 100%; border:0; border-radius:0; box-shadow:none; }
.workday-world .daily-desk { background-image:url('../../assets/images/daily-desk.svg'); }
.workday-world .daily-coffee { background-image:url('../../assets/images/daily-coffee.svg'); }
.workday-world .daily-card { background-image:url('../../assets/images/workday-card.svg'); }
.workday-world .daily-note { background-image:url('../../assets/images/workday-note.svg'); }
.workday-world .daily-mechanism, .workday-world .daily-order { background-image:url('../../assets/images/workday-terminal.svg'); }
.workday-world #task-board, .workday-world #handover-panel, .workday-world #announcement-panel, .workday-world #final-panel { background-image:url('../../assets/images/workday-board.svg'); }
.workday-world #lunch-call { background-image:url('../../assets/images/workday-call.svg'); }
.workday-world .daily-object:disabled { opacity:1; cursor:default; }
.workday-world .daily-object:focus-visible { outline:2px solid #f9d48b; outline-offset:3px; }
.workday-room { background-color:#233547; background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px); background-size:24px 24px; border-color:#899eac; box-shadow:inset 0 0 0 3px #102331; }
.workday-room:nth-child(even) { background-color:#293a47; }
#gameScreen .inventory-grid, #gameScreen .clues-list { flex-direction:row; flex-wrap:wrap; align-content:flex-start; align-items:flex-start; gap:6px; }
#gameScreen .inventory-chip { flex:0 0 auto; width:fit-content; max-width:100%; min-width:0; margin:0; padding:5px 9px; border:1px solid #58768c; border-radius:8px; background:#233c50; color:#f0f6fb; font-size:13px; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
#gameScreen .inventory-chip summary { cursor:pointer; }
#gameScreen .inventory-chip summary:focus-visible { outline:2px solid #f9d48b; outline-offset:2px; }
#gameScreen .inventory-chip[open] { flex-basis:100%; }
#gameScreen .inventory-chip p { margin:8px 0 2px; line-height:1.5; }
#gameScreen .team-hint.inventory-chip { border-color:#b79853; background:#352f20; color:#ffe4ac; }
.workday-world #board-circle::before, .workday-world #board-square::before, .workday-world #board-triangle::before { content:''; position:absolute; right:14%; top:38%; width:10px; height:10px; border:2px solid #426e68; pointer-events:none; }
.workday-world #board-circle::before { border-radius:50%; }
.workday-world #board-triangle::before { width:0; height:0; border:0; border-left:6px solid transparent; border-right:6px solid transparent; border-bottom:11px solid #426e68; }

/* A centered reading column and clear action row for contextual conversations. */
.context-dialog, #workdayDialog, #workdayPMDialog { padding:clamp(20px,3vw,32px); }
.context-dialog h2, #workdayDialog h2, #workdayPMDialog h2,
.context-dialog > section > h4, #workdaySpeech, #workdayPMSpeech,
#workdayPMStatus, .dialog-intro { text-align:center; }
.context-dialog > section, #workdayForm, #workdayReport, #workdayCustody, #workdayDailyRecovery { width:100%; max-width:480px; margin-inline:auto; }
.context-dialog > section > p { text-align:center; }
#workdaySpeech, #workdayPMSpeech { margin:16px auto 22px; max-width:44ch; line-height:1.65; }
#workdayForm label, #workdayReport label, #workdayCustody label { text-align:left; }
.dialog-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:18px; }
#workdayForm .dialog-actions button { margin:0; }
.context-close, #workdayPMClose { display:block; margin:22px auto 0; }
#workdayReport > button, #workdayCustody > button { display:block; margin:16px auto 0; }
#workdayPMStatus { color:#b8ccd8; font-size:13px; }
#workdayTools { padding:0; border:0; background:none; }
#workdayDailyRecovery { margin-top:24px; padding-top:20px; border-top:1px solid #ffffff26; }
#workdayCustody h3 { text-align:center; font-size:17px; margin-bottom:10px; }
#workdayCustody > p { text-align:center; line-height:1.6; margin-bottom:18px; }
#workdayPMError:empty, #workdayError:empty { display:none; }
.result-dialog { margin:auto; }
.organizer-dialog h2 { text-align:center; }
.organizer-actions { justify-content:center; }
#workdayDailyRecovery select { width:100%; min-width:0; padding:10px; color:#fff; background:#25364e; border:1px solid #a4b4cc; border-radius:5px; font:inherit; }
#workdayError, #workdayPMError { text-align:center; }

/* Keep the world crisp across native dialog compositing; no backdrop blur. */
.in-game .navbar, .daily-dialog::backdrop { backdrop-filter:none; -webkit-backdrop-filter:none; }
.daily-dialog::backdrop { background:#020a1459; }
#boardWindow[open] { display:flex; flex-direction:column; gap:12px; width:min(850px,calc(100% - 24px)); height:min(690px,calc(100dvh - 24px)); padding:20px; overflow:hidden; }
#boardWindow > h2 { flex:none; font-size:22px; }
#boardWindow #workdayBoard { display:flex; flex-direction:column; gap:12px; flex:1; min-height:0; width:100%; max-width:none; }
#boardWindow .board-intro { margin:0; font-size:14px; line-height:1.5; text-align:left; }
#workdayBoardScroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:2px 8px 2px 2px; scrollbar-gutter:stable; }
#workdayBoardSlots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:20px; }
#workdayBoardSlots article { padding:12px; border:1px solid #5c7b8e; border-top:3px solid #7ecabc; border-radius:8px; background:#203747; min-width:0; }
#workdayBoardSlots h3, #workdayBoardScroll > h3 { font-size:15px; margin:0 0 8px; }
#workdayBoardSlots p { font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
#workdayBoardRows form { max-width:none; padding:12px; margin:8px 0; border:1px solid #456174; border-radius:8px; background:#172d3d; }
#workdayBoardRows h4 { font-size:15px; margin:0 0 5px; }
#workdayBoardRows p { font-size:14px; line-height:1.5; margin:0 0 10px; }
.board-card-controls { display:grid; grid-template-columns:auto minmax(130px,1fr) auto; gap:8px; align-items:center; }
#workdayBoardRows select { margin:0; padding:8px; font-size:14px; }
#workdayBoardRows label { margin:0; font-size:13px; }
#boardWindow button { width:auto; min-width:0; padding:8px 14px; margin:0; font-size:14px; line-height:1.3; letter-spacing:0; text-transform:none; }
#boardWindow .context-close { align-self:center; flex:none; }
.board-footer { flex:none; display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:10px; border-top:1px solid #486273; }
#workdayBoardNotice { margin:0; font-size:13px; line-height:1.45; }
#pmReplyForm { display:grid; grid-template-columns:1fr auto; gap:6px 10px; margin-top:10px; }
#pmReplyForm label, #pmReplyFeedback { grid-column:1/-1; font-size:13px; }
#pmReplyInput { min-width:0; padding:8px; color:#fff; background:#192b37; border:1px solid #b79853; border-radius:5px; font:inherit; }
#pmReplySubmit { padding:8px 12px; min-width:0; width:auto; font-size:13px; text-transform:none; letter-spacing:0; }
#pmReplyFeedback:empty { display:none; }
@media(max-width:600px) {
 #boardWindow[open] { padding:14px; }
 #workdayBoardSlots { grid-template-columns:1fr; gap:6px; }
 #workdayBoardSlots article { padding:8px 10px; }
 .board-card-controls { grid-template-columns:1fr; }
 .board-footer { flex-direction:column; align-items:stretch; }
 #pmReplyForm { grid-template-columns:1fr; }
}
.workday-preview .workday-world { border:0; }

/* Lunch: each private/shared order stays beside the tray it describes. */
#lunchWindow[open] { display:flex; flex-direction:column; gap:12px; width:min(960px,calc(100% - 24px)); height:min(730px,calc(100dvh - 24px)); padding:20px; overflow:hidden; }
#lunchWindow > h2 { flex:none; font-size:22px; }
#lunchWindow #workdayLunch { display:flex; flex-direction:column; gap:12px; flex:1; min-height:0; max-width:none; }
#lunchWindow .lunch-intro { margin:0; font-size:14px; line-height:1.5; text-align:left; }
#workdayLunchOrders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; align-content:start; padding:2px 8px 2px 2px; }
#lunchWindow .workday-tray { display:flex; flex-direction:column; gap:10px; min-width:0; max-width:none; margin:0; padding:12px; border:1px solid #4a6b80; border-radius:9px; background:#172e3e; }
.lunch-seat-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; }
.lunch-seat-header h3 { font-size:16px; margin:0; }
.lunch-order-state { font-size:12px; padding:3px 7px; border-radius:5px; color:#bce5dd; background:#234539; }
#lunchWindow .lunch-order-text { text-align:left; font-size:14px; line-height:1.5; margin:0; min-height:42px; }
.lunch-choices { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#lunchWindow label { font-size:13px; margin:0 0 5px; text-align:left; }
#lunchWindow select { margin:0; padding:8px; font-size:14px; }
.lunch-seat-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
#lunchWindow .lunch-tray-status { font-size:12px; line-height:1.4; color:#c2d6e2; margin:0; }
#lunchWindow button { width:auto; min-width:0; padding:8px 12px; margin:0; font-size:14px; line-height:1.3; letter-spacing:0; text-transform:none; }
#lunchWindow .workday-tray > button { align-self:start; }
.lunch-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex:none; padding-top:10px; border-top:1px solid #486273; }
#workdayLunchProgress { font-size:13px; font-weight:600; margin:0 0 5px; }
#workdayLunchNotice { font-size:13px; line-height:1.4; margin:0; }
#lunchWindow .context-close { align-self:center; flex:none; }
@media(max-width:650px) {
 #lunchWindow[open] { padding:14px; }
 #workdayLunchOrders { grid-template-columns:1fr; }
 .lunch-footer { flex-direction:column; align-items:stretch; }
}
#lunchWindow .workday-tray[data-save-state='saved'] { border-color:#5a9f8e; }
#lunchWindow .workday-tray[data-save-state='dirty'] { border-color:#bda35d; }
#lunchWindow button:disabled { opacity:.45; cursor:not-allowed; }
.lunch-order-state[data-sharing='private'] { background:#294559; color:#c0e2f8; }
.lunch-order-state[data-sharing='pending'] { background:#403b2b; color:#efdfad; }

/* R5: request, matching workspace and code are separate steps. */
#translationWindow[open] { display:flex; flex-direction:column; gap:12px; width:min(1020px,calc(100% - 24px)); height:min(740px,calc(100dvh - 24px)); padding:20px; overflow:hidden; }
#translationWindow > h2 { flex:none; font-size:22px; }
#translationWindow #workdayTranslation { display:flex; flex-direction:column; gap:10px; flex:1; min-height:0; max-width:none; }
#translationWindow .translation-intro { margin:0; font-size:14px; line-height:1.5; text-align:left; }
#workdayTranslationScroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; padding:2px 8px 2px 2px; }
#workdayTranslationScroll > h3, #workdayTranslationRows > h3 { font-size:16px; margin:12px 0 10px; }
#workdayTranslationPrompt { margin:0 0 10px; padding:10px 12px; border-left:3px solid #77d4c0; background:#1f3a49; font-size:14px; line-height:1.5; }
#workdayTranslationReference { margin:8px 0 18px; padding:8px 12px; border:1px solid #567486; border-radius:6px; font-size:14px; }
#workdayTranslationReference summary, #translationPlaced > summary { cursor:pointer; }
#workdayTranslationGlossary { margin:10px 0 0; }
#workdayTranslationPairs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
#translationWindow .translation-pair { margin:0; padding:12px; border:1px solid #567486; border-radius:8px; background:#1c3444; }
#translationWindow .translation-pair h3 { margin:0 0 12px; font-size:15px; }
.translation-kind { display:block; font-size:12px; color:#a9c6d9; margin-bottom:4px; }
#translationWindow .translation-pair p { margin:0 0 12px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
#translationPendingRows, #translationPlaced > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
#translationWindow .workday-translation-row { max-width:none; margin:0; padding:12px; border:1px solid #456174; border-radius:8px; background:#172e3e; }
.workday-translation-row h3 { font-size:14px; margin:0 0 8px; color:#b9e2d9; }
#translationWindow .workday-translation-row p { font-size:14px; line-height:1.5; margin:0 0 10px; }
.translation-item-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 8px; }
.translation-item-actions label { grid-column:1/-1; }
#translationWindow label { font-size:13px; margin:0; text-align:left; }
#translationWindow select { margin:0; min-width:0; padding:8px; font-size:14px; }
#translationPlaced { margin-top:14px; border-top:1px solid #476272; padding-top:12px; }
#translationPlaced > summary { font-size:14px; padding-bottom:12px; }
.translation-empty { color:#b7cdd9; font-size:14px; line-height:1.5; }
.translation-item-feedback:empty { display:none; }
.translation-footer { flex:none; border-top:1px solid #486273; padding-top:10px; }
#workdayTranslationProgress { margin:0 0 8px; font-size:13px; font-weight:600; }
#translationWindow #workdayTranslationForm { max-width:none; margin:0; padding:0; border:0; gap:6px; }
.translation-code-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
#translationWindow #workdayTranslationCode { margin:0; padding:9px; font-size:16px; }
#translationWindow #workdayTranslationNotice { margin:8px 0 0; font-size:13px; line-height:1.4; }
#translationWindow button { width:auto; min-width:0; padding:8px 12px; margin:0; font-size:14px; line-height:1.3; letter-spacing:0; text-transform:none; }
#translationWindow button:disabled { opacity:.45; cursor:not-allowed; }
#translationWindow .context-close { flex:none; align-self:center; }
@media(max-width:650px) {
 #translationWindow[open] { padding:14px; }
 #workdayTranslationPairs, #translationPendingRows, #translationPlaced > div { grid-template-columns:1fr; }
 .translation-code-actions { grid-template-columns:1fr; }
}
.translation-workspace { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr); gap:16px; align-items:start; }
#translationWindow .translation-workspace #workdayTranslationPairs,
#translationWindow #translationPendingRows, #translationWindow #translationPlaced > div { grid-template-columns:1fr; }
.translation-preview > h3, #translationWindow .translation-workspace #workdayTranslationRows > h3 { font-size:15px; margin:0 0 10px; }
#translationWindow .translation-pair { padding:10px; }
#translationWindow .translation-pair h3 { font-size:14px; margin-bottom:8px; }
#translationWindow .translation-pair p { font-size:13px; margin-bottom:8px; }
@media(max-width:650px) { .translation-workspace { grid-template-columns:1fr; } }

/* R6: one object, one purpose; console controls never mix with module controls. */
#publicationWindow[open] { display:flex; flex-direction:column; gap:14px; width:min(640px,calc(100% - 24px)); max-height:calc(100dvh - 24px); padding:24px; overflow:hidden; }
#publicationWindow > h2 { flex:none; font-size:22px; }
#publicationWindow #workdayPublication { display:flex; flex-direction:column; gap:16px; min-height:0; max-width:none; }
#publicationBody { overflow:auto; max-height:55dvh; min-height:0; padding:2px 6px 2px 2px; overscroll-behavior:contain; scrollbar-gutter:stable; }
#publicationWindow .workday-publication-module { display:block; border:0; margin:0; padding:0; }
#publicationWindow h3 { font-size:16px; margin:12px 0 8px; }
.publication-module-state { display:inline-block; padding:4px 8px; margin:0; border-radius:5px; background:#433c2b; color:#eedfb1; font-size:13px; }
.publication-module-state[data-complete='true'] { background:#25453b; color:#b9e6d4; }
.publication-visibility { font-size:12px; color:#abc9dc; margin-bottom:8px; }
#publicationWindow .publication-condition { font-size:17px; line-height:1.65; margin:0; padding:14px; background:#203b4c; border-left:3px solid #6bc6b3; border-radius:5px; }
.publication-share { margin-top:18px; padding-top:12px; border-top:1px solid #476170; font-size:14px; }
.publication-share summary { cursor:pointer; }
.publication-share p { font-size:14px; line-height:1.5; margin:12px 0; }
#publicationConsole > h3 { margin-top:0; }
#publicationSummary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.publication-area { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; padding:12px; border:1px solid #4b687a; border-radius:7px; background:#1a3242; font-size:14px; }
.publication-area strong { font-size:12px; font-weight:500; color:#c3d1d9; }
.publication-area[data-complete='true'] strong { color:#9ee2c8; }
#workdayPublicationStatus { margin:16px 0 0; padding:12px; font-size:15px; line-height:1.55; background:#213847; border-radius:6px; }
.publication-footer { flex:none; display:flex; flex-direction:column; gap:10px; border-top:1px solid #476170; padding-top:12px; }
#publicationProgress { margin:0; text-align:center; font-size:13px; color:#bfd2de; }
#workdayPublicationNotice { margin:0; font-size:14px; line-height:1.5; color:#f5d4a2; }
#workdayPublicationNotice:empty { display:none; }
.publication-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
#publicationWindow button { width:auto; min-width:0; padding:9px 14px; margin:0; font-size:14px; line-height:1.3; letter-spacing:0; text-transform:none; }
#publicationWindow button:disabled { opacity:.45; cursor:not-allowed; }
#publicationWindow .context-close { flex:none; align-self:center; }
@media(max-width:450px) { #publicationWindow[open] { padding:16px; } .publication-area { padding:9px; } }

/* R4: shared conditions, editable activities and the agreed sequence have separate roles. */
#handoverWindow[open] { display:flex; flex-direction:column; gap:12px; width:min(1000px,calc(100% - 24px)); height:min(730px,calc(100dvh - 24px)); padding:20px; overflow:hidden; }
#handoverWindow > h2 { flex:none; font-size:22px; }
#handoverWindow #workdayHandover { display:flex; flex-direction:column; gap:12px; min-height:0; flex:1; max-width:none; }
#handoverWindow .handover-intro { margin:0; font-size:14px; line-height:1.5; text-align:left; }
#workdayHandoverScroll { flex:1; min-height:0; overflow:auto; padding:2px 8px 2px 2px; overscroll-behavior:contain; scrollbar-gutter:stable; }
#handoverRequest { margin-bottom:14px; padding:10px 12px; border:1px solid #526d7c; border-radius:6px; font-size:14px; }
#handoverRequest summary, #handoverPlacedActivities summary { cursor:pointer; }
#handoverRequest p { margin:10px 0 0; line-height:1.5; }
#workdayHandoverRows > h3 { margin:12px 0 10px; font-size:16px; }
#workdayHandoverRows > h3:first-child { margin-top:0; }
#handoverSharedConditions, #handoverPendingNotes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
#handoverSharedConditions article { padding:10px 12px; border-left:3px solid #6dc4b1; border-radius:5px; background:#203b4a; }
#handoverSharedConditions h4 { margin:0 0 6px; font-size:13px; color:#b8dcd3; }
#handoverSharedConditions p { margin:0; font-size:14px; line-height:1.5; }
#handoverPendingNotes { margin:10px 0 18px; }
.handover-workspace { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(240px,1fr); gap:16px; align-items:start; }
.handover-workspace h3 { margin:0 0 10px; font-size:15px; }
#handoverPendingActivities, #handoverPlacedActivities > div { display:grid; gap:10px; }
#handoverWindow .workday-handover-row { max-width:none; margin:0; padding:12px; border:1px solid #4b697b; border-radius:8px; background:#172e3e; }
#handoverWindow .workday-handover-row h4 { margin:0 0 8px; font-size:15px; }
#handoverWindow .workday-handover-row p { margin:0 0 10px; font-size:14px; line-height:1.5; }
.handover-item-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 8px; align-items:center; }
.handover-item-actions label { grid-column:1/-1; font-size:13px; margin:0; text-align:left; }
#handoverWindow select { min-width:0; margin:0; padding:8px; font-size:14px; }
#handoverPlacedActivities { margin-top:14px; padding-top:12px; border-top:1px solid #4b6472; }
#handoverPlacedActivities summary { padding-bottom:12px; font-size:14px; }
#workdayHandoverPositions { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
#workdayHandoverPositions li { display:flex; align-items:center; gap:10px; padding:12px; border:1px solid #4b697b; border-radius:7px; background:#203746; font-size:15px; }
.handover-step-number { flex:none; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#345568; font-size:13px; }
.handover-empty { margin:0 0 12px; font-size:14px; line-height:1.5; color:#b7cdd9; }
.handover-item-feedback:empty { display:none; }
.handover-footer { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; padding-top:10px; border-top:1px solid #486273; }
#workdayHandoverProgress { margin:0 0 6px; font-size:13px; font-weight:600; }
#workdayHandoverNotice { margin:0; font-size:13px; line-height:1.4; }
#handoverWindow button { width:auto; min-width:0; padding:8px 12px; margin:0; font-size:14px; line-height:1.3; letter-spacing:0; text-transform:none; }
#handoverWindow button:disabled { opacity:.45; cursor:not-allowed; }
#handoverWindow .context-close { flex:none; align-self:center; }
@media(max-width:650px) {
 #handoverWindow[open] { padding:14px; }
 #handoverSharedConditions, #handoverPendingNotes, .handover-workspace { grid-template-columns:1fr; }
 .handover-footer { flex-direction:column; align-items:stretch; }
}
.handover-condition-state { display:inline-block; font-size:12px; color:#d7d7bd; margin-bottom:8px; }
.handover-condition-state[data-shared='true'] { color:#a6e2cc; }
#handoverSharedConditions .workday-handover-row { padding:0; border:0; background:transparent; }
#handoverSharedConditions .handover-item-actions { display:flex; }

/* Shared puzzle manipulation: compact sources, visible destinations, native keyboard alternative. */
.placement-surface { min-width: 0; }
.placement-help { color: var(--text-secondary); font-size: 13px; margin: 0 0 12px; }
.placement-surface > h3 { font-size: 15px; margin: 10px 0; }
.placement-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.placement-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.placement-slot { min-width: 0; padding: 12px; border: 1px solid #526f80; border-radius: 9px; background: #1e3747; transition: border-color .12s, background .12s; }
.placement-slot h4 { margin: 0 0 8px; font-size: 14px; line-height: 1.45; color: #c3dcd9; }
.placement-slot .placement-empty { margin: 3px 0; }
.placement-item { display: block; padding: 10px 12px; max-width: 100%; border: 1px solid #769b9b; border-radius: 7px; background: #294c5e; color: #fff; font: inherit; font-size: 14px; text-align: left; line-height: 1.45; cursor: grab; overflow-wrap: anywhere; text-transform: none; letter-spacing: normal; }
.placement-contents .placement-item { width: 100%; }
.placement-item[aria-pressed="true"] { outline: 2px solid #98eee0; outline-offset: 2px; background: #38645d; }
.placement-item:disabled { opacity: .6; cursor: default; }
.placement-item:active { cursor: grabbing; }
.placement-item:focus-visible,.placement-destination:focus-visible { outline: 3px solid #98eee0; outline-offset: 2px; }
.placement-empty,.placement-feedback { color: var(--text-secondary); font-size: 13px; }
.placement-feedback:empty { display: none; }
.placement-destination { padding: 7px 10px; margin-top: 8px; border: 1px solid #84c6be; border-radius: 6px; background: #295c59; color: #fff; font-size: 13px; cursor: pointer; }
.placement-destination:disabled { opacity: .4; cursor: default; }
.placement-available { border-style: dashed; border-color: #98eee0; }
.placement-over { background: #356357; outline: 2px solid #98eee0; }
.placement-reveal { margin: 8px 0 0; font-weight: 700; letter-spacing: .08em; color: #98eee0; }
.placement-alternative { margin-top: 14px; border-top: 1px solid #526f80; padding-top: 10px; }
.placement-alternative > summary { font-size: 13px; cursor: pointer; color: #c3dcd9; }
.placement-alternative[open] > summary { margin-bottom: 12px; }
#workdayBoardScroll > .placement-surface .placement-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
#workdayTranslationScroll > .placement-surface .placement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#finaleWindow[open],#announcementWindow[open] { display: flex; flex-direction: column; width: min(1000px,calc(100vw - 24px)); height: min(730px,calc(100dvh - 24px)); padding: 20px; overflow: hidden; }
#workdayFinale,#workdayAnnouncement { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0; margin: 0; border: 0; background: none; }
.challenge-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 2px 6px 12px 2px; }
.challenge-footer { flex: none; border-top: 1px solid #526f80; padding-top: 10px; margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.challenge-footer p { margin: 0; font-size: 13px; flex: 1 1 65%; }
.challenge-footer p:empty { display: none; }
.challenge-footer .btn { font-size: 14px; padding: 8px 14px; text-transform: none; letter-spacing: normal; margin-left: auto; }
#finaleWindow .context-close,#announcementWindow .context-close { flex: none; margin: 12px auto 0; font-size: 14px; padding: 8px 14px; }
#finalDeliveryForm { display: block; padding: 0; margin: 0; border: 0; background: none; }
.final-joined { margin-top: 16px; max-width: 400px; }
.final-joined label { display: block; margin-bottom: 6px; font-size: 14px; }
.final-joined input { width: 100%; }
#workdayAnnouncementDecisionForm { padding: 12px; margin: 16px 0 0; }
#workdayAnnouncementDecisionForm button { font-size: 14px; padding: 8px 12px; text-transform: none; letter-spacing: normal; }
@media (max-width:650px) {
 .placement-grid,#workdayBoardScroll > .placement-surface .placement-grid { grid-template-columns: 1fr; }
 #finaleWindow[open],#announcementWindow[open] { padding: 14px; }
 .challenge-footer .btn { width: 100%; }
 #workdayTranslationScroll > .placement-surface .placement-grid { grid-template-columns: 1fr; }
}
#finaleWindow > #workdayFinale,#announcementWindow > #workdayAnnouncement { max-width: none; width: 100%; }
#finaleWindow > .context-close,#announcementWindow > .context-close { min-width: 0; width: auto; text-transform: none; letter-spacing: normal; }
#finalReceiptWorkspace .placement-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
#finalDeliveryForm .placement-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media(max-width:650px) {
 #finalReceiptWorkspace .placement-grid { grid-template-columns: 1fr; }
 #finalDeliveryForm .placement-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Keep placement targets still while selecting and make their full padding actionable. */
.placement-available { cursor: pointer; }
.placement-destination { min-height: 32px; }
#announcementWindow button { min-width: 0; width: auto; touch-action: manipulation; transition: background-color .12s,box-shadow .12s; }
#announcementWindow .placement-contents .placement-item { width: 100%; }

/* Scheduled story interruptions use a native top layer without closing the player's current window. */
#scheduledDisruption[open] { position:fixed; inset:0; margin:0; padding:0; width:100vw; height:100dvh; max-width:none; max-height:none; border:0; border-radius:0; display:grid; place-items:center; overflow:hidden; color:#fff; background:#000; }
#scheduledDisruption::backdrop { background:transparent; backdrop-filter:none; }
#scheduledDisruption[data-kind="reconnecting"] { background:transparent; }
.disruption-card { position:relative; z-index:1; text-align:center; padding:28px; max-width:min(480px,calc(100vw - 32px)); font-size:22px; line-height:1.5; }
.disruption-card p { margin:0; }
[data-kind="reconnecting"] .disruption-card { background:#182a40; border:1px solid #bba179; border-radius:14px; box-shadow:0 10px 40px #0008; font-size:18px; }
.disruption-spinner { display:none; width:36px; height:36px; margin:0 auto 18px; border:4px solid #ffffff40; border-top-color:#8aebdb; border-radius:50%; animation:disruption-spin 1s linear infinite; }
[data-kind="reconnecting"] .disruption-spinner { display:block; }
.disruption-beam { position:absolute; top:0; left:0; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,#ffffe066 0,#ffffdb22 35%,transparent 70%); animation:disruption-sweep 15s linear both; pointer-events:none; }
[data-kind="reconnecting"] .disruption-beam { display:none; }
@keyframes disruption-spin { to { transform:rotate(360deg); } }
@keyframes disruption-sweep { 0% { transform:translate(5vw,55vh); } 25% { transform:translate(65vw,10vh); } 50% { transform:translate(35vw,65vh); } 75% { transform:translate(70vw,40vh); } 100% { transform:translate(10vw,15vh); } }
@media(prefers-reduced-motion:reduce) { .disruption-beam { animation:none; transform:translate(30vw,30vh); } .disruption-spinner { animation-duration:3s; } }

body.scene-paused :is(#gameScreen,.context-dialog,#workdayDialog,#workdayPMDialog) * { animation-play-state:paused !important; transition:none !important; }

/* Resulting destination for the altered floor-click controls; never an interaction target. */
.movement-destination { position:absolute; z-index:13; width:14px; height:14px; border:2px solid #9dffed; border-radius:50%; background:#133e4380; box-shadow:0 0 0 4px #9dffed30; transform:translate(-50%,-50%); pointer-events:none; }
