/* ============================================================
 * ph1xbet.cfd - base-ph1xbet-e373.css
 * Mobile-first (320-430px) styling for ph1xbet basefiles.
 * All custom classes and CSS variables use the g73a- prefix.
 * Palette: dark backgrounds (#1E1E1E, #36454F, #2C3E50) with
 * light accents (#E9967A coral, #B03060 deep rose).
 * ============================================================ */

:root {
    --g73a-bg-deep: #1E1E1E;
    --g73a-bg-stone: #36454F;
    --g73a-bg-slate: #2C3E50;
    --g73a-accent: #E9967A;
    --g73a-rose: #B03060;
    --g73a-ink: #FFFFFF;
    --g73a-ink-soft: #E7E3DE;
    --g73a-muted: #9FB0BB;
    --g73a-line: rgba(233, 150, 122, 0.18);
    --g73a-card: #283744;
    --g73a-card-2: #243240;
    --g73a-grad: linear-gradient(135deg, #B03060 0%, #E9967A 100%);
    --g73a-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    --g73a-radius: 14px;
    --g73a-radius-lg: 18px;
    --g73a-tap: 44px;
    --g73a-bar-h: 60px;
    --g73a-header-h: 58px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: var(--g73a-bg-deep);
    color: var(--g73a-ink-soft);
    line-height: 1.55;
    font-size: 15px;
    overflow-x: hidden;
}

body.g73a-lock-scroll {
    overflow: hidden;
}

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

a:hover,
a:focus {
    color: #F6B597;
    text-decoration: underline;
}

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

h1, h2, h3, h4 {
    color: var(--g73a-ink);
    margin: 0 0 0.5em;
    line-height: 1.25;
}

p { margin: 0 0 0.85em; }

ul { padding-left: 1.1em; }

/* ============================================================
 * Layout shell - keep the phone canvas centered on wide screens
 * ============================================================ */

.g73a-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: var(--g73a-bg-deep);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.4);
}

/* ============================================================
 * Header / functional top bar (edge-aligned)
 * ============================================================ */

.g73a-header {
    position: sticky;
    top: 0;
    z-index: 60;
    height: var(--g73a-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: linear-gradient(180deg, #1B1B1B 0%, #242424 100%);
    border-bottom: 1px solid var(--g73a-line);
}

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

.g73a-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 6px rgba(176, 48, 96, 0.45);
    flex-shrink: 0;
}

.g73a-brand-name {
    font-weight: 800;
    color: var(--g73a-ink);
    font-size: 17px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g73a-brand-name span {
    color: var(--g73a-accent);
}

.g73a-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.g73a-btn {
    -webkit-tap-highlight-color: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    min-height: var(--g73a-tap);
    padding: 0 14px;
    border-radius: 10px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--g73a-ink);
}

.g73a-btn:active {
    transform: scale(0.94);
}

.g73a-btn--login {
    background: transparent;
    color: var(--g73a-accent);
    border: 1px solid var(--g73a-accent);
}

.g73a-btn--login:focus-visible {
    outline: 2px solid var(--g73a-accent);
    outline-offset: 2px;
}

.g73a-btn--register {
    background: var(--g73a-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(176, 48, 96, 0.45);
}

.g73a-btn--ghost {
    background: var(--g73a-bg-stone);
    color: var(--g73a-ink);
}

.g73a-icon-btn {
    width: var(--g73a-tap);
    height: var(--g73a-tap);
    border-radius: 10px;
    background: transparent;
    border: 1px solid var(--g73a-line);
    color: var(--g73a-ink-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.g73a-icon-btn:active {
    transform: scale(0.92);
}

.g73a-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ============================================================
 * Expandable navigation drawer
 * ============================================================ */

.g73a-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(160deg, #202020 0%, #2C3E50 100%);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.26s ease;
    overflow-y: auto;
    padding: 18px 16px calc(var(--g73a-bar-h) + 24px);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.45);
}

.g73a-nav-drawer--open {
    transform: translateX(0);
}

.g73a-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.g73a-nav-drawer--open ~ .g73a-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.g73a-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--g73a-line);
}

.g73a-drawer-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--g73a-accent);
}

.g73a-drawer-close {
    background: transparent;
    border: 1px solid var(--g73a-line);
    color: var(--g73a-ink);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}

.g73a-drawer-section {
    margin-bottom: 18px;
}

.g73a-drawer-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--g73a-muted);
    margin: 0 0 8px;
}

.g73a-drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    color: var(--g73a-ink-soft);
    border-radius: 10px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease;
    font-size: 14px;
}

.g73a-drawer-link:active {
    transform: scale(0.98);
}

.g73a-drawer-link:hover,
.g73a-drawer-link:focus {
    text-decoration: none;
    background: rgba(233, 150, 122, 0.08);
    border-color: var(--g73a-line);
    color: var(--g73a-ink);
}

.g73a-drawer-link .g73a-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--g73a-accent);
    flex-shrink: 0;
}

/* ============================================================
 * Hero / promo banner carousel
 * ============================================================ */

.g73a-main {
    padding: 14px 12px calc(var(--g73a-bar-h) + 28px);
}

