/* CSS Variables - Ice Casino Theme */
:root {
    --iceBlue: #2F80FF;
    --iceBlue2: #56CCF2;
    --iceLilac: #BFA8FF;
    --icePink: #FFB6E1;
    --bg1: #F6FAFF;
    --bg2: #FFFFFF;
    --text: #0F172A;
    --muted: #5B6B86;
    --card: rgba(255, 255, 255, 0.92);
    --cardBorder: rgba(255, 255, 255, 0.55);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(15, 23, 42, 0.08);
    --radius: 24px;
    --highlight: rgba(255, 255, 255, 0.6);
    --vignette: rgba(15, 23, 42, 0.18);
    --ctaBlue1: #2F80FF;
    --ctaBlue2: #8AD6FF;
    --topbarHeight: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Body Background - iOS Store Style (White/Light Gray) */
body {
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* Removed colored blobs for iOS Store clean white look */

/* Base text colors */
body {
    color: var(--text);
}

/* Short scroll lock to keep focus on hero */
.hero-scroll-lock {
    overflow: hidden;
}

/* Hero Band + Topbar */
.hero-band {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 36px;
    z-index: 1;
}

.hero-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 30, 0.7), rgba(5, 10, 30, 0.35) 55%, rgba(5, 10, 30, 0));
    z-index: 0;
    pointer-events: none;
}

.hero-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 60%, rgba(5, 10, 30, 0.08) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(920px, calc(100vw - 48px));
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    padding: 32px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Apple Store Header Layout */
.applestore-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.app-icon-wrapper {
    flex-shrink: 0;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

.applestore-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* H1 styling */
h1 {
    text-align: center;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Hero Section - Gateway Content */
.hero {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
    position: relative;
    z-index: 1;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    margin: 0;
    font-weight: 400;
    text-align: center;
}

.app-rating-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.rating-number {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.rating-stars {
    font-size: clamp(16px, 2vw, 20px);
    color: #FFB800;
    letter-spacing: 2px;
    line-height: 1;
}

.rating-reviews {
    font-size: clamp(15px, 1.9vw, 19px);
    color: var(--muted);
    font-weight: 400;
}

.app-meta-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
    font-size: clamp(14px, 1.7vw, 17px);
    color: var(--muted);
}

.app-meta-info span {
    font-weight: 400;
}

.app-developer-text {
    color: var(--muted);
    font-weight: 400;
}

/* App Store Header Section - Clean iOS Style */
.appstore-header-section {
    background: #ffffff;
    padding: 3rem 1.5rem;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.appstore-header-container {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.app-icon-container {
    margin-bottom: 0.5rem;
}

.app-icon-main {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* App Store Info Section */
.app-store-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-stars {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.stars {
    font-size: clamp(16px, 2vw, 20px);
    color: #FFB800;
    letter-spacing: 2px;
    line-height: 1;
}

.reviews-count {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--muted);
    font-weight: 400;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.app-age,
.app-category,
.app-developer {
    font-size: clamp(13px, 1.6vw, 16px);
    color: var(--muted);
    padding: 0.4rem 0.8rem;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 8px;
    font-weight: 400;
}

.app-developer {
    color: var(--iceBlue);
    background: rgba(47, 128, 255, 0.08);
    font-weight: 500;
}

.responsible-gaming-notice {
    text-align: center;
    margin: 2rem auto;
    max-width: min(1200px, calc(100vw - 48px));
    padding: 0 1.5rem;
}

.responsible-gaming-notice p {
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--muted);
    margin: 0;
    font-weight: 400;
}
    gap: 12px;
}

.hero p {
    font-size: 1.06rem;
    line-height: 1.6;
    margin: 0;
    color: #0f172a;
    max-width: 65ch;
}

.hero p:first-of-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.hero p:last-of-type {
    margin-bottom: 0.75rem;
}

.hero p:not(:first-of-type) {
    color: #334155;
}

/* Glass Card Style for Other Sections */
.notice,
.seo-content,
.faq {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--cardBorder);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 1.75rem auto;
    width: 100%;
    max-width: min(980px, calc(100vw - 48px));
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.notice::before,
.seo-content::before,
.faq::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, var(--highlight), rgba(255, 255, 255, 0));
    opacity: 0.5;
    pointer-events: none;
}

/* Notice Section */
.notice {
    margin-top: 2.75rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
}

.notice p {
    margin-bottom: 1rem;
}

.notice p:last-child {
    margin-bottom: 0;
}

/* SEO Content Article - Start below fold */
.seo-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.seo-content h2 {
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    line-height: 1.3;
}

.seo-content h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.seo-content h3:first-of-type {
    margin-top: 1.5rem;
}

.seo-content p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 70ch;
    margin-bottom: 1.25rem;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

.seo-content ul {
    margin-top: 1rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

.seo-content li:last-child {
    margin-bottom: 0;
}

.seo-content a {
    color: var(--iceBlue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.seo-content a:hover {
    color: var(--iceBlue2);
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    margin-bottom: 2rem;
}

.faq h2 {
    color: var(--text);
    margin-top: 0;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--muted);
    line-height: 1.65;
    max-width: 70ch;
}

/* Age Gate Modal Styles */
.age-gate-locked {
    overflow: hidden !important;
}

.age-gate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.age-gate-modal.age-gate-active {
    display: flex;
}

.age-gate-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid var(--cardBorder);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10001;
}

.age-gate-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

.age-gate-content p {
    margin: 0 0 2rem 0;
    font-size: 1.1rem;
    color: var(--muted);
}

.age-gate-buttons {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.age-gate-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    min-height: 48px;
    transition: all 0.2s ease;
}

/* Primary Button - Ice Blue Gradient */
.age-gate-btn-primary {
    background: linear-gradient(90deg, var(--iceBlue), var(--iceBlue2));
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 128, 255, 0.28), 0 0 0 0 rgba(86, 204, 242, 0.4);
}

.age-gate-btn-primary:hover {
    background: linear-gradient(90deg, var(--iceBlue2), var(--iceBlue));
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(47, 128, 255, 0.35), 0 0 0 4px rgba(86, 204, 242, 0.2);
}

.age-gate-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(47, 128, 255, 0.3);
}

.age-gate-btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(86, 204, 242, 0.45), 0 10px 22px rgba(47, 128, 255, 0.35);
}

