/* =========================================================
   colour-game.homes - theme (prefix: pga7-)
   Mobile-first 320-430px canvas casino/gaming site
   Palette: #1A1A2E (deep bg) | #F0FDFF (text)
   Nav direction: asymmetric header, layered dropdown menu,
   floating docked bottom bar, borderless icons + text labels,
   color-shift active state, short vertical-lift micro-interaction
   ========================================================= */

:root {
    --pga7-bg: #1A1A2E;
    --pga7-bg-soft: #20203A;
    --pga7-bg-card: #262648;
    --pga7-bg-elev: #2F2F55;
    --pga7-text: #F0FDFF;
    --pga7-text-dim: rgba(240, 253, 255, 0.72);
    --pga7-text-faint: rgba(240, 253, 255, 0.52);
    --pga7-accent: #FFC93C;
    --pga7-accent-2: #FF6B6B;
    --pga7-accent-3: #5BC0EB;
    --pga7-line: rgba(240, 253, 255, 0.12);
    --pga7-line-strong: rgba(240, 253, 255, 0.24);
    --pga7-radius: 14px;
    --pga7-radius-lg: 20px;
    --pga7-header-h: 58px;
    --pga7-bottom-h: 66px;
    --pga7-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--pga7-bg);
    color: var(--pga7-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

a {
    color: var(--pga7-text);
    text-decoration: none;
}

a:hover, a:focus {
    color: var(--pga7-accent);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Centered phone canvas on wider screens */
.pga7-shell {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--pga7-bg);
    position: relative;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ===================== Header (asymmetric brand head) ===================== */
.pga7-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--pga7-header-h);
    background: linear-gradient(180deg, #181830 0%, #1A1A2E 100%);
    border-bottom: 1px solid var(--pga7-line);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
}

.pga7-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.pga7-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    border: 1px solid var(--pga7-line-strong);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    background: var(--pga7-bg-soft);
    flex: 0 0 auto;
}

.pga7-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pga7-brand-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.1;
    color: var(--pga7-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pga7-brand-tag {
    font-size: 10px;
    color: var(--pga7-accent);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 700;
}

/* Header action cluster */
.pga7-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.pga7-btn {
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: var(--pga7-bg);
    background: var(--pga7-accent);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pga7-btn:hover,
.pga7-btn:focus {
    transform: translateY(-1px);
    color: var(--pga7-bg);
}

.pga7-btn-login {
    background: transparent;
    color: var(--pga7-text);
    border: 1px solid var(--pga7-line-strong);
}

.pga7-btn-login:hover,
.pga7-btn-login:focus {
    color: var(--pga7-accent);
    border-color: var(--pga7-accent);
}

/* Layered dropdown menu button */
.pga7-menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--pga7-bg-soft);
    border: 1px solid var(--pga7-line);
    color: var(--pga7-text);
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.pga7-menu-btn:hover,
.pga7-menu-btn:focus {
    color: var(--pga7-accent);
    border-color: var(--pga7-line-strong);
}

/* Layered menu panel */
.pga7-top-menu {
    position: absolute;
    top: calc(var(--pga7-header-h) - 6px);
    right: 10px;
    width: 260px;
    max-width: calc(100vw - 20px);
    background: var(--pga7-bg-elev);
    border: 1px solid var(--pga7-line-strong);
    border-radius: var(--pga7-radius);
    box-shadow: var(--pga7-shadow);
    padding: 8px;
    z-index: 49;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.pga7-top-menu.pga7-menu-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.pga7-menu-group {
    padding: 6px 4px;
}

.pga7-menu-group + .pga7-menu-group {
    border-top: 1px solid var(--pga7-line);
}

.pga7-menu-label {
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--pga7-text-faint);
    padding: 4px 10px 6px;
    font-weight: 700;
}

.pga7-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 10px;
    color: var(--pga7-text);
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.pga7-menu-link:hover,
.pga7-menu-link:focus {
    background: var(--pga7-bg-card);
    color: var(--pga7-accent);
    transform: translateY(-1px);
}

.pga7-menu-link .pga7-menu-ico {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: var(--pga7-accent);
    flex: 0 0 auto;
}

.pga7-menu-link.pga7-active {
    background: var(--pga7-bg-card);
    color: var(--pga7-accent);
}

/* ===================== Main ===================== */
.pga7-main {
    padding: 14px 12px calc(var(--pga7-bottom-h) + 28px);
}

/* ===================== Hero carousel ===================== */
.pga7-hero {
    position: relative;
    border-radius: var(--pga7-radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--pga7-bg-soft);
    box-shadow: var(--pga7-shadow);
}

.pga7-hero-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.pga7-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pga7-hero-slide.pga7-slide-active {
    opacity: 1;
}

.pga7-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pga7-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.05) 30%, rgba(26, 26, 46, 0.85) 100%);
    pointer-events: none;
}

