@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

* {
    font-family: 'Instrument Sans', sans-serif;
}

@keyframes slideInRotate {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(0deg) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(var(--card-rotate, 0deg)) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes countUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes peck {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.slide-in {
    animation: slideInRotate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.count-up {
    animation: countUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    background-image: url('../images/chicken-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 243, 226, 0.05) 0%, rgba(250, 230, 200, 0.03) 50%, rgba(245, 217, 171, 0.02) 100%);
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
}

#app.centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
    border: 2px solid #D4A574;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(139, 69, 19, 0.15);
    max-width: 500px;
    z-index: 1000;
    animation: slideUpIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideUpIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-emoji {
    font-size: 24px;
    animation: peck 0.6s ease-in-out infinite;
    flex-shrink: 0;
}


.card {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E7 100%);
    border: 2px solid #D4A574;
    border-radius: 16px;
    box-shadow:
        0 8px 24px rgba(139, 69, 19, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #DAA520 0px,
        #DAA520 10px,
        #D4A574 10px,
        #D4A574 20px
    );
}


input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"],
input[type="text"] {
    background: #FFFBF0;
    border: 2px solid #D4A574;
    font-family: 'Instrument Sans', sans-serif;
}

input[type="number"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

button {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
    border: 2px solid #8B6914;
    color: #FFFBF0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow:
        0 4px 12px rgba(139, 69, 19, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #B8860B 0%, #9A7209 100%);
    transform: translateY(-1px);
    box-shadow:
        0 6px 16px rgba(139, 69, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: #FFFBF0;
    border: 2px solid #D4A574;
    color: #2D2A26;
}

.btn-secondary:hover {
    background: #FFF8E7;
    border-color: #DAA520;
    transform: translateY(-1px);
}

.stat-box {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFEFCC 100%);
    border: 2px solid #E8C89F;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(218, 165, 32, 0.05) 10px,
        rgba(218, 165, 32, 0.05) 20px
    );
    pointer-events: none;
}

.chicken-emoji {
    display: inline-block;
    animation: peck 1s ease-in-out infinite;
}

.slot-number {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.slot-digit {
    display: inline-block;
    animation: slotSpin 0.1s steps(1) infinite;
}

.slot-digit.landed {
    animation: slotLand 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slotSpin {
    0%   { content: '0'; }
    10%  { content: '1'; }
    20%  { content: '2'; }
    30%  { content: '3'; }
    40%  { content: '4'; }
    50%  { content: '5'; }
    60%  { content: '6'; }
    70%  { content: '7'; }
    80%  { content: '8'; }
    90%  { content: '9'; }
}

@keyframes slotLand {
    0%   { transform: translateY(-8px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 1; }
}

