/* Home page styles */

/* --- Hero / Carousel --- */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #160c08;
}
.carousel {
    display: flex;
    width: 300%;
    animation: carouselSlide 12s infinite;
}
.carousel img {
    width: 33.3333%;
    flex: 0 0 33.3333%;
    height: auto;
}
@keyframes carouselSlide {
    0%, 28% { transform: translateX(0); }
    33%, 61% { transform: translateX(-33.3333%); }
    66%, 94% { transform: translateX(-66.6666%); }
    100% { transform: translateX(0); }
}

/* --- Benefits --- */
.benefits {
    padding: 30px 31px 29px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 42px;
    background: url("../images/page-home/bg/background.webp") center/cover repeat-y;
}
.section-heading {
    grid-column: 1 / -1;
    margin: 0 0 -14px;
    color: #ffe89b;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 2px #000;
}
.benefit img {
    width: 100%;
    height: auto;
}

/* --- Games section --- */
.games {
    padding: 28px 31px 42px;
    background: #0d0d0f url("../images/page-home/bg/box behind game icons.webp") center/100% 100% no-repeat;
}
.title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.title h2 {
    margin: 0;
    color: #ffe89b;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.6px;
    text-shadow: 0 2px 2px #000;
}
.title a,
.title span {
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    text-shadow: 0 2px 2px #000;
}
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px 24px;
}
.game {
    display: block;
}
.game img {
    width: 100%;
    height: auto;
}

/* --- How-to section --- */
.how {
    padding: 18px 16px 20px;
    display: flex;
    justify-content: center;
    background: url("../images/page-home/bg/background.webp") center/cover repeat-y;
}
.howbox {
    width: 100%;
    max-width: 980px;
    aspect-ratio: 1347/684;
    padding: 48px 64px 56px;
    background: url("../images/page-home/bg/box behind instructions.webp") center/100% 100% no-repeat;
    text-align: center;
}
.howbox h2 {
    margin: 0 0 52px;
    color: #ffe99e;
    font-size: 35px;
    font-weight: 900;
    line-height: 1.05;
    text-shadow: 0 2px 3px #000;
}
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
}
.step {
    flex: 0 1 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.step img {
    height: 126px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    margin-bottom: 22px;
}
.step-console img {
    height: 118px;
    margin-top: 8px;
    margin-bottom: 22px;
}
.step strong {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 30px;
    line-height: 1.14;
    text-align: center;
    text-shadow: 0 2px 3px #000;
}
.arrow {
    flex: 0 0 50px;
    align-self: flex-start;
    margin-top: 48px;
    color: #ffe99e;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 3px #000;
}

@media (max-width: 900px) {
    .section-heading { margin-bottom: -20px; font-size: 20px; }
    .how { padding: 12px 12px 14px; }
    .howbox { padding: 60px 24px 28px; }
    .howbox h2 { margin-bottom: 28px; font-size: 22px; line-height: 1.08; }
    .steps { gap: 12px; }
    .step { flex: 1 1 0; }
    .step img { height: 100px; max-width: 130px; margin-bottom: 12px; }
    .step-console img { height: 74px; margin-top: 4px; margin-bottom: 12px; }
    .step strong { width: 100%; font-size: 17px; line-height: 1.12; text-align: center; }
    .arrow { flex: 0 0 24px; margin-top: 34px; font-size: 28px; line-height: 1; }
}

@media (max-width: 767px) {
    .section-heading { margin-bottom: -10px; font-size: 14px; }
    .benefits { padding: 13px; gap: 18px; }
    .games { padding: 12px 13px 18px; }
    .title { margin-bottom: 10px; }
    .title h2,
    .title a,
    .title span { font-size: 11px; }
    .grid { gap: 9px 10px; }
    .how { padding: 8px 7px 10px; }
    .howbox { padding: 30px 24px 17px; }
    .howbox h2 { margin-bottom: 19px; font-size: 15px; line-height: 1.05; }
    .steps { gap: 12px; }
    .step { flex: 1 1 0; }
    .step img { height: 68px; max-width: 88px; margin-bottom: 10px; }
    .step-console img { height: 64px; margin-top: 3px; margin-bottom: 11px; }
    .step strong { width: 100%; font-size: 14px; line-height: 1.08; text-align: center; word-break: break-word; }
    .arrow { flex: 0 0 18px; margin-top: 27px; font-size: 18px; line-height: 1; }
    .index-page .title h2,
    .index-page .title a,
    .index-page .title span { font-size: 14px !important }
    .index-page .howbox h2 { font-size: 14px !important }
    .index-page .step strong { font-size: 14px !important }
}