.pga7-hero-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}

.pga7-hero-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.pga7-hero-sub {
    font-size: 12px;
    color: var(--pga7-text-dim);
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.pga7-hero-cta {
    display: inline-block;
    background: var(--pga7-accent);
    color: var(--pga7-bg);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.pga7-hero-cta:hover,
.pga7-hero-cta:focus {
    color: var(--pga7-bg);
    transform: translateY(-1px);
}

.pga7-hero-dots {
    position: absolute;
    bottom: 8px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 3;
}

.pga7-hero-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(240, 253, 255, 0.45);
    border: none;
    padding: 0;
}

.pga7-hero-dot.pga7-dot-active {
    background: var(--pga7-accent);
    width: 18px;
    border-radius: 3px;
}

/* ===================== Quick stat strip ===================== */
.pga7-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.pga7-strip-cell {
    background: var(--pga7-bg-card);
    border: 1px solid var(--pga7-line);
    border-radius: 12px;
    padding: 10px 6px;
    text-align: center;
}

.pga7-strip-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--pga7-accent);
    line-height: 1.1;
}

.pga7-strip-label {
    font-size: 10px;
    color: var(--pga7-text-dim);
    margin-top: 4px;
    letter-spacing: 0.3px;
}

/* ===================== Section ===================== */
.pga7-section {
    margin-bottom: 22px;
}

.pga7-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 10px;
}

.pga7-section-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: var(--pga7-text);
    position: relative;
    padding-left: 12px;
}

.pga7-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--pga7-accent) 0%, var(--pga7-accent-2) 100%);
}

.pga7-section-title small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--pga7-text-dim);
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.pga7-section-link {
    font-size: 12px;
    color: var(--pga7-accent);
    font-weight: 700;
    white-space: nowrap;
}

/* ===================== Game grid ===================== */
.pga7-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.pga7-game-card {
    background: var(--pga7-bg-card);
    border: 1px solid var(--pga7-line);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    display: flex;
    flex-direction: column;
}

.pga7-game-card:hover,
.pga7-game-card:focus {
    border-color: var(--pga7-accent);
    color: var(--pga7-text);
    transform: translateY(-1px);
}

.pga7-game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--pga7-bg-soft);
    display: block;
}

.pga7-game-name {
    font-size: 11px;
    line-height: 1.25;
    padding: 5px 4px 6px;
    color: var(--pga7-text-dim);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 30px;
}

.pga7-game-card:hover .pga7-game-name {
    color: var(--pga7-text);
}

/* 5 columns on slightly wider phones */
@media (min-width: 375px) {
    .pga7-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 9px;
    }
}

/* ===================== CTA block ===================== */
.pga7-cta-block {
    background: linear-gradient(135deg, #2A2A52 0%, #1F1F3A 100%);
    border: 1px solid var(--pga7-line-strong);
    border-radius: var(--pga7-radius-lg);
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
}

.pga7-cta-block::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 201, 60, 0.18) 0%, transparent 70%);
    top: -60px;
    right: -50px;
    pointer-events: none;
}

.pga7-cta-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    position: relative;
}

.pga7-cta-text {
    font-size: 13px;
    color: var(--pga7-text-dim);
    margin: 0 0 14px;
    position: relative;
}

.pga7-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pga7-accent);
    color: var(--pga7-bg);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    border: none;
    position: relative;
    min-height: 44px;
}

.pga7-cta-btn:hover,
.pga7-cta-btn:focus {
    color: var(--pga7-bg);
    transform: translateY(-1px);
}

.pga7-cta-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pga7-cta-btn-alt {
    background: transparent;
    color: var(--pga7-text);
    border: 1px solid var(--pga7-line-strong);
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.pga7-cta-btn-alt:hover,
.pga7-cta-btn-alt:focus {
    color: var(--pga7-accent);
    border-color: var(--pga7-accent);
}

/* ===================== Info / content blocks ===================== */
.pga7-prose {
    background: var(--pga7-bg-card);
    border: 1px solid var(--pga7-line);
    border-radius: var(--pga7-radius);
    padding: 16px 14px;
    margin-bottom: 16px;
}

.pga7-prose h2 {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--pga7-text);
    font-weight: 800;
    line-height: 1.3;
}

.pga7-prose h3 {
    font-size: 14px;
    margin: 14px 0 6px;
    color: var(--pga7-accent);
    font-weight: 700;
}

.pga7-prose p {
    margin: 0 0 10px;
    color: var(--pga7-text-dim);
    font-size: 13.5px;
    line-height: 1.6;
}

