body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#status {
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 250;
}

/* Game Selection Interface */
#gameSelectionPanel {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

#gameSelectionPanel h2 {
    margin-top: 0;
    text-align: center;
    color: #9d4edd;
}

.game-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.game-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.game-option.selected {
    border-color: #9d4edd;
    background: rgba(76, 175, 80, 0.2);
}

.game-option.disabled {
    opacity: 0.6;
    cursor: default;
}

.game-option.disabled:hover {
    transform: none;
}

.game-icon {
    width: 50px;
    height: 50px;
    background: #9d4edd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.game-icon.disabled {
    background: #666;
}

.game-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.game-info p {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

.game-meta {
    margin-left: auto;
    text-align: right;
    font-size: 12px;
    color: #999;
}

.coming-soon {
    color: #ff9800;
    font-weight: bold;
    font-size: 10px;
}

button {
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background: #9d4EDD;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    background: #7b2cbf;
    transform: translateY(-1px);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

#endButton {
    background: #f44336;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
}

#endButton:hover {
    background: #da190b;
}

/* Hidden state for AR session */
.ar-active #gameSelectionPanel,
.ar-active #brandHeader  {
    display: none;
}

/* AR Exit Button Styles */
.ar-exit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(244, 67, 54, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 200;
    pointer-events: auto;
}

.ar-exit-button:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

.ar-active .ar-exit-button {
    display: flex;
}

/* Loading indicator */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Debug panel */
#debugPanel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    max-width: 300px;
    display: none;
}

#debugToggle {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 5px 10px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.1);
}
/* StrataXR Branded Header */
#brandHeader {
    background: linear-gradient(135deg, #240046 0%, #10002B 100%); 
}

#logoContainer {
    display: flex;
    align-items: center;
    gap: 15px;
}

#logoPlaceholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9D4EDD, #C77DFF);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.5);
}

#brandInfo h1 {
    margin: 0;
    font-size: 32px;
    color: #C77DFF;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(199, 125, 255, 0.5);
}

#brandInfo .tagline {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: #E0AAFF;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 1px;
}