:root {
    --bg:     #FDF6ED;
    --accent: #d8994a;
    font-family: "Cutive Mono", monospace;
    font-weight: 800;
}

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

body {
    background-color: var(--bg);
    overflow: hidden;
}

/* ── Layout ── */
#main {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    text-align: center;
}

#question-text {
    font-size: 2.4rem;
    line-height: 1.6;
    max-width: 800px;
    white-space: pre-line;
}

/* ── Language buttons ── */
#lang-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
    background: var(--accent);
    color: white;
}

/* ── YES / NO buttons ── */
#confirm-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hidden { display: none !important; }

#btn-yes,
#btn-no {
    font-family: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    box-shadow: 1px 1px 10px #a2a2a2;
}

#btn-yes {
    background: black;
    color: white;
    position: relative;
    z-index: 50;
    transition: cubic-bezier(0.27, -0.06, 0, 1.01) 0.8s;
}
#btn-yes:hover { box-shadow: 1px 1px 10px hsl(0, 0%, 10%); }

#btn-no {
    background: white;
    color: black;
    transition: cubic-bezier(0, 0.78, 0.48, 1.05) 0.8s;
}
#btn-no:hover { box-shadow: 1px 1px 10px hsl(0, 0%, 85%); }

/* ── Animations ── */
@keyframes tilt-shaking {
    0%   { transform: rotate(0deg); }
    25%  { transform: rotate(1deg); }
    50%  { transform: rotate(0deg); }
    75%  { transform: rotate(-1deg); }
    100% { transform: rotate(0deg); }
}

.shake { animation: tilt-shaking 0.15s linear infinite; }

.enlarge-yes {
    min-width: 240px !important;
    transition: all 1s !important;
}

.scale-yes {
    transform: scale(70) !important;
    transition: cubic-bezier(0.27, -0.06, 0, 1.01) 2s !important;
}

/* ── Success overlay ── */
#success-overlay {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
}

#yell-text {
    color: white;
    font-size: 4rem;
    text-align: center;
    padding: 0 2rem;
}

#success-text {
    color: white;
    font-size: 2.4rem;
    text-align: center;
    padding: 0 2rem;
    max-width: 700px;
    line-height: 1.6;
}

@keyframes skew {
    0%   { transform: rotateZ(0deg); }
    50%  { transform: rotateZ(-10deg); }
    100% { transform: rotateZ(0deg); }
}

.rotate {
    transform-origin: left;
    animation: skew 4s ease-out;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #question-text  { font-size: 1.6rem; }
    #btn-yes,
    #btn-no         { font-size: 1.2rem; padding: 0.5rem 1.5rem; }
    #success-text   { font-size: 1.6rem; }
    .scale-yes      { transform: scale(80) !important; }
}
