@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    touch-action: manipulation;
}

.calculator {
    background: #b29fdb;
    padding: 30px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 320px;
    max-width: 90vw;
}

.display {
    background: #5d5492;
    color: #fffacd;
    font-size: 48px;
    text-align: right;
    padding: 30px 25px;
    border-radius: 30px;
    margin-bottom: 25px;
    box-shadow: inset 0 8px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

button {
    height: 70px;
    border: none;
    border-radius: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

button:active {
    transform: scale(0.95);
}

.clear {
    background: #ff6b6b;
    color: white;
    grid-column: span 1;
}

.operator {
    background: #e0e0e0;
    color: #333;
}

.plus {
    background: #ffb84d;
    color: white;
    grid-row: span 2;
    height: 155px !important;
    border-radius: 35px;
}

.equals {
    background: #4caf50;
    color: white;
    grid-row: span 1;
}

.zero {
    grid-column: span 2;
    border-radius: 35px;
}

.num {
    background: #e0e0e0;
    color: #333;
}

/* Video fullscreen - portrait lock */
#surpriseVideo {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: contain; /* Black bars sa sides = forced portrait feel */
    background: black;
    z-index: 9999;
    display: none;
}
