:root {
    --bg: #06030b;
    --bg-alt: #0d0514;
    --surface: #140a1d;
    --surface-soft: #1a0f24;
    --text: #fef9ff;
    --muted: #d8cfe0;
    /* Hệ thống màu kẹo pastel - dịu mắt, không chói */
    --accent: #e8a5d1;        /* Hồng pastel */
    --accent-2: #f5b87a;       /* Cam pastel */
    --lime: #b8e8c5;          /* Xanh lá pastel */
    --mint: #a8e8f0;          /* Xanh dương pastel */
    --radius: 20px;
    --shadow: 0 20px 60px rgba(9, 3, 15, .45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1c0b30, #06030b 48%);
    color: var(--text);
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 3, 11, .75);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-sugar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: conic-gradient(from 120deg, var(--accent), var(--accent-2), var(--mint), var(--accent));
    box-shadow: 0 8px 20px rgba(232, 165, 209, .3), inset 0 0 12px rgba(255, 255, 255, .3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.brand-text strong {
    font-size: 1.35rem;
}

.brand-text span {
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 12px;
    margin-left: auto;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .7rem;
    letter-spacing: .05em;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    padding: 8px 0;
    transition: color .2s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn.ghost {
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .2);
}

.btn.solid {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #25101f;
    box-shadow: 0 15px 40px rgba(232, 165, 209, .3);
}

.btn.outline {
    border: 1px solid rgba(255, 255, 255, .28);
    color: var(--text);
    background: transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

/* HERO */
.hero {
    padding: 60px 0 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
}

.hero-copy h1,
.section-head h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    margin: 12px 0 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .8rem;
    color: var(--mint);
}

.lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.ipbars-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ipbar {
    display: grid;
    grid-template-columns: auto 1px auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
    cursor: copy;
    position: relative;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ipbar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 165, 209, .2);
}

.ipbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(232, 165, 209, .3), transparent 55%);
    pointer-events: none;
}

.ip-col span {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--muted);
}

.ip-col .ip {
    display: block;
    font-size: 1.35rem;
    letter-spacing: .08em;
    margin-top: 4px;
}

.ip-meta span {
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .25em;
    color: var(--mint);
}

.ip-meta small {
    display: block;
    font-weight: 700;
}

.divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, .18);
}

.ipbar .copy {
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    color: var(--text);
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.hero-stats li {
    flex: 1;
    min-width: 120px;
}

.hero-stats-player {
    flex: 1.5;
    min-width: 180px;
}

.hero-stats span {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .7rem;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.hero-stats strong {
    display: block;
    font-size: 1.5rem;
    margin-top: 8px;
}

.hero-stats small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    margin-top: 4px;
    letter-spacing: .04em;
}

/* Player count - Enhanced design */
.player-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.count-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(120deg, var(--accent), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
}

.count-number.animating {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.count-max {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 500;
    opacity: 0.8;
}

.status-pill {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(168, 232, 240, .15);
    color: var(--mint);
    border: 1px solid rgba(168, 232, 240, .35);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-pill.offline {
    background: rgba(255, 102, 102, .12);
    border-color: rgba(255, 102, 102, .4);
    color: #ff7a7a;
}

.hero-art {
    position: relative;
    min-height: 420px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 160, 244, .35), transparent 60%), var(--surface);
    border-radius: 36px;
    padding: 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 36px;
    overflow: hidden;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    z-index: 1;
    border-radius: 36px;
    opacity: 0.75;
    /* Center và cover toàn bộ area - scale lớn hơn để không có vệt đen */
    transform: translate(-50%, -50%) scale(1.2);
    transform-origin: center;
    /* Không cho tương tác */
    pointer-events: none;
    /* Làm video rõ nét hơn - loại bỏ blur */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate(-50%, -50%) scale(1.2) translateZ(0);
    transform: translate(-50%, -50%) scale(1.2) translateZ(0);
    will-change: transform;
    /* Đảm bảo video cover toàn bộ */
    object-fit: cover;
}

/* Ẩn tất cả YouTube UI elements */
.hero-video iframe {
    pointer-events: none !important;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 36px;
    opacity: 0.75;
}

.hero-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 36px;
    opacity: 0.6;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: .8;
    animation: float 8s ease-in-out infinite;
    z-index: 1;
}

