/* ============================================================
   table game app - core stylesheet
   Prefix: wed68-
   Palette: #FFFFFF / #1A1A2E / #FF1493 / #FFB6C1
   ============================================================ */

:root {
    --wed68-white: #FFFFFF;
    --wed68-bg: #1A1A2E;
    --wed68-bg-deep: #14142a;
    --wed68-bg-soft: #232347;
    --wed68-pink: #FF1493;
    --wed68-pink-soft: #FFB6C1;
    --wed68-pink-glow: rgba(255, 20, 147, 0.45);
    --wed68-text: #FFFFFF;
    --wed68-text-dim: #c9c9e6;
    --wed68-line: rgba(255, 182, 193, 0.18);
    --wed68-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
    --wed68-radius: 14px;
    --wed68-radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
    background: radial-gradient(circle at 20% 0%, #2a1a3e 0%, var(--wed68-bg) 45%, var(--wed68-bg-deep) 100%);
    color: var(--wed68-text);
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    min-height: 100vh;
}

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

a { color: var(--wed68-pink-soft); text-decoration: none; }
a:hover { color: var(--wed68-white); }

/* ============ Layout containers ============ */
.wed68-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 14px;
}
.wed68-wrapper {
    padding: 22px 14px 30px;
}
.wed68-section {
    margin: 26px 0;
}
.wed68-grid {
    display: grid;
    gap: 12px;
}

/* ============ Header ============ */
.wed68-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(26,26,46,0.98) 0%, rgba(26,26,46,0.92) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--wed68-line);
    box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.wed68-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    gap: 8px;
}
.wed68-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.wed68-brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}
.wed68-brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wed68-white);
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.wed68-brand-text span { color: var(--wed68-pink); }
.wed68-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wed68-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    text-decoration: none;
    line-height: 1.1;
    min-height: 36px;
}
.wed68-btn:hover { transform: translateY(-1px); }
.wed68-btn:active { transform: translateY(0); }
.wed68-btn-login {
    background: transparent;
    color: var(--wed68-white);
    border: 1.5px solid var(--wed68-pink);
}
.wed68-btn-register {
    background: linear-gradient(135deg, var(--wed68-pink) 0%, #ff4fa3 100%);
    color: var(--wed68-white);
    box-shadow: 0 4px 14px var(--wed68-pink-glow);
}
.wed68-menu-btn {
    background: transparent;
    border: none;
    color: var(--wed68-white);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}
.wed68-menu-btn-active { color: var(--wed68-pink); }

/* ============ Mobile menu ============ */
.wed68-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9998;
}
.wed68-backdrop-show { opacity: 1; pointer-events: auto; }
.wed68-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--wed68-bg-deep);
    border-left: 1px solid var(--wed68-line);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 9999;
    padding: 20px 18px;
    overflow-y: auto;
}
.wed68-menu-open { transform: translateX(0); }
.wed68-mobile-menu h4 {
    margin: 18px 0 8px;
    font-size: 1.3rem;
    color: var(--wed68-pink-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.wed68-mobile-menu a {
    display: block;
    padding: 11px 12px;
    color: var(--wed68-text);
    font-size: 1.4rem;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background .18s ease;
}
.wed68-mobile-menu a:hover,
.wed68-mobile-menu a:active {
    background: rgba(255,20,147,0.14);
    color: var(--wed68-white);
}
.wed68-menu-cta {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============ Carousel ============ */
.wed68-carousel {
    position: relative;
    margin: 14px 0 6px;
    border-radius: var(--wed68-radius);
    overflow: hidden;
    box-shadow: var(--wed68-shadow);
}
.wed68-carousel-track {
    position: relative;
    height: 190px;
}
.wed68-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    cursor: pointer;
}
.wed68-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wed68-slide-active { opacity: 1; }
.wed68-carousel-cap {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(26,26,46,0.75);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--wed68-white);
    border: 1px solid var(--wed68-line);
}
.wed68-carousel-dots {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 6px;
}
.wed68-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
}
.wed68-dot-active { background: var(--wed68-pink); }

/* ============ Headings ============ */
.wed68-h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin: 18px 0 10px;
    font-weight: 800;
}
.wed68-h1 span { color: var(--wed68-pink); }
.wed68-h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin: 22px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--wed68-pink);
    line-height: 1.3;
}
.wed68-h3 {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 16px 0 8px;
    color: var(--wed68-pink-soft);
}
.wed68-lead {
    font-size: 1.4rem;
    color: var(--wed68-text-dim);
    margin-bottom: 14px;
}
.wed68-section-tag {
    display: inline-block;
    background: rgba(255,20,147,0.15);
    color: var(--wed68-pink-soft);
    font-size: 1.15rem;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
    border: 1px solid var(--wed68-line);
}

