/*!
 * gamezone download app - core stylesheet
 * All custom classes use the "v955-" prefix for namespace isolation.
 * Palette: #CD5C5C | #262626 | #DB7093 | #CCCCCC | #FFA500 | #FFEBCD
 * Dark colours anchor backgrounds, light colours carry the text.
 */

:root {
    --v955-bg: #262626;
    --v955-bg-soft: #2f2c2c;
    --v955-surface: #3a3434;
    --v955-primary: #CD5C5C;
    --v955-accent: #DB7093;
    --v955-warm: #FFA500;
    --v955-cream: #FFEBCD;
    --v955-muted: #CCCCCC;
    --v955-white: #fff7ef;
    --v955-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --v955-radius: 14px;
    --v955-radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
    font-size: 62.5%; /* 1rem = 10px */
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(160deg, #262626 0%, #3a2a2a 55%, #262626 100%);
    color: var(--v955-cream);
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--v955-warm); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--v955-cream); margin: 0 0 0.6em; line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.7rem; }

p { margin: 0 0 1rem; }

/* ---------- Header ---------- */
.v955-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(120deg, rgba(38,38,38,0.97), rgba(205,92,92,0.92));
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--v955-warm);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.v955-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}
.v955-brand img { width: 32px; height: 32px; border-radius: 8px; }
.v955-brand span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v955-cream);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.v955-header-actions { display: flex; gap: 0.4rem; align-items: center; }
.v955-btn {
    border: 0;
    border-radius: 30px;
    padding: 0.7rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    min-height: 38px;
}
.v955-btn:hover { transform: translateY(-1px); text-decoration: none; }
.v955-btn-login {
    background: transparent;
    color: var(--v955-cream);
    border: 2px solid var(--v955-cream);
}
.v955-btn-register {
    background: linear-gradient(135deg, var(--v955-warm), var(--v955-primary));
    color: #262626;
    box-shadow: 0 4px 14px rgba(255,165,0,0.35);
}
.v955-menu-btn {
    background: transparent;
    border: 0;
    color: var(--v955-cream);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}
.v955-desktop-nav { display: none; }
.v955-desktop-nav a {
    color: var(--v955-cream);
    font-size: 1.3rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}
.v955-desktop-nav a:hover { background: rgba(255,235,205,0.12); }

/* ---------- Mobile slide-down menu ---------- */
.v955-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #2f2c2c, #262626);
    padding: 6rem 1.5rem 2rem;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 2px solid var(--v955-warm);
}
.v955-mobile-menu.v955-is-open { right: 0; }
.v955-mobile-menu a {
    display: block;
    color: var(--v955-cream);
    padding: 0.9rem 0.4rem;
    border-bottom: 1px solid rgba(255,235,205,0.12);
    font-size: 1.4rem;
}
.v955-mobile-menu a:hover { color: var(--v955-warm); }
.v955-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.v955-mobile-menu.v955-is-open ~ .v955-menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- Layout ---------- */
main { padding: 1.2rem; max-width: 100%; }
@media (max-width: 768px) {
    main { padding-bottom: 90px; }
}

.v955-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* ---------- Hero ---------- */
.v955-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 2.4rem 1.4rem;
    text-align: center;
    background: radial-gradient(circle at 30% 20%, rgba(219,112,147,0.55), transparent 60%),
                radial-gradient(circle at 70% 80%, rgba(255,165,0,0.45), transparent 60%),
                #262626;
    border: 1px solid rgba(255,235,205,0.15);
    box-shadow: var(--v955-shadow);
}
.v955-hero h1 {
    font-size: 2.6rem;
    background: linear-gradient(120deg, var(--v955-warm), var(--v955-cream));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.v955-hero p { color: var(--v955-muted); margin: 0 auto 1.4rem; max-width: 540px; }
.v955-hero-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.v955-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--v955-warm), var(--v955-primary));
    color: #262626;
    font-weight: 800;
    padding: 1rem 1.8rem;
    border-radius: 30px;
    box-shadow: 0 6px 16px rgba(255,165,0,0.4);
}
.v955-cta:hover { transform: translateY(-2px); text-decoration: none; }
.v955-cta-ghost {
    background: transparent;
    color: var(--v955-cream);
    border: 2px solid var(--v955-cream);
}