.orb-big {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, #ff9adf, rgba(255, 154, 223, 0));
    top: 18%;
    left: 5%;
    animation-delay: .2s;
}

.orb-medium {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--mint), rgba(168, 232, 240, 0));
    top: 40%;
    right: 15%;
    animation-duration: 10s;
}

.orb-small {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-2), rgba(245, 184, 122, 0));
    bottom: 12%;
    left: 30%;
}

.candy-stack {
    position: relative;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 2;
}

.candy {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, .25), 0 12px 25px rgba(0, 0, 0, .3);
}

.candy-pop {
    background: radial-gradient(circle at 30% 30%, var(--accent), rgba(232, 165, 209, .6));
}

.candy-swirl {
    background: conic-gradient(#fff 0 25%, var(--accent-2) 25% 50%, rgba(245, 184, 122, .8) 50% 75%, #fff 75% 100%);
}

.candy-gem {
    background: linear-gradient(140deg, var(--mint), var(--lime));
}

.hero-card {
    position: absolute;
    right: 32px;
    bottom: 32px;
    background: rgba(255, 255, 255, .08);
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    width: min(260px, 70%);
    z-index: 3;
}

.hero-card strong {
    display: block;
    font-size: 1.2rem;
    color: var(--lime);
}

.hero-card small {
    color: var(--muted);
}

/* GENERIC SECTIONS */
.section {
    padding: 90px 0;
}

.section-head {
    text-align: left;
    max-width: 620px;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .05);
    box-shadow: var(--shadow);
    min-height: 220px;
}

.feature-card h3 {
    margin-top: 0;
    font-family: 'Montserrat', sans-serif;
}

.gradient {
    background: radial-gradient(circle at top, rgba(232, 165, 209, .18), rgba(9, 3, 15, 1));
}

.worlds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.world {
    background: rgba(6, 3, 11, .6);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.world-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .75rem;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
}

.pill-berry {
    background: rgba(232, 165, 209, .2);
    color: #e8a5d1;
}

.pill-citrus {
    background: rgba(245, 184, 122, .2);
    color: #f5b87a;
}

.pill-mint {
    background: rgba(168, 232, 240, .2);
    color: #a8e8f0;
}

.pill-kitkat {
    background: rgba(255, 200, 100, .2);
    color: #ffc864;
}

.pill-sugus {
    background: rgba(245, 184, 122, .2);
    color: #f5b87a;
}

.pill-cherry {
    background: rgba(232, 165, 209, .2);
    color: #e8a5d1;
}

.world-status {
    font-size: .65rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.world-status.status-active {
    background: rgba(184, 232, 197, .25);
    color: #b8e8c5;
    border: 1px solid rgba(184, 232, 197, .4);
}

.world-status.status-dev {
    background: rgba(245, 184, 122, .25);
    color: #f5b87a;
    border: 1px solid rgba(245, 184, 122, .4);
}

.world-status.status-closed {
    background: rgba(153, 153, 153, .2);
    color: #aaa;
    border: 1px solid rgba(153, 153, 153, .3);
    text-decoration: line-through;
    opacity: 0.7;
}

.world-closed {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.world h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-top: 0;
    margin-bottom: 12px;
}

.world p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 12px;
}

.world ul {
    padding-left: 18px;
    margin: 12px 0 0 0;
    color: var(--muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.world li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-bottom: 6px;
}

/* TIMELINE */
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.time-card {
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius);
    padding: 22px;
    border: 1px dashed rgba(255, 255, 255, .18);
}

.time-label {
    text-transform: uppercase;
    letter-spacing: .3em;
    font-size: .72rem;
    color: var(--mint);
}

/* TEAM */
.section.soft {
    background: radial-gradient(circle at 20% 20%, rgba(162, 255, 197, .15), rgba(6, 3, 11, 1));
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.member {
    background: rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.member-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid rgba(232, 165, 209, .3);
    box-shadow: 0 8px 24px rgba(232, 165, 209, .25), inset 0 0 0 1px rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    display: block;
}

.member:hover .member-avatar {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(232, 165, 209, .4), inset 0 0 0 1px rgba(255, 255, 255, .15);
    border-color: rgba(232, 165, 209, .5);
}

.member .role {
    text-transform: uppercase;
    font-size: .74rem;
    letter-spacing: .3em;
    color: var(--muted);
    margin-top: 0;
}

.member h3 {
    margin: 8px 0;
    font-family: 'Montserrat', sans-serif;
}

.member p {
    margin-top: 8px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--muted);
}