.g73a-banner {
    position: relative;
    border-radius: var(--g73a-radius-lg);
    overflow: hidden;
    box-shadow: var(--g73a-shadow);
    margin-bottom: 16px;
    background: #111;
}

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

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

.g73a-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g73a-banner-slide--active {
    opacity: 1;
}

.g73a-banner-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px calc(12px + 28px);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
    color: #fff;
    pointer-events: none;
}

.g73a-banner-cap span {
    display: inline-block;
    background: var(--g73a-grad);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
    font-weight: 700;
}

.g73a-banner-cap strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.g73a-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.g73a-banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s ease, width 0.2s ease;
    pointer-events: auto;
}

.g73a-banner-dot--active {
    background: var(--g73a-accent);
    width: 18px;
    border-radius: 4px;
}

/* ============================================================
 * Quick category chips
 * ============================================================ */

.g73a-chips {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.g73a-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 9px 4px;
    background: var(--g73a-card);
    border: 1px solid var(--g73a-line);
    border-radius: 12px;
    color: var(--g73a-ink-soft);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    min-height: var(--g73a-tap);
    justify-content: center;
}

.g73a-chip:active {
    transform: scale(0.94);
}

.g73a-chip:hover,
.g73a-chip:focus {
    text-decoration: none;
    color: var(--g73a-ink);
    border-color: var(--g73a-accent);
    background: rgba(233, 150, 122, 0.08);
}

.g73a-chip svg {
    width: 22px;
    height: 22px;
    fill: var(--g73a-accent);
}

/* ============================================================
 * Section heading
 * ============================================================ */

.g73a-section {
    margin-bottom: 22px;
}

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

.g73a-section-head h2 {
    font-size: 17px;
    margin: 0;
    position: relative;
    padding-left: 12px;
}

.g73a-section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--g73a-grad);
    border-radius: 3px;
}

.g73a-section-head .g73a-more {
    font-size: 12px;
    color: var(--g73a-accent);
    font-weight: 700;
}

/* ============================================================
 * Game grid - dense mobile grid (4 cols at 320px)
 * ============================================================ */

.g73a-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.g73a-grid--cards {
    grid-template-columns: repeat(4, 1fr);
}

.g73a-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--g73a-card-2);
    border: 1px solid var(--g73a-line);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    color: var(--g73a-ink-soft);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.g73a-tile:active {
    transform: scale(0.95);
}

.g73a-tile:hover,
.g73a-tile:focus {
    text-decoration: none;
    color: var(--g73a-ink);
    border-color: var(--g73a-accent);
    box-shadow: 0 4px 14px rgba(176, 48, 96, 0.3);
}

.g73a-tile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0e0e0e;
    display: block;
}