/* ---------- Section ---------- */
.v955-section { padding: 2rem 0; }
.v955-section-title {
    text-align: center;
    margin-bottom: 1.6rem;
}
.v955-section-title h2 { color: var(--v955-cream); }
.v955-section-title p { color: var(--v955-muted); }

/* ---------- Promo strip ---------- */
.v955-promo-strip {
    background: linear-gradient(135deg, var(--v955-primary), var(--v955-accent));
    color: #fff7ef;
    border-radius: var(--v955-radius);
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--v955-shadow);
    margin: 1.2rem 0;
}
.v955-promo-strip i { font-size: 2.6rem; }
.v955-promo-strip .v955-cta {
    margin-left: auto;
    padding: 0.8rem 1.4rem;
    background: var(--v955-cream);
    color: var(--v955-primary);
}

/* ---------- Category tabs ---------- */
.v955-cat-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.6rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}
.v955-cat-tab {
    background: var(--v955-surface);
    color: var(--v955-muted);
    border: 1px solid rgba(255,235,205,0.12);
    border-radius: 30px;
    padding: 0.6rem 1.1rem;
    font-size: 1.3rem;
    cursor: pointer;
    white-space: nowrap;
}
.v955-cat-tab.v955-tab-active {
    background: linear-gradient(135deg, var(--v955-warm), var(--v955-primary));
    color: #262626;
    font-weight: 700;
}

/* ---------- Game grid ---------- */
.v955-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}
.v955-game-card {
    background: var(--v955-surface);
    border-radius: var(--v955-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease;
}
.v955-game-card:hover { transform: translateY(-3px); }
.v955-game-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #1d1b1b;
}
.v955-game-card .v955-game-name {
    padding: 0.6rem 0.7rem;
    font-size: 1.25rem;
    color: var(--v955-cream);
    text-align: center;
    font-weight: 600;
}
.v955-game-card .v955-play {
    position: absolute;
    inset: 0;
    background: rgba(38,38,38,0.55);
    color: var(--v955-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: 800;
    font-size: 1.4rem;
}
.v955-game-card:hover .v955-play { opacity: 1; }

/* ---------- Feature / step list ---------- */
.v955-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.v955-feature {
    background: var(--v955-surface);
    border-radius: var(--v955-radius);
    padding: 1.2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border-left: 4px solid var(--v955-warm);
}
.v955-feature i {
    font-size: 2.4rem;
    color: var(--v955-warm);
    flex-shrink: 0;
}
.v955-feature h3 { margin-bottom: 0.3rem; font-size: 1.5rem; }
.v955-feature p { color: var(--v955-muted); margin: 0; font-size: 1.35rem; }

.v955-steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.v955-steps li {
    counter-increment: step;
    background: var(--v955-surface);
    padding: 1rem 1rem 1rem 3.4rem;
    border-radius: var(--v955-radius-sm);
    margin-bottom: 0.7rem;
    position: relative;
    color: var(--v955-muted);
}
.v955-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0.8rem;
    top: 0.9rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--v955-warm), var(--v955-primary));
    color: #262626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

/* ---------- FAQ ---------- */
.v955-faq details {
    background: var(--v955-surface);
    border-radius: var(--v955-radius-sm);
    padding: 0.9rem 1.1rem;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255,235,205,0.08);
}
.v955-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--v955-cream);
    font-size: 1.4rem;
}
.v955-faq p { color: var(--v955-muted); margin: 0.6rem 0 0; }

/* ---------- Footer ---------- */
.v955-footer {
    background: #1d1b1b;
    color: var(--v955-muted);
    padding: 2rem 1rem 3rem;
    border-top: 2px solid var(--v955-primary);
}
.v955-footer-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    max-width: 1100px;
    margin: 0 auto;
}
.v955-footer h4 { color: var(--v955-cream); font-size: 1.4rem; margin-bottom: 0.6rem; }
.v955-footer a { color: var(--v955-muted); font-size: 1.3rem; display: block; padding: 0.25rem 0; }
.v955-footer a:hover { color: var(--v955-warm); }
.v955-footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--v955-muted);
    border-top: 1px solid rgba(255,235,205,0.08);
    padding-top: 1rem;
}

