/* ============================================================
 * Casino Plus Owner - core stylesheet
 * Every custom class and variable uses the c74eba- prefix so
 * shared assets never collide across sites.
 * Design language:
 *   Top bar   = tab-style header
 *   Menu      = slide-up route panel
 *   Bottom    = layered bottom navigation
 *   Icons     = monochrome icons with accent indicator
 *   Active    = top indicator line
 *   Motion    = sliding indicator micro-interaction
 * Palette   : #2D2D2D base / #A9A9A9 neutral / #F8F8FF text
 * ============================================================ */

:root {
    --c74eba-base: #2D2D2D;
    --c74eba-base-deep: #1f1f1f;
    --c74eba-base-soft: #363636;
    --c74eba-neutral: #A9A9A9;
    --c74eba-text: #F8F8FF;
    --c74eba-text-dim: #cfcfcf;
    --c74eba-line: rgba(248, 248, 255, 0.12);
    --c74eba-accent: #E0B65C;
    --c74eba-accent-deep: #C99838;
    --c74eba-accent-soft: rgba(224, 182, 92, 0.18);
    --c74eba-success: #6FCF97;
    --c74eba-canvas: 440px;
    --c74eba-radius: 14px;
    --c74eba-radius-sm: 10px;
    --c74eba-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --c74eba-tap: 44px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: #141414;
    color: var(--c74eba-text);
    font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c74eba-accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

button { font-family: inherit; }

/* Mobile canvas frame - centered phone canvas on wider screens */
.c74eba-canvas {
    max-width: var(--c74eba-canvas);
    margin: 0 auto;
    min-height: 100vh;
    background:
        radial-gradient(120% 60% at 50% -10%, rgba(224, 182, 92, 0.10), transparent 60%),
        linear-gradient(180deg, #2a2a2a 0%, #232323 40%, #1d1d1d 100%);
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    overflow-x: hidden;
}

/* ------------------------------------------------------------
 * Top tab-style header
 * ------------------------------------------------------------ */
.c74eba-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0.96), rgba(45, 45, 45, 0.92));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c74eba-line);
}

.c74eba-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    min-height: 56px;
}

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

.c74eba-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--c74eba-accent);
    box-shadow: 0 0 0 2px rgba(224, 182, 92, 0.12);
    flex-shrink: 0;
}

.c74eba-brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.c74eba-brand-name strong {
    color: var(--c74eba-text);
    font-size: 15px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.c74eba-brand-name span {
    color: var(--c74eba-accent);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.c74eba-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.c74eba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--c74eba-tap);
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
    background: transparent;
    color: var(--c74eba-text);
}

.c74eba-btn:hover { text-decoration: none; transform: translateY(-1px); }
.c74eba-btn:active { transform: translateY(0); }

.c74eba-btn-ghost {
    border-color: var(--c74eba-line);
    color: var(--c74eba-text);
    background: rgba(248, 248, 255, 0.04);
}

.c74eba-btn-accent {
    background: linear-gradient(135deg, var(--c74eba-accent), var(--c74eba-accent-deep));
    color: #1c1502;
    box-shadow: 0 6px 16px rgba(224, 182, 92, 0.28);
}