.g73a-tile-name {
    font-size: 11px;
    line-height: 1.25;
    padding: 5px 4px 6px;
    color: var(--g73a-ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* ============================================================
 * Horizontal promo shortcut strip
 * ============================================================ */

.g73a-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.g73a-strip-tile {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2C3E50, #B03060);
    color: #fff;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--g73a-line);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.g73a-strip-tile:active {
    transform: scale(0.97);
}

.g73a-strip-tile--alt {
    background: linear-gradient(135deg, #36454F, #E9967A);
}

.g73a-strip-tile strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.g73a-strip-tile small {
    font-size: 11px;
    opacity: 0.9;
}

/* ============================================================
 * Winners list
 * ============================================================ */

.g73a-winners {
    background: var(--g73a-card);
    border-radius: var(--g73a-radius);
    border: 1px solid var(--g73a-line);
    overflow: hidden;
}

.g73a-winners-head {
    padding: 10px 12px;
    background: rgba(176, 48, 96, 0.18);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--g73a-accent);
    font-weight: 700;
    font-size: 13px;
}

.g73a-winners-head .g73a-pulse {
    width: 8px;
    height: 8px;
    background: var(--g73a-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(233, 150, 122, 0.7);
    animation: g73a-pulse 1.6s infinite;
}

@keyframes g73a-pulse {
    0% { box-shadow: 0 0 0 0 rgba(233, 150, 122, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(233, 150, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(233, 150, 122, 0); }
}

.g73a-winner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.g73a-winner-row .g73a-wname {
    color: var(--g73a-ink);
    font-weight: 600;
}

.g73a-winner-row .g73a-wgame {
    color: var(--g73a-muted);
    font-size: 11px;
}

.g73a-winner-row .g73a-wamt {
    color: var(--g73a-accent);
    font-weight: 700;
}

/* ============================================================
 * Info / text blocks
 * ============================================================ */

.g73a-prose {
    background: var(--g73a-card);
    border: 1px solid var(--g73a-line);
    border-radius: var(--g73a-radius);
    padding: 14px;
    font-size: 14px;
    color: var(--g73a-ink-soft);
}

.g73a-prose h2 {
    font-size: 16px;
    color: var(--g73a-ink);
    margin-top: 0;
}

.g73a-prose h3 {
    font-size: 14px;
    color: var(--g73a-accent);
    margin-top: 12px;
}

.g73a-prose a {
    color: var(--g73a-accent);
    text-decoration: underline;
}

.g73a-prose ul {
    margin: 0 0 0.6em;
    padding-left: 1.1em;
}

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

/* ============================================================
 * Style highlights row (icon tiles)
 * ============================================================ */

.g73a-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.g73a-style-card {
    background: var(--g73a-card-2);
    border: 1px solid var(--g73a-line);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    color: var(--g73a-ink-soft);
    font-size: 11px;
    line-height: 1.3;
}

.g73a-style-card svg {
    width: 26px;
    height: 26px;
    fill: var(--g73a-accent);
    margin-bottom: 5px;
}

.g73a-style-card strong {
    display: block;
    color: var(--g73a-ink);
    font-size: 12px;
    margin-bottom: 2px;
}

/* ============================================================
 * Payment & app strip
 * ============================================================ */

.g73a-row-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.g73a-pay {
    background: var(--g73a-card-2);
    border: 1px solid var(--g73a-line);
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    font-size: 10px;
    color: var(--g73a-ink-soft);
    font-weight: 600;
}

.g73a-pay span {
    display: block;
    color: var(--g73a-accent);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 2px;
}

.g73a-app {
    background: linear-gradient(135deg, #2C3E50, #1E1E1E);
    border: 1px solid var(--g73a-line);
    border-radius: var(--g73a-radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.g73a-app-text strong {
    display: block;
    color: var(--g73a-ink);
    font-size: 15px;
    margin-bottom: 2px;
}

.g73a-app-text small {
    color: var(--g73a-muted);
    font-size: 12px;
}

.g73a-app-btn {
    margin-left: auto;
    background: var(--g73a-grad);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    min-height: var(--g73a-tap);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease;
}

.g73a-app-btn:active {
    transform: scale(0.94);
}

/* ============================================================
 * Site footer (extended homepage footer above global bottom bar)
 * ============================================================ */

.g73a-foot {
    background: #161616;
    border-top: 1px solid var(--g73a-line);
    margin: 16px -12px 0;
    padding: 18px 14px 8px;
}

.g73a-foot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.g73a-foot-brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    object-fit: cover;
}

.g73a-foot-brand strong {
    color: var(--g73a-ink);
    font-size: 16px;
}

.g73a-foot-brand strong span {
    color: var(--g73a-accent);
}

.g73a-foot-intro {
    font-size: 13px;
    color: var(--g73a-muted);
    margin-bottom: 14px;
    line-height: 1.55;
}

.g73a-foot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 10px;
    margin-bottom: 14px;
}

.g73a-foot-link {
    display: block;
    padding: 8px 10px;
    background: var(--g73a-card);
    border: 1px solid var(--g73a-line);
    border-radius: 8px;
    font-size: 12px;
    color: var(--g73a-ink-soft);
    text-align: center;
    transition: transform 0.12s ease, border-color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.g73a-foot-link:active {
    transform: scale(0.96);
}

.g73a-foot-link:hover,
.g73a-foot-link:focus {
    text-decoration: none;
    color: var(--g73a-ink);
    border-color: var(--g73a-accent);
}

.g73a-foot-promos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.g73a-foot-promo {
    padding: 9px;
    background: linear-gradient(135deg, #36454F, #B03060);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease;
}

.g73a-foot-promo:active {
    transform: scale(0.96);
}

.g73a-foot-promo--alt {
    background: linear-gradient(135deg, #2C3E50, #E9967A);
}

.g73a-foot-disclaimer {
    font-size: 11px;
    color: var(--g73a-muted);
    line-height: 1.55;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    padding-top: 10px;
    margin-top: 6px;
}

.g73a-foot-copy {
    font-size: 11px;
    color: var(--g73a-muted);
    text-align: center;
    padding: 10px 0 4px;
}

/* ============================================================
 * Mobile bottom navigation bar (layered, 5 roles)
 * ============================================================ */

.g73a-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    height: var(--g73a-bar-h);
    background: linear-gradient(180deg, #202020, #141414);
    border-top: 1px solid var(--g73a-line);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.45);
    max-width: 460px;
    margin: 0 auto;
}

.g73a-bar-btn {
    flex: 1 1 0;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--g73a-muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 4px 2px;
    position: relative;
    transition: color 0.14s ease, transform 0.14s ease;
}

.g73a-bar-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.16s ease;
}

.g73a-bar-btn:active {
    transform: scale(0.92);
}

.g73a-bar-btn--active {
    color: var(--g73a-accent);
}

.g73a-bar-btn--active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--g73a-grad);
}

.g73a-bar-btn--active svg {
    transform: translateY(-2px) scale(1.05);
}

.g73a-bar-btn--promo {
    color: var(--g73a-accent);
}

.g73a-bar-btn--promo svg {
    fill: var(--g73a-accent);
}

/* Hidden on wider screens - this site is mobile-only */
@media (min-width: 768px) {
    .g73a-bar {
        max-width: 460px;
    }
}

/* ============================================================
 * Utilities
 * ============================================================ */

.g73a-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;
}

.g73a-hide {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--g73a-accent);
    outline-offset: 2px;
}
