:root {
    --clay-shadow: 0 18px 30px -12px rgba(120, 40, 140, .28), 0 8px 14px -6px rgba(120, 40, 140, .18), inset 0 -6px 10px rgba(100, 30, 130, .18), inset 0 6px 10px rgba(255, 255, 255, .85);
    --clay-inset: inset 0 6px 14px rgba(110, 40, 140, .22), inset 0 -2px 4px rgba(255, 255, 255, .6), 0 1px 2px rgba(255, 255, 255, .8);
    --clay-shadow-sm: 0 8px 16px -8px rgba(120, 40, 140, .25), inset 0 -3px 6px rgba(100, 30, 130, .15), inset 0 3px 6px rgba(255, 255, 255, .8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body.nx-global-body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(180deg, #F9EFF9 0%, #E6D5FC 50%, #F5E3FF 100%);
    color: #4A3E56;
    overflow-x: hidden;
    padding: 20px 10px 0;
    min-height: 100vh;
}

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

a {
    color: inherit;
}

.nx-top-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    max-width: 1400px;
    margin: 0 auto 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(248, 238, 255, .7));
    box-shadow: var(--clay-shadow);
    border-radius: 28px;
    gap: 16px;
}

.nx-brand-identity {
    font-size: 28px;
    font-weight: 900;
    color: #EA4C89;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nx-brand-identity img {
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
    margin-right: 8px;
    flex-shrink: 0;
}

.nx-brand-dot {
    width: 10px;
    height: 10px;
    background-color: #FF7EC6;
    border-radius: 50%;
    margin-left: 4px;
}

.nx-search-wrapper {
    position: relative;
    width: 45%;
    margin: 0 auto;
    max-width: 500px;
}

.nx-search-lens {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 3px solid #8a6fa8;
    border-radius: 50%;
    opacity: .75;
    pointer-events: none;
}

.nx-search-lens::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 3px;
    right: -8px;
    bottom: -5px;
    background: #8a6fa8;
    border-radius: 999px;
    transform: rotate(45deg);
}

.nx-search-field {
    width: 100%;
    padding: 12px 20px 12px 55px;
    border: none;
    background: linear-gradient(160deg, #ece0f3, #f0e3f5);
    box-shadow: var(--clay-inset);
    border-radius: 999px;
    font-size: 14px;
    color: #555;
    outline: none;
}

.nx-search-submit {
    display: none;
}

.nx-category-viewport {
    max-width: 1400px;
    margin: 10px auto 25px;
}

.nx-category-rail {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 15px 35px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(248, 238, 255, .7));
    box-shadow: var(--clay-shadow);
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 40px;
}

.nx-category-rail::-webkit-scrollbar {
    display: none;
}

.nx-pill-item {
    font-size: 14px;
    font-weight: 700;
    color: #5A4B75;
    transition: color .25s ease, transform .2s ease;
    display: inline-block;
}

.nx-pill-item:hover {
    color: #EA4C89;
    transform: scale(1.05);
}

.nx-main-layout {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
}

.nx-module-block {
    margin-bottom: 45px;
}

.nx-module-header {
    width: 95%;
    margin: 0 auto 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    overflow: hidden;
}

.nx-module-caption,
.nx-meta-main-title,
.nx-category-header-panel h1,
.nx-category-header-panel h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #5a2d80;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 2px 0 #f1e3ff, 0 3px 0 #e3cdff, 0 4px 0 #d5b8ff, 0 6px 10px rgba(100, 30, 140, .35);
}

.nx-module-sub {
    font-size: 12px;
    color: #8a6fa8;
    margin-top: 4px;
}

.nx-forward-trigger,
.nx-back-action-btn,
.nx-load-more-btn {
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 900;
    color: #7B529D;
    cursor: pointer;
    background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(250, 235, 255, .85));
    box-shadow: var(--clay-shadow-sm);
    letter-spacing: .5px;
    white-space: nowrap;
}

.nx-forward-trigger:hover,
.nx-load-more-btn:hover {
    transform: translateY(-6px) scale(1.04);
}

.nx-flexible-grid,
.nx-standard-cards-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 16px;
}

.nx-element-node {
    border-radius: 24px;
    padding: 12px;
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), box-shadow .3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(248, 238, 255, .7));
    box-shadow: var(--clay-shadow-sm);
    min-width: 0;
}

.nx-element-node:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 28px rgba(160, 110, 220, .3);
}

.nx-img-canvas {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 6px 12px rgba(255, 255, 255, .55), inset 0 -8px 14px rgba(80, 40, 120, .18);
}

.nx-lazy-asset {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
}

.nx-lazy-asset.is-active-loaded {
    opacity: 1;
}

.nx-element-title {
    font-size: 13px;
    font-weight: 700;
    color: #4a2a6a;
    margin: 10px 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nx-element-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 0 2px;
}

.nx-dash-rating,
.nx-dash-traffic {
    font-size: 11px;
    font-weight: 700;
    color: #8a6fa8;
}