/* ---------- Bottom navigation (mobile) ---------- */
.v955-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(38,38,38,0.98);
    border-top: 2px solid var(--v955-warm);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -6px 18px rgba(0,0,0,0.4);
}
.v955-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--v955-muted);
    font-size: 1.1rem;
    gap: 0.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.v955-bottom-nav a i { font-size: 22px; }
.v955-bottom-nav a:hover, .v955-bottom-nav a.v955-nav-active { color: var(--v955-warm); transform: translateY(-2px); text-decoration: none; }
.v955-bottom-nav .v955-nav-promo {
    background: linear-gradient(135deg, var(--v955-warm), var(--v955-primary));
    color: #262626;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-top: -22px;
    box-shadow: 0 4px 12px rgba(255,165,0,0.4);
}
.v955-bottom-nav .v955-nav-promo i { font-size: 24px; }
.v955-bottom-nav .v955-nav-promo span { display: none; }

/* ---------- Back to top ---------- */
#v955-to-top {
    position: fixed;
    right: 14px;
    bottom: 80px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--v955-primary);
    color: var(--v955-cream);
    border: 0;
    cursor: pointer;
    font-size: 1.8rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 900;
}
#v955-to-top.v955-show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal animation ---------- */
.v955-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.v955-reveal.v955-visible { opacity: 1; transform: none; }

/* ---------- Carousel and compact content panels ---------- */
.v955-carousel {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.4rem 0 1rem;
    -webkit-overflow-scrolling: touch;
}
.v955-slide {
    min-width: 86%;
    border-radius: var(--v955-radius);
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    box-shadow: var(--v955-shadow);
    border: 1px solid rgba(255,235,205,0.14);
}
.v955-slide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.v955-slide span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(38,38,38,0.82);
    color: var(--v955-warm);
    border-radius: 30px;
    padding: 0.55rem 1rem;
    font-weight: 800;
}
.v955-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}
.v955-mini-card {
    background: var(--v955-surface);
    border-radius: var(--v955-radius-sm);
    padding: 1rem;
    border: 1px solid rgba(255,235,205,0.1);
}
.v955-mini-card strong { color: var(--v955-warm); display: block; margin-bottom: 0.35rem; }
.v955-mini-card span { color: var(--v955-muted); font-size: 1.25rem; }
.v955-kpi { font-size: 2rem; color: var(--v955-warm); font-weight: 900; }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
    .v955-bottom-nav { display: none; }
    .v955-menu-btn { display: none; }
    .v955-desktop-nav { display: flex; gap: 0.4rem; }
    main { padding: 1.8rem 2rem; }
    .v955-game-grid { grid-template-columns: repeat(4, 1fr); }
    .v955-feature-grid { grid-template-columns: repeat(3, 1fr); }
    .v955-footer-cols { grid-template-columns: repeat(4, 1fr); }
    .v955-hero { padding: 3.4rem 2rem; }
    .v955-hero h1 { font-size: 3.4rem; }
}

/* ---------- Small phones ---------- */
@media (max-width: 430px) {
    body { font-size: 1.4rem; }
    h1 { font-size: 2rem; }
    .v955-hero h1 { font-size: 2.1rem; }
    .v955-hero { padding: 1.8rem 1rem; }
    .v955-brand span { font-size: 1.25rem; max-width: 140px; }
    .v955-btn { padding: 0.55rem 0.9rem; font-size: 1.2rem; }
    .v955-game-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .v955-game-card .v955-game-name { font-size: 1.15rem; padding: 0.45rem 0.4rem; }
    .v955-promo-strip { flex-wrap: wrap; }
    .v955-promo-strip .v955-cta { margin-left: 0; width: 100%; text-align: center; }
    main { padding: 0.9rem; padding-bottom: 90px; }
    .v955-bottom-nav a { font-size: 1rem; min-width: 56px; }
}