.c74eba-menu-trigger {
    width: var(--c74eba-tap);
    height: var(--c74eba-tap);
    border-radius: 12px;
    border: 1px solid var(--c74eba-line);
    background: rgba(248, 248, 255, 0.04);
    color: var(--c74eba-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.c74eba-menu-trigger:hover { text-decoration: none; }
.c74eba-menu-trigger svg { width: 22px; height: 22px; }

/* Tab strip under header */
.c74eba-tabstrip {
    display: flex;
    gap: 4px;
    padding: 6px 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.c74eba-tabstrip::-webkit-scrollbar { display: none; }

.c74eba-tab {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c74eba-text-dim);
    background: rgba(248, 248, 255, 0.05);
    border: 1px solid var(--c74eba-line);
    cursor: pointer;
    white-space: nowrap;
}

.c74eba-tab.c74eba-tab-on {
    color: #1c1502;
    background: linear-gradient(135deg, var(--c74eba-accent), var(--c74eba-accent-deep));
    border-color: transparent;
}

/* ------------------------------------------------------------
 * Slide-up route panel menu
 * ------------------------------------------------------------ */
.c74eba-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 70;
}
.c74eba-menu-backdrop.c74eba-backdrop-on {
    opacity: 1;
    visibility: visible;
}

.c74eba-menu-panel {
    position: fixed;
    left: 50%;
    transform: translate(-50%, 100%);
    bottom: 0;
    width: 100%;
    max-width: var(--c74eba-canvas);
    background: linear-gradient(180deg, #2c2c2c, #1f1f1f);
    border-top: 2px solid var(--c74eba-accent);
    border-radius: 22px 22px 0 0;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    z-index: 80;
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
    max-height: 78vh;
    overflow-y: auto;
}
.c74eba-menu-panel.c74eba-menu-open {
    transform: translate(-50%, 0);
}

.c74eba-menu-handle {
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: rgba(248, 248, 255, 0.22);
    margin: 0 auto 10px;
}

.c74eba-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.c74eba-menu-head h3 {
    margin: 0;
    font-size: 15px;
    color: var(--c74eba-text);
    letter-spacing: 0.4px;
}
.c74eba-menu-close {
    background: transparent;
    border: 0;
    color: var(--c74eba-neutral);
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

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

.c74eba-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    min-height: var(--c74eba-tap);
    border-radius: 12px;
    background: rgba(248, 248, 255, 0.04);
    border: 1px solid var(--c74eba-line);
    color: var(--c74eba-text);
    font-size: 13px;
    font-weight: 600;
}
.c74eba-menu-link:hover { text-decoration: none; background: rgba(224, 182, 92, 0.12); }
.c74eba-menu-link svg { width: 18px; height: 18px; color: var(--c74eba-accent); flex-shrink: 0; }

.c74eba-menu-link.c74eba-menu-link-promo {
    background: linear-gradient(135deg, rgba(224, 182, 92, 0.18), rgba(224, 182, 92, 0.06));
    border-color: rgba(224, 182, 92, 0.4);
    color: var(--c74eba-text);
}

/* ------------------------------------------------------------
 * Main content spacing
 * ------------------------------------------------------------ */
.c74eba-main {
    padding: 14px 12px 120px;
}

/* ------------------------------------------------------------
 * Hero carousel
 * ------------------------------------------------------------ */
.c74eba-hero {
    position: relative;
    border-radius: var(--c74eba-radius);
    overflow: hidden;
    box-shadow: var(--c74eba-shadow);
    margin-bottom: 14px;
}

.c74eba-carousel {
    position: relative;
    overflow: hidden;
}

.c74eba-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.c74eba-slide {
    flex: 0 0 100%;
    position: relative;
}

.c74eba-slide-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.c74eba-slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
    color: var(--c74eba-text);
}

.c74eba-slide-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #1c1502;
    background: var(--c74eba-accent);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.c74eba-slide-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
}

.c74eba-slide-text {
    margin: 0;
    font-size: 12.5px;
    color: var(--c74eba-text-dim);
}

.c74eba-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(248, 248, 255, 0.25);
    color: var(--c74eba-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}
.c74eba-carousel-arrow svg { width: 16px; height: 16px; }
.c74eba-carousel-prev { left: 8px; }
.c74eba-carousel-next { right: 8px; }

.c74eba-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 6;
}
.c74eba-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(248, 248, 255, 0.5);
    border: 0;
    padding: 0;
    cursor: pointer;
}
.c74eba-dot.c74eba-dot-active {
    background: var(--c74eba-accent);
    width: 18px;
    border-radius: 999px;
}