/* Secondary Button - Exit */
.age-gate-btn-secondary {
    background-color: var(--bg2);
    color: var(--text);
    border: 2px solid var(--muted);
}

.age-gate-btn-secondary:hover {
    border-color: var(--text);
    background-color: var(--bg1);
}

.age-gate-btn-secondary:active {
    background-color: var(--bg1);
    border-color: var(--text);
}

.age-gate-btn-secondary:focus-visible {
    outline: 2px solid var(--muted);
    outline-offset: 2px;
    border-radius: var(--radius);
}

/* Install Prompt Styles */
.install-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.install-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border: 1px solid rgba(47, 128, 255, 0.45);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--iceBlue);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
    flex-shrink: 0;
}

.install-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
    border-color: rgba(47, 128, 255, 0.75);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.install-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(47, 128, 255, 0.3);
}

.install-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 128, 255, 0.35), 0 10px 22px rgba(15, 23, 42, 0.12);
}

/* App Store Button - Primary CTA */
.app-store-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 260px;
    background: linear-gradient(90deg, var(--ctaBlue1), var(--ctaBlue2));
    color: #fff;
    box-shadow: 0 8px 20px rgba(47, 128, 255, 0.28);
    box-sizing: border-box;
    flex-shrink: 0;
}

.app-store-btn:hover {
    background: linear-gradient(90deg, var(--ctaBlue2), var(--ctaBlue1));
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(47, 128, 255, 0.35), 0 0 0 4px rgba(138, 214, 255, 0.22);
}

