/**
 * VIFPROTECT – Faux écran calculatrice
 * Interface neutre, crédible, sans aucun indice.
 */

.vif-decoy-body {
    margin: 0;
    padding: 0;
    background: #1c1c1e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.vif-calculator {
    width: 100%;
    max-width: 360px;
    background: #000;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.vif-calc-display {
    color: #fff;
    font-size: 64px;
    font-weight: 300;
    text-align: right;
    padding: 20px 10px;
    min-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}

.vif-calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.vif-calc-key {
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

.vif-calc-key:active {
    background: #555;
}

.vif-calc-func {
    background: #a5a5a5;
    color: #000;
}

.vif-calc-func:active {
    background: #d4d4d4;
}

.vif-calc-op {
    background: #ff9500;
    color: #fff;
}

.vif-calc-op:active {
    background: #ffb143;
}

.vif-calc-zero {
    grid-column: span 2;
    aspect-ratio: auto;
    border-radius: 50px;
    justify-content: flex-start;
    padding-left: 28px;
}

.vif-calc-equal {
    background: #ff9500;
}

/* Mode paysage : calculatrice plus compacte */
@media (orientation: landscape) and (max-height: 500px) {
    .vif-calc-display {
        font-size: 40px;
        min-height: 60px;
        padding: 10px;
    }

    .vif-calc-key {
        font-size: 20px;
    }
}