body {
    margin: 0;
    overflow: hidden;
    background: #000;
    font-family: Arial;
}

a-scene {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* Top Controls */
#top-controls {
    position: fixed;
    top: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 1000;
}

/* Control button wrapper — icon + label stacked */
.control-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.control-btn-wrap .btn-label {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    font-family: Arial, sans-serif;
    user-select: none;
}

/* L3 — Light frosted white, pure white icon */
.control-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.45);
}

.control-btn:active {
    transform: scale(0.92);
}

/* SVG icons — pure white stroke */
.control-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Label under icon */
.control-btn-wrap .btn-label {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Bottom Carousel */
#ui-layer {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

#carousel-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    max-width: 95%;
}

.dish-btn {
    min-width: 80px;
    max-width: 80px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    color: white;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.dish-btn:active {
    transform: scale(0.95);
}

.dish-btn .thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
    background: #333;
}

.dish-btn .thumb-placeholder {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.1);
}

.dish-btn .dish-label {
    padding: 6px 6px 4px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dish-btn .dish-price-label {
    padding: 0 6px 7px;
    font-size: 0.65rem;
    opacity: 0.75;
}

.active {
    border-color: white !important;
    background: rgba(255, 255, 255, 0.25) !important;
}

/* ── HINT BUBBLE ── */
#hint-bubble {
    position: fixed;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 10px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.3);
    transform-origin: top right;
}

#hint-bubble.phase-expand {
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: scale(1);
}

#hint-bubble.phase-shrink {
    transition: opacity 0.3s ease 0.1s, transform 0.4s cubic-bezier(0.55, 0, 1, 0.45);
    opacity: 0;
    transform: scale(0.3);
}

/* ── AR LOADER ── */
#ar-loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 500;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

#ar-loader.hidden {
    opacity: 0;
}

#loader-text {
    font-family: 'Space Grotesk', Inter, sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #6C63FF;
    letter-spacing: 1px;
    margin-top: 14px;
}

#loader-text span {
    color: #FF6584;
}

#loader-sub {
    font-family: Inter, sans-serif;
    font-size: 11px;
    color: #6C63FF;
    opacity: 0.6;
    letter-spacing: 3px;
    margin-top: 4px;
}
