/* ===== PlayNest design system (games1140) — light, rounded, friendly ===== */

html,
body {
    font-family: "Nunito", sans-serif;
    margin: 0;
    position: relative;
    z-index: 99;
    scroll-behavior: smooth;
    color: var(--text-primary);
}

.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

body::-webkit-scrollbar {
    display: none;
}

#copy-message {
    position: fixed;
    z-index: 999;
    bottom: 30%;
    width: 60px;
    height: 28px;
    left: 50%;
    transform: translate(-50%, 0);
    background: #ffffff;
    border: 1px solid #ded9ee;
    color: #1d1939;
    font-size: 12px;
    text-align: center;
    line-height: 28px;
    border-radius: 8px;
    box-shadow: 0 10px 24px -10px rgba(29, 25, 57, 0.35);
}

::-webkit-scrollbar {
    background: #e6e2f2;
    border-radius: 9999px;
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #b9a2ff;
    border-radius: 9999px;
}

header ::-webkit-scrollbar {
    height: 3px;
}

.star i.full {
    color: var(--color-star);
}

.star i {
    color: var(--color-star-empty);
}

.star i.partial {
    background: linear-gradient(to right, var(--color-star) var(--percent, 0%), var(--color-star-empty) var(--percent, 0%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.num {
    counter-reset: mvp-trend;
}

.num a {
    counter-increment: mvp-trend;
}

.num a .number::after {
    content: counter(mvp-trend);
}

/* ===== Soft lavender wash page background ===== */
.softbg {
    background-image:
        radial-gradient(1100px 480px at 88% -8%, rgba(124, 58, 237, 0.10), transparent 60%),
        radial-gradient(900px 420px at -8% 18%, rgba(247, 144, 9, 0.09), transparent 55%);
    background-attachment: fixed;
}

/* ===== Frosted navbar glass (light) ===== */
.glass {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ===== Primary gradient pill ===== */
.rank-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.rank-badge:hover {
    opacity: 0.92;
}

/* ===== Soft elevation (replaces hard offset shadows) ===== */
.hard-shadow {
    box-shadow: 0 12px 30px -12px rgba(29, 25, 57, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hard-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -14px rgba(29, 25, 57, 0.42);
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -16px rgba(29, 25, 57, 0.35);
}

.text-glow {
    text-shadow: 0 2px 26px rgba(124, 58, 237, 0.4);
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(124, 58, 237, 0.35);
}

/* horizontal scroll rails hide scrollbar */
.rail-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rail-scroll::-webkit-scrollbar {
    display: none;
}

.ptcontent {
    color: #56517f;
}

.ptcontent a {
    word-break: break-all;
    color: #6d28d9;
}

.ptcontent ul {
    list-style: disc;
    margin: 0 0 0 30px;
    padding: 0;
}

.ptcontent h1,
.ptcontent h2,
.ptcontent h3,
.ptcontent h4 {
    color: #1d1939;
    font-family: "Baloo 2", sans-serif;
}

/* ===== Table styles — for CMS content tables ===== */
.ptcontent table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    table-layout: fixed;
}
.ptcontent th,
.ptcontent td {
    width: auto !important;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}
.ptcontent th {
    background: #f8f9fb;
    font-weight: 700;
    color: #1d1939;
}
.ptcontent td p,
.ptcontent th p {
    margin: 0;
    padding: 0;
}
.ptcontent td p + p,
.ptcontent th p + p {
    margin-top: 8px;
}
.ptcontent tr:nth-child(even) td {
    background: #fafbfc;
}
.ptcontent td b,
.ptcontent td strong {
    color: #1d1939;
}

/* ===== Overall page width =====
   Every section lives inside a max-w-[1200px] centered container,
   so the site never stretches edge-to-edge on large monitors. */
