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

body {
    font-family: -apple-system, system-ui, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Результат */
.result {
    font-size: 3.5rem;
    font-weight: 700;
    height: 4rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.result.visible {
    opacity: 1;
    transform: translateY(0);
}

.result.yes {
    color: #4CAF50;
}

.result.no {
    color: #f44336;
}

/* Монетка */
.coin-container {
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0);
}

.coin .heads,
.coin .tails {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border: 8px solid #e0e0e0;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.1),
        0 4px 8px rgba(0,0,0,0.1);
}

.coin .tails {
    transform: rotateY(180deg);
}

.circle {
    width: 70%;
    height: 70%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.heads .circle {
    background: #4CAF50;
    color: white;
}

.tails .circle {
    background: #f44336;
    color: white;
}

.check, .cross {
    transform: scale(1.5);
}

/* Кнопка */
button {
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    background: #2196F3;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

button:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

button:active {
    background: #1565C0;
    transform: translateY(0);
}

button:disabled {
    background: #BDBDBD;
    cursor: not-allowed;
    transform: none;
}