.app-store-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(47, 128, 255, 0.3);
}

.app-store-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 214, 255, 0.5), 0 12px 26px rgba(47, 128, 255, 0.35);
}

.cta-microcopy {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #52627c;
    text-align: left;
    max-width: 70ch;
}

/* iOS App Store Button - Legacy (kept for compatibility) */
.ios-appstore-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-height: 48px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
    background: linear-gradient(90deg, var(--iceBlue), var(--iceBlue2));
    color: #fff;
    box-shadow: 0 4px 12px rgba(47, 128, 255, 0.3);
}

.ios-appstore-btn:hover {
    background: linear-gradient(90deg, var(--iceBlue2), var(--iceBlue));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(47, 128, 255, 0.4);
}

.ios-appstore-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(47, 128, 255, 0.3);
}

.ios-appstore-btn:focus-visible {
    outline: 2px solid var(--iceBlue2);
    outline-offset: 3px;
    border-radius: var(--radius);
}

.ios-tooltip {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--cardBorder);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.ios-tooltip p {
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: var(--text);
}

.ios-tooltip ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--muted);
}

.ios-tooltip li {
    margin: 0.5rem 0;
}

.ios-tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    padding: 0.25rem 0.5rem;
    line-height: 1;
}

.ios-tooltip-close:hover {
    color: var(--text);
}

.ios-tooltip-close:focus-visible {
    outline: 2px solid var(--iceBlue);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Styles */
@media (min-width: 480px) {
    .age-gate-buttons {
        flex-direction: row;
    }
    
    .age-gate-btn {
        flex: 1;
    }
    
    .install-actions {
        flex-direction: row;
        justify-content: center;
        padding: 0;
    }
    
    .install-btn,
    .app-store-btn,
    .ios-appstore-btn {
        width: auto;
        min-width: 200px;
    }
}

@media (max-width: 479px) {
    /* Mobile safe spacing - ensure cards are not glued to edges */
    .hero-band {
        min-height: 90vh;
        padding: 50px 20px 26px;
    }

    .hero-card {
        max-width: calc(100% - 32px);
        padding: 86px 20px 24px;
        gap: 10px;
    }

    .site-header {
        top: -44px;
        left: 50%;
        transform: translateX(-50%);
        padding: 6px 10px;
    }
    
    .site-logo {
        max-width: 160px;
    }
    
    h1 {
        margin-bottom: 0.5rem;
        padding: 0;
    }
    
    .hero {
        margin: 0;
        padding: 0;
        min-height: auto;
        max-width: 100%;
    }
    
    .notice,
    .seo-content,
    .faq {
        margin: 1.75rem 1.5rem;
        padding: 1.5rem;
        min-width: 0;
        max-width: calc(100vw - 3rem);
    }
    
    .seo-content {
        margin-top: 2rem;
    }
    
    .age-gate-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .age-gate-content h2 {
        font-size: 1.25rem;
    }
    
    .age-gate-content p {
        font-size: 1rem;
    }
    
    .age-gate-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .age-gate-buttons {
        gap: 0.75rem;
    }
    
    .install-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0;
    }
    
    .install-btn,
    .app-store-btn,
    .ios-appstore-btn {
        width: 100%;
        max-width: 100%;
        padding: 0.95rem 1.25rem;
    }
}

/* Device Notice Bar */
.device-notice-bar {
    background: rgba(47, 128, 255, 0.1);
    border-bottom: 1px solid rgba(47, 128, 255, 0.2);
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text);
    position: relative;
    z-index: 10;
    width: 100%;
}