/* ------------------------------------------------------------
 * Quick promo action row
 * ------------------------------------------------------------ */
.c74eba-quick-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.c74eba-quick-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: var(--c74eba-radius);
    border: 1px solid var(--c74eba-line);
    background: rgba(248, 248, 255, 0.04);
    cursor: pointer;
    min-height: var(--c74eba-tap);
}
.c74eba-quick-card:hover { text-decoration: none; }
.c74eba-quick-card strong { color: var(--c74eba-text); font-size: 13.5px; }
.c74eba-quick-card span { color: var(--c74eba-neutral); font-size: 11.5px; }
.c74eba-quick-card.c74eba-quick-card-accent {
    background: linear-gradient(135deg, rgba(224, 182, 92, 0.18), rgba(224, 182, 92, 0.04));
    border-color: rgba(224, 182, 92, 0.35);
}
.c74eba-quick-card.c74eba-quick-card-accent strong { color: var(--c74eba-accent); }

/* ------------------------------------------------------------
 * Trust badge strip
 * ------------------------------------------------------------ */
.c74eba-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 18px;
}
.c74eba-trust-item {
    text-align: center;
    padding: 10px 4px;
    border-radius: var(--c74eba-radius-sm);
    background: rgba(248, 248, 255, 0.03);
    border: 1px solid var(--c74eba-line);
}
.c74eba-trust-item svg { width: 22px; height: 22px; color: var(--c74eba-accent); margin: 0 auto 4px; }
.c74eba-trust-item span { display: block; font-size: 10.5px; color: var(--c74eba-text-dim); }

/* ------------------------------------------------------------
 * Section heading
 * ------------------------------------------------------------ */
.c74eba-section {
    margin-bottom: 22px;
}

.c74eba-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--c74eba-line);
}

.c74eba-section-head h2 {
    margin: 0;
    font-size: 17px;
    color: var(--c74eba-text);
    line-height: 1.25;
}
.c74eba-section-head h2 small {
    display: block;
    font-size: 11px;
    color: var(--c74eba-accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: 700;
}

.c74eba-section-link {
    font-size: 12px;
    color: var(--c74eba-accent);
    font-weight: 600;
    flex-shrink: 0;
}

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

.c74eba-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    min-width: 0;
}

.c74eba-game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--c74eba-line);
    background: #1a1a1a;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.c74eba-game-card:hover .c74eba-game-thumb {
    transform: translateY(-2px);
    border-color: var(--c74eba-accent);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.c74eba-game-name {
    margin-top: 5px;
    font-size: 11px;
    color: var(--c74eba-text-dim);
    line-height: 1.25;
    min-height: 28px;
    word-break: break-word;
}

/* Hot badge */
.c74eba-game-card.c74eba-game-hot .c74eba-game-thumb {
    border-color: rgba(224, 182, 92, 0.45);
}
.c74eba-game-card.c74eba-game-hot::before {
    content: "HOT";
    position: absolute;
}

.c74eba-game-wrap {
    position: relative;
    width: 100%;
}
.c74eba-game-flag {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, var(--c74eba-accent), var(--c74eba-accent-deep));
    color: #1c1502;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

/* ------------------------------------------------------------
 * Info / content modules
 * ------------------------------------------------------------ */
.c74eba-module {
    background: rgba(248, 248, 255, 0.03);
    border: 1px solid var(--c74eba-line);
    border-radius: var(--c74eba-radius);
    padding: 14px;
    margin-bottom: 14px;
}

.c74eba-module h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--c74eba-accent);
}

.c74eba-module p {
    margin: 0 0 10px;
    color: var(--c74eba-text-dim);
    font-size: 13.5px;
}
.c74eba-module p:last-child { margin-bottom: 0; }

.c74eba-module ul {
    margin: 0 0 10px;
    padding-left: 18px;
    color: var(--c74eba-text-dim);
    font-size: 13.5px;
}
.c74eba-module ul:last-child { margin-bottom: 0; }
.c74eba-module li { margin-bottom: 5px; }