/* ============ Category quick bar ============ */
.wed68-catbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.wed68-catbar::-webkit-scrollbar { display: none; }
.wed68-chip {
    flex: 0 0 auto;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--wed68-bg-soft);
    color: var(--wed68-text-dim);
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid var(--wed68-line);
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
}
.wed68-chip-active {
    background: linear-gradient(135deg, var(--wed68-pink) 0%, #ff4fa3 100%);
    color: var(--wed68-white);
    border-color: transparent;
}

/* ============ Game grid ============ */
.wed68-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.wed68-game-card {
    background: var(--wed68-bg-soft);
    border-radius: var(--wed68-radius-sm);
    overflow: hidden;
    border: 1px solid var(--wed68-line);
    transition: transform .2s ease, box-shadow .2s ease;
    display: block;
    cursor: pointer;
}
.wed68-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--wed68-pink-glow);
    border-color: var(--wed68-pink);
}
.wed68-game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #0e0e1e;
}
.wed68-game-name {
    padding: 6px 8px;
    font-size: 1.15rem;
    text-align: center;
    color: var(--wed68-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============ Promo / CTA blocks ============ */
.wed68-promo {
    background: linear-gradient(135deg, rgba(255,20,147,0.18) 0%, rgba(255,182,193,0.08) 100%);
    border: 1px solid var(--wed68-line);
    border-radius: var(--wed68-radius);
    padding: 18px;
    margin: 18px 0;
}
.wed68-promo p {
    font-size: 1.4rem;
    color: var(--wed68-text-dim);
    margin: 0 0 12px;
}
.wed68-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.wed68-text-link {
    color: var(--wed68-pink);
    font-weight: 700;
    border-bottom: 1px dashed var(--wed68-pink-soft);
    cursor: pointer;
}
.wed68-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wed68-feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 1.35rem;
    color: var(--wed68-text-dim);
    border-bottom: 1px dashed var(--wed68-line);
}
.wed68-feature-list li:last-child { border-bottom: none; }
.wed68-feature-list li::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--wed68-pink);
    position: absolute;
    left: 0;
    top: 11px;
}

/* ============ Cards ============ */
.wed68-card {
    background: var(--wed68-bg-soft);
    border: 1px solid var(--wed68-line);
    border-radius: var(--wed68-radius);
    padding: 16px;
    margin-bottom: 12px;
}
.wed68-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wed68-stat {
    background: var(--wed68-bg-soft);
    border-radius: var(--wed68-radius-sm);
    padding: 14px;
    text-align: center;
    border: 1px solid var(--wed68-line);
}
.wed68-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--wed68-pink);
}
.wed68-stat-label {
    font-size: 1.15rem;
    color: var(--wed68-text-dim);
    margin-top: 4px;
}

/* ============ Testimonials ============ */
.wed68-review {
    background: var(--wed68-bg-soft);
    border-radius: var(--wed68-radius);
    padding: 14px;
    border-left: 3px solid var(--wed68-pink);
    margin-bottom: 10px;
}
.wed68-review-stars { color: #ffd166; font-size: 1.2rem; margin-bottom: 6px; }
.wed68-review p { margin: 0 0 6px; font-size: 1.32rem; color: var(--wed68-text-dim); }
.wed68-review-author { font-size: 1.15rem; color: var(--wed68-pink-soft); font-weight: 600; }

/* ============ Winners ============ */
.wed68-winners {
    background: var(--wed68-bg-deep);
    border: 1px solid var(--wed68-line);
    border-radius: var(--wed68-radius);
    padding: 12px 14px;
    overflow: hidden;
}
.wed68-winners-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.wed68-winners-list li {
    padding: 6px 0;
    font-size: 1.3rem;
    color: var(--wed68-text-dim);
    border-bottom: 1px dashed var(--wed68-line);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}
.wed68-winners-list li b { color: var(--wed68-pink-soft); }
.wed68-winner-out {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .3s ease, transform .3s ease;
}

/* ============ FAQ ============ */
.wed68-faq-item {
    background: var(--wed68-bg-soft);
    border: 1px solid var(--wed68-line);
    border-radius: var(--wed68-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}
.wed68-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--wed68-white);
    font-size: 1.38rem;
    font-weight: 700;
    padding: 13px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.wed68-faq-q i { color: var(--wed68-pink); transition: transform .2s ease; }
.wed68-faq-open .wed68-faq-q i { transform: rotate(180deg); }
.wed68-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 14px;
    color: var(--wed68-text-dim);
    font-size: 1.3rem;
}
.wed68-faq-open .wed68-faq-a {
    max-height: 320px;
    padding-bottom: 14px;
}

