:root {
    --bg: #0d1117;
    --surface: #161b22;
    --text: #e6edf3;
    --text-secondary: #9ba7b4;
    --accent: #58a6ff;
    --border: rgba(255,255,255,0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

#overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at center, rgba(88,166,255,0.12), rgba(13,17,23,0.96));
}

.overlay-card {
    width: min(100%, 620px);
    padding: 36px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(22, 27, 34, 0.92);
    backdrop-filter: blur(14px);
}

.eyebrow {
    margin: 0 0 12px 0;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1 {
    margin: 0 0 16px 0;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
}

p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.overlay-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 28px 0 18px 0;
}

.button {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
}

.button-primary {
    background: var(--accent);
    color: #08111b;
    border: none;
}

.button-secondary {
    background: transparent;
    color: var(--text);
}

.note {
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

#backButtonContainer {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 20;
}

#backButton {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(22, 27, 34, 0.92);
    border: 1px solid rgba(255,255,255,0.08);
    color: #e6edf3;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: 0.2s ease;
}

#backButton:hover {
    background: rgba(31, 38, 48, 0.96);
}

a-scene {
    width: 100%;
    height: 100%;
}
