/* ============================================================
   em7.click - 0775-design.css
   Mobile-first 320-430px canvas. Linear icons + filled active
   state. Centered identity header, full-height menu layer and
   brand-accent bottom band. All classes use `v516-` prefix.
   ============================================================ */

:root {
    --v516-bg: #0D1117;
    --v516-bg-soft: #141a23;
    --v516-bg-card: #1a2230;
    --v516-bg-elev: #222c3c;
    --v516-pink: #FF69B4;
    --v516-pink-deep: #B03060;
    --v516-pink-soft: rgba(255, 105, 180, 0.16);
    --v516-text: #f4f6fb;
    --v516-text-soft: #aab4c5;
    --v516-text-mute: #7e8a9e;
    --v516-border: rgba(255, 255, 255, 0.08);
    --v516-border-pink: rgba(255, 105, 180, 0.35);
    --v516-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --v516-radius: 14px;
    --v516-radius-sm: 10px;
    --v516-radius-lg: 20px;
    --v516-header-h: 60px;
    --v516-bottom-h: 64px;
    --v516-max-w: 430px;
    --v516-glow: 0 0 18px rgba(255, 105, 180, 0.55);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--v516-bg);
    color: var(--v516-text);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

.v516-lock { overflow: hidden; }

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

a { color: var(--v516-pink); text-decoration: none; }
a:hover, a:focus { color: #ffd1e8; }

button { font-family: inherit; }

/* Outer wrapper keeps the canvas centered on wider screens */
.v516-canvas {
    max-width: var(--v516-max-w);
    margin: 0 auto;
    background: var(--v516-bg);
    min-height: 100vh;
    box-shadow: var(--v516-shadow);
    position: relative;
}

/* ============================================================
   Identity header (centered)
   ============================================================ */
.v516-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--v516-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    background: linear-gradient(180deg, rgba(13,17,23,0.98) 0%, rgba(13,17,23,0.92) 100%);
    border-bottom: 1px solid var(--v516-border);
    backdrop-filter: blur(8px);
}

.v516-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.v516-brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid var(--v516-border-pink);
    box-shadow: 0 0 0 2px rgba(255,105,180,0.12);
    background: #fff;
    flex-shrink: 0;
}
.v516-brand__name {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.4px;
    background: linear-gradient(90deg, var(--v516-pink) 0%, #ffd1e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}
.v516-brand__tag {
    display: none;
    font-size: 10px;
    color: var(--v516-text-mute);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.v516-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.v516-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.v516-btn--login {
    background: transparent;
    color: var(--v516-text);
    border: 1px solid var(--v516-border-pink);
}
.v516-btn--login:hover { background: var(--v516-pink-soft); }
.v516-btn--register {
    background: linear-gradient(90deg, var(--v516-pink) 0%, var(--v516-pink-deep) 100%);
    color: #fff;
    box-shadow: var(--v516-glow);
}
.v516-btn--register:hover { transform: translateY(-1px); }
.v516-btn--menu {
    background: transparent;
    color: var(--v516-text);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--v516-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 0;
}
.v516-btn--menu span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--v516-text);
    border-radius: 2px;
}

/* ============================================================
   Full-height menu layer
   ============================================================ */
.v516-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    visibility: hidden;
}
.v516-menu--open { transform: translateX(0); visibility: visible; }
.v516-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}
.v516-menu__panel {
    position: relative;
    z-index: 1;
    max-width: var(--v516-max-w);
    margin: 0 auto;
    padding: 20px 18px 80px;
}
.v516-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.v516-menu__title {
    font-size: 14px;
    color: var(--v516-text-mute);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.v516-menu__close {
    background: transparent;
    color: var(--v516-text);
    border: 1px solid var(--v516-border);
    width: 36px; height: 36px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
}
.v516-menu__list { list-style: none; margin: 0; padding: 0; }
.v516-menu__list li { margin: 0; padding: 0; }
.v516-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: var(--v516-text);
    border-bottom: 1px solid var(--v516-border);
    font-weight: 600;
    font-size: 15px;
}
.v516-menu__link:hover {
    background: var(--v516-pink-soft);
    color: var(--v516-pink);
    padding-left: 16px;
}
.v516-menu__dot {
    width: 8px; height: 8px;
    background: var(--v516-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--v516-pink);
    flex-shrink: 0;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.v516-main { padding: 14px 12px 24px; }
.v516-section { margin: 22px 0; }
.v516-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}
.v516-section__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    position: relative;
    padding-left: 12px;
}
.v516-section__title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 4px;
    background: linear-gradient(180deg, var(--v516-pink) 0%, var(--v516-pink-deep) 100%);
    border-radius: 2px;
}
.v516-section__more {
    font-size: 12px;
    color: var(--v516-pink);
    font-weight: 700;
}

