
:root {
    --bg: #FFFBF5;
    --card: #FFFFFF;
    --ink: #2D2A26;
    --soft: #8A8580;
    --line: #EDE8E0;
    --coral: #E85D4E;
    --coral2: #F07060;
    --teal: #2A9D8F;
    --gold: #E9C46A;
    --lavender: #E8E0F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Top Nav ── */
.topnav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.logo span {
    font-size: 26px
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: all .2s;
}

.search-bar input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 93, 78, 0.08);
}

.search-bar input::placeholder {
    color: var(--soft)
}

.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    opacity: .45;
}

/* ── Marquee Tags ── */
.marquee-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 20px;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 10px;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-wrap:hover .marquee-track {
    animation-play-state: paused
}

@keyframes marquee {
    0% {
        transform: translateX(0)
    }
    100% {
        transform: translateX(-50%)
    }
}

.tag-pill {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    color: var(--soft);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}

.tag-pill:hover, .tag-pill.on {
    background: var(--coral);
    color: #fff;
    border-color: var(--coral);
}

/* ── Hero ── */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 28px;
}

.hero-card {
    background: linear-gradient(135deg, #FFF5F3 0%, #FEF9F0 100%);
    border: 1.5px solid var(--line);
    border-radius: 24px;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(232, 93, 78, 0.06);
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 60%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(42, 157, 143, 0.06);
}

.hero-text {
    position: relative;
    z-index: 1
}

.hero-text h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero-text p {
    font-size: 15px;
    color: var(--soft);
    line-height: 1.6;
    max-width: 420px;
}

.hero-btn {
    position: relative;
    z-index: 1;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    background: var(--coral);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(232, 93, 78, 0.2);
}

.hero-btn:hover {
    background: var(--coral2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 78, 0.25);
}

/* ── Section Title ── */
.sec-title {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 16px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-title .emoji {
    font-size: 22px
}

/* ── Game Cards (Stacked List) ── */
.games-stack {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 18px;
    cursor: pointer;
    opacity: 0;
    animation: slideUp .45s ease forwards;
    transition: all .25s;
    position: relative;
}

.game-row:hover {
    border-color: var(--coral);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transform: translateX(4px);
}

.game-row:hover .gr-thumb img {
    transform: scale(1.06)
}

.gr-thumb {
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.gr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.gr-rank {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--coral);
}

.gr-info {
    flex: 1;
    min-width: 0;
}

.gr-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.gr-title {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-badge {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-action {
    background: #03A9F4;
    color: #b4eff6;
}

.badge-hot {
    background: #FEF2F2;
    color: #DC2626
}

.badge-girl {
    background: #FDF2F8;
    color: #DB2777
}

.badge-boy {
    background: #EFF6FF;
    color: #2563EB
}

.badge-3d {
    background: #F0FDF4;
    color: #16A34A
}

.gr-desc {
    font-size: 13.5px;
    color: var(--soft);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.gr-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gr-players {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--soft);
    font-weight: 600;
}

.gr-players .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1
    }
    50% {
        opacity: .3
    }
}

.gr-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
}

.gr-stars .s {
    color: var(--gold)
}

.gr-stars .s.off {
    color: var(--line)
}

.gr-stars .sn {
    margin-left: 4px;
    font-size: 12px;
    color: var(--soft);
    font-weight: 700;
}

.gr-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.gr-play {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--coral);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(232, 93, 78, 0.2);
}

.gr-play:hover {
    transform: scale(1.1);
    background: var(--coral2);
}

.gr-share {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--soft);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.gr-share:hover {
    border-color: var(--coral);
    color: var(--coral);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ── Empty ── */
.empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--soft);
}

.empty .eb {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: .2
}

.empty h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--ink)
}

.empty p {
    font-size: 14px
}

/* ── Floating Share ── */
.fab-share {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
}

.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--coral);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(232, 93, 78, 0.3);
    transition: all .3s;
    position: relative;
    z-index: 2;
}

.fab-btn:hover {
    transform: scale(1.08)
}

.fab-btn.spun {
    transform: rotate(45deg)
}

.fab-menu {
    position: absolute;
    bottom: 64px;
    right: 50%;
    transform: translateX(50%) translateY(12px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
}

.fab-share.open .fab-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(50%) translateY(0);
}

.fab-menu a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transition: transform .2s;
}

.fab-menu a:hover {
    transform: scale(1.12)
}

.fg {
    background: #DD4B39
}

.ff {
    background: #3B5998
}

.fl {
    background: #0077B5
}

.fs {
    background: #EB4924
}

.ft {
    background: #1DA1F2
}

/* ── Back to Top ── */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 82px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--soft);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
    z-index: 998;
}

.to-top.show {
    opacity: 1;
    pointer-events: all
}

.to-top:hover {
    border-color: var(--coral);
    color: var(--coral)
}

/* ── Footer ── */
.foot {
    border-top: 1.5px solid var(--line);
    background: var(--card);
    padding: 48px 24px 32px;
}

.foot-inner {
    max-width: 1100px;
    margin: 0 auto
}

.foot-desc {
    text-align: center;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--soft);
}

.foot-desc strong {
    display: block;
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 8px;
    font-weight: 800;
}

.foot-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.foot-grid h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ink);
    margin-bottom: 14px;
    font-weight: 700;
}

.foot-grid a {
    display: block;
    font-size: 14px;
    color: var(--soft);
    text-decoration: none;
    padding: 5px 0;
    transition: color .2s;
}

.foot-grid a:hover {
    color: var(--coral)
}

.foot-base {
    text-align: center;
    padding-top: 24px;
    border-top: 1.5px solid var(--line);
    font-size: 12px;
    color: var(--soft);
}

.foot-base a {
    color: var(--soft);
    text-decoration: none;
    transition: color .2s
}

.foot-base a:hover {
    color: var(--coral)
}

/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 680px) {
    .topnav {
        padding: 16px 16px 10px
    }

    .logo {
        font-size: 18px
    }

    .search-bar {
        max-width: none
    }

    .hero {
        padding: 0 16px 20px
    }

    .hero-card {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px
    }

    .hero-text h1 {
        font-size: 26px
    }

    .hero-text p {
        font-size: 14px
    }

    .marquee-wrap {
        padding: 0 16px 16px
    }

    .sec-title {
        padding: 0 16px 12px;
        font-size: 16px
    }

    .games-stack {
        padding: 0 16px 40px;
        gap: 12px
    }

    .game-row {
        padding: 12px;
        gap: 12px
    }

    .gr-thumb {
        width: 80px;
        height: 80px
    }

    .gr-title {
        font-size: 15px
    }

    .gr-desc {
        font-size: 12.5px;
        -webkit-line-clamp: 2
    }

    .gr-action {
        flex-direction: row
    }

    .gr-play {
        width: 40px;
        height: 40px
    }

    .fab-share {
        right: 16px;
        bottom: 16px
    }

    .fab-btn {
        width: 48px;
        height: 48px
    }

    .to-top {
        right: 16px;
        bottom: 72px;
        width: 40px;
        height: 40px
    }

    .foot {
        padding: 36px 16px 24px
    }

    .foot-grid {
        grid-template-columns:1fr 1fr;
        gap: 24px
    }
}

@media (max-width: 380px) {
    .gr-thumb {
        width: 64px;
        height: 64px;
        border-radius: 10px
    }

    .gr-desc {
        display: none
    }

    .gr-bottom {
        gap: 10px
    }
}
a{
    text-decoration: none;
}