.member-discord {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(88, 101, 242, .15);
    border: 1px solid rgba(88, 101, 242, .3);
    color: #5865f2;
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s ease;
}

.member-discord svg {
    flex-shrink: 0;
}

.member-discord:hover {
    background: rgba(88, 101, 242, .25);
    border-color: rgba(88, 101, 242, .4);
    transform: translateY(-1px);
}

.team-slider {
    background: rgba(255, 255, 255, .04);
    border-radius: 32px;
    padding: 36px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 80px rgba(6, 3, 11, .4);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.team-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding: 32px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(232, 165, 209, .25), rgba(20, 10, 29, .9));
    border: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-pill,
.team-name,
.team-desc,
.team-discord {
    opacity: 1;
    transform: translateX(0);
    transition: opacity .4s cubic-bezier(0.4, 0, 0.2, 1), transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-info.is-changing .team-pill,
.team-info.is-changing .team-name,
.team-info.is-changing .team-desc,
.team-info.is-changing .team-discord {
    opacity: 0;
    transform: translateX(-30px);
}

.team-info.is-entering .team-pill {
    animation: slideInFromLeft .6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

.team-info.is-entering .team-name {
    animation: slideInFromLeft .6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}

.team-info.is-entering .team-desc {
    animation: slideInFromLeft .6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.team-info.is-entering .team-discord {
    animation: slideInFromLeft .6s cubic-bezier(0.4, 0, 0.2, 1) 0.25s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.team-pill {
    align-self: flex-start;
    padding: 8px 18px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: .7rem;
    font-weight: 700;
    border: 2px solid;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

/* Founder - Vàng kim loại */
.team-pill[data-role="Founder"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, .3), rgba(255, 193, 7, .2));
    color: #ffd700;
    border-color: rgba(255, 215, 0, .6);
    box-shadow: 0 4px 16px rgba(255, 215, 0, .3);
}

/* Admin - Đỏ cam nổi bật */
.team-pill[data-role*="Admin"] {
    background: linear-gradient(135deg, rgba(255, 87, 34, .3), rgba(255, 152, 0, .2));
    color: #ff6b35;
    border-color: rgba(255, 87, 34, .6);
    box-shadow: 0 4px 16px rgba(255, 87, 34, .3);
}

/* Developer - Xanh dương tech */
.team-pill[data-role="Developer"] {
    background: linear-gradient(135deg, rgba(33, 150, 243, .3), rgba(3, 169, 244, .2));
    color: #64b5f6;
    border-color: rgba(33, 150, 243, .6);
    box-shadow: 0 4px 16px rgba(33, 150, 243, .3);
}

/* Media - Hồng tím sáng tạo */
.team-pill[data-role="Media"] {
    background: linear-gradient(135deg, rgba(233, 30, 99, .3), rgba(156, 39, 176, .2));
    color: #f48fb1;
    border-color: rgba(233, 30, 99, .6);
    box-shadow: 0 4px 16px rgba(233, 30, 99, .3);
}

/* Event - Xanh lá năng động */
.team-pill[data-role="Event"] {
    background: linear-gradient(135deg, rgba(76, 175, 80, .3), rgba(139, 195, 74, .2));
    color: #81c784;
    border-color: rgba(76, 175, 80, .6);
    box-shadow: 0 4px 16px rgba(76, 175, 80, .3);
}

/* Staff - Tím nhẹ nhàng */
.team-pill[data-role="Staff"] {
    background: linear-gradient(135deg, rgba(156, 39, 176, .3), rgba(123, 31, 162, .2));
    color: #ba68c8;
    border-color: rgba(156, 39, 176, .6);
    box-shadow: 0 4px 16px rgba(156, 39, 176, .3);
}

/* Fallback cho các role khác */
.team-pill:not([data-role]) {
    background: rgba(255, 255, 255, .15);
    color: var(--mint);
    border-color: rgba(255, 255, 255, .25);
}

.team-name {
    font-size: 2rem;
    margin: 0;
}

.team-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 1rem;
}

.team-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(88, 101, 242, .18);
    border: 1px solid rgba(88, 101, 242, .4);
    font-weight: 600;
    color: #aab1ff;
}

.team-figure {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.team-figure img {
    width: min(260px, 60vw);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
    image-rendering: pixelated;
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    transition: opacity .4s cubic-bezier(0.4, 0, 0.2, 1), transform .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-figure img.is-loading {
    opacity: 0;
    transform: translateX(50px) scale(0.9) rotate(5deg);
}

.team-figure img.is-entering {
    animation: slideInFromRight .7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}


.team-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 8px 12px;
    margin: 0 -12px;
}

.team-thumbs::-webkit-scrollbar {
    display: none;
}

.team-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .05);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.team-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    image-rendering: pixelated;
    object-fit: cover;
    display: block;
}