/* ============ Payment ============ */
.wed68-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.wed68-payment {
    flex: 1 1 calc(50% - 8px);
    background: var(--wed68-bg-soft);
    border: 1px solid var(--wed68-line);
    border-radius: var(--wed68-radius-sm);
    padding: 12px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}
.wed68-payment i { color: var(--wed68-pink); font-size: 1.6rem; display: block; margin-bottom: 4px; }

/* ============ SEO content ============ */
.wed68-seo-text {
    font-size: 1.38rem;
    color: var(--wed68-text-dim);
    line-height: 1.65;
}
.wed68-seo-text p { margin: 0 0 12px; }
.wed68-seo-text strong { color: var(--wed68-pink-soft); }

/* ============ Footer ============ */
.wed68-footer {
    background: var(--wed68-bg-deep);
    border-top: 1px solid var(--wed68-line);
    padding: 24px 14px 30px;
    margin-top: 30px;
}
.wed68-footer p {
    font-size: 1.3rem;
    color: var(--wed68-text-dim);
    line-height: 1.6;
    margin: 0 0 10px;
}
.wed68-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.wed68-footer-links a {
    background: var(--wed68-bg-soft);
    border: 1px solid var(--wed68-line);
    color: var(--wed68-text);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
}
.wed68-footer-links a:hover { background: var(--wed68-pink); color: var(--wed68-white); }
.wed68-footer-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}
.wed68-footer-copy {
    font-size: 1.15rem;
    color: rgba(201,201,230,0.7);
    text-align: center;
    margin-top: 14px;
    border-top: 1px dashed var(--wed68-line);
    padding-top: 14px;
}

/* ============ Mobile bottom nav ============ */
.wed68-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 62px;
    background: linear-gradient(180deg, rgba(26,26,46,0.97), rgba(20,20,42,0.99));
    border-top: 1px solid var(--wed68-line);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.4);
}
.wed68-bottom-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--wed68-text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 0;
    min-width: 60px;
    min-height: 58px;
    cursor: pointer;
    text-decoration: none;
    transition: color .18s ease, transform .18s ease;
    position: relative;
}
.wed68-bottom-btn i,
.wed68-bottom-btn .material-icons-outlined,
.wed68-bottom-btn ion-icon {
    font-size: 22px;
}
.wed68-bottom-btn ion-icon { font-size: 24px; }
.wed68-bottom-btn .wed68-bn-label {
    font-size: 1.05rem;
    font-weight: 600;
}
.wed68-bottom-btn:hover,
.wed68-bottom-btn:active {
    color: var(--wed68-pink);
    transform: translateY(-2px);
}
.wed68-bottom-btn.wed68-bn-active { color: var(--wed68-pink); }
.wed68-bottom-btn.wed68-bn-active::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 3px;
    background: var(--wed68-pink);
    border-radius: 0 0 4px 4px;
}
.wed68-bn-promo {
    background: linear-gradient(135deg, var(--wed68-pink) 0%, #ff4fa3 100%);
    color: var(--wed68-white);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    margin-top: -18px;
    box-shadow: 0 6px 16px var(--wed68-pink-glow);
    border: 3px solid var(--wed68-bg-deep);
}
.wed68-bn-promo i { font-size: 22px; }
.wed68-bn-promo .wed68-bn-label {
    display: none;
}

/* ============ Reveal animation ============ */
.wed68-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}
.wed68-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Desktop + main padding ============ */
@media (min-width: 769px) {
    .wed68-bottom-nav { display: none; }
    body { max-width: 430px; }
}

@media (max-width: 768px) {
    .wed68-main { padding-bottom: 84px; }
}

.wed68-skip-link {
    position: absolute;
    left: -9999px;
}
.wed68-skip-link:focus {
    left: 10px;
    top: 10px;
    background: var(--wed68-pink);
    color: var(--wed68-white);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 10000;
}