/* Feature grid inside modules */
.c74eba-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.c74eba-feature {
    padding: 10px;
    border-radius: var(--c74eba-radius-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--c74eba-line);
}
.c74eba-feature-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.c74eba-feature-head svg { width: 16px; height: 16px; color: var(--c74eba-accent); }
.c74eba-feature-head strong { font-size: 12.5px; color: var(--c74eba-text); }
.c74eba-feature p { margin: 0; font-size: 11.5px; color: var(--c74eba-text-dim); line-height: 1.4; }

/* Play styles comparison rows */
.c74eba-style-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--c74eba-line);
}
.c74eba-style-row:last-child { border-bottom: 0; }
.c74eba-style-label {
    color: var(--c74eba-accent);
    font-weight: 700;
    font-size: 12.5px;
}
.c74eba-style-text {
    color: var(--c74eba-text-dim);
    font-size: 12.5px;
}

/* Achievement chips */
.c74eba-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.c74eba-chip {
    background: rgba(224, 182, 92, 0.10);
    border: 1px solid rgba(224, 182, 92, 0.35);
    color: var(--c74eba-text);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
}
.c74eba-chip small { display: block; color: var(--c74eba-neutral); font-weight: 400; font-size: 10px; }

/* Fact list */
.c74eba-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: fact;
}
.c74eba-facts li {
    counter-increment: fact;
    position: relative;
    padding: 8px 8px 8px 32px;
    color: var(--c74eba-text-dim);
    font-size: 13px;
    border-bottom: 1px solid var(--c74eba-line);
}
.c74eba-facts li:last-child { border-bottom: 0; }
.c74eba-facts li::before {
    content: counter(fact);
    position: absolute;
    left: 4px;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c74eba-accent-soft);
    color: var(--c74eba-accent);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Takeaways */
.c74eba-takeaways {
    list-style: none;
    margin: 0;
    padding: 0;
}
.c74eba-takeaways li {
    padding: 8px 0 8px 26px;
    position: relative;
    color: var(--c74eba-text-dim);
    font-size: 13px;
    border-bottom: 1px solid var(--c74eba-line);
}
.c74eba-takeaways li:last-child { border-bottom: 0; }
.c74eba-takeaways li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(135deg, var(--c74eba-accent), var(--c74eba-accent-deep));
}

/* Intro lede */
.c74eba-lede {
    background: linear-gradient(135deg, rgba(224, 182, 92, 0.10), rgba(224, 182, 92, 0.02));
    border: 1px solid rgba(224, 182, 92, 0.25);
    border-radius: var(--c74eba-radius);
    padding: 14px;
    margin-bottom: 16px;
}
.c74eba-lede p {
    margin: 0 0 8px;
    color: var(--c74eba-text-dim);
    font-size: 13.5px;
}
.c74eba-lede p:last-child { margin-bottom: 0; }
.c74eba-lede strong { color: var(--c74eba-text); }

/* Inline promo link in body copy */
.c74eba-inline-promo {
    color: var(--c74eba-accent);
    font-weight: 700;
    cursor: pointer;
}

/* ------------------------------------------------------------
 * Extended footer (homepage only)
 * ------------------------------------------------------------ */
.c74eba-ext-footer {
    margin-top: 22px;
    padding: 16px;
    border-radius: var(--c74eba-radius);
    background: linear-gradient(180deg, #2a2a2a, #1e1e1e);
    border: 1px solid var(--c74eba-line);
}
.c74eba-ext-footer h2 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--c74eba-text);
}
.c74eba-ext-footer h3 {
    margin: 14px 0 6px;
    font-size: 12px;
    color: var(--c74eba-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.c74eba-ext-footer p {
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--c74eba-text-dim);
}

.c74eba-promo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}
.c74eba-promo-list li {
    margin: 0;
}
.c74eba-promo-list a,
.c74eba-promo-list button {
    display: flex;
    width: 100%;
    text-align: left;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(224, 182, 92, 0.08);
    border: 1px solid rgba(224, 182, 92, 0.25);
    color: var(--c74eba-text);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    min-height: var(--c74eba-tap);
}
.c74eba-promo-list a:hover,
.c74eba-promo-list button:hover {
    text-decoration: none;
    background: rgba(224, 182, 92, 0.18);
}
.c74eba-promo-list svg { width: 14px; height: 14px; color: var(--c74eba-accent); flex-shrink: 0; }