.team-thumb.is-active {
    border-color: rgba(255, 193, 7, .9);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, .3), 0 4px 16px rgba(255, 193, 7, .4);
    transform: scale(1.1);
}

.team-thumb:hover:not(.is-active) {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, .35);
}

.team-thumbs-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(6, 3, 11, .75);
    backdrop-filter: blur(8px);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    z-index: 20;
    position: relative;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
}

.team-thumbs-nav:hover {
    background: rgba(232, 165, 209, .5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(232, 165, 209, .3);
}

.team-thumbs-nav:active {
    transform: scale(0.95);
}

.team-thumbs-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.team-thumbs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

@media (max-width: 768px) {
    .team-card {
        padding: 24px;
    }

    .team-nav {
        display: none;
    }
}

/* RULES */
.rules {
    background: radial-gradient(circle at 50% 0%, rgba(232, 165, 209, .08), rgba(6, 3, 11, 1));
}

.rules-content {
    display: grid;
    gap: 32px;
    margin-top: 48px;
}

.rule-category {
    background: rgba(255, 255, 255, .05);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(232, 165, 209, .3);
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #25101f;
    font-weight: 900;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(232, 165, 209, .35);
}

.rule-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin: 0;
    color: var(--text);
}

.rule-items {
    display: grid;
    gap: 20px;
}

.rule-item {
    background: rgba(255, 255, 255, .03);
    border-radius: 16px;
    padding: 20px;
    border-left: 3px solid rgba(232, 165, 209, .4);
    transition: background .2s ease, border-color .2s ease;
}

.rule-item:hover {
    background: rgba(255, 255, 255, .06);
    border-left-color: rgba(232, 165, 209, .7);
}

.rule-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: var(--accent);
}

.rule-item p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.rule-item ul {
    margin: 12px 0;
    padding-left: 24px;
    color: var(--muted);
}

.rule-item li {
    margin: 6px 0;
    line-height: 1.5;
}

.punishment {
    background: rgba(255, 77, 77, .15);
    border: 1px solid rgba(255, 77, 77, .3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    color: #ffaaaa;
    font-size: .9rem;
    line-height: 1.5;
}

.punishment strong {
    color: #ff8888;
}

.note {
    background: rgba(245, 184, 122, .15);
    border: 1px solid rgba(245, 184, 122, .3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    color: #ffcc99;
    font-size: .9rem;
    line-height: 1.5;
}

.note strong {
    color: #ffaa66;
}

.rules-footer {
    margin-top: 48px;
    padding: 24px;
    background: rgba(232, 165, 209, .1);
    border-radius: 16px;
    border: 1px solid rgba(232, 165, 209, .2);
    text-align: center;
}

.rules-footer p {
    margin: 0;
    color: var(--muted);
}

.rules-footer strong {
    color: var(--accent);
}

.rules-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, .05);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, .08);
}

/* JOIN */
.join {
    background: radial-gradient(circle at 80% 20%, rgba(245, 184, 122, .12), rgba(6, 3, 11, 1));
}

.join-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 32px;
    align-items: stretch;
}

.join-copy ul {
    padding-left: 18px;
    color: var(--muted);
}

