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

body {
    font-family: 'Georgia', serif;
    background: #fef9e6;
    color: #4a3b2f;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #d9a066;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}

header p {
    font-style: italic;
    margin-top: 0.5rem;
}

nav {
    background: #b8814a;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.8rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: background 0.2s;
}

nav a:hover {
    background: #9b6938;
}

main {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    width: 100%;
}

footer {
    background: #d9a066;
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

.btn-play {
    display: inline-block;
    background: #e6a34b;
    color: white;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-play:hover {
    background: #c5822c;
}

.hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: #fff;
    border-left: 6px solid #d9a066;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.game-card h3 {
    color: #b76e2e;
    margin-bottom: 0.5rem;
}

.about {
    background: #f9eedb;
    padding: 1.8rem;
    border-radius: 10px;
}

/* Игровой контейнер */
#game-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.stats {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

#chicken-area {
    margin: 2rem 0;
}

#chicken {
    font-size: 8rem;
    cursor: pointer;
    user-select: none;
    display: inline-block;
    transition: transform 0.1s;
}

#chicken:active {
    transform: scale(0.9);
}

#click-hint {
    margin-top: 0.5rem;
    color: #888;
}

#upgrades {
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
}

#upgrades button {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #d9a066;
    border: none;
    color: white;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

#upgrades button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#upgrades button:not(:disabled):hover {
    background: #b8814a;
}

#save-record {
    margin-top: 1.5rem;
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

#save-record:hover {
    background: #388e3c;
}

/* Рекорды */
#records-container {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#records-list {
    font-size: 1.2rem;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

#records-list li {
    padding: 0.3rem 0;
}

#clear-records {
    background: #e57373;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

#clear-records:hover {
    background: #d32f2f;
}