/* ============================================================
   Hero carousel
   ============================================================ */
.v516-hero {
    position: relative;
    border-radius: var(--v516-radius);
    overflow: hidden;
    background: var(--v516-bg-soft);
    box-shadow: var(--v516-shadow);
    margin: 4px 0 18px;
}
.v516-hero__track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.v516-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}
.v516-hero__slide--active { opacity: 1; }
.v516-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.v516-hero__caption {
    position: absolute;
    left: 12px; right: 12px; bottom: 14px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}
.v516-hero__caption h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
}
.v516-hero__caption p {
    margin: 0;
    font-size: 12px;
    color: #ffe1f0;
}
.v516-hero__dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.v516-hero__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 0;
    padding: 0;
    cursor: pointer;
}
.v516-hero__dot--active { background: var(--v516-pink); box-shadow: var(--v516-glow); }

/* ============================================================
   Quick category chips (smooth scroll only)
   ============================================================ */
.v516-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.v516-chips::-webkit-scrollbar { display: none; }
.v516-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--v516-bg-card);
    color: var(--v516-text-soft);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--v516-border);
    text-transform: capitalize;
}

/* ============================================================
   Game grid (4 columns on 320px, 4-5 on wider)
   ============================================================ */
.v516-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
@media (min-width: 375px) {
    .v516-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}
.v516-tile {
    display: block;
    background: var(--v516-bg-card);
    border-radius: var(--v516-radius-sm);
    border: 1px solid var(--v516-border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
}
.v516-tile:hover, .v516-tile:focus {
    transform: translateY(-2px);
    border-color: var(--v516-border-pink);
    box-shadow: 0 6px 16px rgba(255,105,180,0.18);
}
.v516-tile__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #050709;
}
.v516-tile__name {
    font-size: 11px;
    font-weight: 600;
    color: var(--v516-text-soft);
    padding: 5px 4px 6px;
    line-height: 1.25;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ============================================================
   Feature / info cards
   ============================================================ */
.v516-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.v516-card {
    background: var(--v516-bg-card);
    border: 1px solid var(--v516-border);
    border-radius: var(--v516-radius);
    padding: 14px;
}
.v516-card__icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--v516-pink-soft);
    color: var(--v516-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 18px;
}
.v516-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    color: var(--v516-text);
}
.v516-card p {
    margin: 0;
    font-size: 12.5px;
    color: var(--v516-text-soft);
}

/* ============================================================
   Editorial / SEO content blocks
   ============================================================ */
.v516-prose {
    background: var(--v516-bg-soft);
    border-radius: var(--v516-radius);
    border: 1px solid var(--v516-border);
    padding: 16px;
}
.v516-prose h2 {
    font-size: 17px;
    margin: 0 0 8px;
    color: var(--v516-text);
}
.v516-prose h3 {
    font-size: 14px;
    margin: 14px 0 6px;
    color: var(--v516-pink);
}
.v516-prose p {
    margin: 0 0 10px;
    color: var(--v516-text-soft);
    font-size: 13.5px;
}
.v516-prose ul { margin: 0 0 10px; padding-left: 18px; color: var(--v516-text-soft); font-size: 13.5px; }
.v516-prose li { margin-bottom: 4px; }
.v516-prose a { font-weight: 600; }

/* ============================================================
   Promo banner strip
   ============================================================ */
.v516-strip {
    background: linear-gradient(90deg, var(--v516-pink-deep) 0%, var(--v516-pink) 100%);
    border-radius: var(--v516-radius);
    padding: 14px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: var(--v516-shadow);
}
.v516-strip__text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.v516-strip__cta {
    background: #fff;
    color: var(--v516-pink-deep);
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    border: 0;
    flex-shrink: 0;
    cursor: pointer;
}

/* ============================================================
   Extended footer (home page only)
   ============================================================ */
