: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 (đồng nhất với website chính) */
    --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%;
    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;
}

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

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

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

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

.brand-text span {
    font-size: .75rem;
    letter-spacing: .12em;
    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, .35);
}

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

.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);
    margin-bottom: 24px;
    cursor: copy;
    position: relative;
    overflow: hidden;
}

.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 span {
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .7rem;
    color: var(--muted);
}

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

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

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

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

.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%);
}

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

.world-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .8rem;
}

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

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

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

.world-status {
    font-size: .85rem;
    color: var(--muted);
}

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

/* 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);
}

/* 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);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow);
}

.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: .75rem;
    }
}

@media (max-width: 960px) {
    .nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-inner {
        flex-wrap: wrap;
    }
    .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;
    }
}

@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,
    .section-head h2 {
        font-size: 1.75rem;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .worlds-grid {
        grid-template-columns: 1fr;
    }
    .timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ipbar {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
    .divider {
        display: none;
    }
    .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,
    .section-head h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    .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,
    .section-head h2 {
        font-size: 1.35rem;
    }
}

/* 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;
}

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

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* 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;
    }
}