.join-card {
    background: var(--surface-soft);
    background-image: url('../assets/background1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow);
}

.join-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 3, 11, .7), rgba(20, 10, 29, .6));
    border-radius: 24px;
    z-index: 0;
}

.join-card > * {
    position: relative;
    z-index: 1;
}

.join-card strong {
    font-size: 2rem;
    display: block;
}

.join-card span {
    color: var(--muted);
}

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mint);
    opacity: .8;
    animation: sparkle 4s linear infinite;
}

.sparkles span:nth-child(1) {
    top: 20%;
    left: 20%;
}

.sparkles span:nth-child(2) {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
}

.sparkles span:nth-child(3) {
    bottom: 25%;
    left: 35%;
    animation-delay: 2s;
}

.sparkles span:nth-child(4) {
    bottom: 10%;
    right: 15%;
    animation-delay: 3s;
}

/* FOOTER */
.footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 32px 0;
    background: #040207;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
}

/* TOAST */
.copy-toast {
    position: fixed;
    left: 50%;
    top: 32px;
    transform: translate(-50%, -20px);
    background: rgba(6, 3, 11, .95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4), 0 0 0 1px rgba(232, 165, 209, .1);
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, -32px);
}

.copy-toast .emoji {
    font-size: 1.1rem;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE MENU */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all .2s ease;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    border-color: var(--accent);
    background: rgba(232, 165, 209, .1);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 3, 11, .98);
    backdrop-filter: blur(20px);
    z-index: 100;
    padding: 24px;
    padding-top: 80px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
}

.mobile-nav.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: all;
}

.mobile-nav .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.mobile-nav .nav a {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all .2s ease;
}

.mobile-nav .nav a:hover {
    background: rgba(232, 165, 209, .15);
    border-color: var(--accent);
    transform: translateX(4px);
}

.mobile-nav .nav-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.mobile-nav .nav-cta .btn {
    width: 100%;
    justify-content: center;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-menu-close {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid rgba(255, 193, 7, 0.6);
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-close:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.8);
    transform: scale(1.1);
}

.mobile-menu-close:active {
    transform: scale(0.95);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .nav {
        gap: 12px;
        font-size: .7rem;
    }
}

@media (max-width: 960px) {
    .nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .hero-grid,
    .join-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-art {
        order: -1;
        min-height: 300px;
    }
    .hero {
        padding: 40px 0 80px;
    }
    .section {
        padding: 60px 0;
    }
    .section-head h2 {
        font-size: 2rem;
    }
    .hero-copy h1 {
        font-size: 2rem;
    }
    .team-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
    .team-figure img {
        width: min(200px, 50vw);
    }
}

@media (max-width: 768px) {
    .container {
        width: min(1180px, 94vw);
    }
    .nav-inner {
        padding: 12px 0;
    }
    .brand-text strong {
        font-size: 1.2rem;
    }
    .brand-text span {
        font-size: .75rem;
    }
    .logo-sugar {
        width: 40px;
        height: 40px;
    }
    .hero-copy h1 {
        font-size: 1.75rem;
    }
    .section-head h2 {
        font-size: 1.75rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .worlds-grid {
        grid-template-columns: 1fr;
    }
    .timeline {
        grid-template-columns: 1fr;
    }
    .team-slider {
        padding: 24px;
    }
    .team-thumbs-wrapper {
        flex-wrap: wrap;
    }
    .team-thumbs {
        order: 2;
        width: 100%;
        margin-top: 16px;
    }
    .team-thumbs-nav {
        order: 1;
    }
}

@media (max-width: 640px) {
    .ipbars-container {
        grid-template-columns: 1fr;
    }
    .ipbar {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    .divider {
        display: none;
    }
    .ipbar .copy {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    .hero-stats li {
        min-width: auto;
    }
    .nav-cta {
        margin-left: auto;
    }
    .rules-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .rule-category {
        padding: 20px;
    }
    .rule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .rule-header h3 {
        font-size: 1.4rem;
    }
    .rule-item {
        padding: 16px;
    }
    .rule-item h4 {
        font-size: 1.1rem;
    }
    .hero-copy h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .section-head h2 {
        font-size: 1.5rem;
    }
    .lead {
        font-size: 1rem;
    }
    .btn {
        padding: 12px 20px;
        font-size: .9rem;
    }
    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn {
        width: 100%;
    }
    .join-card {
        padding: 24px;
    }
    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }
    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1180px, 96vw);
    }
    .hero-copy h1 {
        font-size: 1.35rem;
    }
    .section-head h2 {
        font-size: 1.35rem;
    }
    .payment-card, .order-details {
        padding: 20px 16px;
    }
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .amount-tier {
        padding: 12px 8px;
    }
    .cluster-options {
        grid-template-columns: 1fr;
    }
}

