/* THE DICE — HUD layout with 3D scene in center */

.the-dice-page .feed-main,
.the-web-page .feed-main {
    padding: 0;
    min-height: 100vh;
}

.the-dice-page .feed-layout,
.the-web-page .feed-layout {
    flex: 1;
    min-height: calc(100vh - 80px);
}

/* HUD wrapper: fills content area, contains center + overlay panels */
.dice-hud {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - 80px - env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    background: #000;
}

/* Center: 3D embed fills available space */
.dice-hud-center {
    flex: 1;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
    background: #000;
}

/* HUD overlays — positioned around the center */
.dice-hud-top,
.dice-hud-bottom,
.dice-hud-left,
.dice-hud-right {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

.dice-hud-top {
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.dice-hud-title {
    font-family: 'Heliosext', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    color: #fff;
    margin: 0 0 0.15rem 0;
}

.dice-hud-subtitle {
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.dice-hud-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dice-hud-status {
    font-family: 'Hudson', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
}

.dice-hud-actions {
    display: flex;
    gap: 1rem;
}

.dice-hud-action {
    font-family: 'Hudson', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dice-hud-action i {
    font-size: 0.75rem;
}

.dice-hud-left {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.dice-hud-right {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.dice-hud-panel {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.dice-hud-panel-label {
    font-family: 'Hudson', sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

.dice-hud-panel-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Desktop: account for left nav so HUD doesn't sit under it */
@media (min-width: 1024px) {
    .the-dice-page .dice-hud,
    .the-web-page .dice-hud {
        margin-left: 0;
    }
}

/* Mobile: full width, HUD panels a bit smaller */
@media (max-width: 768px) {
    .dice-hud-top {
        padding: 0.75rem 1rem;
    }
    .dice-hud-title {
        font-size: 1rem;
    }
    .dice-hud-subtitle {
        font-size: 0.65rem;
    }
    .dice-hud-bottom {
        padding: 0.75rem 1rem;
    }
    .dice-hud-left,
    .dice-hud-right {
        display: none;
    }
}