.device-notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.device-notice-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.device-notice-link {
    color: var(--iceBlue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.device-notice-link:hover {
    color: var(--iceBlue2);
    text-decoration: underline;
}

.device-notice-link:focus-visible {
    outline: 2px solid var(--iceBlue);
    outline-offset: 2px;
    border-radius: 4px;
}

.device-notice-separator {
    color: var(--muted);
    margin: 0 0.25rem;
}

.device-notice-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    transition: color 0.2s ease;
    flex-shrink: 0;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.device-notice-close:hover {
    color: var(--text);
    background: rgba(47, 128, 255, 0.1);
}

.device-notice-close:focus-visible {
    outline: 2px solid var(--iceBlue);
    outline-offset: 2px;
    color: var(--text);
}

.device-notice-close span {
    display: block;
    font-weight: 300;
}

@media (max-width: 767px) {
    .device-notice-content {
        padding: 0.625rem 0.75rem;
        gap: 0.75rem;
    }
    
    .device-notice-text {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    .device-notice-link {
        font-size: 0.85rem;
    }
    
    .device-notice-separator {
        margin: 0 0.125rem;
    }
}

/* Play Store Header Styles */
.playstore-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    border-bottom: 1px solid var(--cardBorder);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.playstore-header-content {
    max-width: min(1200px, calc(100vw - 48px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.app-icon-link {
    display: inline-block;
    text-decoration: none;
    align-self: flex-start;
}

.app-icon {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    object-fit: contain;
    background: var(--bg2);
    padding: 8px;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--text);
    line-height: 1.2;
}

.app-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.rating-stars {
    color: #FFB800;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-value {
    font-weight: 600;
    color: var(--text);
}

.rating-count {
    color: var(--muted);
}

.app-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.installs,
.category {
    padding: 0.25rem 0.5rem;
    background: rgba(47, 128, 255, 0.1);
    border-radius: 4px;
}

.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--iceBlue);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.developer-link:hover {
    color: var(--iceBlue2);
    text-decoration: underline;
}

.developer-label {
    color: var(--muted);
}

.developer-name {
    font-weight: 500;
}

.install-cta-wrapper {
    display: flex;
    align-items: flex-start;
}

.install-button-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--ctaBlue1), var(--ctaBlue2));
    color: #fff;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(47, 128, 255, 0.28);
    transition: all 0.2s ease;
    cursor: pointer;
}

.install-button-primary:hover {
    background: linear-gradient(90deg, var(--ctaBlue2), var(--ctaBlue1));
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(47, 128, 255, 0.35), 0 0 0 4px rgba(138, 214, 255, 0.22);
}

.install-button-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(47, 128, 255, 0.3);
}

.install-button-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(138, 214, 255, 0.5), 0 12px 26px rgba(47, 128, 255, 0.35);
}

/* Screenshots Section */
.screenshots-section {
    margin: 3rem auto;
    max-width: min(1200px, calc(100vw - 48px));
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.screenshots-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 1.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--iceBlue) transparent;
    min-height: 400px;
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: var(--iceBlue);
    border-radius: 4px;
}

.screenshot-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
    scroll-snap-align: start;
}

.screenshot-img {
    width: 320px;
    min-width: 280px;
    height: auto;
    max-height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    object-fit: contain;
}

.screenshot-link:hover .screenshot-img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

/* iPhone Carousel Section */
.iphone-carousel-section {
    margin: 4rem auto;
    max-width: min(1400px, calc(100vw - 48px));
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.iphone-carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.iphone-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.iphone-carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    cursor: grab;
    user-select: none;
}

.iphone-carousel-track:active {
    cursor: grabbing;
}

.iphone-carousel-slide {
    flex: 0 0 auto;
    min-width: min(320px, 80vw);
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.iphone-frame-link:hover {
    transform: scale(1.03);
}

.iphone-frame-link:active {
    transform: scale(0.98);
}

.iphone-frame {
    position: relative;
    width: min(320px, 80vw);
    max-width: 320px;
    aspect-ratio: 9 / 19.5;
    background: #1a1a1a;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.iphone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel controls removed - using native scroll with swipe */

/* About Section */
.about-section {
    margin: 2rem auto;
    max-width: min(1200px, calc(100vw - 48px));
    padding: 0 1.5rem;
}

.about-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    border: 1px solid var(--cardBorder);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 2rem;
}

.about-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    color: var(--text);
}