.c74eba-directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.c74eba-directory li { margin: 0; }
.c74eba-directory a {
    display: block;
    padding: 6px 0;
    color: var(--c74eba-text-dim);
    font-size: 12px;
    border-bottom: 1px solid var(--c74eba-line);
}
.c74eba-directory a:hover { color: var(--c74eba-accent); }

.c74eba-disclaimer {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--c74eba-accent);
    font-size: 11px;
    color: var(--c74eba-neutral);
}

/* ------------------------------------------------------------
 * Common footer (copyright)
 * ------------------------------------------------------------ */
.c74eba-footer-meta {
    text-align: center;
    padding: 10px 12px 14px;
    font-size: 11px;
    color: var(--c74eba-neutral);
}
.c74eba-footer-meta a { color: var(--c74eba-text-dim); }

/* ------------------------------------------------------------
 * Bottom navigation - layered bar
 * ------------------------------------------------------------ */
.c74eba-bottomnav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: var(--c74eba-canvas);
    z-index: 60;
    background: linear-gradient(180deg, rgba(31, 31, 31, 0.96), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--c74eba-line);
    padding-bottom: env(safe-area-inset-bottom);
}

.c74eba-bottomnav-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 6px 4px 6px;
}

/* Sliding indicator (top line) */
.c74eba-bottomnav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--c74eba-accent), var(--c74eba-accent-deep));
    border-radius: 0 0 999px 999px;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.c74eba-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px 4px;
    min-height: 52px;
    background: transparent;
    border: 0;
    color: var(--c74eba-neutral);
    cursor: pointer;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}
.c74eba-nav-item:hover { text-decoration: none; color: var(--c74eba-text); }

.c74eba-nav-item svg {
    width: 22px;
    height: 22px;
    color: var(--c74eba-neutral);
    transition: transform 0.18s ease, color 0.2s ease;
}

.c74eba-nav-item.c74eba-nav-active {
    color: var(--c74eba-text);
}
.c74eba-nav-item.c74eba-nav-active svg {
    color: var(--c74eba-accent);
    transform: translateY(-1px);
}

/* Layered center button (promo) */
.c74eba-nav-item.c74eba-nav-center {
    transform: translateY(-10px);
}
.c74eba-nav-center-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--c74eba-accent), var(--c74eba-accent-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(224, 182, 92, 0.35);
    margin-bottom: 2px;
}
.c74eba-nav-center-icon svg {
    width: 24px;
    height: 24px;
    color: #1c1502;
}