.nx-star-vector,
.nx-meta-star-icon {
    color: #FFA000;
}

.nx-bottom-footer {
    margin: 60px auto 0;
    padding: 30px 4%;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, .45);
}

.nx-bottom-container {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 20px;
}

.nx-footer-brand {
    font-size: 20px;
    font-weight: 900;
    color: #A396B2;
}

.nx-footer-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nx-footer-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 900;
    color: rgba(74, 42, 106, .8);
    background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(250, 235, 255, .85));
    box-shadow: var(--clay-shadow-sm);
    border-radius: 999px;
}

.nx-content-viewport {
    max-width: 1200px;
    margin: 0 auto;
}

.nx-category-header-panel {
    margin-bottom: 28px;
    padding-left: 6px;
}

.nx-highlight-accent {
    color: #EA4C89;
}

.nx-empty-search-state,
.nx-static-document,
.nx-contact-panel {
    padding: 32px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(248, 238, 255, .72));
    border-radius: 28px;
    box-shadow: var(--clay-shadow);
}

.nx-static-document {
    max-width: 980px;
    margin: 0 auto;
}

.nx-static-document h1 {
    margin-bottom: 18px;
}

.nx-static-document h2 {
    margin: 28px 0 10px;
    color: #5a2d80;
    font-size: 20px;
}

.nx-static-document p {
    color: rgba(74, 42, 106, .78);
    line-height: 1.75;
    margin-bottom: 12px;
    font-weight: 600;
}

.nx-theater-composite-row {
    display: flex;
    gap: 24px;
    margin-bottom: 45px;
    align-items: stretch;
}

.nx-theater-screen-wrapper {
    flex: 1;
    background: linear-gradient(160deg, #ffd6a5, #ffb6c8, #c4a3ff);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(120, 40, 140, .45), inset 0 -10px 18px rgba(80, 20, 100, .25), inset 0 10px 18px rgba(255, 255, 255, .7);
    padding: 24px;
}

.nx-game-iframe {
    width: 100%;
    height: min(72vh, 680px);
    min-height: 560px;
    border: 0;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--clay-inset);
}

.nx-theater-side-panel {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nx-meta-profile-box,
.nx-mini-games-wrapper {
    background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(248, 238, 255, .7));
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--clay-shadow);
}

.nx-meta-main-title {
    font-size: 26px;
    margin-bottom: 8px;
}

.nx-meta-stats-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #7B6A93;
    margin-bottom: 14px;
}

.nx-meta-instructions-text {
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
    color: rgba(74, 42, 106, .78);
}

.nx-mini-heading {
    font-size: 13px;
    font-weight: 800;
    color: #9082A8;
    letter-spacing: .5px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.nx-mini-six-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.nx-detail-tag-node {
    display: inline-block;
    margin: 0 6px 8px 0;
    font-size: 11px;
    font-weight: 800;
    color: #FFF;
    padding: 4px 12px;
    border-radius: 14px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffd76b, #ff9a3c);
    box-shadow: 0 6px 12px rgba(220, 120, 40, .4), inset 0 -2px 4px rgba(140, 60, 20, .3);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.nx-form-message {
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    box-shadow: var(--clay-shadow-sm);
}

.nx-form-success {
    color: #047857;
    background: linear-gradient(160deg, #ecfdf5, #d1fae5);
}

.nx-form-error {
    color: #be123c;
    background: linear-gradient(160deg, #fff1f2, #ffe4e6);
}

.field {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: #5A4B75;
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    border-radius: 18px;
    padding: 13px 16px;
    font: inherit;
    background: linear-gradient(160deg, #ece0f3, #f0e3f5);
    box-shadow: var(--clay-inset);
    color: #4A3E56;
    outline: none;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.pagination,
.nx-pagination-streamline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 40px 0 10px;
}

@media (max-width: 820px) {
    body.nx-global-body {
        padding: 15px 10px 0;
    }

    .nx-top-navigation {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        border-radius: 20px;
    }

    .nx-search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .nx-category-rail {
        gap: 22px;
        padding: 14px 20px;
        border-radius: 20px;
    }

    .nx-module-header {
        align-items: center;
    }

    .nx-module-caption,
    .nx-category-header-panel h1,
    .nx-category-header-panel h2 {
        font-size: 22px;
    }

    .nx-flexible-grid,
    .nx-standard-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .nx-theater-composite-row {
        flex-direction: column;
    }

    .nx-theater-side-panel {
        width: 100%;
    }

    .nx-theater-screen-wrapper {
        padding: 12px;
        border-radius: 24px;
    }

    .nx-game-iframe {
        min-height: 500px;
        border-radius: 20px;
    }

    .nx-bottom-container {
        flex-direction: column;
        text-align: center;
    }

    .nx-static-document,
    .nx-contact-panel {
        padding: 22px;
        border-radius: 22px;
    }
}