.pga7-prose a {
    color: var(--pga7-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pga7-prose ul, .pga7-prose ol {
    margin: 0 0 10px;
    padding-left: 18px;
    color: var(--pga7-text-dim);
    font-size: 13.5px;
}

.pga7-prose li {
    margin-bottom: 5px;
}

/* Compact feature row (2-col) */
.pga7-feature-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.pga7-feature {
    background: var(--pga7-bg-card);
    border: 1px solid var(--pga7-line);
    border-radius: 12px;
    padding: 12px;
}

.pga7-feature-ico {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--pga7-accent);
}

.pga7-feature-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--pga7-text);
}

.pga7-feature-text {
    font-size: 11.5px;
    color: var(--pga7-text-dim);
    line-height: 1.45;
    margin: 0;
}

/* Steps list */
.pga7-steps {
    counter-reset: pga7step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pga7-steps li {
    position: relative;
    padding: 10px 12px 10px 42px;
    background: var(--pga7-bg-card);
    border: 1px solid var(--pga7-line);
    border-radius: 10px;
    margin-bottom: 8px;
    counter-increment: pga7step;
    font-size: 13px;
    color: var(--pga7-text-dim);
}

.pga7-steps li::before {
    content: counter(pga7step);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--pga7-accent);
    color: var(--pga7-bg);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pga7-steps li strong {
    color: var(--pga7-text);
}

/* ===================== Extended footer ===================== */
.pga7-extended-footer {
    margin-top: 8px;
    background: var(--pga7-bg-soft);
    border: 1px solid var(--pga7-line);
    border-radius: var(--pga7-radius-lg);
    padding: 18px 14px;
}

.pga7-ef-group + .pga7-ef-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pga7-line);
}

.pga7-ef-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--pga7-accent);
    margin: 0 0 10px;
}

.pga7-ef-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pga7-ef-brand-row .pga7-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 auto;
}

.pga7-ef-brand-text {
    font-size: 12.5px;
    color: var(--pga7-text-dim);
    line-height: 1.5;
}

.pga7-ef-promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pga7-ef-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pga7-bg-card);
    border: 1px solid var(--pga7-line);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--pga7-text);
    cursor: pointer;
    transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.pga7-ef-promo:hover,
.pga7-ef-promo:focus {
    border-color: var(--pga7-accent);
    color: var(--pga7-accent);
    transform: translateY(-1px);
}

.pga7-ef-promo .pga7-ef-ico {
    color: var(--pga7-accent);
    font-size: 14px;
    flex: 0 0 auto;
}

/* Page directory grid */
.pga7-ef-directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.pga7-ef-directory a {
    font-size: 12px;
    color: var(--pga7-text-dim);
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(240, 253, 255, 0.03);
    border: 1px solid var(--pga7-line);
    transition: color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.pga7-ef-directory a:hover,
.pga7-ef-directory a:focus {
    color: var(--pga7-accent);
    background: var(--pga7-bg-card);
    transform: translateY(-1px);
}

.pga7-ef-disclaimer {
    font-size: 11px;
    color: var(--pga7-text-faint);
    line-height: 1.55;
    margin: 0;
}

/* ===================== Footer (universal) ===================== */
.pga7-footer {
    padding: 18px 14px calc(var(--pga7-bottom-h) + 14px);
    text-align: center;
    color: var(--pga7-text-faint);
    font-size: 11.5px;
    border-top: 1px solid var(--pga7-line);
    margin-top: 8px;
    background: var(--pga7-bg);
}

.pga7-footer-copy {
    margin: 0;
}

/* ===================== Bottom dock ===================== */
.pga7-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.pga7-bottom-bar {
    width: 100%;
    max-width: 430px;
    height: var(--pga7-bottom-h);
    background: linear-gradient(180deg, #20203D 0%, #16162C 100%);
    border-top: 1px solid var(--pga7-line-strong);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
}

.pga7-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px 6px;
    color: var(--pga7-text-faint);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    border-top: 3px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    min-height: 44px;
}

.pga7-nav-item:hover,
.pga7-nav-item:focus {
    color: var(--pga7-text);
    transform: translateY(-1px);
}

.pga7-nav-item.pga7-active {
    color: var(--pga7-accent);
    border-top-color: var(--pga7-accent);
    font-weight: 800;
}

.pga7-nav-ico {
    width: 22px;
    height: 22px;
    display: block;
}

.pga7-nav-label {
    line-height: 1;
}

/* Hide bottom nav outside the phone canvas perception (kept visible since fixed; desktop width capped) */
@media (min-width: 600px) {
    .pga7-bottom-bar {
        border-left: 1px solid var(--pga7-line);
        border-right: 1px solid var(--pga7-line);
    }
}

/* Lift micro-interaction */
.pga7-lift {
    transform: translateY(-2px);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--pga7-accent);
    outline-offset: 2px;
}

/* Skip link */
.pga7-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--pga7-accent);
    color: var(--pga7-bg);
    padding: 8px 14px;
    border-radius: 0 0 8px 0;
    z-index: 100;
    font-size: 12px;
    font-weight: 700;
}

.pga7-skip:focus {
    left: 0;
}