/* PAGE LOADER - Minecraft Block Style */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1c0b30, #06030b);
    z-index: 999999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: all;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Minecraft Block 3D */
.minecraft-block {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: blockRotate 2s linear infinite;
    transform-origin: center center;
}

@keyframes blockRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.block-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

/* Top face - gradient pink */
.block-top {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transform: rotateX(90deg) translateZ(40px);
    box-shadow: inset 0 0 20px rgba(232, 165, 209, 0.3);
}

/* Front face - darker pink */
.block-front {
    background: linear-gradient(135deg, rgba(232, 165, 209, 0.8), rgba(232, 165, 209, 0.6));
    transform: translateZ(40px);
    box-shadow: inset 0 0 15px rgba(232, 165, 209, 0.2);
}

/* Right face - medium pink */
.block-right {
    background: linear-gradient(135deg, rgba(232, 165, 209, 0.7), rgba(232, 165, 209, 0.5));
    transform: rotateY(90deg) translateZ(40px);
    box-shadow: inset 0 0 15px rgba(232, 165, 209, 0.2);
}

/* Back face - darker */
.block-back {
    background: linear-gradient(135deg, rgba(232, 165, 209, 0.6), rgba(232, 165, 209, 0.4));
    transform: rotateY(180deg) translateZ(40px);
    box-shadow: inset 0 0 15px rgba(232, 165, 209, 0.2);
}

/* Left face - medium */
.block-left {
    background: linear-gradient(135deg, rgba(232, 165, 209, 0.7), rgba(232, 165, 209, 0.5));
    transform: rotateY(-90deg) translateZ(40px);
    box-shadow: inset 0 0 15px rgba(232, 165, 209, 0.2);
}

/* Bottom face - darkest */
.block-bottom {
    background: linear-gradient(135deg, rgba(232, 165, 209, 0.5), rgba(232, 165, 209, 0.3));
    transform: rotateX(-90deg) translateZ(40px);
    box-shadow: inset 0 0 15px rgba(232, 165, 209, 0.2);
}

/* Pixelated effect */
.block-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 8px 8px;
    image-rendering: pixelated;
    opacity: 0.3;
}

.loader-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.loader-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 0 20px rgba(232, 165, 209, 0.5);
    letter-spacing: 0.1em;
    animation: pulse 2s ease-in-out infinite;
}

.loader-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive loader */
@media (max-width: 640px) {
    .minecraft-block {
        width: 60px;
        height: 60px;
    }
    
    .block-face {
        width: 60px;
        height: 60px;
    }
    
    .block-top {
        transform: rotateX(90deg) translateZ(30px);
    }
    
    .block-front {
        transform: translateZ(30px);
    }
    
    .block-right {
        transform: rotateY(90deg) translateZ(30px);
    }
    
    .block-back {
        transform: rotateY(180deg) translateZ(30px);
    }
    
    .block-left {
        transform: rotateY(-90deg) translateZ(30px);
    }
    
    .block-bottom {
        transform: rotateX(-90deg) translateZ(30px);
    }
    
    .loader-brand {
        font-size: 1.5rem;
    }
    
    .loader-subtitle {
        font-size: 0.75rem;
    }
}

/* ANIMATIONS */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(.6);
    }
    20% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(.8);
    }
}

/* Additional improvements for better UX */
.ipbar {
    transition: transform .15s ease, box-shadow .15s ease;
}

/* Focus states for accessibility */
.btn:focus-visible,
.ipbar:focus-visible,
.amount-tier:focus-visible,
.cluster-option:focus-visible,
.team-thumb:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Better image loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Loading skeleton for better perceived performance */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Better error states */
.error-box {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Success animation */
.success-box {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved button states */
.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Better form inputs */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 165, 209, 0.1);
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }
}


