/* Simulação do JJDB-01: moldura real por cima, luzes e tela por trás dos
   recortes. Dentro da tela valem as cores do JJManager, não as do site. */

.dd-description {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--jj-muted, rgba(226, 238, 242, 0.6));
}

.dd-stage {
    max-width: 980px;
    margin: 0 auto;
}

.dd-device {
    position: relative;
    width: 100%;
    user-select: none;
}

.dd-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.55));
}

/* Filete difusor do topo: os 8 LEDs atrás dele se misturam. O degradê é
   gerado pelo script e imita o material real (exceção do DESIGN.md). */
.dd-lightbar {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    background: #ECECEC;
}

.dd-led {
    position: absolute;
    z-index: 1;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.15);
    background: #ECECEC;
}

/* ── Tela: 800 x 480 px reais, esticada para o recorte ─────────── */

.dd-screen {
    position: absolute;
    z-index: 1;
    overflow: hidden;
    background: #171717;
    touch-action: manipulation; /* dois toques não dão zoom */
    cursor: pointer;
}

.dd-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 800px;
    height: 480px;
    transform-origin: 0 0;
    background: #171717;
    color: #fff;
}

.dd-page {
    position: absolute;
    inset: 0;
    display: none;
}

.dd-page.is-active {
    display: block;
}

.dd-abs {
    position: absolute;
    box-sizing: border-box;
}

.dd-card {
    background: #1e1e1e;
}

/* Fontes do aparelho: Inter nas legendas gravadas, Arial 24 nos campos
   Unicode e Consolas meia largura nos tamanhos de destaque. */
.dd-inter {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    white-space: nowrap;
    line-height: 1;
}

.dd-arial {
    font-family: Arial, "Liberation Sans", sans-serif;
    white-space: nowrap;
    line-height: 1;
}

.dd-mono {
    font-family: Consolas, "Cascadia Mono", "Liberation Mono", monospace;
    white-space: nowrap;
    line-height: 1;
}

.dd-text {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.dd-text > span {
    display: inline-block;
}

/* ── Controles ────────────────────────────────────────────────── */

.dd-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.dd-nav {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--jj-border, rgba(0, 216, 255, 0.2));
    background: transparent;
    color: var(--jj-text, #e2eef2);
}

.dd-nav svg {
    width: 18px;
    height: 18px;
}

.dd-nav:hover {
    border-color: var(--jj-accent, #00D8FF);
    color: #fff;
}

.dd-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.dd-tab {
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--jj-border, rgba(0, 216, 255, 0.2));
    background: transparent;
    color: var(--jj-muted, rgba(226, 238, 242, 0.6));
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dd-tab:hover {
    color: #fff;
    border-color: var(--jj-border-strong, rgba(0, 216, 255, 0.45));
}

.dd-tab.is-active {
    background: var(--jj-accent, #00D8FF);
    border-color: var(--jj-accent, #00D8FF);
    color: #09090f;
}

.dd-nav:focus-visible,
.dd-tab:focus-visible {
    outline: 2px solid var(--jj-accent, #00D8FF);
    outline-offset: 2px;
}

.dd-hint,
.dd-note {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--jj-muted, rgba(226, 238, 242, 0.6));
    text-align: center;
}
