/* Import czcionek z Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Comic+Neue:wght@400;700&display=swap');

body {
    font-family: 'Comic Neue', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f9e4b7, #e07b39);
    color: #3a1f07;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

h1 {
    font-family: 'Bangers', cursive;
    font-size: 3.5em;
    color: #ff6f00;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
}

.game-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    background: rgba(255, 245, 230, 0.9);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.game-status p {
    margin: 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 5px;
}

#points {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

#kebab {
    font-size: 6em;
    background: linear-gradient(45deg, #ff8c00, #ffcc00, #ff8c00);
    background-size: 200% 200%;
    border: none;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    margin: 20px auto;
}

#kebab:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

#kebab:active {
    transform: scale(0.95);
    animation: bounce 0.2s, rotateKebab 0.5s;
}

#kebab.active {
    animation: rotateKebab 1.5s infinite linear, gradientShift 3s infinite;
}

@keyframes rotateKebab {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card {
    background: rgba(255, 255, 255, 0.97);
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upgrades-card h2 { color: #2575fc; }
.challenges-card h2 { color: #ffd700; }
.stats-card h2 { color: #00b7eb; }
.event-card h2 { color: #00ced1; }
.footer-card h2 { color: #ff6f00; }

h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.4em;
    color: #00b7eb;
    margin-bottom: 15px;
}

.upgrades-card, .challenges-card {
    display: grid;
    gap: 15px;
}

button {
    padding: 12px 25px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    border-radius: 25px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upgrade-btn { background: linear-gradient(45deg, #6a11cb, #2575fc); }
.rebirth-btn { background: linear-gradient(45deg, #ff4500, #ffd700); }
.restaurant-btn, .restaurant-upgrade-btn { background: linear-gradient(45deg, #ff4500, #ff8c00); }
.event-btn { background: linear-gradient(45deg, #00b7eb, #00ced1); }
.reset-btn { background: linear-gradient(45deg, #ff0000, #ff5555); }
.challenge-btn { background: linear-gradient(45deg, #ffd700, #ff8c00); }
.challenge-btn.completed { background: #ccc; cursor: not-allowed; }

.progress-bar {
    width: 80%;
    height: 15px;
    background: #ddd;
    border-radius: 10px;
    margin: 10px auto;
    overflow: hidden;
}

#eventProgressBar {
    height: 100%;
    background: linear-gradient(45deg, #00b7eb, #00ced1, #00b7eb);
    background-size: 200% 200%;
    border-radius: 10px;
    transition: width 0.3s;
    animation: progressShift 3s infinite;
}

@keyframes progressShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.golden-kebab {
    position: absolute;
    font-size: 3em;
    cursor: pointer;
    animation: bounce 0.6s infinite, glow 1.5s infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px #ffd700; }
    50% { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffcc00; }
}

.treasure-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.treasure-popup button {
    background: linear-gradient(45deg, #ff6f00, #ffd700);
}

.creator-btn a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(45deg, #333, #000);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 20px;
    right: 20px;
}

.creator-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.tiktok-icon {
    margin-right: 8px;
    font-size: 1.3em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 20px;
    width: 85%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content h2 {
    color: #ff6f00;
    font-size: 2em;
}

.modal-content ul {
    text-align: left;
    margin: 15px 0;
    padding-left: 25px;
}

.modal-btn {
    background: linear-gradient(45deg, #ff6f00, #ffd700);
}

.modal-btn:hover {
    background: linear-gradient(45deg, #ffd700, #ff6f00);
}

.close {
    float: right;
    font-size: 2em;
    cursor: pointer;
    color: #4a2c0b;
    transition: color 0.2s;
}

.close:hover {
    color: #ff4500;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.codes {
    margin-top: 20px;
}

#codeInput {
    padding: 12px;
    font-size: 1em;
    border: 2px solid #ff6f00;
    border-radius: 8px;
    width: 200px;
    margin: 10px 0;
}

.code-message {
    font-size: 1em;
    padding: 8px;
    border-radius: 8px;
}

.code-message.success { background: #d4edda; color: #155724; }
.code-message.error { background: #f8d7da; color: #721c24; }

.social-hint {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

#storySection {
    padding: 20px;
    background: linear-gradient(45deg, #ffcc00, #ff6f00);
    border-radius: 15px;
    color: white;
    margin-top: 20px;
}

#storyText {
    font-size: 1.2em;
}

/* Responsywność */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 15px;
    }
    h1 { font-size: 2.5em; }
    #kebab { width: 100px; height: 100px; font-size: 4em; }
    .game-status { grid-template-columns: 1fr; }
    button { padding: 10px 15px; font-size: 1em; }
    .modal-content { margin: 20% auto; padding: 15px; }
}