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

body {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

header { text-align: center; margin-bottom: 50px; }
header h1 {
    font-size: 46px; letter-spacing: 5px; margin-bottom: 10px;
    background: linear-gradient(to bottom, #FFB65E 0%, #E56B00 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(229, 107, 0, 0.6));
}
header p { color: #887766; font-size: 16px; font-weight: bold; }

main { width: 100%; max-width: 1100px; }

.carousel-container {
    position: relative; 
    display: block;
    width: 100%; 
    margin: 0 auto; 
    padding: 0 80px; 
}

.carousel-track-container {
    overflow: hidden;
    padding: 60px 25px; 
    margin: -60px -25px; 
}

.games-grid { display: flex; gap: 25px; width: 100%; }

.game-card {
    position: relative; text-decoration: none;
    height: 300px; border-radius: 12px;
    display: flex; align-items: flex-end; padding: 25px;
    background-size: cover; background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    background-clip: padding-box; 
    
    border: 15px solid transparent; 
    border-image-source: url('obramowka.png');
    border-image-slice: 10%; 
    border-image-repeat: stretch;
    
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.9);
    flex: 0 0 calc(33.333% - 16.66px); max-width: calc(33.333% - 16.66px); 
}

.card-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(10,0,0,1) 0%, rgba(10,0,0,0.6) 40%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.game-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 20px var(--theme), 0 0 40px var(--theme);
    border-image-source: url('obramowka.png');
}

.card-content { position: relative; z-index: 2; width: 100%; }
.card-content h3 { font-size: 22px; margin-bottom: 5px; color: #fff; text-shadow: 0 2px 5px #000; }
.card-content p { font-size: 13px; color: #bbaaaa; margin-bottom: 20px; }

.btn-play {
    display: inline-block; padding: 10px 20px; font-size: 14px; font-weight: bold;
    border-radius: 6px; color: #fff; text-align: center;
    background: var(--theme);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), 0 0 10px var(--theme);
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.2);
}
.game-card:hover .btn-play {
    transform: scale(1.05); filter: brightness(1.2);
}

/* --- STRZAŁKI KARUZELI --- */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(20, 5, 5, 0.9); border: 2px solid #ff3700;
    color: #ff3700; font-size: 20px; font-weight: bold;
    width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; z-index: 10;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}

.carousel-btn:hover {
    background: #ff3700; color: #fff; box-shadow: 0 0 20px #ff3700; transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 5px; }
.next-btn { right: 5px; }

/* --- DŁUGI PRZYCISK POD KARUZELĄ --- */
.long-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 160px);
    max-width: 1000px;
    height: 120px;
    margin: 30px auto 0 auto;
    text-decoration: none;
    border-radius: 12px;
    background-color: #110505;
    background-size: cover;
    background-position: center;
    background-clip: padding-box;
    
    border: 15px solid transparent; 
    border-image-source: url('obramowka.png');
    border-image-slice: 10%; 
    border-image-repeat: stretch;
    
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.long-action-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px var(--theme), 0 0 40px var(--theme);
    border-image-source: url('obramowka.png');
}

.long-btn-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.long-btn-content h3 {
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 5px #000;
    margin-bottom: 5px;
    letter-spacing: 3px;
}

.long-btn-content p {
    font-size: 15px;
    color: #bbaaaa;
}

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
    .game-card { flex: 0 0 calc(50% - 12.5px); max-width: calc(50% - 12.5px); }
    .long-action-btn { width: calc(100% - 50px); }
}

@media (max-width: 650px) {
    .carousel-container { padding: 0 50px; }
    .game-card { flex: 0 0 100%; max-width: 100%; }
    .carousel-btn { width: 40px; height: 40px; font-size: 16px; }
    header h1 { font-size: 32px; }
    .long-action-btn { width: calc(100% - 40px); height: auto; padding: 20px; }
    .long-btn-content h3 { font-size: 20px; }
}