.about-text p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* SEO Content Android */
.seo-content-android {
    margin: 2rem auto;
    max-width: min(980px, calc(100vw - 48px));
    padding: 0 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    border: 1px solid var(--cardBorder);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 2rem;
}

.seo-content-android h2 {
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    line-height: 1.3;
}

.seo-content-android h3 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.seo-content-android h3:first-of-type {
    margin-top: 1.5rem;
}

.seo-content-android p {
    color: var(--muted);
    line-height: 1.75;
    max-width: 70ch;
    margin-bottom: 1.25rem;
}

.seo-content-android p:last-child {
    margin-bottom: 0;
}

/* FAQ Android */
.faq-android {
    margin: 2rem auto;
    max-width: min(980px, calc(100vw - 48px));
    padding: 0 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--card) 100%);
    border: 1px solid var(--cardBorder);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 2rem;
}

.faq-android h2 {
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.faq-android .faq-item {
    margin-bottom: 1.5rem;
}

.faq-android .faq-item:last-child {
    margin-bottom: 0;
}

.faq-android .faq-item h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-android .faq-item p {
    color: var(--muted);
    line-height: 1.65;
    max-width: 70ch;
}

/* Responsible Gaming */
.responsible-gaming {
    margin: 2rem auto;
    max-width: min(980px, calc(100vw - 48px));
    padding: 0 1.5rem;
}

.responsible-gaming-content {
    background: rgba(255, 182, 225, 0.1);
    border: 2px solid rgba(255, 182, 225, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.responsible-gaming-content h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: var(--text);
}

.responsible-gaming-content p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.responsible-gaming-content p:last-child {
    margin-bottom: 0;
}

.responsible-gaming-content strong {
    color: var(--text);
    font-size: 1.1rem;
}

/* Android Footer */
.android-footer {
    margin: 3rem auto 2rem;
    max-width: min(1200px, calc(100vw - 48px));
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--cardBorder);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--iceBlue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--iceBlue2);
    text-decoration: underline;
}

.footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Styles for Play Store Layout */
@media (min-width: 768px) {
    .playstore-header-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .app-icon {
        width: 112px;
        height: 112px;
    }
    
    .install-cta-wrapper {
        align-items: center;
    }
    
    .screenshot-img {
        width: 280px;
    }
}

@media (max-width: 767px) {
    .playstore-header {
        padding: 1rem;
    }
    
    .app-icon {
        width: 96px;
        height: 96px;
    }
    
    .install-button-primary {
        width: 100%;
        max-width: 100%;
    }
    
    .screenshot-img {
        width: 200px;
    }
    
    .applestore-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .applestore-header-content {
        align-items: center;
        text-align: center;
    }
    
    .applestore-rating-row,
    .applestore-meta-row {
        justify-content: center;
    }
    
    h1 {
        text-align: center;
    }
    
    .app-subtitle {
        text-align: center;
    }
    
    .appstore-header-section {
        padding: 2rem 1rem;
    }
    
    .app-icon-main {
        width: 100px;
        height: 100px;
    }
    
    .iphone-carousel-slide {
        min-width: min(280px, 75vw);
    }
    
    .iphone-frame {
        width: min(280px, 75vw);
        padding: 10px;
        border-radius: 40px;
    }
    
    .iphone-notch {
        width: 120px;
        height: 24px;
    }
    
    .iphone-screen {
        border-radius: 30px;
    }
    
    .seo-content-android,
    .faq-android,
    .about-content {
        padding: 1.5rem;
    }
}

@media (max-width: 479px) {
    .iphone-frame {
        width: min(240px, 70vw);
        padding: 8px;
        border-radius: 36px;
    }
    
    .iphone-notch {
        width: 100px;
        height: 20px;
    }
    
    .iphone-screen {
        border-radius: 28px;
    }
}