.v516-extended {
    background: var(--v516-bg-soft);
    border-top: 1px solid var(--v516-border-pink);
    border-radius: var(--v516-radius-lg) var(--v516-radius-lg) 0 0;
    padding: 22px 14px 18px;
    margin-top: 24px;
}
.v516-extended__brand {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.v516-extended__brand img {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid var(--v516-border-pink);
    background: #fff;
}
.v516-extended__brand p {
    margin: 0;
    font-size: 12.5px;
    color: var(--v516-text-soft);
}
.v516-extended__title {
    font-size: 12px;
    color: var(--v516-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 16px 0 8px;
}
.v516-extended__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.v516-extended__links a {
    color: var(--v516-text-soft);
    font-size: 12.5px;
    padding: 4px 0;
    display: inline-block;
}
.v516-extended__links a:hover { color: var(--v516-pink); }
.v516-extended__promo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 6px;
}
.v516-extended__promo button {
    padding: 10px;
    border-radius: var(--v516-radius-sm);
    background: var(--v516-bg-card);
    color: var(--v516-text);
    border: 1px solid var(--v516-border-pink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.v516-extended__promo button:hover { background: var(--v516-pink-soft); }
.v516-extended__disclaimer {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,105,180,0.06);
    border: 1px solid var(--v516-border);
    border-radius: var(--v516-radius-sm);
    font-size: 11.5px;
    color: var(--v516-text-mute);
    line-height: 1.5;
}

/* ============================================================
   Footer
   ============================================================ */
.v516-footer {
    background: #06090d;
    color: var(--v516-text-mute);
    text-align: center;
    padding: 16px 14px calc(var(--v516-bottom-h) + 18px);
    font-size: 11.5px;
    border-top: 1px solid var(--v516-border);
}
.v516-footer a { color: var(--v516-text-soft); margin: 0 6px; }
.v516-footer__copy {
    margin-top: 8px;
    font-size: 11px;
    color: var(--v516-text-mute);
}

/* ============================================================
   Bottom navigation band (fixed)
   ============================================================ */
.v516-bottom {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    max-width: var(--v516-max-w);
    margin: 0 auto;
    height: var(--v516-bottom-h);
    background: linear-gradient(180deg, rgba(20,26,35,0.98) 0%, rgba(13,17,23,1) 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--v516-pink-deep) 0%, var(--v516-pink) 50%, var(--v516-pink-deep) 100%) 1;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding: 0 4px;
}
.v516-bottom__item {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--v516-text-mute);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}
.v516-bottom__item svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.v516-bottom__item:hover { color: var(--v516-text-soft); }
.v516-bottom__item--active {
    color: var(--v516-pink);
    transform: translateY(-3px);
}
.v516-bottom__item--active svg {
    fill: var(--v516-pink);
    stroke: var(--v516-pink);
    filter: drop-shadow(0 0 6px rgba(255,105,180,0.7));
}
.v516-bottom__item--promo {
    color: #ffd1e8;
}
.v516-bottom__item--promo svg {
    stroke: var(--v516-pink);
}

/* ============================================================
   Help page reading surfaces
   ============================================================ */
.v516-page-title {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.35px;
    margin: 10px 0 10px;
    color: var(--v516-text);
}
.v516-lead {
    margin: 0 0 14px;
    color: var(--v516-text-soft);
    font-size: 14px;
}
.v516-step-list {
    list-style: none;
    counter-reset: v516-step;
    margin: 0;
    padding: 0;
}
.v516-step-list li {
    counter-increment: v516-step;
    position: relative;
    padding: 12px 12px 12px 48px;
    margin: 0 0 8px;
    background: var(--v516-bg-card);
    border: 1px solid var(--v516-border);
    border-radius: var(--v516-radius-sm);
    color: var(--v516-text-soft);
    font-size: 13px;
}
.v516-step-list li::before {
    content: counter(v516-step, decimal-leading-zero);
    position: absolute;
    left: 12px;
    top: 11px;
    color: var(--v516-pink);
    font-weight: 800;
    letter-spacing: .5px;
}
.v516-callout {
    border-left: 3px solid var(--v516-pink);
    padding: 11px 13px;
    background: var(--v516-pink-soft);
    border-radius: 0 var(--v516-radius-sm) var(--v516-radius-sm) 0;
    color: var(--v516-text-soft);
    font-size: 13px;
}
.v516-qa {
    border-bottom: 1px solid var(--v516-border);
    padding: 12px 0;
}
.v516-qa:last-child { border-bottom: 0; }
.v516-qa h3 { margin: 0 0 5px; font-size: 14px; color: var(--v516-text); }
.v516-qa p { margin: 0; }
.v516-tool-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 10px 0;
}
.v516-tool {
    padding: 12px;
    background: var(--v516-bg-card);
    border-radius: var(--v516-radius-sm);
    border: 1px solid var(--v516-border);
}
.v516-tool strong { display: block; margin-bottom: 4px; color: var(--v516-pink); font-size: 13px; }
.v516-tool span { display: block; color: var(--v516-text-soft); font-size: 12px; }
.v516-help-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.v516-help-actions button { min-height: 44px; }

/* ============================================================
   Misc
   ============================================================ */
.v516-hidden { display: none !important; }
.v516-visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* Larger screens: keep mobile canvas centered */
@media (min-width: 480px) {
    .v516-brand__tag { display: inline; }
}