.c74eba-nav-label {
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ------------------------------------------------------------
 * Utility / helpers
 * ------------------------------------------------------------ */
.c74eba-no-scroll { overflow: hidden; }

.c74eba-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.c74eba-top-btn {
    position: fixed;
    right: 14px;
    bottom: 88px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(31, 31, 31, 0.92);
    border: 1px solid var(--c74eba-line);
    color: var(--c74eba-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 55;
    box-shadow: var(--c74eba-shadow);
    cursor: pointer;
}
.c74eba-top-btn svg { width: 18px; height: 18px; }

/* Responsive tweaks for 375-430px phones */
@media (min-width: 360px) {
    .c74eba-main { padding: 16px 14px 120px; }
    .c74eba-brand-name strong { font-size: 16px; }
    .c74eba-section-head h2 { font-size: 18px; }
}

@media (min-width: 410px) {
    .c74eba-game-grid { gap: 10px; }
    .c74eba-game-name { font-size: 11.5px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .c74eba-carousel-track,
    .c74eba-menu-panel,
    .c74eba-bottomnav-indicator,
    .c74eba-nav-item svg {
        transition: none !important;
    }
}

/* Help-page reading layouts: long-form guidance remains scannable on narrow screens. */
.c74eba-help-hero {
    padding: 18px 16px;
    border: 1px solid rgba(224, 182, 92, 0.35);
    border-radius: 18px 8px 18px 8px;
    background: linear-gradient(135deg, rgba(224, 182, 92, 0.16), rgba(248, 248, 255, 0.03));
    margin-bottom: 16px;
}
.c74eba-help-hero h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.15; }
.c74eba-help-hero p { margin: 0 0 10px; color: var(--c74eba-text-dim); font-size: 14px; }
.c74eba-help-hero p:last-child { margin-bottom: 0; }
.c74eba-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.c74eba-help-actions .c74eba-btn { flex: 1 1 125px; }
.c74eba-question-list { display: grid; gap: 8px; }
.c74eba-question-list details { border: 1px solid var(--c74eba-line); border-radius: 12px; background: rgba(0,0,0,0.18); overflow: hidden; }
.c74eba-question-list summary { min-height: 44px; padding: 12px 14px; cursor: pointer; color: var(--c74eba-text); font-weight: 700; list-style-position: inside; }
.c74eba-question-list details p { padding: 0 14px 13px; margin: 0; color: var(--c74eba-text-dim); font-size: 13px; }
.c74eba-checklist { list-style: none; padding: 0; margin: 0; counter-reset: helpstep; }
.c74eba-checklist li { counter-increment: helpstep; display: grid; grid-template-columns: 32px 1fr; gap: 9px; padding: 11px 0; border-bottom: 1px dashed var(--c74eba-line); color: var(--c74eba-text-dim); font-size: 13.5px; }
.c74eba-checklist li:last-child { border-bottom: 0; }
.c74eba-checklist li::before { content: counter(helpstep); width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--c74eba-accent); color: #1c1502; font-weight: 800; font-size: 12px; }
.c74eba-callout { border-left: 3px solid var(--c74eba-accent); padding: 11px 13px; background: rgba(224,182,92,0.08); color: var(--c74eba-text-dim); font-size: 13px; margin: 12px 0; }
.c74eba-fact-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.c74eba-fact-table th, .c74eba-fact-table td { text-align: left; vertical-align: top; padding: 9px 7px; border-bottom: 1px solid var(--c74eba-line); }
.c74eba-fact-table th { color: var(--c74eba-accent); width: 35%; font-weight: 700; }
.c74eba-fact-table td { color: var(--c74eba-text-dim); }
.c74eba-route { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.c74eba-route li { position: relative; padding: 0 0 17px 32px; color: var(--c74eba-text-dim); font-size: 13.5px; }
.c74eba-route li::before { content: ""; position: absolute; left: 7px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: var(--c74eba-accent); box-shadow: 0 0 0 4px rgba(224,182,92,0.14); }
.c74eba-route li::after { content: ""; position: absolute; left: 12px; top: 16px; bottom: 0; width: 1px; background: var(--c74eba-line); }
.c74eba-route li:last-child::after { display: none; }
.c74eba-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.c74eba-note-grid div { padding: 11px; border-radius: 10px; background: rgba(248,248,255,0.04); border: 1px solid var(--c74eba-line); }
.c74eba-note-grid strong { display: block; color: var(--c74eba-accent); font-size: 12px; margin-bottom: 4px; }
.c74eba-note-grid span { color: var(--c74eba-text-dim); font-size: 11.5px; line-height: 1.4; }
@media (max-width: 340px) {
    .c74eba-note-grid { grid-template-columns: 1fr; }
    .c74eba-help-hero h1 { font-size: 22px; }
}
